/* =========================================================================
   STRATIS - The intelligence layer for marketing
   Design system: "Graphite & Signal" · Space Grotesk / Inter
   ========================================================================= */

/* ----------------------------------------------------------------------- */
/*  0. Tokens                                                              */
/* ----------------------------------------------------------------------- */
:root {
  /* Surfaces - cool fog whites */
  --bg:            #E9EBEE;   /* page base, cool fog */
  --bg-raised:     #F2F3F5;   /* lifted sections */
  --surface:       #FBFBFC;   /* cards */
  --surface-2:     #FFFFFF;

  /* Ink - graphite scale */
  --ink:           #16181C;   /* near-black graphite */
  --ink-1:         #2A2E34;
  --ink-2:         #535860;   /* muted body */
  --ink-3:         #82888F;   /* tertiary / captions */
  --ink-4:         #A7ACB2;   /* faint */

  /* Signal */
  --signal:        #57FFEB;
  --signal-deep:   #16C6B2;
  --signal-soft:   rgba(87, 255, 235, 0.14);

  /* Dark world (trust band / footer) */
  --dark:          #0C0E12;
  --dark-2:        #14171D;
  --dark-ink:      #E7E9EC;
  --dark-ink-2:    #9097A0;
  --dark-hairline: rgba(255,255,255,0.10);

  /* Hairlines */
  --line:          rgba(22,24,28,0.10);
  --line-strong:   rgba(22,24,28,0.16);

  /* Orb spectrum */
  --orb-blue:      #57FFEB;
  --orb-steel:     #4E7BC4;
  --orb-cyan:      #45B4DA;
  --orb-violet:    #6E6BFF;
  --orb-fog:       #DDE3EC;

  /* Type */
  --display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:    "Space Grotesk", ui-monospace, monospace;

  /* Rhythm */
  --shell: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(116px, 15vw, 232px);   /* more air = more premium */
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  /* Soft, cinematic elevation */
  --shadow-card:  0 2px 4px -2px rgba(22,24,28,0.06), 0 30px 60px -44px rgba(22,24,28,0.40);
  --shadow-float: 0 4px 10px -4px rgba(22,24,28,0.08), 0 60px 120px -60px rgba(22,24,28,0.50);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------------------------------------------------------------------- */
/*  1. Reset                                                               */
/* ----------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--signal); color: var(--ink); }

/* Subtle film grain for premium texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----------------------------------------------------------------------- */
/*  2. Layout primitives                                                   */
/* ----------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { position: relative; padding-block: var(--section-y); }
.section--tight { padding-block: clamp(64px, 8vw, 120px); }
.divider { border-top: 1px solid var(--line); }

/* Section index marker - e.g. "01 / The problem" */
.index {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.index::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px var(--signal-soft);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-1);
}

/* ----------------------------------------------------------------------- */
/*  3. Typography                                                          */
/* ----------------------------------------------------------------------- */
.display, h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.display--xl { font-size: clamp(2.7rem, 6.6vw, 5.3rem); letter-spacing: -0.034em; line-height: 0.98; }
.display--l  { font-size: clamp(2.1rem, 4.6vw, 3.6rem);  letter-spacing: -0.028em; line-height: 1.02; }
.display--m  { font-size: clamp(1.7rem, 3vw, 2.5rem);    letter-spacing: -0.022em; line-height: 1.08; }
.display--s  { font-size: clamp(1.3rem, 2vw, 1.65rem);   letter-spacing: -0.015em; line-height: 1.15; }

.lede {
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.body-lg { font-size: 1.12rem; line-height: 1.62; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.signal-text { color: var(--signal); }

/* ----------------------------------------------------------------------- */
/*  4. Buttons                                                             */
/* ----------------------------------------------------------------------- */
.btn {
  --b: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.96rem;
  letter-spacing: -0.01em;
  padding: 0.92em 1.5em;
  border-radius: 100px;
  transition: transform 0.45s var(--ease), background 0.3s, color 0.3s, box-shadow 0.4s;
  will-change: transform;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  transition: transform 0.5s var(--ease);
}
.btn:hover .btn__dot { transform: scale(1.6); }

.btn--signal {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.18), 0 12px 30px -12px rgba(22,24,28,0.5);
}
.btn--signal:hover { background: var(--signal); color: var(--ink); box-shadow: 0 1px 2px rgba(87,255,235,0.4), 0 18px 40px -14px rgba(87,255,235,0.55); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); transform: translateY(-2px); }

.btn--light {
  background: var(--dark-ink);
  color: var(--dark);
}
.btn--light:hover { background: #fff; transform: translateY(-2px); }

.btn--lg { padding: 1.05em 1.8em; font-size: 1.02rem; }

/* Text link with animated underline */
.tlink {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--display); font-weight: 500; font-size: 0.95rem;
  color: var(--ink);
  position: relative;
}
.tlink::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.tlink:hover::after { transform: scaleX(1); }
.tlink svg { transition: transform 0.4s var(--ease); }
.tlink:hover svg { transform: translateX(4px); }

