/* ==========================================================================
   WYRA LABS — SITE STYLES (builds on tokens.css)
   Mobile-first: base = mobile, @media (min-width:760px) enhances.
   Color rule: --accent-deep on light, --accent on dark. Gold = one pop/view.
   ========================================================================== */

html { scroll-behavior: smooth; }
body { overflow-x: hidden; letter-spacing: -0.006em; }
::selection { background: var(--accent-100); color: var(--ink); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; border-radius: 4px; }

/* ============ NAV ============ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(242,246,246,0.78);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
nav.scrolled { border-bottom-color: var(--line); background: rgba(242,246,246,0.94); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 15px 24px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.03em; color: var(--ink); font-family: var(--font-brand); }
.logo .mark { width: 40px; height: 27px; display: flex; align-items: center; justify-content: center; }
.logo .mark svg { width: 100%; height: 100%; display: block; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links .link { color: var(--sub); font-size: 13.5px; font-weight: 500; transition: color .2s; }
.nav-links .link:hover { color: var(--ink); }
@media (max-width: 899px) { .nav-links { display: none; } }

.btn { display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border-radius: 9px; font-weight: 600; font-size: 13.5px; border: none; white-space: nowrap; font-family: var(--font-display); cursor: pointer; transition: all .22s var(--ease); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--teal); transform: translateY(-1px); box-shadow: 0 10px 26px -10px rgba(18,51,58,.45); }
.btn-light { background: var(--accent); color: var(--ink); }
.btn-light:hover { background: var(--accent-300); transform: translateY(-1px); box-shadow: 0 10px 26px -10px rgba(58,165,181,.55); }
.btn-lg { padding: 15px 26px; font-size: 14.5px; border-radius: 10px; }

/* mobile menu */
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); align-items: center; justify-content: center; flex-direction: column; gap: 4px; cursor: pointer; }
.menu-btn span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.menu-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 899px) { .menu-btn { display: flex; } }
.mobile-panel { position: fixed; inset: 0 0 0 auto; width: min(86vw,360px); background: var(--ink); z-index: 120; transform: translateX(100%); transition: transform .32s var(--ease); padding: 90px 28px 40px; display: flex; flex-direction: column; gap: 4px; box-shadow: -30px 0 80px -30px rgba(0,0,0,.5); }
.mobile-panel.open { transform: translateX(0); }
.mobile-panel a:not(.btn) { color: var(--on-dark); font-family: var(--font-display); font-size: 20px; font-weight: 500; padding: 15px 0; border-bottom: 1px solid var(--line-dark); transition: color .2s; }
.mobile-panel a:not(.btn):hover { color: var(--accent); }
.mobile-panel .btn { margin-top: 22px; justify-content: center; }
.mobile-backdrop { position: fixed; inset: 0; background: rgba(18,51,58,.5); backdrop-filter: blur(3px); z-index: 119; opacity: 0; pointer-events: none; transition: opacity .3s; }
.mobile-backdrop.open { opacity: 1; pointer-events: auto; }
.menu-close { position: absolute; top: 22px; right: 24px; width: 40px; height: 40px; border: 1px solid var(--line-dark); border-radius: 10px; background: transparent; color: var(--on-dark); font-size: 20px; cursor: pointer; }

/* sticky CTA bar (mobile) */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--card); border-top: 1px solid var(--line); padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); display: none; gap: 10px; transform: translateY(120%); transition: transform .35s var(--ease); }
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .btn { flex: 1; justify-content: center; }
@media (max-width: 759px) { .sticky-cta { display: flex; } }

/* ============ HERO (hero-target standard: big type · glow · product slot) ============ */
.hero { position: relative; padding: 120px 0 0; overflow: hidden; }
/* atmosphere painted straight on the layer with self-terminating ellipses —
   sized gradients always reach 0 alpha inside their own extent, so there are
   no clipped-element seams on narrow screens */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(56% 40% at 76% 28%, rgba(58,165,181,0.10) 0%, rgba(58,165,181,0) 100%),
    radial-gradient(48% 36% at 10% 88%, rgba(90,169,135,0.05) 0%, rgba(90,169,135,0) 100%);
}
/* THE QUIET MACHINE — a slow cycle of neuro-symbolic work runs behind the
   hero, one behavior after another (signals -> pattern -> rules -> jury ->
   act -> memory), each at whisper opacity. See the hero module in site.js. */
.hero-canvas { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 1760px); height: 100%; }
/* film grain so the backdrop reads editorial, not flat-vector */
.hero-bg .grain { position: absolute; inset: 0; opacity: .05; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='140'%20height='140'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.9'%20numOctaves='2'%20stitchTiles='stitch'/%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (max-width: 759px) {
  .hero-canvas { opacity: .45; } /* a whisper behind stacked text */
}
.hero-inner { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 96px; }

h1.hero-h { font-family: var(--font-display); font-size: clamp(44px, 7vw, 86px); font-weight: 600; line-height: 0.98; letter-spacing: -0.04em; margin-bottom: 28px; max-width: 880px; color: var(--ink); }
h1.hero-h .accent { color: var(--accent-deep); }
.hero-lede { font-size: clamp(17px, 1.7vw, 20px); color: var(--sub); max-width: 580px; line-height: 1.5; margin-bottom: 34px; }
.hero-lede strong { color: var(--ink); font-weight: 600; }
.hero-cta-row { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.hero-more { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; padding: 15px 6px; }
.hero-foot { font-size: 14.5px; color: var(--sub); }

/* reserved product-UI slot — browser frame; real ExecVu screenshot drops in later */
.hero-lower { position: relative; z-index: 2; }
.product-slot { border-radius: 18px 18px 0 0; background: var(--card); border: 1px solid var(--line); border-bottom: none; box-shadow: 0 -1px 3px rgba(18,51,58,.04), var(--shadow-float); overflow: hidden; }
.product-slot .browser-bar { height: 44px; background: var(--bg-2); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 7px; padding: 0 18px; }
.product-slot .browser-bar .b-dot { width: 10px; height: 10px; border-radius: 50%; }
.product-slot .browser-bar .b-url { margin-left: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--sub); letter-spacing: .04em; }

