/* ============================================================================
   aurora.css — Aurora experience theme (loaded AFTER styles.css)
   ----------------------------------------------------------------------------
   The site is already a variable-driven dark design system. This file:
     1. Re-themes every page to the Aurora palette by overriding design tokens.
     2. Switches the display face to Space Grotesk.
     3. Adds the Aurora experience layer: 3D hero canvas, custom cursor,
        magnetic buttons, gold accents, glow.
   It changes look + motion site-wide without touching page markup.
   ============================================================================ */

/* ---------- 1 · Aurora design tokens (override) ---------- */
:root{
  --navy-900:#040A14;
  --bg:#050C1A; --bg-alt:#0A1628; --bg-soft:#0A1424;
  --surface:#0F2040; --surface-2:#0A1628;
  --accent:#f47f4c; --accent-600:#f7926a; --accent-700:#fbab8e;
  --blue:#00D4FF; --gold:#FFB800;
  --ink:#F0F4FF; --slate:#8BA4C4; --slate-300:#8194B0;
  --line:#15294A; --line-2:rgba(26,48,80,.55);
  /* FINDING-003 — was #6E86A6 (~4.4:1); lift to clear WCAG AA on dark surfaces */
  --display:'Space Grotesk',-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  --radius:16px; --radius-sm:10px; --radius-lg:20px;
  --ring:0 0 0 4px rgba(0,212,255,.28);
  --shadow-lg:0 30px 80px rgba(0,0,0,.6);
  --glow-orange:rgba(244,127,76,.15); --glow-blue:rgba(0,212,255,.12); --glow-gold:rgba(255,184,0,.12);
  --ez:cubic-bezier(.16,1,.3,1);
}