/* ----------------------------------------------------------------------- */
/*  5. Ambient orb (signature motion asset)                                */
/* ----------------------------------------------------------------------- */
.ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.ambient__field {
  position: absolute;
  inset: -25%;
  filter: blur(82px) saturate(116%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
  opacity: 0.55;
  will-change: transform;
}
.orb--1 { width: 46vw; height: 46vw; left: 8%;  top: 2%;
  background: radial-gradient(circle at 35% 35%, var(--orb-blue), transparent 66%);
  animation: drift1 22s var(--ease) infinite alternate; }
.orb--2 { width: 40vw; height: 40vw; right: 4%; top: 14%;
  background: radial-gradient(circle at 50% 50%, var(--orb-cyan), transparent 64%);
  animation: drift2 26s var(--ease) infinite alternate; opacity: 0.42; }
.orb--3 { width: 34vw; height: 34vw; left: 34%; top: 30%;
  background: radial-gradient(circle at 50% 50%, var(--orb-violet), transparent 64%);
  animation: drift3 30s var(--ease) infinite alternate; opacity: 0.34; }
.orb--4 { width: 30vw; height: 30vw; right: 22%; top: 0%;
  background: radial-gradient(circle at 50% 50%, var(--orb-steel), transparent 66%);
  animation: drift1 28s var(--ease) infinite alternate-reverse; opacity: 0.4; }

@keyframes drift1 { to { transform: translate3d(8%, 10%, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-10%, 6%, 0) scale(0.9); } }
@keyframes drift3 { to { transform: translate3d(6%, -12%, 0) scale(1.15); } }

/* Dark variant - luminous on dark */
.ambient--dark .orb { mix-blend-mode: screen; opacity: 0.5; }
.ambient--dark .orb--1 { background: radial-gradient(circle at 40% 40%, var(--orb-blue), transparent 64%); }
.ambient--dark .orb--2 { background: radial-gradient(circle at 50% 50%, var(--orb-cyan), transparent 62%); }
.ambient--dark .orb--3 { background: radial-gradient(circle at 50% 50%, var(--orb-violet), transparent 62%); }

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none !important; }
}

/* ----------------------------------------------------------------------- */
/*  6. Navigation                                                          */
/* ----------------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s var(--ease), box-shadow 0.4s, backdrop-filter 0.4s;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
  max-width: var(--shell); margin-inline: auto;
  padding-inline: var(--gutter);
}
.nav.is-stuck {
  background: rgba(233,235,238,0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.62em;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: 0.16em;
  color: var(--ink);
}
.wordmark__glyph {
  width: 15px; height: 15px;
  position: relative;
  display: inline-block;
}
.wordmark__glyph::before, .wordmark__glyph::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
}
.wordmark__glyph::before { background: var(--signal); animation: pulse 3.4s var(--ease) infinite; }
.wordmark__glyph::after { background: var(--ink); transform: scale(0.42); }
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 0 var(--signal-soft);} 50%{ box-shadow: 0 0 0 7px rgba(87,255,235,0);} }

/* Official STRATIS wordmark - masked so it inherits `color` (black in nav, white on dark) */
.logo {
  display: inline-block;
  height: 16px;
  aspect-ratio: 553.72 / 75.39;
  flex: none;
  background: currentColor;
  -webkit-mask: url(/assets/stratis-logo.svg) center / contain no-repeat;
  mask: url(/assets/stratis-logo.svg) center / contain no-repeat;
}
.navpill--logo .logo { height: 15px; }
.footer .wordmark .logo { height: 19px; }
#loader .wordmark .logo { height: 24px; }

.nav__links { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav__link {
  font-family: var(--display);
  font-weight: 500; font-size: 0.95rem;
  color: var(--ink-2);
  position: relative; padding: 6px 0;
  transition: color 0.3s;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after {
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:1.5px; background: var(--signal);
}
.nav__cta { margin-left: 8px; }
.nav__toggle { display: none; }

@media (max-width: 880px) {
  .nav__links { gap: 18px; }
  .nav__group { display: none; }
  .nav__toggle {
    display: inline-flex; flex-direction: column; gap: 5px; padding: 10px; margin-right: -10px;
  }
  .nav__toggle span { width: 22px; height: 1.6px; background: var(--ink); transition: transform .35s var(--ease), opacity .3s; }
  body.menu-open .nav__toggle span:nth-child(1){ transform: translateY(6.6px) rotate(45deg);}
  body.menu-open .nav__toggle span:nth-child(2){ opacity:0;}
  body.menu-open .nav__toggle span:nth-child(3){ transform: translateY(-6.6px) rotate(-45deg);}
  .nav__cta { display: none; }
}

/* Mobile sheet */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease);
  visibility: hidden;
}
body.menu-open .mobile-menu { transform: translateY(0); visibility: visible; }
.mobile-menu a { font-family: var(--display); font-weight: 500; font-size: 2rem; padding: 0.35em 0; color: var(--ink); letter-spacing: -0.02em; }
.mobile-menu .btn { margin-top: 24px; align-self: flex-start; }

/* ----------------------------------------------------------------------- */
/*  7. Hero                                                                */
/* ----------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(172px, 24vh, 300px);
  padding-bottom: 0;
  text-align: center;
  overflow: hidden;
}
/* atmospheric backdrop - a soft graded "intelligence sky" behind the headline */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: min(1500px, 130vw); height: 920px;
  background:
    radial-gradient(58% 60% at 50% 6%, rgba(87,255,235,0.06), transparent 70%),
    radial-gradient(82% 72% at 50% 0%, rgba(255,255,255,0.55), transparent 72%);
  z-index: 0; pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; max-width: 960px; margin-inline: auto; }