/* ============ ANIMATED DECISION FLOW (lives inside the product slot) ============ */
.flow { padding: 26px 22px 22px; }
.flow-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.flow-head .ft { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); }
.flow-head .fp { font-family: var(--font-mono); font-size: 11px; color: var(--sub); letter-spacing: .04em; }
.flow-head .live { display: inline-flex; align-items: center; gap: 6px; }
.flow-head .live .d { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: blink 2s infinite; }
@keyframes blink { 0%,100% { opacity: 1 } 50% { opacity: .3 } }
.track { display: grid; grid-template-columns: 1fr 1fr 1fr; position: relative; max-width: 760px; margin: 0 auto; }
.step { text-align: center; position: relative; padding: 0 4px; }
.step .ring { width: 60px; height: 60px; border-radius: 17px; margin: 0 auto 13px; display: flex; align-items: center; justify-content: center; background: var(--bg); border: 1.5px solid var(--line); transition: border-color .45s var(--ease), background .45s var(--ease), box-shadow .45s var(--ease), transform .45s var(--ease); position: relative; }
.step .ring svg { width: 26px; height: 26px; transition: stroke .35s; }
.step .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); margin-bottom: 3px; transition: color .35s; }
.step .t { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--ink); letter-spacing: -0.01em; }
.step .s { font-size: 11px; color: var(--sub); margin-top: 2px; line-height: 1.35; }
/* active states */
.step.s1 .ring { border-color: var(--accent-deep); background: var(--accent-50); box-shadow: 0 0 0 5px rgba(44,126,139,.12); transform: translateY(-2px); }
.step.s1 .ring svg { stroke: var(--accent-deep); }
.step.s1 .k { color: var(--accent-deep); }
.step.s2 .ring { border-color: var(--ink); background: var(--ink); box-shadow: 0 0 0 5px rgba(18,51,58,.12); transform: translateY(-2px); }
.step.s2 .ring svg { stroke: var(--accent); }
.step.s2 .k { color: var(--ink); }
.step.s3 .ring { border-color: var(--green); background: #EDF6F1; box-shadow: 0 0 0 5px rgba(90,169,135,.18); transform: translateY(-2px); }
.step.s3 .ring svg { stroke: var(--green); }
.step.s3 .k { color: var(--green); }
/* done: completed stages settle */
.step.done .ring { border-color: var(--green); background: #F3FAF6; box-shadow: none; transform: none; }
.step.done .ring svg { stroke: var(--teal); }
.step.done .ring::after { content: ''; position: absolute; top: -3px; right: -3px; width: 15px; height: 15px; border-radius: 50%; background: var(--green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); background-size: 10px; background-repeat: no-repeat; background-position: center; box-shadow: 0 1px 3px rgba(18,51,58,.25); }
/* rejected: step 2 blocks the action — gold = the one attention pop in this view */
.step.rejected .ring { border-color: var(--gold); background: #FBF6E4; box-shadow: 0 0 0 5px rgba(228,195,74,.22); transform: translateY(-2px); animation: rejectShake .4s cubic-bezier(.36,.07,.19,.97); }
.step.rejected .ring svg { stroke: #8A741F; }
.step.rejected .k { color: #8A741F; }
.step.rejected .ring::after { content: '⊘'; position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 12px; line-height: 18px; text-align: center; box-shadow: 0 1px 4px rgba(228,195,74,.5); }
@keyframes rejectShake { 0%,100% { transform: translateY(-2px) translateX(0); } 25% { transform: translateY(-2px) translateX(-3px); } 75% { transform: translateY(-2px) translateX(3px); } }
/* connectors fill as the decision flows */
.conn { position: absolute; top: 30px; height: 2px; background: var(--line-2); overflow: hidden; }
.conn.c1 { left: 22%; width: 23%; }
.conn.c2 { left: 55%; width: 23%; }
.conn .fill { position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); transition: width .55s cubic-bezier(.4,0,.2,1); }
.conn.flowing .fill { width: 100%; }
.conn.dead .fill { background: var(--gold); width: 100%; opacity: .6; }
.io { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 760px; margin-left: auto; margin-right: auto; }
.io .io-lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: var(--sub); margin-bottom: 8px; transition: color .3s; }
.io .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.io .chip { padding: 4px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--sub); font-family: var(--font-mono); font-size: 10.5px; transition: all .35s var(--ease); }
.io .chip.lit-in { border-color: var(--accent-deep); background: var(--accent-50); color: var(--accent-deep); }
.io .chip.lit-out { border-color: var(--green); background: #EDF6F1; color: #3D7A5F; }
.io-group.active .io-lbl { color: var(--ink); }
.io-group.out { text-align: right; }
.io-group.out .chips { justify-content: flex-end; }
.reject { text-align: center; font-size: 12px; color: var(--txt); margin-top: 14px; min-height: 15px; opacity: 0; transform: translateY(-3px); transition: opacity .35s, transform .35s; font-family: var(--font-mono); font-weight: 500; }
.reject em { font-style: normal; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.reject.show { opacity: 1; transform: translateY(0); }
@media (max-width: 600px) {
  .step .s { display: none; }
  .flow { padding: 20px 14px 16px; }
  .io { flex-direction: column; gap: 14px; }
  .io-group.out { text-align: left; }
  .io-group.out .chips { justify-content: flex-start; }
}

/* ============ SECTIONS — scroll discipline: one idea per screen ============ */
.section { padding: var(--section-y) 0; position: relative; scroll-margin-top: 76px; }
.section--alt { background: var(--bg-2); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.sec-head { max-width: 680px; margin-bottom: 48px; }
.sec-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: var(--t-eyebrow); font-weight: 500; letter-spacing: var(--t-eyebrow-ls); text-transform: uppercase; color: var(--accent-deep); margin-bottom: 18px; }
.sec-eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--accent-deep); }
.section--dark .sec-eyebrow { color: var(--accent); }
.section--dark .sec-eyebrow::before { background: var(--accent); }
.sec-h { font-family: var(--font-display); font-size: clamp(28px, 4.8vw, 46px); font-weight: 600; line-height: 1.06; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 18px; }
.section--dark .sec-h { color: #fff; }
.sec-h em { font-style: normal; color: var(--accent-deep); }
.section--dark .sec-h em { color: var(--accent); }
.sec-lede { font-size: clamp(16px, 2.4vw, 20px); line-height: 1.5; color: var(--sub); max-width: 560px; }
.section--dark .sec-lede { color: var(--on-dark-sub); }

/* ---- archetype 1 · contrast row (#problem) ---- */
.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: var(--shadow-md); }
.contrast-cell { padding: 24px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contrast-cell:nth-child(2) { border-right: none; }
.contrast-cell:nth-child(3), .contrast-cell:nth-child(4) { border-bottom: none; }
.contrast-cell:last-child { background: var(--ink); border-color: var(--ink); }
.contrast-cell .cc-k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--sub); margin-bottom: 10px; }
.contrast-cell:last-child .cc-k { color: var(--accent); }
.contrast-cell .cc-v { font-family: var(--font-display); font-size: 17px; font-weight: 500; line-height: 1.25; color: var(--txt); letter-spacing: -0.01em; }
.contrast-cell:last-child .cc-v { color: #fff; }

/* ---- archetype 2 · operating-system stack (#platform) ---- */
.pstack { display: flex; flex-direction: column; gap: 13px; margin-top: 8px; }
.pstack-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); text-align: right; margin-bottom: -4px; }
.apps-row { display: grid; grid-template-columns: 1fr; gap: 13px; }
.papp { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; box-shadow: var(--shadow-md); }
.papp .papp-i { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-50); display: flex; align-items: center; justify-content: center; color: var(--accent-deep); margin-bottom: 13px; }
.papp .papp-i svg { width: 17px; height: 17px; }
.papp .papp-t { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 4px; letter-spacing: -0.01em; }
.papp .papp-d { font-size: 12.5px; color: var(--sub); line-height: 1.45; }
.api-band { background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: 12px; padding: 12px; text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-deep); }
.engine-layer { background: var(--ink); border-radius: 18px; padding: 28px 26px; color: #fff; box-shadow: var(--shadow-lg); }
.el-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.el-title { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: #fff; letter-spacing: -0.02em; }
.el-badge { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); background: var(--gold); padding: 5px 10px; border-radius: 6px; font-weight: 500; }
.el-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.el-cell { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.11); border-radius: 11px; padding: 15px 16px; }
.el-cell .elc-t { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 5px; }
.el-cell .elc-d { font-size: 12px; color: var(--on-dark-sub); line-height: 1.45; }
.el-cell .elc-t .k { color: var(--accent); }
.foundation { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm); }
.foundation .f-l { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--ink); }
.foundation .f-l span { color: var(--sub); font-weight: 400; font-size: 13px; display: block; margin-top: 3px; font-family: var(--font-body); }
.foundation .f-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.foundation .fch { font-family: var(--font-mono); font-size: 11.5px; color: var(--txt); background: var(--bg-2); border: 1px solid var(--line); border-radius: 7px; padding: 6px 10px; }

