    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    :root {
      --ink: #041b17;
      --ink-soft: #07221c;
      --surface: #0d271f;
      --surface-2: #123028;
      --paper: #d4e2df;
      --paper-soft: #bad1d0;
      --muted: #7fa49e;
      --line: rgba(186, 209, 208, 0.12);
      --line-strong: rgba(186, 209, 208, 0.22);
      --green: #31d198;
      --blue: #2ab088;
      --red: #ff5246;
      --yellow: #ff8f63;
      --shadow: rgba(0, 0, 0, 0.46);
      --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      --mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
      --ease: cubic-bezier(0.22, 1, 0.36, 1);
    }

    html {
      color-scheme: dark;
      scroll-behavior: smooth;
    }

    body {
      min-height: 100vh;
      font-family: var(--sans);
      color: var(--paper);
      background-color: var(--ink);
      line-height: 1.55;
      -webkit-font-smoothing: antialiased;
    }

    /* Slowly drifting atmospheric glows, behind all content */
    body::before {
      content: '';
      position: fixed;
      inset: -14%;
      z-index: -2;
      pointer-events: none;
      background-repeat: no-repeat;
      background-image:
        radial-gradient(105% 78% at 14% 56%, rgba(42, 176, 136, 0.15), transparent 60%),
        radial-gradient(90% 72% at 96% 74%, rgba(255, 82, 70, 0.08), transparent 60%),
        radial-gradient(120% 110% at 76% 112%, rgba(49, 209, 152, 0.09), transparent 60%);
      will-change: transform;
      animation: bg-drift 36s ease-in-out infinite;
    }

    /* Static caps so the header blends and the footer stays grounded */
    body::after {
      content: '';
      position: fixed;
      inset: 0;
      z-index: -1;
      pointer-events: none;
      background-image:
        linear-gradient(180deg, var(--ink) 0, rgba(4, 27, 23, 0.94) 10%, rgba(4, 27, 23, 0) 24%),
        linear-gradient(180deg, rgba(4, 27, 23, 0) 55%, rgba(2, 13, 10, 0.85) 100%);
    }

    @keyframes bg-drift {
      0% {
        transform: translate3d(0, 0, 0) scale(1);
      }
      50% {
        transform: translate3d(-2.4%, -1.6%, 0) scale(1.05);
      }
      100% {
        transform: translate3d(0, 0, 0) scale(1);
      }
    }

    body.modal-open {
      overflow: hidden;
    }

    a {
      color: inherit;
    }

    ::selection {
      color: var(--ink);
      background: var(--green);
    }

    .skip-link {
      position: fixed;
      top: 12px;
      left: 12px;
      z-index: 999;
      transform: translateY(-160%);
      padding: 9px 14px;
      border-radius: 6px;
      background: var(--paper);
      color: var(--ink);
      font-weight: 700;
      text-decoration: none;
      transition: transform 180ms ease;
    }

    .skip-link:focus {
      transform: translateY(0);
    }

    :focus-visible {
      outline: 2px solid var(--blue);
      outline-offset: 3px;
    }

    .topbar {
      position: fixed;
      inset: 0 0 auto;
      z-index: 90;
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: center;
      gap: 20px;
      min-height: 64px;
      padding: 12px clamp(18px, 4vw, 56px);
      background: rgba(4, 27, 23, 0.76);
      border-bottom: 1px solid transparent;
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      transition: border-color 220ms ease, background 220ms ease;
    }

    .topbar.scrolled {
      background: rgba(4, 27, 23, 0.91);
      border-bottom-color: var(--line);
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
      text-decoration: none;
    }

    .brand-mark {
      display: grid;
      place-items: center;
      width: 34px;
      height: 34px;
      border: 1px solid var(--line-strong);
      border-radius: 8px;
      color: var(--red);
      font-family: var(--mono);
      font-size: 13px;
      font-weight: 600;
      background: rgba(186, 209, 208, 0.04);
    }

    .brand-text {
      display: grid;
      line-height: 1.05;
    }

    .brand-name {
      color: var(--paper);
      font-weight: 760;
      letter-spacing: 0;
    }

    .brand-role {
      color: var(--muted);
      font-family: var(--mono);
      font-size: 11px;
    }

    .navlinks {
      display: flex;
      align-items: center;
      gap: 4px;
      list-style: none;
    }

    /* Mobile hamburger toggle (shown only at narrow widths). */
    .nav-toggle {
      display: none;
      position: relative;
      width: 42px;
      height: 38px;
      border: 1px solid var(--line-strong);
      border-radius: 8px;
      background: rgba(186, 209, 208, 0.06);
      cursor: pointer;
    }

    .nav-toggle span {
      position: absolute;
      left: 10px;
      right: 10px;
      height: 2px;
      border-radius: 2px;
      background: var(--paper);
      transition: transform 200ms var(--ease), opacity 140ms ease, top 200ms var(--ease);
    }

    .nav-toggle span:nth-child(1) {
      top: 12px;
    }

    .nav-toggle span:nth-child(2) {
      top: 18px;
    }

    .nav-toggle span:nth-child(3) {
      top: 24px;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
      top: 18px;
      transform: rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
      opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
      top: 18px;
      transform: rotate(-45deg);
    }

    .navlinks a,
    .navlinks button,
    .button {
      min-height: 36px;
      border: 1px solid transparent;
      border-radius: 8px;
      padding: 8px 12px;
      color: var(--paper-soft);
      background: transparent;
      font: 650 13px/1 var(--sans);
      text-decoration: none;
      cursor: pointer;
      transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
    }

    .navlinks a:hover,
    .navlinks button:hover {
      color: var(--paper);
      background: rgba(186, 209, 208, 0.06);
      border-color: var(--line);
    }

    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border-color: var(--line-strong);
      color: var(--paper);
      background: rgba(186, 209, 208, 0.06);
    }

    .button.primary {
      color: var(--ink);
      border-color: var(--red);
      background: var(--red);
    }

    .button:hover {
      border-color: var(--blue);
      background: rgba(42, 176, 136, 0.14);
      color: var(--paper);
    }

    .button.primary:hover {
      color: var(--ink);
      border-color: var(--paper);
      background: var(--paper);
    }

    .page {
      width: min(1180px, calc(100% - 36px));
      margin: 0 auto;
      padding-top: 64px;
    }

    .hero {
      min-height: calc(100vh - 64px);
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
      gap: clamp(26px, 5vw, 72px);
      align-items: center;
      padding: clamp(36px, 6vw, 84px) 0 44px;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      margin-bottom: 18px;
      color: var(--red);
      font-family: var(--mono);
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0;
      text-transform: uppercase;
    }

    .eyebrow::before {
      content: '';
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--red);
      box-shadow: 0 0 0 5px rgba(255, 82, 70, 0.14);
    }

    h1 {
      max-width: 820px;
      color: var(--paper);
      font-size: clamp(48px, 9vw, 118px);
      font-weight: 800;
      letter-spacing: 0;
      line-height: 0.92;
    }

    .hero h1 span {
      color: var(--red);
    }

    .hero-copy {
      max-width: 650px;
      margin-top: 24px;
      color: var(--paper-soft);
      font-size: clamp(17px, 2vw, 22px);
      font-weight: 380;
      line-height: 1.48;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 28px;
    }

    .portrait-wrap {
      align-self: center;
      min-height: 0;
      display: grid;
      align-items: center;
      position: relative;
    }

    .portrait-frame {
      position: relative;
      overflow: hidden;
      aspect-ratio: 5 / 4;
      max-height: min(520px, calc(100vh - 210px));
      border: 1px solid var(--line-strong);
      border-radius: 8px;
      background: var(--surface);
      box-shadow: 0 28px 90px var(--shadow);
    }

    .portrait-frame::after {
      content: '';
      position: absolute;
      inset: 0;
      background:
        linear-gradient(180deg, transparent 42%, rgba(4, 27, 23, 0.2)),
        linear-gradient(90deg, rgba(49, 209, 152, 0.14), transparent 52%, rgba(255, 82, 70, 0.08));
      mix-blend-mode: screen;
      pointer-events: none;
    }

    .portrait-frame img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 58%;
      filter: saturate(0.82) contrast(1.04);
    }

    .signal-board {
      position: absolute;
      right: clamp(-14px, -2vw, -8px);
      bottom: 24px;
      width: min(330px, 86%);
      border: 1px solid var(--line-strong);
      border-radius: 8px;
      background: rgba(4, 27, 23, 0.86);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      box-shadow: 0 20px 50px var(--shadow);
    }

    .signal-row {
      display: grid;
      grid-template-columns: 78px 1fr;
      gap: 14px;
      padding: 13px 14px;
      border-bottom: 1px solid var(--line);
    }

    .signal-row:last-child {
      border-bottom: 0;
    }

    .signal-key {
      color: var(--muted);
      font-family: var(--mono);
      font-size: 11px;
      text-transform: uppercase;
    }

    .signal-value {
      color: var(--paper);
      font-size: 13px;
      font-weight: 650;
    }

    .ticker {
      display: flex;
      gap: 8px;
      overflow: hidden;
      padding: 10px 0 28px;
      color: var(--muted);
      font-family: var(--mono);
      font-size: 12px;
      white-space: nowrap;
      border-bottom: 1px solid var(--line);
    }

    .ticker span {
      flex: 0 0 auto;
      padding: 4px 10px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(186, 209, 208, 0.035);
    }

    section {
      padding: clamp(56px, 8vw, 96px) 0;
      border-bottom: 1px solid var(--line);
    }

    .section-head {
      display: grid;
      grid-template-columns: minmax(170px, 0.35fr) minmax(0, 1fr);
      gap: clamp(20px, 4vw, 56px);
      align-items: end;
      margin-bottom: 24px;
    }

    .section-kicker {
      color: var(--red);
      font-family: var(--mono);
      font-size: 12px;
      font-weight: 600;
      text-transform: uppercase;
    }

    h2 {
      max-width: 760px;
      color: var(--paper);
      font-size: clamp(28px, 5vw, 58px);
      font-weight: 780;
      letter-spacing: 0;
      line-height: 1;
    }

    .section-copy {
      max-width: 660px;
      margin-top: 14px;
      color: var(--muted);
      font-size: 16px;
    }

    .work-grid {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 10px;
    }

    .project {
      position: relative;
      min-height: 220px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      grid-column: span 2;
      padding: 20px;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: rgba(13, 39, 31, 0.72);
      text-decoration: none;
      transition: transform 220ms var(--ease), border-color 220ms ease, background 220ms ease;
    }

    .project:nth-child(1),
    .project:nth-child(2) {
      grid-column: span 3;
    }

    .project::before {
      content: '';
      position: absolute;
      inset: auto 18px 0;
      height: 3px;
      background: var(--accent, var(--green));
      transform: scaleX(0.22);
      transform-origin: left;
      transition: transform 240ms var(--ease);
    }

    .project:hover {
      transform: translateY(-4px);
      border-color: var(--line-strong);
      background: var(--surface);
    }

    .project:hover::before {
      transform: scaleX(1);
    }

    .project-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      color: var(--muted);
      font-family: var(--mono);
      font-size: 11px;
      text-transform: uppercase;
    }

    .project-status {
      color: var(--accent, var(--green));
    }

    .project h3 {
      max-width: 420px;
      color: var(--paper);
      font-size: clamp(22px, 3vw, 34px);
      font-weight: 780;
      line-height: 1;
      letter-spacing: 0;
    }

    .project p {
      max-width: 440px;
      margin-top: 12px;
      color: var(--paper-soft);
      font-size: 14px;
    }

    .about-layout {
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
      gap: clamp(22px, 5vw, 64px);
      align-items: start;
    }

    .about-text {
      color: var(--paper-soft);
      font-size: clamp(17px, 2vw, 22px);
      font-weight: 360;
      line-height: 1.62;
    }

    .about-text p + p {
      margin-top: 18px;
    }

    .about-text strong {
      color: var(--paper);
      font-weight: 720;
    }

    .now-panel {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: rgba(13, 39, 31, 0.68);
    }

    .now-item {
      display: grid;
      grid-template-columns: 26px 1fr;
      gap: 12px;
      padding: 17px;
      border-bottom: 1px solid var(--line);
    }

    .now-item:last-child {
      border-bottom: 0;
    }

    .now-dot {
      width: 10px;
      height: 10px;
      margin-top: 7px;
      border-radius: 50%;
      background: var(--dot, var(--green));
      box-shadow: 0 0 0 6px color-mix(in srgb, var(--dot, var(--green)) 16%, transparent);
    }

    .now-item h3 {
      color: var(--paper);
      font-size: 15px;
      line-height: 1.25;
    }

    .now-item p {
      margin-top: 4px;
      color: var(--muted);
      font-size: 13px;
    }

    .values-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }

    .value {
      min-height: 190px;
      padding: 20px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: rgba(13, 39, 31, 0.58);
      transition: transform 220ms var(--ease), border-color 220ms ease, background 220ms ease;
    }

    .value:hover {
      transform: translateY(-4px);
      border-color: var(--line-strong);
      background: rgba(13, 39, 31, 0.8);
    }

    .value code {
      display: inline-block;
      margin-bottom: 28px;
      color: var(--muted);
      font-family: var(--mono);
      font-size: 12px;
      transition: color 220ms ease;
    }

    .value:hover code {
      color: var(--red);
    }

    .value h3 {
      color: var(--paper);
      font-size: 20px;
      line-height: 1.1;
    }

    .value p {
      margin-top: 10px;
      color: var(--muted);
      font-size: 14px;
    }

    .civic-board {
      display: grid;
      grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
      gap: 10px;
      align-items: stretch;
    }

    .civic-statement {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      min-height: 310px;
      padding: 22px;
      border-radius: 8px;
      background: var(--paper);
      color: var(--ink);
    }

    .civic-statement h2 {
      color: var(--ink);
      font-size: clamp(32px, 5vw, 64px);
    }

    .civic-statement p {
      max-width: 520px;
      color: rgba(4, 27, 23, 0.72);
      font-size: 16px;
    }

    .resource-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }

    .resource {
      min-height: 96px;
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 14px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: rgba(13, 39, 31, 0.68);
      color: var(--paper);
      text-decoration: none;
      font-weight: 700;
      transition: transform 180ms var(--ease), border-color 180ms ease, background 180ms ease;
    }

    .resource span {
      color: var(--muted);
      font-family: var(--mono);
      font-size: 12px;
      font-weight: 400;
    }

    .resource:hover {
      transform: translateY(-3px);
      border-color: var(--blue);
      background: rgba(42, 176, 136, 0.12);
    }

    .contact-strip {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 20px;
      align-items: center;
      padding: clamp(24px, 5vw, 42px) 0;
      border-bottom: 1px solid var(--line);
    }

    .contact-strip h2 {
      max-width: 850px;
    }

    footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 24px 0 38px;
      color: var(--muted);
      font-family: var(--mono);
      font-size: 12px;
    }

    footer a {
      color: var(--paper-soft);
      text-decoration: none;
    }

    footer a:hover {
      color: var(--red);
    }

    .modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 200;
      display: grid;
      place-items: center;
      padding: 20px;
      background: rgba(4, 27, 23, 0.72);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      opacity: 0;
      pointer-events: none;
      transition: opacity 180ms ease;
    }

    .modal-backdrop.open {
      opacity: 1;
      pointer-events: auto;
    }

    .modal {
      width: min(540px, 100%);
      max-height: min(720px, calc(100vh - 40px));
      overflow: auto;
      padding: 28px;
      border: 1px solid var(--line-strong);
      border-radius: 8px;
      background: var(--surface);
      box-shadow: 0 30px 90px var(--shadow);
      transform: translateY(14px);
      transition: transform 200ms var(--ease);
    }

    .modal-backdrop.open .modal {
      transform: translateY(0);
    }

    .modal-top {
      display: flex;
      align-items: start;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 20px;
    }

    .modal h2 {
      color: var(--paper);
      font-size: 30px;
    }

    .modal p {
      margin-top: 6px;
      color: var(--muted);
      font-size: 14px;
    }

    .icon-button {
      display: grid;
      place-items: center;
      width: 36px;
      height: 36px;
      flex: 0 0 auto;
      border: 1px solid var(--line);
      border-radius: 8px;
      color: var(--paper);
      background: transparent;
      font-size: 20px;
      cursor: pointer;
    }

    .icon-button:hover {
      border-color: var(--red);
      color: var(--red);
    }

    .contact-form {
      display: grid;
      gap: 14px;
    }

    .field-pair {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    label {
      display: grid;
      gap: 6px;
      color: var(--paper-soft);
      font-size: 12px;
      font-weight: 700;
    }

    input,
    textarea {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 11px 12px;
      color: var(--paper);
      background: var(--ink);
      font: 400 14px/1.45 var(--sans);
    }

    input:focus,
    textarea:focus {
      border-color: var(--blue);
      outline: none;
    }

    textarea {
      min-height: 118px;
      resize: vertical;
    }

    .form-status {
      display: none;
      padding: 10px 12px;
      border-radius: 8px;
      font-size: 13px;
    }

    .form-status.show {
      display: block;
    }

    .form-status.ok {
      border: 1px solid rgba(49, 209, 152, 0.3);
      color: var(--green);
      background: rgba(49, 209, 152, 0.08);
    }

    .form-status.err {
      border: 1px solid rgba(255, 82, 70, 0.35);
      color: var(--red);
      background: rgba(255, 82, 70, 0.08);
    }

    .reveal {
      opacity: 0;
      transform: translateY(16px);
      transition: opacity 520ms var(--ease), transform 520ms var(--ease);
    }

    .no-js .reveal,
    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    @media (max-width: 980px) {
      .hero,
      .about-layout,
      .civic-board {
        grid-template-columns: 1fr;
      }

      .hero {
        min-height: auto;
      }

      .portrait-wrap {
        min-height: 0;
        max-width: 560px;
      }

      .section-head {
        grid-template-columns: 1fr;
        align-items: start;
      }

      .project,
      .project:nth-child(1),
      .project:nth-child(2) {
        grid-column: span 3;
      }

      .values-grid,
      .resource-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 680px) {
      .topbar {
        grid-template-columns: 1fr auto;
        gap: 12px;
        align-items: center;
        min-height: 64px;
      }

      .nav-toggle {
        display: inline-flex;
      }

      .navlinks {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 10px clamp(18px, 5vw, 56px) 16px;
        background: rgba(4, 27, 23, 0.97);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 48px var(--shadow);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease, transform 180ms ease;
      }

      .navlinks.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
      }

      .navlinks a,
      .navlinks button {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        min-height: 44px;
        font-size: 15px;
        text-align: left;
      }

      .page {
        width: min(100% - 28px, 1180px);
        padding-top: 80px;
      }

      .hero {
        padding-top: 28px;
      }

      h1 {
        font-size: clamp(46px, 16vw, 74px);
      }

      .portrait-frame {
        aspect-ratio: 1 / 1;
        max-height: none;
      }

      .signal-board {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        margin-top: 10px;
      }

      .ticker {
        flex-wrap: wrap;
        overflow: visible;
        padding-bottom: 18px;
        white-space: normal;
      }

      .ticker span {
        flex: 0 1 auto;
      }

      .work-grid,
      .values-grid,
      .resource-grid,
      .contact-strip,
      .field-pair {
        grid-template-columns: 1fr;
      }

      .project,
      .project:nth-child(1),
      .project:nth-child(2) {
        grid-column: span 1;
      }

      .contact-strip {
        align-items: start;
      }

      footer {
        flex-direction: column;
        align-items: start;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      html {
        scroll-behavior: auto;
      }

      *,
      *::before,
      *::after {
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
      }

      .reveal {
        opacity: 1;
        transform: none;
      }
    }

    /* Civic resource cards: per-site accent gradient, a faint watermark initial
       (data-mark), a one-line description, and an external-link arrow. */
    #civic .resource {
      position: relative;
      overflow: hidden;
      flex-direction: column;
      align-items: stretch;
      justify-content: flex-end;
      min-height: 132px;
      padding: 18px;
      font-weight: 400;
      border-color: color-mix(in srgb, var(--accent, var(--green)) 32%, var(--line));
      background:
        radial-gradient(135% 95% at 100% 0%, color-mix(in srgb, var(--accent, var(--green)) 20%, transparent), transparent 58%),
        linear-gradient(180deg, rgba(13, 39, 31, 0.9), rgba(7, 34, 28, 0.7));
      transition: transform 200ms var(--ease), border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
    }

    #civic .resource > * {
      position: relative;
      z-index: 1;
    }

    #civic .resource::before {
      content: attr(data-mark);
      position: absolute;
      right: -4px;
      bottom: -34px;
      z-index: 0;
      font-family: var(--mono);
      font-size: 124px;
      font-weight: 700;
      line-height: 1;
      color: var(--accent, var(--green));
      opacity: 0.09;
      pointer-events: none;
      transition: opacity 200ms ease, transform 200ms var(--ease);
    }

    #civic .res-foot {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 12px;
    }

    #civic .res-body {
      display: grid;
      gap: 4px;
    }

    #civic .res-name {
      color: var(--paper);
      font-family: var(--sans);
      font-size: 15.5px;
      font-weight: 700;
      line-height: 1.15;
    }

    #civic .res-desc {
      color: var(--paper-soft);
      font-family: var(--sans);
      font-size: 12.5px;
      font-weight: 400;
      line-height: 1.4;
    }

    #civic .res-open {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--muted);
      font-family: var(--mono);
      font-size: 12px;
      transition: color 180ms ease;
    }

    #civic .res-open::after {
      content: '\2197'; /* northeast arrow */
      display: inline-block;
      transition: transform 200ms var(--ease);
    }

    #civic .resource:hover {
      transform: translateY(-4px);
      border-color: color-mix(in srgb, var(--accent, var(--green)) 62%, var(--line));
      box-shadow: 0 18px 42px var(--shadow);
      background:
        radial-gradient(135% 95% at 100% 0%, color-mix(in srgb, var(--accent, var(--green)) 30%, transparent), transparent 58%),
        linear-gradient(180deg, rgba(13, 39, 31, 0.92), rgba(7, 34, 28, 0.75));
    }

    #civic .resource:hover::before {
      opacity: 0.16;
      transform: translateY(-5px);
    }

    #civic .resource:hover .res-open {
      color: var(--paper-soft);
    }

    #civic .resource:hover .res-open::after {
      transform: translate(2px, -2px);
    }

    /* "Page not found" modal (shown after a 404 redirect via ?nf=) */
    .nf-modal {
      position: relative;
      overflow: hidden;
    }

    .nf-modal::before {
      content: '404';
      position: absolute;
      right: -14px;
      bottom: -42px;
      z-index: 0;
      font-family: var(--mono);
      font-size: 152px;
      font-weight: 700;
      line-height: 1;
      color: var(--red);
      opacity: 0.07;
      pointer-events: none;
    }

    /* A faint, gently drifting meteor: the page got obliterated on impact.
       Icon: Font Awesome Free "meteor" (CC BY 4.0), inlined as an SVG data URI
       so no icon font/library is loaded. https://fontawesome.com/license/free */
    .nf-modal::after {
      content: '';
      position: absolute;
      left: 18px;
      bottom: 16px;
      z-index: 0;
      width: 62px;
      height: 62px;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23d4e2df' d='M493.7 .9L299.4 75.6l2.3-29.3c1-12.8-12.8-21.5-24-15.1L101.3 133.4C38.6 169.7 0 236.6 0 309C0 421.1 90.9 512 203 512c72.4 0 139.4-38.6 175.7-101.3L480.8 234.3c6.5-11.1-2.2-25-15.1-24l-29.3 2.3L511.1 18.3c.6-1.5 .9-3.2 .9-4.8C512 6 506 0 498.5 0c-1.7 0-3.3 .3-4.8 .9zM192 192a128 128 0 1 1 0 256 128 128 0 1 1 0-256zm0 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm16 96a16 16 0 1 0 0-32 16 16 0 1 0 0 32z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: center;
      background-size: contain;
      opacity: 0.12;
      pointer-events: none;
      animation: nf-float 4.5s ease-in-out infinite;
    }

    @keyframes nf-float {
      0%,
      100% {
        transform: translateY(0) rotate(-4deg);
      }
      50% {
        transform: translateY(-9px) rotate(4deg);
      }
    }

    .nf-modal > * {
      position: relative;
      z-index: 1;
    }

    .nf-bar {
      display: flex;
      align-items: center;
      gap: 12px;
      padding-bottom: 16px;
      margin-bottom: 18px;
      border-bottom: 1px solid var(--line);
    }

    .nf-eyebrow {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--red);
      font-family: var(--mono);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .nf-eyebrow::before {
      content: '';
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--red);
      animation: nf-ping 1.8s ease-out infinite;
    }

    @keyframes nf-ping {
      0% {
        box-shadow: 0 0 0 0 rgba(255, 82, 70, 0.5);
      }
      70% {
        box-shadow: 0 0 0 9px rgba(255, 82, 70, 0);
      }
      100% {
        box-shadow: 0 0 0 0 rgba(255, 82, 70, 0);
      }
    }

    .nf-url {
      flex: 1 1 auto;
      min-width: 0;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      text-align: right;
      direction: rtl;
      font-family: var(--mono);
      font-size: 11.5px;
      color: var(--muted);
    }

    .nf-x {
      flex: 0 0 auto;
    }

    .nf-modal h2 {
      font-size: clamp(30px, 5vw, 42px);
      line-height: 1.05;
      letter-spacing: -0.015em;
      text-align: center;
    }

    .nf-modal h2 span {
      display: block;
      color: var(--red);
    }

    .nf-modal p {
      margin: 12px auto 0;
      max-width: 46ch;
      font-size: 14.5px;
      color: var(--paper-soft);
      text-align: center;
    }

    .nf-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
      margin-top: 24px;
    }

    /* "What we do" capabilities wall: a dense mosaic of small tiles with a
       centered brand tile, in the Samson Zone accent palette. */
    .cap-modal {
      width: min(1040px, 100%);
      padding: 24px;
    }

    .cap-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 16px;
    }

    .cap-wall {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      grid-auto-rows: 78px;
      grid-auto-flow: dense;
      gap: 8px;
    }

    .cap-cell {
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 8px;
      padding: 12px;
      overflow: hidden;
      border: 1px solid color-mix(in srgb, var(--accent, var(--green)) 50%, transparent);
      border-radius: 10px;
      background: linear-gradient(150deg, color-mix(in srgb, var(--accent, var(--green)) 30%, rgba(8, 28, 23, 0.92)), rgba(6, 24, 20, 0.96));
      text-align: left;
      transition: transform 150ms var(--ease), box-shadow 150ms ease, filter 150ms ease, border-color 150ms ease;
    }

    .cap-cell.wide {
      grid-column: span 2;
    }

    .cap-cell:hover {
      transform: translateY(-3px);
      border-color: color-mix(in srgb, var(--accent, var(--green)) 90%, transparent);
      box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 26px color-mix(in srgb, var(--accent, var(--green)) 32%, transparent);
      filter: saturate(1.15) brightness(1.07);
    }

    .cap-ico {
      display: inline-flex;
    }

    .cap-ico svg {
      height: 27px;
      width: auto;
      display: block;
      fill: var(--accent, var(--green));
      filter: drop-shadow(0 0 12px color-mix(in srgb, var(--accent, var(--green)) 65%, transparent));
    }

    .cap-label {
      color: var(--paper);
      font-size: 13px;
      font-weight: 650;
      line-height: 1.2;
      letter-spacing: -0.01em;
    }

    .cap-center {
      grid-column: 3 / span 2;
      grid-row: 3 / span 2;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 9px;
      padding: 16px;
      text-align: center;
      border: 1px solid color-mix(in srgb, var(--red) 45%, var(--line));
      border-radius: 8px;
      background:
        radial-gradient(130% 120% at 50% 0%, color-mix(in srgb, var(--red) 26%, transparent), transparent 70%),
        linear-gradient(180deg, rgba(13, 39, 31, 0.92), rgba(7, 34, 28, 0.85));
    }

    .cap-mark {
      display: grid;
      place-items: center;
      width: 42px;
      height: 42px;
      border: 1px solid var(--line-strong);
      border-radius: 10px;
      color: var(--red);
      font-family: var(--mono);
      font-size: 16px;
      font-weight: 600;
      background: rgba(186, 209, 208, 0.05);
    }

    .cap-name {
      color: var(--paper);
      font-size: 19px;
      font-weight: 760;
    }

    .cap-tag {
      color: var(--muted);
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: 0.07em;
      text-transform: uppercase;
    }

    @media (max-width: 900px) {
      .cap-modal {
        width: min(720px, 100%);
      }
      .cap-wall {
        grid-template-columns: repeat(4, 1fr);
      }
      .cap-center {
        grid-column: auto / span 2;
        grid-row: auto / span 2;
      }
    }

    @media (max-width: 540px) {
      .cap-wall {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 86px;
      }
      .cap-center {
        grid-column: auto / span 2;
        grid-row: auto / span 2;
      }
    }

    /* Inline "Services" section: condensed category cards that tease the full
       Services wall in the capabilities modal. */
    .svc-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
    }

    .svc-card {
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding: 20px;
      border: 1px solid color-mix(in srgb, var(--accent, var(--green)) 42%, var(--line));
      border-radius: 10px;
      background: linear-gradient(155deg, color-mix(in srgb, var(--accent, var(--green)) 16%, rgba(13, 39, 31, 0.62)), rgba(7, 34, 28, 0.74));
      transition: transform 180ms var(--ease), box-shadow 180ms ease, border-color 180ms ease, filter 180ms ease;
    }

    .svc-card:hover {
      transform: translateY(-4px);
      border-color: color-mix(in srgb, var(--accent, var(--green)) 80%, var(--line));
      box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 26px color-mix(in srgb, var(--accent, var(--green)) 26%, transparent);
      filter: saturate(1.1);
    }

    .svc-ico svg {
      height: 30px;
      width: auto;
      display: block;
      fill: var(--accent, var(--green));
      filter: drop-shadow(0 0 12px color-mix(in srgb, var(--accent, var(--green)) 55%, transparent));
    }

    .svc-card h3 {
      color: var(--paper);
      font-size: 18px;
      font-weight: 760;
      line-height: 1.12;
    }

    .svc-card p {
      color: var(--muted);
      font-size: 13.5px;
      line-height: 1.5;
    }

    .svc-more {
      margin-top: 18px;
    }

    @media (max-width: 980px) {
      .svc-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 680px) {
      .svc-grid {
        grid-template-columns: 1fr;
      }
    }