.hero .eyebrow { display: inline-block; margin-bottom: 2rem; }
.hero h1 { margin-bottom: 1.7rem; }
.hero .lede { max-width: 620px; margin: 0 auto 3rem; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Hero ambient stage - the cinematic atmosphere beneath */
.hero-stage {
  position: relative;
  height: clamp(320px, 50vw, 660px);
  margin-top: clamp(36px, 7vw, 104px);
}
.hero-stage .ambient { z-index: 0; }
.hero-stage__line {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 1px; height: 64px;
  background: linear-gradient(var(--line-strong), transparent);
}

/* Eyebrow chip variant (centered, bordered) */
.chip {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.5em 1em 0.5em 0.8em;
  border-radius: 100px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2);
}
.chip__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }

/* ----------------------------------------------------------------------- */
/*  8. Credibility band                                                    */
/* ----------------------------------------------------------------------- */
.cred {
  border-block: 1px solid var(--line);
  padding-block: clamp(28px, 4vw, 44px);
}
.cred__inner { display: flex; align-items: center; gap: clamp(24px, 5vw, 64px); flex-wrap: wrap; justify-content: center; text-align: center; }
.cred__label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-4); white-space: nowrap; }
.cred__statement { font-family: var(--display); font-weight: 400; font-size: clamp(1.05rem, 1.9vw, 1.45rem); letter-spacing: -0.018em; color: var(--ink-1); max-width: 760px; line-height: 1.32; }
/* logo-row swap slot (hidden until logos exist) */
.logo-row { display: none; }

/* ----------------------------------------------------------------------- */
/*  9. Problem (centered statement)                                        */
/* ----------------------------------------------------------------------- */
.statement { max-width: 900px; margin-inline: auto; text-align: center; }
.statement .index { margin-bottom: 2rem; }
.statement h2 { margin-bottom: 1.8rem; }
.statement__body { max-width: 680px; margin-inline: auto; }

/* ----------------------------------------------------------------------- */
/*  10. Anchor (what STRATIS is)                                           */
/* ----------------------------------------------------------------------- */
.anchor__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.anchor h2 { margin-block: 1.6rem 0; }
@media (max-width: 860px){ .anchor__grid { grid-template-columns: 1fr; gap: 28px; } }

/* ----------------------------------------------------------------------- */
/*  11. Capability blocks (alternating)                                    */
/* ----------------------------------------------------------------------- */
.cap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 80px);
}
.cap + .cap { border-top: 1px solid var(--line); }
.cap--flip .cap__media { order: -1; }
.tag {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-1);
  margin-bottom: 1.3rem;
}
.tag::before { content:""; width: 22px; height: 1px; background: var(--signal); }
.cap__heading { margin-bottom: 1.2rem; }
.cap__promise { font-size: 1.06rem; color: var(--ink-2); line-height: 1.55; margin-bottom: 1.5rem; }
.cap__points { display: grid; gap: 0; margin-top: 1.7rem; border-top: 1px solid var(--line); }
.cap__points li {
  display: flex; gap: 1em; align-items: baseline;
  padding: 0.95em 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem; color: var(--ink-1);
}
.cap__points li::before {
  content: ""; flex: none;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal); transform: translateY(0.5em);
  box-shadow: 0 0 0 3px var(--signal-soft);
}

/* Media panel - ambient render */
.cap__media {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-float);
}
.cap__media .ambient { z-index: 0; }
.cap__media .ambient__field { filter: blur(50px) saturate(130%); }
/* fine grid overlay on media for "instrument" feel */
.cap__media::after {
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 50%, transparent 40%, #000 100%);
  opacity: 0.5;
}
.cap__media-label {
  position: absolute; left: 18px; bottom: 16px; z-index: 2;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 0.6em;
}
.cap__media-label::before { content:""; width:6px; height:6px; border-radius:50%; background: var(--signal); animation: pulse 3s var(--ease) infinite; }

@media (max-width: 860px){
  .cap { grid-template-columns: 1fr; gap: 30px; }
  .cap--flip .cap__media { order: 0; }
}