/* ---- archetype 3 · center-spine split (#integration) ---- */
.integ { display: grid; grid-template-columns: 1fr; gap: 16px; position: relative; align-items: stretch; }
.integ-spine { display: none; }
.integ-side { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--shadow-md); }
.integ-side .is-k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 6px; }
.integ-side .is-t { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 14px; letter-spacing: -0.01em; }
.integ-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.integ-chips .ich { font-family: var(--font-mono); font-size: 12px; color: var(--txt); background: var(--bg-2); border: 1px solid var(--line); border-radius: 7px; padding: 6px 11px; }
.integ-note { margin-top: 24px; font-size: 14.5px; color: var(--sub); line-height: 1.5; text-align: center; }
.integ-note strong { color: var(--ink); font-weight: 600; }

/* ---- archetype 4 · asymmetric grid, jury spans full (#how) ---- */
.diff-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.diff { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px; box-shadow: var(--shadow-md); }
.diff.diff-core { border: 1.5px solid var(--accent-deep); background: linear-gradient(180deg, var(--accent-50), var(--card)); }
.diff .diff-i { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-2); display: flex; align-items: center; justify-content: center; color: var(--accent-deep); margin-bottom: 16px; }
.diff.diff-core .diff-i { background: var(--ink); color: var(--accent); }
.diff .diff-t { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.01em; }
.diff .diff-d { font-size: 14.5px; line-height: 1.5; color: var(--sub); }
.platform-line { margin-top: 28px; padding: 20px 24px; border: 1px dashed var(--line-2); border-radius: 12px; font-size: 14.5px; color: var(--sub); text-align: center; }

/* ---- archetype 5 · stepped timeline (#operate) ---- */
.operate { display: grid; grid-template-columns: 1fr; gap: 0; position: relative; }
.op-step { padding: 0 0 32px 56px; position: relative; }
.op-step:last-child { padding-bottom: 0; }
.op-step::before { content: ''; position: absolute; left: 17px; top: 38px; bottom: -4px; width: 2px; background: var(--line-2); }
.op-step:last-child::before { display: none; }
.op-step .op-n { position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 15px; font-weight: 600; z-index: 1; }
.op-step .op-stage { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 6px; }
.op-step .op-t { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.02em; }
.op-step .op-d { font-size: 14.5px; line-height: 1.5; color: var(--sub); max-width: 520px; }
.operate-foot { margin-top: 28px; font-size: 14.5px; color: var(--sub); }
.operate-foot strong { color: var(--ink); font-weight: 600; }

/* ---- proof sectors (#proof) ---- */
.sectors { display: grid; grid-template-columns: 1fr; gap: 14px; }
.sector { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px; box-shadow: var(--shadow-md); border-top: 3px solid var(--accent-deep); }
.sector .sct-t { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.01em; }
.sector .sct-d { font-size: 14px; line-height: 1.5; color: var(--sub); }
.verticals-line { margin-top: 24px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .03em; color: var(--sub); line-height: 1.6; }
.proof-note { margin-top: 20px; font-size: 14.5px; color: var(--sub); line-height: 1.55; max-width: 560px; }
.proof-note strong { color: var(--ink); font-weight: 600; }

/* ---- trust (the only dark section, #trust) ---- */
.trust-block { margin-bottom: 44px; }
.trust-block:last-of-type { margin-bottom: 0; }
.trust-label { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--line-dark); }
.trust { display: grid; grid-template-columns: 1fr; gap: 24px; }
.trust-item .ti-i { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 14px; }
.trust-item .ti-t { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 7px; letter-spacing: -0.01em; }
.trust-item .ti-d { font-size: 14px; line-height: 1.5; color: var(--on-dark-sub); }
.trust-foot { margin-top: 44px; font-size: 13.5px; color: var(--on-dark-sub); line-height: 1.5; padding-top: 24px; border-top: 1px solid var(--line-dark); }

/* ---- close ---- */
.close-cta { text-align: center; max-width: 580px; margin: 0 auto; }
.close-cta .cta-h { font-family: var(--font-display); font-size: clamp(30px, 6vw, 52px); font-weight: 600; line-height: 1.04; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 16px; }
.close-cta .cta-d { font-size: clamp(16px, 2.6vw, 19px); line-height: 1.5; color: var(--sub); margin-bottom: 30px; max-width: 440px; margin-left: auto; margin-right: auto; }
.close-cta .cta-sub { margin-top: 24px; font-size: 13.5px; color: var(--sub); }

