:root {
      --bg:        #070B14;
      --bg-2:      #0D1322;
      --surface:   #111827;
      --accent:    #06B6D4;
      --accent-2:  #7C3AED;
      --green:     #00E5FF;
      --text:      #E8E8F0;
      --text-dim:  #4A5568;
      --border:    #1E293B;
    }

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

    /* overflow-x on html (not just body) is what actually prevents sideways
       scrolling on mobile browsers when something overflows the viewport */
    html { scroll-behavior: smooth; overflow-x: hidden; }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: 'Space Grotesk', sans-serif;
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* ─── SCANLINES ─── */
    body::before {
      content: '';
      position: fixed; inset: 0;
      background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.07) 2px,
        rgba(0,0,0,0.07) 4px
      );
      pointer-events: none;
      z-index: 999;
    }

    /* ─── GRID BACKGROUND ─── */
    .grid-bg {
      position: fixed; inset: 0;
      background-image:
        linear-gradient(rgba(6,182,212,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6,182,212,0.025) 1px, transparent 1px);
      background-size: 64px 64px;
      pointer-events: none;
      z-index: 0;
    }

    /* ─── VIGNETTE ─── */
    .vignette {
      position: fixed; inset: 0;
      background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.9) 100%);
      pointer-events: none;
      z-index: 1;
    }

    /* ─── AMBIENT GLOW ─── */
    .glow {
      position: fixed;
      top: 50%; left: 50%;
      transform: translate(-50%,-50%);
      width: 700px; height: 400px;
      background: radial-gradient(ellipse, rgba(6,182,212,0.06) 0%, transparent 70%);
      pointer-events: none;
      z-index: 1;
      animation: breathe 5s ease-in-out infinite;
    }

    .glow-2 {
      position: fixed;
      top: 80%; left: 20%;
      width: 400px; height: 400px;
      background: radial-gradient(ellipse, rgba(124,58,237,0.05) 0%, transparent 70%);
      pointer-events: none;
      z-index: 1;
      animation: breathe 7s ease-in-out infinite reverse;
    }

    @keyframes breathe {
      0%,100% { opacity: 0.6; transform: translate(-50%,-50%) scale(1); }
      50%      { opacity: 1;   transform: translate(-50%,-50%) scale(1.15); }
    }

    /* ─────────────────────────── BOOT SCREEN ─────────────────────────── */
    #boot {
      position: fixed; inset: 0;
      background: var(--bg);
      z-index: 2000;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 28px;
    }

    .boot-brand {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 52px;
      font-weight: 900;
      letter-spacing: 14px;
      text-indent: 14px;
      color: var(--accent);
      text-shadow: 0 0 60px rgba(6,182,212,0.6), 0 0 120px rgba(6,182,212,0.2);
    }

    .boot-lines {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      color: var(--text-dim);
      width: 360px;
      min-height: 110px;
      line-height: 1.9;
    }

    .boot-lines .line { display: block; }
    .boot-lines .line.ok::after  { content: ' [OK]';    color: var(--green); }
    .boot-lines .line.err::after { content: ' [ERROR]'; color: var(--accent-2); }

    .boot-progress-label {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      color: var(--text-dim);
      letter-spacing: 2px;
      text-transform: uppercase;
      width: 360px;
    }

    .boot-bar {
      width: 360px; height: 2px;
      background: var(--border);
      position: relative;
      overflow: hidden;
    }

    .boot-bar-fill {
      position: absolute; top: 0; left: 0;
      height: 100%;
      background: var(--accent);
      box-shadow: 0 0 12px var(--accent), 0 0 30px rgba(6,182,212,0.4);
      width: 0%;
      transition: width 2.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* ─────────────────────────── MAIN ─────────────────────────── */
    #main {
      position: relative;
      z-index: 10;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      opacity: 0;
      transition: opacity 0.8s ease;
    }
    #main.visible { opacity: 1; }

    /* ─── TOP BAR ─── */
    .top-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 40px;
      border-bottom: 1px solid var(--border);
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      color: var(--text-dim);
      letter-spacing: 2px;
      text-transform: uppercase;
      flex-shrink: 0;
    }

    .tb-status {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .blink-dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--green);
      box-shadow: 0 0 8px var(--green);
      animation: dot-blink 1.2s ease-in-out infinite;
    }

    @keyframes dot-blink {
      0%,100% { opacity: 1; }
      50%      { opacity: 0.15; }
    }

    /* ─── HERO ─── */
    .hero {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 64px 32px 48px;
      gap: 0;
    }

    .eye-brow {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      color: var(--accent-2);
      letter-spacing: 5px;
      text-transform: uppercase;
      margin-bottom: 24px;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .eye-brow::before,
    .eye-brow::after {
      content: '';
      display: block;
      width: 40px;
      height: 1px;
      background: var(--accent-2);
      opacity: 0.4;
    }

    /* ─── TITLE ─── */
    .hud-frame {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 20px 48px;
      margin-bottom: 4px;
    }

    /* corner brackets */
    .hud-frame .c1, .hud-frame .c2, .hud-frame .c3, .hud-frame .c4 {
      content: '';
      position: absolute;
      width: 22px; height: 22px;
      border-color: var(--accent);
      border-style: solid;
      opacity: 0.7;
    }
    .hud-frame .c1 { top:0;    left:0;  border-width: 2px 0 0 2px; }
    .hud-frame .c2 { top:0;    right:0; border-width: 2px 2px 0 0; }
    .hud-frame .c3 { bottom:0; left:0;  border-width: 0 0 2px 2px; }
    .hud-frame .c4 { bottom:0; right:0; border-width: 0 2px 2px 0; }

    .title {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: clamp(76px, 18vw, 192px);
      font-weight: 900;
      line-height: 0.85;
      letter-spacing: -2px;
      text-transform: uppercase;
      color: var(--text);
      position: relative;
      display: inline-block;
    }

    /* Glitch */
    .title::before,
    .title::after {
      content: attr(data-text);
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      font-family: inherit; font-size: inherit;
      font-weight: inherit; letter-spacing: inherit;
    }
    .title::before {
      color: var(--accent-2);
      clip-path: polygon(0 0, 100% 0, 100% 30%, 0 30%);
      animation: g1 6s infinite;
    }
    .title::after {
      color: var(--accent);
      clip-path: polygon(0 70%, 100% 70%, 100% 100%, 0 100%);
      animation: g2 6s infinite;
    }

    @keyframes g1 {
      0%,85%,100% { transform: none; opacity: 0; }
      86%  { transform: translate(-5px,-2px); opacity: 0.9; }
      88%  { transform: translate(5px, 2px);  opacity: 0.9; }
      90%  { transform: translate(-3px,1px);  opacity: 0.5; }
      92%  { transform: none; opacity: 0; }
      96%  { transform: translate(2px,-1px);  opacity: 0.6; }
      98%  { transform: none; opacity: 0; }
    }
    @keyframes g2 {
      0%,82%,100% { transform: none; opacity: 0; }
      83%  { transform: translate(5px, 2px);  opacity: 0.9; }
      85%  { transform: translate(-5px,-2px); opacity: 0.9; }
      87%  { transform: translate(3px,-1px);  opacity: 0.5; }
      89%  { transform: none; opacity: 0; }
      93%  { transform: translate(-2px,1px);  opacity: 0.6; }
      95%  { transform: none; opacity: 0; }
    }

    .sub-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: clamp(13px, 2vw, 15px);
      font-weight: 400;
      color: var(--text-dim);
      letter-spacing: 4px;
      text-transform: uppercase;
      margin-top: 20px;
      margin-bottom: 56px;
    }

    /* ─── HERO TAGLINE + CTA ─── */
    .hero-tag {
      max-width: 620px;
      font-size: clamp(13px, 2vw, 15px);
      color: #8B9CB0;
      line-height: 1.9;
      letter-spacing: 0.4px;
      margin-bottom: 40px;
    }

    .hero-tag strong { color: var(--text); font-weight: 500; }

    .cta-row {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
      justify-content: center;
      margin-bottom: 26px;
    }

    .cta-btn {
      display: inline-block;
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 17px;
      font-weight: 800;
      letter-spacing: 3px;
      text-transform: uppercase;
      text-decoration: none;
      padding: 14px 36px;
      cursor: pointer;
      transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.1s;
    }

    .cta-btn:active { transform: scale(0.98); }

    .cta-btn.primary {
      background: var(--accent);
      border: 1px solid var(--accent);
      color: #000;
    }

    .cta-btn.primary:hover {
      background: #05a0ba;
      box-shadow: 0 0 30px rgba(6,182,212,0.35);
    }

    .cta-btn.ghost {
      background: transparent;
      border: 1px solid rgba(6,182,212,0.35);
      color: var(--accent);
    }

    .cta-btn.ghost:hover {
      border-color: var(--accent);
      background: rgba(6,182,212,0.07);
      box-shadow: 0 0 24px rgba(6,182,212,0.15);
    }

    .hero-note {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      color: var(--green);
      letter-spacing: 3px;
      text-transform: uppercase;
    }

    .hero-note::before { content: '● '; }

    /* ─── CONTACT ─── */
    /* Honeypot - visually removed but still in the DOM for bots to trip on */
    .hp-field {
      position: absolute;
      left: -9999px;
      width: 1px;
      height: 1px;
      opacity: 0;
      pointer-events: none;
    }

    .contact-inner {
      max-width: 640px;
    }

    .contact-lead {
      font-size: 13px;
      color: #8B9CB0;
      line-height: 1.9;
      letter-spacing: 0.3px;
      margin-bottom: 28px;
    }

    .contact-lead a {
      color: var(--accent);
      text-decoration: none;
    }

    .contact-lead a:hover { text-decoration: underline; }

    .c-grid2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }

    .c-field { margin-bottom: 14px; }

    .c-label {
      display: block;
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      color: var(--text-dim);
      letter-spacing: 2px;
      text-transform: uppercase;
      margin-bottom: 8px;
    }

    .c-input, .c-textarea {
      width: 100%;
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--text);
      font-family: 'Space Grotesk', sans-serif;
      font-size: 13px;
      padding: 13px 16px;
      outline: none;
      transition: border-color 0.2s;
    }

    .c-textarea { min-height: 130px; resize: vertical; }

    .c-input::placeholder, .c-textarea::placeholder { color: var(--text-dim); }
    .c-input:focus, .c-textarea:focus { border-color: rgba(6,182,212,0.4); }

    .c-send {
      border: 1px solid var(--accent);
      background: var(--accent);
      color: #000;
      margin-top: 4px;
    }

    .c-send:disabled { opacity: 0.6; cursor: wait; }

    .c-msg {
      min-height: 22px;
      margin-top: 12px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      letter-spacing: 1px;
    }

    /* ─── SERVICES ─── */
    .services-wrap {
      max-width: 960px;
      width: 100%;
      margin: 0 auto;
      padding: 0 40px 80px;
    }

    .sec-head {
      display: flex;
      align-items: center;
      gap: 18px;
      margin-bottom: 28px;
    }

    .sec-tag {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      color: var(--accent);
      letter-spacing: 3px;
      text-transform: uppercase;
      border: 1px solid rgba(6,182,212,0.3);
      padding: 5px 12px;
      white-space: nowrap;
    }

    .sec-line { flex: 1; height: 1px; background: var(--border); }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      background: var(--border);
      gap: 1px;
      border: 1px solid var(--border);
    }

    .svc {
      background: var(--bg-2);
      padding: 18px 22px;
      display: flex;
      align-items: center;
      gap: 14px;
      cursor: pointer;
      transition: background 0.18s;
      position: relative;
    }

    .svc:focus-visible {
      outline: 1px solid var(--accent);
      outline-offset: -1px;
    }

    .svc::after {
      content: '';
      position: absolute;
      bottom: 0; left: 0;
      width: 0%; height: 1px;
      background: var(--accent);
      transition: width 0.3s ease;
    }

    .svc:hover {
      background: var(--surface);
    }

    .svc:hover::after { width: 100%; }
    .svc:hover .svc-n { color: var(--accent); }
    .svc:hover .svc-arrow { color: var(--accent); }

    .svc-n {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      color: var(--text-dim);
      letter-spacing: 1px;
      min-width: 24px;
      transition: color 0.18s;
    }

    .svc-name {
      font-size: 13px;
      font-weight: 500;
      color: var(--text);
      letter-spacing: 0.4px;
      flex: 1;
    }

    .svc-arrow {
      font-size: 9px;
      color: var(--border);
      transition: color 0.18s;
    }

    /* ─── BOTTOM BAR ─── */
    .bot-bar {
      border-top: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 40px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      color: var(--text-dim);
      letter-spacing: 1.5px;
      text-transform: uppercase;
      flex-shrink: 0;
    }

    /* ─── LOGO ─── */
    .title-lockup {
      display: flex;
      align-items: center;
      gap: 2px;
    }

    .title-n-img {
      height: clamp(72px, 17vw, 182px);
      width: auto;
      border-radius: 10px;
      display: block;
    }

