/* Shared design system for the /platform section (main page + 5 layer sub-pages).
   Same tokens, nav, footer, and buttons as the homepage — kept in one file here
   because this section spans six pages that get edited together. */

:root{
  --bg-rgb:250,250,248;
  --text-rgb:10,10,10;
  --bg:rgb(var(--bg-rgb));
  --text:rgb(var(--text-rgb));
  --text-dim:rgba(var(--text-rgb),0.64);
  --text-dimmer:rgba(var(--text-rgb),0.42);
  --border:rgba(var(--text-rgb),0.14);
  --elevated:rgba(var(--text-rgb),0.035);
  --invert-bg:var(--text);
  --invert-text:var(--bg);
}
:root[data-theme="dark"]{
  --bg-rgb:10,10,10;
  --text-rgb:250,250,248;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--text);font-family:'Inter',sans-serif;font-size:16px;line-height:1.6;overflow-x:hidden;transition:background .25s ease,color .25s ease}
img{max-width:100%}
.sec-inner{max-width:1400px;margin:0 auto;padding:0 48px}
.sec-eyebrow{font-family:'Inter',sans-serif;font-size:12px;font-weight:700;letter-spacing:0.14em;text-transform:uppercase;color:var(--text-dim);margin-bottom:18px;display:block}
.sec-title{font-family:'Inter',sans-serif;font-weight:400;font-size:clamp(28px,3.6vw,42px);letter-spacing:-0.02em;line-height:1.25}
.sec-desc{font-size:18px;color:var(--text-dim);max-width:620px;margin-top:18px;font-weight:400;line-height:1.65}
section.pad{padding:110px 0}
@media(max-width:768px){section.pad{padding:72px 0}.sec-inner{padding:0 24px}}

/* Several entrance styles, picked per-section instead of one generic
   fade-up everywhere. Same [data-reveal] attribute/JS trigger; the value
   picks which CSS transform runs — kept identical to the homepage's set
   in index.html so both pages read as one system. */
[data-reveal]{opacity:0;transform:translateY(26px);transition:opacity .7s ease, transform .7s ease}
[data-reveal].is-visible{opacity:1;transform:translateY(0)}
[data-reveal="dissolve"]{opacity:0;transform:scale(.94);transition:opacity .8s ease, transform .8s ease}
[data-reveal="dissolve"].is-visible{opacity:1;transform:scale(1)}
[data-reveal="slide-left"]{opacity:0;transform:translateX(-64px);transition:opacity .75s ease, transform .75s cubic-bezier(.16,.8,.24,1)}
[data-reveal="slide-left"].is-visible{opacity:1;transform:translateX(0)}
[data-reveal="slide-right"]{opacity:0;transform:translateX(64px);transition:opacity .75s ease, transform .75s cubic-bezier(.16,.8,.24,1)}
[data-reveal="slide-right"].is-visible{opacity:1;transform:translateX(0)}
[data-reveal="zoom"]{opacity:0;transform:scale(.86);transition:opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1)}
[data-reveal="zoom"].is-visible{opacity:1;transform:scale(1)}
[data-reveal-delay="1"]{transition-delay:.1s}
[data-reveal-delay="2"]{transition-delay:.2s}
[data-reveal-delay="3"]{transition-delay:.3s}
[data-reveal-delay="4"]{transition-delay:.4s}
@media(prefers-reduced-motion:reduce){[data-reveal]{transition:none}}

.btn-primary{display:inline-flex;align-items:center;gap:8px;background:var(--invert-bg);color:var(--invert-text);padding:16px 32px;font-size:15px;font-weight:600;text-decoration:none;letter-spacing:0.01em;border-radius:6px;border:1px solid var(--invert-bg);transition:opacity .2s, transform .05s}
.btn-primary:hover{opacity:0.82}
.btn-primary.large{padding:19px 40px;font-size:16px}
.btn-ghost{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--border);color:var(--text-dim);padding:15px 30px;font-size:15px;font-weight:500;text-decoration:none;border-radius:6px;transition:border-color .2s, color .2s}
.btn-ghost:hover{border-color:var(--text);color:var(--text)}

/* ── NAV ── */
nav{position:fixed;top:0;left:0;right:0;z-index:200;padding:20px 40px;display:flex;align-items:center;justify-content:space-between;gap:24px;background:rgba(var(--bg-rgb),0.7);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--border);transition:background .3s ease, box-shadow .3s ease, padding .3s ease}
nav.nav-scrolled{background:rgba(var(--bg-rgb),0.94);box-shadow:0 1px 24px rgba(var(--text-rgb),0.06);padding:14px 40px}
.nav-logo{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text)}
.nav-logo svg{width:30px;height:30px;flex-shrink:0;color:var(--text)}
.logo-text{font-family:'Inter',sans-serif;font-size:19px;color:var(--text);font-weight:500;letter-spacing:-0.01em}
.nav-links{display:flex;gap:36px;align-items:center;margin-left:auto}
.nav-links>a,.nav-item>a{font-family:'Inter',sans-serif;font-size:15px;font-weight:500;color:var(--text-dim);text-decoration:none;transition:color .2s}
.nav-links>a:hover,.nav-item>a:hover{color:var(--text)}
.nav-links>a.is-current,.nav-item>a.is-current{color:var(--text)}
.nav-cta{background:var(--invert-bg);color:var(--invert-text)!important;padding:11px 22px;font-size:14px;font-weight:600;text-decoration:none;letter-spacing:0.01em;border-radius:6px;transition:opacity .2s}
.nav-cta:hover{opacity:0.82}
.nav-right{display:flex;align-items:center;gap:22px}
.theme-toggle{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:999px;border:1px solid var(--border);background:transparent;color:var(--text);cursor:pointer;transition:border-color .2s}
.theme-toggle:hover{border-color:var(--text)}
.theme-toggle svg{width:17px;height:17px}
.theme-toggle .icon-moon{display:none}
:root[data-theme="dark"] .theme-toggle .icon-sun{display:none}
:root[data-theme="dark"] .theme-toggle .icon-moon{display:block}
.menu-toggle{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer}
.menu-toggle span{width:22px;height:2px;background:var(--text);border-radius:2px}
@media(max-width:768px){
  nav,nav.nav-scrolled{padding:16px 24px}
  .menu-toggle{display:flex}
  .nav-links{display:none;position:absolute;top:100%;left:0;width:100%;flex-direction:column;align-items:flex-start;gap:18px;background:var(--bg);border-bottom:1px solid var(--border);padding:28px 24px}
  .nav-links.active{display:flex}
}

/* ── Nav dropdown (e.g. Company → About Us / Careers / Contact Us) ── */
.nav-item{position:relative}
.nav-item>a{display:inline-flex;align-items:center;gap:5px}
.nav-item>a::after{content:'';width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid currentColor;opacity:0.5;margin-top:2px}
.nav-dropdown{display:none;position:absolute;top:100%;right:0;padding-top:14px;z-index:10}
.nav-item:hover .nav-dropdown{display:block}
.nav-dropdown-panel{background:var(--bg);border:1px solid var(--border);border-radius:10px;padding:8px;min-width:180px;box-shadow:0 12px 30px rgba(0,0,0,0.12)}
.nav-dropdown a{display:block;padding:9px 14px;font-size:14px;color:var(--text-dim);text-decoration:none;border-radius:6px;white-space:nowrap;transition:background .15s,color .15s}
.nav-dropdown a:hover{background:var(--elevated);color:var(--text)}

/* Wide variant — a two-group mega-menu (e.g. Solutions → Infrastructure
   Layers / Modalities), used when a dropdown needs more than one column
   of longer labels instead of a short single-column list. */
.nav-dropdown-panel.wide{display:grid;grid-template-columns:repeat(3,max-content);gap:8px 36px;padding:14px}
.nav-dropdown-panel.wide a{white-space:normal;line-height:1.4}
.nav-dropdown-group-label{font-size:11px;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;color:var(--text-dimmer);padding:8px 14px 6px}
@media(max-width:768px){
  .nav-item>a::after{display:none}
  .nav-dropdown{position:static;padding-top:2px;display:block}
  .nav-dropdown-panel{border:none;box-shadow:none;padding:0 0 0 14px;background:none;min-width:0}
  .nav-dropdown-panel.wide{display:block;min-width:0;padding:0 0 0 14px}
}

/* ── Inverted section utility — theme-flipping dark/light panel, used for
   heroes and any section that wants the same dramatic contrast treatment ── */
.invert-section{background-color:var(--invert-bg);color:var(--invert-text)}
.invert-section .sec-eyebrow{color:rgba(var(--bg-rgb),0.55)}
.invert-section .sec-title{color:var(--invert-text)}
.invert-section .sec-desc{color:rgba(var(--bg-rgb),0.68)}
.invert-section .btn-primary{background:var(--invert-text);color:var(--invert-bg);border-color:var(--invert-text)}
.invert-dots{background-image:radial-gradient(rgba(var(--bg-rgb),0.1) 1.3px,transparent 1.3px);background-size:11px 11px}