/* ---- footer ---- */
footer { background: var(--teal); padding: 54px 0 34px; color: var(--on-dark-sub); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 46px; }
.footer-col .logo { display: flex; font-size: 18px; padding: 0; margin-bottom: 16px; color: var(--on-dark); }
.footer-col > p { font-size: 14px; color: var(--on-dark-sub); line-height: 1.55; max-width: 30ch; }
.footer-col h5 { font-size: 13px; font-weight: 600; color: var(--on-dark-sub); opacity: .8; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--on-dark-sub); font-size: 14px; padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-col .fp { font-size: 14px; color: var(--on-dark-sub); line-height: 1.5; margin-top: 2px; }
.footer-bottom { padding-top: 30px; border-top: 1px solid var(--line-dark); font-size: 12.5px; color: var(--on-dark-sub); opacity: .85; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ============ SCROLL REVEAL (progressive enhancement — see tokens.css) ============ */
.js-reveal .stagger > * { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.stagger.is-visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.stagger.is-visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: .07s; }
.stagger.is-visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: .14s; }
.stagger.is-visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: .21s; }
.stagger.is-visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: .28s; }
.stagger.is-visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: .35s; }
@media (prefers-reduced-motion: reduce) { .js-reveal .stagger > * { opacity: 1; transform: none; transition: none; } }

