/* ============================================================
   ORION8 — orion8.tech
   Built to Orion8 Brand Guidelines, Edition 1.0, October 2026.

   Deep Ink carries the brand. Amber marks the one point in focus.
   Group with space and thin rules, not boxes.
   ============================================================ */

/* ---------- 1. Brand tokens ---------- */
:root{
  /* Palette — guidelines p.20 */
  --deep-ink:#0B1026;
  --optic-white:#F2F4F8;
  --slate:#8A93A8;
  --slate-deep:#5B6478;
  --amber:#FFB020;

  /* One step off the ground, for the supergraphic — guidelines p.28 */
  --super-dark:#161D3A;
  --super-light:#E3E6EE;

  /* Hairlines. Rules, never boxes. */
  --rule-dark:rgba(138,147,168,.26);
  --rule-dark-soft:rgba(138,147,168,.14);
  --rule-light:rgba(91,100,120,.22);
  --rule-light-soft:rgba(91,100,120,.12);

  /* Ground-aware roles. Dark ground is the default. */
  --ground:var(--deep-ink);
  --ink:var(--optic-white);
  --ink-2:var(--slate);
  --rule:var(--rule-dark);
  --rule-soft:var(--rule-dark-soft);
  --super:var(--super-dark);

  /* Type — guidelines p.25/26 */
  --f-display:"Geist",Arial,Helvetica,sans-serif;
  --f-body:"Plus Jakarta Sans",Arial,Helvetica,sans-serif;

  /* 12-column grid, 6% outer margins — guidelines p.30 */
  --margin:6%;
  --maxw:1320px;
  --gutter:1.7%;

  --nav-h:84px;
  --ease:cubic-bezier(.2,.7,.3,1);
}

/* Light ground. Documents, and any section that needs air. */
.ground-light{
  --ground:var(--optic-white);
  --ink:var(--deep-ink);
  --ink-2:var(--slate-deep);     /* never Slate on Optic White: 2.8:1 */
  --rule:var(--rule-light);
  --rule-soft:var(--rule-light-soft);
  --super:var(--super-light);
  background:var(--optic-white);
  color:var(--deep-ink);
}

/* Glass ground. Dark tokens over a frosted band, so the page-wide light runs through it. */
.ground-glass{
  --super:rgba(242,244,248,.035);
  background:linear-gradient(180deg,rgba(22,29,58,.46),rgba(22,29,58,.3));
  -webkit-backdrop-filter:blur(26px) saturate(140%);backdrop-filter:blur(26px) saturate(140%);
  border-top:1px solid rgba(242,244,248,.08);
  border-bottom:1px solid rgba(242,244,248,.05);
}
.ground-glass + .ground-glass{border-top-color:rgba(242,244,248,.04)}

/* ---------- 2. Reset ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  scroll-padding-top:calc(var(--nav-h) + 24px);
  color-scheme:dark;
  background:var(--deep-ink);
}
body{
  background:var(--deep-ink);
  color:var(--optic-white);
  font-family:var(--f-body);
  font-size:17px;
  font-weight:400;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}
img,svg,video{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit;color:inherit}
ul,ol{list-style:none}
strong,b{font-weight:600}
::selection{background:var(--amber);color:var(--deep-ink)}
:focus-visible{outline:2px solid var(--amber);outline-offset:3px}

/* ---------- 3. Layout ---------- */
.wrap{
  width:100%;max-width:var(--maxw);
  margin-inline:auto;
  padding-inline:var(--margin);
  position:relative;
}
@media (min-width:1500px){ :root{ --margin:0px } .wrap{padding-inline:40px} }

section{position:relative;padding-block:clamp(64px,9vw,128px);overflow:clip;background:transparent}
section.tight{padding-block:clamp(48px,6vw,84px)}
main{position:relative}

/* Sections carry their own ground */
.ground-light + .ground-light{border-top:1px solid var(--rule-light-soft)}

/* 12-column grid */
.grid12{display:grid;grid-template-columns:repeat(12,1fr);column-gap:clamp(16px,var(--gutter),28px);row-gap:clamp(28px,4vw,52px)}
.col-full{grid-column:1 / -1}
.col-7{grid-column:1 / -1}
.col-6{grid-column:1 / -1}
.col-5{grid-column:1 / -1}
.col-4{grid-column:1 / -1}
.col-7-end,.col-5-end{grid-column:1 / -1}
@media (min-width:820px){
  .col-7{grid-column:span 7}
  .col-6{grid-column:span 6}
  .col-5{grid-column:span 5}
  .col-4{grid-column:span 4}
  .col-7-end{grid-column:6 / -1}
  .col-5-end{grid-column:8 / -1}
}