/* ---------- 2 · Accent re-mapping ---------- */
.eyebrow{color:var(--gold)}
.eyebrow::before{background:var(--gold);box-shadow:0 0 12px var(--gold)}
.eyebrow--light{color:#FFD46B}
.grad{background:linear-gradient(96deg,var(--blue),#7FE9FF 48%,var(--gold));-webkit-background-clip:text;background-clip:text;color:transparent}
.btn-primary{background:linear-gradient(180deg,#f7926a,var(--accent));color:#190A02;box-shadow:0 8px 28px var(--glow-orange)}
.btn-primary:hover{filter:brightness(1.07);box-shadow:0 14px 44px rgba(244,127,76,.34)}
a:not(.btn):not(.brand):not(.drop-item):not(.card-link):hover{color:var(--blue)}
.card-link,.more{color:var(--blue)}
.stat .num span{color:var(--gold)}
.mq-item{color:#3E5C7E}.mq-dot{background:var(--blue);opacity:.55}
.whynow-list .n{background:linear-gradient(150deg,var(--gold),var(--accent));color:#190A02}
.cred,.office{border-color:var(--line)}
.tag,.ptag,.kicker{color:var(--gold)}

/* scroll progress (injected by main.js) → Aurora gradient */
.scroll-progress{background:linear-gradient(90deg,var(--gold),var(--blue),var(--accent)) !important}

/* tasteful glow on key surfaces */
.whynow-card,.case--feature,.cta-band{box-shadow:0 24px 70px rgba(0,0,0,.5)}
.btn-outline:hover{border-color:var(--blue);color:var(--blue);background:var(--glow-blue)}

/* ---------- 3 · Hero: 3D particle scene over a dimmed topical image ---------- */
.hero, .page-hero{position:relative}
.hero-mesh{display:none !important}              /* 2D mesh replaced by the Aurora 3D sphere */
.aurora-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;opacity:0;transition:opacity 1.1s ease}
.aurora-canvas.in{opacity:1}
.hero > .container, .page-hero > .container{position:relative;z-index:3}
.page-hero .ph-bg{opacity:.16;filter:saturate(.65) brightness(.55);z-index:0}
.hero .hero-bg{opacity:.32;filter:saturate(.7) brightness(.6)}
.hero::after, .page-hero::after{
  content:"";position:absolute;inset:0;z-index:2;pointer-events:none;
  background:radial-gradient(58% 55% at 28% 16%,var(--glow-blue),transparent 70%),
             radial-gradient(48% 48% at 82% 92%,var(--glow-gold),transparent 70%);
}

/* ---------- 4 · Custom cursor (fine pointers, motion allowed) ---------- */
.cur-dot,.cur-ring{position:fixed;top:0;left:0;border-radius:50%;pointer-events:none;z-index:4000;opacity:0;transition:opacity .3s;mix-blend-mode:screen;will-change:transform}
.cur-dot{width:6px;height:6px;background:var(--gold);margin:-3px 0 0 -3px}
.cur-ring{width:34px;height:34px;border:1px solid rgba(0,212,255,.7);margin:-17px 0 0 -17px;transition:width .25s cubic-bezier(.16,1,.3,1),height .25s cubic-bezier(.16,1,.3,1),border-color .25s,opacity .3s,margin .25s cubic-bezier(.16,1,.3,1)}
.cur-ring.hot{width:54px;height:54px;margin:-27px 0 0 -27px;border-color:var(--gold)}
html.aurora-cursor, html.aurora-cursor *{cursor:none !important}
html.aurora-cursor .cur-dot, html.aurora-cursor .cur-ring{opacity:1}

/* magnetic buttons need a transform hint */
.btn-primary,.btn-outline,.btn-lg{will-change:transform}

@media (prefers-reduced-motion: reduce){
  .aurora-canvas{display:none}
  .cur-dot,.cur-ring{display:none}
  html.aurora-cursor, html.aurora-cursor *{cursor:auto !important}
}

/* ============================================================================
   5 · v3 section treatments — bento deliverables, vertical timeline, pipeline
   ============================================================================ */

/* ---- Bento "What's included" ---- */
.svc-bento{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:14px}
.svc-tile{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px;display:flex;align-items:center;gap:14px;transition:transform .3s var(--ease,cubic-bezier(.16,1,.3,1)),border-color .3s,box-shadow .3s}
.svc-tile:hover{transform:translateY(-4px);border-color:var(--accent);box-shadow:0 16px 50px var(--glow-orange)}
.svc-tile .svc-ico{flex:none;width:40px;height:40px;border-radius:11px;background:var(--glow-blue);border:1px solid rgba(0,212,255,.25);display:grid;place-items:center;color:var(--blue)}
.svc-tile .svc-ico svg{width:20px;height:20px}
.svc-tile h3{font-size:1.04rem;margin:0;font-weight:600;line-height:1.3}
.svc-tile--feature{grid-column:span 2;background:linear-gradient(160deg,var(--surface),var(--surface-2))}
.svc-tile--feature .svc-ico{width:48px;height:48px;background:var(--glow-orange);border-color:rgba(244,127,76,.3);color:var(--accent)}
.svc-tile--feature .svc-ico svg{width:24px;height:24px}
.svc-tile--feature h3{font-size:1.34rem}
@media(max-width:900px){.svc-bento{grid-template-columns:repeat(2,1fr)}.svc-tile--feature{grid-column:span 2}}
@media(max-width:600px){.svc-bento{grid-template-columns:1fr}.svc-tile--feature{grid-column:span 1}}

/* ---- Vertical alternating timeline "How we work" ---- */
.vtl{position:relative;max-width:880px;margin:24px auto 0;padding-block:6px}
.vline{position:absolute;left:50%;top:0;bottom:0;width:2px;transform:translateX(-50%);background:var(--line);overflow:hidden}
.vline .vfill{position:absolute;left:0;right:0;top:0;height:100%;transform:scaleY(1);transform-origin:50% 0;background:linear-gradient(180deg,var(--gold),var(--blue),var(--accent))}
.vstep{position:relative;display:grid;grid-template-columns:1fr 64px 1fr;align-items:center;margin-block:16px}
.vstep .vcard{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px 24px}
.vstep .vcard .vn{font-family:var(--mono);font-size:.72rem;font-weight:600;letter-spacing:.14em;color:var(--gold);text-transform:uppercase}
.vstep .vcard h3{font-size:1.12rem;margin:8px 0 6px}
.vstep .vcard p{color:var(--slate);font-size:.94rem;margin:0}
.vstep .vdot{justify-self:center;width:16px;height:16px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 5px var(--bg),0 0 16px var(--gold);z-index:2;grid-column:2}
.vstep:nth-child(odd) .vcard{grid-column:3}
.vstep:nth-child(even) .vcard{grid-column:1}
.vstep:nth-child(odd) .vspacer{grid-column:1}
.vstep:nth-child(even) .vspacer{grid-column:3}
@media(max-width:760px){
  .vline{left:9px}
  .vstep{grid-template-columns:30px 1fr;gap:6px}
  .vstep .vdot{grid-column:1;justify-self:start}
  .vstep .vspacer{display:none}
  .vstep:nth-child(odd) .vcard,.vstep:nth-child(even) .vcard{grid-column:2}
}

/* ---- Migration pipeline (Google Workspace) ---- */
.pipeline{margin-top:18px}
.pipeline svg{width:100%;height:auto;overflow:visible}
.pipe-base{stroke:var(--line);stroke-width:1.4;fill:none}
.pipe-flow{stroke:var(--blue);stroke-width:1.8;fill:none;stroke-dasharray:5 11;stroke-linecap:round;filter:drop-shadow(0 0 4px rgba(0,212,255,.6));animation:pipeflow 1.6s linear infinite}
@keyframes pipeflow{to{stroke-dashoffset:-32}}
.pipe-node{fill:var(--surface);stroke:var(--line);stroke-width:1.2}
.pipe-node.src{stroke:rgba(139,164,196,.4)}
.pipe-hub{fill:var(--surface-2);stroke:rgba(244,127,76,.55);stroke-width:1.4}
.pipe-label{font-family:var(--mono);font-size:12px;fill:var(--slate);text-anchor:middle}
.pipe-hub-label{font-family:var(--display);font-weight:600;font-size:15px;fill:#fff;text-anchor:middle}
.pipe-hub-sub{font-family:var(--mono);font-size:10px;fill:var(--gold);text-anchor:middle;letter-spacing:.06em}
.pipe-cap{font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;fill:var(--slate);text-anchor:middle}
@media(max-width:760px){.pipe-label,.pipe-cap{display:none}}
@media (prefers-reduced-motion: reduce){.pipe-flow{animation:none;stroke-dasharray:none}}

/* ============================================================================
   6 · CRAFT LAYER — design-system depth
   Typographic scale · spacing rhythm · surface elevation · component states ·
   AA focus · nav / form / scrollbar polish. Refines every page at once.
   ============================================================================ */

/* ---- 6.1 Typography: fluid modular scale, tuned for Space Grotesk ---- */
body{font-size:16.5px;line-height:1.7;font-feature-settings:"kern" 1,"liga" 1,"ss01" 1,"cv05" 1}
h1,h2,h3,h4{text-wrap:balance;font-weight:600}
p,li,.lead,.dek{text-wrap:pretty}
.hero h1,.page-hero h1{font-weight:700;letter-spacing:-.032em;line-height:1.03}
.hero h1{font-size:clamp(2.7rem,1.4rem+3.7vw,4.55rem)}
.page-hero h1{font-size:clamp(2.25rem,1.5rem+2.5vw,3.5rem)}
.section-head h2,.two-col h2,.mr-text h2,.backed h2,.whynow h2,.cta-inner h2,.partner h2{
  font-size:clamp(1.85rem,1.2rem+2.05vw,2.8rem);font-weight:600;letter-spacing:-.025em;line-height:1.1;margin-bottom:.38em}
h3{letter-spacing:-.012em}
.lead{font-size:clamp(1.05rem,.97rem+.45vw,1.22rem);line-height:1.62;color:var(--slate);max-width:64ch}
.dek{font-size:clamp(1.1rem,1rem+.6vw,1.35rem);color:var(--slate);line-height:1.5;max-width:60ch}
.eyebrow{font-size:.72rem;letter-spacing:.2em;margin-bottom:18px}
.prose p,.prose li{font-size:1.06rem;line-height:1.75;color:#C7D4E6}
.prose h2{font-size:clamp(1.4rem,1.1rem+1vw,1.85rem);margin:1.7em 0 .5em}
/* FINDING-001 — card/prop/step titles were ~17px (≈ body); lift for hierarchy */
.prop h3,.step h3,.mini h3,.post h3{font-size:1.2rem;letter-spacing:-.013em;line-height:1.3;font-weight:600;margin-bottom:7px}
.svc-tile h3{font-size:1.1rem}
.gp .gp-name{font-size:1.06rem}

/* ---- 6.2 Spacing rhythm ---- */
.section{padding-block:clamp(74px,7.6vw,118px)}
.section-head{margin-bottom:clamp(38px,4vw,62px);max-width:760px}
.section-head.center{margin-inline:auto}
.container{padding-inline:clamp(20px,4vw,32px)}
.page-hero{padding:clamp(118px,12vw,168px) 0 clamp(56px,6vw,84px)}

/* ---- 6.3 Surface elevation — layered, not flat ---- */
.card,.mini,.prop,.post,.gp,.svc-tile,.vstep .vcard,.impact-box,.member,.case,.contact-info,.form,.whynow-card,.dropdown-inner,.metric,.article-metrics{
  background-image:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,0) 42%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 1px 2px rgba(0,0,0,.35);
}
.card,.mini,.prop,.post,.gp,.svc-tile{transition:transform .38s var(--ez),border-color .38s var(--ez),box-shadow .38s var(--ez)}
.card:hover,.mini:hover,.prop:hover,.post:hover,.gp:hover{
  transform:translateY(-5px);border-color:rgba(0,212,255,.42);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 26px 64px rgba(0,0,0,.55), 0 0 40px var(--glow-blue);
}
.svc-tile:hover{box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 22px 56px var(--glow-orange)}
.case--feature,.whynow-card{box-shadow:inset 0 1px 0 rgba(255,255,255,.07),var(--shadow-lg)}

/* ---- 6.4 Hairline seams + dividers ---- */
.section--alt,.section--soft{border-color:rgba(255,255,255,.055)}
.stat-band{border-color:rgba(255,255,255,.055)}

/* ---- 6.5 Buttons — refined states ---- */
.btn{border-radius:11px;font-weight:600;letter-spacing:.004em;transition:transform .25s var(--ez),box-shadow .25s var(--ez),filter .2s,background .25s,border-color .25s}
.btn-primary{background:linear-gradient(180deg,#fbab8e,var(--accent))}
.btn-primary:active,.btn-outline:active,.btn-ghost:active{transform:translateY(1px) scale(.995)}
.btn-outline,.btn-ghost{backdrop-filter:saturate(150%) blur(6px);-webkit-backdrop-filter:saturate(150%) blur(6px)}

/* ---- 6.6 Links — animated underline on inline + card links ---- */
.card-link,.more,.article-foot a{position:relative;display:inline-flex;align-items:center;gap:.4em}
.card-link::after,.more::after{content:"";position:absolute;left:0;bottom:-2px;height:1px;width:0;background:currentColor;transition:width .3s var(--ez)}
.card:hover .card-link::after,.mini:hover .more::after,.card-link:hover::after,.more:hover::after{width:100%}

/* ---- 6.7 Focus-visible (WCAG AA) ---- */
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,.btn:focus-visible{
  outline:2px solid var(--blue);outline-offset:3px;box-shadow:0 0 0 4px rgba(0,212,255,.18);border-radius:8px}

/* ---- 6.8 Header + dropdown polish ---- */
.site-header{transition:background .3s var(--ez),box-shadow .3s var(--ez),border-color .3s var(--ez)}
.site-header.scrolled{background:rgba(7,14,28,.82);box-shadow:0 1px 0 rgba(255,255,255,.04),0 18px 50px rgba(0,0,0,.45)}
.dropdown-inner{background-color:var(--surface);border:1px solid var(--line);border-radius:18px;padding:12px;
  box-shadow:0 30px 80px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.07)}
.drop-item{border-radius:12px;transition:background .18s var(--ez),transform .18s var(--ez)}
.drop-item:hover{background:rgba(0,212,255,.08);transform:translateX(2px)}
.di-title{font-weight:600}
.dropdown--mega .dropdown-inner{gap:4px}

/* ---- 6.9 Form fields ---- */
.field label{font-size:.82rem;color:var(--slate);font-weight:500;letter-spacing:.01em}
.field input,.field select,.field textarea{
  background:rgba(255,255,255,.035);border:1px solid var(--line);border-radius:11px;color:var(--ink);
  transition:border-color .2s var(--ez),box-shadow .2s var(--ez),background .2s}
/* Render the native <select> dropdown in dark scheme so its options match the dark
   form (light text on a dark popup) instead of inheriting light text onto a white popup. */
.field select{color-scheme:dark}
.field select option{background:#0f1a30;color:#eaf0fa}
.field input::placeholder,.field textarea::placeholder{color:var(--slate-300)}
.field input:focus,.field select:focus,.field textarea:focus{
  border-color:var(--blue);background:rgba(0,212,255,.04);box-shadow:0 0 0 3px rgba(0,212,255,.16);outline:none}

/* ---- 6.10 Scrollbar + selection + media polish ---- */
*{scrollbar-width:thin;scrollbar-color:#1c3556 transparent}
::-webkit-scrollbar{width:11px;height:11px}
::-webkit-scrollbar-thumb{background:#16304f;border-radius:10px;border:3px solid var(--bg)}
::-webkit-scrollbar-thumb:hover{background:#1f4a74}
::selection{background:rgba(244,127,76,.85);color:#0a0500}
.mini-media img,.card-media img,.mr-media img,.thumb img,.reel-track img{transition:transform .6s var(--ez),filter .6s var(--ez)}
.mini:hover .mini-media img,.card:hover .card-media img,.post:hover .thumb img{transform:scale(1.05)}

/* ---- 6.11 Eyebrow underline accent on section heads ---- */
.section-head .eyebrow,.two-col .eyebrow{position:relative}

/* ---- 6.12 Stat band rhythm ---- */
.stat .label{color:var(--slate);letter-spacing:.01em}
.stat-note{color:var(--slate-300)}

/* ---- 6.13 FINDING-002 — mobile tap targets (≥44px) ---- */
@media(max-width:760px){
  .footer-top ul a{display:block;padding:9px 0}
  .footer-legal a{display:inline-block;padding:8px 10px}
  .card-link,.more,.article-foot a,.crumb a{display:inline-block;padding-block:7px}
  .nav-links a.nav-top{padding-block:8px}
}

/* ============================================================================
   7 · ART DIRECTION — cohesive image grade, brand tint, film grain
   Unifies stock-temperature photos into one authored Aurora look so imagery
   reads designed, not sourced. (FINDING-004)
   ============================================================================ */
.ph-bg,.hero-bg,.card-media img,.thumb img,.mr-media img,.reel-track img{
  filter:saturate(.72) contrast(1.07) brightness(.9);
}
.mini-media{position:relative;overflow:hidden}
/* cool brand wash over every media surface (cyan top-light → navy floor) */
.card-media::before,.thumb::before,.mr-media::before,.mini-media::before,.case-media::before{
  content:"";position:absolute;inset:0;z-index:2;pointer-events:none;
  background:linear-gradient(158deg,rgba(0,150,210,.14),transparent 52%,rgba(5,12,26,.30));
}
/* hero imagery: deeper grade so the 3D sphere + text read as foreground */
.page-hero .ph-bg,.hero .hero-bg{filter:saturate(.6) contrast(1.08) brightness(.62)}

/* film grain — one fixed texture layer for filmic cohesion */
body::after{
  content:"";position:fixed;inset:0;z-index:3000;pointer-events:none;opacity:.04;mix-blend-mode:overlay;
  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.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size:180px 180px;
}
@media (prefers-reduced-motion: reduce){
  .ph-bg,.hero-bg,.card-media img,.thumb img,.mr-media img,.reel-track img{filter:saturate(.82)}
}

/* ============================================================================
   8 · MOTION CHOREOGRAPHY — staggered reveal cascade (FINDING-005)
   Sections no longer fade as one block: the container fades up, then its
   cards/tiles rise in sequence using the --i index main.js already sets.
   ============================================================================ */
.reveal{transform:translateY(26px);transition:opacity .75s var(--ez),transform .75s var(--ez)}
.reveal.in{transform:none}
/* key the hidden state off .reveal (the class main.js ADDS), not [data-reveal]
   (a static attribute) — so with JS disabled the cards stay visible. */
.reveal .card,.reveal .mini,.reveal .prop,.reveal .post,
.reveal .gp,.reveal .member,.reveal .step{
  opacity:0;transform:translateY(24px);
  transition:opacity .66s var(--ez),transform .66s var(--ez);
  transition-delay:calc(var(--i,0)*65ms);
}
.reveal.in .card,.reveal.in .mini,.reveal.in .prop,.reveal.in .post,
.reveal.in .gp,.reveal.in .member,.reveal.in .step{opacity:1;transform:none}
@media (prefers-reduced-motion: reduce){
  .reveal,.reveal .card,.reveal .mini,.reveal .prop,.reveal .post,
  .reveal .gp,.reveal .member,.reveal .step{
    opacity:1 !important;transform:none !important;transition:none !important;
  }
}

/* ============================================================================
   9 · SIGNATURE COMPONENTS — editorial asymmetric grids (FINDING-006)
   Replaces uniform card grids on the service hubs + home with feature-led,
   asymmetric compositions so the category pages read designed, not templated.
   ============================================================================ */
/* Agentic: 4-col grid, lead card spans 2 (7 cards → row1: feature+2, row2: 4) */
.ed-bento{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.ed-bento .mini{display:flex;flex-direction:column}
.ed-bento .mini .mini-media{margin:-24px -22px 16px}
.ed-bento .mini:first-child{grid-column:span 2;background:linear-gradient(155deg,var(--surface),var(--surface-2))}
.ed-bento .mini:first-child h3{font-size:1.5rem;letter-spacing:-.018em;color:#fff}
.ed-bento .mini:first-child p{font-size:1.02rem;color:#C7D4E6;max-width:54ch}
.ed-bento .mini:first-child .mini-media{min-height:172px}
.ed-bento .mini:first-child .more{margin-top:auto;padding-top:14px}
@media(max-width:900px){.ed-bento{grid-template-columns:repeat(2,1fr)}.ed-bento .mini:first-child{grid-column:span 2}}
@media(max-width:560px){.ed-bento{grid-template-columns:1fr}.ed-bento .mini:first-child{grid-column:span 1}}

/* Core: full-width lead banner card + two beneath */
.ed-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.ed-cards .card:first-child{grid-column:1 / -1}
.ed-cards .card:first-child .card-media{height:230px}
.ed-cards .card:first-child h3{font-size:1.5rem;letter-spacing:-.018em}
.ed-cards .card:first-child p{font-size:1.02rem;color:#C7D4E6;max-width:72ch}
@media(max-width:760px){
  .ed-cards{grid-template-columns:1fr}
  .ed-cards .card:first-child{grid-column:1}
  .ed-cards .card:first-child .card-media{height:160px}
}

/* ============================================================================
   10 · BESPOKE HERO MOTIFS — one topical, code-generated visual per service
   Replaces the identical 3D sphere on inner pages. Two-column hero (text +
   motif) reads distinct from the homepage's centered 3D hero. (FINDING-007)
   ============================================================================ */
/* two-column motif hero (service + hub pages) */
.page-hero .ph-grid{display:grid;grid-template-columns:1.06fr .94fr;gap:clamp(30px,5vw,60px);align-items:center}
.page-hero .ph-motif{position:relative;z-index:3}
.page-hero .ph-motif svg{width:100%;height:auto;overflow:visible;display:block}
@media(max-width:860px){
  .page-hero .ph-grid{grid-template-columns:1fr;gap:34px}
  .page-hero .ph-motif{max-width:520px;margin-inline:auto}
}
@media(max-width:560px){.page-hero .ph-motif{display:none}}  /* keep mobile hero lean */

/* shared motif primitives — one visual DNA across every motif */
.m-link{stroke:var(--line);stroke-width:1.4;fill:none}
.m-flow{stroke:var(--blue);stroke-width:1.8;fill:none;stroke-dasharray:5 10;stroke-linecap:round;filter:drop-shadow(0 0 4px rgba(0,212,255,.55));animation:m-flow 1.6s linear infinite}
@keyframes m-flow{to{stroke-dashoffset:-30}}
.m-flow--gold{stroke:var(--gold);filter:drop-shadow(0 0 4px rgba(255,184,0,.5))}
.m-node{fill:var(--surface);stroke:var(--line);stroke-width:1.2}
.m-node--soft{fill:var(--bg-alt);stroke:rgba(139,164,196,.38)}
.m-hub{fill:var(--surface-2);stroke:rgba(244,127,76,.6);stroke-width:1.5}
.m-glyph{fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.m-label{font-family:var(--mono);font-size:12px;fill:var(--slate);text-anchor:middle}
.m-cap{font-family:var(--mono);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;fill:var(--slate-300);text-anchor:middle}
.m-title{font-family:var(--display);font-weight:600;font-size:14px;fill:#fff;text-anchor:middle}
.m-sub{font-family:var(--mono);font-size:9.5px;letter-spacing:.06em;fill:var(--gold);text-anchor:middle}
.m-halo{animation:m-breathe 3.6s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:center}
@keyframes m-breathe{from{opacity:.45;transform:scale(.92)}to{opacity:.85;transform:scale(1.05)}}
.m-dot{animation:m-pulse 2.4s ease-in-out infinite}
.m-dot:nth-of-type(3n){animation-delay:.5s}.m-dot:nth-of-type(3n+1){animation-delay:1s}
@keyframes m-pulse{0%,100%{opacity:.45}50%{opacity:1}}
.m-bar{fill:var(--blue);transform-box:fill-box;transform-origin:50% 100%;animation:m-grow 1.1s var(--ez) both}
.m-bar:nth-of-type(2){animation-delay:.12s}.m-bar:nth-of-type(3){animation-delay:.24s}
.m-bar:nth-of-type(4){animation-delay:.36s}.m-bar:nth-of-type(5){animation-delay:.48s}
@keyframes m-grow{from{transform:scaleY(0)}to{transform:scaleY(1)}}
.m-draw{animation:m-draw 1.8s var(--ez) forwards}
@keyframes m-draw{to{stroke-dashoffset:0}}
.m-orbit{fill:none;stroke:rgba(139,164,196,.22);stroke-width:1;stroke-dasharray:2 8}
.m-plate{fill:rgba(16,26,46,.78);stroke:rgba(139,164,196,.34);stroke-width:1.2}
.m-tag{font-family:var(--mono);font-size:10px;letter-spacing:.12em;fill:var(--slate);text-anchor:start}
.m-traveler{fill:var(--blue);filter:drop-shadow(0 0 6px rgba(0,212,255,.9))}
.m-traveler--gold{fill:var(--gold);filter:drop-shadow(0 0 6px rgba(255,184,0,.85))}
@media(prefers-reduced-motion:reduce){
  .m-flow{animation:none;stroke-dasharray:none}
  .m-bar,.m-dot,.m-halo{animation:none}
  .m-draw{animation:none;stroke-dashoffset:0}
  .m-traveler,.m-traveler--gold{display:none}
}