/* ============ DESKTOP ============ */
@media (min-width: 760px) {
  .nav-inner { padding: 15px 40px; }
  .hero { padding-top: 148px; }
  .hero-inner { padding-top: 56px; padding-bottom: 140px; }
  .sec-head { margin-bottom: 64px; }

  .contrast { grid-template-columns: repeat(4, 1fr); }
  .contrast-cell { padding: 32px 26px; border-bottom: none; }
  .contrast-cell:nth-child(2) { border-right: 1px solid var(--line); }
  .contrast-cell:nth-child(4) { border-right: none; }

  .apps-row { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .el-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .foundation { flex-direction: row; align-items: center; justify-content: space-between; padding: 20px 26px; }

  .integ { grid-template-columns: 1fr auto 1fr; gap: 0; }
  .integ-side:first-of-type { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: none; }
  .integ-side:last-of-type { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left: none; }
  .integ-spine { display: flex; align-items: center; justify-content: center; width: 64px; background: var(--ink); color: var(--accent); font-size: 20px; position: relative; z-index: 1; }

  .diff-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .diff { padding: 30px 28px; }
  .diff.diff-core { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; }
  .diff.diff-core .diff-i { margin-bottom: 0; flex-shrink: 0; width: 52px; height: 52px; }
  .diff.diff-core .diff-body { flex: 1; }
  .diff.diff-core .diff-t { font-size: 22px; margin-bottom: 6px; }

  .operate { max-width: 680px; }
  .sectors { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .trust { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
}

/* ============ DRAFTING SHEET — the whole site is the engineering paper
   the instrument is drawn on (rule grid, corner ticks, ruler bands,
   paper-flat cells; only the product slot floats) ============ */
nav { border-bottom-color: var(--line); }

.section, .hero, .ruler-band { position: relative; }
/* the hero is the instrument's own sheet — page rules start at the first
   section, so the two line systems never fight */
.section::before, .section::after,
.ruler-band::before, .ruler-band::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 1px;
  background: var(--rule-col, var(--line)); pointer-events: none;
}
.section::before, .ruler-band::before { left: max(16px, calc(50% - 600px)); }
.section::after, .ruler-band::after { right: max(16px, calc(50% - 600px)); }
.section--dark { --rule-col: var(--line-dark); --tick-col: rgba(255,255,255,0.28); }
.section, .hero { border-bottom: 1px solid var(--line); }

/* + ticks where each section rule crosses the page rules */
.section > .container { position: relative; }
.section > .container::before, .section > .container::after {
  content: ''; position: absolute; width: 9px; height: 9px; pointer-events: none; z-index: 2;
  bottom: calc(-1 * var(--section-y));
  background:
    linear-gradient(var(--tick-col, var(--line-2)), var(--tick-col, var(--line-2))) center / 9px 1px no-repeat,
    linear-gradient(var(--tick-col, var(--line-2)), var(--tick-col, var(--line-2))) center / 1px 9px no-repeat;
}
.section > .container::before { left: max(16px, calc(50% - 600px)); transform: translate(-50%, 50%); }
.section > .container::after { right: max(16px, calc(50% - 600px)); transform: translate(50%, 50%); }

/* ruler band divider — a machinist's scale between beats */
.ruler-band {
  height: 26px; border-bottom: 1px solid var(--line); background-color: var(--bg);
  background-image:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 48px);
  background-size: auto 10px, auto 20px;
  background-position: left bottom, left bottom;
  background-repeat: repeat-x;
}

/* paper-flat surfaces */
.papp, .integ-side, .diff, .sector, .contrast, .foundation, .card { box-shadow: none; }
.engine-layer { box-shadow: none; border: 1px solid rgba(255,255,255,0.14); }

@media (min-width: 760px) {
  .section > .container::before, .section > .container::after { bottom: calc(-1 * var(--section-y-d)); }
}

/* ---- drawn diagrams (platform stack, integration spine) ---- */
.diagram svg { display: block; width: 100%; height: auto; max-width: 960px; margin: 0 auto; }
.plat-claim { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 3.2vw, 28px); line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); max-width: 640px; margin: 34px 0 6px; }
.eng-notes { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 26px; }
.eng-notes .en-k { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 6px; }
.eng-notes p { font-size: 14.5px; line-height: 1.55; color: var(--txt); max-width: 300px; }
@media (min-width: 760px) { .eng-notes { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.diagram-note { margin-top: 20px; font-size: 14.5px; color: var(--sub); }
.diagram-note strong { color: var(--ink); font-weight: 600; }

/* ---- domains × roles use-case explorer (#usecases) ---- */
#usecases { padding-top: 28px; }
@media (min-width: 760px) { #usecases { padding-top: 44px; } }
.uc-tabs { display: none; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.js-reveal .uc-tabs { display: flex; }
.uc-tab { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); color: var(--sub); cursor: pointer; transition: all var(--dur-fast) var(--ease); }
.uc-tab:hover { color: var(--ink); border-color: var(--ink); }
.uc-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.uc-panel { margin-bottom: 28px; }
.js-reveal .uc-panel { display: none; margin-bottom: 0; }
.js-reveal .uc-panel.active { display: block; }
.uc-domain { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 12px; }
.js-reveal .uc-domain { display: none; }
.uc-intro { font-size: 15.5px; color: var(--sub); line-height: 1.6; max-width: 640px; margin-bottom: 22px; }
/* the decision ladder: four levels, one rail — reads / reasons / decides / acts */
.ladder { display: flex; flex-direction: column; gap: 14px; }
.lane { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 18px 20px 20px; }
.lane-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.lane-role { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-deep); border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 8px; white-space: nowrap; }
.lane-q { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.rail { display: grid; grid-template-columns: 1fr; gap: 12px; position: relative; }
.st { position: relative; padding-left: 18px; transition: opacity .7s var(--ease); }
.st::before { content: ''; position: absolute; left: 0; top: 3px; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--bg); transition: all .35s var(--ease); }
.st-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); margin-bottom: 4px; transition: color .35s; }
.st-t { font-size: 14px; color: var(--txt); line-height: 1.5; }
.st-chips { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.st-chips span { font-family: var(--font-mono); font-size: 10px; color: var(--txt); background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; }
/* sequential lighting — armed only when JS runs, so no-JS stays fully visible */
.ladder.armed .st { opacity: .32; }
.ladder.armed .st.lit { opacity: 1; }
.st.lit::before { border-color: var(--accent-deep); background: var(--accent-50); }
.st.lit .st-k { color: var(--accent-deep); }
.st.st-act.lit::before { border-color: var(--green); background: var(--green); }
.st.st-act.lit .st-k { color: var(--green); }
.uc-foot { margin-top: 20px; font-size: 13.5px; color: var(--sub); line-height: 1.5; }
@media (min-width: 900px) {
  .rail { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .rail::before { content: ''; position: absolute; top: 6px; left: 4px; right: 22%; height: 1px; background: var(--line-2); }
  .st { padding-left: 0; padding-top: 16px; }
  .st::before { top: 0; }
}

/* ---- the section cut: a domain drawn in elevation; floors are the levels ---- */
.cut { margin-bottom: 24px; }
.cut svg { display: block; width: 100%; max-width: 920px; margin: 0 auto; height: auto; }
.cut .floor { opacity: 1; }
.cut-out { animation: cutDash 4.5s linear infinite; }
@keyframes cutDash { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -412; } }
@media (prefers-reduced-motion: reduce) { .cut-out { animation: none; stroke-dasharray: none; stroke-opacity: .25; } }
/* cut-mode: the drawing is level 1; one lane at a time is level 2 */
.js-reveal .cut-mode .lane { display: none; }
.js-reveal .cut-mode .lane.on { display: block; }
.lane-armed .st { opacity: .35; }
.lane-armed .st.lit { opacity: 1; }

/* section cut layout: drawing beside the live lane on desktop; accordion on mobile */
.cut .floor .ff { opacity: 0; transition: opacity .4s var(--ease); }
.cut .floor.on .ff { opacity: 1; }
@media (min-width: 900px) {
  .js-reveal .uc-panel.cut-mode.active { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px 36px; align-items: center; }
  .cut-mode .uc-intro { grid-column: 1 / -1; margin-bottom: 0; }
  .cut-mode .cut { margin-bottom: 0; }
  .cut-mode .ladder .rail { grid-template-columns: 1fr; gap: 16px; }
  .cut-mode .ditem-h .dq { font-size: 21px; }
  .cut-mode .ladder .rail::before { display: none; }
  .cut-mode .ladder .st { padding-left: 18px; padding-top: 0; }
  .cut-mode .ladder .st::before { top: 3px; }
}
@media (max-width: 759px) {
  .cut { display: none; }
  /* floor accordion: all four levels listed, one expanded at a time */
  .js-reveal .cut-mode .lane { display: block; }
  .js-reveal .cut-mode .lane .rail { display: none; }
  .js-reveal .cut-mode .lane.open .rail { display: grid; }
  .js-reveal .cut-mode .lane-head { cursor: pointer; margin-bottom: 0; padding-right: 26px; position: relative; }
  .js-reveal .cut-mode .lane.open .lane-head { margin-bottom: 16px; }
  .js-reveal .cut-mode .lane-head::after { content: '+'; position: absolute; right: 0; top: 0; font-family: var(--font-mono); font-size: 16px; color: var(--accent-deep); }
  .js-reveal .cut-mode .lane.open .lane-head::after { content: '\2212'; }
}

/* ---- two-axis explorer: rooms (departments) × rings (levels) ---- */
.cut .room { fill: transparent; stroke: #3AA5B5; stroke-opacity: 0; cursor: pointer; outline: none; transition: stroke-opacity .3s var(--ease); }
.cut .room.on, .cut .room:focus-visible { stroke-opacity: .75; }
/* the active room lights as a unit: floor fill + its own furniture at full strength */
.cut .roomg .rmf { fill: #3AA5B5; fill-opacity: 0; transition: fill-opacity .35s var(--ease); }
.cut .roomg.on .rmf { fill-opacity: .3; }
.cut .roomg line, .cut .roomg rect, .cut .roomg circle, .cut .roomg polyline, .cut .roomg text { transition: stroke-opacity .35s var(--ease), fill-opacity .35s var(--ease); }
.cut .roomg.on line, .cut .roomg.on rect:not(.rmf), .cut .roomg.on circle, .cut .roomg.on polyline { stroke: #12333A; stroke-opacity: .85; }
.cut .roomg.on text { fill: #12333A; fill-opacity: .9; }
.cut .roomg .rlbl { transition: font-size .4s var(--ease), fill-opacity .35s var(--ease); }
.cut .roomg.on .rlbl { font-size: 11px; }
.uc-card { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 18px 20px 20px; }
.uc-card-h { display: none; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.js-reveal .uc-card-h { display: flex; }
.uch-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-deep); border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 8px; }
.uch-note { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; color: var(--sub); }
.dgrp { margin-bottom: 18px; }
.dgrp:last-child { margin-bottom: 0; }
.dgrp-h { display: block; width: 100%; text-align: left; background: none; border: none; border-bottom: 1px solid var(--line); padding: 0 0 8px; margin-bottom: 10px; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); cursor: default; }
.ditem { border-bottom: 1px solid var(--line); padding: 8px 0; }
.ditem:last-child { border-bottom: none; }
.ditem-h { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; width: 100%; text-align: left; background: none; border: none; padding: 4px 0 0; cursor: pointer; }
.ditem-h .lv, .ditem-h .rm { flex-shrink: 0; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-deep); border: 1px solid var(--line-2); border-radius: 5px; padding: 3px 6px; }
.ditem-h .rm { display: none; }
.ditem-h .dq { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -0.015em; line-height: 1.25; }
.ditem .rail { display: grid; margin-top: 16px; }
/* de-chromed card: hierarchy from type, not chips and bullets */
.cut-mode .uc-card .st { padding-left: 0; }
.cut-mode .uc-card .st::before { display: none; }
.cut-mode .uc-card .st-k { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 10.5px; letter-spacing: .07em; }
.cut-mode .uch-tag { border: none; padding: 0; font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; text-transform: none; color: var(--ink); }
.cut-mode .ditem-h .lv, .cut-mode .ditem-h .rm { border: none; padding: 0; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--sub); }
/* one model: idle = the whole company; hover a room = its calls, one at a time */
.js-reveal .uc-card .dgrp { display: none; }
.js-reveal .uc-card .dgrp.show { display: block; }
.js-reveal .uc-card .dgrp-h { display: none; }
.js-reveal .uc-card .ditem { display: none; border-bottom: none; }
.js-reveal .uc-card .ditem.on { display: block; animation: dfade .75s var(--ease); }
@keyframes dfade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.dmini { display: none; }
.dmini svg { display: block; width: 100%; height: auto; }
.uc-dots { display: none; justify-content: center; gap: 7px; margin-top: 14px; }
.uc-dots button { width: 7px; height: 7px; border-radius: 4px; border: none; padding: 0; background: var(--line-2); cursor: pointer; transition: all .25s var(--ease); }
.uc-dots button.on { width: 22px; background: var(--ink); }
@media (min-width: 900px) {
  .cut-mode .uc-card .rail { grid-template-columns: 1fr; gap: 16px; }
  .cut-mode .uc-card .rail::before { display: none; }
  .cut-mode .uc-card .st { padding-left: 0; padding-top: 0; }
}
@media (max-width: 759px) {
  .js-reveal .uc-dots { display: flex; }
  /* mobile: one department per screen — swipeable, with dots (Cartesia pattern) */
  .js-reveal .uc-card.mob { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; padding-left: 0; padding-right: 0; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .js-reveal .uc-card.mob::-webkit-scrollbar { display: none; }
  .js-reveal .uc-card.mob .dgrp { display: block; flex: 0 0 100%; min-width: 100%; scroll-snap-align: start; scroll-snap-stop: always; margin-bottom: 0; padding: 0 20px; }
  .js-reveal .uc-card.mob .dgrp-h { display: block; cursor: default; border-bottom: none; font-size: 12px; margin: 12px 0 4px; padding: 0; }
  .js-reveal .uc-card.mob .dmini { display: block; }
  .js-reveal .uc-card.mob .ditem { display: none; }
  .js-reveal .uc-card.mob .ditem.on { display: block; }
  .js-reveal .uc-card.mob .dgrp[data-dept="company"] { display: none; }
  .js-reveal .uc-card.mob .uc-card-h { display: none; }
}

/* ================= stack figure (designed information, not line art) ================= */
.stackfig { max-width: 880px; margin: 0 auto; }
.sf-zone { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--sub); opacity: .75; margin: 0 0 8px 2px; }
.sf-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sf-app { background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 16px; }
.sf-app .t, .sf-api .t, .sf-band .t, .sf-edge .t { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink); letter-spacing: -0.01em; }
.sf-app .s, .sf-api .s, .sf-band .s, .sf-edge .s { font-size: 12.5px; color: var(--sub); line-height: 1.45; margin-top: 2px; }
.sf-link { display: flex; justify-content: center; }
.sf-link span { width: 1px; height: 20px; background: var(--line-2); }
.sf-api { display: flex; align-items: center; gap: 14px; border: 1.5px dashed rgba(44,126,139,.45); background: rgba(58,165,181,.07); border-radius: 12px; padding: 11px 16px; }
.sf-chip { flex-shrink: 0; font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; color: var(--accent-deep); background: var(--card); border: 1px solid var(--line-2); border-radius: 5px; padding: 3px 7px; }
.sf-chip-out { color: var(--green); }
.sf-engine { border: 1.5px solid rgba(18,51,58,.4); background: var(--card); border-radius: 14px; padding: 14px 14px 12px; }
.sf-eng-h { display: flex; align-items: baseline; gap: 8px; padding: 0 4px 10px; }
.sf-eng-h .t { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); }
.sf-eng-h .s { font-size: 12px; color: var(--sub); }
.sf-band { display: flex; align-items: flex-start; gap: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; }
.sf-band + .sf-band { margin-top: 8px; }
.sf-band .sf-chip { margin-top: 2px; }
.sf-band-jury { background: rgba(58,165,181,.09); }
.sf-band-rules { background: rgba(44,126,139,.06); }
.sf-band-map { background: rgba(90,169,135,.10); }
.sf-caps { display: grid; grid-template-columns: 1fr 1fr; }
.sf-cap { text-align: center; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--sub); padding: 8px 0 6px; }
.sf-edges { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sf-edge { display: flex; align-items: flex-start; gap: 14px; border: 1.5px dashed rgba(44,126,139,.4); border-radius: 12px; padding: 12px 16px; background: var(--card); }
.sf-edge .sf-chip { margin-top: 2px; }
.sf-edge-out { border-color: rgba(90,169,135,.55); }
@media (max-width: 759px) { .sf-apps, .sf-edges { grid-template-columns: 1fr; gap: 8px; } .sf-caps { display: none; } }
.plat-more { margin-top: 20px; }
.plat-more a { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--accent-deep); text-decoration: none; border-bottom: 1.5px solid rgba(44,126,139,.35); padding-bottom: 2px; transition: all .2s var(--ease); }
.plat-more a:hover { color: var(--ink); border-color: var(--ink); }