/* ---------- 4. Typography ---------- */
/* Display: Geist Semibold, 0.96 leading, -4% tracking */
.display,h1{
  font-family:var(--f-display);font-weight:600;
  font-size:clamp(2.5rem,5.9vw,5.1rem);
  line-height:.96;letter-spacing:-.04em;
}
/* Heading 1: 40–80px */
h2,.h1{
  font-family:var(--f-display);font-weight:600;
  font-size:clamp(2rem,4.3vw,3.5rem);
  line-height:1.04;letter-spacing:-.035em;
}
/* Heading 2: Geist Medium, 28–44px */
h3,.h2{
  font-family:var(--f-display);font-weight:500;
  font-size:clamp(1.45rem,2.5vw,2.1rem);
  line-height:1.14;letter-spacing:-.02em;
}
/* Heading 3: Plus Jakarta Sans Bold, 18–28px */
h4,.h3{
  font-family:var(--f-body);font-weight:700;
  font-size:clamp(1.02rem,1.4vw,1.25rem);
  line-height:1.25;letter-spacing:-.01em;
}
/* Body: max 70 characters a line */
p{color:var(--ink-2);max-width:62ch}
.lead{
  font-size:clamp(1.05rem,1.45vw,1.3rem);
  line-height:1.55;color:var(--ink-2);max-width:56ch;
}
.small{font-size:.9rem;line-height:1.5;font-weight:500}
.tiny{font-size:.8rem;line-height:1.5;font-weight:500}

/* Labels: Plus Jakarta Sans Medium, caps, tight tracking */
.label{
  font-family:var(--f-body);font-weight:600;
  font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink-2);
}
.label-amber{color:var(--amber)}   /* 10.3:1 on Deep Ink. Never on light. */
.ground-light .label-amber{color:var(--slate-deep)}

.amber{color:var(--amber)}
.ground-light .amber{color:inherit}  /* Focal Amber fails as text on Optic White */

.section-head{margin-bottom:clamp(36px,5vw,64px)}
.section-head .label{display:block;margin-bottom:18px}
.section-head h2,.section-head h3{margin-bottom:20px}

/* ---------- 5. The axis — guidelines p.29 ---------- */
/* 45°, top left to bottom right, Focal Amber, one per layout. */
.axis{
  position:absolute;top:0;right:0;z-index:0;
  width:min(30%,320px);aspect-ratio:1;
  overflow:hidden;pointer-events:none;
}
.axis::before{
  content:"";position:absolute;
  top:-40%;right:18%;
  width:4.4%;min-width:14px;height:190%;
  background:var(--amber);
  transform:rotate(45deg);transform-origin:top right;
}
.axis-bl{top:auto;bottom:0;right:auto;left:0}
.axis-bl::before{top:auto;bottom:-40%;right:auto;left:16%}

/* ---------- 6. The supergraphic — guidelines p.28 ---------- */
/* Symbol, oversized, cropped off at least two edges, one step off the ground. */
.supergraphic{
  position:absolute;z-index:0;pointer-events:none;
  color:var(--super);
  width:min(96%,1180px);
  top:-16%;right:-22%;
}
.supergraphic svg{width:100%;height:auto}
.supergraphic.left{right:auto;left:-28%;top:auto;bottom:-30%}
.supergraphic.low{top:auto;bottom:-42%;right:-18%}
@media (max-width:1023px){
  /* Never behind the logo: anchored to the bottom and clipped so it cannot
     reach the header, however short the section is. Cropped right and bottom. */
  .supergraphic,.supergraphic.left,.supergraphic.low{
    width:150%;left:auto;right:-58%;top:auto;bottom:-12%;
    max-height:58%;overflow:hidden;
  }
  /* Columns stack, so no corner stays clear of text. The axis is a maximum of
     one per layout, never a requirement — it sits out the narrow breakpoints. */
  .axis{display:none}
}

.wrap,.section-head,.grid12{position:relative;z-index:1}

/* ---------- 7. Header ---------- */
.site-header{
  position:fixed;top:0;left:0;right:0;z-index:60;
  height:var(--nav-h);display:flex;align-items:center;
  transition:height .3s var(--ease),background .3s var(--ease),border-color .3s var(--ease);
  border-bottom:1px solid transparent;
}
.site-header.scrolled{
  height:66px;background:rgba(11,16,38,.62);
  backdrop-filter:blur(20px) saturate(150%);-webkit-backdrop-filter:blur(20px) saturate(150%);
  border-bottom-color:var(--rule-dark-soft);
}
.nav{display:flex;align-items:center;justify-content:space-between;gap:24px;width:100%}
.brand{display:block;flex:none}
.brand img{height:34px;width:auto}        /* horizontal lockup, min 120px wide */
@media (max-width:520px){ .brand img{height:28px} }

.nav-links{display:none;align-items:center;gap:clamp(18px,2.4vw,38px)}
.nav-links a{
  font-size:.96rem;font-weight:500;color:var(--optic-white);
  position:relative;padding-block:6px;
}
.nav-links a::after{
  content:"";position:absolute;left:0;right:100%;bottom:0;height:1px;
  background:var(--amber);transition:right .3s var(--ease);
}
.nav-links a:hover::after,.nav-links a[aria-current="page"]::after{right:0}
.nav-right{display:flex;align-items:center;gap:14px}
.nav-right .nav-cta{display:none}

.burger{
  width:44px;height:44px;display:grid;place-items:center;
  background:none;border:1px solid var(--rule-dark);border-radius:0;cursor:pointer;
}
.burger span{display:block;width:18px;height:1.5px;background:var(--optic-white);transition:transform .3s var(--ease),opacity .2s}
.burger span+span{margin-top:5px}
body.menu-open .burger span:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
body.menu-open .burger span:nth-child(2){opacity:0}
body.menu-open .burger span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}