/* ── Scroll-driven sticky diagram + text — shared structural pattern.
   .layer-scroll is a tall container; .layer-sticky pins to the viewport
   while it scrolls past. Used by the platform page's Five Layers section
   (pentagon dot-sphere) and the Label page's AI Engines section (basketball
   sphere → rotating task ring) — same mechanics, different canvas content
   and slide data, driven by initLayerScroll/initEngineScroll respectively
   in platform-motion.js. Desktop only (≥900px); .layer-mobile below is the
   stacked-list fallback. */
.layer-scroll{position:relative;height:620vh;margin-top:40px}
#governScroll{height:860vh}
.layer-sticky{position:sticky;top:88px;height:calc(100vh - 88px);display:flex;align-items:center;overflow:hidden}
.layer-sticky-inner{display:grid;grid-template-columns:0.8fr 1.2fr;gap:60px;align-items:center;width:100%}

.layer-badge{display:inline-flex;align-items:center;gap:9px;font-size:13px;font-weight:700;letter-spacing:0.06em;color:var(--text-dim);border:1px solid var(--border);padding:8px 15px;border-radius:20px;opacity:0;transform:translateY(8px);transition:opacity .4s ease,transform .4s ease;margin-bottom:26px}
.layer-badge.is-visible{opacity:1;transform:translateY(0)}
.layer-badge-dot{width:6px;height:6px;border-radius:50%;background:var(--text)}

.layer-slide-tagline{font-size:14px;font-weight:700;letter-spacing:0.06em;text-transform:uppercase;color:var(--text-dim);margin-bottom:12px;min-height:17px}
.layer-slide-heading{font-family:'Inter',sans-serif;font-weight:400;font-size:clamp(34px,4vw,52px);letter-spacing:-0.02em;line-height:1.1;color:var(--text)}
.layer-slide-desc{font-size:18px;color:var(--text-dim);line-height:1.75;margin-top:22px;max-width:520px;min-height:110px}
.layer-link{display:inline-flex;align-items:center;gap:6px;margin-top:26px;font-size:15px;font-weight:600;color:var(--text);text-decoration:none;border-bottom:1px solid var(--border);padding-bottom:2px;transition:border-color .2s,opacity .3s;opacity:0}
.layer-link.is-visible{opacity:1}
.layer-link:hover{border-color:var(--text)}

.layer-progress-row{display:flex;gap:8px;margin-top:48px;opacity:0;transition:opacity .4s ease}
.layer-progress-row.is-visible{opacity:1}
.layer-progress-seg{height:3px;flex:1;max-width:46px;background:var(--border);border-radius:2px;overflow:hidden}
.layer-progress-seg span{display:block;height:100%;width:0%;background:var(--text);transition:width .5s ease}
.layer-progress-seg.is-done span{width:100%}

.layer-nav{display:flex;align-items:center;gap:12px;margin-top:44px}
.layer-arrow-btn{width:46px;height:46px;border-radius:50%;border:1px solid var(--border);background:none;color:var(--text);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:border-color .2s,background .2s}
.layer-arrow-btn:hover{border-color:var(--text);background:var(--elevated)}
.layer-arrow-btn svg{width:18px;height:18px}

/* Rotating canvas diagram — sized generically (class + descendant
   selector) so any canvas dropped inside works, not just #layerSphere. */
.layer-diagram-wrap{position:relative;width:100%;max-width:640px;aspect-ratio:1/1;margin:0 auto}
.layer-diagram-wrap canvas{width:100%;height:100%;display:block}

.layer-scroll-hint{position:absolute;bottom:0;right:8px;font-size:10px;font-weight:700;letter-spacing:0.1em;text-transform:uppercase;color:var(--text-dimmer);opacity:0;transition:opacity .4s ease}
.layer-scroll-hint.is-visible{opacity:1}

.layer-mobile{display:none}

@media(max-width:900px){
  .layer-scroll,.layer-sticky-inner .layer-diagram-col{display:none}
  .layer-scroll{height:auto}
  .layer-mobile{display:block;margin-top:48px}
  .layer-mobile-item{padding:28px 0;border-top:1px solid var(--border)}
  .layer-mobile-item:last-child{border-bottom:1px solid var(--border)}
  .layer-mobile-tagline{font-size:12px;font-weight:700;letter-spacing:0.05em;text-transform:uppercase;color:var(--text-dim);margin-bottom:8px}
  .layer-mobile-name{font-family:'Inter',sans-serif;font-weight:400;font-size:22px;color:var(--text)}
  .layer-mobile-desc{font-size:15px;color:var(--text-dim);line-height:1.65;margin-top:12px}
  .layer-mobile-item .layer-link{opacity:1;margin-top:16px}
}

/* ── Layer/sub-page hero — shared template across all five layer pages.
   Text on the left, a media slot on the right for a page-specific image
   or video (currently a placeholder — swap the inner markup for an
   <img>/<video> per page when that asset is ready). */
.layer-hero{position:relative;min-height:64vh;background:var(--bg);display:flex;align-items:center;padding:170px 24px 80px;overflow:hidden}
/* Opt-in boxed-video variant: the page-specific video becomes a rounded,
   margined card (same treatment as the Platform page's .p-hero) instead
   of a full-bleed background or a small side-slot. .layer-hero-card is
   the thing that actually clips to the curved corners; .layer-hero itself
   just provides outer page padding, matching .p-hero-wrap/.p-hero's two-
   level split. Pinned dark gradient + white text, same reasoning as
   .p-hero's override — a real video reads the same in both themes only
   if we stop following the theme-adaptive text colors. */
.layer-hero.video-bg{display:block;min-height:0;padding:130px 24px 0;overflow:visible}
.layer-hero-card{position:relative;max-width:1400px;margin:0 auto;border-radius:28px;overflow:hidden;min-height:70vh;background:var(--bg);display:flex;align-items:flex-end}
/* Blog posts: a bit taller than the product hero videos — with a full
   photo/video cover behind it the extra height reads as a proper
   editorial cover, not empty space. */
.layer-hero-card.blog-cover{min-height:84vh}
@media(max-width:768px){.layer-hero-card.blog-cover{min-height:64vh}}
/* Placeholder state — no cover asset yet (used by the blog post heroes
   until each post gets a real image). Same dashed-box hint as every
   other still-empty media slot on the site. */