/* ----------------------------------------------------------------------- */
/*  12. Moat - pillars                                                     */
/* ----------------------------------------------------------------------- */
.moat__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.moat__head h2 { margin-block: 1.4rem 1.4rem; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillar { background: var(--bg); padding: clamp(28px, 3vw, 42px); display: flex; flex-direction: column; gap: 1rem; transition: background 0.4s; }
.pillar:hover { background: var(--surface); }
.pillar__n { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.2em; color: var(--ink-1); }
.pillar h3 { font-size: 1.28rem; letter-spacing: -0.018em; line-height: 1.18; }
.pillar p { font-size: 0.98rem; color: var(--ink-2); line-height: 1.6; }
@media (max-width: 820px){ .pillars { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------------- */
/*  13. Steps                                                              */
/* ----------------------------------------------------------------------- */
.how__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.how__head { margin-bottom: 2.6rem; }
.how__head h2 { margin-top: 1.4rem; }
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.4em; padding: 1.6em 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  font-family: var(--display); font-weight: 500; font-size: 0.92rem;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink); transition: all 0.4s var(--ease);
}
.step:hover .step__num { background: var(--ink); color: #fff; box-shadow: none; }
.step__label { font-family: var(--display); font-weight: 500; font-size: 1.18rem; letter-spacing: -0.018em; margin-bottom: 0.35em; }
.step__detail { font-size: 0.98rem; color: var(--ink-2); line-height: 1.55; }
.how__cta { margin-top: 2.4rem; }
.how__media {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  aspect-ratio: 4/5; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-float);
}
.how__media .ambient__field { filter: blur(54px) saturate(130%); }
@media (max-width: 860px){ .how__grid { grid-template-columns: 1fr; gap: 36px; } .how__media{ aspect-ratio: 16/11; } }

/* ----------------------------------------------------------------------- */
/*  14. Value pillars (small cards)                                        */
/* ----------------------------------------------------------------------- */
.values__head { margin-bottom: clamp(32px, 4vw, 52px); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value {
  padding: clamp(30px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card);
  display: flex; flex-direction: column; gap: 0.7rem;
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.value:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-float); }
.value__icon { width: 34px; height: 34px; margin-bottom: 0.4rem; color: var(--signal); }
.value h3 { font-size: 1.18rem; letter-spacing: -0.018em; }
.value p { font-size: 0.96rem; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 820px){ .values { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------------- */
/*  15. Trust band (dark)                                                  */
/* ----------------------------------------------------------------------- */
.trust {
  position: relative;
  background: var(--dark);
  color: var(--dark-ink);
  border-radius: clamp(28px, 3.4vw, 48px);
  margin-inline: var(--gutter);
  overflow: hidden;
  padding-block: clamp(80px, 9vw, 140px);
}
.trust .ambient { opacity: 0.7; }
/* cinematic vignette for depth */
.trust::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(0,0,0,0.45) 100%);
}
.trust__inner { position: relative; z-index: 2; max-width: var(--shell); margin-inline: auto; padding-inline: clamp(24px, 4vw, 64px); }
.trust .index { color: var(--dark-ink-2); }
.trust .index::before { box-shadow: 0 0 0 4px rgba(87,255,235,0.18); }
.trust h2 { color: #fff; max-width: 880px; margin-block: 1.6rem 0; }
.trust__points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: clamp(40px, 5vw, 64px); background: var(--dark-hairline); border: 1px solid var(--dark-hairline); border-radius: var(--radius); overflow: hidden; }
.tpoint { background: var(--dark); padding: clamp(26px, 3vw, 38px); display: flex; flex-direction: column; gap: 0.9rem; }
.tpoint__icon { width: 26px; height: 26px; color: var(--signal); }
.tpoint h3 { color: #fff; font-size: 1.16rem; letter-spacing: -0.015em; }
.tpoint p { color: var(--dark-ink-2); font-size: 0.96rem; line-height: 1.58; }
.trust__badges { display: flex; align-items: center; gap: 14px; margin-top: clamp(36px, 4vw, 52px); flex-wrap: wrap; }
.trust__badges-label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dark-ink-2); }
.badge-slot {
  width: 64px; height: 64px; border-radius: 14px;
  border: 1px dashed var(--dark-hairline);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; color: rgba(255,255,255,0.28);
  text-align: center;
}
@media (max-width: 820px){ .trust__points { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------------- */
/*  16. FAQ                                                                */
/* ----------------------------------------------------------------------- */
.faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq__head { position: sticky; top: 110px; }
.faq__head h2 { margin-top: 1.4rem; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5em;
  padding: 1.5em 0;
  font-family: var(--display); font-weight: 500; font-size: clamp(1.06rem, 1.6vw, 1.28rem);
  letter-spacing: -0.018em; color: var(--ink);
  transition: color 0.3s;
}
.faq__q:hover { color: var(--signal); }
.faq__icon { flex: none; position: relative; width: 16px; height: 16px; }
.faq__icon::before, .faq__icon::after { content:""; position:absolute; background: currentColor; border-radius: 2px; transition: transform 0.45s var(--ease); }
.faq__icon::before { top: 50%; left: 0; right: 0; height: 1.6px; transform: translateY(-50%); }
.faq__icon::after  { left: 50%; top: 0; bottom: 0; width: 1.6px; transform: translateX(-50%); }
.faq__item.is-open .faq__icon::after { transform: translateX(-50%) scaleY(0); }
.faq__item.is-open .faq__q { color: var(--signal); }
.faq__a { overflow: hidden; height: 0; transition: height 0.5s var(--ease); }
.faq__a-inner { padding-bottom: 1.7em; max-width: 60ch; color: var(--ink-2); font-size: 1.02rem; line-height: 1.62; }
@media (max-width: 800px){ .faq__grid { grid-template-columns: 1fr; gap: 28px; } .faq__head { position: static; } }

/* ----------------------------------------------------------------------- */
/*  17. Closing CTA                                                        */
/* ----------------------------------------------------------------------- */
.close-cta {
  position: relative; overflow: hidden; text-align: center;
  padding-block: clamp(96px, 14vw, 200px);
}
.close-cta__inner { position: relative; z-index: 2; max-width: 880px; margin-inline: auto; }
.close-cta h2 { margin-bottom: 2.4rem; }
.close-cta .ambient__field { filter: blur(72px) saturate(125%); }

/* ----------------------------------------------------------------------- */
/*  18. Footer                                                             */
/* ----------------------------------------------------------------------- */
.footer { background: var(--dark); color: var(--dark-ink-2); padding-block: clamp(56px, 6vw, 84px) 40px; }
.footer__inner { max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--dark-hairline); }
.footer .wordmark { color: #fff; margin-bottom: 1.2rem; }
.footer__tag { font-size: 0.96rem; line-height: 1.55; max-width: 30ch; color: var(--dark-ink-2); }
.footer__col h4 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dark-ink-2); margin-bottom: 1.3rem; }
.footer__col a { display: block; color: var(--dark-ink); font-size: 0.96rem; padding: 0.4em 0; transition: color 0.3s, padding-left 0.3s; }
.footer__col a:hover { color: #fff; padding-left: 6px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; flex-wrap: wrap; font-size: 0.86rem; }
.footer__bottom a:hover { color: #fff; }
@media (max-width: 820px){ .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px){ .footer__top { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------------- */
/*  19. Scroll reveal                                                      */
/* ----------------------------------------------------------------------- */
/* Transform-only, never opacity — a block waiting to be revealed must never be
   unrenderable. See the reveal note at the top of css/home.css: opacity:0 here
   made the page blank to any renderer that does not scroll, which is what
   Google's OAuth branding checker does. platform.html sets `.js` on <html>
   inline in <head>, so a JS-off renderer gets the finished page. */
.reveal { transition: transform 0.9s var(--ease-out); }
.js .reveal:not(.is-in) { transform: translateY(22px); }
.reveal[data-delay="1"]{ transition-delay: 0.08s; }
.reveal[data-delay="2"]{ transition-delay: 0.16s; }
.reveal[data-delay="3"]{ transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; transition: none; } }

/* utilities */
.center { text-align: center; }
.mt-s { margin-top: 1rem; } .mt-m { margin-top: 2rem; }
.maxw-720 { max-width: 720px; }

/* ----------------------------------------------------------------------- */
/*  20. Generative visuals (JS-rendered SVG)                               */
/* ----------------------------------------------------------------------- */
.viz-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* --- Hero ribbon --- */
.ribbon { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-stage .ambient { opacity: 0.45; }
.ribbon-band { will-change: transform; animation: ribbonFlow linear infinite; }
@keyframes ribbonFlow { from { transform: translateX(0); } to { transform: translateX(-1200px); } }

/* --- Capability panel renders --- */
.cap-viz { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cap__media .ambient { opacity: 0.72; }
.cap__media::after { z-index: 2; opacity: 0.26; }
.cap__media-label { z-index: 3; }

/* shared svg motion primitives */
.viz-pulse  { transform-box: fill-box; transform-origin: center; animation: vizPulse 3.4s var(--ease) infinite; }
.viz-flow   { animation: vizFlow 3.2s linear infinite; }
.viz-spin   { transform-box: fill-box; transform-origin: center; animation: vizSpin 64s linear infinite; }
.viz-orbit  { transform-box: fill-box; transform-origin: center; animation: vizSpin 30s linear infinite; }
.viz-orbit-r{ transform-box: fill-box; transform-origin: center; animation: vizSpinR 44s linear infinite; }
.viz-breathe{ transform-box: fill-box; transform-origin: center; animation: vizBreathe 6s var(--ease) infinite; }
.viz-grow   { transform-box: fill-box; transform-origin: center; animation: vizGrow 7s var(--ease) infinite; }

@keyframes vizPulse  { 0%,100% { transform: scale(1);   opacity: 0.9; } 50% { transform: scale(1.7); opacity: 0.25; } }
@keyframes vizFlow   { to { stroke-dashoffset: -180; } }
@keyframes vizSpin   { to { transform: rotate(360deg); } }
@keyframes vizSpinR  { to { transform: rotate(-360deg); } }
@keyframes vizBreathe{ 0%,100% { transform: scale(0.94); opacity: 0.8; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes vizGrow   { 0% { transform: scale(0.4); opacity: 0; } 40% { opacity: 0.7; } 100% { transform: scale(1.5); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .ribbon-band, .viz-pulse, .viz-flow, .viz-spin, .viz-orbit, .viz-orbit-r, .viz-breathe, .viz-grow { animation: none !important; }
}

/* ----------------------------------------------------------------------- */
/*  21. Intelligence core band (the "in action" centerpiece)               */
/* ----------------------------------------------------------------------- */
.core {
  position: relative;
  border-radius: clamp(28px, 3.4vw, 48px);
  overflow: hidden;
  background: radial-gradient(125% 135% at 50% 14%, var(--surface-2), var(--bg-raised) 56%, var(--bg) 100%);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-float);
  min-height: clamp(460px, 54vw, 740px);
  display: grid; place-items: center;
  padding: clamp(56px, 8vw, 120px) var(--gutter);
  text-align: center;
}
.core__viz { position: absolute; inset: 0; z-index: 0; }
.core__caption { position: relative; z-index: 2; max-width: 620px; }
.core__caption h2 { margin-block: 1.3rem 0.9rem; }
.core__caption p { color: var(--ink-2); font-size: 1.05rem; line-height: 1.55; }
.core__chip { margin-bottom: 0.4rem; }

/* ======================================================================= */
/*  22. MOTION SYSTEM - load animation, kinetic type, parallax, nav        */
/* ======================================================================= */

/* --- Intro loader --- */
#loader {
  position: fixed; inset: 0; z-index: 6000;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
#loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
#loader .wordmark { font-size: 1.45rem; opacity: 0; animation: loadIn 0.7s var(--ease-out) 0.05s forwards; }
.loader__bar { width: 132px; height: 2px; background: var(--line); border-radius: 4px; overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--signal); border-radius: 4px; animation: loadBar 1.05s var(--ease) 0.1s forwards; }
@keyframes loadIn  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes loadBar { to { width: 100%; } }

/* --- Scroll progress --- */
#progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--signal), var(--orb-cyan));
  z-index: 5500; transition: width 0.12s linear;
}

/* --- Kinetic typography (mask-up word reveal) --- */
.js h1:not(.kin), .js h2.display:not(.kin) { opacity: 0; }   /* anti-FOUC until split */
.kin { opacity: 1; }
.kin-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.kin-inner {
  display: inline-block; transform: translateY(115%);
  transition: transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 0.04s);
  will-change: transform;
}
.kin.is-in .kin-inner { transform: none; }

/* --- Elevated reveals (richer than the base) --- */
/* Later override of the reveal above — same transform-only rule. */
.reveal { transition: transform 1s var(--ease-out); }
.js .reveal:not(.is-in) { transform: translateY(30px); }
.js .reveal--media:not(.is-in) { transform: translateY(40px) scale(0.97); }

/* --- Parallax --- */
[data-parallax] { will-change: transform; }

/* --- Floating glass nav (Cleo-style pill) --- */
.nav { top: clamp(10px, 1.6vw, 20px); background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; }
.nav__inner {
  width: min(calc(100% - 2 * var(--gutter)), 1160px);
  height: 62px; margin-inline: auto;
  padding: 0 10px 0 24px;
  border-radius: 100px;
  background: rgba(251,251,252,0.62);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(22,24,28,0.07), 0 14px 34px -20px rgba(22,24,28,0.30);
  transition: height 0.4s var(--ease), background 0.4s, box-shadow 0.4s, transform 0.8s var(--ease), opacity 0.8s var(--ease);
}
.nav.is-stuck .nav__inner {
  height: 56px;
  background: rgba(251,251,252,0.82);
  box-shadow: inset 0 0 0 1px rgba(22,24,28,0.10), 0 18px 44px -22px rgba(22,24,28,0.42);
}
/* nav slides in after load */
.js .nav__inner { transform: translateY(-18px); opacity: 0; }
.nav--in .nav__inner { transform: none; opacity: 1; }

/* --- Magnetic button wrapper --- */
.btn { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  #loader { display: none; }
  .js h1:not(.kin), .js h2.display:not(.kin) { opacity: 1; }
  .kin-inner { transform: none !important; transition: none !important; }
  .reveal, .reveal--media { opacity: 1 !important; transform: none !important; }
  .js .nav__inner, .js .navpill { transform: none !important; opacity: 1 !important; }
  [data-parallax] { transform: none !important; }
}

/* ======================================================================= */
/*  23. NAV - three floating glass pills (Cleo look · Akkio structure)     */
/* ======================================================================= */
.nav { top: clamp(12px, 1.8vw, 22px); }
.nav__row {
  width: min(calc(100% - 2 * var(--gutter)), 1220px);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
}

/* the shared glass pill */
.navpill {
  display: inline-flex; align-items: center;
  height: 58px; padding: 0 24px;
  border-radius: 100px;
  background: rgba(251,251,252,0.60);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  backdrop-filter: blur(20px) saturate(165%);
  box-shadow: inset 0 0 0 1px rgba(22,24,28,0.07), 0 16px 38px -22px rgba(22,24,28,0.30);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
              transform 0.7s var(--ease), opacity 0.7s var(--ease), color 0.35s;
}
.nav.is-stuck .navpill {
  background: rgba(251,251,252,0.82);
  box-shadow: inset 0 0 0 1px rgba(22,24,28,0.10), 0 20px 46px -24px rgba(22,24,28,0.40);
}

/* logo pill */
.navpill--logo {
  font-family: var(--display); font-weight: 600; font-size: 1.12rem;
  letter-spacing: 0.16em; color: var(--ink); gap: 12px;
}

/* Visible legal name beside the wordmark. The logo is a CSS background image,
   so without this the prominent on-page name is "STRATIS" while the OAuth
   consent screen says "Stratis Technologies" — which Google's branding check
   reports as a mismatch. Hidden on narrow viewports where the nav is tight. */
.navpill__name {
  font-family: var(--display); font-weight: 500; font-size: 0.86rem;
  letter-spacing: 0.01em; color: var(--ink); white-space: nowrap;
}
@media (max-width: 1180px) { .navpill__name { display: none; } }

/* center menu pill - segmented control of links */
.navpill--menu { padding: 0 7px; gap: 2px; }
.navlink {
  height: 42px; padding: 0 17px; border-radius: 100px;
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--display); font-weight: 500; font-size: 0.96rem;
  color: var(--ink-2); cursor: pointer; white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s;
}
.navlink:hover, .navitem.is-open > .navlink { background: rgba(22,24,28,0.055); color: var(--ink); }
.navitem.is-open > .navlink { color: var(--ink); }
.chev {
  width: 7px; height: 7px; margin-left: 1px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translate(-1px,-2px); opacity: 0.55;
  transition: transform 0.4s var(--ease);
}
.navitem.is-open > .navlink .chev { transform: rotate(-135deg) translate(-1px,0); opacity: 0.9; }

/* cta pill - glass that fills to ink on hover */
/* right-hand nav group: keeps .nav__row at three flex children so
   space-between still reads logo | menu | actions */
.nav__actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.navpill { flex: 0 0 auto; }
.navpill--login { font-weight: 500; text-decoration: none; color: var(--ink); }
.navpill--login:hover { background: rgba(251,251,252,0.85); transform: translateY(-1px); }
.navpill--cta {
  font-family: var(--display); font-weight: 500; font-size: 0.96rem;
  color: var(--ink); gap: 0.6em; cursor: pointer;
}
.navpill--cta .btn__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); transition: transform 0.5s var(--ease), background 0.35s; }
.navpill--cta:hover { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1px var(--ink), 0 18px 40px -18px rgba(22,24,28,0.5); transform: translateY(-1px); }
.navpill--cta:hover .btn__dot { background: #fff; transform: scale(1.5); }

/* intro: pills drift in, staggered */
.js .navpill { transform: translateY(-16px); opacity: 0; }
.nav--in .navpill { transform: none; opacity: 1; }
.nav--in .navpill--logo { transition-delay: 0.02s; }
.nav--in .navpill--menu { transition-delay: 0.10s; }
.nav--in .navpill--login { transition-delay: 0.15s; }
.nav--in .navpill--cta  { transition-delay: 0.18s; }

/* ---- mega-menu panels ---- */
.megawrap { position: absolute; top: calc(100% + 12px); left: 0; right: 0; display: flex; justify-content: center; pointer-events: none; }
.mega {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%) translateY(-10px) scale(0.97);
  transform-origin: top center;
  opacity: 0; visibility: hidden; pointer-events: none;
  background: rgba(252,252,253,0.88);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
  border-radius: 26px;
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 90px -36px rgba(22,24,28,0.45);
  padding: 20px;
  transition: opacity 0.36s var(--ease), transform 0.36s var(--ease), visibility 0.36s;
}
.mega.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0) scale(1); }