.mobile-menu{
  position:fixed;inset:0;z-index:55;background:var(--deep-ink);
  display:flex;flex-direction:column;justify-content:center;
  padding:calc(var(--nav-h) + 24px) var(--margin) 40px;
  opacity:0;visibility:hidden;transition:opacity .3s var(--ease),visibility .3s;
}
body.menu-open .mobile-menu{opacity:1;visibility:visible}
body.menu-open{overflow:hidden}
.mobile-menu a{
  font-family:var(--f-display);font-weight:600;
  font-size:clamp(1.9rem,8vw,2.6rem);letter-spacing:-.035em;
  padding:18px 0;border-bottom:1px solid var(--rule-dark-soft);
  display:flex;align-items:baseline;justify-content:space-between;gap:16px;
}
.mobile-menu a .n{font-family:var(--f-body);font-size:.72rem;font-weight:600;letter-spacing:.14em;color:var(--slate)}
.mobile-menu .mm-cta{margin-top:34px}

/* ---------- 8. Buttons ---------- */
/* Dark ground: amber pill, Deep Ink text (10.3:1). Light ground: Deep Ink pill. */
.btn{
  display:inline-flex;align-items:center;gap:10px;
  padding:15px 28px;border-radius:999px;border:1px solid transparent;
  font-family:var(--f-body);font-size:.96rem;font-weight:700;
  cursor:pointer;transition:transform .25s var(--ease),background .25s var(--ease),color .25s var(--ease),border-color .25s var(--ease);
}
.btn:hover{transform:translateY(-2px)}
.btn-primary{background:var(--amber);color:var(--deep-ink)}
.btn-primary:hover{background:#ffc04d}
.ground-light .btn-primary{background:var(--deep-ink);color:var(--optic-white)}
.ground-light .btn-primary:hover{background:#18203f}
.btn-ghost{
  background:rgba(22,29,58,.34);color:var(--ink);border-color:rgba(242,244,248,.14);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
}
.ground-light .btn-ghost{background:transparent;border-color:var(--rule);-webkit-backdrop-filter:none;backdrop-filter:none}
.btn-ghost:hover{border-color:var(--ink)}
.btn-sm{padding:11px 20px;font-size:.88rem}
.btn-block{width:100%;justify-content:center}

/* Text link with the amber rule under it */
.link{
  display:inline-flex;align-items:center;gap:9px;
  font-weight:700;font-size:.96rem;color:var(--ink);
  padding-bottom:7px;border-bottom:1px solid var(--rule);
  transition:border-color .25s var(--ease),gap .25s var(--ease);
}
.link:hover{border-bottom-color:var(--amber);gap:14px}
.ground-light .link:hover{border-bottom-color:var(--deep-ink)}
.link svg{flex:none}

/* ---------- 9. Hero ---------- */
.hero{
  min-height:calc(100svh - 0px);
  display:flex;align-items:center;
  padding-top:calc(var(--nav-h) + clamp(40px,7vw,90px));
  padding-bottom:clamp(56px,8vw,110px);
}
.hero h1{margin-bottom:clamp(26px,3vw,38px);max-width:none}
.hero .lead{margin-bottom:40px}
.hero-actions{display:flex;flex-wrap:wrap;gap:14px}

.hero-foot{
  margin-top:clamp(52px,8vw,96px);padding-top:26px;
  border-top:1px solid var(--rule-soft);
  display:grid;gap:26px;grid-template-columns:repeat(2,1fr);
}
@media (min-width:820px){ .hero-foot{grid-template-columns:repeat(4,1fr);gap:clamp(20px,3vw,40px)} }
.hero-foot .k{display:block;margin-bottom:8px}
.hero-foot .v{font-family:var(--f-body);font-weight:700;font-size:1.02rem;color:var(--ink);line-height:1.3}

/* ---------- 10. Rule groups (space and thin rules, not boxes) ---------- */
.rules{display:grid;gap:0}
.rule-item{
  padding-block:clamp(24px,3vw,34px);
  border-top:1px solid var(--rule-soft);
}
.rule-item:last-child{border-bottom:1px solid var(--rule-soft)}
.rule-item h4{margin-bottom:10px}
.rule-item p{font-size:.98rem}

/* numbered list, principles */
.numbered{counter-reset:n}
.numbered .rule-item{
  display:grid;gap:8px 26px;align-items:start;
  grid-template-columns:auto 1fr;
}
.numbered .rule-item::before{
  counter-increment:n;content:counter(n);
  font-family:var(--f-body);font-weight:700;font-size:.82rem;
  color:var(--amber);padding-top:4px;min-width:1.5em;
}
.ground-light .numbered .rule-item::before{color:var(--slate-deep)}
.numbered .rule-item h4{grid-column:2}
.numbered .rule-item p{grid-column:2}
@media (min-width:820px){
  .numbered .rule-item{grid-template-columns:auto 1fr 1.25fr;gap:8px clamp(26px,4vw,64px)}
  .numbered .rule-item h4{grid-column:2;align-self:start}
  .numbered .rule-item p{grid-column:3;margin:0}
}

/* two or three across, separated by rules only */
.cols{display:grid;gap:clamp(26px,4vw,52px)}
@media (min-width:700px){ .cols-2{grid-template-columns:repeat(2,1fr)} }
@media (min-width:900px){ .cols-3{grid-template-columns:repeat(3,1fr)} }
@media (min-width:700px){ .cols-4{grid-template-columns:repeat(2,1fr)} }
@media (min-width:1000px){ .cols-4{grid-template-columns:repeat(4,1fr)} }
.col-topped{padding-top:22px;border-top:1px solid var(--rule)}
.col-topped h4{margin-bottom:10px}
.col-topped p{font-size:.96rem}

/* figure: a number and what it means */
.figure .n{
  font-family:var(--f-display);font-weight:600;
  font-size:clamp(2.2rem,4vw,3.2rem);line-height:1;letter-spacing:-.04em;
  color:var(--ink);margin-bottom:12px;
}

/* ---------- 11. Product blocks ---------- */
.product{padding-top:clamp(30px,4vw,48px);border-top:1px solid var(--rule)}
.product + .product{margin-top:clamp(48px,7vw,96px)}
.product-head{
  display:flex;align-items:baseline;justify-content:space-between;
  gap:20px;flex-wrap:wrap;margin-bottom:clamp(22px,3vw,34px);
}
.product-name{
  font-family:var(--f-display);font-weight:600;
  font-size:clamp(2rem,4vw,3.1rem);line-height:1;letter-spacing:-.04em;
}
.product-kind{font-family:var(--f-body);font-weight:600;font-size:.76rem;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-2)}
.product-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:clamp(26px,3vw,36px)}