.layer-hero-card.is-placeholder{border:1px dashed var(--border);background:var(--elevated)}
.layer-hero-card.is-placeholder .layer-hero-media-hint{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.layer-hero.video-bg .hero-overlay{background:linear-gradient(180deg,rgba(0,0,0,0.05) 0%,rgba(0,0,0,0.35) 55%,rgba(0,0,0,0.72) 100%)}
.layer-hero.video-bg .layer-hero-label{color:rgba(255,255,255,0.75)}
.layer-hero.video-bg h1{color:#fff}
.layer-hero.video-bg .layer-hero-sub{color:rgba(255,255,255,0.85)}
.layer-hero.video-bg .layer-hero-inner{display:block;position:relative;z-index:2;width:100%;padding:48px 56px}
@media(max-width:768px){
  .layer-hero.video-bg{padding:100px 16px 0}
  .layer-hero-card{border-radius:20px;min-height:58vh}
  .layer-hero.video-bg .layer-hero-inner{padding:28px 24px}
}
/* Arrow-only back button, top-left of the hero (below the fixed nav) —
   replaces the old text "← Back to Platform" link that used to sit at the
   very bottom of the page. */
.layer-back-btn{position:absolute;top:100px;left:40px;z-index:3;width:44px;height:44px;border-radius:50%;border:1px solid var(--border);background:rgba(var(--bg-rgb),0.6);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:var(--text);display:flex;align-items:center;justify-content:center;text-decoration:none;transition:border-color .2s,background .2s}
.layer-back-btn:hover{border-color:var(--text);background:var(--elevated)}
.layer-back-btn svg{width:20px;height:20px}
@media(max-width:768px){.layer-back-btn{top:84px;left:20px;width:40px;height:40px}.layer-back-btn svg{width:18px;height:18px}}
.layer-hero-inner{position:relative;z-index:2;display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center;width:100%}
/* Single-column variant for hero cards with no side media column (blog
   post heroes) — without this the content silently sits in only the
   first half of the default 2-column grid, and gets none of .video-bg's
   padding since these pages don't use that variant (no forced white
   text over a still-empty placeholder). */
.layer-hero-inner.single-col{display:block;padding:48px 56px 72px}
.layer-hero.video-bg .layer-hero-inner.single-col{padding:48px 56px 72px}
@media(max-width:768px){
  .layer-hero-inner.single-col{padding:32px 28px 48px}
  .layer-hero.video-bg .layer-hero-inner.single-col{padding:32px 28px 48px}
}
/* Opt-in: once a hero's media slot holds a real video/image instead of the
   placeholder hint, give it more visual weight than the empty box did. */
.layer-hero-inner.has-video{grid-template-columns:0.82fr 1.18fr}
.layer-hero-content{text-align:left}
.layer-hero-label{font-size:12px;font-weight:700;letter-spacing:0.14em;text-transform:uppercase;color:var(--text-dim);margin-bottom:22px}
.layer-hero h1{font-family:'Inter',sans-serif;font-weight:400;font-size:clamp(38px,5vw,58px);line-height:1.1;letter-spacing:-0.02em;color:var(--text);margin-bottom:20px}
.layer-hero-sub{font-size:clamp(15px,1.3vw,17px);color:var(--text-dim);max-width:480px;line-height:1.6}

.layer-hero-media{position:relative;aspect-ratio:16/9;border-radius:20px;overflow:hidden;border:1px dashed var(--border);background:var(--elevated);display:flex;align-items:center;justify-content:center}
.layer-hero-media.has-media{border-style:solid;aspect-ratio:16/10}
.layer-hero-media img,.layer-hero-media video{width:100%;height:100%;object-fit:cover;display:block}
.layer-hero-media-hint{font-size:11.5px;font-weight:600;color:var(--text-dimmer);letter-spacing:0.06em;text-transform:uppercase}

/* Full-width variant — same treatment as the hero media slot, but spanning
   the entire section instead of one column of a two-up layout. Cinematic
   ratio since it's now much wider than tall. */
.layer-hero-media.full-bleed-media{aspect-ratio:21/9;margin-bottom:40px}
@media(max-width:768px){.layer-hero-media.full-bleed-media{aspect-ratio:4/3}}

@media(max-width:900px){
  .layer-hero{min-height:auto}
  .layer-hero-inner,.layer-hero-inner.has-video{grid-template-columns:1fr;gap:36px}
  .layer-hero-content{text-align:center}
  .layer-hero-sub{margin:0 auto}
}

/* ── Generic body copy under an eyebrow (used for "what it does" intros) ── */
.lead-text{font-size:19px;color:var(--text-dim);line-height:1.75;max-width:none;margin-top:24px}
.lead-text+.lead-text{margin-top:16px}

/* Centered intro — used only for the "What It Does" section at the top of
   each layer page, to sit as a focused centered statement rather than a
   full-width paragraph like every section below it. */
.intro-center{text-align:center;min-height:52vh;display:flex;flex-direction:column;justify-content:center;align-items:center}
@media(max-width:768px){.intro-center{min-height:0}}
.intro-center .sec-eyebrow{display:block}
.intro-center .lead-text{max-width:700px;margin-left:auto;margin-right:auto}

/* ── Generic bordered card grid — used for Operations, AI Engines, Connectors,
   Lineage sections, Drift checks, Re-labeling strategies, etc. ── */
.card-grid{display:grid;gap:1px;background:var(--border);border:1px solid var(--border);margin-top:48px}
.card-grid.cols-2{grid-template-columns:1fr 1fr}
.card-grid.cols-3{grid-template-columns:1fr 1fr 1fr}
.info-card{background:var(--bg);padding:30px 28px}
.info-card-title{font-size:16px;font-weight:400;color:var(--text);letter-spacing:-0.005em;margin-bottom:10px}
.info-card-body{font-size:14px;color:var(--text-dim);line-height:1.7}
@media(max-width:900px){.card-grid.cols-2,.card-grid.cols-3{grid-template-columns:1fr}}

/* ── Recipe grid — operations/pipeline steps as individual icon cards,
   grouped under a category label. Used first on Transform's "Recipe"
   block; reusable anywhere a process reads better as cards than prose. */
.recipe-group{margin-top:40px}
.recipe-group-label{font-size:12px;font-weight:700;letter-spacing:0.1em;text-transform:uppercase;color:var(--text-dim);margin-bottom:18px;text-align:center}
.recipe-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;align-items:start}
.recipe-grid.cols-2{grid-template-columns:1fr 1fr;gap:20px}
.recipe-card{background:var(--elevated);border:1px solid var(--border);border-radius:16px;padding:24px;transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease}
.recipe-card:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(0,0,0,0.09);border-color:var(--text-dimmer)}
.recipe-card-icon{width:38px;height:38px;border-radius:10px;background:var(--bg);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;margin-bottom:16px;color:var(--text);transition:background .3s ease,color .3s ease}
.recipe-card-icon svg{width:18px;height:18px}
.recipe-card:hover .recipe-card-icon{background:var(--text);color:var(--bg)}
.recipe-card-title{font-size:15.5px;font-weight:400;color:var(--text);margin-bottom:8px;letter-spacing:-0.005em}
.recipe-grid.cols-2 .recipe-card-title{font-size:17px;margin-bottom:12px}
.recipe-card-body{font-size:13.5px;color:var(--text-dim);line-height:1.6}
@media(max-width:900px){.recipe-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.recipe-grid{grid-template-columns:1fr}.recipe-grid.cols-2{grid-template-columns:1fr}}

/* ── Version flow diagram — a source version fanning out via connected
   paths to the three semver bump destinations (major/minor/patch), same
   SVG + animateMotion/mpath technique as the Import/Export diagrams on the
   main platform page: the dot rides the exact path it's drawn from, so it
   can't drift off-curve. Replaces a plain 3-box grid with an actual
   flow/connection visual. */
.version-flow{
  position:relative;aspect-ratio:2.3/1;border-radius:20px;overflow:hidden;margin-top:40px;
  background-color:var(--bg);
  background-image:radial-gradient(rgba(var(--text-rgb),0.14) 1.3px,transparent 1.3px);
  background-size:10px 10px;border:1px solid var(--border)
}
.version-flow-svg{position:absolute;inset:0;width:100%;height:100%}
.version-flow-svg path{fill:none;stroke:var(--border);stroke-width:1.5}
.version-flow-dot{fill:var(--text)}
@media(prefers-reduced-motion:reduce){.version-flow-dot{display:none}}
.version-flow-source{
  position:absolute;top:50%;left:5%;transform:translateY(-50%);z-index:2;
  background:var(--text);color:var(--bg);padding:16px 22px;border-radius:12px;
  font-family:'Inter',sans-serif;font-weight:800;font-size:17px;letter-spacing:-0.01em;
  box-shadow:0 8px 20px rgba(0,0,0,0.15)
}
.version-flow-endpoints{position:absolute;inset:0;z-index:2}
/* left+right (not a fixed width) so the box always starts just past
   where its connecting thread ends, whatever the container's size. */
.version-flow-endpoint{position:absolute;left:66%;right:4%;transform:translateY(-50%)}
.version-flow-endpoint-tag{font-size:10.5px;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;color:var(--text-dim)}
.version-flow-endpoint-ver{font-family:'Inter',sans-serif;font-size:19px;font-weight:800;color:var(--text);margin:2px 0 5px;letter-spacing:-0.01em}
.version-flow-endpoint-desc{font-size:12px;color:var(--text-dim);line-height:1.5}
/* Compact variant — diagram sits in one column of a two-up layout
   (.version-model-panel) instead of spanning the full section width. */
.version-model-panel{display:grid;grid-template-columns:1.1fr 0.9fr;gap:56px;align-items:center;margin-top:40px}
.version-flow.compact{margin-top:0;aspect-ratio:1.25/1;max-width:540px}
.version-flow.compact .version-flow-source{font-size:14px;padding:11px 15px;border-radius:9px}
.version-flow.compact .version-flow-endpoint-tag{font-size:9.5px}
.version-flow.compact .version-flow-endpoint-ver{font-size:16px;margin:2px 0 4px}
.version-flow.compact .version-flow-endpoint-desc{font-size:11px;line-height:1.45}
@media(max-width:900px){
  .version-model-panel{grid-template-columns:1fr}
  .version-flow.compact{max-width:100%;aspect-ratio:1.8/1;margin:0 auto}
}
@media(max-width:768px){
  /* The connecting lines are drawn for the horizontal desktop layout —
     rather than have them visibly disagree with the reflowed vertical
     positions below, hide them here and keep just the source + endpoints. */
  .version-flow{aspect-ratio:1/1.55;background-image:none}
  .version-flow-svg{display:none}
  .version-flow-source{left:50%;top:8%;transform:translate(-50%,0)}
  .version-flow-endpoint{right:auto;left:8%;max-width:84%}
  .version-flow-endpoint[style*="top:18%"]{top:38% !important}
  .version-flow-endpoint[style*="top:50%"]{top:64% !important}
  .version-flow-endpoint[style*="top:82%"]{top:90% !important}
  .version-flow.compact{aspect-ratio:1/1.4}
  .version-flow.compact .version-flow-endpoint{max-width:84%}
}

/* ── Resolution cards — larger tiles with a background numeral, for a
   small set of high-level benefits (used on Version's "Resolutions"
   section). Distinct from .recipe-card's icon-card treatment so a page
   with both reads as two different kinds of content, not a repeated grid. */
.resolution-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:40px;align-items:start}
.resolution-card{position:relative;background:var(--elevated);border:1px solid var(--border);border-radius:20px;padding:34px 32px;overflow:hidden;transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease}
.resolution-card:hover{transform:translateY(-5px);box-shadow:0 16px 34px rgba(0,0,0,0.1);border-color:var(--text-dimmer)}
.resolution-card-num{position:absolute;top:10px;right:22px;font-family:'Inter',sans-serif;font-size:58px;font-weight:800;color:var(--border);line-height:1;pointer-events:none}
.resolution-card-title{position:relative;z-index:1;font-size:19px;font-weight:400;color:var(--text);margin-bottom:10px;letter-spacing:-0.005em}
.resolution-card-body{position:relative;z-index:1;font-size:14px;color:var(--text-dim);line-height:1.7;max-width:88%}
@media(max-width:768px){.resolution-grid{grid-template-columns:1fr}.resolution-card-num{font-size:46px}}