.mega__inner { display: block; }
.mega__inner--feature { display: grid; grid-template-columns: 210px 1fr; gap: 18px; width: 600px; max-width: 78vw; }
.mega__heading { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); display: block; padding: 6px 12px 12px; }

/* featured gradient tile */
.mega__feature {
  position: relative; overflow: hidden; border-radius: 18px;
  min-height: 210px; padding: 20px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.3em;
  box-shadow: inset 0 0 0 1px var(--line);
  background: var(--surface);
}
.mega__feature .ambient { z-index: 0; opacity: 0.9; }
.mega__feature .ambient__field { filter: blur(40px) saturate(130%); }
.mega__feature-label { position: relative; z-index: 1; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); }
.mega__feature-title { position: relative; z-index: 1; font-family: var(--display); font-weight: 500; font-size: 1.05rem; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); }
.mega__feature:hover .mega__feature-title { color: var(--signal); }

/* link grid */
.mega__links { padding-top: 4px; }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mega__grid a { display: flex; align-items: center; gap: 0.7em; padding: 11px 12px; border-radius: 12px; font-family: var(--display); font-weight: 500; font-size: 0.95rem; color: var(--ink-1); transition: background 0.25s, padding 0.25s; }
.mega__grid a:hover { background: rgba(22,24,28,0.05); }
.mega__grid .ic { flex: none; width: 18px; height: 18px; color: var(--signal); }
.mega__grid .ar { margin-left: auto; opacity: 0; transform: translateX(-4px); transition: opacity 0.25s, transform 0.25s; color: var(--ink-3); }
.mega__grid a:hover .ar { opacity: 1; transform: none; }