.bot-links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }

    .bot-links a {
      color: var(--text-dim);
      text-decoration: none;
      transition: color 0.2s;
    }
    .bot-links a:hover { color: var(--accent); }

    /* ─── FIXED SIDE DECO ─── */
    .side-txt {
      position: fixed;
      top: 50%;
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px;
      color: var(--text-dim);
      letter-spacing: 3px;
      text-transform: uppercase;
      z-index: 20;
      writing-mode: vertical-lr;
    }

    .side-txt.l {
      left: 22px;
      transform: translateY(-50%) rotate(180deg);
    }

    .side-txt.r {
      right: 22px;
      transform: translateY(-50%);
    }

    /* ─── CORNER MINI-HUD ─── */
    .c-hud {
      position: fixed;
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px;
      color: var(--text-dim);
      letter-spacing: 2px;
      line-height: 1.8;
      z-index: 20;
    }
    .c-hud.tl { top: 72px; left: 40px; }
    .c-hud.tr { top: 72px; right: 40px; text-align: right; }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 700px) {
      .top-bar { padding: 12px 20px; font-size: 9px; }
      .top-bar .tb-mid { display: none; }
      .hero { padding: 40px 20px 36px; }
      .eye-brow::before, .eye-brow::after { width: 20px; }
      .hud-frame { padding: 16px 28px; }
      .services-wrap { padding: 0 20px 60px; }
      .bot-bar { padding: 12px 20px; flex-direction: column; gap: 10px; text-align: center; }
      .bot-links { gap: 10px 16px; }
      .side-txt, .c-hud { display: none; }
      .c-grid2 { grid-template-columns: 1fr; gap: 0; }
      .cta-row { flex-direction: column; width: 100%; max-width: 340px; }
      .cta-btn { width: 100%; text-align: center; }
    }

    /* ─── SERVICE CATEGORY DIVIDERS ─── */
    .svc-cat {
      grid-column: 1 / -1;
      background: var(--bg);
      padding: 9px 22px 9px 20px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px;
      color: var(--accent);
      letter-spacing: 4px;
      text-transform: uppercase;
      border-left: 2px solid rgba(6,182,212,0.45);
    }

    /* ─── FEATURES ─── */
    .features-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      background: var(--border);
      gap: 1px;
      border: 1px solid var(--border);
    }

    .feat {
      background: var(--bg-2);
      padding: 13px 20px;
      display: flex;
      align-items: center;
      gap: 12px;
      transition: background 0.18s;
      position: relative;
    }

    .feat::after {
      content: '';
      position: absolute;
      bottom: 0; left: 0;
      width: 0%; height: 1px;
      background: var(--green);
      transition: width 0.3s ease;
    }

    .feat:hover { background: var(--surface); }
    .feat:hover::after { width: 100%; }

    .feat-check {
      font-size: 10px;
      color: var(--green);
      flex-shrink: 0;
    }

    .feat-name {
      font-size: 12px;
      font-weight: 400;
      color: var(--text);
      letter-spacing: 0.3px;
    }

    /* ─── TECH STACK ─── */
    .stack-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      background: var(--border);
      gap: 1px;
      border: 1px solid var(--border);
    }

    .stack-cat {
      background: var(--bg-2);
      padding: 18px 20px 24px;
    }

    .stack-cat-label {
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px;
      color: var(--accent);
      letter-spacing: 3px;
      text-transform: uppercase;
      margin-bottom: 14px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--border);
    }

    .stack-item {
      font-size: 11px;
      color: var(--text-dim);
      padding: 4px 0;
      letter-spacing: 0.3px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .stack-item::before {
      content: '';
      display: inline-block;
      width: 3px;
      height: 3px;
      background: var(--accent);
      opacity: 0.4;
      border-radius: 50%;
      flex-shrink: 0;
    }

    /* ─── MISSION BRIEF MODAL ─── */
    .modal-overlay {
      position: fixed; inset: 0;
      background: rgba(4,7,14,0.82);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      z-index: 1500;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }

    .modal-overlay.open { display: flex; }

    .modal-panel {
      position: relative;
      width: 100%;
      max-width: 580px;
      max-height: 86vh;
      overflow-y: auto;
      background: var(--bg-2);
      border: 1px solid var(--border);
      padding: 34px 38px 30px;
      box-shadow: 0 0 60px rgba(6,182,212,0.12), 0 24px 60px rgba(0,0,0,0.6);
      animation: modal-in 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
    }

    @keyframes modal-in {
      from { opacity: 0; transform: translateY(14px) scale(0.97); }
      to   { opacity: 1; transform: none; }
    }

    /* top scan line */
    .modal-panel::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--accent), transparent);
      opacity: 0.6;
    }

    /* corner brackets */
    .modal-panel .mc {
      position: absolute;
      width: 18px; height: 18px;
      border-color: var(--accent);
      border-style: solid;
      opacity: 0.8;
      pointer-events: none;
    }
    .modal-panel .mc1 { top:0;    left:0;  border-width: 2px 0 0 2px; }
    .modal-panel .mc2 { top:0;    right:0; border-width: 2px 2px 0 0; }
    .modal-panel .mc3 { bottom:0; left:0;  border-width: 0 0 2px 2px; }
    .modal-panel .mc4 { bottom:0; right:0; border-width: 0 2px 2px 0; }

    .modal-close-x {
      position: absolute;
      top: 10px; right: 10px;
      width: 34px; height: 34px;
      background: transparent;
      border: 1px solid transparent;
      color: var(--text-dim);
      font-family: 'JetBrains Mono', monospace;
      font-size: 14px;
      line-height: 1;
      cursor: pointer;
      transition: color 0.2s, border-color 0.2s;
    }

    .modal-close-x:hover,
    .modal-close-x:focus-visible { color: var(--accent); border-color: var(--border); outline: none; }

    .modal-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      padding-right: 30px;
      margin-bottom: 18px;
    }

    .modal-brief {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      color: var(--accent);
      letter-spacing: 3px;
      text-transform: uppercase;
    }

    .modal-cat {
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px;
      color: var(--accent-2);
      letter-spacing: 3px;
      text-transform: uppercase;
    }

    .modal-title {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: clamp(28px, 5vw, 40px);
      font-weight: 900;
      line-height: 1.05;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      color: var(--text);
      margin-bottom: 16px;
    }

    .modal-div { height: 1px; background: var(--border); margin-bottom: 18px; }

    .modal-desc {
      font-size: 13.5px;
      color: #8B9CB0;
      line-height: 1.95;
      letter-spacing: 0.3px;
      margin-bottom: 26px;
    }

    .modal-foot {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .modal-hint {
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px;
      color: var(--text-dim);
      letter-spacing: 2px;
      text-transform: uppercase;
      margin-left: auto;
    }

    .cta-btn.sm { font-size: 15px; padding: 11px 26px; }

    @media (max-width: 700px) {
      .modal-panel { padding: 26px 22px 24px; }
      .modal-hint { display: none; }
    }

    /* ─── REDUCED MOTION ─── */
    @media (prefers-reduced-motion: reduce) {
      .title::before, .title::after { animation: none; }
      .blink-dot, .glow, .glow-2 { animation: none; }
      .modal-panel { animation: none; }
    }

/* ═══════════════════ SITE NAV (all pages) ═══════════════════ */
.tb-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 4px;
}