/* ── Pill row — connectors, formats, tags ── */
.pill-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.pill{font-size:13px;font-weight:600;color:var(--text);background:var(--elevated);border:1px solid var(--border);padding:8px 15px;border-radius:20px}
.invert-section .pill{color:var(--invert-text);background:rgba(var(--bg-rgb),0.04);border-color:rgba(var(--bg-rgb),0.22)}

/* ── Modality type grid (reused on the platform overview + Label sub-page) ── */
.modtype-grid{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--border);border:1px solid var(--border);margin-top:48px}
.modtype-card{background:var(--bg);padding:34px 32px}
.modtype-head{display:flex;align-items:baseline;gap:10px;margin-bottom:18px}
.modtype-name{font-size:19px;font-weight:400;color:var(--text);letter-spacing:-0.01em}
.modtype-count{font-size:12px;font-weight:600;color:var(--text-dimmer);text-transform:uppercase;letter-spacing:0.04em}
.modtype-list{display:flex;flex-wrap:wrap;gap:8px}
.modtype-list span{font-size:12.5px;color:var(--text-dim);background:var(--elevated);border:1px solid var(--border);padding:6px 12px;border-radius:20px}
@media(max-width:768px){.modtype-grid{grid-template-columns:1fr}}

/* ── Numbered step list — used for Lineage report sections, routing flows ── */
.step-list{margin-top:40px;display:flex;flex-direction:column}
.step-row{display:grid;grid-template-columns:52px 1fr;gap:20px;padding:22px 0;border-top:1px solid var(--border)}
.step-row:last-child{border-bottom:1px solid var(--border)}
.step-num{font-family:'Inter',sans-serif;font-size:13px;font-weight:700;color:var(--text-dimmer)}
.step-label{font-size:15px;font-weight:400;color:var(--text);margin-bottom:4px}
.step-body{font-size:14px;color:var(--text-dim);line-height:1.65}

/* ── Loop panel (Observe page) — 6 cards arranged as a rectangle (3 over
   3) via named grid-areas, a rotating infinity-symbol wireframe + heading
   filling the middle, and a rectangular connecting path (with its own
   continuously-running dot via animateMotion/mpath) drawn behind
   everything so the cards visually sit "on" the loop. Card styling reuses
   the same corner-fold + hover-lift language as the platform page's Why
   Datalier cards. grid-template-areas (not DOM order) is what keeps the
   1→2→3→4→5→6→1 sequence correct in both the desktop rectangle and the
   mobile single-column stack — the HTML can list cards in whatever order
   is convenient for reading the source. */
.loop-panel{position:relative;border-radius:24px;border:1px solid var(--border);background:var(--bg);padding:44px;overflow:hidden;margin-top:56px}
.loop-panel-svg{position:absolute;inset:0;width:100%;height:100%;z-index:0}
.loop-panel-svg path{fill:none;stroke:var(--border);stroke-width:1.5}
.loop-panel-dot{fill:var(--text)}
@media(prefers-reduced-motion:reduce){.loop-panel-dot{display:none}}

.loop-card-grid{position:relative;z-index:1;display:grid;grid-template-columns:1fr 1fr 1fr;grid-template-areas:"c1 c2 c3" "center center center" "c6 c5 c4";gap:24px;align-items:stretch}

.loop-card{position:relative;background:var(--bg);border-radius:16px;padding:24px;overflow:hidden;border:1px solid var(--border);display:flex;flex-direction:column;transition:transform .3s ease,box-shadow .3s ease}
.loop-card:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(0,0,0,0.09)}
.loop-card-corner{position:absolute;top:0;right:0;width:0;height:0;border-style:solid;border-width:0 22px 22px 0;border-color:transparent var(--border) transparent transparent;transition:border-color .3s ease}
.loop-card:hover .loop-card-corner{border-color:transparent var(--text) transparent transparent}
.loop-card-num{font-family:'Inter',sans-serif;font-size:12px;font-weight:700;color:var(--text-dimmer);letter-spacing:0.05em}
.loop-card-title{font-size:16.5px;font-weight:400;color:var(--text);letter-spacing:-0.005em;margin-top:6px}
.loop-card-body{font-size:13px;color:var(--text-dim);line-height:1.6;margin-top:11px;flex:1}

.loop-center{grid-area:center;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:8px 0}
.loop-center-heading{font-family:'Inter',sans-serif;font-weight:400;font-size:clamp(20px,2.3vw,28px);letter-spacing:-0.02em;line-height:1.3;color:var(--text);max-width:520px}
/* Fixed pixel size, not width:100%+aspect-ratio off a flex/grid ancestor —
   a percentage chain through several layout contexts risks resolving to 0
   on the frame the canvas reads its size from, which silently blanks the
   whole drawing (draw() bails out early on a zero-size canvas). A fixed
   size has no such dependency. */
.loop-center-diagram{position:relative;width:560px;height:448px;margin-top:20px}
.loop-center-diagram canvas{width:560px;height:448px;display:block}
@media(max-width:640px){
  .loop-center-diagram{width:320px;height:256px}
  .loop-center-diagram canvas{width:320px;height:256px}
}

@media(max-width:900px){
  .loop-panel{padding:32px 22px}
  .loop-panel-svg{display:none}
  .loop-card-grid{grid-template-columns:1fr;grid-template-areas:"c1" "c2" "c3" "center" "c4" "c5" "c6"}
}

/* ── CTA (shared component, identical to homepage) ── */
.cta-final{position:relative;min-height:60vh;background:var(--bg);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;overflow:hidden;padding:100px 24px}
.cta-final h2{font-family:'Inter',sans-serif;font-weight:400;font-size:clamp(26px,3.2vw,38px);letter-spacing:-0.02em;color:var(--text);line-height:1.25;position:relative;z-index:2;max-width:920px}
.cta-final-sub{position:relative;z-index:2;font-size:14px;color:var(--text-dimmer);margin-top:22px}
.cta-final .btn-primary{position:relative;z-index:2;margin-top:36px}
.bg-media{position:absolute;inset:0;z-index:0}
.bg-media canvas{width:100%;height:100%;display:block}
.bg-media video,.bg-media img{width:100%;height:100%;object-fit:cover;display:block}
.hero-overlay{position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(var(--bg-rgb),0.1) 0%,rgba(var(--bg-rgb),0.55) 65%,rgba(var(--bg-rgb),0.88) 100%);pointer-events:none}

/* ── About page (reused as-is by the Careers hero — same rounded, contained,
   centered-text treatment) ── */
.about-hero{padding:130px 24px 0}
.about-hero-media{position:relative;max-width:1400px;margin:0 auto;border-radius:28px;overflow:hidden;min-height:640px;display:flex;align-items:center;justify-content:center}
.about-hero-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
/* Placeholder state — no media asset yet, same dashed-box hint used for
   every other still-empty hero slot on the site (swap for a <video> once
   the asset exists, same as Observe/Govern/Transform were before). */
.about-hero-media.is-placeholder{border:1px dashed var(--border);background:var(--elevated)}
.about-hero-content{position:relative;z-index:2;padding:56px 60px;text-align:center}
.about-hero-eyebrow{font-size:13px;font-weight:700;letter-spacing:0.14em;text-transform:uppercase;color:var(--text-dim);margin-bottom:14px;display:block}
.about-hero-content h1{font-family:'Inter',sans-serif;font-weight:400;font-size:clamp(44px,6.4vw,76px);color:var(--text);letter-spacing:-0.02em;line-height:1}
.about-hero-content p{font-size:clamp(15px,1.3vw,17px);color:var(--text-dim);max-width:560px;margin:20px auto 0;line-height:1.6}
@media(max-width:768px){.about-hero-media{min-height:420px;border-radius:20px}.about-hero-content{padding:32px 28px}}

/* Centered heading block — reused by every content section on this page
   per an explicit "headings in the middle, not the sides" instruction. */
.center-head{text-align:center;max-width:900px;margin:0 auto 56px}
.center-head .sec-eyebrow{display:block}
.center-head .sec-title{margin-top:2px;font-size:clamp(24px,2.9vw,34px)}
.center-head .sec-desc{margin:18px auto 0;max-width:620px}
/* Opt-in: for long-form body copy (several full paragraphs) under a
   centered heading, where center-aligning every line starts looking
   ragged — widen the column and left-align the paragraph text while the
   block itself stays centered on the page. Heading/eyebrow stay centered
   as normal; only .sec-desc children switch. */
.center-head.wide-body{max-width:820px}
.center-head.wide-body .sec-desc{text-align:left;max-width:none}

/* Same light/dark theme behavior as every other section on the site —
   no inversion here, unlike a dramatic-contrast section elsewhere. */
