/* ============================================================
   Rewired — design system
   Brand authority: PROJECT.md §5. Change the brand there first.

   Two rules run through this whole file:
   1. Audex ships ONE weight (400) plus a real italic. No bold
      exists. Hierarchy = size, colour, tracking, case, italic.
      font-synthesis:none is load-bearing.
   2. Brand Blue is the ONLY accent. No green for success, no
      red for errors. Errors carry meaning through position,
      italic, and wording — not colour. Adding a second accent
      is a PROJECT.md amendment, never a quiet CSS addition.
   ============================================================ */

@font-face{
  font-family:'Audex';
  src:url('../fonts/Audex-Regular.woff2') format('woff2');
  font-weight:400;font-style:normal;font-display:swap;
}
@font-face{
  font-family:'Audex';
  src:url('../fonts/Audex-Italic.woff2') format('woff2');
  font-weight:400;font-style:italic;font-display:swap;
}

:root{
  /* brand — PROJECT.md §5 */
  --rw-prussian:#031130;
  --rw-blue:#185DF1;
  --rw-alice:#F3F7FE;

  /* dark ground */
  --surface-0:#031130;
  --surface-1:#061838;
  --surface-2:#0A2148;
  --hairline:rgba(175,194,233,.16);
  --hairline-strong:rgba(175,194,233,.28);

  /* ink on dark — every tint from the blue family, never grey */
  --ink:#F3F7FE;
  --ink-2:#AFC2E9;   /* 9.2:1 on surface-0 */
  --ink-3:#8AA3D2;   /* 6.1:1 — labels, never below .8125rem */

  /* ink on Alice panels — product mockups live here */
  --lk:#031130;
  --lk-2:#46618F;    /* 5.8:1 on Alice — passes AA body */
  --lk-3:#6B84B4;    /* large text and chrome only */
  --lhair:rgba(3,17,48,.13);
  --lhair-strong:rgba(3,17,48,.22);

  --blue:#185DF1;
  --blue-lift:#4A82F5;      /* hover / small-size legibility only */
  --blue-ghost:rgba(24,93,241,.13);
  --track-thumb:#17417F;   /* scrollbar thumb — blue family, never grey */

  --font:'Audex','Segoe UI',system-ui,-apple-system,sans-serif;
  --step--1:clamp(.8125rem,.79rem + .1vw,.875rem);
  --step-0:clamp(1rem,.97rem + .14vw,1.0625rem);
  --step-1:clamp(1.125rem,1.07rem + .26vw,1.25rem);
  --step-2:clamp(1.375rem,1.28rem + .45vw,1.625rem);
  --step-3:clamp(1.75rem,1.55rem + .95vw,2.25rem);
  --step-4:clamp(2.125rem,1.75rem + 1.85vw,3.25rem);
  --step-5:clamp(2.75rem,1.95rem + 3.9vw,5.5rem);
  --step-6:clamp(3.5rem,2.2rem + 6vw,7rem);

  --space-1:.5rem;   --space-2:.75rem;  --space-3:1rem;
  --space-4:1.5rem;  --space-5:2rem;    --space-6:3rem;
  --space-7:4.5rem;  --space-8:6.5rem;
  --gutter:clamp(1.25rem,4vw,3.5rem);
  --measure:66ch;

  --radius:12px;
  --radius-sm:8px;

  --ease-out:cubic-bezier(.16,1,.3,1);
  --ease:cubic-bezier(.2,.8,.2,1);
  --dur-fast:.18s;
  --dur:.32s;
  --dur-slow:.9s;
  --dur-draw:1.4s;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{
  font-synthesis:none;
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  scroll-padding-top:5.5rem;
}
body{
  font-family:var(--font);font-weight:400;
  font-size:var(--step-0);line-height:1.65;
  color:var(--ink);background:var(--surface-0);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img,svg,video,canvas{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit;color:inherit}
button{background:none;border:0;cursor:pointer}
fieldset{border:0}
::selection{background:var(--rw-blue);color:#fff}
:focus-visible{outline:2px solid var(--blue-lift);outline-offset:3px;border-radius:3px}

.skip{
  position:absolute;left:var(--gutter);top:-4rem;z-index:100;
  background:var(--rw-alice);color:var(--rw-prussian);
  padding:.75rem 1.25rem;border-radius:var(--radius-sm);
  transition:top var(--dur-fast) var(--ease);
}
.skip:focus{top:1rem}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}

/* ---------- Type ---------- */
h1,h2,h3,h4{font-weight:400;line-height:1.06;letter-spacing:-.028em;text-wrap:balance;color:#fff}
h1{font-size:var(--step-5)}
h2{font-size:var(--step-4);line-height:1.08}
h3{font-size:var(--step-2);line-height:1.2;letter-spacing:-.022em}
h4{font-size:var(--step-1);line-height:1.3;letter-spacing:-.018em}
p{text-wrap:pretty}
.lede{font-size:var(--step-1);line-height:1.6;color:var(--ink-2);max-width:38ch}
.body{color:var(--ink-2);max-width:var(--measure)}
.muted{color:var(--ink-3)}
.white{color:#fff}
.label{font-size:var(--step--1);letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3)}
.by{color:var(--ink-3)}
/* Audex's real italic — the one alternate cut the family licenses.
   It does the work a lighter/heavier weight would do elsewhere. */
.soon{
  font-style:italic;font-size:.75rem;letter-spacing:.04em;
  color:var(--ink-3);margin-left:.375rem;
}
.statement{font-size:var(--step-3);line-height:1.28;letter-spacing:-.024em;color:#fff}
.big-italic{
  font-style:italic;font-size:clamp(1.5rem,3vw,2.25rem);
  line-height:1.25;letter-spacing:-.02em;color:#fff;max-width:22ch;
}

/* ---------- Layout ---------- */
.wrap{width:100%;max-width:78rem;margin-inline:auto;padding-inline:var(--gutter)}
.section{padding-block:var(--space-8);position:relative}
.section-tight{padding-block:var(--space-7);position:relative}
.section-head{max-width:52rem;margin-bottom:var(--space-6)}
.section-head p{color:var(--ink-2);margin-top:var(--space-3);max-width:46ch}
.hairtop{border-top:1px solid var(--hairline)}
.bloom{position:absolute;inset:0;pointer-events:none;z-index:0}
.bloom-tr{background:radial-gradient(70% 90% at 92% 6%,rgba(24,93,241,.2) 0%,transparent 60%)}
.bloom-bl{background:radial-gradient(70% 90% at 8% 94%,rgba(24,93,241,.18) 0%,transparent 60%)}
.bloom-br{background:radial-gradient(70% 90% at 96% 84%,rgba(24,93,241,.2) 0%,transparent 60%)}
.above{position:relative;z-index:1}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.625rem;
  padding:.9375rem 1.75rem;border-radius:var(--radius-sm);
  font-size:var(--step-0);line-height:1;text-align:center;
  transition:transform var(--dur-fast) var(--ease),background var(--dur-fast) var(--ease),
             border-color var(--dur-fast) var(--ease),box-shadow var(--dur-fast) var(--ease),
             color var(--dur-fast) var(--ease);
}
.btn:active{transform:translateY(0)}
.btn svg{flex:none;transition:transform var(--dur-fast) var(--ease)}
.btn-primary{background:var(--rw-alice);color:var(--rw-prussian);box-shadow:0 12px 28px -14px rgba(0,0,0,.9)}
.btn-primary:hover{background:#fff;transform:translateY(-2px)}
.btn-accent{background:var(--blue);color:#fff;box-shadow:0 12px 30px -14px rgba(24,93,241,.9)}
.btn-accent:hover{background:#2E6DF3;transform:translateY(-2px)}
.btn-ghost{border:1px solid var(--hairline-strong);color:var(--ink)}
.btn-ghost:hover{border-color:var(--ink-3);background:rgba(243,247,254,.05);transform:translateY(-2px)}
.btn-sm{padding:.75rem 1.25rem;font-size:var(--step--1)}
.btn[aria-busy="true"]{pointer-events:none;opacity:.72}
.btn [data-label]{display:inline-block;min-width:6.5ch}

.link-arrow{
  display:inline-flex;align-items:center;gap:.5rem;color:var(--ink-2);
  transition:color var(--dur-fast) var(--ease);
}
.link-arrow svg{flex:none;transition:transform var(--dur-fast) var(--ease)}
.link-arrow:hover{color:#fff}
.link-arrow:hover svg{transform:translateX(4px)}
.link-accent{color:var(--blue-lift)}
.link-accent:hover{color:#fff}
.cta-row{display:flex;align-items:center;gap:var(--space-4);flex-wrap:wrap}

/* ---------- Ledger rows (never cards) ---------- */
.row-list{border-top:1px solid var(--hairline)}
.row-list > *{
  display:grid;grid-template-columns:minmax(9rem,14rem) 1fr;
  gap:var(--space-2) var(--space-4);
  padding-block:var(--space-3);
  border-bottom:1px solid var(--hairline);
}
.row-list dt,.row-list .term{color:#fff;font-size:var(--step-0);letter-spacing:-.012em}
.row-list dd,.row-list .desc{color:var(--ink-2);font-size:var(--step--1);line-height:1.6;margin:0}
.row-link{transition:transform var(--dur-fast) var(--ease)}
.row-link:hover{transform:translateX(4px)}

/* ---------- Nav ---------- */
.nav{
  position:fixed;inset:0 0 auto 0;z-index:60;
  display:flex;align-items:center;gap:var(--space-5);
  padding:1.125rem var(--gutter);
  border-bottom:1px solid transparent;
  transition:background var(--dur) var(--ease),border-color var(--dur) var(--ease);
}
.nav.scrolled{
  background:rgba(3,17,48,.84);
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  border-bottom-color:var(--hairline);
}
.nav-logo{flex:none;display:block;line-height:0}
.nav-logo img{width:clamp(136px,13vw,166px);height:auto}
.nav-links{display:flex;align-items:center;gap:var(--space-5);margin-inline:auto}
.nav-links a{position:relative;color:var(--ink-2);transition:color var(--dur-fast) var(--ease)}
.nav-links a:hover{color:#fff}
.nav-links a[aria-current="page"]{color:#fff}
.nav-links a[aria-current="page"]::after{
  content:"";position:absolute;left:0;right:0;bottom:-.4375rem;height:1px;background:var(--blue);
}
.nav-cta{flex:none}
/* The bar has room for the full ask on a desktop and not on a 390px
   phone, where a long label pushed the menu button off the edge. */
.nav-cta .tight{display:none}

.nav-toggle{display:none}

/* ---------- Footer — one slim bar ---------- */
.footer{border-top:1px solid var(--hairline);padding-block:var(--space-5)}
.footer-row{display:flex;align-items:center;gap:var(--space-4) var(--space-5);flex-wrap:wrap}
.footer-row img{width:118px;height:auto;flex:none}
.footer-row .tag{color:var(--ink-3);font-size:var(--step--1)}
.footer-links{display:flex;gap:var(--space-4);flex-wrap:wrap;margin-left:auto;
  align-items:center}
.footer-links a{color:var(--ink-2);font-size:var(--step--1);
  padding-block:.1875rem;transition:color var(--dur-fast) var(--ease)}
.footer-links a:hover{color:#fff}
.footer-base{
  display:flex;justify-content:space-between;gap:var(--space-4);flex-wrap:wrap;
  margin-top:var(--space-4);padding-top:var(--space-3);
  border-top:1px solid var(--hairline);color:var(--ink-3);font-size:.8125rem;
}

/* ---------- Forms ---------- */
.form{display:flex;flex-direction:column;gap:1.25rem}
.field{display:flex;flex-direction:column;gap:.4375rem}
.field > label,.legend{font-size:.875rem;color:var(--ink-2);letter-spacing:.01em}
.field .opt{color:var(--ink-3)}
.field input,.field textarea,.field select{
  width:100%;min-height:3rem;
  background:transparent;
  border:1px solid var(--hairline-strong);
  border-radius:var(--radius-sm);
  padding:.75rem 1rem;color:var(--ink);
  transition:border-color var(--dur-fast) var(--ease),background var(--dur-fast) var(--ease),
             box-shadow var(--dur-fast) var(--ease);
}
.field select{appearance:none;cursor:pointer;
  background-image:linear-gradient(45deg,transparent 50%,var(--ink-3) 50%),
                   linear-gradient(135deg,var(--ink-3) 50%,transparent 50%);
  background-position:calc(100% - 1.15rem) 1.35rem,calc(100% - .8rem) 1.35rem;
  background-size:.35rem .35rem,.35rem .35rem;background-repeat:no-repeat;
  padding-right:2.5rem;
}
.field select option{background:var(--surface-1);color:var(--ink)}
.field textarea{resize:vertical;min-height:7rem;line-height:1.6}
.field input::placeholder,.field textarea::placeholder{color:var(--ink-3);opacity:1}
.field input:hover,.field textarea:hover,.field select:hover{border-color:var(--ink-3)}
.field input:focus,.field textarea:focus,.field select:focus{
  outline:none;border-color:var(--blue);
  background:rgba(24,93,241,.05);
  box-shadow:0 0 0 3px var(--blue-ghost);
}
/* Invalid: border switches to the ONE accent; the message does the
   explaining. No red — see the header of this file. */
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"]{border-color:var(--blue)}
.err{
  font-style:italic;font-size:.875rem;color:#fff;line-height:1.45;
}
.err:empty{display:none}
.reach{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-4)}
.reach-group{display:flex;flex-direction:column;gap:.5rem}
.form-foot{display:flex;align-items:center;gap:var(--space-4);flex-wrap:wrap}
.fine{font-size:.8125rem;color:var(--ink-3);line-height:1.55;max-width:36ch}
.form-alert{font-style:italic;color:#fff;line-height:1.5}
.form-alert:empty{display:none}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* radio pills */
.pills{display:flex;gap:.5rem;flex-wrap:wrap}
.pill-radio{position:relative}
.pill-radio input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.pill-radio span{
  display:block;padding:.6875rem 1.125rem;border-radius:999px;
  border:1px solid var(--hairline-strong);color:var(--ink-2);
  font-size:var(--step--1);transition:all var(--dur-fast) var(--ease);
}
.pill-radio input:checked + span{background:var(--rw-alice);color:var(--rw-prussian);border-color:var(--rw-alice)}
.pill-radio input:focus-visible + span{outline:2px solid var(--blue-lift);outline-offset:3px}
.pill-radio:hover span{border-color:var(--ink-3)}

/* success — Brand Blue, not green */
.done{
  border:1px solid rgba(24,93,241,.42);
  background:rgba(24,93,241,.09);
  border-radius:var(--radius);padding:var(--space-5);
}
.done .t{font-size:var(--step-1);color:#fff;margin-bottom:.5rem;letter-spacing:-.015em}
.done p{color:var(--ink-2);max-width:44ch}
.done .link-arrow{margin-top:var(--space-3)}

/* ---------- Contact panel ----------
   The one Alice surface on a dark page: the conversion moment is the
   brightest object on the site. Defined once, used by index + services.

   NOTE: these overrides use background-color, never the `background`
   shorthand — the shorthand resets background-size/position/repeat and
   blows the select's CSS-drawn arrow up to fill the whole control. */
.contact-panel{
  background:var(--rw-alice);color:var(--lk);border-radius:var(--radius);
  max-width:68rem;margin-inline:auto;padding:clamp(1.5rem,4vw,3rem);
  display:grid;grid-template-columns:5fr 7fr;gap:clamp(2rem,5vw,4rem);align-items:start;
  box-shadow:0 50px 110px -40px rgba(0,0,0,.85);
}
.contact-panel h2{color:var(--lk);font-size:clamp(2rem,4vw,3rem)}
.contact-panel .proof{color:var(--lk-2);margin-top:var(--space-3);max-width:42ch;line-height:1.65}
.contact-panel .form{max-width:30rem}
.contact-panel .field > label,.contact-panel .legend{color:var(--lk-2)}
.contact-panel .field .opt{color:var(--lk-3)}
.contact-panel .field input,
.contact-panel .field textarea,
.contact-panel .field select{background-color:#fff;border-color:var(--lhair);color:var(--lk)}
.contact-panel .field input::placeholder,
.contact-panel .field textarea::placeholder{color:rgba(3,17,48,.45)}
.contact-panel .field select{
  background-image:linear-gradient(45deg,transparent 50%,var(--lk-2) 50%),
                   linear-gradient(135deg,var(--lk-2) 50%,transparent 50%);
}
.contact-panel .field select option{background:#fff;color:var(--lk)}
.contact-panel .field input:hover,
.contact-panel .field textarea:hover,
.contact-panel .field select:hover{border-color:var(--lk-3)}
.contact-panel .field input:focus,
.contact-panel .field textarea:focus,
.contact-panel .field select:focus{
  background-color:#fff;border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-ghost);
}
.contact-panel .err,.contact-panel .form-alert{color:var(--lk)}
.contact-panel .fine{color:var(--lk-2)}
.contact-panel .btn-primary{background:var(--rw-prussian);color:var(--rw-alice);box-shadow:0 12px 26px -14px rgba(3,17,48,.7)}
.contact-panel .btn-primary:hover{background:#08205c}
.contact-panel .done{border-color:rgba(24,93,241,.4);background:rgba(24,93,241,.07)}
.contact-panel .done .t{color:var(--lk)}
.contact-panel .done p{color:var(--lk-2)}
.contact-panel .done .link-arrow{color:var(--blue)}
.contact-panel .done .link-arrow:hover{color:var(--lk)}

/* dogfood diagram — a literally true data path */
.dogfood{margin-top:var(--space-6)}
.dogfood svg{width:100%;height:auto;overflow:visible}
.dogfood .lbl{font-size:.6875rem;letter-spacing:.1em;text-transform:uppercase;fill:var(--lk-2)}
.dogfood .trace .pulse{stroke:var(--rw-prussian)}

/* status pill */
.status-pill{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.3125rem .6875rem;border-radius:999px;
  border:1px solid var(--hairline-strong);
  font-size:var(--step--1);color:var(--ink-3);white-space:nowrap;
}
.node-glyph{width:.5rem;height:.5rem;border:2px solid var(--blue);flex:none}
.node-glyph.solid{background:var(--blue)}

/* ---------- Circuit trace ----------
   Drawn with pathLength=100 so one CSS rule works on any path
   length. No JS, no rAF. */
.trace path{
  stroke:var(--blue);fill:none;
  stroke-linecap:round;stroke-linejoin:round;
}
.trace .draw{
  stroke-dasharray:100;stroke-dashoffset:100;
}
.js .trace.in .draw{
  animation:trace-draw var(--dur-draw) var(--ease-out) forwards;
}
html:not(.js) .trace .draw{stroke-dashoffset:0}
@keyframes trace-draw{to{stroke-dashoffset:0}}
.trace .pulse{
  stroke:var(--rw-alice);stroke-dasharray:2 98;stroke-dashoffset:0;opacity:0;
}
.js .trace.in .pulse{
  opacity:.85;
  animation:trace-pulse 5.2s linear infinite;
  animation-delay:var(--dur-draw);
}
@keyframes trace-pulse{to{stroke-dashoffset:-100}}
.trace .tip{opacity:1}
.js .trace .tip{opacity:0}
.js .trace.in .tip{transition:opacity .4s var(--ease) calc(var(--dur-draw) - .2s);opacity:1}

/* ---------- Reveal ---------- */
.rise{opacity:1;transform:none}
.js .rise{opacity:0;transform:translateY(18px)}
.js .rise.in{
  opacity:1;transform:none;
  transition:opacity var(--dur-slow) var(--ease-out),transform var(--dur-slow) var(--ease-out);
}
.js .rise-d1.in{transition-delay:.08s}
.js .rise-d2.in{transition-delay:.16s}

/* ---------- Responsive ---------- */
@media (max-width:900px){
  :root{--space-8:4.5rem;--space-7:3.25rem}
  .nav{gap:var(--space-3)}
  .nav-logo img{width:118px}
  .nav-links{
    position:fixed;inset:0;z-index:-1;
    flex-direction:column;justify-content:center;align-items:flex-start;
    gap:var(--space-4);margin:0;padding:6rem var(--gutter) var(--gutter);
    background:var(--surface-0);transform:translateX(100%);
    transition:transform var(--dur) var(--ease);overflow-y:auto;
  }
  .nav-links a{font-size:var(--step-3);color:var(--ink)}
  .nav-links a[aria-current="page"]::after{display:none}
  .nav[data-open="true"] .nav-links{transform:none}
  .nav-cta{margin-left:auto}
  .nav-cta .wide{display:none}
  .nav-cta .tight{display:inline}
  .nav-toggle{
    display:flex;flex-direction:column;justify-content:center;gap:5px;
    width:2.75rem;height:2.75rem;padding:.6875rem;flex:none;
    border:1px solid var(--hairline-strong);border-radius:var(--radius-sm);
  }
  .nav-toggle span{display:block;height:1.5px;width:100%;background:var(--ink);
    transition:transform var(--dur-fast) var(--ease),opacity var(--dur-fast) var(--ease)}
  .nav[data-open="true"] .nav-toggle span:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
  .nav[data-open="true"] .nav-toggle span:nth-child(2){opacity:0}
  .nav[data-open="true"] .nav-toggle span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}
  .row-list > *{grid-template-columns:1fr;gap:.25rem}
  .reach{grid-template-columns:1fr}
  .contact-panel{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr;gap:var(--space-5)}
  .footer-brand{grid-column:1/-1}
  .trace-margin{display:none}
}
@media (max-width:560px){
  .footer-grid{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.01ms !important;animation-iteration-count:1 !important;
    transition-duration:.01ms !important;scroll-behavior:auto !important;
  }
  .js .rise{opacity:1;transform:none}
  .js .trace .draw{stroke-dashoffset:0;animation:none}
  .js .trace .pulse{display:none}
  .js .trace .tip{opacity:1}
}

/* ============================================================
   Repositioning components (2026-08-23)
   Software solutions company. Persuasive, visual, low-text.
   ============================================================ */

/* ---------- Big link rows ---------- */
.big-rows{border-top:1px solid var(--hairline)}
.big-row{
  position:relative;display:grid;grid-template-columns:1.35fr 1fr auto;
  gap:var(--space-4);align-items:center;
  padding-block:var(--space-5);border-bottom:1px solid var(--hairline);
  overflow:hidden;
}
.big-row .rt{
  font-size:clamp(1.75rem,3.6vw,3rem);letter-spacing:-.028em;line-height:1.1;
  color:var(--ink);transition:color var(--dur) var(--ease);
}
.big-row .rd{color:var(--ink-2);font-size:var(--step-0);line-height:1.55;max-width:40ch}
.big-row .ra{color:var(--ink-3);transition:transform var(--dur) var(--ease),color var(--dur) var(--ease)}
.big-row .shade{
  position:absolute;inset:0 0 0 45%;z-index:-1;
  background-size:cover;background-position:center;
  opacity:0;transition:opacity .35s var(--ease);
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 55%);
  mask-image:linear-gradient(90deg,transparent,#000 55%);
}
.big-row:hover .shade,.big-row:focus-visible .shade{opacity:.55}
.big-row:hover .rt,.big-row:focus-visible .rt{color:#fff}
.big-row:hover .ra,.big-row:focus-visible .ra{transform:translateX(8px);color:var(--ink)}

/* ---------- Scrollbars ----------
   The platform bar is a bright light-mode slab against a Prussian page.
   Painted in the site's own values instead, on both engines. */
html{scrollbar-color:var(--track-thumb) var(--surface-0);scrollbar-width:thin}
::-webkit-scrollbar{width:11px;height:11px}
::-webkit-scrollbar-track{background:var(--surface-0)}
::-webkit-scrollbar-thumb{
  background:var(--track-thumb);border-radius:99px;
  border:3px solid var(--surface-0);background-clip:padding-box;
}
::-webkit-scrollbar-thumb:hover{background:var(--blue)}
::-webkit-scrollbar-corner{background:var(--surface-0)}

/* ---------- Founder plates ---------- */
.plates{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-5);max-width:62rem}
.plate .frame{
  position:relative;aspect-ratio:4/5;border-radius:var(--radius);
  background:var(--surface-1);border:1px solid var(--hairline);overflow:hidden;
  background-image:radial-gradient(rgba(243,247,254,.10) 1px,transparent 1px);
  background-size:14px 14px;
}
.plate .initial{
  position:absolute;left:var(--space-4);bottom:var(--space-5);
  font-size:clamp(3.5rem,6vw,5.5rem);line-height:1;letter-spacing:-.03em;
  color:rgba(243,247,254,.92);transition:transform var(--dur) var(--ease);
}
.plate .tr{position:absolute;left:var(--space-4);bottom:var(--space-3);width:72px;height:12px}
.plate:hover .initial{transform:translateY(-2px)}
.plate .cap{margin-top:var(--space-3);display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap}
.plate .nm{font-size:var(--step-1);color:#fff;letter-spacing:-.018em}
.plate .ro{font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3)}
.plate .ics{display:flex;gap:.25rem;margin-left:auto}
.plate .ics a{display:grid;place-items:center;width:2.25rem;height:2.25rem;
  color:var(--ink-3);transition:color var(--dur-fast) var(--ease)}
.plate .ics a:hover{color:var(--blue-lift)}

/* ---------- Nod head motif ---------- */
.nod-scene{width:clamp(15rem,28vw,24rem);flex:none}
.nod-scene svg{width:100%;height:auto;overflow:visible}
.nod-scene path,.nod-scene rect{stroke:#185DF1;fill:none;stroke-width:10;
  stroke-linecap:round;stroke-linejoin:round;opacity:.9}
.nod-scene .pivot{stroke-width:10;fill:rgba(24,93,241,0)}
.nod-scene .eye{opacity:.9}
.js .nod-scene .wire{stroke-dasharray:100;stroke-dashoffset:100}
.js .nod-scene .eye{opacity:0}
.js .nod-scene.in .wire{animation:nod-draw 1.6s var(--ease-out) forwards}
.js .nod-scene.in .eye{animation:nod-eye .4s ease-out 1.3s forwards}
@keyframes nod-draw{to{stroke-dashoffset:0}}
@keyframes nod-eye{to{opacity:.9}}
.nod-head{transform-origin:262px 404px}
.js .nod-scene.in .nod-head{animation:nod-yes 7.5s cubic-bezier(.45,0,.4,1) 2s infinite}
.js .nod-scene.in .pivot{animation:nod-confirm 7.5s linear 2s infinite}
@keyframes nod-yes{
  0%,4%{transform:rotate(0)} 9%{transform:rotate(-10deg)} 14%{transform:rotate(-2deg)}
  19%{transform:rotate(-9deg)} 26%,100%{transform:rotate(0)}
}
@keyframes nod-confirm{
  0%,20%{fill:rgba(24,93,241,0)} 27%,80%{fill:#185DF1} 92%,100%{fill:rgba(24,93,241,0)}
}

/* ---------- Rawaj open circuit ---------- */
.rawaj-band{
  width:100vw;margin-inline:calc(50% - 50vw);
  height:clamp(96px,12vw,160px);margin-block:var(--space-5);
  position:relative;
}
.rawaj-band svg{width:100%;height:100%}
.rawaj-band path,.rawaj-band rect{stroke:#185DF1;fill:none;stroke-width:3;opacity:.55;
  stroke-linecap:round;stroke-linejoin:round}
.rawaj-band .dot-span{stroke-dasharray:2 10;opacity:.28}
.rawaj-band .ghost{stroke-dasharray:3 6;opacity:.3}
.js .rawaj-band .solid{stroke-dasharray:100;stroke-dashoffset:100}
.js .rawaj-band.in .solid{animation:nod-draw 1.4s var(--ease-out) forwards}
.js .rawaj-band .dot-span,.js .rawaj-band .ghost{opacity:0}
.js .rawaj-band.in .dot-span{animation:fade-in .6s ease-out 1.5s forwards}
.js .rawaj-band.in .ghost{animation:ghost-knock 6.4s linear 1.5s infinite}
@keyframes fade-in{to{opacity:.28}}
@keyframes ghost-knock{0%{opacity:.3}50%{opacity:.6}100%{opacity:.3}}
.rb-pulse{stroke-dasharray:14 86;opacity:0}
.js .rawaj-band.in .rb-pulse{animation:pulse-run 6.4s cubic-bezier(.4,0,.6,1) infinite}
.js .rawaj-band.in .rb-pulse.right{animation-delay:3.2s}
@keyframes pulse-run{
  0%{stroke-dashoffset:14;opacity:.9} 46%{stroke-dashoffset:-100;opacity:0} 100%{opacity:0}
}
.rawaj-band .side-on{opacity:.85}

/* ---------- Responsive ---------- */
@media (max-width:1000px){
  .big-row{grid-template-columns:1fr auto;gap:var(--space-2) var(--space-4)}
  .big-row .rd{grid-column:1/-1;max-width:none}
}
@media (max-width:900px){
  .plates{grid-template-columns:1fr;max-width:22rem;gap:var(--space-4)}
  .footer-links{margin-left:0;width:100%}
}
@media (prefers-reduced-motion:reduce){
  .js .nod-scene .wire{stroke-dashoffset:0;animation:none}
  .js .nod-scene .eye{opacity:.9;animation:none}
  .js .nod-scene .nod-head{animation:none}
  .js .nod-scene .pivot{animation:none;fill:#185DF1}
  .js .rawaj-band .solid{stroke-dashoffset:0;animation:none}
  .js .rawaj-band .dot-span{opacity:.28;animation:none}
  .js .rawaj-band .ghost{opacity:.3;animation:none}
  .rb-pulse{display:none}
}

/* ---------- Section bands ----------
   Every beat gets its own ground so the page reads as distinct
   sections rather than one continuous dark field. */
.band-raised{
  background:var(--surface-1);
  border-block:1px solid var(--hairline);
}
.band-deep{
  background:linear-gradient(180deg,#020B21 0%,#041530 100%);
  border-block:1px solid var(--hairline);
}
.band-label{
  display:flex;align-items:center;gap:.625rem;
  font-size:.75rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink-3);margin-bottom:var(--space-4);
}
.band-label::before{content:"";width:6px;height:6px;background:var(--blue);flex:none}

/* ---------- Row images must not escape their row ----------
   .shade sits at z-index:-1; without an isolated stacking context it
   paints behind the section and neighbouring content bleeds over it. */
.big-row{position:relative;isolation:isolate}

/* ---------- Without / With ----------
   The most persuasive device on the page: their day today, next to
   their day after. Two columns, one hairline, no icons. */
.vs{border-top:1px solid var(--hairline)}
.vs-head{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-5);
  padding-block:var(--space-3);border-bottom:1px solid var(--hairline)}
.vs-head span{font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3)}
.vs-head span.now{color:var(--ink-3)}
.vs-head span.after{color:var(--blue-lift);display:flex;align-items:center;gap:.5rem}
.vs-head span.after::before{content:"";width:6px;height:6px;background:var(--blue);flex:none}
.vs-row{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-5);
  padding-block:var(--space-4);border-bottom:1px solid var(--hairline);align-items:start}
.vs-row .now{color:var(--ink-3);line-height:1.6}
.vs-row .after{color:var(--ink);line-height:1.6}
.vs-row .after b{font-weight:400;color:#fff}

/* ---------- Capability chips ---------- */
.chips{display:flex;gap:.4375rem;flex-wrap:wrap;margin-top:var(--space-3)}
.chip{
  font-size:.6875rem;letter-spacing:.06em;text-transform:uppercase;
  color:var(--ink-2);border:1px solid var(--hairline-strong);
  border-radius:999px;padding:.25rem .625rem;white-space:nowrap;
}
.chip-on{color:var(--blue-lift);border-color:rgba(24,93,241,.5);background:var(--blue-ghost)}

/* ---------- Feature grid with small proofs ---------- */
.feat{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--hairline);
  border:1px solid var(--hairline);border-radius:var(--radius);overflow:hidden}
.feat > article{background:var(--surface-0);padding:var(--space-5);display:flex;flex-direction:column;gap:var(--space-3)}
.feat h3{font-size:var(--step-1);line-height:1.25}
.feat p{color:var(--ink-2);font-size:var(--step--1);line-height:1.6}
.feat .proof{margin-top:auto;display:flex;gap:.375rem;flex-wrap:wrap;align-items:center}

/* ---------- Service detail section ---------- */
.svc-detail{padding-block:var(--space-8);border-top:1px solid var(--hairline);position:relative}
.svc-detail .top{display:grid;grid-template-columns:1.1fr .9fr;gap:var(--space-7);align-items:center;
  margin-bottom:var(--space-7)}
.svc-detail h2{font-size:clamp(2.25rem,4.4vw,3.5rem);margin-bottom:var(--space-3)}
.svc-detail .lede{font-size:var(--step-1);color:var(--ink-2);max-width:46ch;line-height:1.65}
.svc-shot{border-radius:var(--radius);overflow:hidden;border:1px solid var(--hairline);
  box-shadow:0 40px 90px -40px rgba(0,0,0,.85)}
.svc-shot img{width:100%;height:auto;display:block}

/* ---------- Product hero ---------- */
.phero{position:relative;overflow:hidden;padding:8.5rem 0 var(--space-7)}
.phero .grid{display:grid;grid-template-columns:1.1fr .9fr;gap:var(--space-7);align-items:center}
.phero .eyebrow{display:flex;align-items:center;gap:.625rem;margin-bottom:var(--space-4);
  font-size:.75rem;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3)}
.phero .eyebrow i{width:6px;height:6px;background:var(--blue);flex:none;font-style:normal}
.phero h1{font-size:clamp(2.5rem,5.6vw,4.75rem);line-height:1.05;letter-spacing:-.03em;margin-bottom:var(--space-4)}
.phero h1 em{font-style:italic}
.phero .lede{color:var(--ink-2);max-width:46ch;line-height:1.7;margin-bottom:var(--space-5)}

@media (max-width:900px){
  .vs-head,.vs-row{grid-template-columns:1fr;gap:.375rem}
  .vs-row .now{padding-bottom:.375rem}
  .vs-row .after{border-left:2px solid var(--blue);padding-left:.75rem}
  .feat{grid-template-columns:1fr}
  .svc-detail .top{grid-template-columns:1fr;gap:var(--space-5)}
  .phero{padding-top:6.5rem}
  .phero .grid{grid-template-columns:1fr;gap:var(--space-5)}
}

/* ---------- Full-screen hero ----------
   Every hero fills the viewport and holds its canvas behind the copy. */
.hero-full{
  position:relative;min-height:100dvh;display:flex;align-items:center;
  overflow:hidden;padding-block:7rem var(--space-7);
}
.hero-full > canvas{position:absolute;inset:0;width:100%;height:100%;z-index:0}
.hero-full .hero-veil{
  position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(90deg,
    rgba(3,17,48,.96) 0%, rgba(3,17,48,.9) 34%,
    rgba(3,17,48,.55) 58%, rgba(3,17,48,.25) 78%, rgba(3,17,48,.1) 100%);
}
.hero-full .wrap{position:relative;z-index:2;width:100%}
.hero-full .inner{max-width:46rem}
.hero-full .inner > *{margin-left:0}
.hero-full h1{
  font-size:clamp(2.125rem,3.7vw,3.5rem);
  line-height:1.06;letter-spacing:-.032em;
  text-wrap:balance;margin-bottom:var(--space-4);
}
.hero-full h1 em{font-style:italic}
/* the sub sits on its own shorter measure so it never runs the full
   width of the headline above it */
.hero-full .lede{max-width:44ch;margin-bottom:var(--space-5)}
.hero-full .eyebrow{margin-bottom:var(--space-4)}
.hero-full .cta-row{margin-top:var(--space-5)}
/* ---------- Hero with full-width art ----------
   The Nod hero carries the traced drawing across the whole frame, so
   the copy sits at the top and the veil darkens downward instead of
   sideways — the art keeps the lower band to itself. */
.hero-art{align-items:flex-start;padding-block:8rem var(--space-7)}
/* the drawing owns the bottom of the frame, so the scroll cue would
   land on top of it — the art is invitation enough */
.hero-art .hero-scroll{display:none}
.hero-art .hero-veil{
  background:linear-gradient(180deg,
    rgba(3,17,48,.97) 0%, rgba(3,17,48,.94) 34%,
    rgba(3,17,48,.6) 52%, rgba(3,17,48,.16) 72%, rgba(3,17,48,0) 100%);
}
@media (max-width:900px){
  .hero-art{padding-block:6rem var(--space-6)}
}

.hero-scroll{
  position:absolute;left:50%;bottom:1.75rem;transform:translateX(-50%);z-index:2;
  display:flex;flex-direction:column;align-items:center;gap:.5rem;
  font-size:.6875rem;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3);
}
.hero-scroll i{display:block;width:1px;height:2rem;background:linear-gradient(180deg,var(--blue),transparent);
  animation:scroll-hint 2.4s ease-in-out infinite}
@keyframes scroll-hint{0%,100%{opacity:.3;transform:scaleY(.6)}50%{opacity:1;transform:scaleY(1)}}

/* ---------- Section image as ground ----------
   The generated field becomes the section's own background, faded to
   Prussian under the copy rather than sitting in a little frame. */
.img-ground{position:relative;overflow:hidden}
.img-ground > .bg{
  position:absolute;inset:0;z-index:0;
  background-size:cover;background-position:center;
  opacity:.5;
}
.img-ground > .bg::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,
    rgba(3,17,48,.99) 0%, rgba(3,17,48,.96) 30%,
    rgba(3,17,48,.72) 52%, rgba(3,17,48,.4) 74%, rgba(3,17,48,.55) 100%),
    linear-gradient(180deg, rgba(3,17,48,.9) 0%, rgba(3,17,48,0) 22%,
    rgba(3,17,48,0) 74%, rgba(3,17,48,.92) 100%);
}
.img-ground.flip > .bg::after{
  background:linear-gradient(270deg,
    rgba(3,17,48,.99) 0%, rgba(3,17,48,.96) 30%,
    rgba(3,17,48,.72) 52%, rgba(3,17,48,.4) 74%, rgba(3,17,48,.55) 100%),
    linear-gradient(180deg, rgba(3,17,48,.9) 0%, rgba(3,17,48,0) 22%,
    rgba(3,17,48,0) 74%, rgba(3,17,48,.92) 100%);
}
.img-ground > .wrap{position:relative;z-index:1}
.img-ground .hold{max-width:40rem}
.img-ground.flip .hold{margin-left:auto}

@media (max-width:900px){
  .hero-full{min-height:100dvh;padding-block:6rem var(--space-6);align-items:flex-start}
  /* the scene is confined to the lower half; the copy sits on solid ground */
  .hero-full > canvas{top:auto;bottom:0;height:52%}
  .hero-full .hero-veil{
    background:linear-gradient(180deg,
      rgba(3,17,48,1) 0%, rgba(3,17,48,1) 44%,
      rgba(3,17,48,.82) 54%, rgba(3,17,48,.3) 74%, rgba(3,17,48,.15) 100%);
  }
  .hero-full .inner{padding-top:1rem}
  .img-ground > .bg{opacity:.34}
  .img-ground > .bg::after,.img-ground.flip > .bg::after{
    background:linear-gradient(180deg,rgba(3,17,48,.9) 0%,rgba(3,17,48,.75) 50%,rgba(3,17,48,.95) 100%);
  }
  .img-ground .hold,.img-ground.flip .hold{max-width:none;margin-left:0}
}
@media (prefers-reduced-motion:reduce){
  .hero-scroll i{animation:none}
}

/* ---------- Service detail: copy beside an authored panel ---------- */
.svc-split{display:grid;grid-template-columns:1fr 1.05fr;gap:var(--space-7);
  align-items:center;margin-bottom:var(--space-7)}
.svc-split > *{min-width:0}
.svc-split .panel{min-width:0}
.svc-split.flip .hold{order:2}
.svc-split.flip figure{order:1}
.svc-split .hold{max-width:34rem}
.svc-split h2{font-size:clamp(2rem,3.6vw,3rem);margin-bottom:var(--space-3)}
.svc-split .lede{max-width:34ch;margin-bottom:var(--space-4)}
@media (max-width:900px){
  .svc-split{grid-template-columns:1fr;gap:var(--space-5)}
  .svc-split.flip .hold,.svc-split.flip figure{order:0}
  .svc-split .hold{max-width:none}
}

/* ---------- Founders: a moving row on small screens ----------
   Three stacked plates made this the longest screen on the phone. On
   mobile the plates ride a continuously moving track instead, each one
   holding 70% of the viewport so a single face reads at a glance. */
.plates-track{display:contents}
/* The track holds a duplicate set so the marquee can loop seamlessly. On
   desktop the track is display:contents, which would drop BOTH sets into
   the grid — six plates for three people. The clone only exists on phones. */
.plates-track > [aria-hidden="true"]{display:none}
@media (max-width:900px){
  .plates-track > [aria-hidden="true"]{display:flex}
  .plates-track{
    display:flex;width:max-content;gap:var(--space-4);
    animation:plates-run 26s linear infinite;
  }
  .plates-track:hover,.plates-track:focus-within{animation-play-state:paused}
  .plates{
    display:flex;grid-template-columns:none;
    gap:var(--space-4);max-width:none;margin:0;flex:none;
  }
  .plate{width:70vw;flex:none}
  /* landscape on the phone: a portrait crop made the row tall again */
  .plate .frame{aspect-ratio:16/10}
  @keyframes plates-run{to{transform:translateX(calc(-50% - var(--space-4)/2))}}
}
@media (max-width:900px) and (prefers-reduced-motion:reduce){
  .plates-track{
    animation:none;overflow-x:auto;scroll-snap-type:x mandatory;
    padding-bottom:var(--space-3);
  }
  .plate{scroll-snap-align:center}
}
@media (max-width:900px){
  .founders{overflow:hidden}
  .founders .wrap{padding-right:0}
}