.tb-brand img { height: 20px; width: auto; border-radius: 4px; display: block; }

.tb-nav { display: flex; gap: 22px; flex-wrap: wrap; }

.tb-nav a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.tb-nav a:hover,
.tb-nav a.active { color: var(--accent); }

@media (max-width: 700px) {
  .top-bar { flex-wrap: wrap; row-gap: 8px; }
  .tb-status { display: none; }
  .tb-nav { gap: 14px; }
}

/* ═══════════════════ SUBPAGE SCAFFOLD ═══════════════════ */
.page-wrap {
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  padding: 56px 40px 80px;
}

.page-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--accent-2);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.page-eyebrow::before { content: '▶  '; }

.page-h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(42px, 9vw, 72px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}

.page-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 44px;
}

.page-content h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  margin: 40px 0 14px;
}

.page-content h2::before { content: '// '; color: var(--accent); }

.page-content h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  margin: 26px 0 10px;
}

.page-content p {
  font-size: 14px;
  color: #8B9CB0;
  line-height: 1.95;
  letter-spacing: 0.2px;
  margin-bottom: 14px;
}

.page-content ul, .page-content ol { margin: 0 0 16px 20px; }

.page-content li {
  font-size: 14px;
  color: #8B9CB0;
  line-height: 1.9;
  margin-bottom: 6px;
}