.what-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;align-items:start}
.what-card{background:var(--elevated);border:1px solid var(--border);border-radius:16px;padding:38px 30px}
.what-card-num{font-size:12px;font-weight:700;letter-spacing:0.1em;color:var(--text-dimmer);margin-bottom:18px}
.what-card-title{font-family:'Inter',sans-serif;font-weight:400;font-size:19px;color:var(--text);margin-bottom:12px;letter-spacing:-0.01em}
.what-card-body{font-size:14.5px;color:var(--text-dim);line-height:1.7}
@media(max-width:900px){.what-grid{grid-template-columns:1fr}}

.mission-statement{font-family:'Inter',sans-serif;font-weight:400;font-size:clamp(20px,2.4vw,28px);letter-spacing:-0.01em;line-height:1.4;color:var(--text);max-width:980px;margin:0 auto;text-align:center}
.mission-sub{font-size:17px;color:var(--text-dim);line-height:1.7;max-width:640px;margin:28px auto 0;text-align:center}
.mission-media-placeholder{max-width:900px;margin:48px auto 0}

.values-row{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.value-box{position:relative;overflow:hidden;background:var(--elevated);border:1px solid var(--border);border-radius:16px;padding:36px 26px;text-align:center;transition:transform .35s cubic-bezier(.2,.8,.2,1),border-color .35s ease,box-shadow .35s ease}
.value-box:hover{transform:translateY(-8px);border-color:var(--text);box-shadow:0 22px 44px rgba(var(--text-rgb),0.08)}
.value-box-icon{width:52px;height:52px;border-radius:50%;border:1px solid var(--border);display:flex;align-items:center;justify-content:center;margin:0 auto 20px;color:var(--text);transition:transform .4s cubic-bezier(.2,.8,.2,1),background .3s ease,color .3s ease}
.value-box-icon svg{width:23px;height:23px}
.value-box:hover .value-box-icon{transform:rotate(-8deg) scale(1.08);background:var(--invert-bg);color:var(--invert-text)}
.value-box-title{font-family:'Inter',sans-serif;font-weight:400;font-size:17px;color:var(--text);margin-bottom:10px;letter-spacing:-0.005em}
.value-box-body{font-size:14px;color:var(--text-dim);line-height:1.65}
.value-box::after{content:'';position:absolute;left:50%;bottom:0;width:0;height:2px;background:var(--text);transition:width .4s ease,left .4s ease}
.value-box:hover::after{width:56%;left:22%}
@media(max-width:900px){.values-row{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.values-row{grid-template-columns:1fr}}

/* ── FOOTER ── */
footer{background:var(--bg);color:var(--text);padding:80px 0 32px;border-top:1px solid var(--border)}
.footer-grid{display:grid;grid-template-columns:1.7fr 1fr 1.3fr 1fr 0.9fr;gap:40px;margin-bottom:56px}
.footer-brand p{font-size:14px;color:var(--text-dim);line-height:1.65;max-width:300px;margin-top:16px}
.footer-col-title{font-size:11px;font-weight:700;letter-spacing:0.08em;color:var(--text-dimmer);text-transform:uppercase;margin-bottom:18px}
.footer-sub-title{font-size:10px;font-weight:700;letter-spacing:0.08em;color:var(--text-dimmer);text-transform:uppercase;margin:20px 0 10px;opacity:0.75}
.footer-sub-title:first-of-type{margin-top:0}
.footer-links{display:flex;flex-direction:column;gap:12px}
.footer-links a{font-size:14px;color:var(--text-dim);text-decoration:none;transition:color .2s}
.footer-links a:hover{color:var(--text)}
.footer-icon-row{display:flex;gap:12px}
.footer-icon-link{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;border:1px solid var(--border);color:var(--text-dim);flex-shrink:0;transition:color .2s,border-color .2s}
.footer-icon-link:hover{color:var(--text);border-color:var(--text)}
.footer-icon-link svg{width:16px;height:16px}
.footer-bottom{border-top:1px solid var(--border);padding-top:28px;font-size:13px;color:var(--text-dimmer)}
@media(max-width:768px){.footer-grid{grid-template-columns:1fr 1fr;gap:36px}}

/* ── Contact page — two-column: form on the left, a tall looping-video
   panel on the right. The video column has only an absolutely-positioned
   <video> inside it, but unlike the earlier diagram-panel bug this is
   safe: no margin:auto/max-width is applied to the grid item itself, so
   default stretch sizing (both axes) applies cleanly — width comes from
   the explicit grid-template-columns track, height comes from the row's
   auto-height, which is driven by the form column's real content. */
.contact-section{padding:168px 24px 110px}
.contact-grid{max-width:1400px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:stretch}
.contact-heading{font-family:'Inter',sans-serif;font-weight:400;font-size:clamp(34px,4.2vw,50px);letter-spacing:-0.02em;line-height:1.12;color:var(--text);margin-bottom:14px}
.contact-sub{font-size:17px;color:var(--text-dim);line-height:1.6;max-width:460px;margin-bottom:40px}
.contact-form{display:flex;flex-direction:column;gap:22px}
.contact-form .form-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.contact-form .form-field{display:flex;flex-direction:column;gap:8px}
.contact-form label{font-size:13px;font-weight:600;color:var(--text-dim)}
.contact-form input,.contact-form select,.contact-form textarea{font-family:'Inter',sans-serif;font-size:15px;color:var(--text);background:var(--elevated);border:1px solid var(--border);border-radius:8px;padding:13px 14px;outline:none;transition:border-color .2s,background .2s;width:100%}
.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus{border-color:var(--text);background:var(--bg)}
.contact-form textarea{resize:vertical;min-height:170px;line-height:1.6;font-family:'Inter',sans-serif}
.contact-form select{appearance:none;-webkit-appearance:none;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:16px;padding-right:40px}
.contact-form ::placeholder{color:var(--text-dimmer)}
.contact-submit{margin-top:6px;align-self:flex-start;cursor:pointer;font-family:'Inter',sans-serif}
.contact-submit:disabled{opacity:0.55;cursor:default}
.contact-error{display:none;font-size:14px;color:var(--text);background:var(--elevated);border:1px solid var(--border);border-radius:8px;padding:12px 16px}
.contact-error.is-visible{display:block}
.contact-success{display:none;flex-direction:column;justify-content:center;height:100%;min-height:360px}
.contact-success.is-visible{display:flex}
.contact-success-icon{width:52px;height:52px;border-radius:50%;border:1px solid var(--border);display:flex;align-items:center;justify-content:center;margin-bottom:24px;color:var(--text)}
.contact-success-icon svg{width:24px;height:24px}
.contact-success h3{font-family:'Inter',sans-serif;font-weight:400;font-size:26px;letter-spacing:-0.01em;color:var(--text);margin-bottom:12px}
.contact-success p{font-size:16px;color:var(--text-dim);line-height:1.65;max-width:440px}
.contact-media-col{position:relative;border-radius:20px;overflow:hidden;border:1px solid var(--border);background:var(--elevated)}
.contact-media-col video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
@media(max-width:900px){
  .contact-section{padding:140px 20px 80px}
  .contact-grid{grid-template-columns:1fr;gap:40px}
  .contact-media-col{height:360px}
  .contact-form .form-row{grid-template-columns:1fr}
}

/* ── Modality pages (Solutions → Images/Videos/Audio/NLP-Text) ── */

/* Plain-background hero — same text treatment as .p-hero, no video/canvas
   behind it, just the page background. */
.modality-hero{position:relative;overflow:hidden;padding:170px 24px 90px;text-align:center;background:var(--bg)}
.modality-hero-content{position:relative;z-index:2}
.modality-hero-eyebrow{font-size:12px;font-weight:700;letter-spacing:0.14em;text-transform:uppercase;color:var(--text-dim);margin-bottom:24px}
.modality-hero h1{font-family:'Inter',sans-serif;font-weight:400;font-size:clamp(32px,4.6vw,54px);line-height:1.18;letter-spacing:-0.02em;color:var(--text);max-width:920px;margin:0 auto 26px}
.modality-hero-sub{font-size:clamp(16px,1.5vw,18px);color:var(--text-dim);max-width:640px;margin:0 auto 40px;line-height:1.6}
.modality-hero-actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}

/* Task switcher — a vertical list of task names on the left; hovering or
   clicking one activates it (bold, full-contrast) and dims the rest, while
   swapping which placeholder media panel shows on the right. Built as a
   generic component (initTaskSwitch in platform-motion.js matches items to
   media panels by index) so every modality page can reuse it. */
.task-switch{display:grid;grid-template-columns:270px 1fr;gap:56px;margin-top:56px;align-items:stretch}
.task-switch-list{display:flex;flex-direction:column;justify-content:space-between;position:sticky;top:120px}
.task-switch-item{text-align:left;background:none;border:none;padding:13px 16px;font-family:'Inter',sans-serif;font-size:15px;color:var(--text-dimmer);cursor:pointer;border-radius:8px;transition:color .2s ease,background .2s ease;font-weight:400}
.task-switch-item:hover{color:var(--text-dim)}
.task-switch-item.is-active{color:var(--text);font-weight:600;background:var(--elevated)}
.task-switch-media{position:relative;border-radius:20px;min-height:620px}
/* Opt-in, shorter variant for pages whose task-switch media is a set of
   still screenshots rather than video — 620px was tuned for the Videos
   page's letterboxed clips, but that's far taller than these images'
   own ~2:1 average aspect ratio need, leaving a lot of dead vertical
   space around them. Scoped so it doesn't undo that video fix. */
.task-switch-media.fits-image{min-height:460px}
.task-switch-media-item{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:20px;
  border:1px dashed var(--border);border-radius:20px;
  background-color:var(--elevated);
  background-image:radial-gradient(rgba(var(--text-rgb),0.14) 1.3px,transparent 1.3px);
  background-size:10px 10px;
  opacity:0;transition:opacity .6s ease;pointer-events:none
}
.task-switch-media-item.is-active{opacity:1;pointer-events:auto}
.task-switch-media-item.has-media{border-style:solid}
.task-switch-media-item img{max-width:100%;max-height:100%;width:auto;height:auto;border-radius:12px;display:block}
.task-switch-media-item video{
  width:100%;height:100%;object-fit:contain;border-radius:12px;display:block;
  background-color:var(--bg);
  background-image:radial-gradient(rgba(var(--text-rgb),0.14) 1.3px,transparent 1.3px);
  background-size:10px 10px
}
.task-switch-media-hint{font-size:11.5px;font-weight:600;color:var(--text-dimmer);letter-spacing:0.06em;text-transform:uppercase}
@media(max-width:800px){
  .task-switch{grid-template-columns:1fr;gap:28px}
  .task-switch-list{position:static;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;gap:8px}
  .task-switch-item{padding:9px 14px;font-size:14px}
  .task-switch-media{min-height:460px}
  .task-switch-media.fits-image{min-height:370px}
}

/* FAQ — single-open accordion (initFaq in platform-motion.js). */
.faq-list{max-width:800px;margin:56px auto 0;border-top:1px solid var(--border)}
.faq-item{border-bottom:1px solid var(--border)}
.faq-question{width:100%;display:flex;align-items:center;justify-content:space-between;gap:20px;background:none;border:none;padding:24px 4px;text-align:left;font-family:'Inter',sans-serif;font-size:16.5px;font-weight:500;color:var(--text);cursor:pointer}
.faq-icon{flex-shrink:0;width:20px;height:20px;position:relative}
.faq-icon::before,.faq-icon::after{content:'';position:absolute;top:50%;left:50%;background:var(--text);transform:translate(-50%,-50%)}
.faq-icon::before{width:12px;height:1.5px}
.faq-icon::after{width:1.5px;height:12px;transition:opacity .2s ease}
.faq-item.is-open .faq-icon::after{opacity:0}
.faq-answer{max-height:0;overflow:hidden;transition:max-height .35s ease}
.faq-answer p{font-size:14.5px;color:var(--text-dim);line-height:1.7;padding:0 4px 24px;max-width:680px}
.faq-item.is-open .faq-answer{max-height:300px}

/* ── Careers: Open Positions — toolbar + department-grouped, filterable
   list (driven by CAREERS_JOBS in careers/index.html's own inline script;
   .jobs-dept-group markup is only rendered once that array is non-empty).
   Reuses .faq-icon for the expand/collapse toggles. ── */
.jobs-toolbar{display:grid;grid-template-columns:1fr 200px 200px;gap:14px;margin-top:48px}
.jobs-search{font-family:'Inter',sans-serif;font-size:15px;color:var(--text);background:var(--elevated);border:1px solid var(--border);border-radius:8px;padding:13px 16px;outline:none;transition:border-color .2s,background .2s;width:100%}
.jobs-search:focus{border-color:var(--text);background:var(--bg)}
.jobs-search::placeholder{color:var(--text-dimmer)}
.jobs-filter{font-family:'Inter',sans-serif;font-size:14px;color:var(--text);background:var(--elevated);border:1px solid var(--border);border-radius:8px;padding:13px 40px 13px 14px;outline:none;cursor:pointer;width:100%;
  appearance:none;-webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;background-size:16px}
.jobs-meta{margin-top:22px;padding-bottom:10px;font-size:12px;font-weight:700;letter-spacing:0.06em;text-transform:uppercase;color:var(--text-dimmer)}

.jobs-dept-group{border-top:1px solid var(--border)}
.jobs-dept-group:last-child{border-bottom:1px solid var(--border)}
.jobs-dept-header{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;background:none;border:none;padding:22px 4px;text-align:left;font-family:'Inter',sans-serif;font-size:17px;font-weight:500;color:var(--text);cursor:pointer}
.jobs-dept-count{font-size:12.5px;font-weight:600;color:var(--text-dimmer);letter-spacing:0.02em;white-space:nowrap}
.jobs-dept-roles{max-height:0;overflow:hidden;transition:max-height .4s ease}
.jobs-dept-group.is-open .jobs-dept-roles{max-height:1400px}
.jobs-role-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 4px;text-decoration:none;color:var(--text);border-top:1px solid var(--border);transition:background .2s}
.jobs-role-row:hover{background:var(--elevated)}
.jobs-role-title{font-size:15px;font-weight:500}
.jobs-role-loc{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--text-dim);white-space:nowrap}
.jobs-role-loc svg{width:14px;height:14px}
.jobs-no-results{padding:40px 4px;text-align:center;font-size:14.5px;color:var(--text-dim)}

