/* Home page: cinematic, restrained. Scale, contrast and pacing over effects. */
.cn-k { display: block; font: 600 13px var(--m); letter-spacing: .08em; text-transform: uppercase; color: #0B7A72; margin-bottom: 18px; }

.cn-say { background: #0E1216; color: #fff; min-height: 100vh; display: grid; align-items: center; padding: 120px 0; }
.cn-say .cn-k { color: #5EEAD4; }
.cn-line { margin: 0; max-width: 24ch; font-weight: 600; font-size: clamp(2.1rem, 4.6vw, 4.4rem); line-height: 1.14; letter-spacing: -0.025em; }
.cn-line .cw { color: rgba(255,255,255,.16); }
.cn-line em { font-style: normal; }
.cn-line .cw.acc { --on: #5EEAD4; }
html:not(.js) .cn-line .cw, .cn-static .cn-line .cw { color: #fff; }

.cn-watch { padding: 120px 0 40px; background: #F4F6F8; }
.cn-watch h2 { margin: 0; max-width: 20ch; font-weight: 600; font-size: clamp(2rem, 3.6vw, 3.3rem); line-height: 1.12; letter-spacing: -0.022em; }
.cn-watch p { margin: 20px 0 0; max-width: 56ch; font-size: 20px; line-height: 1.5; color: #3A4048; }
.cn-also { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 28px; font-size: 15px; color: var(--k-ink2); }
.cn-also span { margin-right: 4px; }
.cn-also a { text-decoration: none; padding: 7px 14px; border: 1px solid var(--k-line); border-radius: 999px; background: #fff; color: var(--k-ink); transition: border-color 200ms, color 200ms; }
.cn-also a:hover { border-color: #0FA99E; color: #0B7A72; }
.cn-watch + .w4 { border-top: 0; }

.cn-proof { background: #0E1216; color: #fff; padding: 140px 0; }
.cn-proof .k-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
.cn-proof .cn-k { color: #5EEAD4; }
.cn-proof h2 { margin: 0; font-weight: 600; font-size: clamp(2rem, 3.6vw, 3.3rem); line-height: 1.12; letter-spacing: -0.022em; }
.cn-proof-h p { margin: 20px 0 0; font-size: 20px; line-height: 1.5; color: #B6C2D1; max-width: 46ch; }
.cn-link { display: inline-block; margin-top: 28px; color: #5EEAD4; text-decoration: none; font-weight: 600; font-size: 17px; }
.cn-link:hover { text-decoration: underline; }
.cn-card { background: #151B22; border: 1px solid #263140; border-radius: 16px; padding: 36px; display: grid; gap: 26px; }
.cn-card-q { margin: 0; font-size: 22px; font-weight: 600; display: grid; gap: 6px; }
.cn-card-q small { font: 500 13px var(--m); letter-spacing: .04em; color: #8FA0B4; text-transform: uppercase; }
.cn-bar { display: grid; grid-template-columns: 190px 1fr 80px; gap: 16px; align-items: center; font-size: 16px; color: #B6C2D1; }
.cn-bar i { height: 18px; border-radius: 4px; background: #3A4656; width: var(--v); }
.cn-bar.us i { background: linear-gradient(90deg, #0FA99E, #5EEAD4); }
.cn-bar b { font: 700 28px var(--f); color: #fff; text-align: right; }
.cn-bar.us b { color: #5EEAD4; }
.cn-dec { margin: 0; padding-top: 22px; border-top: 1px solid #263140; font-size: 17px; color: #D5DDE7; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.cn-dec span { font: 700 14px var(--m); color: #0E1216; background: #5EEAD4; padding: 4px 10px; border-radius: 6px; }

@media (max-width: 900px) {
  .cn-say { min-height: 0; padding: 96px 0; }
  .cn-watch { padding: 80px 0 24px; } .cn-watch p, .cn-proof-h p { font-size: 17px; }
  .cn-proof { padding: 96px 0; } .cn-proof .k-wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .cn-card { padding: 24px; } .cn-bar { grid-template-columns: 1fr 64px; } .cn-bar span { grid-column: 1 / -1; } .cn-bar b { font-size: 22px; }
}
.cn-say .k-wrap { width: 100%; box-sizing: border-box; }
.cn-watch { background: var(--k-bg3, #F6F6F4); padding-bottom: 0; }
.cn-watch + .w4 { border-top: 0; background: var(--k-bg3, #F6F6F4); }
.cn-proof a.cn-link { color: #5EEAD4; }
body:has(.cn-watch) .w4 { border-top: 0; }
.cn-say .cn-line { max-width: 30ch; font-size: clamp(1.9rem, 3.5vw, 3.4rem); line-height: 1.18; }

/* Statement diagram: builds in step with the sentence */
.cn-say-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.cn-dg { width: 100%; max-width: 560px; justify-self: end; overflow: visible; }
.cn-dg text { font: 600 12px var(--m); letter-spacing: .08em; fill: #8FA0B4; }
.cn-dg text.sm { font: 500 12px var(--f); letter-spacing: 0; fill: #B6C2D1; }
.cn-dg .dg-wall rect { fill: rgba(94,234,212,.03); stroke: #5EEAD4; stroke-width: 1.5; stroke-dasharray: 6 6; }
.cn-dg .dg-wall text { fill: #5EEAD4; }
.cn-dg .dg-data ellipse, .cn-dg .dg-data path { fill: #151B22; stroke: #5EEAD4; stroke-width: 1.5; }
.cn-dg .dg-l1 path, .cn-dg .dg-l2 path, .cn-dg .dg-l3 path { fill: none; stroke: #2F8F87; stroke-width: 1.5; }
.cn-dg .dg-agents circle { fill: #151B22; stroke: #5EEAD4; stroke-width: 1.5; }
.cn-dg .dg-test > rect:first-child, .cn-dg .dg-out rect { fill: #151B22; stroke: #31404F; stroke-width: 1.2; }
.cn-dg .bt { fill: #4A5666; } .cn-dg .bj { fill: #5EEAD4; }
.cn-dg .dg-lock rect { fill: #5EEAD4; } .cn-dg .dg-lock .sh { fill: none; stroke: #5EEAD4; stroke-width: 3.5; stroke-linecap: round; }
.cn-dg .dg-lock text { fill: #5EEAD4; }
.cn-dg .dg-out text { font-size: 13px; fill: #E8EEF7; }
.cn-dg .dg-agents circle.pulse { animation: dgPulse 2.4s ease-in-out infinite; }
@keyframes dgPulse { 50% { fill: rgba(94,234,212,.22); } }
@media (max-width: 900px) { .cn-say-in { grid-template-columns: minmax(0, 1fr); gap: 40px; } .cn-dg { justify-self: start; max-width: 440px; } }

/* Statement v2: fits exactly under the header, no dead space, ambient depth. */
.cn-say { position: relative; overflow: hidden; min-height: calc(100vh - 68px); padding: 48px 0; box-sizing: border-box;
  background-color: #0B0F13;
  background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1.2px);
  background-size: 26px 26px; }
.cn-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(48% 62% at 76% 52%, rgba(15,169,158,.32), transparent 70%), radial-gradient(40% 50% at 12% 40%, rgba(94,234,212,.06), transparent 70%); }
.cn-say-in { position: relative; z-index: 1; }
.cn-say .cn-line { max-width: 26ch; font-size: clamp(1.8rem, 2.75vw, 2.85rem); line-height: 1.22; letter-spacing: -0.02em; }
.cn-say .cn-line .cw { color: rgba(255,255,255,.14); }
.cn-dg { max-width: 600px; filter: drop-shadow(0 30px 60px rgba(0,0,0,.45)); }
.cn-dg .dg-wall rect { fill: rgba(11,15,19,.72); }
@media (max-width: 900px) { .cn-say { min-height: 0; padding: 72px 0; } .cn-say .cn-line { font-size: 1.75rem; } }

/* Statement v3: five beats. */
.cs-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.cs-line { margin: 0; max-width: 30ch; font-weight: 600; font-size: clamp(1.6rem, 2.35vw, 2.5rem); line-height: 1.26; letter-spacing: -0.018em; color: #fff; }
.cs-line .cl { color: rgba(255,255,255,.14); }
.cs-means { position: relative; margin-top: 34px; min-height: 7.2em; max-width: 46ch; }
.cs-m { position: absolute; inset: 0 0 auto 0; margin: 0; padding-left: 20px; border-left: 2px solid #5EEAD4; font-size: 21px; line-height: 1.5; color: #D5DEE8; }
.cs-k { display: block; margin-bottom: 8px; font: 600 13px var(--m); letter-spacing: .08em; text-transform: uppercase; color: #5EEAD4; }
.cs-rail { list-style: none; margin: 30px 0 0; padding: 0; display: flex; gap: 8px; max-width: 46ch; }
.cs-rail li { --f: 0; flex: 1; }
.cs-rail li::before { content: ''; display: block; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #5EEAD4 calc(var(--f) * 100%), rgba(255,255,255,.14) 0); }
.cs-rail span { display: block; margin-top: 10px; font: 500 12px var(--m); letter-spacing: .06em; text-transform: uppercase; color: #6F7F92; }
.cs-list { display: none; list-style: none; margin: 0; padding: 0; }
.cs-list li { padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); }
.cs-list b { display: block; font-size: 1.35rem; line-height: 1.3; font-weight: 600; color: #fff; }
.cs-list b.acc { color: #5EEAD4; }
.cs-list p { margin: 8px 0 0; font-size: 17px; line-height: 1.5; color: #B6C2D1; }
.cn-dg text.nm { font: 700 13px var(--f); letter-spacing: 0; fill: #B6C2D1; } .cn-dg text.nm.us { fill: #5EEAD4; }
.cn-dg .dg-pt circle { fill: #5EEAD4; }
/* Without the animation (phones, reduced motion, no JS): read it as a list. */
.cs:not(.cs-live) .cs-line, .cs:not(.cs-live) .cs-means, .cs:not(.cs-live) .cs-rail { display: none; }
.cs:not(.cs-live) .cs-list { display: block; }
@media (max-width: 900px) {
  .cs-in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .cs .cs-line, .cs .cs-means, .cs .cs-rail { display: none; } .cs .cs-list { display: block; }
}
.cs-rail { max-width: 560px; } .cs-rail span { white-space: nowrap; font-size: 11.5px; }
/* Performance: no filters on the animated diagram; the glow layer gets its own compositor layer. */
.cn-dg { filter: none; }
.cn-glow { will-change: opacity; }
.cn-dg .dg-wall rect { fill: rgba(11,15,19,.85); }

/* Statement v4: light and depth, and a 3D field on desktop. */
.cs { background-color: #061016;
  background-image:
    radial-gradient(70% 90% at 78% 45%, rgba(18,120,118,.45), transparent 62%),
    radial-gradient(55% 70% at 8% 100%, rgba(40,70,140,.35), transparent 70%),
    radial-gradient(40% 50% at 30% 0%, rgba(94,234,212,.10), transparent 70%),
    linear-gradient(180deg, #071318 0%, #050B10 100%); }
.cs::after { content: none; }
.cs .cn-glow { background: radial-gradient(42% 55% at 74% 50%, rgba(94,234,212,.28), transparent 70%); mix-blend-mode: screen; }
.cs-stage { position: relative; }
.cs-canvas { display: block; width: 100%; height: min(620px, calc(100vh - 200px)); }
.cs.cs-3d .cn-dg { display: none; }
.cs-tags { display: none; }
.cs.cs-3d .cs-tags { display: block; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: max-content; max-width: 100%; }
.cs-tags span { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); white-space: nowrap; padding: 8px 14px; border-radius: 999px;
  background: rgba(8,20,26,.72); border: 1px solid rgba(94,234,212,.35); font: 600 12.5px var(--m); letter-spacing: .06em; text-transform: uppercase; color: #CFFAF3; }
.cs-tags i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 8px 0 0; vertical-align: -1px; }
.cs-tags i.t { background: #59697D; } .cs-tags i.j { background: #5EEAD4; margin-left: 16px; }
.cs .cs-line .cl { text-shadow: 0 0 0 transparent; }

.cs.cn-say { background-size: auto; }

/* Statement v5: a still scene, no scroll hold. */
.cs.cn-say { min-height: 0; padding: 110px 0; }
.cs-canvas { height: min(600px, 72vh); }
.cs-rail li::before { background: linear-gradient(90deg, #5EEAD4 100%, rgba(255,255,255,.14) 0); opacity: .45; transition: opacity 250ms; }
.cs-rail li:has(button[aria-pressed="true"])::before { opacity: 1; }
.cs-rail button { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; margin-top: 10px; padding: 4px 0; font: 600 12px var(--m); letter-spacing: .06em; text-transform: uppercase; color: #7D8DA0; white-space: nowrap; transition: color 200ms; }
.cs-rail button:hover, .cs-rail button[aria-pressed="true"] { color: #E6FFFA; }
.cs-rail button:focus-visible { outline: 2px solid #5EEAD4; outline-offset: 4px; }
.cs-rail span { display: none; }
@media (max-width: 900px) { .cs.cn-say { padding: 72px 0; } }
.cs-live .cs-line .cl { cursor: pointer; transition: none; }
.cs-live .cs-line .cl:hover { text-decoration: underline; text-decoration-color: rgba(94,234,212,.5); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.cs.cs-3d .cs-canvas { cursor: pointer; }
.cs-hint { display: none; }

/* Step rail: one clear selection, the rest neutral; hover shows they are clickable. */
.cs-rail { position: relative; margin-top: 44px; }
.cs-rail::before { content: 'Explore each step'; position: absolute; left: 0; top: -26px; font: 500 12px var(--m); letter-spacing: .06em; text-transform: uppercase; color: #6F7F92; }
.cs-rail li::before { background: rgba(255,255,255,.16); opacity: 1; transition: background 200ms; }
.cs-rail li:hover::before { background: rgba(94,234,212,.55); }
.cs-rail li:has(button[aria-pressed="true"])::before { background: #5EEAD4; }
.cs-rail button { color: #7D8DA0; }
.cs-rail button:hover { color: #CFFAF3; }
.cs-rail button[aria-pressed="true"] { color: #FFFFFF; }
/* Auto-play timer: the active bar fills from left to right. */
.cs-rail li { --fill: 0; }
.cs-rail li:has(button[aria-pressed="true"])::before { background: linear-gradient(90deg, #5EEAD4 calc(var(--fill) * 100%), rgba(94,234,212,.35) 0); }
/* 'See it work' intro: heading and paragraph use the full row width. */
.cn-watch h2, .cn-watch p { max-width: none; }

/* 'See it work' on the home page: tighter. */
.cn-watch { padding: 72px 0 0; }
.cn-watch p { margin-top: 14px; }
.cn-watch + .w4 .w4-in { min-height: 0; padding-top: 28px; padding-bottom: 36px; row-gap: 20px; }
.cn-watch + .w4 .w4-right { width: 100%; max-width: 660px; justify-self: end; }
.cn-watch + .w4 .w4-titles { height: 170px; }
.cn-watch + .w4 .w4-also { padding-top: 16px; margin-top: 0; }
@media (max-width: 960px) { .cn-watch { padding-top: 56px; } .cn-watch + .w4 .w4-right { max-width: none; } }

/* Report card: four results, two wins and two where the current method was kept. */
.cn-results { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cn-res { background: #151B22; border: 1px solid #263140; border-radius: 14px; padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 8px; }
.cn-res-ind { font: 600 12px var(--m); letter-spacing: .08em; text-transform: uppercase; color: #8FA0B4; }
.cn-res b { font: 700 2.1rem/1.1 var(--f); color: #5EEAD4; letter-spacing: -0.02em; }
.cn-res.keep b { color: #E8EEF3; }
.cn-res p { margin: 0; font-size: 15.5px; line-height: 1.5; color: #C3CEDA; }
.cn-res em { margin-top: auto; padding-top: 10px; align-self: flex-start; font: 600 12px var(--m); letter-spacing: .06em; text-transform: uppercase; font-style: normal; padding: 5px 10px; border-radius: 6px; }
.cn-res.win em { background: rgba(94,234,212,.14); color: #5EEAD4; }
.cn-res.keep em { background: rgba(245,181,68,.14); color: #F5B544; }
.cn-res-note { grid-column: 1 / -1; margin: 4px 0 0; font-size: 13.5px; color: #7F92A0; }
@media (max-width: 600px) { .cn-results { grid-template-columns: 1fr; } }
/* Statement pause control, beside the step bars. */
.cs-pp { all: unset; cursor: pointer; margin-top: 30px; font: 600 12px var(--m); letter-spacing: .06em; text-transform: uppercase; color: #9FB0C2; padding: 6px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; }
.cs-pp:hover { color: #fff; border-color: #5EEAD4; } .cs-pp:focus-visible { outline: 2px solid #5EEAD4; outline-offset: 3px; }
.cs:not(.cs-live) .cs-pp { display: none; }
@media (max-width: 900px) { .cs .cs-pp { display: none; } }