.page-content li::marker { color: var(--accent); }

.page-content a { color: var(--accent); text-decoration: none; }
.page-content a:hover { text-decoration: underline; }

.page-content strong { color: var(--text); font-weight: 500; }

.page-content blockquote {
  border-left: 2px solid var(--accent);
  background: var(--bg-2);
  padding: 12px 18px;
  margin: 0 0 16px;
}

.page-content blockquote p:last-child { margin-bottom: 0; }

.page-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 6px;
  color: var(--green);
}

.page-content pre {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px 18px;
  overflow-x: auto;
  margin: 0 0 16px;
}

.page-content pre code { background: none; border: none; padding: 0; }

.page-content img { max-width: 100%; height: auto; border: 1px solid var(--border); }

.page-content hr { border: none; height: 1px; background: var(--border); margin: 28px 0; }

/* ─── PROCESS STEPS (about) ─── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 20px 0 10px;
}

.step { background: var(--bg-2); padding: 20px; }

.step-n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.step-t {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}

.step-d { font-size: 12px; color: #8B9CB0; line-height: 1.8; }

/* ─── INFO GRID (contact) ─── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 44px;
}

.info-cell { background: var(--bg-2); padding: 18px 20px; }

.info-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.info-val, .info-val a {
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.3px;
}

.info-val a:hover { color: var(--accent); }

/* ─── CTA PANEL ─── */
.cta-panel {
  position: relative;
  border: 1px solid var(--border);
  background: var(--bg-2);
  padding: 28px 30px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.cta-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.cta-panel-t {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
}

.cta-panel-d { font-size: 13px; color: #8B9CB0; margin-top: 4px; }

/* ─── ERROR / 404 ─── */
.err-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

/* ─── BLOG LIST ─── */
.post-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); }