/* solutions: two rich cards */
.mega__inner--cards { width: 560px; max-width: 78vw; }
.mega__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.mega__card { display: flex; flex-direction: column; gap: 0.45em; padding: 18px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.mega__card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-card); }
.mega__card .ic { width: 22px; height: 22px; color: var(--signal); margin-bottom: 0.3em; }
.mega__card-title { font-family: var(--display); font-weight: 500; font-size: 1.12rem; letter-spacing: -0.015em; color: var(--ink); }
.mega__card-desc { font-size: 0.9rem; line-height: 1.45; color: var(--ink-2); }

/* page scrim when a menu is open */
.nav-scrim { position: fixed; inset: 0; z-index: 990; background: rgba(12,14,18,0.16); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s; }
body.nav-open .nav-scrim { opacity: 1; visibility: visible; }

/* responsive: collapse to logo + toggle */
@media (max-width: 900px) {
  .navpill--menu, .navpill--cta { display: none; }
  .nav__toggle.navpill { padding: 0; width: 56px; justify-content: center; flex-direction: column; gap: 5px; }
  .megawrap { display: none; }
}
@media (min-width: 901px) { .nav__toggle { display: none; } }

/* ======================================================================= */
/*  24. DIAGRAMS - enterprise-grade instrument visuals                     */
/* ======================================================================= */
.viz-svg text { font-family: var(--mono); }
/* let the diagram lead - dial the ambient/grid back behind it */
.cap__media[data-viz] .ambient { opacity: 0.30; }
.cap__media[data-viz]::after { opacity: 0.09; }
.cap__media[data-viz] { background: linear-gradient(180deg, var(--surface-2), var(--surface)); }