/* feature list: thin rules, no bullets, no boxes */
.feature-list{display:grid;gap:0}
.feature-list li{
  padding-block:14px;border-top:1px solid var(--rule-soft);
  font-size:.98rem;color:var(--ink-2);
  display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:baseline;
}
.feature-list li:last-child{border-bottom:1px solid var(--rule-soft)}
.feature-list li::before{content:"—";color:var(--amber);font-weight:600}
.ground-light .feature-list li::before{color:var(--slate-deep)}

/* a quiet inset for a product's sub-tool */
.inset{
  margin-top:clamp(26px,3vw,38px);padding:clamp(22px,3vw,30px);
  border-left:2px solid var(--amber);background:rgba(138,147,168,.06);
}
.ground-light .inset{border-left-color:var(--deep-ink);background:rgba(91,100,120,.06)}
.inset h4{margin-bottom:10px}
.inset p{font-size:.96rem}

/* ---------- 12. Interface preview ---------- */
.screen{
  position:relative;
  border:1px solid rgba(242,244,248,.1);background:rgba(22,29,58,.38);
  -webkit-backdrop-filter:blur(18px) saturate(140%);backdrop-filter:blur(18px) saturate(140%);
  box-shadow:inset 0 1px 0 rgba(242,244,248,.09);
}
.ground-light .screen{background:#fff;border-color:var(--rule-light);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
.ground-light .screen::before{display:none}
.screen-bar{
  display:flex;align-items:center;gap:10px;padding:13px 18px;
  border-bottom:1px solid var(--rule-soft);
}
.screen-bar .t{font-size:.72rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-2)}
.screen-body{padding:6px 18px 18px}
.screen-row{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding-block:14px;border-bottom:1px solid var(--rule-soft);
}
.screen-row:last-child{border-bottom:0}
.screen-row .nm{font-size:.92rem;font-weight:500;color:var(--ink)}
.screen-row .vl{font-size:.88rem;color:var(--ink-2);font-weight:500}
.screen-row .vl.hi{color:var(--amber);font-weight:700}
.ground-light .screen-row .vl.hi{color:var(--deep-ink)}
.meter{height:3px;background:rgba(138,147,168,.22);width:100%;margin-top:12px;display:block}
.meter i{display:block;height:100%;background:var(--amber);width:0;transition:width 1.1s var(--ease)}

/* ---------- 13. Pull quote / statement ---------- */
.statement{
  font-family:var(--f-display);font-weight:600;
  font-size:clamp(1.8rem,4vw,3.2rem);line-height:1.04;letter-spacing:-.035em;
  max-width:18ch;
}

/* ---------- 14. Forms ---------- */
.form{display:grid;gap:22px;max-width:560px}
.field{display:grid;gap:9px}
.field label{font-size:.76rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-2)}
.field input,.field textarea,.field select{
  width:100%;padding:14px 0;border:0;border-bottom:1px solid var(--rule);
  background:transparent;color:var(--ink);font-size:1rem;border-radius:0;
  transition:border-color .25s var(--ease);
}
.field textarea{min-height:120px;resize:vertical}
.field input::placeholder,.field textarea::placeholder{color:var(--ink-2);opacity:.75}
.field input:focus,.field textarea:focus,.field select:focus{outline:none;border-bottom-color:var(--amber)}
.ground-light .field input:focus,.ground-light .field textarea:focus,.ground-light .field select:focus{border-bottom-color:var(--deep-ink)}
.form-status{font-size:.9rem;font-weight:500;color:var(--ink);min-height:1.2em}
.form-note{font-size:.84rem;color:var(--ink-2)}

/* definition rows */
.defs{display:grid;gap:0}
.def{padding-block:18px;border-top:1px solid var(--rule-soft);display:grid;gap:6px}
.def:last-child{border-bottom:1px solid var(--rule-soft)}
.def .k{font-size:.74rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-2)}
.def .v{font-size:1rem;color:var(--ink);font-weight:500}