.post-item {
  display: block;
  background: var(--bg-2);
  padding: 22px 26px;
  text-decoration: none;
  transition: background 0.18s;
  position: relative;
}

.post-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0%; height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.post-item:hover { background: var(--surface); }
.post-item:hover::after { width: 100%; }

.post-item-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.post-item-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
  transition: color 0.18s;
}

.post-item:hover .post-item-title { color: var(--accent); }

.post-item-desc { font-size: 13px; color: #8B9CB0; line-height: 1.8; }

.post-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.post-meta .sep { color: var(--border); padding: 0 8px; }

.back-link {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent); }

@media (max-width: 700px) {
  .page-wrap { padding: 40px 20px 60px; }
}

/* ─── CUSTOM DROPDOWN (contact category) ─── */
.nx-dd { position: relative; }

.nx-dd-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  text-align: left;
  padding: 13px 16px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.nx-dd-btn:focus-visible,
.nx-dd.open .nx-dd-btn { border-color: rgba(6,182,212,0.4); }

.nx-dd-arrow {
  font-size: 10px;
  color: var(--text-dim);
  transition: transform 0.2s, color 0.2s;
  flex-shrink: 0;
}

.nx-dd.open .nx-dd-arrow { transform: rotate(180deg); color: var(--accent); }