/* Empty state (no roles yet) + register-interest accordion, reusing
   .contact-form's field styling as-is. */
.jobs-empty{max-width:640px;margin:56px auto 0;text-align:center}
.jobs-empty-text{font-size:16px;color:var(--text-dim);line-height:1.7;margin-bottom:28px}
.jobs-register-toggle{display:inline-flex;align-items:center;gap:14px;background:none;border:1px solid var(--border);border-radius:30px;padding:14px 24px;font-family:'Inter',sans-serif;font-size:15px;font-weight:600;color:var(--text);cursor:pointer;transition:border-color .2s,background .2s}
.jobs-register-toggle:hover{border-color:var(--text);background:var(--elevated)}
.jobs-register-toggle.is-open .faq-icon::after{opacity:0}
.jobs-register-panel{max-height:0;overflow:hidden;transition:max-height .5s ease}
.jobs-register-panel.is-open{max-height:1200px}
.jobs-register-panel-inner{max-width:600px;margin:0 auto;padding-top:40px;text-align:left}

@media(max-width:700px){
  .jobs-toolbar{grid-template-columns:1fr}
}

/* ── Blog: post hero — reuses .layer-hero/.layer-hero-card/.video-bg as-is
   (same rounded contained card every other hero video uses). No cover
   image asset yet on any post, so .video-bg is left off for now (keeps
   text theme-adaptive over the dashed placeholder); the .video-bg
   overrides below are already wired up so adding a real cover image is
   just: add the video-bg class, swap the placeholder for a real
   <img>/<video> + .hero-overlay, same as every other hero on the site. */