/* ---------- 15. Footer ---------- */
.site-footer{padding-block:clamp(56px,7vw,92px) 34px;position:relative;overflow:clip}
.foot-top{display:grid;gap:40px;margin-bottom:clamp(44px,6vw,72px)}
@media (min-width:820px){ .foot-top{grid-template-columns:2fr 1fr 1fr 1.2fr;gap:clamp(24px,4vw,56px)} }
.foot-brand img{height:30px;margin-bottom:22px}
.foot-col h5{font-size:.74rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--slate);margin-bottom:18px}
.foot-col ul{display:grid;gap:12px}
.foot-col a{font-size:.96rem;color:var(--optic-white);opacity:.82;transition:opacity .2s}
.foot-col a:hover{opacity:1}
.foot-bottom{
  padding-top:26px;border-top:1px solid var(--rule-dark-soft);
  display:flex;flex-wrap:wrap;gap:12px 28px;justify-content:space-between;
}
.foot-bottom p{font-size:.82rem;color:var(--slate);max-width:none}

/* ---------- 16. Page hero (sub-pages) ---------- */
.page-hero{padding-top:calc(var(--nav-h) + clamp(44px,7vw,86px));padding-bottom:clamp(44px,6vw,80px)}
.page-hero h1{font-size:clamp(2.3rem,5.2vw,4.4rem);max-width:17ch;margin-bottom:26px}
.crumb{display:flex;gap:10px;align-items:center;margin-bottom:26px}
.crumb a{opacity:.8}
.crumb a:hover{opacity:1}

/* ---------- 17. Reveal ---------- */
.js .rv{opacity:0;transform:translateY(16px);transition:opacity .7s var(--ease),transform .7s var(--ease)}
.js .rv.in{opacity:1;transform:none}
.rv-1{transition-delay:.06s}.rv-2{transition-delay:.12s}.rv-3{transition-delay:.18s}
.rv-4{transition-delay:.24s}.rv-5{transition-delay:.3s}.rv-6{transition-delay:.36s}

/* ---------- 18. Breakpoints ---------- */
@media (min-width:980px){
  .nav-links{display:flex}
  .nav-right .nav-cta{display:inline-flex}
  .burger{display:none}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
  .js .rv{opacity:1;transform:none}
}