/* draw-in primitives - paused until the panel reveals (.is-in ancestor) */
.viz-draw { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: vizDraw 1.7s var(--ease-out) forwards; animation-play-state: paused; }
.viz-bar  { transform: scaleX(0); transform-box: fill-box; transform-origin: left center; animation: vizBar 1.1s var(--ease-out) forwards; animation-play-state: paused; }
.viz-pop  { transform: scale(0); transform-box: fill-box; transform-origin: center; opacity: 0; animation: vizPop 0.55s var(--ease) forwards; animation-play-state: paused; }
.viz-fade { opacity: 0; animation: vizFade 1.1s var(--ease-out) forwards; animation-play-state: paused; }
.viz-rise { transform: translateY(8px); opacity: 0; animation: vizRise 0.7s var(--ease-out) forwards; animation-play-state: paused; }
.is-in .viz-draw, .is-in .viz-bar, .is-in .viz-pop, .is-in .viz-fade, .is-in .viz-rise { animation-play-state: running; }

@keyframes vizDraw { to { stroke-dashoffset: 0; } }
@keyframes vizBar  { to { transform: scaleX(1); } }
@keyframes vizPop  { to { transform: scale(1); opacity: 1; } }
@keyframes vizFade { to { opacity: 1; } }
@keyframes vizRise { to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .viz-draw { stroke-dashoffset: 0; }
  .viz-bar { transform: scaleX(1); }
  .viz-pop { transform: scale(1); opacity: 1; }
  .viz-fade, .viz-rise { opacity: 1; transform: none; }
}