.blog-hero-category{display:inline-block;font-size:11.5px;font-weight:700;letter-spacing:0.06em;text-transform:uppercase;color:var(--text-dim);background:var(--elevated);border:1px solid var(--border);padding:6px 13px;border-radius:20px;margin-bottom:20px}
.blog-hero-title{font-family:'Inter',sans-serif;font-weight:400;font-size:clamp(30px,4.2vw,48px);line-height:1.18;letter-spacing:-0.02em;color:var(--text);margin-bottom:14px;max-width:1000px}
.blog-hero-sub{font-size:clamp(15px,1.3vw,17px);color:var(--text-dim);max-width:760px;line-height:1.6;margin-bottom:24px}
.blog-hero-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;font-size:13px;color:var(--text-dim)}
.blog-hero-meta span{display:flex;align-items:center;gap:7px}
.blog-hero-meta svg{width:14px;height:14px;flex-shrink:0}
.layer-hero.video-bg .blog-hero-category{background:rgba(255,255,255,0.1);border-color:rgba(255,255,255,0.25);color:rgba(255,255,255,0.85)}
.layer-hero.video-bg .blog-hero-title{color:#fff}
.layer-hero.video-bg .blog-hero-sub{color:rgba(255,255,255,0.85)}
.layer-hero.video-bg .blog-hero-meta{color:rgba(255,255,255,0.75)}

/* ── Blog: article body typography — a contained reading column, with
   .blog-breakout letting diagram/card moments (built from the existing
   .recipe-grid component) run the full section width instead of being
   squeezed into the reading column. */
.blog-body{max-width:900px;margin:0 auto}
.blog-body h2{font-family:'Inter',sans-serif;font-weight:500;font-size:clamp(22px,2.5vw,28px);letter-spacing:-0.01em;color:var(--text);margin:52px 0 18px;line-height:1.3}
.blog-body h2:first-child{margin-top:0}
.blog-body p{font-size:16.5px;color:var(--text-dim);line-height:1.85;margin-bottom:20px}
.blog-body p:last-child{margin-bottom:0}
.blog-body strong{color:var(--text);font-weight:600}
.blog-body ul{margin:0 0 22px;padding-left:22px}
.blog-body li{font-size:16.5px;color:var(--text-dim);line-height:1.8;margin-bottom:10px}
.blog-body li strong{font-weight:600}
.blog-body hr{border:none;border-top:1px solid var(--border);margin:52px 0}
.blog-lede{font-size:19px;color:var(--text);line-height:1.7;margin-bottom:8px}
.blog-breakout{max-width:1000px;margin:36px auto 52px}
.blog-breakout .recipe-grid{margin-top:0}
@media(max-width:768px){
  .blog-body h2{margin:40px 0 14px}
  .blog-body hr{margin:40px 0}
}

/* ── Blog: index page — featured card, article grid, toolbar (reuses
   .jobs-toolbar/.jobs-search/.jobs-filter and .pill as-is). ── */
.blog-featured{display:grid;grid-template-columns:1.15fr 1fr;gap:52px;align-items:stretch;border:1px solid var(--border);border-radius:20px;overflow:hidden;margin-top:48px;text-decoration:none;color:inherit}
.blog-featured-media{position:relative;min-height:460px;overflow:hidden;background-color:var(--elevated);background-image:radial-gradient(rgba(var(--text-rgb),0.14) 1.3px,transparent 1.3px);background-size:10px 10px;display:flex;align-items:center;justify-content:center}
.blog-featured-media img{width:100%;height:100%;object-fit:cover;display:block}
@media(max-width:900px){.blog-featured-media{min-height:320px}}
.blog-featured-body{padding:16px 44px 16px 0}
.blog-featured-eyebrow{font-size:12px;font-weight:700;letter-spacing:0.1em;text-transform:uppercase;color:var(--text-dimmer);margin-bottom:16px;display:block}
.blog-featured-title{font-family:'Inter',sans-serif;font-weight:400;font-size:clamp(24px,2.6vw,32px);letter-spacing:-0.015em;line-height:1.25;color:var(--text);margin-bottom:16px}
.blog-featured-desc{font-size:15px;color:var(--text-dim);line-height:1.7;margin-bottom:22px}

.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;margin-top:40px}
.blog-card{border:1px solid var(--border);border-radius:16px;overflow:hidden;text-decoration:none;color:inherit;display:flex;flex-direction:column;transition:border-color .25s ease,transform .25s ease}
.blog-card:hover{border-color:var(--text-dimmer);transform:translateY(-3px)}
.blog-card-media{position:relative;aspect-ratio:16/10;overflow:hidden;background-color:var(--elevated);background-image:radial-gradient(rgba(var(--text-rgb),0.14) 1.3px,transparent 1.3px);background-size:10px 10px;display:flex;align-items:center;justify-content:center}
.blog-card-media img{width:100%;height:100%;object-fit:cover;display:block}
.blog-card-body{padding:20px 22px 24px;display:flex;flex-direction:column;flex:1}
.blog-card-title{font-family:'Inter',sans-serif;font-size:17px;font-weight:500;color:var(--text);margin:14px 0 8px;line-height:1.35}
.blog-card-excerpt{font-size:13.5px;color:var(--text-dim);line-height:1.65;flex:1}
.blog-card-meta{margin-top:16px;padding-top:14px;border-top:1px solid var(--border);font-size:12px;color:var(--text-dimmer);display:flex;gap:10px}

.blog-show-more{display:flex;justify-content:center;margin-top:44px}
.blog-no-results{padding:60px 4px;text-align:center;font-size:14.5px;color:var(--text-dim)}

@media(max-width:900px){
  .blog-featured{grid-template-columns:1fr}
  .blog-featured-body{padding:28px}
  .blog-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:600px){
  .blog-grid{grid-template-columns:1fr}
}

/* ── Careers: individual job posting template — see careers/example-role
   for a fully worked example to duplicate per new role. Left column:
   department, title, location, tagline, apply link. Right column: body
   sections (Overview / What You'll Do / etc.), each separated by a rule. */
.job-detail{padding:130px 24px 100px}
.job-detail-inner{max-width:1300px;margin:0 auto;display:grid;grid-template-columns:340px 1fr;gap:80px}
.job-detail-dept-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:10px;background:var(--elevated);border:1px solid var(--border);color:var(--text-dim);margin-bottom:16px}
.job-detail-dept-icon svg{width:20px;height:20px}
.job-detail-dept-label{font-size:12px;font-weight:700;letter-spacing:0.06em;text-transform:uppercase;color:var(--text-dim);margin-bottom:8px}
.job-detail-title{font-family:'Inter',sans-serif;font-weight:400;font-size:clamp(28px,3.2vw,38px);letter-spacing:-0.01em;line-height:1.2;color:var(--text);margin-bottom:14px}
.job-detail-location{font-size:14px;color:var(--text-dim);margin-bottom:24px}
.job-detail-left-rule{border-top:1px solid var(--border);padding-top:24px}
.job-detail-tagline{font-size:14px;color:var(--text-dim);margin-bottom:18px}
.job-detail-right h3{font-family:'Inter',sans-serif;font-weight:500;font-size:19px;color:var(--text);margin:0 0 16px}
.job-detail-section{padding-top:32px;border-top:1px solid var(--border);margin-top:32px}
.job-detail-section:first-child{border-top:none;margin-top:0;padding-top:0}
.job-detail-right p{font-size:15px;color:var(--text-dim);line-height:1.75;margin-bottom:14px}
.job-detail-right p:last-child{margin-bottom:0}
.job-detail-right ul{margin:0;padding-left:20px}
.job-detail-right li{font-size:15px;color:var(--text-dim);line-height:1.75;margin-bottom:10px}
.job-detail-salary{font-size:16px;font-weight:600;color:var(--text);margin-bottom:14px}
@media(max-width:900px){
  .job-detail{padding-top:100px}
  .job-detail-inner{grid-template-columns:1fr;gap:40px}
}

/* ── Hover-elongate accordion blocks (homepage "Built For" section) — same
   component reused on modality pages for "Built-In Automation". Lived only
   in the homepage's own stylesheet before; shared here so every page that
   drops in the identical .who-blocks markup renders correctly, not just
   the homepage. JS (initWhoBlocks/initWhoCanvas) already lives in the
   shared concave-motion.js and works page-agnostically. */
.who{background:var(--bg)}
.who-head{max-width:900px;margin:0 auto;text-align:center}
.who-heading{font-family:'Inter',sans-serif;font-weight:400;font-size:clamp(26px,3vw,36px);letter-spacing:-0.02em;line-height:1.2;text-align:center}
.who-sub{font-size:16px;color:var(--text-dim);max-width:600px;margin:18px auto 0;line-height:1.65}

.who-blocks{display:flex;gap:10px;margin-top:64px;height:460px;padding:0 48px}
.who-block{
  position:relative;flex:1;min-width:88px;border-radius:18px;overflow:hidden;
  background:var(--elevated);border:1px solid var(--border);
  text-decoration:none;color:inherit;display:block;
  transition:flex .55s cubic-bezier(.65,0,.35,1);
}
.who-block.is-active{flex:3.8}
.who-canvas{position:absolute;inset:0;width:100%;height:100%}
.who-block::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(180deg,transparent 35%,rgba(var(--bg-rgb),0.55) 65%,rgba(var(--bg-rgb),0.92) 100%);
  pointer-events:none;
}

.who-block-vertical{
  position:absolute;left:26px;bottom:28px;z-index:2;
  writing-mode:vertical-rl;transform:rotate(180deg);
  font-size:15px;font-weight:700;color:var(--text);white-space:nowrap;letter-spacing:-0.01em;
  opacity:1;transition:opacity .2s ease;
}
.who-block.is-active .who-block-vertical{opacity:0}

.who-block-expanded{
  position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;justify-content:flex-end;
  padding:34px;opacity:0;pointer-events:none;transition:opacity .3s ease;
}
.who-block.is-active .who-block-expanded{opacity:1;pointer-events:auto;transition:opacity .35s ease .18s}
.who-block-name{font-size:22px;font-weight:400;color:var(--text);letter-spacing:-0.01em;white-space:normal;line-height:1.25}
.who-block-desc{font-size:14px;line-height:1.6;color:rgba(var(--text-rgb),0.82);max-width:360px;margin-top:12px}
.who-block-link{margin-top:18px;font-size:13px;font-weight:600;color:var(--text)}

@media(max-width:900px){
  .who-blocks{flex-direction:column;height:auto;gap:12px;padding:0 32px}
  .who-block{flex:none !important;min-height:220px;display:flex;flex-direction:column}
  .who-block-vertical{display:none}
  .who-block-expanded{position:static;opacity:1;pointer-events:auto;padding:26px;margin-top:auto}
  .who-block-name{white-space:normal}
}
@media(max-width:560px){.who-blocks{padding:0 24px}}

/* Task card grid — Audio's task-type section: an image/placeholder on top
   of each card, title + short description below. Used instead of the
   sidebar task-switcher where the reference called for cards, not tabs. */