/* ================= platform deep-dive page ================= */
.pf-hero { position: relative; background: var(--ink); color: var(--on-dark); padding: 150px 0 110px; overflow: hidden; border-bottom: 1px solid var(--line); }
.pfh-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.pfh-inner { position: relative; }
.pfh-h { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -0.035em; color: #fff; margin-bottom: 22px; }
.pfh-h em { font-style: normal; color: var(--accent); }
.pfh-lede { font-size: clamp(16px, 2.4vw, 19px); color: var(--on-dark-sub); max-width: 560px; line-height: 1.55; }
.pf-split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) {
  .pf-split { grid-template-columns: .9fr 1.1fr; gap: 56px; }
  .pf-split-rev .pf-copy { order: 2; }
  .pf-split-rev .pf-stage { order: 1; }
}
.pf-feats { margin-top: 26px; border-top: 1px solid var(--line); }
.pf-feat { padding: 14px 0; border-bottom: 1px solid var(--line); }
.pff-t { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--ink); margin-bottom: 3px; }
.pff-d { font-size: 13.5px; color: var(--sub); line-height: 1.5; }
.pf-panel { position: relative; border-radius: 18px; border: 1px solid var(--line); background: radial-gradient(120% 90% at 72% 8%, rgba(58,165,181,.16), rgba(58,165,181,0) 62%), #EAF4F5; padding: clamp(22px, 4.5vw, 48px); }
.ui-card { position: relative; background: #fff; border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 2px 6px rgba(18,51,58,.06), 0 24px 60px -12px rgba(18,51,58,.22); padding: 18px 20px; max-width: 470px; margin: 0 auto; }

.uic-bar { display: flex; align-items: center; gap: 6px; margin: -18px -20px 14px; padding: 9px 14px; border-bottom: 1px solid var(--line); background: var(--bg); border-radius: 14px 14px 0 0; }
.uic-bar span { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.uic-bar em { font-style: normal; margin-left: auto; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .12em; color: var(--sub); }
.uic-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 13px; }
.uic-title { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--ink); letter-spacing: -0.01em; }
.uic-chip { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); border: 1px solid var(--line-2); border-radius: 5px; padding: 3px 7px; white-space: nowrap; }
.uic-row { margin-bottom: 12px; }
.uic-k { font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--sub); margin-bottom: 4px; }
.uic-v { font-size: 13.5px; color: var(--txt); line-height: 1.5; }
.uic-jury { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.jvote { width: 10px; height: 10px; border-radius: 50%; background: var(--green); opacity: .85; }
.jvote-hold { background: transparent; border: 1.6px solid var(--gold); opacity: 1; }
.uic-jnote { font-size: 11.5px; color: var(--sub); margin-left: 4px; }
.uic-actions { display: flex; gap: 10px; align-items: center; margin: 15px 0 10px; flex-wrap: wrap; }
.uic-actions .btn { padding: 9px 16px; font-size: 12.5px; cursor: default; }
.uic-ghost { background: transparent; border: 1px solid var(--line-2); color: var(--ink); }
.uic-foot, .uic-meta { font-size: 11.5px; color: var(--sub); }
.uic-field { margin-bottom: 10px; }
.uic-input { border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 12px; font-size: 13px; color: var(--txt); background: var(--bg); }
.uil { display: flex; gap: 12px; padding: 9px 2px; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.uil:last-child { border-bottom: none; }
.uil-t { font-family: var(--font-mono); font-size: 10.5px; color: var(--sub); flex-shrink: 0; padding-top: 2px; }
.uil-d { color: var(--txt); line-height: 1.45; }
.uil-src { font-family: var(--font-mono); font-size: 10px; color: var(--sub); }
.uil-act .uil-d { color: var(--green); font-weight: 600; }
.pf-apps { display: grid; gap: 14px; }
@media (min-width: 900px) { .pf-apps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.pfa { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 22px; }
.pfa-t { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink); }
.pfa-s { font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-deep); margin: 5px 0 10px; }
.pfa-d { font-size: 13.5px; color: var(--sub); line-height: 1.55; }

/* ---- interactivity: tactile figure, drawn act lines ---- */
.sf-band, .sf-app, .sf-edge { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.sf-band:hover, .sf-app:hover, .sf-edge:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(18,51,58,.08); border-color: rgba(44,126,139,.55); }
.js-reveal .diagram .ln-in { stroke-dasharray: 270; stroke-dashoffset: 270; }
.js-reveal .diagram .ln-out { stroke-dasharray: 210; stroke-dashoffset: 210; }
.js-reveal .diagram.is-visible .ln-in { animation: lndraw 1s var(--ease) forwards .3s; }
.js-reveal .diagram.is-visible .ln-out { animation: lndraw .8s var(--ease) forwards 1.3s; }
@keyframes lndraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .js-reveal .diagram .ln-in, .js-reveal .diagram .ln-out { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; } }