@media print{
  .site-header,.mobile-menu,.axis,.supergraphic{display:none}
  body{background:#fff;color:#0B1026}
}

/* ============================================================
   19. Motion layer
   ============================================================ */

/* --- light filaments --- */
.page-filaments{
  position:fixed;inset:0;z-index:0;pointer-events:none;
  /* full width, dimmed behind the text column rather than cut off */
  -webkit-mask-image:linear-gradient(90deg,rgba(0,0,0,.5) 0 30%,rgba(0,0,0,.8) 48%,#000 64%);
  mask-image:linear-gradient(90deg,rgba(0,0,0,.5) 0 30%,rgba(0,0,0,.8) 48%,#000 64%);
}
.page-filaments canvas{width:100%;height:100%;display:block}
/* content rides above it; light grounds are opaque and cover it entirely */
.site-header,main,.site-footer{position:relative;z-index:1}

.filament-layer{
  position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;
  /* Keeps the light in the clear half of the layout and off the type. */
  -webkit-mask-image:linear-gradient(90deg,transparent 0 48%,rgba(0,0,0,.45) 62%,#000 76%);
  mask-image:linear-gradient(90deg,transparent 0 48%,rgba(0,0,0,.45) 62%,#000 76%);
}
.filament-layer.flip{
  -webkit-mask-image:linear-gradient(270deg,transparent 0 48%,rgba(0,0,0,.45) 62%,#000 76%);
  mask-image:linear-gradient(270deg,transparent 0 48%,rgba(0,0,0,.45) 62%,#000 76%);
}
canvas.filaments{display:block;width:100%;height:100%}
.hero .filament-layer{inset:0 0 23% 0}
.page-hero .filament-layer{inset:0 0 6% 0}
.ground-light .filament-layer{opacity:.45;mix-blend-mode:multiply}

/* --- headline reveal: lines rise out of a mask --- */
.js .reveal-lines{display:block}
.js .reveal-lines .ln{display:block;overflow:hidden;padding-bottom:.06em;margin-bottom:-.06em}
.js .reveal-lines .ln > span{
  display:block;transform:translateY(105%);
  transition:transform .95s cubic-bezier(.16,.84,.26,1);
}
.js .reveal-lines.in .ln > span{transform:none}
.js .reveal-lines.in .ln:nth-child(2) > span{transition-delay:.09s}
.js .reveal-lines.in .ln:nth-child(3) > span{transition-delay:.18s}

/* --- rules draw themselves in --- */
.js .rule-item,.js .col-topped,.js .def,.js .feature-list li,.js .product{position:relative}
.js .rule-item::after,.js .col-topped::after,.js .def::after,
.js .feature-list li::after,.js .product::after{
  content:"";position:absolute;top:-1px;left:0;height:1px;width:0;
  background:var(--ink);opacity:.5;
  transition:width 1.05s cubic-bezier(.16,.84,.26,1);
}
.js .rv.in .rule-item::after,.js .rv.in .col-topped::after,.js .rv.in .def::after,
.js .rv.in .feature-list li::after,.js .rv.in.product::after,
.js .rule-item.in::after,.js .col-topped.in::after,.js .def.in::after,
.js .feature-list li.in::after,.js .product.in::after{width:100%}
@media (prefers-reduced-motion:reduce){
  .js .rule-item::after,.js .col-topped::after,.js .def::after,
  .js .feature-list li::after,.js .product::after{display:none}
}

/* --- counters --- */
.count{font-variant-numeric:tabular-nums}

/* --- panels lift and drift --- */
.screen{
  transition:transform .8s cubic-bezier(.16,.84,.26,1),border-color .4s var(--ease);
  will-change:transform;
}
.screen-float{transform:translateY(var(--drift,0px))}

/* ============================================================
   20. Dashboard components
   ============================================================ */
.panel-grid{display:grid;gap:clamp(14px,1.6vw,20px)}
@media (min-width:820px){ .panel-grid.pg-2{grid-template-columns:1.45fr 1fr} }

/* weekday bars */
.bars{display:flex;align-items:stretch;gap:clamp(8px,1.4vw,16px);height:146px;padding-top:10px}
.bars .bar{flex:1;display:flex;flex-direction:column;gap:10px;min-width:0}
.bars .trk{position:relative;flex:1;min-height:0}
.bars .bar i{
  position:absolute;left:0;right:0;bottom:0;
  background:rgba(138,147,168,.34);
  height:0;transition:height 1.1s cubic-bezier(.16,.84,.26,1);
}
.ground-light .bars .bar i{background:rgba(91,100,120,.3)}
.bars .bar.on i{background:var(--amber)}
.bars .bar b{
  font-family:var(--f-body);font-weight:600;font-size:.68rem;letter-spacing:.1em;
  text-transform:uppercase;color:var(--ink-2);text-align:center;
}
.bars .bar.on b{color:var(--ink)}

/* ring */
.ring{display:grid;place-items:center;position:relative;padding-block:8px}
.ring svg{width:min(148px,42vw);height:auto;transform:rotate(-90deg)}
.ring .track{stroke:rgba(138,147,168,.2)}
.ground-light .ring .track{stroke:rgba(91,100,120,.2)}
.ring .arc{
  stroke:var(--amber);stroke-linecap:round;
  stroke-dasharray:var(--circ,264);stroke-dashoffset:var(--circ,264);
  transition:stroke-dashoffset 1.4s cubic-bezier(.16,.84,.26,1);
}
.ring.in .arc{stroke-dashoffset:var(--off,70)}
.ring .val{
  position:absolute;font-family:var(--f-display);font-weight:600;
  font-size:clamp(1.5rem,2.6vw,2rem);letter-spacing:-.03em;color:var(--ink);
}
.ring-cap{margin-top:14px;font-size:.88rem;color:var(--ink-2);text-align:center;max-width:26ch}

/* figures row */
.figures{display:grid;gap:clamp(22px,3vw,40px)}
@media (min-width:700px){ .figures{grid-template-columns:repeat(3,1fr)} }
.figures .fig{padding-top:20px;border-top:1px solid var(--rule);position:relative}
.figures .n{
  display:block;font-family:var(--f-display);font-weight:600;
  font-size:clamp(2.4rem,5vw,3.8rem);line-height:1;letter-spacing:-.04em;
  color:var(--ink);margin-bottom:14px;
}
.figures .fig p{font-size:.95rem}

/* ============================================================
   21. Demo blocks
   ============================================================ */
.demo{position:relative}
.demo-frame{
  position:relative;border:1px solid var(--rule);overflow:hidden;
  background:linear-gradient(160deg,rgba(22,29,58,.5),rgba(11,16,38,.28));
  -webkit-backdrop-filter:blur(20px) saturate(140%);backdrop-filter:blur(20px) saturate(140%);
  box-shadow:inset 0 1px 0 rgba(242,244,248,.09);
  aspect-ratio:16/10;display:grid;place-items:center;
}
.ground-light .demo-frame{background:linear-gradient(160deg,rgba(91,100,120,.07),rgba(91,100,120,.02))}
.demo-frame video,.demo-frame img{width:100%;height:100%;object-fit:cover;display:block}
.demo-frame .demo-empty{
  display:grid;place-items:center;gap:20px;text-align:center;padding:clamp(24px,4vw,44px);
}
.demo-frame .demo-empty .sym{width:clamp(64px,9vw,104px);color:#232D54;opacity:1}
.ground-light .demo-frame .demo-empty .sym{color:#D7DCE8}
.demo-frame .demo-empty .sym svg{width:100%;height:auto}
.demo-url{
  font-family:var(--f-body);font-weight:600;font-size:.82rem;letter-spacing:.1em;
  text-transform:uppercase;color:var(--ink-2);
}
.demo-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:clamp(22px,3vw,30px)}
.btn .ext{transition:transform .25s var(--ease)}
.btn:hover .ext{transform:translate(2px,-2px)}

/* live dot */
.live{display:inline-flex;align-items:center;gap:9px}
.live::before{
  content:"";width:7px;height:7px;border-radius:50%;background:var(--amber);
  box-shadow:0 0 0 0 rgba(255,176,32,.6);animation:ping 2.6s ease-out infinite;
}
@keyframes ping{
  0%{box-shadow:0 0 0 0 rgba(255,176,32,.5)}
  70%{box-shadow:0 0 0 9px rgba(255,176,32,0)}
  100%{box-shadow:0 0 0 0 rgba(255,176,32,0)}
}
@media (prefers-reduced-motion:reduce){ .live::before{animation:none} }

/* Mobile filament placement, last so it beats the per-section insets above. */
@media (max-width:820px){
  /* The copy runs full width here, so the light sits under it and stays quiet. */
  .filament-layer,.filament-layer.flip,
  .hero .filament-layer,.page-hero .filament-layer{
    inset:auto 0 0 0;height:42%;opacity:.38;
    -webkit-mask-image:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.45) 26%,#000 48%,rgba(0,0,0,.3) 80%,transparent 100%);
    mask-image:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.45) 26%,#000 48%,rgba(0,0,0,.3) 80%,transparent 100%);
  }
}

/* ============================================================
   22. Interface artefacts
   ============================================================ */

/* badge pill above a headline */
.badge{
  display:inline-flex;align-items:center;gap:9px;
  padding:7px 14px;border:1px solid var(--rule);border-radius:999px;
  font-family:var(--f-body);font-weight:600;font-size:.72rem;
  letter-spacing:.1em;text-transform:uppercase;color:var(--ink-2);
  margin-bottom:22px;
}
.badge::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--amber);flex:none}
.ground-light .badge::before{background:var(--deep-ink)}

/* section index number */
.idx{
  display:block;font-family:var(--f-body);font-weight:700;font-size:.74rem;
  letter-spacing:.14em;color:var(--amber);margin-bottom:16px;
}
.ground-light .idx{color:var(--slate-deep)}

/* the hero's product panel, tilted into the page */
.stage{position:relative;perspective:1600px}
.panel{
  position:relative;border:1px solid rgba(242,244,248,.11);
  background:linear-gradient(165deg,rgba(22,29,58,.74),rgba(11,16,38,.6));
  -webkit-backdrop-filter:blur(22px) saturate(150%);backdrop-filter:blur(22px) saturate(150%);
  box-shadow:inset 0 1px 0 rgba(242,244,248,.12),0 60px 120px -60px rgba(0,0,0,.95),0 0 90px -50px rgba(255,176,32,.28);
  overflow:hidden;
}
/* glass sheen; backdrop-filter makes .panel a stacking context, so -1 sits under the content */
.panel::before,.screen::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(118deg,rgba(242,244,248,.08) 0%,rgba(242,244,248,0) 36%);
}
.panel-tilt{transform:rotateY(-13deg) rotateX(4deg) rotateZ(.6deg)}
.panel-head{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:14px 18px;border-bottom:1px solid var(--rule-dark-soft);
}
.panel-head .t{font-family:var(--f-body);font-weight:600;font-size:.74rem;letter-spacing:.1em;text-transform:uppercase;color:var(--slate)}
.panel-head .s{font-family:var(--f-body);font-weight:600;font-size:.7rem;letter-spacing:.08em;color:var(--amber)}
.panel-body{padding:6px 18px 18px}

/* run log: ticks, a bar, a timing */
.runlog{display:grid}
.runlog .r{
  display:grid;grid-template-columns:18px 1fr auto;gap:14px;align-items:center;
  padding-block:13px;border-bottom:1px solid var(--rule-dark-soft);
}
.runlog .r:last-child{border-bottom:0}
.runlog .tick{
  width:16px;height:16px;border:1px solid var(--rule-dark);border-radius:50%;
  display:grid;place-items:center;color:var(--amber);font-size:.6rem;line-height:1;
}
.runlog .r.done .tick{background:var(--amber);border-color:var(--amber);color:var(--deep-ink)}
.runlog .r.wait .tick{opacity:.45}
.runlog .nm{font-family:var(--f-body);font-size:.88rem;color:var(--optic-white);font-weight:500}
.runlog .r.wait .nm{color:var(--slate)}
.runlog .ms{font-family:var(--f-body);font-size:.76rem;color:var(--slate);font-weight:500}
.runlog .track{height:4px;background:rgba(138,147,168,.18);position:relative;margin-top:7px}
.runlog .track i{position:absolute;inset:0 auto 0 0;width:0;background:var(--amber);transition:width 1.1s cubic-bezier(.16,.84,.26,1)}

/* isometric bars */
.iso{display:flex;align-items:flex-end;gap:clamp(10px,1.8vw,22px);padding-top:26px}
.iso .col{flex:1;display:flex;flex-direction:column;align-items:center;gap:12px;min-width:0}
.iso .stack{position:relative;width:100%;display:flex;align-items:flex-end;justify-content:center;height:150px}
.iso .blk{position:relative;width:72%;height:0;transition:height 1s cubic-bezier(.16,.84,.26,1)}
.iso .blk .face{position:absolute;inset:0;background:linear-gradient(180deg,rgba(138,147,168,.3),rgba(138,147,168,.12))}
.iso .blk .top{
  position:absolute;left:0;right:0;top:-12px;height:24px;
  background:rgba(168,180,210,.5);
  clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);
}
.iso .col.on .blk .face{background:linear-gradient(180deg,var(--amber),rgba(255,176,32,.55));box-shadow:0 0 44px rgba(255,176,32,.45)}
.iso .col.on .blk .top{background:#ffd37a}
.iso .col b{font-family:var(--f-body);font-weight:600;font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-2)}
.iso .col.on b{color:var(--ink)}

/* sparkline */
.spark{display:block;width:100%;height:auto}
.spark .ln{fill:none;stroke:var(--amber);stroke-width:1.6;stroke-linecap:round;
  stroke-dasharray:var(--len,400);stroke-dashoffset:var(--len,400);
  transition:stroke-dashoffset 1.5s cubic-bezier(.16,.84,.26,1)}
.spark.in .ln{stroke-dashoffset:0}
.spark .base{stroke:rgba(138,147,168,.2);stroke-width:1}

/* segmented blocks */
.seg{display:flex;gap:5px;align-items:flex-end;height:46px}
.seg i{flex:1;background:rgba(138,147,168,.2);height:100%;transform:scaleY(.25);transform-origin:bottom;
  transition:transform .6s cubic-bezier(.16,.84,.26,1),background .4s}
.seg.in i{transform:scaleY(1)}
.seg.in i.on{background:var(--amber)}
.seg i:nth-child(1){transition-delay:.02s}.seg i:nth-child(2){transition-delay:.06s}
.seg i:nth-child(3){transition-delay:.1s}.seg i:nth-child(4){transition-delay:.14s}
.seg i:nth-child(5){transition-delay:.18s}.seg i:nth-child(6){transition-delay:.22s}
.seg i:nth-child(7){transition-delay:.26s}.seg i:nth-child(8){transition-delay:.3s}
.seg i:nth-child(9){transition-delay:.34s}.seg i:nth-child(10){transition-delay:.38s}

/* a stat with its own small visual */
.proof{display:grid;gap:clamp(26px,4vw,46px)}
@media (min-width:860px){ .proof{grid-template-columns:repeat(3,1fr)} }
.proof .cell{display:grid;gap:16px;align-content:start}
.proof .cap{font-family:var(--f-body);font-weight:600;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-2)}
.proof .said{padding-top:20px;border-top:1px solid var(--rule);font-size:.98rem;color:var(--ink)}
.proof .who{font-size:.82rem;color:var(--ink-2);font-weight:500}

@media (max-width:820px){ .panel-tilt{transform:none} .iso .stack{height:116px} }
@media (prefers-reduced-motion:reduce){
  .runlog .track i,.iso .blk,.spark .ln,.seg i{transition:none!important}
}

/* ============================================================
   23. The bloom — a scroll-scrubbed amber panel that grows out of
   the symbol, holds the line, then leaves. One per site: it is the
   single focal point the guidelines allow.
   ============================================================ */
.bloom{padding:0;height:300vh;position:relative;background:transparent}
.bloom-stick{position:sticky;top:0;height:100svh;display:grid;place-items:center;overflow:hidden}
.bloom-panel{
  position:relative;
  width:min(1180px,92vw);height:min(660px,78svh);
  background:var(--amber);
  border-radius:var(--br,44px);
  transform:scale(var(--s,.34));
  display:grid;place-items:center;
  will-change:transform;
  box-shadow:0 60px 160px -60px rgba(255,176,32,.5);
  overflow:hidden;
}
/* the dot field inside the panel */
.bloom-panel::before{
  content:"";position:absolute;inset:0;opacity:.14;
  background-image:radial-gradient(rgba(11,16,38,.9) 1px,transparent 1px);
  background-size:16px 16px;
}
.bloom-inner{
  position:relative;display:grid;place-items:center;gap:clamp(20px,3vw,34px);
  text-align:center;padding:clamp(24px,5vw,60px);max-width:min(88%,780px);
}
.bloom-label{
  font-family:var(--f-body);font-weight:600;font-size:.72rem;letter-spacing:.2em;
  text-transform:uppercase;color:rgba(11,16,38,.62);
  opacity:var(--textOp,0);transform:translateY(calc(10px * (1 - var(--textOp,0))));
}
.bloom-line{
  max-width:22ch;margin-inline:auto;
  font-family:var(--f-display);font-weight:600;
  font-size:clamp(1.5rem,3.6vw,3rem);line-height:1.04;letter-spacing:-.035em;
  color:var(--deep-ink);
  opacity:var(--textOp,0);transform:translateY(calc(16px * (1 - var(--textOp,0))));
}
.bloom-mark{
  width:clamp(54px,7vw,92px);color:var(--deep-ink);
  opacity:var(--markOp,1);
  transform:scale(var(--markS,1));   /* never rotated: the logo stays upright */
}
.bloom-mark svg{width:100%;height:auto}
/* the symbol sits in a dark tile before the panel opens, as in the reference */
.bloom-tile{
  position:absolute;display:grid;place-items:center;
  width:clamp(58px,7.4vw,96px);aspect-ratio:1;border-radius:22%;
  background:var(--deep-ink);
  opacity:var(--tileOp,1);
}
.bloom-tile svg{width:62%;height:auto;color:var(--amber)}

@media (prefers-reduced-motion:reduce){
  .bloom{height:auto}
  .bloom-stick{position:static;height:auto;padding-block:clamp(56px,8vw,96px)}
  .bloom-panel{transform:none;border-radius:28px;height:auto;min-height:420px}
  .bloom-label,.bloom-line{opacity:1;transform:none}
  .bloom-tile{display:none}
}
@media (max-width:820px){
  .bloom{height:220vh}
  .bloom-panel{height:min(560px,72svh)}
}

/* ---------- narrow screens: the page layer and the panels ---------- */
@media (max-width:820px){
  /* copy runs full width, so the page-wide light drops behind it and dims */
  .page-filaments{opacity:.5;-webkit-mask-image:none;mask-image:none}
  .runlog .r{grid-template-columns:16px 1fr;row-gap:4px}
  .runlog .ms{grid-column:2;font-size:.72rem}
  .runlog .nm{font-size:.84rem}
  .panel-head{padding:12px 14px}
  .panel-head .t{font-size:.66rem}
  .panel-body{padding:4px 14px 14px}
  .stage{perspective:none}
}