.task-card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:56px;align-items:start}
.task-card{background:var(--elevated);border:1px solid var(--border);border-radius:16px;overflow:hidden}
.task-card-media{
  position:relative;aspect-ratio:16/10;border-bottom:1px solid var(--border);
  background-color:var(--bg);
  background-image:radial-gradient(rgba(var(--text-rgb),0.14) 1.3px,transparent 1.3px);
  background-size:10px 10px;
  display:flex;align-items:center;justify-content:center;padding:16px
}
/* Wide variant — for panels whose real screenshots run much wider than
   tall (e.g. ~2.5:1 UI captures), so the box doesn't leave large empty
   margins above/below a comparatively short image. Same dotted-field
   background language as the platform diagrams elsewhere on the site. */
.task-card-media.wide{aspect-ratio:12/5;padding:14px;background-image:radial-gradient(rgba(var(--text-rgb),0.14) 1.3px,transparent 1.3px);background-size:10px 10px}
/* Shorter variant — for real screenshots closer to a standard 16:9-ish
   shape than the extra-wide UI captures .wide was built for. */
.task-card-media.compact{aspect-ratio:16/9;padding:14px;background-image:radial-gradient(rgba(var(--text-rgb),0.14) 1.3px,transparent 1.3px);background-size:10px 10px}
.task-card-media img{max-width:100%;max-height:100%;width:auto;height:auto;border-radius:8px;display:block}
.task-card-hint{font-size:11px;font-weight:600;color:var(--text-dimmer);letter-spacing:0.06em;text-transform:uppercase}
.task-card-body{padding:22px 24px 26px}
.task-card-title{font-family:'Inter',sans-serif;font-weight:600;font-size:16.5px;color:var(--text);margin-bottom:8px;letter-spacing:-0.005em}
.task-card-desc{font-size:13.5px;color:var(--text-dim);line-height:1.65}
@media(max-width:900px){.task-card-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.task-card-grid{grid-template-columns:1fr}}
.task-card-grid.cols-2{grid-template-columns:1fr 1fr}
@media(max-width:700px){.task-card-grid.cols-2{grid-template-columns:1fr}}

/* ── Cloud Integration diagram panel — an elongated, single bordered box
   (unlike the platform page's compact two-column Upload panel) holding the
   same source→format→Datalier diagram language plus a copy block, side by
   side, matching a "flexibility" style reference layout. Percentage-based
   positioning (not fixed px) so it stays correct at any panel width. */
.cloud-panel{background:var(--elevated);border:1px solid var(--border);border-radius:24px;padding:44px;display:grid;grid-template-columns:1.3fr 1fr;gap:48px;align-items:center;margin-top:56px}
.cloud-diagram{position:relative;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background-color:var(--bg);background-image:radial-gradient(rgba(var(--text-rgb),0.14) 1.3px,transparent 1.3px);background-size:10px 10px;border:1px solid var(--border)}
.cloud-diagram-svg{position:absolute;inset:0;width:100%;height:100%}
.cloud-diagram-svg path{fill:none;stroke:var(--border);stroke-width:1.5}
.cloud-flow-dot{fill:var(--text)}
@media(prefers-reduced-motion:reduce){.cloud-flow-dot{display:none}}
.cloud-sources{position:absolute;top:6%;bottom:6%;left:5%;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;z-index:2}
.cloud-source-chip{display:flex;flex-direction:row;align-items:center;gap:10px;color:var(--text)}
.cloud-source-logo{display:flex;align-items:center;justify-content:center;width:32px;height:32px;flex-shrink:0}
.cloud-source-logo svg{width:100%;height:100%}
.cloud-source-logo img{display:none;width:100%;height:100%;object-fit:contain}
:root:not([data-theme="dark"]) .cloud-source-logo img.logo-bright{display:block}
:root[data-theme="dark"] .cloud-source-logo img.logo-dark{display:block}
.cloud-source-word{font-size:13.5px;font-weight:700;letter-spacing:-0.005em;white-space:nowrap}
.cloud-formats{position:absolute;inset:0;z-index:2}
.cloud-format-chip{position:absolute;font-size:11px;font-weight:700;letter-spacing:0.02em;color:var(--text-dim);background:var(--bg);border:1px solid var(--border);padding:6px 10px;border-radius:6px}
.cloud-mark{position:absolute;top:50%;right:5%;transform:translateY(-50%);z-index:2;display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;background:var(--text);color:var(--bg);padding:18px 22px;border-radius:14px;box-shadow:0 8px 20px rgba(0,0,0,0.15)}
.cloud-mark svg{width:26px;height:26px}
.cloud-mark span{font-family:'Inter',sans-serif;font-size:16px;font-weight:800;letter-spacing:-0.01em}
.cloud-copy h3{font-family:'Inter',sans-serif;font-weight:600;font-size:22px;color:var(--text);letter-spacing:-0.01em;margin-bottom:12px}
.cloud-copy p{font-size:14.5px;color:var(--text-dim);line-height:1.7}
@media(max-width:900px){
  .cloud-panel{grid-template-columns:1fr;padding:28px;gap:32px}
  .cloud-diagram{aspect-ratio:16/13}
}
@media(max-width:560px){
  .cloud-source-chip{gap:7px}
  .cloud-source-word{font-size:11px}
  .cloud-source-logo{width:24px;height:24px}
  .cloud-format-chip{font-size:9px;padding:4px 7px}
  .cloud-mark{padding:12px 15px}
  .cloud-mark svg{width:20px;height:20px}
  .cloud-mark span{font-size:13px}
}

/* MLOps Integration diagram — same .cloud-panel/.cloud-diagram/.cloud-mark/
   .cloud-copy shell as Cloud Integration (kept visually identical per the
   "same format, same colours" instruction), extended with the "outlet"
   half: Datalier fans out to training platforms, and a dashed path carries
   the drift-correction loop back — mirrors the platform page's Export/Loop
   section, just elongated the same way Upload was for Cloud Integration. */
.cloud-mark.left{left:5%;right:auto}
.mlops-diagram-svg .loop-path{stroke:var(--text-dim);stroke-width:2;stroke-dasharray:4 5}
.mlops-loop-dot{fill:var(--bg);stroke:var(--text);stroke-width:1.5}
.mlops-wp-dot{fill:var(--text-dim)}
.mlops-wp-label{font-family:'Inter',sans-serif;font-size:9px;font-weight:700;fill:var(--text-dim)}
.mlops-platforms{position:absolute;top:50%;right:5%;transform:translateY(-50%);display:flex;flex-direction:column;z-index:2}
.mlops-platform-chip{font-size:11.5px;font-weight:700;color:var(--text);background:var(--bg);border:1px solid var(--border);padding:7px 13px;white-space:nowrap;text-align:right;margin-top:-1px}
.mlops-platform-chip:first-child{margin-top:0;border-top-left-radius:8px;border-top-right-radius:8px}
.mlops-platform-chip:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}
.mlops-loop-label{position:absolute;bottom:4%;left:50%;transform:translateX(-50%);font-size:10px;font-weight:600;color:var(--text-dimmer);white-space:nowrap;z-index:2;text-align:center}
@media(max-width:560px){
  .mlops-platform-chip{font-size:9.5px;padding:5px 9px}
  .mlops-loop-label{font-size:8.5px}
}

/* Govern diagram — same .cloud-panel/.cloud-diagram shell as the two
   Integration pages, showing the governance layer as a dashed boundary
   wrapping the five pipeline layers, fanning out to the three deliverables
   every export produces. Coordinates below are chosen against a 500×280
   reference so the SVG's own units line up with the percentage-positioned
   HTML chips sitting on top of it — same trick as the Upload/Export
   diagrams, just with a taller wrap instead of a single fan-out. */
.govern-diagram-svg{position:absolute;inset:0;width:100%;height:100%}
.govern-diagram-svg .govern-wrap-rect{fill:none;stroke:var(--border);stroke-width:1.5;stroke-dasharray:5 4}
.govern-diagram-svg .govern-link{fill:none;stroke:var(--border);stroke-width:1.5}
.govern-flow-dot{fill:var(--text)}
@media(prefers-reduced-motion:reduce){.govern-flow-dot{display:none}}
.govern-wrap-label{position:absolute;top:11%;left:9%;font-size:11px;font-weight:700;letter-spacing:0.1em;text-transform:uppercase;color:var(--text-dim);z-index:2;background:var(--bg);padding:0 6px}
.govern-layer-chip{position:absolute;transform:translate(-50%,-50%);top:40%;font-size:10.5px;font-weight:700;color:var(--text);background:var(--bg);border:1px solid var(--border);padding:7px 11px;border-radius:16px;white-space:nowrap;z-index:2}
.govern-output-chip{position:absolute;top:85%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;text-align:center;background:var(--text);color:var(--bg);padding:10px 14px;border-radius:10px;font-size:10px;font-weight:700;white-space:nowrap;box-shadow:0 6px 16px rgba(0,0,0,0.12);z-index:2}
@media(max-width:560px){
  .govern-wrap-label{font-size:9px;left:7%}
  .govern-layer-chip{font-size:8.5px;padding:5px 8px}
  .govern-output-chip{font-size:8.5px;padding:7px 10px}
}
