/* ============================================================
   M. Shahmeer — portfolio
   Theme: maths notebook. Squared paper, ruled margin, biro ink.

   PERFORMANCE NOTE: there is deliberately not a single blur() or
   backdrop-filter in this file. The paper grid is a repeating
   gradient, which the compositor draws essentially for free —
   unlike the large blurred shapes this replaced.
   ============================================================ */

/* ---------- tokens ---------- */
:root{
  --paper:#fbfaf4;          /* page */
  --paper-2:#f5f3ea;        /* slightly aged band */
  --card:#fffefa;           /* index card */

  --rule:#aab2bb;           /* the printed squares */
  --rule-strong:#7c8792;    /* every 5th line, noticeably darker */
  --margin-line:#d98b85;    /* the red margin rule */

  --ink:#1e2a38;            /* main writing */
  --ink-2:#4a5a6b;          /* secondary */
  --ink-3:#8494a3;          /* faint */
  --ink-blue:#2b4c8c;       /* biro */
  --ink-red:#c23b3b;        /* red pen */
  --pencil:#6b7280;

  --highlight:#fff3a3;      /* highlighter */
  --tape:rgba(226,217,186,.75);

  --r:6px;
  --r-lg:10px;
  --wrap:1140px;
  --ease:cubic-bezier(.22,.61,.36,1);

  --sq:38px;                /* one square of the paper */
}

/* ---------- vendored fonts ----------
   Local files, not a CDN, so the page never waits on someone else's
   server. Both are tiny and swap in without blocking first paint. */
@font-face{
  font-family:"Share Tech Mono";
  src:url("../fonts/sharetechmono.woff2") format("woff2");
  font-weight:400;font-style:normal;font-display:swap;
}
@font-face{
  font-family:"Orbitron";
  src:url("../fonts/orbitron.woff2") format("woff2");
  font-weight:400 900;font-style:normal;font-display:swap;
}

*,*::before,*::after{box-sizing:border-box}

html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
html.lenis{scroll-behavior:auto}

/* ---------- the paper ----------
   Two stacked repeating gradients: fine squares, then a heavier line
   every fifth square, exactly like squared exercise paper. Fixed
   attachment so the page reads as one continuous sheet while scrolling. */
body{
  margin:0;
  color:var(--ink);
  font:400 16px/1.7 "Segoe UI",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;

  background-color:var(--paper);
  background-image:
    linear-gradient(var(--rule) 1px,transparent 1px),
    linear-gradient(90deg,var(--rule) 1px,transparent 1px),
    linear-gradient(var(--rule-strong) 1px,transparent 1px),
    linear-gradient(90deg,var(--rule-strong) 1px,transparent 1px);
  background-size:
    var(--sq) var(--sq),
    var(--sq) var(--sq),
    calc(var(--sq)*5) calc(var(--sq)*5),
    calc(var(--sq)*5) calc(var(--sq)*5);
  background-position:-1px -1px;
  /* Deliberately NOT background-attachment:fixed. Fixed attachment forces
     the whole background to repaint on every scroll frame, which is one of
     the few genuinely expensive things left — and it is punishing on
     machines with no GPU driver. The grid tiles seamlessly, so scrolling
     it with the page looks the same and costs nothing. It also reads more
     like real paper: the sheet moves with you. */
}

/* the red margin rule down the left, like a real exercise book */
body::before{
  content:"";position:fixed;top:0;bottom:0;left:clamp(14px,4vw,64px);
  width:2px;background:var(--margin-line);opacity:.55;
  z-index:1;pointer-events:none;
}

img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}

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

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

.wrap{width:100%;max-width:var(--wrap);margin:0 auto;padding:0 clamp(26px,6vw,80px);position:relative;z-index:2}
.gold{color:var(--ink-blue)}

.skip{position:absolute;left:-9999px;top:0;z-index:200;
      background:var(--ink-blue);color:#fff;padding:12px 20px;font-weight:600}
.skip:focus{left:12px;top:12px}

/* ---------- hand-drawn underline ----------
   A slightly irregular border-radius reads as a pen stroke rather than
   a ruled line. Cheap: no image, no filter. */
.uline{position:relative;display:inline-block}
.uline::after{
  content:"";position:absolute;left:-2%;right:-2%;bottom:-4px;height:6px;
  border-bottom:2.5px solid var(--ink-red);
  border-radius:60% 40% 55% 45%/100% 100% 40% 40%;
  opacity:.7;
}

/* highlighter marker */
.mark{
  background:linear-gradient(var(--highlight),var(--highlight));
  background-size:100% .62em;
  background-position:0 .72em;
  background-repeat:no-repeat;
  padding:0 .12em;
}

/* ---------- scroll progress ---------- */
.prog{position:fixed;inset:0 0 auto 0;height:3px;z-index:120;background:transparent}
.prog-bar{
  display:block;height:100%;width:100%;
  background:var(--ink-red);
  transform:scaleX(0);transform-origin:0 50%;
  opacity:.8;
}

/* ============================================================
   HEADER
   ============================================================ */
.hdr{
  position:fixed;inset:0 0 auto 0;z-index:110;
  border-bottom:1px solid transparent;
  transition:background .3s var(--ease),border-color .3s var(--ease),box-shadow .3s var(--ease);
}
/* Opaque, not translucent — no backdrop-filter, which was recompositing
   the header area on every scroll frame. */
.hdr.stuck{
  background:var(--paper);
  border-bottom:1px solid var(--rule-strong);
  box-shadow:0 1px 0 rgba(30,42,56,.04);
}
.hdr-in{display:flex;align-items:center;justify-content:space-between;height:64px}

.brand{display:flex;align-items:center;gap:10px;font-weight:700;letter-spacing:-.01em}
.brand-mark{
  width:26px;height:26px;flex:none;
  border:2px solid var(--ink-blue);
  border-radius:50% 48% 52% 50%/50% 52% 48% 50%;   /* hand-drawn circle */
  position:relative;
}
.brand-mark::after{
  content:"S";position:absolute;inset:0;
  display:grid;place-items:center;
  font-size:14px;font-weight:700;color:var(--ink-blue);
}
.brand-tx{font-size:16.5px}

.nav{display:flex;align-items:center;gap:28px}
.nav a{font-size:14.5px;color:var(--ink-2);position:relative;transition:color .2s var(--ease)}
.nav a::after{
  content:"";position:absolute;left:0;bottom:-5px;height:2px;width:100%;
  background:var(--ink-red);
  border-radius:60% 40% 55% 45%/100% 100% 40% 40%;
  transform:scaleX(0);transform-origin:100% 50%;
  transition:transform .3s var(--ease);
}
.nav a:hover,.nav a.on{color:var(--ink)}
.nav a:hover::after,.nav a.on::after{transform:scaleX(1);transform-origin:0 50%}

.nav .nav-cta{
  color:#fff;background:var(--ink-blue);
  padding:9px 18px;border-radius:var(--r);font-weight:600;
  box-shadow:2px 2px 0 var(--ink);
  transition:transform .18s var(--ease),box-shadow .18s var(--ease);
}
.nav .nav-cta::after{display:none}
.nav .nav-cta:hover{transform:translate(-1px,-1px);box-shadow:3px 3px 0 var(--ink)}
.nav .nav-cta:active{transform:translate(1px,1px);box-shadow:1px 1px 0 var(--ink)}

.nav-toggle{display:none;width:42px;height:42px;background:none;border:0;padding:10px;cursor:pointer}
.nav-toggle span{
  display:block;height:2px;background:var(--ink);margin:5px 0;border-radius:2px;
  transition:transform .3s var(--ease),opacity .2s var(--ease);
}

/* Buttons as stickers: hard offset shadow, no blur. */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:13px 26px;border-radius:var(--r);
  font-size:15px;font-weight:600;
  border:2px solid var(--ink);cursor:pointer;
  transition:transform .18s var(--ease),box-shadow .18s var(--ease);
}
.btn-p{background:var(--ink-blue);color:#fff;box-shadow:3px 3px 0 var(--ink)}
.btn-s{background:var(--card);color:var(--ink);box-shadow:3px 3px 0 var(--ink)}
.btn:hover{transform:translate(-1px,-1px);box-shadow:5px 5px 0 var(--ink)}
.btn:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink)}
.btn.full{width:100%}
/* ============================================================
   SECTIONS
   ============================================================ */
.sec{padding:clamp(64px,9vw,110px) 0;position:relative}
.sec-alt{background:var(--paper-2)}

.sec-hd{max-width:62ch;margin-bottom:clamp(34px,5vw,52px)}
.sec-hd.center{margin-left:auto;margin-right:auto;text-align:center}

.kicker{
  display:inline-block;font-family:"Orbitron",system-ui,sans-serif;
  font-size:11px;color:var(--ink-red);margin-bottom:13px;
  font-weight:700;letter-spacing:.16em;text-transform:uppercase;
}
.sec-t{margin:0 0 14px;font-size:clamp(1.6rem,4.2vw,2.7rem);line-height:1.14;font-weight:700;letter-spacing:-.025em}
.sec-p{margin:0;color:var(--ink-2);font-size:clamp(.97rem,2vw,1.06rem)}

/* ---------- reveal (scoped to .js so no-JS still shows content) ---------- */
.js .reveal{
  opacity:0;transform:translateY(22px);
  transition:opacity .65s var(--ease),transform .65s var(--ease);
  transition-delay:var(--d,0s);
}
.js .reveal.in{opacity:1;transform:none}

.grid-3{display:grid;gap:20px;grid-template-columns:1fr}

/* ---------- service card = index card ---------- */
.card{
  background:var(--card);
  border:2px solid var(--ink);
  border-radius:var(--r-lg);
  padding:26px 24px;
  position:relative;
  box-shadow:4px 4px 0 rgba(30,42,56,.14);
  transition:transform .2s var(--ease),box-shadow .2s var(--ease);
}
.card:hover{transform:translate(-2px,-2px);box-shadow:7px 7px 0 rgba(30,42,56,.18)}

.card-ic{
  width:44px;height:44px;border-radius:var(--r);
  display:grid;place-items:center;margin-bottom:18px;
  border:2px solid var(--ink-blue);color:var(--ink-blue);
  background:#eef3fb;
}
.card-ic svg{width:22px;height:22px}
.card-t{margin:0 0 9px;font-size:1.16rem;font-weight:700;letter-spacing:-.01em}
.card-p{margin:0;color:var(--ink-2);font-size:.95rem;line-height:1.7}

/* ---------- project card = taped photo ---------- */
.proj{
  background:var(--card);
  border:2px solid var(--ink);
  border-radius:var(--r-lg);
  overflow:hidden;display:flex;flex-direction:column;
  box-shadow:4px 4px 0 rgba(30,42,56,.14);
  transition:transform .2s var(--ease),box-shadow .2s var(--ease);
}
.proj:hover{transform:translate(-2px,-2px);box-shadow:7px 7px 0 rgba(30,42,56,.18)}

.proj-vis{
  aspect-ratio:16/10;position:relative;overflow:hidden;
  border-bottom:2px solid var(--ink);
  background:var(--paper-2);
}
.proj-vis img{width:100%;height:100%;object-fit:cover;transition:transform .5s var(--ease)}
.proj:hover .proj-vis img{transform:scale(1.04)}

/* a strip of masking tape across the top corner */
.proj-vis::before{
  content:"";position:absolute;top:12px;left:-26px;
  width:96px;height:22px;background:var(--tape);
  transform:rotate(-38deg);z-index:2;
  border-left:1px solid rgba(0,0,0,.05);border-right:1px solid rgba(0,0,0,.05);
}

/* generated tile when no screenshot is supplied — squared paper + initial */
.proj-vis.gen{
  display:grid;place-items:center;
  background-color:hsl(var(--h) 32% 95%);
  background-image:
    linear-gradient(var(--rule) 1px,transparent 1px),
    linear-gradient(90deg,var(--rule) 1px,transparent 1px);
  background-size:18px 18px;
}
.proj-mono{
  position:relative;z-index:1;
  font-size:3.4rem;font-weight:700;color:var(--ink-blue);opacity:.5;letter-spacing:-.04em;
}

.proj-body{padding:22px 22px 24px;display:flex;flex-direction:column;flex:1}
.proj-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.proj-tag{font-size:12px;color:var(--ink-red);font-weight:600}
.proj-yr{font-size:12.5px;color:var(--ink-3)}
.proj-t{margin:0 0 9px;font-size:1.14rem;font-weight:700;letter-spacing:-.01em}
.proj-p{margin:0 0 16px;color:var(--ink-2);font-size:.92rem;line-height:1.68;flex:1}

.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{
  font-size:11.5px;padding:4px 10px;border-radius:var(--r);
  background:#eef3fb;border:1px solid var(--rule-strong);color:var(--ink-2);
}
.proj-link{margin-top:16px;font-size:14px;font-weight:600;color:var(--ink-blue);display:inline-flex;align-items:center;gap:6px}
.proj-link::after{content:"\2192";transition:transform .2s var(--ease)}
.proj-link:hover::after{transform:translateX(4px)}

/* ---------- process = a checklist ---------- */
.steps{display:grid;gap:0}
.step{
  display:grid;grid-template-columns:44px 1fr;gap:16px;
  padding:26px 0;border-bottom:1.5px dashed var(--rule-strong);
}
.step:first-child{border-top:1.5px dashed var(--rule-strong)}
.step-n{
  width:28px;height:28px;flex:none;
  border:2px solid var(--ink-blue);border-radius:var(--r);
  display:grid;place-items:center;
  font-size:.8rem;font-weight:700;color:var(--ink-blue);
  background:var(--card);
}
.step-t{margin:0 0 7px;font-size:1.15rem;font-weight:700}
.step-p{margin:0;color:var(--ink-2);font-size:.95rem;line-height:1.7;max-width:64ch}

/* ---------- about ---------- */
.about{display:grid;gap:36px;grid-template-columns:1fr}
.about-tx p{color:var(--ink-2);margin:0 0 15px;max-width:60ch}

.tech-wrap{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}
.tech{
  font-size:12.5px;padding:6px 13px;border-radius:var(--r);
  border:1.5px solid var(--rule-strong);color:var(--ink-2);background:var(--card);
  transition:border-color .2s var(--ease),color .2s var(--ease);
}
.tech:hover{border-color:var(--ink-blue);color:var(--ink-blue)}

/* the availability card = a sticky note */
.about-card{
  position:relative;align-self:start;
  background:#fdf6c9;
  border:1px solid rgba(0,0,0,.06);
  border-radius:2px;
  box-shadow:4px 5px 0 rgba(30,42,56,.12);
  transform:rotate(-1.1deg);
  transition:transform .25s var(--ease);
}
.about-card:hover{transform:rotate(0deg)}
.ac-glow{
  /* the folded corner */
  position:absolute;right:0;bottom:0;width:26px;height:26px;
  background:linear-gradient(135deg,transparent 50%,rgba(0,0,0,.08) 50%);
  pointer-events:none;
}
/* a piece of tape holding the note to the page */
.about-card::before{
  content:"";position:absolute;top:-11px;left:50%;
  width:86px;height:22px;margin-left:-43px;
  background:var(--tape);transform:rotate(-1.6deg);
}
.ac-in{position:relative;padding:30px 26px}
.ac-k{font-size:12.5px;color:var(--ink-red);font-weight:700}
.ac-t{margin:10px 0 8px;font-size:1.26rem;font-weight:700;line-height:1.3}
.ac-p{margin:0 0 22px;color:var(--ink-2);font-size:.93rem}
.ac-tel{display:block;text-align:center;margin-top:12px;font-size:14px;color:var(--ink-2)}
.ac-tel:hover{color:var(--ink-blue)}

/* ---------- form ---------- */
.form{max-width:700px;margin:0 auto}
.f-row{display:grid;gap:16px;grid-template-columns:1fr}
.f{display:block;margin-bottom:16px}
.f>span{display:block;font-size:13px;color:var(--ink-2);margin-bottom:7px;font-weight:600}

/* Inputs written on a ruled line rather than boxed. */
.f input,.f select,.f textarea{
  width:100%;padding:11px 12px;
  background:var(--card);
  border:2px solid var(--ink);
  border-radius:var(--r);
  transition:border-color .2s var(--ease),box-shadow .2s var(--ease);
}
.f input::placeholder,.f textarea::placeholder{color:var(--ink-3)}
.f input:focus,.f select:focus,.f textarea:focus{
  outline:none;border-color:var(--ink-blue);box-shadow:3px 3px 0 rgba(43,76,140,.18);
}
.f textarea{resize:vertical;
  background-image:repeating-linear-gradient(var(--card) 0 27px,var(--rule) 27px 28px);
  line-height:28px;
}
.f select{appearance:none;cursor:pointer}

.f-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:6px}
.f-note{margin:16px 0 0;font-size:13px;color:var(--ink-3)}

/* ---------- footer ---------- */
.ftr{border-top:2px solid var(--ink);padding:40px 0 26px;background:var(--paper-2)}
.ftr-in{display:flex;flex-direction:column;gap:20px;justify-content:space-between;padding-bottom:22px}
.ftr-l p{margin:5px 0 0;color:var(--ink-3);font-size:14px}
.ftr-r{display:flex;flex-wrap:wrap;gap:20px}
.ftr-r a{color:var(--ink-2);font-size:14.5px;transition:color .2s var(--ease)}
.ftr-r a:hover{color:var(--ink-blue)}
.ftr-b{border-top:1.5px dashed var(--rule-strong);padding-top:20px;font-size:13px;color:var(--ink-3)}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width:640px){
  .grid-3{grid-template-columns:repeat(2,1fr)}
  .f-row{grid-template-columns:1fr 1fr}
  .ftr-in{flex-direction:row;align-items:center}
}
@media (min-width:960px){
  .grid-3{grid-template-columns:repeat(3,1fr);gap:22px}
  .step{grid-template-columns:64px 1fr;gap:24px}
  .about{grid-template-columns:1.55fr 1fr;gap:52px;align-items:start}
}

/* ---------- mobile nav ---------- */
@media (max-width:859px){
  .nav-toggle{display:block}
  .nav{
    position:fixed;inset:0;flex-direction:column;justify-content:center;gap:6px;
    background:var(--paper);           /* opaque: no backdrop-filter */
    background-image:
      linear-gradient(var(--rule) 1px,transparent 1px),
      linear-gradient(90deg,var(--rule) 1px,transparent 1px);
    background-size:var(--sq) var(--sq);
    opacity:0;visibility:hidden;
    transition:opacity .3s var(--ease),visibility .3s;
  }
  .nav a{
    font-size:1.45rem;padding:13px 0;color:var(--ink);
    opacity:0;transform:translateY(12px);
    transition:opacity .35s var(--ease),transform .35s var(--ease);
  }
  .nav a::after{display:none}
  .nav .nav-cta{margin-top:14px;font-size:1rem;padding:12px 28px}

  body.nav-open{overflow:hidden}
  body.nav-open .nav{opacity:1;visibility:visible}
  body.nav-open .nav a{opacity:1;transform:none}
  body.nav-open .nav a:nth-child(1){transition-delay:.05s}
  body.nav-open .nav a:nth-child(2){transition-delay:.1s}
  body.nav-open .nav a:nth-child(3){transition-delay:.15s}
  body.nav-open .nav a:nth-child(4){transition-delay:.2s}
  body.nav-open .nav a:nth-child(5){transition-delay:.25s}

  body.nav-open .nav-toggle{position:relative;z-index:1}
  body.nav-open .nav-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  body.nav-open .nav-toggle span:nth-child(2){opacity:0}
  body.nav-open .nav-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

  .stats{gap:26px}
}

/* ---------- small screens: lighten the paper ----------
   Coarser squares (fewer gradient repeats to rasterise), and drop the
   protractor ring and dashed circle, which are the priciest fallback bits. */
@media (max-width:860px){
  body{--sq:30px}
  .grid,.o2{display:none}
}