/* ======================================================================= */
/*  25. MOLECULAR SYSTEM - contained light card (faithful to product)      */
/* ======================================================================= */
.molecule__head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.molecule__head h2 { margin-block: 1.3rem 1rem; }
.molecule__head .lede { max-width: 60ch; margin-inline: auto; }

.molecule {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  background: radial-gradient(125% 120% at 50% 38%, #FCFDFE, #EAEEF1 78%, #E4E8EC);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-float);
  min-height: clamp(540px, 64vw, 780px);
}
.molecule__canvas-wrap { position: absolute; inset: 0; z-index: 0; }
#moleculeCanvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
#moleculeCanvas:active { cursor: grabbing; }
/* CSS2D label layer (renderer appends here) */
.molecule__canvas-wrap > div { position: absolute; inset: 0; pointer-events: none; }
.mol-label {
  font-family: var(--display); color: #0A1A16; white-space: nowrap;
  transform: translate(-50%, 0); letter-spacing: 0.005em; font-weight: 500;
}
.molecule__hint {
  position: absolute; bottom: 18px; right: 22px; z-index: 3;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); opacity: 0.7; pointer-events: none;
}
.molecule__legend {
  position: absolute; left: 22px; bottom: 18px; z-index: 3;
  display: flex; gap: 14px; flex-wrap: wrap; max-width: 70%;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); pointer-events: none;
}
.molecule__legend li { display: flex; align-items: center; gap: 0.45em; }
.molecule__legend span { width: 8px; height: 8px; border-radius: 50%; }
@media (max-width: 720px) { .molecule__hint { display: none; } .molecule__legend { font-size: 0.55rem; gap: 9px; } }

/* ======================================================================= */
/*  26. DUO - agency / enterprise full-bleed blocks                        */
/* ======================================================================= */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-inline: var(--gutter); }
.duo__card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: var(--radius-xl);
  min-height: clamp(520px, 78vh, 880px);
  padding: clamp(34px, 3.6vw, 64px);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-float);
  color: var(--dark-ink); text-decoration: none;
  transition: transform 0.7s var(--ease), box-shadow 0.6s var(--ease), opacity 0.9s var(--ease-out);
}
a.duo__card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line), 0 70px 130px -50px rgba(22,24,28,0.62); }
.duo__card--dark {
  background:
    radial-gradient(85% 65% at 74% 20%, rgba(87,255,235,0.32), transparent 60%),
    radial-gradient(75% 60% at 18% 92%, rgba(69,180,218,0.18), transparent 64%),
    linear-gradient(157deg, #161A21 0%, #0B0D11 82%);
}
.duo__card--deep {
  background:
    radial-gradient(85% 65% at 72% 22%, rgba(110,107,255,0.32), transparent 60%),
    radial-gradient(75% 60% at 16% 90%, rgba(78,123,196,0.20), transparent 64%),
    linear-gradient(157deg, #181626 0%, #0A0B10 82%);
}
.duo__card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(8,9,12,0.82) 0%, rgba(8,9,12,0.1) 52%, transparent 72%);
}
.duo__copy { position: relative; z-index: 3; max-width: 38ch; }
.duo__label {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: #8FA8FF; margin-bottom: 1.2rem;
}
.duo__label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }
.duo__copy h3 { color: #fff; letter-spacing: -0.02em; margin-bottom: 0.85rem; }
.duo__copy p { color: var(--dark-ink-2); font-size: 1.06rem; line-height: 1.55; margin-bottom: 1.6rem; max-width: 34ch; }
.duo__cta { display: inline-flex; align-items: center; gap: 0.55em; font-family: var(--display); font-weight: 500; font-size: 1.02rem; color: #fff; }
.duo__cta svg { transition: transform 0.4s var(--ease); }
a.duo__card:hover .duo__cta svg { transform: translateX(5px); }

@media (max-width: 840px) { .duo { grid-template-columns: 1fr; } .duo__card { min-height: clamp(440px, 62vh, 640px); } }


/* Data-use disclosure — states the purpose for which the app requests user
   data, which Google's OAuth branding verification checks on the home page.
   Duplicated from home.css because platform.html loads only this sheet. */
.foot__data {
  max-width: 1220px; margin-inline: auto;
  padding: 22px clamp(20px,3vw,40px) 0;
  border-top: 1px solid rgba(30,50,90,0.08);
}
.foot__data h4 {
  font-family: var(--display); font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.02em; color: var(--ink); margin: 0 0 8px;
}
.foot__data p {
  font-size: 0.84rem; line-height: 1.6; color: var(--ink-soft);
  max-width: 92ch; margin: 0 0 8px;
}
.foot__data a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