.nx-dd-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  box-shadow: 0 0 40px rgba(6,182,212,0.08), 0 18px 50px rgba(0,0,0,0.6);
  z-index: 60;
  max-height: 320px;
  overflow-y: auto;
  display: none;
}

.nx-dd.open .nx-dd-panel { display: block; animation: dd-in 0.15s ease; }

@keyframes dd-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* top scan line, matching the modal */
.nx-dd-panel::before {
  content: '';
  position: sticky;
  top: 0;
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.nx-dd-panel::-webkit-scrollbar { width: 8px; }
.nx-dd-panel::-webkit-scrollbar-track { background: var(--bg-2); }
.nx-dd-panel::-webkit-scrollbar-thumb { background: var(--border); }
.nx-dd-panel::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

.nx-dd-group {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 11px 16px 7px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-left: 2px solid rgba(6,182,212,0.45);
}

.nx-dd-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 13px;
  color: #8B9CB0;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  outline: none;
}

.nx-dd-opt::before {
  content: '▶';
  font-size: 8px;
  color: transparent;
  transition: color 0.15s;
  flex-shrink: 0;
}

.nx-dd-opt:hover,
.nx-dd-opt:focus-visible { background: var(--surface); color: var(--text); }
.nx-dd-opt:hover::before,
.nx-dd-opt:focus-visible::before { color: var(--accent); }

.nx-dd-opt.sel { color: var(--accent); }
.nx-dd-opt.sel::before { color: var(--accent); }