/* ---------- print ---------- */
@media print{
  .hdr,.prog,.scroll-hint,.hero-bg,.nav-toggle,.f-actions,.skip{display:none!important}
  html,body{background:#fff!important}
  body::before{display:none!important}
  .sec,.sec-alt,.ftr,.card,.proj,.about-card{background:#fff!important}
  .js .reveal,.js .reveal.in{opacity:1!important;transform:none!important}
  .js .tagline .word-in{opacity:1!important;transform:none!important}
  .hero{min-height:auto!important;padding:14px 0!important}
  .sys{grid-template-columns:1fr!important;grid-template-areas:none!important}
  .wires,.bits,.vortex-swirl,.boot{display:none!important}
  .orbits,.compass,.note-tag{display:none!important}
  .portrait{width:150px!important;height:150px!important;animation:none!important;box-shadow:none!important}
  .figure-stage{--size:150px!important}
  .card,.proj,.about-card,.btn{box-shadow:none!important}
  .about-card{transform:none!important}
  .grid-3{grid-template-columns:repeat(2,1fr)!important}
  .proj,.card,.step{break-inside:avoid;page-break-inside:avoid}
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.001ms!important;animation-iteration-count:1!important;
    transition-duration:.001ms!important;
  }
  .js .reveal{opacity:1;transform:none}
  .js .tagline .word-in{transform:none;opacity:1}

  /* The orbits stop, but the badges stay exactly where they were placed —
     the ring is still readable as a ring, it simply does not turn. */
  .orbit,.tb-spin,.portrait,.compass{animation:none!important}
}

/* ============================================================
   THE MACHINES — service and project cards drawn as monitors.
   Dark screen, title bar, stand. Static: no animation on any of
   them, so fifteen cards cost the same as one.
   ============================================================ */

/* ---------- shared chrome ---------- */
.mbar{
  display:flex;align-items:center;gap:9px;
  padding:8px 12px;
  background:#17222f;
  border-bottom:1px solid rgba(255,255,255,.09);
}
.mdots{display:flex;gap:5px;flex:none}
.mdots i{width:8px;height:8px;border-radius:50%;display:block}
.mdots i:nth-child(1){background:#e0605c}
.mdots i:nth-child(2){background:#e0b25c}
.mdots i:nth-child(3){background:#57c98a}
.mfile{
  font-family:"Share Tech Mono",ui-monospace,monospace;
  font-size:10.5px;letter-spacing:.06em;color:#7d93ab;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}

/* the little stand under each machine */
.mstand{width:16%;height:11px;margin:0 auto;background:var(--ink);border-radius:0 0 3px 3px}
.mbase{width:36%;height:7px;margin:0 auto 2px;background:var(--ink);border-radius:0 0 6px 6px}

/* ---------- services as machines ---------- */
.card{
  background:#0d1420;
  border:2.5px solid var(--ink);
  border-radius:13px;
  padding:0;
  overflow:hidden;
  box-shadow:5px 6px 0 rgba(30,42,56,.2);
  color:#c6dcf0;
}
.card:hover{transform:translate(-2px,-2px);box-shadow:8px 8px 0 rgba(30,42,56,.26)}

/* screen glare + scanlines, gradients only */
.card-screen{position:relative;padding:22px 20px 24px}
.card-screen::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:
    linear-gradient(125deg,rgba(255,255,255,.05) 0%,transparent 40%),
    repeating-linear-gradient(180deg,rgba(255,255,255,.028) 0 1px,transparent 1px 3px);
}
.card-ic{
  width:42px;height:42px;border-radius:9px;
  display:grid;place-items:center;margin-bottom:16px;
  border:1.5px solid rgba(56,189,248,.42);
  color:var(--hud-cy);
  background:rgba(56,189,248,.08);
}
.card-ic svg{width:20px;height:20px}
.card-t{
  margin:0 0 9px;font-family:"Orbitron",system-ui,sans-serif;
  font-size:.94rem;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;color:#e8f2fb;
}
.card-p{margin:0;color:#93b0c9;font-size:.9rem;line-height:1.72}

/* ---------- projects as machines ---------- */
.proj{
  background:#0d1420;
  border:2.5px solid var(--ink);
  border-radius:13px;
  overflow:hidden;
  box-shadow:5px 6px 0 rgba(30,42,56,.2);
}
.proj:hover{transform:translate(-2px,-2px);box-shadow:8px 8px 0 rgba(30,42,56,.26)}

.proj-vis{border-bottom:1px solid rgba(255,255,255,.09);background:#0a111c}
.proj-vis::before{display:none}          /* the masking-tape strip is gone */

/* generated tile: a wireframe screen rather than paper */
.proj-vis.gen{
  background-color:#0b1523;
  background-image:
    linear-gradient(rgba(56,189,248,.12) 1px,transparent 1px),
    linear-gradient(90deg,rgba(56,189,248,.12) 1px,transparent 1px);
  background-size:22px 22px;
}
.proj-vis.gen::after{
  content:"";position:absolute;inset:0;
  background:radial-gradient(circle at 50% 45%,rgba(56,189,248,.16),transparent 62%);
}
.proj-mono{
  position:relative;z-index:1;
  font-family:"Orbitron",monospace;font-size:2.6rem;font-weight:800;
  color:var(--hud-cy);opacity:.55;letter-spacing:.04em;
}

.proj-body{padding:20px 20px 22px;position:relative}
.proj-body::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:repeating-linear-gradient(180deg,rgba(255,255,255,.022) 0 1px,transparent 1px 3px);
}
.proj-tag{
  font-family:"Orbitron",monospace;font-size:9.5px;font-weight:700;
  letter-spacing:.14em;color:var(--hud-cy);text-transform:uppercase;
}
.proj-yr{font-family:"Share Tech Mono",monospace;font-size:11.5px;color:#6d8ba5}
.proj-t{
  margin:0 0 9px;font-family:"Orbitron",system-ui,sans-serif;
  font-size:.95rem;font-weight:700;letter-spacing:.05em;
  text-transform:uppercase;color:#e8f2fb;
}
.proj-p{margin:0 0 16px;color:#93b0c9;font-size:.89rem;line-height:1.7}
.chip{
  background:rgba(56,189,248,.09);
  border:1px solid rgba(56,189,248,.24);
  color:#a8c8e2;font-family:"Share Tech Mono",monospace;
  font-size:11px;letter-spacing:.04em;
}
.proj-link{
  color:var(--hud-cy);font-family:"Orbitron",monospace;
  font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
}

/* Section bands sit behind dark cards now — keep them light and quiet. */
.sec-alt{background:rgba(243,241,232,.92)}


/* ---------- the stack strip under the portal ---------- */
.portal-strip{
  display:flex;overflow:hidden;margin:18px auto 0;max-width:400px;
  padding:8px 0;border-radius:9px;
  background:#0a1420;border:1px solid rgba(56,189,248,.2);
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);
}
.portal-strip .strip-track i{width:17px;height:17px}

/* ============================================================
   EFFECTS BUDGET — CSS side.
   app.js stamps data-fx on <html>; these rules switch whole groups
   of ambient motion off rather than trusting that it is all cheap.
   ============================================================ */

/* will-change is deliberately narrow. Promoting many elements to
   their own layer costs memory and can be slower than not promoting
   at all, so only the four rings and the sweep get it. */
.fl{will-change:auto}

/* lite: rings keep turning, but slower, and the costly extras stop */
[data-fx="lite"] .p-sweep{display:none}
[data-fx="lite"] .strip-track{animation-duration:46s}
[data-fx="lite"] .w-node{animation:none;opacity:.7}
[data-fx="lite"] .orb{animation:none}

/* none: nothing ambient moves at all */
[data-fx="none"] .p-sweep::before,
[data-fx="none"] .strip-track,
[data-fx="none"] .w-node,
[data-fx="none"] .orb,
[data-fx="none"] .p-chip i,
[data-fx="none"] .eyebrow .dot,
[data-fx="none"] .mouse span{animation:none!important}
[data-fx="none"] .p-sweep{display:none}


/* ============================================================
   THE PORTAL SYSTEM
   Blue machine. One spacing scale, one panel geometry, one set
   of type sizes — every panel is built from the same constants
   so nothing can drift out of alignment.

   Performance: no blur(), no backdrop-filter. Only transform and
   opacity animate. Ambient motion is gated by data-fx.
   ============================================================ */
.hero{
  /* palette — exactly the values specified, nothing extra */
  --n0:#050a14;
  --n1:#071426;
  --n2:#0b1d36;
  --b1:#008cff;
  --b2:#00c8ff;
  --hi:#4ddcff;
  --vi:#7b5cff;              /* portal energy only */

  --line:rgba(0,200,255,.26);
  --line-2:rgba(0,200,255,.13);
  --tx:#cfe6f7;
  --tx-2:#7fa3c0;

  /* one spacing scale */
  --s1:6px; --s2:10px; --s3:14px; --s4:20px; --s5:28px;
  --pad:14px;                /* every panel uses this */
  --rad:10px;                /* every panel uses this */
  --panel-h:46px;            /* every nav module is exactly this tall */

  position:relative;
  min-height:100svh;
  display:flex;align-items:center;
  padding:clamp(64px,8vh,96px) 0 clamp(18px,3vh,34px);
  overflow:hidden;
  background:
    radial-gradient(120% 78% at 50% 44%,var(--n2) 0%,var(--n1) 46%,var(--n0) 82%),
    var(--n0);
  color:var(--tx);
}

/* ---------- background plane: neural net ---------- */
.neuro{
  position:absolute;inset:0;width:100%;height:100%;
  z-index:0;pointer-events:none;
  opacity:.9;
  transform:translate3d(var(--px-bg,0),var(--py-bg,0),0);
}

/* faint circuit grid, sits above the net, below the UI */
.hero::before{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background-image:
    linear-gradient(var(--line-2) 1px,transparent 1px),
    linear-gradient(90deg,var(--line-2) 1px,transparent 1px);
  background-size:60px 60px;opacity:.45;
  transform:translate3d(var(--px-bg,0),var(--py-bg,0),0);
  -webkit-mask-image:radial-gradient(105% 85% at 50% 50%,#000 20%,transparent 74%);
  mask-image:radial-gradient(105% 85% at 50% 50%,#000 20%,transparent 74%);
}

/* ---------- layout ---------- */
.sys{
  position:relative;z-index:2;
  width:100%;max-width:1240px;margin:0 auto;
  padding:0 clamp(14px,3vw,32px);
  display:grid;grid-template-columns:1fr;gap:var(--s3);
  transform:translate3d(var(--px-mid,0),var(--py-mid,0),0);
}

/* ---------- one panel treatment, used by everything ---------- */
.plate,.screen,.navmod,.console-bar{
  position:relative;
  background:linear-gradient(162deg,var(--n2),var(--n1));
  border:1px solid var(--line);
  border-radius:var(--rad);
}
.brk{position:absolute;width:8px;height:8px;border:1.5px solid var(--b2);opacity:.75}
.brk-tl{top:-1px;left:-1px;border-right:0;border-bottom:0}
.brk-tr{top:-1px;right:-1px;border-left:0;border-bottom:0}
.brk-bl{bottom:-1px;left:-1px;border-right:0;border-top:0}
.brk-br{bottom:-1px;right:-1px;border-left:0;border-top:0}

/* ---------- identity plate ---------- */
.plate-id{padding:var(--s2) var(--pad)}
.pl-name{
  display:block;font-family:"Orbitron",sans-serif;
  font-size:clamp(15px,1.5vw,20px);font-weight:800;letter-spacing:.11em;
  color:#eaf7ff;text-transform:uppercase;line-height:1.15;
}
.pl-role{
  display:block;margin-top:3px;
  font-family:"Share Tech Mono",monospace;font-size:10px;
  letter-spacing:.15em;color:var(--b2);text-transform:uppercase;
}

/* ---------- cables (foreground plane) ---------- */
.wires{
  position:absolute;inset:0;width:100%;height:100%;
  pointer-events:none;z-index:4;overflow:visible;
  transform:translate3d(var(--px-fg,0),var(--py-fg,0),0);
}
.w-case{fill:none;stroke:#0b1a2d;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.w-edge{fill:none;stroke:rgba(0,140,255,.22);stroke-width:6.5;stroke-linecap:round;stroke-linejoin:round}
.w-core{fill:none;stroke:rgba(0,200,255,.40);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.w-live{
  fill:none;stroke:var(--hi);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;
  opacity:0;transition:opacity .22s ease;
}
.w-clamp{fill:#0b1a2d;stroke:rgba(0,200,255,.32);stroke-width:1.2}
.w-plug{fill:#0b1d36;stroke:var(--b2);stroke-width:1.4}
.w-pulse{
  fill:none;stroke:#eafaff;stroke-width:3;stroke-linecap:round;
  opacity:0;stroke-dasharray:22 3000;
}
.wire-on .w-live{opacity:1}
.wire-on .w-pulse{opacity:.95;animation:runwire .58s linear}
.wire-on .w-plug{fill:#0d3550}
@keyframes runwire{from{stroke-dashoffset:0}to{stroke-dashoffset:-3022}}

/* ---------- navigation: identical modules ---------- */
/* The nav column is shorter than the portal beside it, so it can take
   real spacing without making the hero any taller. */
.navmods{display:grid;gap:26px;position:relative;z-index:5}
.navmod{
  height:var(--panel-h);                 /* fixed: no drift */
  display:flex;align-items:center;gap:var(--s2);
  padding:0 var(--pad);
  color:var(--tx);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease,background .2s ease;
}
.nm-n{
  font-family:"Share Tech Mono",monospace;font-size:10px;
  letter-spacing:.1em;color:var(--b2);opacity:.75;flex:none;width:2.2em;
}
.nm-t{
  font-family:"Orbitron",sans-serif;font-size:11px;font-weight:700;
  letter-spacing:.13em;text-transform:uppercase;
}
.nm-dots{margin-left:auto;display:flex;gap:4px;flex:none}
.nm-dots i{width:4px;height:4px;border-radius:50%;background:var(--line);transition:background .2s ease}

.navmod:hover,.navmod:focus-visible,.navmod.on{
  transform:translateX(4px);
  border-color:var(--b2);
  background:linear-gradient(162deg,#0e2949,var(--n1));
  box-shadow:0 0 18px rgba(0,200,255,.2);
}
.navmod:hover .nm-dots i,.navmod.on .nm-dots i{background:var(--hi)}
.navmod:hover .nm-t,.navmod.on .nm-t{color:#eaf7ff}

/* ============================================================
   THE PORTAL — four layers: machine, technology, energy, person
   ============================================================ */
.portal-wrap{display:grid;place-items:center;position:relative;z-index:3}
.portal{
  position:relative;
  width:min(74vw,var(--psize,400px));aspect-ratio:1;
  display:grid;place-items:center;
  transform:translate3d(var(--px-por,0),var(--py-por,0),0);
}
.pl{position:absolute;inset:0;width:100%;height:100%}

/* L1 · machine */
.pl-outer{overflow:visible;animation:spin 120s linear infinite;will-change:transform}
.pt-body{fill:none;stroke:#0d2138}
.pt-gap {fill:none;stroke:#16324f}
.pt-lamp{fill:none;stroke:var(--b2);opacity:.95}
.pt-rim {fill:none;stroke:var(--line)}
/* the machine adjusting itself: a slow, tiny settle, not a spin */
.plates{transform-origin:50% 50%;animation:settle 14s ease-in-out infinite}
@keyframes settle{
  0%,44%,100%{transform:rotate(0deg)}
  48%,92%    {transform:rotate(1.6deg)}
}

/* L2 · technology */
.pl-tech{animation:spin 74s linear infinite reverse;will-change:transform}
.tk-tick{fill:none;stroke:rgba(0,200,255,.4)}
.tk-scan{fill:none;stroke:var(--hi);opacity:.55}
.tk-node{fill:var(--b2)}

/* L3 · energy */
.en-well{
  width:68%;height:68%;inset:auto;border-radius:50%;
  background:
    radial-gradient(circle at 50% 46%,
      rgba(123,92,255,.26) 0%,
      rgba(0,140,255,.30) 26%,
      rgba(7,20,38,.90) 58%,
      var(--n0) 80%);
  box-shadow:0 0 40px rgba(0,200,255,.16) inset,0 0 30px rgba(0,140,255,.18);
  animation:portalpulse 6.5s ease-in-out infinite;
}
@keyframes portalpulse{
  0%,100%{transform:scale(1);opacity:1}
  50%    {transform:scale(1.022);opacity:.94}
}
.en-swirl{
  width:68%;height:68%;inset:auto;border-radius:50%;overflow:hidden;opacity:.5;
  -webkit-mask:radial-gradient(circle,#000 40%,transparent 72%);
  mask:radial-gradient(circle,#000 40%,transparent 72%);
}
.en-swirl::before{
  content:"";position:absolute;inset:-55%;
  background:conic-gradient(from 0deg,transparent 0 56%,rgba(77,220,255,.5) 74%,transparent 90%);
  animation:spin 13s linear infinite;will-change:transform;
}
/* electric arcs: dash sweeps, staggered so they read as random */
.en-arcs{overflow:visible;pointer-events:none}
.arc{
  fill:none;stroke:var(--hi);stroke-width:1.6;stroke-linecap:round;
  stroke-dasharray:16 300;opacity:0;
}
.a1{animation:arcrun 7s ease-in-out .6s infinite}
.a2{animation:arcrun 7s ease-in-out 3.1s infinite}
.a3{animation:arcrun 7s ease-in-out 5.2s infinite}
@keyframes arcrun{
  0%,100%{opacity:0;stroke-dashoffset:0}
  4%     {opacity:.85}
  16%    {opacity:0;stroke-dashoffset:-190}
}

/* the veil that puts the portrait *inside* the energy */
.en-veil{
  width:68%;height:68%;inset:auto;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle,
    rgba(0,200,255,.06) 0 34%,
    rgba(0,140,255,.14) 46%,
    rgba(7,20,38,.34) 62%,
    transparent 76%);
}

/* L4 · the person */
.pic{
  position:relative;z-index:3;
  width:62%;aspect-ratio:1;         /* larger; the rings still frame it */
  display:grid;place-items:center;
}
.pic-mask{
  position:relative;
  width:100%;height:100%;border-radius:50%;overflow:hidden;
  background:var(--n1);
}
.pic picture{display:contents}
/* object-fit + a square box: the portrait can never stretch */
.pic img{width:100%;height:100%;object-fit:cover;object-position:50% 42%;display:block}
.pic-rim{
  position:absolute;inset:-4%;border-radius:50%;pointer-events:none;
  border:1px solid rgba(77,220,255,.7);
  box-shadow:0 0 18px rgba(0,200,255,.35),0 0 0 5px rgba(0,140,255,.07);
}
.pic-scan{
  position:absolute;inset:0;border-radius:50%;pointer-events:none;
  background:repeating-linear-gradient(180deg,rgba(0,200,255,.09) 0 1px,transparent 1px 3px);
  opacity:.55;
}

/* particles, in front of the portrait */
.bits{position:absolute;inset:0;border-radius:50%;overflow:hidden;pointer-events:none;z-index:6}
.bit{
  position:absolute;font-family:"Share Tech Mono",monospace;font-size:10px;
  color:var(--hi);opacity:0;will-change:transform,opacity;
  animation:bitfall var(--bd,9s) linear var(--bdl,0s) infinite;
}
@keyframes bitfall{
  0%  {transform:translate3d(0,0,0) scale(1);opacity:0}
  12% {opacity:.6}
  74% {opacity:.32}
  100%{transform:translate3d(var(--bx,0),var(--by,0),0) scale(.3);opacity:0}
}

/* portal answers when the system is touched */
.portal.react .en-well{animation:portalkick .8s ease-out}
@keyframes portalkick{
  0%  {transform:scale(1)}
  28% {transform:scale(1.055);box-shadow:0 0 62px rgba(0,200,255,.34) inset,0 0 44px rgba(0,200,255,.3)}
  100%{transform:scale(1)}
}

/* ============================================================
   READOUTS — both panels share every constant
   ============================================================ */
.readouts{display:grid;gap:var(--s3);align-content:start}
.screen{padding:var(--pad)}
.scr-h{
  margin:0 0 var(--s2);
  font-family:"Orbitron",sans-serif;font-size:10px;font-weight:800;
  letter-spacing:.2em;color:var(--b2);text-transform:uppercase;
}
.scr-h::after{
  content:"";display:block;height:1px;margin-top:7px;
  background:linear-gradient(90deg,var(--line),transparent);
}

/* --- system output --- */
.out{list-style:none;margin:0;padding:0;display:grid;gap:var(--s2)}
.out li{
  display:grid;grid-template-columns:1fr auto;align-items:center;
  gap:3px var(--s2);
  padding-bottom:var(--s2);border-bottom:1px solid var(--line-2);
}
.out li:last-child{border-bottom:0;padding-bottom:0}
.out-l{
  grid-column:1/-1;order:-1;line-height:1;
  font-family:"Share Tech Mono",monospace;font-size:8.5px;
  letter-spacing:.14em;color:var(--tx-2);text-transform:uppercase;
}
.out-v{
  font-family:"Orbitron",monospace;font-size:clamp(17px,1.6vw,22px);
  font-weight:800;color:#fff;line-height:1;
}
.out-viz{width:50px;height:17px;display:block;overflow:visible;align-self:end}
.vz-stroke{fill:none;stroke:var(--b2);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;opacity:.85}
.vz-fill{fill:var(--b2);opacity:.7}
.vz-dim{fill:none;stroke:var(--line);stroke-width:2.4}
.vz-arc{fill:none;stroke:var(--b2);stroke-width:2.4;stroke-linecap:round}
.out li:hover .vz-stroke,.out li:hover .vz-fill,.out li:hover .vz-arc{stroke:var(--hi);fill:var(--hi);opacity:1}

/* --- core experience: two tidy columns --- */
.mods{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:1fr 1fr;gap:var(--s1) var(--s2);
}
.mods li{
  display:flex;align-items:center;gap:6px;
  font-family:"Share Tech Mono",monospace;font-size:9px;
  letter-spacing:.05em;color:var(--tx);text-transform:uppercase;
  padding:2px 0;cursor:default;line-height:1.25;
  white-space:nowrap;                /* labels are short enough to never wrap */
  transition:color .2s ease;
}
.mods .mdot{
  width:5px;height:5px;border-radius:50%;background:var(--b1);flex:none;
  box-shadow:0 0 0 0 rgba(0,200,255,.45);
  transition:background .2s ease,box-shadow .2s ease;
}
.mods li:hover{color:#eaf7ff}
.mods li:hover .mdot{background:var(--hi);box-shadow:0 0 10px 2px rgba(0,200,255,.5)}

/* ============================================================
   CONSOLE (foreground plane)
   ============================================================ */
.console-bar{
  display:flex;align-items:center;justify-content:space-between;gap:var(--s4);
  padding:var(--s2) var(--s4);
  overflow:hidden;
  transform:translate3d(var(--px-fg,0),var(--py-fg,0),0);
}
.cb-scan{
  position:absolute;left:0;right:0;top:0;height:26px;pointer-events:none;
  background:linear-gradient(180deg,rgba(0,200,255,.10),transparent);
  animation:cbscan 5.5s linear infinite;
}
@keyframes cbscan{0%{transform:translateY(-26px)}100%{transform:translateY(120px)}}
.cb-mid{min-width:0}
.cb-name{
  display:block;font-family:"Orbitron",sans-serif;
  font-size:clamp(15px,1.9vw,21px);font-weight:800;letter-spacing:.2em;
  color:#eaf7ff;text-transform:uppercase;line-height:1.1;
  animation:flicker 9s steps(1) infinite;
}
@keyframes flicker{
  0%,96%,100%{opacity:1}
  97%        {opacity:.72}
  98%        {opacity:1}
  99%        {opacity:.85}
}
.cb-sub{
  display:block;margin-top:5px;
  font-family:"Share Tech Mono",monospace;font-size:9px;
  letter-spacing:.18em;color:var(--b2);text-transform:uppercase;
}
.cb-go{
  flex:none;
  font-family:"Orbitron",sans-serif;font-size:10px;font-weight:700;
  letter-spacing:.13em;text-transform:uppercase;
  color:#04121c;background:var(--b2);
  padding:10px 17px;border-radius:7px;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.cb-go:hover{transform:translateY(-2px);background:var(--hi);box-shadow:0 6px 20px rgba(0,200,255,.34)}

/* ============================================================
   BOOT
   ============================================================ */
.boot{
  position:absolute;inset:0;z-index:40;display:grid;place-items:center;
  background:var(--n0);transition:opacity .5s ease,visibility .5s;
}
.boot-in{display:grid;justify-items:center;gap:var(--s3)}
.boot-bar{display:block;width:min(50vw,230px);height:3px;border-radius:2px;
          background:rgba(0,200,255,.14);overflow:hidden}
.boot-bar i{display:block;height:100%;width:100%;background:var(--b2);
            transform-origin:0 50%;transform:scaleX(0);
            animation:bootfill 1.8s cubic-bezier(.4,0,.2,1) forwards}
@keyframes bootfill{to{transform:scaleX(1)}}
.boot-txt{font-family:"Share Tech Mono",monospace;font-size:10px;
          letter-spacing:.24em;color:var(--b2);text-transform:uppercase}
.boot-skip{
  position:absolute;right:18px;bottom:16px;background:none;
  border:1px solid var(--line);border-radius:6px;color:var(--tx-2);cursor:pointer;
  font-family:"Orbitron",sans-serif;font-size:9px;letter-spacing:.16em;padding:7px 13px;
}
.boot-skip:hover{color:var(--b2);border-color:var(--b2)}

.sys [data-step]{opacity:0;transform:translateY(9px);
                 transition:opacity .5s ease,transform .5s ease}
.hero.booted .boot{opacity:0;visibility:hidden;pointer-events:none}
.hero.booted [data-step]{opacity:1;transform:none}
.hero.booted [data-step="1"]{transition-delay:.05s}
.hero.booted .navmod{transition-delay:calc(.14s + var(--i,0) * .06s)}
.hero.booted [data-step="5"]{transition-delay:.58s}
.hero.booted [data-step="9"]{transition-delay:.84s}
.hero.booted [data-step="10"]{transition-delay:.98s}
.hero .portal{opacity:0;transition:opacity .7s ease}
.hero.booted .portal{opacity:1;transition-delay:.58s}
.hero .pic{opacity:0;transition:opacity .7s ease}
.hero.booted .pic{opacity:1;transition-delay:1.06s}
.hero .wires,.hero .neuro{opacity:0;transition:opacity .7s ease}
.hero.booted .wires{opacity:1;transition-delay:.3s}
.hero.booted .neuro{opacity:.9;transition-delay:.16s}

/* ============================================================
   EFFECTS BUDGET
   ============================================================ */
[data-fx="lite"] .pl-outer{animation-duration:220s}
[data-fx="lite"] .pl-tech{animation-duration:150s}
[data-fx="lite"] .en-swirl,[data-fx="lite"] .en-arcs,
[data-fx="lite"] .bit,[data-fx="lite"] .cb-scan{display:none}
[data-fx="lite"] .plates,[data-fx="lite"] .en-well,
[data-fx="lite"] .cb-name{animation:none}

[data-fx="none"] .boot{display:none}
[data-fx="none"] .sys [data-step],
[data-fx="none"] .hero .portal,[data-fx="none"] .hero .pic,
[data-fx="none"] .hero .wires,[data-fx="none"] .hero .neuro{
  opacity:1!important;transform:none!important;transition:none!important}
[data-fx="none"] .pl-outer,[data-fx="none"] .pl-tech,[data-fx="none"] .plates,
[data-fx="none"] .en-well,[data-fx="none"] .en-swirl::before,
[data-fx="none"] .cb-name,[data-fx="none"] .bit{animation:none!important}
[data-fx="none"] .en-swirl,[data-fx="none"] .en-arcs,
[data-fx="none"] .bits,[data-fx="none"] .cb-scan,[data-fx="none"] .neuro{display:none}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width:1040px){
  .sys{
    grid-template-columns:minmax(196px,228px) minmax(0,1fr) minmax(210px,238px);
    grid-template-areas:
      "nav    portal out"
      "nav    portal out"
      "console console console";
    align-items:start;
    gap:var(--s4) clamp(20px,2.6vw,44px);
  }
  .navmods{grid-area:nav}
  .portal-wrap{grid-area:portal;align-self:center}
  .readouts{grid-area:out}
  .console-bar{grid-area:console;margin-top:var(--s1)}
  .portal{--psize:min(470px,60vh)}
}
@media (min-width:1300px){ .portal{--psize:min(520px,62vh)} }

@media (max-width:1039px){
  .sys{
    grid-template-columns:1fr 1fr;
    grid-template-areas:"portal portal" "nav out" "console console";
  }
  .portal-wrap{grid-area:portal}
  .navmods{grid-area:nav}
  .readouts{grid-area:out}
  .console-bar{grid-area:console}
  .portal{--psize:370px}
  .wires{display:none}
  .mods{grid-template-columns:1fr}
}

@media (max-width:700px){
  .sys{
    grid-template-columns:1fr;
    grid-template-areas:"portal" "nav" "console" "out";
    gap:var(--s2);
  }
  .hero{min-height:auto;padding:70px 0 24px}
  .portal{--psize:min(78vw,300px)}
  .navmods{grid-template-columns:1fr 1fr;gap:var(--s1)}
  .navmod{height:40px;padding:0 11px;gap:8px}
  .nm-t{font-size:10px;letter-spacing:.1em}
  .nm-dots{display:none}
  .mods{grid-template-columns:1fr 1fr}
  .console-bar{flex-wrap:wrap;gap:var(--s2);justify-content:center;text-align:center}
  .cb-go{flex:1 1 100%;text-align:center}
}

/* ============================================================
   SHORT VIEWPORTS
   A 1500x670 laptop window is the common case, not an edge case:
   after the browser chrome and a 65px site header there is very
   little vertical room. Everything tightens here so the whole
   interface — all seven modules, both readouts and the console —
   stays above the fold instead of running off the bottom.
   ============================================================ */
@media (min-width:1040px) and (max-height:820px){
  .hero{padding:58px 0 14px}
  .sys{gap:var(--s2) clamp(18px,2.2vw,38px)}
  .panel-h{}
  .navmod{height:34px;padding:0 12px}
  .navmods{gap:22px}
  .pl-name{font-size:16px}
  .pl-role{font-size:9px;margin-top:2px}
  .screen{padding:11px 12px}
  .readouts{gap:var(--s2)}
  .out{gap:7px}
  .out li{padding-bottom:7px}
  .out-v{font-size:19px}
  .console-bar{padding:8px var(--s3);margin-top:0}
  .cb-name{font-size:17px;letter-spacing:.16em}
  .cb-sub{font-size:8.5px;margin-top:3px}
  .cb-go{padding:8px 14px;font-size:9.5px}
}

/* Very short windows: drop the portal further still. */
@media (min-width:1040px) and (max-height:700px){
  .hero{padding:52px 0 10px}
  .portal{--psize:min(400px,56vh)}
  .navmod{height:32px}
  .navmods{gap:20px}
  .nm-t{font-size:10px}
  .out-v{font-size:17px}
  .out-viz{width:44px;height:15px}
}

/* ============================================================
   RING MODULES — the stack, docked into the machine.
   One rotation on the carrier plus one counter-rotation per chip
   keeps every logo upright: 14 transform animations total, and
   nothing here touches layout.
   ============================================================ */
.portal{--orbit-r:calc(var(--psize,420px) * 0.445)}

.ring-mods{
  position:absolute;inset:0;z-index:5;pointer-events:none;
  animation:spin 95s linear infinite;will-change:transform;
}
.rm{
  position:absolute;left:50%;top:50%;
  transform:rotate(var(--a)) translate(var(--orbit-r)) rotate(calc(var(--a) * -1));
}
.rm-spin{display:block;animation:spin 95s linear infinite reverse;will-change:transform}

.rm-chip{
  position:relative;display:grid;place-items:center;
  width:34px;height:34px;margin:-17px 0 0 -17px;
  pointer-events:auto;cursor:default;
  color:var(--brand,var(--b2));
  background:linear-gradient(160deg,#0e2036,#091628);
  border:1px solid rgba(0,200,255,.34);
  /* clipped to a hexagon: reads as a machined module, not a web card */
  clip-path:polygon(50% 0%,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%);
  transition:transform .2s ease,background .2s ease;
}
.rm-chip svg{width:16px;height:16px;display:block}
.rm-chip::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(circle at 50% 20%,rgba(120,225,255,.35),transparent 62%);
  opacity:0;transition:opacity .2s ease;
}
.rm-chip:hover{transform:scale(1.22);background:linear-gradient(160deg,#12314f,#0b1c33)}
.rm-chip:hover::after{opacity:1}

.rm-name{
  position:absolute;left:50%;top:calc(100% + 6px);transform:translateX(-50%);
  white-space:nowrap;pointer-events:none;
  font-family:"Share Tech Mono",monospace;font-size:8.5px;letter-spacing:.14em;
  text-transform:uppercase;color:#dff4ff;
  background:#08131f;border:1px solid rgba(0,200,255,.4);
  padding:2px 7px;border-radius:3px;
  opacity:0;transition:opacity .18s ease;
}
.rm:hover .rm-name{opacity:1}

/* Reading a chip stops the carousel so it can actually be read. */
.ring-mods:hover,
.ring-mods:hover .rm-spin{animation-play-state:paused}

[data-fx="lite"] .ring-mods,[data-fx="lite"] .rm-spin{animation-duration:210s}
[data-fx="none"] .ring-mods,[data-fx="none"] .rm-spin{animation:none!important}

@media (max-width:1039px){
  .rm-chip{width:29px;height:29px;margin:-14.5px 0 0 -14.5px}
  .rm-chip svg{width:14px;height:14px}
}
@media (max-width:700px){
  .rm-chip{width:24px;height:24px;margin:-12px 0 0 -12px}
  .rm-chip svg{width:11px;height:11px}
  .rm-name{display:none}
}

/* ============================================================
   HEADER IDENTITY PLATE
   The name badge moved out of the hero and into the header, so it
   is present on every section rather than only above the fold.
   It keeps the machine styling on the dark hero and stays legible
   once the header turns to paper further down the page.
   ============================================================ */
.hdr .brand.plate{
  display:block;
  padding:6px 13px;
  background:linear-gradient(162deg,#0b1d36,#071426);
  border:1px solid rgba(0,200,255,.3);
  border-radius:8px;
  line-height:1.15;
}
.hdr .brand .pl-name{
  display:block;font-family:"Orbitron",sans-serif;
  font-size:14px;font-weight:800;letter-spacing:.1em;
  color:#eaf7ff;text-transform:uppercase;
}
.hdr .brand .pl-role{
  display:block;margin-top:2px;
  font-family:"Share Tech Mono",monospace;font-size:8.5px;
  letter-spacing:.14em;color:#00c8ff;text-transform:uppercase;
}
.hdr .brand.plate:hover{border-color:#00c8ff;box-shadow:0 0 14px rgba(0,200,255,.22)}
.hdr .brand .brk{border-color:#00c8ff}

@media (max-width:520px){
  .hdr .brand .pl-name{font-size:12.5px;letter-spacing:.07em}
  .hdr .brand .pl-role{display:none}
  .hdr .brand.plate{padding:7px 11px}
}

/* ============================================================
   EQUAL MACHINES
   Every card in a row is the same height. The screen stretches and
   the body text takes up the slack, so a short description can no
   longer make its monitor shorter than the one beside it.
   ============================================================ */
.grid-3{align-items:stretch}
.unit{display:flex;flex-direction:column;height:100%}
.unit > .card,
.unit > .proj{flex:1;display:flex;flex-direction:column;min-height:0}

.card > .card-screen{flex:1;display:flex;flex-direction:column}
.card-screen .card-p{flex:1}

.proj > .proj-vis{flex:none}
.proj > .proj-body{flex:1;display:flex;flex-direction:column}
.proj-body .proj-p{flex:1}

/* ============================================================
   RING MODULES — the stack, docked into the machine.
   One rotation on the carrier plus one counter-rotation per chip
   keeps every logo upright: 14 transform animations total, and
   nothing here touches layout.
   ============================================================ */
.portal{--orbit-r:calc(var(--psize,420px) * 0.445)}

.ring-mods{
  position:absolute;inset:0;z-index:5;pointer-events:none;
  animation:spin 95s linear infinite;will-change:transform;
}
.rm{
  position:absolute;left:50%;top:50%;
  transform:rotate(var(--a)) translate(var(--orbit-r)) rotate(calc(var(--a) * -1));
}
.rm-spin{display:block;animation:spin 95s linear infinite reverse;will-change:transform}

.rm-chip{
  position:relative;display:grid;place-items:center;
  width:34px;height:34px;margin:-17px 0 0 -17px;
  pointer-events:auto;cursor:default;
  color:var(--brand,var(--b2));
  background:linear-gradient(160deg,#0e2036,#091628);
  border:1px solid rgba(0,200,255,.34);
  /* clipped to a hexagon: reads as a machined module, not a web card */
  clip-path:polygon(50% 0%,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%);
  transition:transform .2s ease,background .2s ease;
}
.rm-chip svg{width:16px;height:16px;display:block}
.rm-chip::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(circle at 50% 20%,rgba(120,225,255,.35),transparent 62%);
  opacity:0;transition:opacity .2s ease;
}
.rm-chip:hover{transform:scale(1.22);background:linear-gradient(160deg,#12314f,#0b1c33)}
.rm-chip:hover::after{opacity:1}

.rm-name{
  position:absolute;left:50%;top:calc(100% + 6px);transform:translateX(-50%);
  white-space:nowrap;pointer-events:none;
  font-family:"Share Tech Mono",monospace;font-size:8.5px;letter-spacing:.14em;
  text-transform:uppercase;color:#dff4ff;
  background:#08131f;border:1px solid rgba(0,200,255,.4);
  padding:2px 7px;border-radius:3px;
  opacity:0;transition:opacity .18s ease;
}
.rm:hover .rm-name{opacity:1}

/* Reading a chip stops the carousel so it can actually be read. */
.ring-mods:hover,
.ring-mods:hover .rm-spin{animation-play-state:paused}

[data-fx="lite"] .ring-mods,[data-fx="lite"] .rm-spin{animation-duration:210s}
[data-fx="none"] .ring-mods,[data-fx="none"] .rm-spin{animation:none!important}

@media (max-width:1039px){
  .rm-chip{width:29px;height:29px;margin:-14.5px 0 0 -14.5px}
  .rm-chip svg{width:14px;height:14px}
}
@media (max-width:700px){
  .rm-chip{width:24px;height:24px;margin:-12px 0 0 -12px}
  .rm-chip svg{width:11px;height:11px}
  .rm-name{display:none}
}

/* ============================================================
   HEADER IDENTITY PLATE
   The name badge moved out of the hero and into the header, so it
   is present on every section rather than only above the fold.
   It keeps the machine styling on the dark hero and stays legible
   once the header turns to paper further down the page.
   ============================================================ */
.hdr .brand.plate{
  display:block;
  padding:6px 13px;
  background:linear-gradient(162deg,#0b1d36,#071426);
  border:1px solid rgba(0,200,255,.3);
  border-radius:8px;
  line-height:1.15;
}
.hdr .brand .pl-name{
  display:block;font-family:"Orbitron",sans-serif;
  font-size:14px;font-weight:800;letter-spacing:.1em;
  color:#eaf7ff;text-transform:uppercase;
}
.hdr .brand .pl-role{
  display:block;margin-top:2px;
  font-family:"Share Tech Mono",monospace;font-size:8.5px;
  letter-spacing:.14em;color:#00c8ff;text-transform:uppercase;
}
.hdr .brand.plate:hover{border-color:#00c8ff;box-shadow:0 0 14px rgba(0,200,255,.22)}
.hdr .brand .brk{border-color:#00c8ff}

@media (max-width:520px){
  .hdr .brand .pl-name{font-size:12.5px;letter-spacing:.07em}
  .hdr .brand .pl-role{display:none}
  .hdr .brand.plate{padding:7px 11px}
}

/* ============================================================
   EQUAL MACHINES
   Every card in a row is the same height. The screen stretches and
   the body text takes up the slack, so a short description can no
   longer make its monitor shorter than the one beside it.
   ============================================================ */
.grid-3{align-items:stretch}
.unit{display:flex;flex-direction:column;height:100%}
.unit > .card,
.unit > .proj{flex:1;display:flex;flex-direction:column;min-height:0}

.card > .card-screen{flex:1;display:flex;flex-direction:column}
.card-screen .card-p{flex:1}

.proj > .proj-vis{flex:none}
.proj > .proj-body{flex:1;display:flex;flex-direction:column}
.proj-body .proj-p{flex:1}

/* Descriptions are held to a fixed height so every monitor in the grid
   is the same height, not just the ones sharing a row. A long case
   study no longer makes its row 200px taller than the next. */
/* NOT -webkit-line-clamp: these paragraphs are flex items, and flex
   items are blockified — display:-webkit-box becomes display:block and
   the clamp silently stops applying, which let 48px of text spill out
   over the chips. A fixed height with a fade mask is technique-
   independent and cannot be undone by the layout mode. */
.card-p,.proj-p{
  overflow:hidden;
  -webkit-mask-image:linear-gradient(180deg,#000 76%,transparent 99%);
  mask-image:linear-gradient(180deg,#000 76%,transparent 99%);
}
/* Keep the chip strip to a single line for the same reason. */
.proj .chips{max-height:26px;overflow:hidden}

/* Reserve two lines for the title and one row for the chips, so a
   one-line name like "Shaevon" occupies the same space as
   "Life Care Physio & Rehabilitation". This is what takes the grid
   from "equal within a row" to "every machine identical". */
.proj-t{height:2.4em;overflow:hidden}
.proj .chips{min-height:26px}
.card-t{min-height:2.3em;display:flex;align-items:center}

/* Always-present footer row, so linked and unlinked projects match. */
.proj-foot{min-height:20px;margin-top:16px;display:flex;align-items:center}
.proj-foot .proj-link{margin-top:0}

/* Long tags ("Construction · Saudi Arabia") were wrapping to a second
   line and taking their card 15px taller than the rest. */
.proj-top{gap:8px;min-height:16px}
.proj-tag{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.proj-yr{flex:none}

/* The description box is exactly four lines tall, always. `flex:1` was
   letting it grow past its own line-clamp, which is what left a 15px
   difference between cards. The footer is pushed to the bottom instead. */
.proj-body .proj-p{flex:none;height:6.8em;margin-bottom:14px}
.proj-foot{margin-top:auto}
.card-screen .card-p{flex:none;height:6.8em}

/* Every row in the grid gets the same track height, so cards match
   across the whole section rather than only within their own row.
   This is what finally makes all fourteen monitors identical. */
.grid-3{grid-auto-rows:1fr}

/* ============================================================
   PROCESS — the rising journey.
   Four notched panels climbing left to right, each topped by a
   hex badge, standing on a glowing pedestal, joined by an energy
   rail that app.js measures and draws. Accent shifts cyan to
   violet across the four stations.
   No blur() anywhere; glow is layered box-shadow and gradients.
   ============================================================ */
.proc-sec .wrap{max-width:1320px}
.proc-sec{
  --pbg:#040a14;
  --ppanel:#0a1524;
  --pline:rgba(0,180,255,.26);
  --pcy:#00c8ff;
  --pvi:#8b5cf6;
  --ptx:#cfe6f7;
  --ptx2:#7c9ab5;

  position:relative;
  background:
    radial-gradient(90% 60% at 18% 8%,#0b1c34 0%,transparent 60%),
    radial-gradient(80% 70% at 88% 88%,#160f33 0%,transparent 62%),
    var(--pbg);
  color:var(--ptx);
  border-top:2px solid var(--ink);
  border-bottom:2px solid var(--ink);
  overflow:hidden;
}
/* starfield + circuit wash */
.proc-sec::before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.55;
  background-image:
    radial-gradient(1px 1px at 12% 22%,rgba(150,220,255,.8),transparent),
    radial-gradient(1px 1px at 68% 12%,rgba(150,220,255,.6),transparent),
    radial-gradient(1px 1px at 82% 42%,rgba(150,220,255,.7),transparent),
    radial-gradient(1px 1px at 32% 68%,rgba(150,220,255,.5),transparent),
    radial-gradient(1px 1px at 92% 74%,rgba(180,150,255,.6),transparent),
    radial-gradient(1px 1px at 46% 90%,rgba(150,220,255,.5),transparent),
    linear-gradient(rgba(0,180,255,.05) 1px,transparent 1px),
    linear-gradient(90deg,rgba(0,180,255,.05) 1px,transparent 1px);
  background-size:auto,auto,auto,auto,auto,auto,64px 64px,64px 64px;
}

/* ---------- heading ---------- */
.proc-hd{position:relative;z-index:2;max-width:44ch;margin-bottom:clamp(16px,2.4vw,26px)}
.proc-kick{
  display:inline-flex;align-items:center;gap:10px;margin-bottom:14px;
  font-family:"Orbitron",sans-serif;font-size:10.5px;font-weight:700;
  letter-spacing:.24em;text-transform:uppercase;color:var(--pcy);
}
.proc-kick i{display:block;width:26px;height:1px;background:var(--pcy);opacity:.7}
.proc-t{
  margin:0 0 13px;font-family:"Orbitron",sans-serif;
  font-size:clamp(1.6rem,3.9vw,2.9rem);font-weight:800;
  line-height:1.08;letter-spacing:.01em;text-transform:uppercase;color:#fff;
}
.proc-t-em{color:var(--pcy)}
.proc-p{margin:0 0 18px;color:var(--ptx2);font-size:clamp(.94rem,1.9vw,1.04rem);max-width:46ch}
.proc-go{
  display:inline-flex;align-items:center;gap:12px;
  font-family:"Orbitron",sans-serif;font-size:10.5px;font-weight:700;
  letter-spacing:.16em;text-transform:uppercase;color:var(--pcy);
  padding:13px 26px;border:1px solid var(--pline);border-radius:4px;
  background:rgba(0,200,255,.05);
  transition:background .2s ease,border-color .2s ease,transform .2s ease;
}
.proc-go:hover{background:rgba(0,200,255,.13);border-color:var(--pcy);transform:translateY(-2px)}

/* ---------- the stage ---------- */
.proc-stage{position:relative;z-index:2}
.proc-rail{
  position:absolute;inset:0;width:100%;height:100%;
  overflow:visible;pointer-events:none;z-index:1;
}

/* ---------- the stations ---------- */
.proc-steps{
  list-style:none;margin:0;padding:0;position:relative;z-index:2;
  display:grid;grid-template-columns:1fr;gap:52px;
}
.pstep:nth-child(2){--acc:#22b8ff}
.pstep:nth-child(3){--acc:#5b8cff}
.pstep:nth-child(4){--acc:var(--pvi)}

/* hex badge, sitting on the top edge */
.pstep-ico{
  position:absolute;top:-34px;left:50%;margin-left:-34px;
  width:68px;height:68px;display:grid;place-items:center;
  color:var(--acc);
  background:linear-gradient(165deg,#0d2138,#081522);
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  box-shadow:0 0 0 1px rgba(0,200,255,.18);
}
.pstep-ico::before{
  content:"";position:absolute;inset:3px;
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  border:1px solid var(--acc);opacity:.55;
}
.pstep-ico svg{width:28px;height:28px;position:relative}
.pstep:hover .pstep-ico{color:#fff}

.pstep-n{
  display:block;text-align:center;
  font-family:"Orbitron",sans-serif;font-size:clamp(1.5rem,2.6vw,2rem);
  font-weight:800;color:var(--acc);line-height:1;margin-bottom:8px;
}
.pstep-t{
  margin:0 0 12px;text-align:center;
  font-family:"Orbitron",sans-serif;font-size:clamp(.84rem,1.3vw,.96rem);
  font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#fff;
  min-height:2.6em;display:flex;align-items:center;justify-content:center;
}
/* Fixed five-line block: this is what makes every card the same
   height, whatever the description length. */
.pstep-p{
  margin:0;color:var(--ptx2);font-size:.85rem;line-height:1.62;
  height:8.1em;overflow:hidden;
  -webkit-mask-image:linear-gradient(180deg,#000 80%,transparent 99%);
  mask-image:linear-gradient(180deg,#000 80%,transparent 99%);
}

/* dotted divider, as in the reference */
.pstep-div{
  display:flex;align-items:center;justify-content:center;gap:6px;
  margin:14px 0 12px;
}
.pstep-div::before,.pstep-div::after{
  content:"";flex:1;height:1px;background:var(--pline);
}
.pstep-div i{width:3px;height:3px;border-radius:50%;background:var(--acc);opacity:.8}

.pstep-list{list-style:none;margin:0;padding:0;display:grid;gap:8px;min-height:5.4em}
.pstep-list li{
  display:flex;align-items:flex-start;gap:9px;
  font-size:.8rem;line-height:1.45;color:var(--ptx);
}
.pstep-list li::before{
  content:"";width:5px;height:5px;border-radius:50%;flex:none;margin-top:.5em;
  background:var(--acc);box-shadow:0 0 6px var(--acc);
}

/* ---------- the value bar ---------- */
.proc-values{
  list-style:none;margin:clamp(40px,4.4vw,62px) 0 0;padding:clamp(16px,2vw,24px);
  position:relative;z-index:2;
  display:grid;grid-template-columns:1fr;gap:20px;
  border:1px solid var(--pline);
  background:linear-gradient(170deg,rgba(10,24,42,.8),rgba(6,14,26,.8));
  clip-path:polygon(0 18px,18px 0,calc(100% - 18px) 0,100% 18px,
                    100% calc(100% - 18px),calc(100% - 18px) 100%,
                    18px 100%,0 calc(100% - 18px));
}
.pv{display:flex;align-items:flex-start;gap:14px}
.pv-ico{
  width:44px;height:44px;flex:none;display:grid;place-items:center;
  color:var(--pcy);
  background:linear-gradient(165deg,#0d2138,#081522);
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
}
.pv-ico::before{
  content:"";position:absolute;inset:0;
}
.pv-ico svg{width:20px;height:20px}
.pv-t{
  display:block;font-family:"Orbitron",sans-serif;font-size:11px;font-weight:700;
  letter-spacing:.13em;text-transform:uppercase;color:var(--pcy);margin-bottom:5px;
}
.pv-p{margin:0;color:var(--ptx2);font-size:.82rem;line-height:1.55}

/* ============================================================
   DESKTOP: the climb
   ============================================================ */
@media (min-width:960px){
  /* The heading sits above the stage rather than beside it. Beside it
     the four cards had to share 78% of the column and came out 170px
     wide, which is what forced the copy into a tall ribbon. */
  .proc-hd{max-width:46ch;margin-bottom:0}
  .proc-steps{
    grid-template-columns:repeat(4,1fr);
    gap:0 clamp(18px,2.2vw,30px);
    align-items:start;
    /* 40px clears the badge that overhangs the top card; the climb
       supplies the rest. 120px here was pure dead space. */
    padding:40px 0 16px;
    width:100%;
  }
  /* lift the whole stage into the empty band beside the heading */
  .proc-stage{margin-top:-72px}
  /* each station stands higher than the one before */
    .pstep{margin-top:calc((3 - var(--i)) * 62px)}
  .proc-values{grid-template-columns:repeat(4,1fr);gap:clamp(16px,2vw,30px)}
}
@media (min-width:960px) and (max-width:1180px){
  .pstep{padding:44px 15px 24px}
  .pstep-p{font-size:.82rem}
  .pstep-list li{font-size:.79rem}
}

@media (max-width:959px){
  .proc-steps{gap:64px;max-width:520px;margin:56px auto 0}
  .proc-rail{display:none}
  .proc-values{grid-template-columns:1fr 1fr}
}
@media (max-width:560px){
  .proc-values{grid-template-columns:1fr}
  .pstep{padding:48px 18px 26px}
}

/* ---------- effects budget ---------- */
[data-fx="none"] .proc-sec::before{opacity:.3}

/* The process section carries its own vertical rhythm: it is a diagram,
   not a column of prose, so it does not need the paper sections' padding. */
.proc-sec{padding-top:clamp(56px,6vw,80px);padding-bottom:clamp(38px,4vw,56px)}

/* ============================================================
   HOLOGRAM STATIONS
   Each card is projected from an emitter pad beneath it. The
   build runs once, on entry, staggered so all four finish at
   about three seconds. Everything animates clip-path, opacity
   or transform — no filters, and nothing loops forever except
   two very slow ambient passes.
   ============================================================ */

/* the projection cone rising from the pad into the card */
.ph-cone{
  position:absolute;left:50%;bottom:-52px;transform:translateX(-50%);
  width:74%;height:calc(100% + 52px);
  pointer-events:none;z-index:0;
  background:linear-gradient(0deg,
    color-mix(in srgb,var(--acc) 26%,transparent) 0%,
    color-mix(in srgb,var(--acc) 9%,transparent) 34%,
    transparent 78%);
  clip-path:polygon(38% 100%,62% 100%,100% 0,0 0);
  opacity:0;
}

/* ---------- the case ----------
   A double frame: an outer notched shell and an inset outline,
   with corner brackets and an accent rail down the leading edge.
   This is what stops it reading as a plain bordered box. */
.pstep{
  --acc:var(--pcy);
  position:relative;
  padding:46px 22px 26px;
  background:
    linear-gradient(170deg,rgba(16,36,60,.86),rgba(7,16,29,.9));
  border:1px solid color-mix(in srgb,var(--acc) 40%,transparent);
  /* Deeper, asymmetric cuts — a machined housing rather than a
     rounded card. The top-left and bottom-right bites are larger,
     which stops the silhouette reading as symmetrical. */
  clip-path:polygon(0 34px,34px 0,calc(100% - 16px) 0,100% 16px,
                    100% calc(100% - 34px),calc(100% - 34px) 100%,
                    16px 100%,0 calc(100% - 16px));
  transition:transform .28s ease,background .28s ease;
}
/* inset outline */
.pstep::before{
  content:"";position:absolute;inset:8px;pointer-events:none;
  border:1px solid color-mix(in srgb,var(--acc) 22%,transparent);
  clip-path:polygon(0 27px,27px 0,calc(100% - 11px) 0,100% 11px,
                    100% calc(100% - 27px),calc(100% - 27px) 100%,
                    11px 100%,0 calc(100% - 11px));
}
/* scanline texture across the whole panel */
.pstep-body::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:repeating-linear-gradient(180deg,
    color-mix(in srgb,var(--acc) 7%,transparent) 0 1px,
    transparent 1px 4px);
  opacity:.7;
}
/* Scoped deliberately: a blanket `.pstep > *` outranks .pstep-ico and
   .pstep-pad and drags the badge and the emitter back into the flow,
   which added ~158px to every card. Only the text children need it. */
.pstep-body > .pstep-n,.pstep-body > .pstep-t,.pstep-body > .pstep-p,
.pstep-body > .pstep-div,.pstep-body > .pstep-list{position:relative;z-index:2}

/* corner brackets */
.pcase{position:absolute;width:14px;height:14px;pointer-events:none;z-index:3;
       border:2px solid var(--acc);opacity:.85}
.pc-tl{top:32px;left:-1px;border-right:0;border-bottom:0}
.pc-tr{top:-1px;right:14px;border-left:0;border-bottom:0}
.pc-bl{bottom:-1px;left:14px;border-right:0;border-top:0}
.pc-br{bottom:32px;right:-1px;border-left:0;border-top:0}

/* accent rail down the leading edge */
.pedge{
  position:absolute;left:-1px;top:44px;bottom:34px;width:2px;z-index:3;
  background:linear-gradient(180deg,transparent,var(--acc) 18%,var(--acc) 82%,transparent);
  opacity:.7;pointer-events:none;
}

/* interference bands, part of the build */
.ph-grid{
  position:absolute;inset:0;pointer-events:none;z-index:4;
  background:repeating-linear-gradient(180deg,
    color-mix(in srgb,var(--acc) 22%,transparent) 0 2px,
    transparent 2px 9px);
  opacity:0;
}
/* the line that sweeps up as the card assembles */
.ph-scan{
  position:absolute;left:-2%;right:-2%;height:3px;top:0;z-index:5;
  pointer-events:none;opacity:0;
  background:linear-gradient(90deg,transparent,
    color-mix(in srgb,var(--acc) 95%,white),transparent);
  box-shadow:0 0 16px var(--acc);
}

/* ============================================================
   THE BUILD
   Held clipped until .built lands, then assembled bottom-up.
   Card i starts at i*0.6s and takes ~1.35s, so the fourth
   finishes at about 3.15s.
   ============================================================ */
.js .proc-steps .pstep-body{
  clip-path:polygon(0 100%,100% 100%,100% 100%,0 100%);
  opacity:0;
}
.js .proc-steps .pstep-body > .pstep-ico,
.js .proc-steps .pstep-body > .pstep-n,
.js .proc-steps .pstep-body > .pstep-t,
.js .proc-steps .pstep-body > .pstep-p,
.js .proc-steps .pstep-body > .pstep-div,
.js .proc-steps .pstep-body > .pstep-list{opacity:0}

.js .proc-steps.built .pstep-body{
  animation:holoBuild 1.35s cubic-bezier(.3,.8,.35,1) forwards;
  animation-delay:calc(var(--i) * .6s);
}
.js .proc-steps.built .pstep-body > .pstep-ico,
.js .proc-steps.built .pstep-body > .pstep-n,
.js .proc-steps.built .pstep-body > .pstep-t,
.js .proc-steps.built .pstep-body > .pstep-p,
.js .proc-steps.built .pstep-body > .pstep-div,
.js .proc-steps.built .pstep-body > .pstep-list{
  animation:holoContent .5s ease forwards;
  animation-delay:calc(var(--i) * .6s + .72s);
}
.js .proc-steps.built .ph-cone{
  animation:holoCone 1.5s ease-out forwards;
  animation-delay:calc(var(--i) * .6s);
}
.js .proc-steps.built .ph-scan{
  animation:holoScan 1.1s cubic-bezier(.35,.7,.3,1) forwards;
  animation-delay:calc(var(--i) * .6s + .08s);
}
.js .proc-steps.built .ph-grid{
  animation:holoBands 1.35s ease-out forwards;
  animation-delay:calc(var(--i) * .6s);
}
/* The pad powers up FIRST and stays lit — it is the projector, so
   gating it behind the card it projects was backwards. forwards fill,
   so it holds its end state instead of snapping back. */
.js .proc-steps .pstep-pad{
  animation:holoPad .5s ease-out forwards;
  animation-delay:calc(var(--i) * .6s);
}

@keyframes holoBuild{
  0%  {clip-path:polygon(0 100%,100% 100%,100% 100%,0 100%);opacity:0}
  8%  {opacity:.55}
  55% {clip-path:polygon(0 0,100% 0,100% 100%,0 100%);opacity:.72}
  70% {opacity:.4}                    /* the settle flicker */
  78% {opacity:.85}
  88% {opacity:.6}
  100%{clip-path:polygon(0 0,100% 0,100% 100%,0 100%);opacity:1}
}
@keyframes holoContent{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
@keyframes holoCone{
  0%{opacity:0;transform:translateX(-50%) scaleY(.1)}
  30%{opacity:.9}
  100%{opacity:.32;transform:translateX(-50%) scaleY(1)}
}
@keyframes holoScan{
  0%  {opacity:0;top:100%}
  10% {opacity:1}
  85% {opacity:1}
  100%{opacity:0;top:-2%}
}
@keyframes holoBands{
  0%{opacity:.8}
  60%{opacity:.35}
  100%{opacity:0}
}
@keyframes holoPad{
  0%{transform:translateX(-50%) scale(.6);opacity:0}
  60%{opacity:1}
  100%{transform:translateX(-50%) scale(1);opacity:1}
}

/* ambient: the pad keeps breathing once built */
[data-fx="full"] .proc-steps.built .pad-core{
  animation:padbreath 4.4s ease-in-out infinite;
  animation-delay:calc(var(--i) * .6s + 1.6s);
}
@keyframes padbreath{0%,100%{opacity:.68}50%{opacity:1}}

.pstep:hover .pstep-body{transform:translateY(-7px)}
.pstep:hover .pad-core{opacity:1}
.pstep:hover .pad-r1{opacity:.75}
.pstep:hover .pad-r2{opacity:.5}
.pstep:hover .ph-cone{opacity:.5}

/* Reduced motion: everything is simply present. */
[data-fx="none"] .proc-steps .pstep-body{clip-path:polygon(0 0,100% 0,100% 100%,0 100%)!important;opacity:1!important;animation:none!important}
[data-fx="none"] .proc-steps .pstep-pad{opacity:1!important;transform:translateX(-50%)!important;animation:none!important}
[data-fx="none"] .proc-steps .pstep > *{opacity:1!important;animation:none!important;position:static}
[data-fx="none"] .ph-cone{opacity:.3!important;animation:none!important}
[data-fx="none"] .ph-scan,[data-fx="none"] .ph-grid{display:none}

/* ============================================================
   THE CONDUIT — replaces the plain curve.
   Five stacked strokes make a real cable: a wide glow, a dark
   casing, a bright gradient core, perpendicular tick marks, and
   two packets running at different speeds.
   ============================================================ */
.rail-glow{fill:none;stroke:rgba(0,180,255,.14);stroke-width:14;stroke-linecap:round;stroke-linejoin:round}
.rail-case{fill:none;stroke:#071523;stroke-width:7;stroke-linecap:round;stroke-linejoin:round}
.rail-dim {fill:none;stroke:rgba(0,180,255,.3);stroke-width:8;stroke-linecap:round;stroke-linejoin:round}
.rail-lit {fill:none;stroke:url(#railGrad);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
/* the rungs: a wide dashed stroke reads as ladder ticks */
.rail-tick{
  fill:none;stroke:url(#railGrad);stroke-width:9;
  stroke-dasharray:1.5 15;opacity:.5;
}
.rail-flow{
  fill:none;stroke:#eafcff;stroke-width:3.4;stroke-linecap:round;
  stroke-dasharray:26 1600;opacity:.95;
  animation:railflow 6s linear infinite;
}
.rail-flow-2{
  fill:none;stroke:#a9e8ff;stroke-width:2;stroke-linecap:round;
  stroke-dasharray:12 1600;opacity:.7;
  animation:railflow 9.5s linear infinite;
}
@keyframes railflow{from{stroke-dashoffset:0}to{stroke-dashoffset:-1626}}

/* junction rings where the conduit meets a badge */
.rail-ring{fill:none;stroke:var(--pcy);stroke-width:1.6;opacity:.75}
.rail-node{fill:#03101c;stroke:#dff6ff;stroke-width:2}
.rail-spoke{stroke:var(--pcy);stroke-width:1.4;opacity:.6}
.rail-arrow{fill:none;stroke:var(--pvi);stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}

[data-fx="lite"] .rail-flow{animation-duration:13s}
[data-fx="lite"] .rail-flow-2{display:none}
[data-fx="none"] .rail-flow,[data-fx="none"] .rail-flow-2{animation:none;opacity:0}

@media (max-width:959px){
  .pstep-pad{bottom:-70px;height:130px}
  .ph-cone{display:none}
}

/* The project screen was a 16:10 blank while no screenshots exist, which
   left a large dead panel in every card. A shallower screen keeps the
   monitor silhouette without the emptiness; add screenshots via
   data.js `img` and it still reads correctly. */
.proj-vis{aspect-ratio:16/6}
.proj-vis.gen .proj-mono{font-size:1.9rem;opacity:.4}

/* ============================================================
   SERVICES — the capability bay.
   Dark, because the cards are monitors: they always looked
   pasted-on against the paper. Split header, a bus rail running
   behind the rack, and an index stamped on each machine.
   ============================================================ */
.svc-sec{
  position:relative;
  background:
    radial-gradient(80% 55% at 12% 0%,#0c1e36 0%,transparent 58%),
    radial-gradient(70% 60% at 92% 100%,#101a3a 0%,transparent 60%),
    #050b15;
  color:#cfe6f7;
  border-top:2px solid var(--ink);
  border-bottom:2px solid var(--ink);
  overflow:hidden;
  padding-top:clamp(56px,6vw,86px);
  padding-bottom:clamp(56px,6vw,86px);
}
.svc-sec::before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.4;
  background-image:
    linear-gradient(rgba(0,180,255,.06) 1px,transparent 1px),
    linear-gradient(90deg,rgba(0,180,255,.06) 1px,transparent 1px);
  background-size:58px 58px;
  -webkit-mask-image:radial-gradient(110% 80% at 50% 40%,#000 12%,transparent 76%);
  mask-image:radial-gradient(110% 80% at 50% 40%,#000 12%,transparent 76%);
}
.svc-sec .wrap{position:relative;z-index:1;max-width:1320px}

/* split header: title left, brief right */
.svc-hd{display:grid;gap:20px;margin-bottom:clamp(30px,3.6vw,48px)}
.svc-t{
  margin:0;font-family:"Orbitron",sans-serif;
  font-size:clamp(1.6rem,3.6vw,2.7rem);font-weight:800;
  line-height:1.08;text-transform:uppercase;color:#fff;
}
.svc-t-em{color:#00c8ff}
.svc-p{margin:0 0 16px;color:#7fa3c0;font-size:clamp(.94rem,1.8vw,1.03rem);max-width:52ch}
.svc-meta{display:flex;flex-wrap:wrap;gap:10px}
.svc-chip{
  display:inline-flex;align-items:center;gap:8px;
  font-family:"Share Tech Mono",monospace;font-size:9.5px;
  letter-spacing:.14em;text-transform:uppercase;color:#8fb6d2;
  border:1px solid rgba(0,200,255,.24);border-radius:3px;padding:6px 11px;
}
.svc-chip i{width:5px;height:5px;border-radius:50%;background:#3ddc84;flex:none}

/* the rack */
.svc-bay{position:relative}
.svc-bus{
  position:absolute;left:0;right:0;top:34px;height:1px;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(0,200,255,.35) 12%,
             rgba(0,200,255,.35) 88%,transparent);
}
.svc-bus::before,.svc-bus::after{
  content:"";position:absolute;top:-3px;width:7px;height:7px;
  border:1px solid rgba(0,200,255,.5);transform:rotate(45deg);
}
.svc-bus::before{left:6%}
.svc-bus::after{right:6%}

/* each machine gets an index and a drop line to the bus */
.svc-sec .unit{position:relative}
.svc-sec .unit::before{
  content:"";position:absolute;left:50%;top:-30px;width:1px;height:30px;
  background:linear-gradient(180deg,rgba(0,200,255,.4),transparent);
  pointer-events:none;
}
.svc-sec .card{
  border-color:rgba(0,200,255,.3);
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.svc-sec .card:hover{
  transform:translate(-2px,-4px);
  border-color:#00c8ff;
  box-shadow:6px 8px 0 rgba(0,0,0,.35),0 0 22px rgba(0,200,255,.18);
}
.svc-sec .card-ic{border-color:rgba(0,200,255,.45);background:rgba(0,200,255,.07)}
.svc-sec .mstand,.svc-sec .mbase{background:#0a1526}

@media (min-width:900px){
  .svc-hd{grid-template-columns:1fr 1fr;gap:clamp(24px,3vw,56px);align-items:end}
  .svc-bay{padding-top:34px}
}
@media (max-width:899px){
  .svc-bus{display:none}
  .svc-sec .unit::before{display:none}
}

/* ============================================================
   ABOUT — the operator dossier.
   It was a column of prose with a sticky note beside it. Now a
   portrait plate carrying hard facts sits next to a numbered
   argument, so a prospective client can skim it in five seconds
   and still come away with the point.
   ============================================================ */
.ab-sec{
  position:relative;
  background:
    radial-gradient(70% 55% at 85% 0%,#0d1c34 0%,transparent 58%),
    #060d18;
  color:#cfe6f7;
  border-top:2px solid var(--ink);
  border-bottom:2px solid var(--ink);
  overflow:hidden;
  padding-top:clamp(56px,6vw,86px);
  padding-bottom:clamp(56px,6vw,86px);
}
.ab-sec::before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.35;
  background-image:
    linear-gradient(rgba(0,180,255,.06) 1px,transparent 1px),
    linear-gradient(90deg,rgba(0,180,255,.06) 1px,transparent 1px);
  background-size:58px 58px;
  -webkit-mask-image:radial-gradient(100% 80% at 70% 20%,#000 10%,transparent 72%);
  mask-image:radial-gradient(100% 80% at 70% 20%,#000 10%,transparent 72%);
}
.ab-sec .wrap{position:relative;z-index:1;max-width:1320px}

.ab-hd{margin-bottom:clamp(26px,3.4vw,44px)}
.ab-t{
  margin:0;font-family:"Orbitron",sans-serif;
  font-size:clamp(1.6rem,3.6vw,2.7rem);font-weight:800;
  line-height:1.08;text-transform:uppercase;color:#fff;
}
.ab-t-em{color:#00c8ff}

.ab-grid{display:grid;gap:clamp(22px,3vw,44px);grid-template-columns:1fr}

/* ---------- the portrait plate ---------- */
.ab-card{
  position:relative;align-self:start;
  background:linear-gradient(165deg,rgba(15,34,56,.9),rgba(7,15,27,.92));
  border:1px solid rgba(0,200,255,.3);
  padding:20px;
  clip-path:polygon(0 30px,30px 0,calc(100% - 14px) 0,100% 14px,
                    100% calc(100% - 30px),calc(100% - 30px) 100%,
                    14px 100%,0 calc(100% - 14px));
}
.ab-photo{
  position:relative;width:100%;aspect-ratio:1;overflow:hidden;
  border:1px solid rgba(0,200,255,.4);
  background:#0a1420;
  clip-path:polygon(0 22px,22px 0,calc(100% - 22px) 0,100% 22px,
                    100% calc(100% - 22px),calc(100% - 22px) 100%,
                    22px 100%,0 calc(100% - 22px));
}
.ab-photo picture{display:contents}
.ab-photo img{width:100%;height:100%;object-fit:cover;object-position:50% 40%;display:block}
.ab-scan{
  position:absolute;inset:0;pointer-events:none;
  background:repeating-linear-gradient(180deg,rgba(0,200,255,.09) 0 1px,transparent 1px 4px);
  opacity:.6;
}
.ab-id{margin:16px 0 14px}
.ab-name{
  display:block;font-family:"Orbitron",sans-serif;font-size:1.05rem;
  font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:#fff;
}
.ab-role{
  display:block;margin-top:4px;
  font-family:"Share Tech Mono",monospace;font-size:9.5px;
  letter-spacing:.14em;text-transform:uppercase;color:#00c8ff;
}
.ab-facts{list-style:none;margin:0 0 16px;padding:0;display:grid;gap:9px}
.ab-facts li{
  display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  padding-bottom:9px;border-bottom:1px solid rgba(0,200,255,.12);
}
.ab-facts li:last-child{border-bottom:0;padding-bottom:0}
.ab-facts span{
  font-family:"Share Tech Mono",monospace;font-size:9px;
  letter-spacing:.13em;text-transform:uppercase;color:#6d8ba5;
}
.ab-facts b{font-size:.84rem;font-weight:600;color:#dff1ff;text-align:right}
.ab-live{display:inline-flex;align-items:center;gap:7px;color:#3ddc84}
.ab-live i{width:6px;height:6px;border-radius:50%;background:#3ddc84;
           animation:pulse 2.2s ease-in-out infinite}
.ab-cta{
  display:block;text-align:center;
  font-family:"Orbitron",sans-serif;font-size:10px;font-weight:700;
  letter-spacing:.13em;text-transform:uppercase;
  color:#04121c;background:#00c8ff;padding:12px 16px;border-radius:5px;
  transition:transform .18s ease,box-shadow .18s ease;
}
.ab-cta:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(0,200,255,.3)}

/* ---------- the argument ---------- */
.ab-lead{
  margin:0 0 26px;font-size:clamp(1.02rem,2.1vw,1.28rem);
  line-height:1.6;color:#e4f2fd;max-width:46ch;
}
.ab-lead span{color:#00c8ff}
.ab-points{display:grid;gap:16px;margin-bottom:28px}
.ab-pt{
  position:relative;padding:16px 18px 16px 58px;
  background:linear-gradient(165deg,rgba(12,28,48,.6),rgba(7,15,27,.6));
  border-left:2px solid #00c8ff;
  transition:background .2s ease,transform .2s ease;
}
.ab-pt:hover{background:linear-gradient(165deg,rgba(18,42,70,.75),rgba(9,20,36,.75));transform:translateX(4px)}
.ab-pt-n{
  position:absolute;left:18px;top:16px;
  font-family:"Orbitron",monospace;font-size:.9rem;font-weight:800;
  color:#00c8ff;opacity:.5;
}
.ab-pt h3{
  margin:0 0 6px;font-family:"Orbitron",sans-serif;font-size:.84rem;
  font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#fff;
}
.ab-pt p{margin:0;color:#8fb0ca;font-size:.88rem;line-height:1.65}

.ab-stack-h{
  display:block;margin-bottom:11px;
  font-family:"Share Tech Mono",monospace;font-size:9px;
  letter-spacing:.16em;text-transform:uppercase;color:#6d8ba5;
}
.ab-sec .tech{
  border-color:rgba(0,200,255,.24);background:rgba(0,200,255,.05);color:#a8c8e2;
  font-family:"Share Tech Mono",monospace;font-size:10px;letter-spacing:.06em;
}
.ab-sec .tech:hover{border-color:#00c8ff;color:#fff}

@media (min-width:900px){
  .ab-grid{grid-template-columns:minmax(260px,320px) 1fr;align-items:start}
}

/* ============================================================
   HUD FRAME + LAUNCH PLATFORM
   The card outline is SVG, not clip-path plus border: the corners
   stay sharp and the glow is a second wider stroke rather than a
   filter, which keeps this cheap on a machine with no GPU.
   ============================================================ */

/* the card is now a portrait plate — taller than wide, deliberately */
/* .pstep is now only a positioning frame. The visible plate is
   .pstep-body, which is what the build animation clips — a clip-path
   on .pstep would clip the launch pad sitting below it. */
.pstep{background:none;border:0;clip-path:none;padding:0;min-height:0}
.pstep-body{
  position:relative;
  min-height:430px;
  padding:52px 24px 30px;
  background:linear-gradient(170deg,rgba(12,30,52,.82),rgba(5,13,25,.9));
  transition:transform .28s ease,background .28s ease;
}
.pstep::before{display:none}

.hud-frame{
  position:absolute;inset:0;width:100%;height:100%;
  pointer-events:none;z-index:1;overflow:visible;
}
.hf-glow{fill:none;stroke:var(--acc);stroke-width:5;opacity:.20;stroke-linejoin:round}
.hf-line{fill:none;stroke:var(--acc);stroke-width:1.6;opacity:.95;stroke-linejoin:round}
.hf-hatch{stroke:var(--acc);stroke-width:1.6;opacity:.7}
.hf-tick{stroke:var(--acc);stroke-width:1;opacity:.45}
.hf-dot{fill:var(--acc);opacity:.8}
.hf-ring{fill:none;stroke:var(--acc);stroke-width:1.2;opacity:.7}

.pstep:hover .hf-line{opacity:1}
.pstep:hover .hf-glow{opacity:.42}

/* ---------- the launch platform ---------- */
.pstep-pad{
  position:absolute;left:50%;bottom:-104px;transform:translateX(-50%);
  width:118%;max-width:320px;height:170px;
  pointer-events:none;color:var(--acc);
}
.pad-svg{width:100%;height:100%;display:block;overflow:visible}

.pd-floor{fill:none;stroke:var(--acc);stroke-width:1}
.pd-body{fill:#0a1729;stroke:color-mix(in srgb,var(--acc) 45%,transparent);stroke-width:1.4}
.pd-seg{fill:color-mix(in srgb,var(--acc) 34%,transparent);
        stroke:var(--acc);stroke-width:.8;opacity:.85}
.pd-groove{fill:none;stroke:var(--acc);stroke-width:1.1}
.pd-beam{color:var(--acc)}
.pd-core{fill:color-mix(in srgb,var(--acc) 70%,white);opacity:.55}
.pd-core-hot{fill:#ffffff;opacity:.95}

.pstep:hover .pd-seg{opacity:1}
.pstep:hover .pd-core{opacity:.85}

/* the beam pulses gently once the station is up */
[data-fx="full"] .proc-steps.built .pd-beam{
  animation:beamPulse 3.4s ease-in-out infinite;
  animation-delay:calc(var(--i) * .6s + 1.6s);
}
@keyframes beamPulse{0%,100%{opacity:.5}50%{opacity:1}}

/* the projection cone starts at the platform core now */
.ph-cone{
  position:absolute;left:50%;bottom:-58px;transform:translateX(-50%);
  width:66%;height:calc(100% + 58px);
  pointer-events:none;z-index:0;
  background:linear-gradient(0deg,
    color-mix(in srgb,var(--acc) 30%,transparent) 0%,
    color-mix(in srgb,var(--acc) 10%,transparent) 36%,
    transparent 80%);
  clip-path:polygon(42% 100%,58% 100%,100% 0,0 0);
  opacity:0;
}

/* the old corner brackets and edge rail are replaced by the frame */
.pcase,.pedge{display:none}

/* ---------- the machines' lower half was invisible ----------
   The stand and base were painted almost the same colour as the dark
   sections they sit on, so every card looked like a floating screen.
   They now carry a metal gradient and a lit top edge. */
.mstand{
  width:20%;height:14px;margin:0 auto;
  background:linear-gradient(180deg,#22374f,#111f31);
  border:1px solid rgba(0,200,255,.28);border-top:0;
  border-radius:0 0 3px 3px;
}
.mbase{
  width:44%;height:10px;margin:0 auto 2px;
  background:linear-gradient(180deg,#2a4058,#0e1a2a);
  border:1px solid rgba(0,200,255,.3);
  border-radius:3px;
  box-shadow:0 3px 10px rgba(0,0,0,.45);
  position:relative;
}
.mbase::after{
  content:"";position:absolute;left:18%;right:18%;top:1px;height:1px;
  background:rgba(0,200,255,.55);
}
.svc-sec .mstand,.svc-sec .mbase{background:linear-gradient(180deg,#22374f,#0e1a2a)}

@media (max-width:959px){
  .pstep{min-height:0}
  .pstep-pad{bottom:-88px;height:150px}
}


/* ============================================================
   CONTACT — the transmit console.
   Brief on the left, instrument fields on the right, transmit bar
   across the bottom. Every panel is a cut-cornered housing; the
   glow is layered box-shadow, never a filter.
   ============================================================ */
.ct-sec{
  --acc:#00c8ff;
  --acc-2:#4ddcff;
  --edge:rgba(0,200,255,.30);
  --edge-soft:rgba(0,200,255,.14);
  --panel:rgba(7,20,36,.72);
  --tx:#cfe6f7;
  --tx-2:#7fa3c0;

  position:relative;
  background:
    radial-gradient(70% 55% at 18% 0%,#0b2038 0%,transparent 58%),
    radial-gradient(65% 60% at 88% 96%,#0d1638 0%,transparent 60%),
    #030810;
  color:var(--tx);
  border-top:2px solid var(--ink);
  overflow:hidden;
  padding-top:clamp(52px,6vw,84px);
  padding-bottom:clamp(52px,6vw,84px);
}
.ct-sec::before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.5;
  background-image:
    linear-gradient(rgba(0,180,255,.055) 1px,transparent 1px),
    linear-gradient(90deg,rgba(0,180,255,.055) 1px,transparent 1px);
  background-size:56px 56px;
  -webkit-mask-image:radial-gradient(100% 80% at 50% 40%,#000 10%,transparent 74%);
  mask-image:radial-gradient(100% 80% at 50% 40%,#000 10%,transparent 74%);
}
.ct-sec .wrap{position:relative;z-index:1;max-width:1240px}

/* ---------- the console shell ---------- */
.ct-console{
  position:relative;
  display:grid;grid-template-columns:1fr;
  background:linear-gradient(160deg,rgba(10,26,46,.82),rgba(4,11,20,.9));
  border:1px solid var(--edge);
  box-shadow:0 0 0 1px rgba(0,0,0,.5),0 0 46px rgba(0,140,255,.10);
  clip-path:polygon(0 40px,40px 0,calc(100% - 22px) 0,100% 22px,
                    100% calc(100% - 40px),calc(100% - 40px) 100%,
                    22px 100%,0 calc(100% - 22px));
}
/* the lit top and bottom edges from the reference */
.ct-console::before,
.ct-console::after{
  content:"";position:absolute;left:12%;right:12%;height:2px;pointer-events:none;
  background:linear-gradient(90deg,transparent,var(--acc-2),transparent);
  opacity:.85;
}
.ct-console::before{top:0}
.ct-console::after{bottom:0}
.ct-scanlines{
  position:absolute;inset:0;pointer-events:none;z-index:1;
  background:repeating-linear-gradient(180deg,rgba(0,200,255,.04) 0 1px,transparent 1px 4px);
}
/* Scoped, NOT a blanket `> *`: that outranks .ct-scanlines{position:
   absolute} and turns the overlay into a real grid item, which stole
   a column and wrapped the form onto a second row. */
.ct-brief,.ct-form{position:relative;z-index:2}

/* ---------- left: the brief ---------- */
.ct-brief{
  position:relative;
  padding:clamp(26px,3vw,40px);
  border-bottom:1px solid var(--edge-soft);
}
.ct-badge{
  display:grid;place-items:center;
  width:82px;height:82px;margin-bottom:24px;
  color:var(--acc);
  background:linear-gradient(165deg,#0d2138,#07131f);
  clip-path:polygon(50% 0%,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%);
  position:relative;
}
.ct-badge::before{
  content:"";position:absolute;inset:4px;
  clip-path:polygon(50% 0%,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%);
  border:1px solid var(--acc);opacity:.55;
}
.ct-badge svg{width:34px;height:34px;position:relative}

.ct-t{
  margin:0 0 14px;font-family:"Orbitron",sans-serif;
  font-size:clamp(1.4rem,2.6vw,1.95rem);font-weight:800;
  line-height:1.12;text-transform:uppercase;color:#fff;
}
.ct-t-em{color:var(--acc)}
.ct-p{margin:0 0 26px;color:var(--tx-2);font-size:.93rem;line-height:1.7;max-width:34ch}

.ct-assure{list-style:none;margin:0;padding:0;display:grid;gap:13px}
.ct-assure li{display:flex;align-items:center;gap:11px;font-size:.86rem;color:var(--tx)}
.ct-assure svg{width:17px;height:17px;color:var(--acc);flex:none}

/* the hatch flash in the bottom corner of the brief */
.ct-brief-deco{
  position:absolute;left:clamp(26px,3vw,40px);bottom:clamp(20px,2.4vw,30px);
  width:96px;height:14px;pointer-events:none;
  background:repeating-linear-gradient(115deg,
    var(--acc) 0 3px,transparent 3px 9px);
  opacity:.55;
}

/* ---------- right: the instruments ---------- */
.ct-form{padding:clamp(24px,3vw,38px)}
.ct-grid{display:grid;grid-template-columns:1fr;gap:clamp(12px,1.6vw,18px)}

.ctf{
  position:relative;display:block;
  background:var(--panel);
  border:1px solid var(--edge);
  padding:13px 46px 13px 16px;
  clip-path:polygon(0 13px,13px 0,100% 0,100% calc(100% - 13px),
                    calc(100% - 13px) 100%,0 100%);
  transition:border-color .18s ease,background .18s ease,box-shadow .18s ease;
}
.ctf:focus-within{
  border-color:var(--acc);
  background:rgba(8,26,46,.85);
  box-shadow:0 0 22px rgba(0,200,255,.16);
}
.ctf-l{
  display:block;margin-bottom:7px;
  font-family:"Orbitron",sans-serif;font-size:9px;font-weight:700;
  letter-spacing:.16em;text-transform:uppercase;color:var(--acc);
}
.ctf-l em{font-style:normal;color:var(--tx-2);letter-spacing:.1em}

.ctf input,.ctf select,.ctf textarea{
  width:100%;background:none;border:0;padding:0;
  color:#eaf6ff;font-family:"Segoe UI",system-ui,sans-serif;
  font-size:.95rem;line-height:1.5;
}
.ctf input:focus,.ctf select:focus,.ctf textarea:focus{outline:none}
.ctf input::placeholder,.ctf textarea::placeholder{color:#5b7a94}
.ctf select{appearance:none;cursor:pointer;color:#eaf6ff}
.ctf select option{background:#0a1828;color:#eaf6ff}
.ctf select:invalid,.ctf select option[value=""]{color:#5b7a94}
.ctf textarea{resize:vertical;min-height:96px}

.ctf-i{
  position:absolute;right:15px;top:50%;transform:translateY(-50%);
  color:var(--acc);opacity:.75;pointer-events:none;display:block;
}
.ctf-i svg{width:19px;height:19px;display:block}
.ctf-area .ctf-i{top:20px;transform:none}
.ctf:focus-within .ctf-i{opacity:1}

/* ---------- transmit bar ---------- */
.ct-send{
  display:grid;grid-template-columns:auto 1fr auto;align-items:center;
  gap:clamp(10px,1.4vw,16px);
  margin-top:clamp(18px,2.4vw,26px);
}
.ct-radar{
  display:grid;place-items:center;width:58px;height:58px;flex:none;
  color:var(--acc);
}
.ct-radar svg{width:100%;height:100%;display:block;overflow:visible}

.ct-go{
  position:relative;display:flex;align-items:center;justify-content:center;gap:16px;
  width:100%;padding:19px 26px;cursor:pointer;
  background:linear-gradient(90deg,rgba(0,140,255,.20),rgba(0,200,255,.30));
  border:1px solid var(--acc);
  color:#eaf9ff;
  font-family:"Orbitron",sans-serif;font-size:12px;font-weight:800;
  letter-spacing:.2em;text-transform:uppercase;
  /* the double-chevron silhouette from the reference */
  clip-path:polygon(26px 0,100% 0,calc(100% - 26px) 100%,0 100%);
  transition:background .2s ease,box-shadow .2s ease,transform .2s ease;
}
.ct-go:hover{
  background:linear-gradient(90deg,rgba(0,180,255,.34),rgba(0,220,255,.46));
  box-shadow:0 0 30px rgba(0,200,255,.3);
  transform:translateY(-2px);
}
.ct-arrow{display:block;color:var(--acc-2)}
.ct-arrow svg{width:24px;height:24px;display:block}
.ct-go:hover .ct-arrow{color:#fff}

.ct-alt{
  flex:none;padding:19px 22px;cursor:pointer;
  background:transparent;border:1px solid var(--edge);
  color:var(--tx-2);
  font-family:"Orbitron",sans-serif;font-size:10px;font-weight:700;
  letter-spacing:.14em;text-transform:uppercase;
  clip-path:polygon(0 0,100% 0,calc(100% - 16px) 100%,0 100%);
  transition:border-color .18s ease,color .18s ease,background .18s ease;
}
.ct-alt:hover{border-color:var(--acc);color:#fff;background:rgba(0,200,255,.08)}

.ct-note{
  margin:16px 0 0;text-align:center;
  font-family:"Share Tech Mono",monospace;font-size:10px;
  letter-spacing:.1em;color:#54718b;
}

/* radar sweep, one composited rotation, budget-gated */
[data-fx="full"] .ct-radar .rd-sweep{animation:spin 4.5s linear infinite;transform-origin:50% 50%}
[data-fx="lite"] .ct-radar .rd-sweep{animation:spin 12s linear infinite;transform-origin:50% 50%}
.rd-ring{fill:none;stroke:currentColor;stroke-width:1.4;opacity:.5}
.rd-cross{stroke:currentColor;stroke-width:1;opacity:.32}
.rd-sweep{fill:none;stroke:currentColor;stroke-width:2;opacity:.9;stroke-linecap:round}
.rd-core{fill:#fff}

@media (min-width:900px){
  .ct-console{grid-template-columns:minmax(280px,340px) 1fr}
  .ct-brief{border-bottom:0;border-right:1px solid var(--edge-soft)}
  .ct-grid{grid-template-columns:1fr 1fr}
  .ctf-wide{grid-column:1/-1}
}
@media (max-width:520px){
  .ct-send{grid-template-columns:1fr;gap:10px}
  .ct-radar{display:none}
  .ct-alt{width:100%;clip-path:none}
  .ct-go{clip-path:polygon(18px 0,100% 0,calc(100% - 18px) 100%,0 100%)}
}

/* ============================================================
   FULL DARK
   The notebook paper is gone. Everything that was still light —
   the page base, the Work bay, the footer, the process value bar
   — now runs on the same navy the console sections use.
   Written as overrides at the end of the file rather than editing
   the original tokens, because those tokens are also used for
   structure (card borders, monitor stands) and flipping them
   wholesale would turn every border pale.
   ============================================================ */
body{
  background-color:#040a13;
  background-image:
    linear-gradient(rgba(0,180,255,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(0,180,255,.045) 1px,transparent 1px);
  background-size:56px 56px;
  color:#cfe6f7;
}
body::before{display:none}            /* the red margin rule was a paper artefact */

::selection{background:rgba(0,200,255,.3);color:#eaf7ff}
:focus-visible{outline-color:#00c8ff}

/* ---------- header ---------- */
.hdr.stuck{
  background:rgba(5,12,22,.94);
  border-bottom-color:rgba(0,200,255,.22);
  box-shadow:0 1px 0 rgba(0,0,0,.5);
}
.nav a{color:#8fb0ca}
.nav a:hover,.nav a.on{color:#eaf7ff}
.nav a::after{background:#00c8ff}
.nav .nav-cta{
  background:#00c8ff;color:#04121c;box-shadow:2px 2px 0 rgba(0,0,0,.5);
}
.nav .nav-cta:hover{box-shadow:3px 3px 0 rgba(0,0,0,.6)}
.nav-toggle span{background:#cfe6f7}

/* ---------- generic sections ---------- */
.sec-alt{background:rgba(8,17,30,.85)}
.sec-t,.sec-hd{color:#eaf7ff}
.sec-p{color:#7fa3c0}
.kicker{color:#00c8ff}

/* ---------- WORK: the same bay treatment as Services ---------- */
.wk-sec{
  position:relative;
  background:
    radial-gradient(75% 55% at 88% 0%,#0b1e36 0%,transparent 58%),
    radial-gradient(65% 60% at 10% 100%,#10183a 0%,transparent 60%),
    #050b15;
  color:#cfe6f7;
  border-top:2px solid #0a1626;
  border-bottom:2px solid #0a1626;
  overflow:hidden;
  padding-top:clamp(56px,6vw,86px);
  padding-bottom:clamp(56px,6vw,86px);
}
.wk-sec::before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.4;
  background-image:
    linear-gradient(rgba(0,180,255,.06) 1px,transparent 1px),
    linear-gradient(90deg,rgba(0,180,255,.06) 1px,transparent 1px);
  background-size:58px 58px;
  -webkit-mask-image:radial-gradient(110% 80% at 50% 40%,#000 12%,transparent 76%);
  mask-image:radial-gradient(110% 80% at 50% 40%,#000 12%,transparent 76%);
}
.wk-sec .wrap{position:relative;z-index:1;max-width:1320px}
.wk-hd{display:grid;gap:20px;margin-bottom:clamp(30px,3.6vw,48px)}
.wk-t{
  margin:0;font-family:"Orbitron",sans-serif;
  font-size:clamp(1.6rem,3.6vw,2.7rem);font-weight:800;
  line-height:1.08;text-transform:uppercase;color:#fff;
}
.wk-t-em{color:#00c8ff}
.wk-p{margin:0;color:#7fa3c0;font-size:clamp(.94rem,1.8vw,1.03rem);max-width:56ch}
.wk-bay{position:relative}
.wk-bus{
  position:absolute;left:0;right:0;top:34px;height:1px;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(0,200,255,.32) 12%,
             rgba(0,200,255,.32) 88%,transparent);
}
.wk-sec .unit{position:relative}
.wk-sec .unit::before{
  content:"";position:absolute;left:50%;top:-30px;width:1px;height:30px;
  background:linear-gradient(180deg,rgba(0,200,255,.4),transparent);
  pointer-events:none;
}
.wk-sec .proj{border-color:rgba(0,200,255,.3)}
.wk-sec .proj:hover{
  border-color:#00c8ff;
  box-shadow:6px 8px 0 rgba(0,0,0,.4),0 0 22px rgba(0,200,255,.18);
}
@media (min-width:900px){
  .wk-hd{grid-template-columns:1fr 1fr;gap:clamp(24px,3vw,56px);align-items:end}
  .wk-bay{padding-top:34px}
}
@media (max-width:899px){
  .wk-bus{display:none}
  .wk-sec .unit::before{display:none}
}

/* ---------- process value bar reads on dark now ---------- */
.proc-values{background:linear-gradient(170deg,rgba(10,24,42,.85),rgba(5,12,22,.85))}

/* ---------- FOOTER ---------- */
.ftr{
  position:relative;
  background:
    radial-gradient(80% 120% at 50% 0%,#0a1c33 0%,transparent 62%),
    #03080f;
  border-top:1px solid rgba(0,200,255,.22);
  color:#cfe6f7;
  padding:clamp(44px,5vw,64px) 0 clamp(22px,2.4vw,30px);
  overflow:hidden;
}
.ftr::before{
  content:"";position:absolute;left:0;right:0;top:0;height:1px;
  background:linear-gradient(90deg,transparent,#00c8ff,transparent);
  opacity:.8;
}
.ftr-in{
  display:grid;gap:clamp(24px,3vw,44px);grid-template-columns:1fr;
  align-items:start;padding-bottom:clamp(24px,3vw,36px);
  border-bottom:1px solid rgba(0,200,255,.12);
}
.ft-brand{display:grid;gap:10px}
.ft-name{
  font-family:"Orbitron",sans-serif;font-size:1.15rem;font-weight:800;
  letter-spacing:.14em;text-transform:uppercase;color:#fff;
}
.ft-role{
  font-family:"Share Tech Mono",monospace;font-size:9.5px;
  letter-spacing:.16em;text-transform:uppercase;color:#00c8ff;
}
.ft-blurb{margin:4px 0 0;color:#6d8ba5;font-size:.86rem;line-height:1.7;max-width:34ch}

.ft-col-h{
  display:block;margin-bottom:14px;
  font-family:"Orbitron",sans-serif;font-size:9px;font-weight:700;
  letter-spacing:.2em;text-transform:uppercase;color:#00c8ff;
}
.ft-links{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.ft-links a{
  display:inline-flex;align-items:center;gap:9px;
  font-size:.87rem;color:#9dbcd4;transition:color .18s ease,transform .18s ease;
}
.ft-links a::before{
  content:"";width:4px;height:4px;border-radius:50%;
  background:rgba(0,200,255,.5);flex:none;transition:background .18s ease;
}
.ft-links a:hover{color:#fff;transform:translateX(3px)}
.ft-links a:hover::before{background:#00c8ff;box-shadow:0 0 7px #00c8ff}

.ft-contact{display:grid;gap:11px}
.ft-line{display:flex;align-items:center;gap:11px;font-size:.87rem;color:#9dbcd4;
         transition:color .18s ease}
.ft-line:hover{color:#fff}
.ft-line svg{width:16px;height:16px;color:#00c8ff;flex:none}
.ft-cta{
  margin-top:6px;display:inline-flex;align-items:center;justify-content:center;
  font-family:"Orbitron",sans-serif;font-size:9.5px;font-weight:700;
  letter-spacing:.14em;text-transform:uppercase;
  color:#04121c;background:#00c8ff;padding:12px 18px;
  clip-path:polygon(0 8px,8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%);
  transition:transform .18s ease,box-shadow .18s ease;
}
.ft-cta:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,200,255,.28)}

.ftr-b{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;
  padding-top:clamp(16px,2vw,22px);border-top:0;
  font-family:"Share Tech Mono",monospace;font-size:10px;
  letter-spacing:.1em;color:#4f6d87;
}
.ft-sys{display:inline-flex;align-items:center;gap:8px;color:#3ddc84}
.ft-sys i{width:6px;height:6px;border-radius:50%;background:#3ddc84;
          box-shadow:0 0 7px #3ddc84;animation:pulse 2.4s ease-in-out infinite}
[data-fx="none"] .ft-sys i{animation:none}

@media (min-width:820px){
  .ftr-in{grid-template-columns:1.5fr 1fr 1.2fr}
}

/* ---------- anything still using paper tokens ---------- */
.tech{border-color:rgba(0,200,255,.22);background:rgba(0,200,255,.05);color:#a8c8e2}
.tech:hover{border-color:#00c8ff;color:#fff}
.step-t,.about-tx h2{color:#eaf7ff}
.step-p,.about-tx p{color:#8fb0ca}

/* ============================================================
   A LIVING HERO
   Constant, low-amplitude motion so the interface never reads as
   a static image. Everything here animates transform or opacity
   only — no layout, no filters — and all of it is switched off at
   the "none" effects tier.
   ============================================================ */

/* ---------- the portal breathes ---------- */
.portal{animation:portalDrift 13s ease-in-out infinite}
@keyframes portalDrift{
  0%,100%{transform:translate3d(var(--px-por,0),var(--py-por,0),0) scale(1)}
  50%    {transform:translate3d(var(--px-por,0),calc(var(--py-por,0px) - 7px),0) scale(1.012)}
}

/* the plate ring hunts slightly, like a machine holding position */
.pl-outer{animation:spin 120s linear infinite,plateHunt 9s ease-in-out infinite}
@keyframes plateHunt{
  0%,100%{transform:rotate(0deg)}
  35%    {transform:rotate(.7deg)}
  70%    {transform:rotate(-.5deg)}
}

/* the tech ring scans: a bright arc sweeps round independently */
.tk-scan{animation:scanSweep 6.5s cubic-bezier(.5,0,.5,1) infinite;transform-origin:50% 50%}
@keyframes scanSweep{
  0%  {stroke-dashoffset:0;opacity:0}
  10% {opacity:.85}
  90% {opacity:.5}
  100%{stroke-dashoffset:-905;opacity:0}
}
/* cardinal nodes blink in sequence */
.tk-node{animation:nodeBlink 4s ease-in-out infinite}
.pl-tech .tk-node:nth-of-type(2){animation-delay:1s}
.pl-tech .tk-node:nth-of-type(3){animation-delay:2s}
.pl-tech .tk-node:nth-of-type(4){animation-delay:3s}
@keyframes nodeBlink{0%,100%{opacity:.35}50%{opacity:1}}

/* the energy well pulses against the portrait */
.en-veil{animation:veilPulse 8s ease-in-out infinite}
@keyframes veilPulse{0%,100%{opacity:.75}50%{opacity:1}}

/* the portrait rim glows in and out */
.pic-rim{animation:rimGlow 7s ease-in-out infinite}
@keyframes rimGlow{
  0%,100%{box-shadow:0 0 18px rgba(0,200,255,.30),0 0 0 5px rgba(0,140,255,.06)}
  50%    {box-shadow:0 0 30px rgba(0,200,255,.55),0 0 0 7px rgba(0,140,255,.12)}
}
/* the scanline sheet drifts down the portrait */
.pic-scan{animation:picScan 5s linear infinite}
@keyframes picScan{from{background-position-y:0}to{background-position-y:3px}}

/* ---------- the ring modules ----------
   They no longer just orbit: each chip bobs along the radius and
   rocks a little, and a light runs round the ring lighting each in
   turn. Two extra transforms per chip, both composited. */
.rm-spin{animation:spin 95s linear infinite reverse}
.rm-chip{
  animation:chipBob 5.5s ease-in-out infinite;
  animation-delay:calc(var(--k,0) * .42s);
}
@keyframes chipBob{
  0%,100%{transform:translateY(0) rotate(0deg)}
  30%    {transform:translateY(-5px) rotate(2.5deg)}
  65%    {transform:translateY(3px) rotate(-2deg)}
}
/* the relay: each chip lights as the pulse passes it */
.rm-chip::before{
  content:"";position:absolute;inset:-3px;pointer-events:none;
  border:1px solid var(--brand,#00c8ff);
  clip-path:polygon(50% 0%,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%);
  opacity:0;
  animation:chipRelay 7s ease-in-out infinite;
  animation-delay:calc(var(--k,0) * .55s);
}
@keyframes chipRelay{
  0%,72%,100%{opacity:0;transform:scale(1)}
  6%         {opacity:.9;transform:scale(1.18)}
  16%        {opacity:0;transform:scale(1.34)}
}
.rm-chip:hover{animation-play-state:paused}

/* ---------- the wires carry traffic ---------- */
.w-core{animation:coreFlicker 5s ease-in-out infinite}
@keyframes coreFlicker{0%,100%{opacity:.34}50%{opacity:.62}}
/* a packet runs down a different cable every few seconds */
.w-pulse{stroke-dasharray:20 3000}
[data-fx="full"] [data-wire="0"] .w-pulse,
[data-fx="full"] [data-wire="2"] .w-pulse,
[data-fx="full"] [data-wire="4"] .w-pulse,
[data-fx="full"] [data-wire="6"] .w-pulse{
  opacity:.75;animation:runwire 2.4s linear infinite;
}
[data-fx="full"] [data-wire="2"] .w-pulse{animation-delay:1.6s}
[data-fx="full"] [data-wire="4"] .w-pulse{animation-delay:3.2s}
[data-fx="full"] [data-wire="6"] .w-pulse{animation-delay:4.8s}

/* ---------- the panels idle ---------- */
.navmod{animation:panelIdle 11s ease-in-out infinite;
        animation-delay:calc(var(--i,0) * .5s)}
@keyframes panelIdle{
  0%,100%{transform:translateX(0)}
  50%    {transform:translateX(1.5px)}
}
.navmod:hover,.navmod:focus-visible,.navmod.on{animation:none}

/* the readout values tick faintly, as if refreshing */
.out-v{animation:valueTick 9s steps(1) infinite}
.out li:nth-child(2) .out-v{animation-delay:2.2s}
.out li:nth-child(3) .out-v{animation-delay:4.4s}
.out li:nth-child(4) .out-v{animation-delay:6.6s}
@keyframes valueTick{0%,97%,100%{opacity:1}98%{opacity:.55}99%{opacity:1}}

/* the little sparklines shimmer */
.vz-stroke,.vz-arc{animation:vizPulse 6s ease-in-out infinite}
@keyframes vizPulse{0%,100%{opacity:.7}50%{opacity:1}}

/* ---------- budget ---------- */
[data-fx="lite"] .portal{animation-duration:26s}
[data-fx="lite"] .pl-outer{animation:spin 220s linear infinite}
[data-fx="lite"] .rm-chip{animation-duration:11s}
[data-fx="lite"] .rm-chip::before,
[data-fx="lite"] .out-v,
[data-fx="lite"] .vz-stroke,
[data-fx="lite"] .vz-arc,
[data-fx="lite"] .navmod{animation:none}
[data-fx="lite"] .tk-scan{animation-duration:14s}

[data-fx="none"] .portal,[data-fx="none"] .pl-outer,[data-fx="none"] .tk-scan,
[data-fx="none"] .tk-node,[data-fx="none"] .en-veil,[data-fx="none"] .pic-rim,
[data-fx="none"] .pic-scan,[data-fx="none"] .rm-chip,[data-fx="none"] .rm-chip::before,
[data-fx="none"] .w-core,[data-fx="none"] .navmod,[data-fx="none"] .out-v,
[data-fx="none"] .vz-stroke,[data-fx="none"] .vz-arc{animation:none!important}

@media (prefers-reduced-motion:reduce){
  .portal,.pl-outer,.tk-scan,.tk-node,.en-veil,.pic-rim,.pic-scan,
  .rm-chip,.rm-chip::before,.w-core,.navmod,.out-v{animation:none!important}
}

/* ============================================================
   HERO — matched to the reference composition.
   Three columns under a full-width console bar:
     left   nav stack + status module
     centre portal with four labels and the tech ring
     right  system output + core expertise
   ============================================================ */

/* ---------- header: active link and CTA arrow ---------- */
.nav a.on::after,
.nav a:hover::after{
  transform:scaleX(1);transform-origin:0 50%;
  background:linear-gradient(90deg,transparent,#00c8ff,transparent);
  height:2px;border-radius:0;
}
.nav a.on::before{
  content:"";position:absolute;left:50%;bottom:-8px;
  width:5px;height:5px;margin-left:-2.5px;border-radius:50%;
  background:#00c8ff;box-shadow:0 0 8px #00c8ff;
}
.nav .nav-cta{
  display:inline-flex;align-items:center;gap:10px;
  clip-path:polygon(0 8px,8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%);
}
.nav .nav-cta svg{width:15px;height:15px}

/* ---------- left column ---------- */
.sys-left{display:grid;gap:14px;align-content:start}

.navmod{
  display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;
  clip-path:polygon(0 9px,9px 0,100% 0,100% calc(100% - 9px),calc(100% - 9px) 100%,0 100%);
}
.nm-ico{display:block;color:#7fb4d8;opacity:.9;transition:color .2s ease}
.nm-ico svg{width:19px;height:19px;display:block}
.navmod:hover .nm-ico,.navmod.on .nm-ico{color:#4ddcff}

/* the active module, as in the reference */
.navmod.on{
  background:linear-gradient(90deg,rgba(0,140,255,.24),rgba(10,30,52,.6));
  border-color:#00c8ff;
  box-shadow:0 0 22px rgba(0,200,255,.28),inset 0 0 18px rgba(0,200,255,.10);
}
.navmod.on::after{
  content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;
  background:#4ddcff;box-shadow:0 0 10px #4ddcff;
}

/* status module */
.statmod{
  position:relative;padding:12px 14px;
  background:linear-gradient(162deg,#0b1d36,#071426);
  border:1px solid rgba(0,200,255,.28);
  clip-path:polygon(0 9px,9px 0,100% 0,100% calc(100% - 9px),calc(100% - 9px) 100%,0 100%);
}
.statmod-k{
  display:flex;align-items:center;gap:8px;
  font-family:"Share Tech Mono",monospace;font-size:9px;
  letter-spacing:.15em;text-transform:uppercase;color:#6d8ba5;
}
.statmod-k i{width:6px;height:6px;border-radius:50%;background:#3ddc84;flex:none;
             box-shadow:0 0 8px #3ddc84;animation:pulse 2.2s ease-in-out infinite}
.statmod-v{display:block;margin-top:6px;font-size:.86rem;color:#3ddc84}
[data-fx="none"] .statmod-k i{animation:none}

/* ---------- the four portal labels ---------- */
.portal-wrap{position:relative}
.plabel{
  position:absolute;z-index:6;white-space:nowrap;
  padding:7px 16px;
  background:rgba(6,16,30,.9);
  border:1px solid rgba(0,200,255,.34);
  font-family:"Orbitron",sans-serif;font-size:9.5px;font-weight:700;
  letter-spacing:.16em;text-transform:uppercase;color:#bfe6ff;
  clip-path:polygon(0 7px,7px 0,calc(100% - 7px) 0,100% 7px,
                    100% calc(100% - 7px),calc(100% - 7px) 100%,
                    7px 100%,0 calc(100% - 7px));
}
.plabel-t{top:-2px;left:50%;transform:translateX(-50%)}
.plabel-b{bottom:-2px;left:50%;transform:translateX(-50%)}
.plabel-l{left:-8px;top:50%;transform:translateY(-50%) rotate(180deg);writing-mode:vertical-rl}
.plabel-r{right:-8px;top:50%;transform:translateY(-50%);writing-mode:vertical-rl}

/* ---------- system output rows ---------- */
.scr-h{display:flex;align-items:center;justify-content:space-between}
.scr-dots{display:flex;gap:5px}
.scr-dots i{width:5px;height:5px;border-radius:50%;background:rgba(0,200,255,.45)}
.scr-dots i:first-child{background:#00c8ff;box-shadow:0 0 7px #00c8ff}

.out li{
  display:grid;grid-template-columns:auto 1fr auto;align-items:center;
  gap:4px 12px;
  padding-bottom:var(--s2);border-bottom:1px solid var(--line-2);
}
.out-ic{
  grid-row:1/3;display:grid;place-items:center;
  width:30px;height:30px;color:#4ddcff;
  border:1px solid rgba(0,200,255,.28);
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
}
.out-ic svg{width:15px;height:15px}
.out-l{grid-column:2;grid-row:1;order:0}
.out-v{grid-column:2;grid-row:2}
.out-viz{grid-column:3;grid-row:1/3;align-self:center}

/* ---------- bottom console ---------- */
.console-bar{
  display:grid;align-items:center;
  grid-template-columns:1fr;
  gap:18px;
  padding:16px clamp(14px,2vw,26px);
}
.cb-id{min-width:0}
.cb-quote{
  margin:0;display:flex;align-items:flex-start;gap:12px;
  font-size:clamp(.9rem,1.5vw,1.02rem);line-height:1.5;color:#cfe6f7;
}
.cb-mark{
  font-family:Georgia,serif;font-size:2.2rem;line-height:.8;
  color:rgba(0,200,255,.5);flex:none;
}
.cb-qt em{font-style:normal;color:#4ddcff}

.cb-orb{display:none;width:74px;height:74px;color:#00c8ff}
.cb-orb svg{width:100%;height:100%;display:block;overflow:visible}
.ob-ring{fill:none;stroke:currentColor;stroke-width:1.2;opacity:.45}
.ob-arc{fill:none;stroke:currentColor;stroke-width:2;opacity:.9;stroke-linecap:round}
.ob-core{fill:#eafaff}
[data-fx="full"] .ob-arc{animation:spin 5s linear infinite;transform-origin:50% 50%}
[data-fx="lite"] .ob-arc{animation:spin 14s linear infinite;transform-origin:50% 50%}

.cb-act{display:grid;gap:9px;justify-items:start}
.cb-kick{
  font-family:"Share Tech Mono",monospace;font-size:9px;
  letter-spacing:.16em;text-transform:uppercase;color:#6d8ba5;
}
.cb-go{
  display:inline-flex;align-items:center;gap:14px;
  padding:12px 20px;
  background:rgba(0,200,255,.10);
  border:1px solid #00c8ff;
  color:#eaf9ff;
  font-family:"Orbitron",sans-serif;font-size:10px;font-weight:700;
  letter-spacing:.16em;text-transform:uppercase;
  clip-path:polygon(0 9px,9px 0,100% 0,100% calc(100% - 9px),calc(100% - 9px) 100%,0 100%);
  transition:background .2s ease,box-shadow .2s ease,transform .2s ease;
}
.cb-go:hover{background:rgba(0,200,255,.22);box-shadow:0 0 24px rgba(0,200,255,.3);transform:translateY(-2px)}
.cb-chev{color:#4ddcff;letter-spacing:.05em;font-size:14px;line-height:1}

/* ---------- desktop composition ---------- */
@media (min-width:1040px){
  .sys{
    grid-template-columns:minmax(210px,246px) minmax(0,1fr) minmax(214px,244px);
    grid-template-areas:
      "nav    portal out"
      "nav    portal out"
      "console console console";
    align-items:start;
    gap:var(--s4) clamp(20px,2.6vw,44px);
  }
  .sys-left{grid-area:nav}
  .portal-wrap{grid-area:portal;align-self:center}
  .readouts{grid-area:out}
  .console-bar{
    grid-area:console;margin-top:var(--s1);
    grid-template-columns:auto 1fr auto auto;
    gap:clamp(18px,2.4vw,40px);
  }
  .cb-orb{display:block}
  .portal{--psize:min(470px,60vh)}
}
@media (min-width:1300px){ .portal{--psize:min(520px,62vh)} }

@media (max-width:1039px){
  .sys{
    grid-template-columns:1fr 1fr;
    grid-template-areas:"portal portal" "nav out" "console console";
  }
  .sys-left{grid-area:nav}
  .plabel-l,.plabel-r{display:none}
}
@media (max-width:700px){
  .sys{grid-template-columns:1fr;grid-template-areas:"portal" "nav" "console" "out"}
  .plabel{font-size:8px;padding:5px 11px;letter-spacing:.12em}
  .console-bar{justify-items:center;text-align:center}
  .cb-quote{display:none}
  .cb-act{justify-items:center}
  .cb-go{width:100%;justify-content:center}
}

/* short viewports keep the same composition, tighter */
@media (min-width:1040px) and (max-height:820px){
  .statmod{padding:9px 12px}
  .statmod-v{font-size:.8rem}
  .plabel{padding:6px 13px;font-size:9px}
  .out-ic{width:26px;height:26px}
  .out-ic svg{width:13px;height:13px}
}

/* Trim the last few pixels so the hero lands exactly on the fold. */
@media (min-width:1040px) and (max-height:820px){
  .hero{padding-top:52px;padding-bottom:10px}
  .sys{gap:9px clamp(18px,2.2vw,38px)}
  .statmod{padding:8px 12px}
}

/* ============================================================
   PERFORMANCE + HERO CORRECTIONS
   Measured on a machine with no GPU driver, the page was carrying
   96 running animations, 69 box-shadows, 25 mask-image layers and
   13 will-change promotions. Masks and shadows are rasterised on
   the CPU there, so they were the real cost — not the DOM size.
   ============================================================ */

/* content-visibility was tried here and MEASURED WORSE: scrolling went
   from 2.2ms to 5.4ms per step, because each section entering the
   viewport has to lay out from scratch. It helps first paint and hurts
   scrolling, and scrolling is what felt laggy — so it is not used.
   `contain:layout style` gives some of the isolation with none of the
   re-layout cost. */
.sec:not(.hero){contain:layout style}

/* ---------- 2. layer promotion only where it earns its keep ---------- */
.fl,.bit,.pl-outer,.pl-tech,.rm-spin,.ring-mods,.neuro{will-change:auto}
[data-fx="full"] .pl-outer,
[data-fx="full"] .ring-mods{will-change:transform}

/* ---------- 3. HERO CORRECTIONS ---------- */

/* the status module is gone */
.statmod{display:none}

/* the left label sat on top of the cable run and read as clutter */
.plabel-l{display:none}

/* lift the portal and the cabling so the whole rig sits higher */
@media (min-width:1040px){
  .portal-wrap{align-self:start;margin-top:-6px}
  .sys{align-items:start}
  .readouts{margin-top:0}
}

/* the readouts were running past the bottom of the hero */
.readouts{max-height:none}
@media (min-width:1040px) and (max-height:860px){
  .screen{padding:11px 13px}
  .out{gap:6px}
  .out li{padding-bottom:6px}
  .out-v{font-size:18px}
  .out-ic{width:26px;height:26px}
  .out-ic svg{width:13px;height:13px}
  .out-viz{width:44px;height:15px}
  .mods li{font-size:8.5px;padding:1px 0}
  .scr-h{margin-bottom:8px}
  .scr-h::after{margin-top:6px}
}

/* ---------- 4. BIGGER, ILLUMINATED RING ICONS ---------- */
.rm-chip{
  width:48px;height:48px;margin:-24px 0 0 -24px;
  background:linear-gradient(160deg,#12293f,#0a1727);
  border:1.5px solid color-mix(in srgb,var(--brand) 55%,transparent);
  box-shadow:0 0 16px color-mix(in srgb,var(--brand) 34%,transparent),
             inset 0 0 12px color-mix(in srgb,var(--brand) 14%,transparent);
}
.rm-chip svg{width:25px;height:25px}
.rm-chip:hover{
  transform:scale(1.16);
  border-color:var(--brand);
  box-shadow:0 0 26px color-mix(in srgb,var(--brand) 60%,transparent),
             inset 0 0 14px color-mix(in srgb,var(--brand) 22%,transparent);
}
.portal{--orbit-r:calc(var(--psize,420px) * 0.455)}

@media (max-width:1039px){
  .rm-chip{width:40px;height:40px;margin:-20px 0 0 -20px}
  .rm-chip svg{width:21px;height:21px}
}
@media (max-width:700px){
  .rm-chip{width:32px;height:32px;margin:-16px 0 0 -16px}
  .rm-chip svg{width:17px;height:17px}
}

/* ---------- 5. project cards are links ---------- */
.proj-hit{
  position:absolute;inset:0;z-index:5;
  border:0;background:none;cursor:pointer;
}
.unit:has(.proj-hit):hover .proj{border-color:#00c8ff}
.proj-foot .proj-link{pointer-events:none}   /* the whole card is the target */

/* ============================================================
   6. THE BUDGET, TIGHTENED
   ============================================================ */

/* lite: the machine cannot afford ambience. Two slow rotations and
   the status pulse survive; everything else stops. */
[data-fx="lite"] .neuro{display:none}
[data-fx="lite"] .chipBob,
[data-fx="lite"] .rm-chip::after,
[data-fx="lite"] .rm-chip,
[data-fx="lite"] .rm-chip::before,
[data-fx="lite"] .w-core,
[data-fx="lite"] .portal,
[data-fx="lite"] .plates,
[data-fx="lite"] .tk-scan,
[data-fx="lite"] .tk-node,
[data-fx="lite"] .en-veil,
[data-fx="lite"] .pic-rim,
[data-fx="lite"] .pic-scan,
[data-fx="lite"] .navmod,
[data-fx="lite"] .out-v,
[data-fx="lite"] .vz-stroke,
[data-fx="lite"] .vz-arc,
[data-fx="lite"] .cb-scan,
[data-fx="lite"] .en-arcs,
[data-fx="lite"] .arc,
[data-fx="lite"] .bit{animation:none!important}
[data-fx="lite"] .en-swirl,[data-fx="lite"] .en-arcs,[data-fx="lite"] .bits{display:none}

/* masks are rasterised on the CPU here; drop the decorative ones */
[data-fx="lite"] .hero::before,
[data-fx="lite"] .svc-sec::before,
[data-fx="lite"] .wk-sec::before,
[data-fx="lite"] .ab-sec::before,
[data-fx="lite"] .ct-sec::before,
[data-fx="lite"] .proc-sec::before{
  -webkit-mask-image:none;mask-image:none;opacity:.22;
}
[data-fx="lite"] .portal-strip,
[data-fx="lite"] .term-strip{-webkit-mask-image:none;mask-image:none}

[data-fx="none"] .neuro{display:none}
[data-fx="none"] *{animation:none!important}

/* The text fade masks were 20 of the 25 mask layers on the page, and a
   mask is rasterised on the CPU on a machine with no GPU. On the lower
   tiers the copy is simply clipped instead — same height discipline,
   none of the cost. */
[data-fx="lite"] .card-p,[data-fx="lite"] .proj-p,[data-fx="lite"] .pstep-p,
[data-fx="none"] .card-p,[data-fx="none"] .proj-p,[data-fx="none"] .pstep-p{
  -webkit-mask-image:none;mask-image:none;
}
[data-fx="lite"] .proj-vis.gen::after,
[data-fx="lite"] .hero-fallback{display:none}

/* Ten chips, each with an outer and an inset box-shadow, rotating on a
   carrier: that is ten shadowed layers re-rasterised every frame, and
   on a CPU-only machine it was the single most expensive thing left in
   the hero. On the lower tiers the ring holds still and the glow drops
   to a flat border — the icons stay big and legible, they just stop
   costing a repaint per frame. */
[data-fx="lite"] .ring-mods,
[data-fx="lite"] .rm-spin,
[data-fx="none"] .ring-mods,
[data-fx="none"] .rm-spin{animation:none!important}
[data-fx="lite"] .rm-chip,[data-fx="none"] .rm-chip{
  box-shadow:none;
  border-color:color-mix(in srgb,var(--brand) 70%,transparent);
  background:#0d1e30;
}
[data-fx="lite"] .rm-chip:hover{box-shadow:0 0 18px color-mix(in srgb,var(--brand) 45%,transparent)}

/* ============================================================
   THE PORTAL'S SIGNATURE MOTION
   One distinctive, genuinely cheap effect: a bright arc that orbits
   the rim, plus the icon ring turning. Both are a transform on a
   single element — no shadows redrawn, no masks, no canvas — so this
   is affordable even on the CPU-only tier.
   ============================================================ */
.p-sweeper{
  position:absolute;inset:0;width:100%;height:100%;
  pointer-events:none;z-index:4;overflow:visible;
  animation:spin 7s linear infinite;
}
.ps-arc{
  fill:none;stroke:url(#sweepGrad);stroke-width:5;stroke-linecap:round;
}
.ps-tip{fill:#eafaff}

/* the icon ring turns again on lite: with the box-shadows removed it
   is now just a transform on one carrier */
[data-fx="lite"] .ring-mods{animation:spin 150s linear infinite!important}
[data-fx="lite"] .rm-spin{animation:spin 150s linear infinite reverse!important}
[data-fx="lite"] .p-sweeper{animation-duration:16s}
[data-fx="none"] .p-sweeper{display:none}

/* the core answers when a module is touched */
.portal.react .p-sweeper{animation-duration:1.6s}

/* ============================================================
   PORTAL LABEL CHIPS
   Angled pill with a lit edge and a soft halo. The edge is a 1px
   gradient padding showing past the dark face — a border would be
   sliced off by the clip-path, and a drop-shadow filter is off the
   table on a CPU-only machine, so the halo is a plain radial
   gradient sitting behind the shape.
   ============================================================ */
.plabel{
  position:absolute;z-index:6;
  display:inline-flex;align-items:center;
  background:none;border:0;padding:0;clip-path:none;
  white-space:nowrap;pointer-events:none;
}
.pl-halo{
  position:absolute;inset:-10px -18px;pointer-events:none;
  background:radial-gradient(closest-side,rgba(0,200,255,.30),transparent 78%);
}
.pl-box{
  position:relative;
  padding:1px;
  background:linear-gradient(90deg,#1ea9e6,#5fe4ff 45%,#1ea9e6);
  clip-path:polygon(13px 0,calc(100% - 13px) 0,100% 50%,
                    calc(100% - 13px) 100%,13px 100%,0 50%);
}
.pl-tx{
  display:block;
  padding:8px 22px;
  background:linear-gradient(165deg,#0a1c2f,#061321);
  clip-path:polygon(13px 0,calc(100% - 13px) 0,100% 50%,
                    calc(100% - 13px) 100%,13px 100%,0 50%);
  font-family:"Orbitron",sans-serif;font-size:9.5px;font-weight:700;
  letter-spacing:.17em;text-transform:uppercase;color:#8fe9ff;
}
/* the little run of dashes trailing off the right-hand point */
.pl-trail{
  position:absolute;left:calc(100% + 6px);top:50%;transform:translateY(-50%);
  width:34px;height:3px;pointer-events:none;
  background:repeating-linear-gradient(90deg,
    rgba(0,200,255,.85) 0 5px,transparent 5px 10px);
  opacity:.75;
}
/* the vertical chip trails downward instead */
.plabel-r .pl-trail{
  left:50%;top:calc(100% + 6px);transform:translateX(-50%);
  width:3px;height:30px;
  background:repeating-linear-gradient(180deg,
    rgba(0,200,255,.85) 0 5px,transparent 5px 10px);
}
.plabel-r .pl-tx{padding:20px 8px}
.plabel-r .pl-box,.plabel-r .pl-tx{
  clip-path:polygon(0 13px,50% 0,100% 13px,100% calc(100% - 13px),
                    50% 100%,0 calc(100% - 13px));
}

@media (max-width:700px){
  .pl-tx{padding:6px 16px;font-size:8px;letter-spacing:.13em}
  .pl-trail{display:none}
}
[data-fx="none"] .pl-halo{opacity:.5}

/* Re-asserted after the chip rewrite: the new .plabel{display:inline-flex}
   sits later in the file and was overriding the earlier hide. */
.plabel-l{display:none!important}

/* ============================================================
   BOTTOM CONSOLE BAR — rebuilt to the reference.
   Outer shell carries a 1px gradient edge showing past the dark
   face (a border would be sliced off by the clip-path), with big
   chamfers at all four corners and lit highlights along the top
   and bottom edges.
   ============================================================ */
.console-bar{
  position:relative;
  display:block;padding:1px;
  background:linear-gradient(120deg,
    rgba(0,180,255,.55) 0%,rgba(120,235,255,.95) 22%,
    rgba(0,150,230,.45) 50%,rgba(120,235,255,.9) 78%,rgba(0,180,255,.5) 100%);
  border:0;border-radius:0;
  clip-path:polygon(34px 0,calc(100% - 34px) 0,100% 34px,
                    100% calc(100% - 34px),calc(100% - 34px) 100%,
                    34px 100%,0 calc(100% - 34px),0 34px);
}
.cb-inner{
  position:relative;
  display:grid;grid-template-columns:1fr;gap:20px;
  align-items:center;
  padding:20px clamp(16px,2.2vw,30px);
  background:linear-gradient(170deg,#08192c 0%,#050f1c 55%,#04101d 100%);
  clip-path:polygon(33px 0,calc(100% - 33px) 0,100% 33px,
                    100% calc(100% - 33px),calc(100% - 33px) 100%,
                    33px 100%,0 calc(100% - 33px),0 33px);
  overflow:hidden;
}

/* lit highlights along the long edges */
.cb-edge{
  position:absolute;left:22%;right:22%;height:2px;pointer-events:none;
  background:linear-gradient(90deg,transparent,#7fe9ff,transparent);
  opacity:.9;
}
.cb-edge-t{top:0}
.cb-edge-b{bottom:0}

/* the hatch flash in the top-right corner */
.cb-hatch{
  position:absolute;top:12px;right:44px;width:52px;height:11px;
  pointer-events:none;opacity:.8;
  background:repeating-linear-gradient(112deg,#5fe0ff 0 3px,transparent 3px 8px);
}

/* ---------- left: the identity card ---------- */
.cb-card{
  position:relative;
  display:flex;align-items:center;gap:clamp(14px,1.6vw,22px);
  padding:14px clamp(16px,1.8vw,26px);
  background:linear-gradient(160deg,rgba(11,32,54,.85),rgba(5,14,26,.85));
  border:1px solid rgba(0,190,255,.30);
  clip-path:polygon(0 20px,20px 0,calc(100% - 20px) 0,100% 20px,
                    100% calc(100% - 20px),calc(100% - 20px) 100%,
                    20px 100%,0 calc(100% - 20px));
}
.cb-mono{
  position:relative;flex:none;
  display:grid;place-items:center;
  width:62px;height:62px;
  background:linear-gradient(160deg,#0f2a44,#071626);
  clip-path:polygon(50% 0%,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%);
  font-family:"Orbitron",sans-serif;font-size:1.5rem;font-weight:800;
  color:#eaf9ff;
}
.cb-mono::before{
  content:"";position:absolute;inset:3px;
  clip-path:polygon(50% 0%,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%);
  border:1px solid #4ddcff;opacity:.75;
}
.cb-idtx{min-width:0}
.cb-name{
  display:block;font-family:"Orbitron",sans-serif;
  font-size:clamp(1.05rem,1.9vw,1.5rem);font-weight:800;letter-spacing:.15em;
  color:#f2fbff;text-transform:uppercase;line-height:1.1;
}
.cb-role1{
  display:block;margin-top:6px;
  font-family:"Orbitron",sans-serif;font-size:clamp(9px,1vw,11px);font-weight:700;
  letter-spacing:.2em;text-transform:uppercase;color:#3cc9ff;
}
.cb-role2{
  display:block;margin-top:6px;
  font-family:"Share Tech Mono",monospace;font-size:9.5px;
  letter-spacing:.13em;text-transform:uppercase;color:#9dc4dc;
}
/* the little instrument dots in the card corners */
.cb-card-dots{
  position:absolute;left:22px;bottom:11px;width:44px;height:4px;pointer-events:none;
  background:repeating-linear-gradient(90deg,#2ab6f0 0 4px,transparent 4px 9px);
  opacity:.6;
}

/* ---------- middle: the quote ---------- */
.cb-quote{
  position:relative;margin:0;
  display:flex;align-items:flex-start;gap:14px;
  padding:6px 0;
}
/* faint concentric arcs sitting behind the words */
.cb-arcs{
  position:absolute;left:6%;top:50%;transform:translateY(-50%);
  width:230px;height:230px;pointer-events:none;opacity:.30;
  background:
    radial-gradient(circle,transparent 0 41%,rgba(0,190,255,.5) 41% 41.6%,transparent 42%),
    radial-gradient(circle,transparent 0 31%,rgba(0,190,255,.4) 31% 31.5%,transparent 32%),
    radial-gradient(circle,transparent 0 22%,rgba(0,190,255,.3) 22% 22.5%,transparent 23%);
}
.cb-mark{
  position:relative;font-family:Georgia,"Times New Roman",serif;
  font-size:2.6rem;line-height:.72;color:#2fb9f5;flex:none;
}
.cb-qt{
  position:relative;
  font-size:clamp(.95rem,1.45vw,1.12rem);line-height:1.5;color:#eaf4fb;
  max-width:34ch;
}
.cb-qt em{font-style:normal;color:#39c6ff;font-weight:600}

/* ---------- the orb ---------- */
.cb-orb{display:none;width:118px;height:118px;flex:none;color:#2fb9f5}
.cb-orb svg{width:100%;height:100%;display:block;overflow:visible}
.ob-ring{fill:none;stroke:currentColor;stroke-width:1.2;opacity:.55}
.ob-arc{fill:none;stroke:#7fe9ff;stroke-width:2.2;opacity:.95;stroke-linecap:round}
.ob-node{fill:#7fe9ff}
.ob-core{fill:#ffffff}
.ob-stem{stroke:currentColor;stroke-width:1;opacity:.5}

/* ---------- right: the call to action ---------- */
.cb-act{display:grid;gap:4px;justify-items:start}
.cb-kick{
  font-family:"Orbitron",sans-serif;font-size:clamp(10px,1.1vw,13px);font-weight:700;
  letter-spacing:.2em;text-transform:uppercase;color:#6d8ba5;
}
.cb-kick2{
  font-family:"Orbitron",sans-serif;font-size:clamp(.95rem,1.55vw,1.28rem);font-weight:800;
  letter-spacing:.13em;text-transform:uppercase;color:#39c6ff;line-height:1.15;
}
.cb-go{
  margin-top:10px;
  display:inline-flex;align-items:center;justify-content:space-between;gap:22px;
  min-width:260px;padding:15px 22px;
  background:linear-gradient(90deg,rgba(0,150,230,.16),rgba(0,200,255,.10));
  border:1px solid #2fb9f5;
  color:#eaf9ff;
  font-family:"Orbitron",sans-serif;font-size:11px;font-weight:700;
  letter-spacing:.17em;text-transform:uppercase;
  clip-path:polygon(0 12px,12px 0,calc(100% - 12px) 0,100% 12px,
                    100% calc(100% - 12px),calc(100% - 12px) 100%,
                    12px 100%,0 calc(100% - 12px));
  transition:background .2s ease,box-shadow .2s ease,transform .2s ease;
}
.cb-go:hover{
  background:linear-gradient(90deg,rgba(0,180,255,.32),rgba(0,220,255,.22));
  box-shadow:0 0 26px rgba(0,190,255,.32);
  transform:translateY(-2px);
}
.cb-arrow{display:block;color:#7fe9ff;flex:none}
.cb-arrow svg{width:26px;height:18px;display:block}

/* ---------- composition ---------- */
@media (min-width:1040px){
  .cb-inner{
    grid-template-columns:auto minmax(0,1fr) auto auto;
    gap:clamp(20px,2.4vw,44px);
  }
  .cb-orb{display:block}
}
@media (max-width:1039px){
  .cb-inner{justify-items:center;text-align:center}
  .cb-card{flex-direction:column;text-align:center}
  .cb-quote{justify-content:center}
  .cb-act{justify-items:center}
  .cb-go{width:100%}
  .cb-hatch{display:none}
}
@media (max-width:700px){
  .console-bar,.cb-inner{
    clip-path:polygon(20px 0,calc(100% - 20px) 0,100% 20px,
                      100% calc(100% - 20px),calc(100% - 20px) 100%,
                      20px 100%,0 calc(100% - 20px),0 20px);
  }
  .cb-quote{display:none}
  .cb-mono{width:50px;height:50px;font-size:1.2rem}
}

/* the orb sweep, gated like everything else */
[data-fx="full"] .cb-orb .ob-arc{animation:spin 6s linear infinite;transform-origin:50% 50%}
[data-fx="lite"] .cb-orb .ob-arc{animation:spin 18s linear infinite;transform-origin:50% 50%}
[data-fx="none"] .cb-orb .ob-arc{animation:none}

/* The rebuilt bar is a little taller than the one it replaced; give the
   short-viewport layout the few pixels back so the hero still lands
   exactly on the fold. */
@media (min-width:1040px) and (max-height:820px){
  .cb-inner{padding:14px clamp(14px,2vw,26px);gap:clamp(16px,2vw,34px)}
  .cb-card{padding:11px clamp(14px,1.6vw,22px)}
  .cb-mono{width:54px;height:54px;font-size:1.3rem}
  .cb-go{margin-top:8px;padding:12px 20px;min-width:230px}
  .cb-orb{width:98px;height:98px}
  .hero{padding-bottom:8px}
}

/* ============================================================
   AMBIENT MOTION
   Every animation below moves transform or opacity only — the two
   things the compositor can handle without repainting — with one
   deliberate exception, the globe meridians, which animate SVG
   geometry inside a ~98px box where the raster cost is negligible.
   Nothing here uses blur() or backdrop-filter.
   ============================================================ */

/* ---------- 1. the background texture, a little sharper ----------
   The grid was drawn at roughly 2% effective opacity, which on most
   screens is invisible. This is still a texture, not a feature. */
:root{ --line-2:rgba(0,200,255,.185); }
/* .hero declares its own --line-2, which outranks :root, so the hero
   grid has to be brightened where it is actually defined. */
.hero{ --line-2:rgba(0,200,255,.185) }
.hero::before{ opacity:.6 }
.svc-sec::before,.wk-sec::before,.ab-sec::before,
.ct-sec::before,.proc-sec::before{
  opacity:.48;
  background-image:
    linear-gradient(rgba(0,180,255,.095) 1px,transparent 1px),
    linear-gradient(90deg,rgba(0,180,255,.095) 1px,transparent 1px);
}

/* ---------- 2. the hero backdrop ---------- */
/* Deliberately unmasked. A mask over a full-viewport box whose
   children animate has to be re-rasterised every frame, which is
   exactly the kind of cost this machine cannot absorb. The fixed grid
   on .hero::before keeps its mask and supplies the shaped fade; this
   layer is faint enough to run to the edges without reading as a seam. */
.hero-fx{
  position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden;
}

/* a second, coarser grid drifting behind the fixed one — the two
   scales moving against each other read as depth */
.hfx-grid{
  position:absolute;top:-190px;left:-190px;right:-10px;bottom:-10px;
  background-image:
    linear-gradient(rgba(0,200,255,.085) 1px,transparent 1px),
    linear-gradient(90deg,rgba(0,200,255,.085) 1px,transparent 1px);
  background-size:180px 180px;
}
@keyframes gridDrift{ to{ transform:translate3d(180px,180px,0) } }

/* the slow breathing pool of light behind the portal */
.hfx-glow{
  position:absolute;left:50%;top:44%;
  width:700px;height:700px;margin:-350px 0 0 -350px;
  background:radial-gradient(circle,
    rgba(0,150,255,.16) 0%,rgba(0,130,255,.06) 40%,transparent 68%);
  animation:glowBreath 11s ease-in-out infinite;
}
@keyframes glowBreath{
  0%,100%{ opacity:.46 }
  50%    { opacity:1 }
}

/* scan beams falling through the scene */
.hfx-beam{
  position:absolute;left:0;right:0;top:0;height:170px;
  background:linear-gradient(180deg,
    transparent,rgba(0,190,255,.07) 42%,rgba(130,238,255,.16) 50%,
    rgba(0,190,255,.07) 58%,transparent);
  animation:beamFall 13s linear infinite;
}
.hfx-beam-2{ display:none }
@keyframes beamFall{
  from{ transform:translate3d(0,-200px,0) }
  to  { transform:translate3d(0,100vh,0) }
}

/* ---------- 3. the portal labels ---------- */
.plabel{ overflow:hidden }
.plabel::after{
  content:"";position:absolute;top:0;bottom:0;width:44px;left:0;
  background:linear-gradient(90deg,transparent,rgba(150,242,255,.32),transparent);
  transform:translateX(-70px);
  animation:chipShine 5.2s ease-in-out infinite;
}
.plabel-b::after{ animation-delay:1.7s }
.plabel-r::after{ animation-delay:3.4s }
@keyframes chipShine{
  0%      { transform:translateX(-70px) }
  55%,100%{ transform:translateX(320px) }
}

/* the drift. Each label carries its own centring transform, so the
   keyframes have to restate it rather than override it. */
.plabel-t{ animation:labelDriftT 6.5s ease-in-out infinite }
.plabel-b{ animation:labelDriftB 6.5s ease-in-out infinite .8s }
.plabel-r{ animation:labelDriftR 7.4s ease-in-out infinite .4s }
@keyframes labelDriftT{
  0%,100%{ transform:translateX(-50%) translateY(0) }
  50%    { transform:translateX(-50%) translateY(-4px) }
}
@keyframes labelDriftB{
  0%,100%{ transform:translateX(-50%) translateY(0) }
  50%    { transform:translateX(-50%) translateY(4px) }
}
@keyframes labelDriftR{
  0%,100%{ transform:translateY(-50%) translateX(0) }
  50%    { transform:translateY(-50%) translateX(4px) }
}

/* ---------- 4. a beam crossing any HUD panel ----------
   The beam is as tall as its host and the lit band is a slice of its
   own gradient, so translateY(100%) always means exactly one panel
   height without anyone having to measure anything. */
.hud-sweep{ position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden }
.hud-sweep::before{
  content:"";position:absolute;left:0;right:0;top:0;height:100%;
  background:linear-gradient(180deg,
    transparent 0%,rgba(0,200,255,.055) 6%,rgba(120,235,255,.14) 9%,
    rgba(0,200,255,.055) 12%,transparent 18%);
  animation:hudSweep 7s linear infinite;
}
@keyframes hudSweep{
  from{ transform:translateY(-100%) }
  to  { transform:translateY(100%) }
}
.screen{ position:relative }
.screen > *:not(.hud-sweep){ position:relative;z-index:1 }
.ct-console .hud-sweep::before{ animation-duration:10s }

/* ---------- 5. system output ---------- */
.scr-dots i{ animation:dotCycle 3s ease-in-out infinite }
.scr-dots i:nth-child(2){ animation-delay:.35s }
.scr-dots i:nth-child(3){ animation-delay:.7s }
@keyframes dotCycle{
  0%,70%,100%{ opacity:.35 }
  20%        { opacity:1 }
}

.out li:nth-child(1) .out-ic{ animation:icoPing 6.4s ease-in-out infinite }
.out li:nth-child(2) .out-ic{ animation:icoPing 6.4s ease-in-out infinite 1.6s }
.out li:nth-child(3) .out-ic{ animation:icoPing 6.4s ease-in-out infinite 3.2s }
.out li:nth-child(4) .out-ic{ animation:icoPing 6.4s ease-in-out infinite 4.8s }
@keyframes icoPing{
  0%,80%,100%{ opacity:.8;  transform:scale(1) }
  87%        { opacity:1;   transform:scale(1.11) }
}

/* ---------- 6. the bottom ribbon ---------- */
.cb-inner::after{
  content:"";position:absolute;top:0;bottom:0;left:0;width:100%;
  pointer-events:none;z-index:0;
  background:linear-gradient(90deg,
    transparent 0%,rgba(0,200,255,.06) 4%,rgba(120,235,255,.13) 6%,
    rgba(0,200,255,.06) 8%,transparent 13%);
  animation:barRun 11s linear infinite;
}
@keyframes barRun{
  from{ transform:translateX(-100%) }
  to  { transform:translateX(100%) }
}
.cb-edge-t{ animation:edgeRun 6s ease-in-out infinite }
.cb-edge-b{ animation:edgeRun 6s ease-in-out infinite 3s }
@keyframes edgeRun{
  0%,100%{ transform:translateX(-13%);opacity:.45 }
  50%    { transform:translateX(13%); opacity:1 }
}
.cb-hatch{ animation:hatchFlick 4.4s steps(1,end) infinite }
@keyframes hatchFlick{
  0%,84%,100%{ opacity:.78 }
  88%        { opacity:.2 }
  93%        { opacity:1 }
}
.cb-card-dots{ animation:dotsRun 3.6s linear infinite }
@keyframes dotsRun{ to{ background-position-x:9px } }

/* the ribbon contents sit above the travelling light */
.cb-card,.cb-quote,.cb-orb,.cb-act{ position:relative;z-index:1 }

/* ---------- 7. the orb, as an orrery ---------- */
.ob-stem  { stroke:currentColor;stroke-width:1;opacity:.45 }
.ob-orbit { fill:none;stroke:currentColor;stroke-width:1;opacity:.4 }
.ob-limb  { fill:none;stroke:#7fe9ff;stroke-width:1.2;opacity:.7 }
.ob-lat   { fill:none;stroke:currentColor;stroke-width:.8;opacity:.32 }
.ob-mer   { fill:none;stroke:currentColor;stroke-width:.9;opacity:.5 }
.ob-core  { fill:#eafaff }
.ob-planet{ fill:#7fe9ff }

/* the globe spin: a meridian is an ellipse whose width closes to
   nothing and opens out again. Three of them, evenly out of phase,
   and the eye reads a rotating sphere. */
@keyframes merSpin{
  0%,100%{ rx:27px }
  50%    { rx:1px }
}
.ob-mer{ animation:merSpin 6s ease-in-out infinite }
.ob-mer.m1{ animation-delay:-2s }
.ob-mer.m2{ animation-delay:-4s }

/* the planets ride the orbit ellipse itself, so a dot never drifts
   off the ring it is meant to be travelling on */
.ob-planet{
  offset-path:path("M 9,60 A 51,17 0 1,1 111,60 A 51,17 0 1,1 9,60");
  offset-rotate:0deg;
}
.ob-planet.o1{ animation:orbitRun 9s linear infinite }
.ob-planet.o2{ animation:orbitRun 14s linear infinite reverse }
@keyframes orbitRun{
  from{ offset-distance:0% }
  to  { offset-distance:100% }
}
/* older engines get the rings without the travellers, rather than a
   dot parked in the corner */
@supports not (offset-path:path("M 0,0 L 1,1")){
  .ob-planet{ display:none }
}
.ob-core{ animation:coreGlow 3.4s ease-in-out infinite }
@keyframes coreGlow{ 0%,100%{ opacity:.75 } 50%{ opacity:1 } }

/* ---------- 8. the transmit console ---------- */
.ct-console{ position:relative }
.ct-send{ position:relative;overflow:hidden }
.ct-send::after{
  content:"";position:absolute;top:0;bottom:0;left:0;width:60px;
  background:linear-gradient(90deg,transparent,rgba(160,245,255,.28),transparent);
  transform:translateX(-90px);
  animation:chipShine 4.6s ease-in-out infinite 1.2s;
}

/* ============================================================
   9. WHAT EACH TIER IS ALLOWED TO RUN
   ============================================================ */

/* lite: the machine is already working hard. Keep the two slow drifts
   that carry the mood and stop everything that merely decorates. */
[data-fx="lite"] .hero-fx{ opacity:.7 }
[data-fx="lite"] .hfx-beam,
[data-fx="lite"] .plabel::after,
[data-fx="lite"] .ct-send::after,
[data-fx="lite"] .cb-inner::after,
[data-fx="lite"] .hud-sweep{ display:none }
[data-fx="lite"] .plabel-t,
[data-fx="lite"] .plabel-b,
[data-fx="lite"] .plabel-r,
[data-fx="lite"] .cb-edge-t,
[data-fx="lite"] .cb-edge-b,
[data-fx="lite"] .cb-hatch,
[data-fx="lite"] .cb-card-dots,
[data-fx="lite"] .scr-dots i,
[data-fx="lite"] .out li:nth-child(n) .out-ic,
[data-fx="lite"] .out-v,
[data-fx="lite"] .ob-mer,
[data-fx="lite"] .ob-core{ animation:none }
[data-fx="lite"] .ob-planet.o1{ animation-duration:26s }
[data-fx="lite"] .ob-planet.o2{ animation:none }
[data-fx="lite"] .hfx-glow{ animation-duration:22s }

/* The blanket [data-fx="none"] * rule cannot reach pseudo-elements —
   a universal selector matches elements only — so the decorations that
   live in ::before/::after have to be named. This tier is also what a
   prefers-reduced-motion visitor gets, so nothing here may move. */
[data-fx="none"] .plabel::after,
[data-fx="none"] .ct-send::after,
[data-fx="none"] .cb-inner::after,
[data-fx="none"] .hud-sweep::before{
  animation:none;
  display:none;
}

/* ============================================================
   The short-viewport portal size was being shadowed.
   .portal --psize is declared at equal specificity in several
   places, so source order decides, and the min-width:1300 copy at
   :3008 came after the max-height:700 rule at :1196 — which meant
   the short-viewport sizing never applied and the portal rendered
   415px on a 670px-tall screen instead of the intended 375px.
   Restating it last puts the intended size back, and the ~40px it
   returns is what makes room for the projector below the portrait.
   ============================================================ */
@media (min-width:1040px) and (max-height:700px){
  .portal{ --psize:min(400px,56vh) }
}

/* ============================================================
   THE HOLOGRAM
   The portrait is shown as a projected figure, and a projector is
   drawn beneath it. Both follow the rules the rest of this file
   already lives by: no blur(), no backdrop-filter, glow faked with
   layered gradients and box-shadow, and nothing animated except
   transform and opacity.

   The three portrait layers are pre-rendered by make-hologram.py.
   Deriving them in the browser would mean per-frame image work on a
   machine that has no GPU driver, which is the one thing this site
   is not allowed to do.
   ============================================================ */

.holo{ position:absolute;inset:0;pointer-events:none;z-index:2 }
.holo-l{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;object-position:50% 42%;
  display:block;
}

/* Each layer drifts by a different amount. The wireframe is treated
   as nearest and moves most; the tonal layer carries the face and is
   deliberately the steadiest, because a face that swims reads as a
   glitch rather than as depth. */
.holo-far { opacity:.85; animation:holoDriftFar  9s ease-in-out infinite }
.holo-mid { opacity:.92; animation:holoDriftMid 11s ease-in-out infinite }
.holo-edge{ opacity:1;   animation:holoDriftEdge 7s ease-in-out infinite }

@keyframes holoDriftFar{
  0%,100%{ transform:translate3d(-3px,2px,0) }
  50%    { transform:translate3d(3px,-2px,0) }
}
@keyframes holoDriftMid{
  0%,100%{ transform:translate3d(1px,-1px,0) }
  50%    { transform:translate3d(-1px,1px,0) }
}
@keyframes holoDriftEdge{
  0%,100%{ transform:translate3d(4px,-3px,0) }
  50%    { transform:translate3d(-4px,3px,0) }
}

/* Scan banding lives here rather than in the baked image. A fixed
   pattern burnt into the texture moires against fractional device
   pixel ratios; drawn here it is one gradient, it costs nothing, and
   it can move. */
.holo-scan{
  position:absolute;inset:0;pointer-events:none;
  background:repeating-linear-gradient(180deg,
    rgba(3,12,24,.42) 0 1px, transparent 1px 3px);
  animation:holoScan 3.2s linear infinite;
}
@keyframes holoScan{
  from{ transform:translateY(0) }
  to  { transform:translateY(3px) }
}

/* The photograph underneath is dimmed rather than removed: it gives
   the hologram something to sit on, and it is what a visitor sees if
   the layers fail to load. Hovering resolves the projection back to
   the real face. */
/* Scoped to the photograph inside <picture>. The hologram layers are
   <img> elements too, so a bare `.pic-mask img` dimmed the projection
   along with the photo and the whole portrait rendered at 16%. */
.pic-mask.has-holo picture img{ opacity:.16;transition:opacity .45s ease }
.pic-mask.has-holo .holo{ transition:opacity .45s ease }
.portal:hover .pic-mask.has-holo picture img{ opacity:.92 }
.portal:hover .pic-mask.has-holo .holo{ opacity:.12 }

/* ---------- the projector ---------- */
.emitter{
  /* Seated so the emitter core lands just below the bottom label
     chip, which then reads as the plate sitting on the projector
     rather than as a chip floating over it. There are only ~35px
     between the portal box and the console bar, so the ground plane
     is compressed to fit rather than allowed to overrun the bar. */
  position:absolute;left:50%;bottom:-35px;
  width:min(148%,624px);
  transform:translateX(-50%);
  pointer-events:none;
  line-height:0;
}
.em-svg{ width:100%;height:auto;display:block;overflow:visible }

.em-cone{ fill:url(#emCone) }
.em-cone-hot{ fill:url(#emCone) }

.em-ring{ fill:none;stroke:url(#emRing) }

.em-grid line{ stroke:rgba(0,170,255,.16);stroke-width:1 }
.em-grid{ stroke-linecap:round }

.em-stem line  { stroke:rgba(90,215,255,.5);stroke-width:1 }
.em-stem circle{ fill:#7fe9ff }

.em-core    { fill:#7fe9ff;opacity:.9 }
.em-core-hot{ fill:#ffffff;opacity:1 }

/* The pulse rings sit outside the drawing on purpose. Animating a
   transform on a node inside an <svg> re-rasterises the whole
   drawing every frame; as their own elements they are cached layers
   the compositor can simply move. */
.em-pulse{
  position:absolute;left:50%;top:78.8%;
  width:124px;height:24px;margin:-12px 0 0 -62px;
  border:1px solid rgba(77,220,255,.5);
  border-radius:50%;
  opacity:0;
  animation:emPulse 5s ease-out infinite;
}
.em-pulse.p1{ animation-delay:2.5s }
@keyframes emPulse{
  0%  { transform:scale(.55);opacity:0 }
  14% { opacity:.62 }
  100%{ transform:scale(3.1); opacity:0 }
}

/* ---------- tiers ----------
   lite drops the moving parts but keeps the projection itself: the
   figure and the projector are the content here, not decoration. */
[data-fx="lite"] .holo-far,
[data-fx="lite"] .holo-mid,
[data-fx="lite"] .holo-edge,
[data-fx="lite"] .holo-scan{ animation:none }
[data-fx="lite"] .em-pulse{ animation-duration:9s }
[data-fx="lite"] .em-grid{ display:none }

[data-fx="none"] .holo-scan{ animation:none }
[data-fx="none"] .em-pulse{ display:none }

/* A section that is nowhere near the viewport stops animating. This
   touches animation-play-state only — no layout, no paint, no change to
   anything that is on screen — so it is safe to apply broadly, unlike
   the descendant selectors elsewhere in this file that set position. */
.sec.off-view *,
.sec.off-view *::before,
.sec.off-view *::after,
.ftr.off-view *,
.ftr.off-view *::before,
.ftr.off-view *::after{
  animation-play-state:paused !important;
}