/* ---- manifesto: the statement, lit by scroll ---- */
.manifesto { position: relative; height: 140vh; background: var(--card); border-bottom: 1px solid var(--line); }
.mani-pin { position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; }
.mani { font-family: var(--font-display); font-weight: 600; font-size: clamp(27px, 4.9vw, 58px); line-height: 1.2; letter-spacing: -0.03em; color: var(--txt); max-width: 1080px; }
.mani em { font-style: normal; }
.js-reveal .mani .mw { color: rgba(27, 50, 56, .22); transition: color .45s var(--ease); }
.js-reveal .mani .mw.lit { color: #4A6167; }
.js-reveal .mani em .mw.lit { color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .manifesto { height: auto; padding: 120px 0; }
  .mani-pin { position: static; min-height: 0; }
  .js-reveal .mani .mw, .js-reveal .mani em .mw { color: inherit; }
}

/* ---- homepage product teasers ---- */
.op-split, .tr-split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) {
  .op-split { grid-template-columns: 1fr .85fr; gap: 56px; }
  .tr-split { grid-template-columns: 1fr .8fr; gap: 56px; align-items: center; margin-bottom: 40px; }
  .tr-split .sec-head { margin-bottom: 0; }
}
.pf-panel-dark { background: radial-gradient(120% 90% at 72% 8%, rgba(58,165,181,.14), rgba(58,165,181,0) 62%), rgba(255,255,255,.05); border-color: var(--line-dark); }

/* ---- integration figure ---- */
.iofig { display: grid; gap: 18px; max-width: 960px; margin: 0 auto; }
@media (min-width: 900px) { .iofig { grid-template-columns: 1fr 210px 1fr; gap: 28px; align-items: center; } }
.io-h { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--sub); opacity: .8; margin-bottom: 10px; }
.io-row { background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 16px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.io-row + .io-row { margin-top: 8px; }
.io-row:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(18,51,58,.08); border-color: rgba(44,126,139,.55); }
.io-row .t { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink); }
.io-row .s { font-size: 12.5px; color: var(--sub); line-height: 1.45; margin-top: 2px; }
.io-row-out { border-style: dashed; border-color: rgba(90,169,135,.5); }
.io-row-out:hover { border-color: var(--green); }
.io-mid { text-align: center; }
.io-engine { background: var(--card); border: 1.5px solid rgba(18,51,58,.4); border-radius: 16px; padding: 18px 14px 14px; }
.io-engine svg { width: 72px; height: 72px; margin: 0 auto 6px; display: block; }
.io-engine .t { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); }
.io-engine .s { font-size: 11.5px; color: var(--sub); margin-top: 2px; }
.io-gate { margin-top: 10px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }

/* ---- trust centre layout ---- */
.tc { display: grid; gap: 36px; }
@media (min-width: 900px) { .tc { grid-template-columns: 220px 1fr; gap: 64px; align-items: start; } .tc-toc { position: sticky; top: 96px; } }
/* mobile: the contents become one swipeable strip instead of a full screen of list */
@media (max-width: 899px) {
  .tc { gap: 22px; }
  .tc nav.tc-toc { flex-direction: row; align-items: center; gap: 8px; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
  .tc nav.tc-toc::-webkit-scrollbar { display: none; }
  .tc .tc-toc-label { flex: 0 0 auto; margin-bottom: 0; margin-right: 4px; white-space: nowrap; }
  .tc .tc-toc a { flex: 0 0 auto; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px;
    background: var(--card); font-size: 12.5px; white-space: nowrap; }
  .tc .tc-sec { padding-bottom: 30px; margin-bottom: 30px; }
}
nav.tc-toc { position: static; inset: auto; z-index: auto; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; box-shadow: none; border: none; height: auto; width: auto; display: flex; flex-direction: column; }
.tc-toc-label { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); margin-bottom: 10px; }
.tc-toc a { font-size: 13.5px; font-weight: 500; color: var(--sub); text-decoration: none; padding: 5px 0; transition: color .2s var(--ease); counter-increment: toc; }
.tc-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-size: 10px; color: var(--accent-deep); margin-right: 10px; }
.tc-toc { counter-reset: toc; }
.tc-toc a:hover { color: var(--ink); }
.tc-body { counter-reset: tcs; }
.tc-sec { max-width: 640px; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.tc-sec:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.tc-sec h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 12px; }
.tc-sec h3::before { counter-increment: tcs; content: counter(tcs, decimal-leading-zero); display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--accent-deep); margin-bottom: 8px; }
.tc-sec p { font-size: 15px; line-height: 1.65; color: var(--txt); margin-bottom: 12px; }
.tc-sec p:last-child { margin-bottom: 0; }
.tc-sec a { color: var(--accent-deep); }

.trust-more { display: inline-block; margin-left: 10px; color: var(--accent); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid rgba(58,165,181,.4); }
.trust-more:hover { color: #fff; border-color: #fff; }

.uic-time { color: var(--sub); }

.pfh-cta { margin-top: 30px; }
.pfh-note { margin-top: 14px; font-size: 13px; color: var(--on-dark-sub); }

/* ---- book a call: three ways in ---- */
.pf-hero-slim { padding: 130px 0 70px; }
.reach { display: grid; gap: 22px; max-width: 980px; }
@media (min-width: 900px) { .reach { grid-template-columns: 1.15fr .85fr; gap: 28px; } }
.reach-form { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px 26px 22px; }
.rf-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink); margin-bottom: 18px; }
.rf-l { display: block; font-family: 'Inter', sans-serif; font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--sub); margin: 14px 0 6px; }
.rf-i { width: 100%; border: 1px solid var(--line-2); border-radius: 9px; padding: 11px 13px; font-size: 14.5px; font-family: 'Inter', sans-serif; color: var(--txt); background: var(--bg); outline: none; transition: border-color .2s var(--ease); }
.rf-i:focus { border-color: var(--accent-deep); }
.rf-t { resize: vertical; }
.reach-form .btn { margin-top: 18px; }
.rf-note { margin-top: 12px; font-size: 12px; color: var(--sub); }
.reach-side { display: grid; gap: 22px; align-content: start; }
.reach-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.rc-t { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); margin-bottom: 6px; }
.rc-d { font-size: 13.5px; color: var(--sub); line-height: 1.55; margin-bottom: 14px; }
.reach-card:last-child .rc-d { margin-bottom: 0; }
.rc-mail { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--accent-deep); text-decoration: none; border-bottom: 1.5px solid rgba(44,126,139,.35); padding-bottom: 2px; }
.rc-mail:hover { color: var(--ink); border-color: var(--ink); }

/* audit fixes: presence, delight, small screens */
.pfh-art { animation: pfdrift 240s linear infinite; transform-origin: 60% 50%; }
@keyframes pfdrift { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pfh-art { animation: none; } }
.ui-card { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.ui-card:hover { transform: translateY(-4px); box-shadow: 0 4px 10px rgba(18,51,58,.08), 0 30px 66px -12px rgba(18,51,58,.26); }
@media (max-width: 420px) {
  .sf-band, .sf-edge, .sf-api { flex-wrap: wrap; gap: 8px; }
  .uic-head { flex-wrap: wrap; }
  .mani { font-size: 24px; }
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600; font-size: 13px; }
.skip-link:focus { left: 0; }

.rf-row { display: flex; gap: 10px; }
.rf-cc { width: 86px; flex: 0 0 86px; text-align: center; }

.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.rf-note.ok { color: var(--green); font-weight: 600; }
.rf-note.err { color: #B4552D; }

/* ============ PROOF BAND ============ */
.proofband { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); padding: 18px 0; overflow: hidden; }
.pb-inner { display: flex; align-items: center; gap: 22px; }
.pb-lbl { font-family: var(--font-mono, 'JetBrains Mono', monospace); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-deep); white-space: nowrap; flex: 0 0 auto; }
.pb-marq { overflow: hidden; flex: 1 1 auto; -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent); mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent); }
.pb-track { display: flex; align-items: center; gap: 26px; width: max-content; animation: pb-slide 46s linear infinite; will-change: transform; }
.pb-marq:hover .pb-track { animation-play-state: paused; }
@keyframes pb-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.pb-i { font-family: var(--font-display, 'Space Grotesk', sans-serif); font-weight: 500; font-size: 15px; letter-spacing: -0.01em; color: var(--txt); white-space: nowrap; }
.pb-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; opacity: 0.7; }
@media (max-width: 759px) {
  .pb-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pb-marq { width: 100%; }
  .pb-i { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .pb-track { animation: none; flex-wrap: wrap; width: auto; }
  .pb-track [aria-hidden="true"] { display: none; }
  .pb-marq { mask-image: none; -webkit-mask-image: none; }
}

/* ---- ExecVu queue + product captions ---- */
.uiq { display: grid; }
.uiq-r { display: flex; align-items: baseline; gap: 10px; padding: 10px 2px; border-bottom: 1px dashed var(--line); }
.uiq-r:last-child { border-bottom: none; }
.uiq-d { flex: 0 0 auto; font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); border: 1px solid var(--line-2); border-radius: 5px; padding: 2px 6px; }
.uiq-t { font-size: 13px; color: var(--txt); line-height: 1.4; }
.uiq-v { margin-left: auto; flex: 0 0 auto; font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--ink); }
.uiq-done .uiq-t, .uiq-done .uiq-d { opacity: .55; }
.uiq-done .uiq-v { color: var(--green); font-family: var(--font-mono); font-weight: 400; font-size: 10.5px; }
.pf-cap { text-align: center; margin-top: 14px; font-size: 12px; color: var(--sub); }
