/* Quantitative And Macro Insights: the home page (and the demonstration, which the free lessons page reuses). */

/* ---------- backdrop ---------- */
.stream { position: fixed; inset: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -1; display: block; pointer-events: none; }
.no-stream .stream { display: none; }
.page-home { background: transparent; }
html:has(.page-home) { background: var(--bg); }
.no-stream .page-home, .page-home.plain { background: radial-gradient(1150px 900px at 62% 0%, rgba(150, 160, 180, 0.11), rgba(150, 160, 180, 0.04) 50%, transparent 100%) no-repeat, linear-gradient(180deg, var(--bg-top), var(--bg) 900px) var(--bg); }

/* ---------- hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; padding: calc(var(--nav-h) + clamp(40px, 7vh, 96px)) 0 clamp(48px, 8vh, 96px); display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.hero-copy h1 { max-width: 9em; }
.hero-sub { color: var(--text-2); font-size: clamp(15.5px, 1.15vw, 17px); line-height: 1.6; max-width: 34em; margin-top: -8px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: 14px; }
.hero-window { perspective: 1600px; }
.window { margin: 0; padding: clamp(18px, 2vw, 26px); background: rgba(13, 15, 20, 0.9); border: 1px solid var(--line-strong); border-radius: var(--r-l); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55); transform-origin: 30% 50%; }
@media (min-width: 1024px) { .window { transform: rotateY(-9deg) rotateX(3deg); } }
.window-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.window-bar .label { color: var(--accent); }
.window-sub { margin-top: 10px; color: var(--text-3); font-size: 12.5px; letter-spacing: 0.04em; }
.fc { width: 100%; border-collapse: collapse; margin-top: 18px; }
.fc th, .fc td { padding: 13px 0; text-align: right; border-top: 1px solid var(--line); font-size: 14.5px; white-space: nowrap; }
.fc thead th { border-top: 0; padding: 0 0 10px; font: 500 10.5px/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); vertical-align: bottom; }
.fc thead small { display: block; margin-top: 4px; font-size: 9.5px; letter-spacing: 0.1em; opacity: 0.8; }
.fc th:first-child { text-align: left; }
.fc tbody th { font-weight: 500; font-size: 16px; color: var(--text); }
.fc td { color: var(--text-3); }
.fc td b { color: var(--text); font-weight: 500; }
.fc tbody td:nth-child(2) { color: var(--text-2); }
.fc-bars { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.fc-bars div { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 12px; }
.fc-bars .label { font-size: 10px; }
.fc-bars i { display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--text) 0, var(--text) var(--m), rgba(170, 178, 192, 0.35) var(--m), rgba(170, 178, 192, 0.35) var(--s), rgba(170, 178, 192, 0.08) var(--s)); }
.window figcaption { margin-top: 16px; font-size: 13px; color: var(--text-3); line-height: 1.5; }
@media (max-width: 1023px) {
  .hero { min-height: 0; display: block; }
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .fc thead th:nth-child(2), .fc td:nth-child(2) { display: none; }
  .fc th, .fc td { font-size: 13.5px; }
}

/* ---------- the demonstration ---------- */
.demo { padding: clamp(18px, 2.4vw, 32px); }
.demo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.demo-head .label { display: block; margin-bottom: 10px; color: var(--accent); }
.demo-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(20px, 2.6vw, 36px); align-items: stretch; }
.demo-chart { border: 1px solid var(--line); border-radius: var(--r-m); background: rgba(4, 5, 6, 0.55); overflow: hidden; }
.demo-chart canvas { width: 100%; height: auto; aspect-ratio: 1360 / 640; }
.demo-chart noscript p { padding: 20px; }
.demo-side { display: grid; gap: 20px; align-content: start; }
.readout { display: grid; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.readout div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.readout strong { font-size: 26px; font-weight: 500; }
.readout div:first-child strong { color: var(--accent); }
.demo .field label { display: flex; justify-content: space-between; align-items: baseline; }
.demo .field output { color: var(--text); font-size: 13px; letter-spacing: 0.02em; }
.demo-cap { margin-top: 24px; max-width: 54em; color: var(--text-2); }
.demo-foot { margin-top: 10px; font-size: 13.5px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; padding: 0; border: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--line-strong); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line-strong); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -9px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface-solid); box-shadow: 0 0 0 1px var(--accent); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface-solid); box-shadow: 0 0 0 1px var(--accent); }
.try-more { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
@media (max-width: 899px) { .demo-body { grid-template-columns: 1fr; } .readout { grid-template-columns: repeat(3, 1fr); } .readout div { flex-direction: column; gap: 8px; } .readout strong { font-size: 22px; } }

/* ---------- strip ---------- */
.strip { border-block: 1px solid var(--line); background: rgba(8, 9, 11, 0.6); }
.strip-inner { display: flex; align-items: center; gap: 16px 36px; padding-block: 20px; flex-wrap: wrap; }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 30px; font: 500 13px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }

/* ---------- overview ---------- */
.statement { margin: 28px 0 clamp(40px, 6vw, 72px); font-size: clamp(26px, 3.5vw, 46px); line-height: 1.18; letter-spacing: -0.02em; font-weight: 500; max-width: 23em; color: var(--text); }
.statement .w { color: var(--text-3); opacity: 0.55; transition: color 0.25s linear, opacity 0.25s linear; }
.statement .w.lit { color: var(--text); opacity: 1; }


/* ---------- stages ---------- */
.stages-intro { padding-bottom: clamp(24px, 4vw, 48px); }
.stage { position: relative; padding-block: clamp(32px, 5vw, 64px); }
.stage-inner { display: grid; grid-template-columns: 1fr; gap: 28px; }
.cap { display: grid; gap: 14px; justify-items: start; max-width: 30em; }
.cap-label { color: var(--accent); letter-spacing: 0.2em; }
.cap-title { font-size: clamp(30px, 3.6vw, 50px); letter-spacing: -0.02em; line-height: 1.08; }
.cap-sub { color: var(--text-2); font-size: 17px; max-width: 26em; }
.stage-art { position: relative; }
.lcard, .fcard, .chartcard { background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: var(--r-m); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.lcard { padding: 20px 20px 22px; display: grid; gap: 14px; align-content: start; min-height: 150px; }
.lcard .label { color: var(--accent); }
.lcard h4 { font-size: 19px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
.lcard i { display: block; margin-top: auto; height: 22px; background: linear-gradient(var(--line), var(--line)) 0 0 / 70% 1px no-repeat, linear-gradient(var(--line), var(--line)) 0 10px / 92% 1px no-repeat, linear-gradient(var(--line), var(--line)) 0 20px / 54% 1px no-repeat; }
.deck { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fcard, .chartcard { padding: 20px; }
.fcard-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.fcard-head .label { color: var(--accent); }
.fcard-row { display: grid; grid-template-columns: 1fr auto 64px 64px; gap: 14px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--line); font-size: 17px; }
.fcard-row span.num { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.fcard-row b { font-weight: 500; text-align: right; }
.fcard-row em { font-style: normal; color: var(--text-3); text-align: right; }
.fcard-foot { margin-top: 12px; text-align: right; }
.chartcard canvas { width: 100%; height: auto; border-radius: var(--r-s); background: rgba(4, 5, 6, 0.55); border: 1px solid var(--line); }
.chart-read { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 14px; }
.chart-read b { color: var(--text); font-weight: 500; margin-left: 8px; letter-spacing: 0; }
.stage-art .back { display: none; }

/* Desktop: each stage is one pinned screen. Caption lower left, art on the right two thirds, as in the film. */
@media (min-width: 900px) {
  .stages-on .stage:not(.stage-wall) { height: 100vh; padding: 0; overflow: clip; }
  .stages-on .stage:not(.stage-wall) .stage-inner { height: 100%; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: end; gap: 40px; padding-block: calc(var(--nav-h) + 24px) clamp(40px, 8vh, 80px); }
  .stages-on .stage-art { align-self: stretch; height: auto; perspective: 1700px; perspective-origin: 50% 50%; }
  .stages-on .stage-art > *, .stages-on .deck > * { position: absolute; left: 50%; top: 50%; will-change: transform, opacity; backface-visibility: hidden; }
  .stages-on .deck { position: absolute; inset: 0; display: block; transform-style: preserve-3d; }
  .stages-on .deck .lcard { width: 232px; height: 170px; margin: -85px 0 0 -116px; padding: 16px 16px 18px; gap: 10px; }
  .stages-on .deck .lcard h4 { font-size: 16.5px; }
  .stages-on .stage-art { transform-style: preserve-3d; }
  .stages-on .stage-art .back { display: grid; width: 290px; height: 170px; margin: -85px 0 0 -145px; }
  .stages-on .fcard.front { width: 470px; margin: -150px 0 0 -235px; }
  .stages-on .chartcard.front { width: 560px; margin: -210px 0 0 -280px; }
  .stages-on .chartcard.front.wide { width: 640px; margin: -220px 0 0 -320px; }
}
@media (min-width: 900px) and (max-height: 720px) { .stages-on .cap-title { font-size: 34px; } }

/* ---------- the wall ---------- */
.stage-wall { padding-block: clamp(56px, 8vw, 104px); }
.cap-top { max-width: none; margin-bottom: 8px; }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 10px; }
.wcard { padding: 14px 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); display: grid; gap: 10px; align-content: start; min-height: 104px; }
.wcard .label { font-size: 10px; letter-spacing: 0.14em; }
.wcard h4 { font-size: 14px; font-weight: 500; line-height: 1.28; color: var(--text); }
.wcard.t-macro .label, .wcard.t-tech .label { color: var(--accent); }
.wall-foot { margin-top: 28px; }
@media (max-width: 520px) { .wall { grid-template-columns: 1fr 1fr; } .wcard h4 { font-size: 13px; } }

/* ---------- plate ---------- */
.plate-section { padding-block: clamp(40px, 7vw, 96px); }
.plate { padding: clamp(40px, 7vw, 96px) clamp(24px, 5vw, 72px); border: 1px solid var(--line-strong); border-radius: var(--r-l); background: linear-gradient(180deg, rgba(20, 22, 28, 0.9), rgba(10, 11, 14, 0.9)); text-align: center; display: grid; gap: 22px; justify-items: center; }
.plate .label { color: var(--accent); }
.plate-line { font-size: clamp(28px, 4.6vw, 62px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 500; max-width: 16em; text-wrap: balance; }

/* ---------- numbers ---------- */
.stats { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.stats div { padding: 26px 24px 8px 0; display: grid; gap: 18px; align-content: space-between; }
.stats div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats dt { line-height: 1.5; max-width: 16em; }
.stats dd { margin: 0; font-size: clamp(52px, 7vw, 96px); line-height: 1; font-weight: 500; letter-spacing: -0.04em; }
@media (max-width: 899px) { .stats { grid-template-columns: 1fr 1fr; } .stats div { padding: 22px 16px 22px 0; border-bottom: 1px solid var(--line); } .stats div:nth-child(odd) { border-left: 0; padding-left: 0; } .stats div:nth-child(even) { padding-left: 16px; } }

/* ---------- tools, steps ---------- */
.tool { display: grid; gap: 14px; align-content: start; }
.tool .label, .steps .label, .judge .label { color: var(--accent); margin-bottom: 4px; }
.tool p { color: var(--text-2); font-size: 16px; }
.tool .ticks { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; }

/* ---------- release board ---------- */
.board { border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); overflow: hidden; }
.board-row { display: grid; grid-template-columns: 150px repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.board-row:first-child { border-top: 0; }
.board-row > * { padding: 16px; border-left: 1px solid var(--line); min-height: 64px; }
.board-row > :first-child { border-left: 0; }
.board-head > * { min-height: 0; padding-block: 14px; }
.board-head span:nth-child(2) { color: var(--accent); }
.board-row h3 { font-size: 17px; align-self: center; }
.chip { padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-s); font-size: 14.5px; font-weight: 500; line-height: 1.3; background: rgba(4, 5, 6, 0.4); }
.chip small { display: block; margin-top: 6px; font-weight: 400; font-size: 13px; color: var(--text-2); }
.chip.on { border-color: rgba(245, 185, 66, 0.55); background: var(--accent-soft); }
.board-foot { margin-top: 16px; font-size: 14px; }
@media (max-width: 899px) {
  .board-head { display: none; }
  .board-row { grid-template-columns: 1fr; padding: 16px; gap: 10px; }
  .board-row > * { padding: 0; border: 0; min-height: 0; }
  .board-row > div:empty { display: none; }
  .board-row > div:nth-child(2) .chip::before { content: 'Live Now'; }
  .board-row > div:nth-child(3) .chip::before { content: 'Publishing Next'; }
  .board-row > div:nth-child(4) .chip::before { content: 'In Validation'; }
  .board-row > div:nth-child(5) .chip::before { content: 'In Construction'; }
  .chip::before { display: block; margin-bottom: 8px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
  .chip.on::before { color: var(--accent); }
}

/* ---------- book a call ---------- */
.callbox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding: clamp(28px, 4.5vw, 64px); border-color: var(--line-strong); background: linear-gradient(180deg, rgba(20, 22, 28, 0.92), rgba(12, 13, 16, 0.92)); }
.callbox-copy { display: grid; gap: 22px; justify-items: start; align-content: start; }
.callbox-facts { margin: 0; display: grid; }
.callbox-facts div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); align-items: baseline; }
.callbox-facts div:last-child { border-bottom: 1px solid var(--line); }
.callbox-facts dd { margin: 0; color: var(--text); font-size: 16px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
@media (max-width: 899px) { .callbox { grid-template-columns: 1fr; } .callbox-facts div { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- judge ---------- */
.compare { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); overflow: hidden; }
.compare > div { padding: clamp(20px, 2.6vw, 32px); }
.compare > div + div { border-left: 1px solid var(--line); }
.compare .label { display: block; margin-bottom: 18px; }
.compare > div:nth-child(2) .label { color: var(--accent); }
.compare > div:first-child li { color: var(--text-3); }
.compare-foot { grid-column: 1 / -1; padding: 20px clamp(20px, 2.6vw, 32px); border-top: 1px solid var(--line); color: var(--text); font-size: 17px; }
@media (max-width: 899px) { .compare { grid-template-columns: 1fr; } .compare > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-side { display: grid; gap: 20px; justify-items: start; position: sticky; top: calc(var(--nav-h) + 32px); }
@media (max-width: 899px) { .faq-grid { grid-template-columns: 1fr; } .faq-side { position: static; } }

/* ---------- closing ---------- */
.cta-band { padding-block: clamp(72px, 11vw, 150px); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.cta-name { display: grid; gap: 24px; justify-items: start; }
.cta-words { font-size: clamp(40px, 5.6vw, 82px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 500; }
.cta-words span { display: inline-block; }
.cta-name .label { letter-spacing: 0.3em; color: var(--text-2); }
.cta-panel { display: grid; gap: 20px; justify-items: start; padding: clamp(28px, 4vw, 52px); border-color: var(--line-strong); }
.cta-panel h2 { font-size: clamp(28px, 3.4vw, 44px); }
@media (max-width: 899px) { .cta-grid { grid-template-columns: 1fr; } }

.footnotes { padding-block: 0 48px; }
.footnotes .wrap { border-top: 1px solid var(--line); padding-top: 22px; }
.refs summary { list-style: none; cursor: pointer; display: inline-block; }
.refs summary::-webkit-details-marker { display: none; }
.refs summary .btn { font-size: 13px; padding: 9px 16px; }
.refs summary .btn::after { content: '+'; margin-left: 10px; color: var(--accent); font-family: var(--mono); }
.refs[open] summary .btn::after { content: '\00d7'; }
.footnotes ol { margin: 0; padding: 20px 0 0 18px; display: grid; gap: 8px; color: var(--text-2); font-size: 13px; max-width: 70em; }
.footnotes li:target { color: var(--text); }
@media (max-width: 520px) { .wall .wcard:nth-child(n+13) { display: none; } }

/* ---------- introduction: four solutions ---------- */
.solutions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.solutions li { padding: 28px 24px 8px 0; display: grid; gap: 14px; align-content: start; }
.solutions li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.solutions .label { color: var(--accent); letter-spacing: 0.2em; }
.solutions h3 { font-size: clamp(20px, 1.9vw, 25px); letter-spacing: -0.015em; line-height: 1.16; }
.solutions p { color: var(--text-2); font-size: 16px; }
.intro .statement { margin: clamp(48px, 7vw, 88px) 0 0; }
@media (max-width: 1099px) { .solutions { grid-template-columns: 1fr 1fr; } .solutions li { padding: 24px 20px 24px 0; border-bottom: 1px solid var(--line); } .solutions li:nth-child(odd) { border-left: 0; padding-left: 0; } .solutions li:nth-child(even) { padding-left: 20px; } }
@media (max-width: 599px) { .solutions { grid-template-columns: 1fr; } .solutions li, .solutions li:nth-child(even) { padding: 22px 0; border-left: 0; } }

/* ---------- the toolkit sample ---------- */
.tk { padding: clamp(18px, 2.4vw, 32px); border-color: var(--line-strong); }
.tk-head { display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.tk-presets { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tk-presets .label { margin-right: 6px; }
.tk-presets .btn { min-height: 36px; padding: 6px 14px; font-size: 13.5px; }
.tk-presets .btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.tk-top { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(20px, 3vw, 44px); padding: clamp(20px, 2.6vw, 34px); border: 1px solid var(--line); border-radius: var(--r-m); background: linear-gradient(180deg, rgba(22, 24, 30, 0.9), rgba(10, 11, 14, 0.7)); margin-bottom: 20px; }
.tk-ev { display: grid; gap: 12px; align-content: center; }
.tk-ev .label { color: var(--accent); }
.tk-ev strong { font-size: clamp(52px, 7.4vw, 104px); line-height: 0.95; font-weight: 500; letter-spacing: -0.045em; color: var(--text); }
.tk-ev strong.neg { color: var(--accent); }
.tk-ev p { color: var(--text-3); font-size: 12.5px; line-height: 1.5; letter-spacing: 0; max-width: 30em; }
.tk-stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 20px; align-content: center; }
.tk-stats div { display: grid; gap: 8px; align-content: start; padding-left: 16px; border-left: 1px solid var(--line); }
.tk-stats dd { margin: 0; font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.tk-stats dd.small { font-size: 16px; letter-spacing: 0; padding-top: 8px; }
.tk-stats dd.amber { color: var(--accent); }
.tk-stats small { color: var(--text-3); font-size: 12.5px; line-height: 1.35; }
.tk-stats dt { line-height: 1.4; }
.tk-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(20px, 2.6vw, 36px); align-items: stretch; }
.tk .demo-chart canvas { aspect-ratio: 1480 / 660; }
@media (max-width: 999px) { .tk-top { grid-template-columns: 1fr; } }
@media (max-width: 899px) { .tk-body { grid-template-columns: 1fr; } .tk-stats { grid-template-columns: 1fr 1fr; } }

/* ---------- the software: real screens ---------- */
.sw { padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line-strong); }
.sw + .sw { margin-top: clamp(48px, 7vw, 96px); }
.sw-head { display: grid; gap: 12px; margin-bottom: 24px; max-width: 46em; }
.sw-head .label { color: var(--accent); letter-spacing: 0.2em; }
.sw-head h3 { font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.02em; line-height: 1.1; }
.film-frame { position: relative; border: 1px solid var(--line-strong); border-radius: var(--r-l); overflow: hidden; background: #040506; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5); }
.film-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.film-bar { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 8px; }
.film-bar .btn { background: rgba(8, 9, 11, 0.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); min-height: 40px; padding: 8px 16px; font-size: 14px; }
.sw-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sw-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.sw-grid figure { margin: 0; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: #0a0d14; display: grid; grid-template-rows: 1fr auto; }
.sw-grid img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; }
.sw-grid.four img { aspect-ratio: 1000 / 712; }
.sw-grid figcaption { padding: 12px 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-3); background: var(--surface-solid); }
.sw-grid figcaption b { display: block; color: var(--text); font-weight: 500; font-size: 15px; margin-bottom: 2px; }
@media (max-width: 899px) { .sw-grid { grid-template-columns: 1fr 1fr; } .sw-grid.four { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .sw-grid { grid-template-columns: 1fr; } }

/* real software screens */
.sw-shot { margin: 0 0 14px; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: #0a0d14; }
.sw-shot img { display: block; width: 100%; height: auto; }
.sw-shot figcaption { padding: 12px 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-3); background: var(--surface-solid); }
.sw-shot figcaption b { display: block; color: var(--text); font-weight: 500; font-size: 15px; margin-bottom: 2px; }
.sw-grid.wide, .sw-grid.two { margin-top: 0; }
.sw-grid.wide img { aspect-ratio: 1200 / 444; }
.sw-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sw-grid.two img { aspect-ratio: 1400 / 488; object-position: left top; }
.sw-note { margin-top: 16px; max-width: 62em; font-size: 13.5px; }
.sw-head.sub { margin-top: clamp(32px, 4vw, 56px); }
.sw-head.sub h3 { font-size: clamp(22px, 2.3vw, 30px); }
@media (max-width: 899px) { .sw-grid.wide, .sw-grid.two { grid-template-columns: 1fr; } }
.sw-grid.four.flat img { aspect-ratio: 1000 / 658; }
.sw-zoom { display: block; cursor: zoom-in; }

/* the hero's research card */
.window.record { max-width: 520px; margin-left: auto; }
.rec { margin: 18px 0 0; display: grid; }
.rec > div { display: grid; grid-template-columns: 11.4ch minmax(0, 1fr); gap: 20px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); font-size: clamp(26px, 2.35vw, 34px); }
.rec dt { font-size: 1em; line-height: 1.1; letter-spacing: -0.03em; color: var(--text); white-space: nowrap; }
.rec dd { margin: 0; font-size: 15.5px; line-height: 1.4; color: var(--text); padding-top: 0.2em; }
.rec dd small { display: block; margin-top: 6px; font: 500 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.window.record figcaption { margin-top: 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.window.record figcaption b { color: var(--text); font-weight: 500; }
@media (max-width: 899px) { .window.record { max-width: none; } .rec > div { grid-template-columns: 1fr; gap: 6px; font-size: 32px; } }
.sw-head.sub.first { margin-top: clamp(20px, 2.4vw, 32px); }
.sw-grid.trio { margin-top: 0; }
.sw-grid.trio img { aspect-ratio: 1100 / 494; object-fit: contain; }
.sw-grid.four.after { margin-top: 14px; }
@media (max-width: 899px) { .sw-grid.trio { grid-template-columns: 1fr; } }
.sw-read { display: grid; align-content: center; gap: 14px; padding: clamp(22px, 2.6vw, 36px); border: 1px solid var(--line-strong); border-radius: var(--r-m); background: var(--surface-solid); }
.sw-read .label { color: var(--accent); letter-spacing: 0.2em; }
.sw-read h4 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; }
.sw-read p { color: var(--text-2); font-size: 15.5px; line-height: 1.6; max-width: 36em; }
.sw-read .sw-read-end { color: var(--text); padding-top: 14px; border-top: 1px solid var(--line); }
.outcomes-cta { margin-top: clamp(28px, 3vw, 40px); }
/* the path simulation, in the expected value section */
.ev-sim { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: clamp(24px, 3.4vw, 56px); align-items: center; margin-bottom: clamp(24px, 3vw, 40px); }
.ev-sim-copy { display: grid; gap: 14px; justify-items: start; }
.ev-sim-copy .label { color: var(--accent); letter-spacing: 0.2em; }
.ev-sim-copy h3 { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; }
.ev-sim-copy p { color: var(--text-2); max-width: 30em; }
.ev-chart { width: auto; margin: 0; position: static; transform: none; }
@media (max-width: 899px) { .ev-sim { grid-template-columns: 1fr; } }
/* software screens sit in a framed mount with a thin amber edge, so they read as placed and not pasted */
.sw-shot, .sw-grid figure { border-color: rgba(245, 185, 66, 0.4); background: #0b0d12; box-shadow: 0 0 0 4px rgba(245, 185, 66, 0.05), 0 26px 64px rgba(0, 0, 0, 0.55); }
.sw-shot .sw-zoom, .sw-grid figure .sw-zoom { padding: clamp(8px, 1vw, 14px); }
.sw-shot img, .sw-grid figure img { border-radius: 8px; border: 1px solid var(--line); }
.sw-shot figcaption, .sw-grid figcaption { border-top-color: rgba(245, 185, 66, 0.22); }
.sw-shot { margin-bottom: 20px; }
.sw-grid { gap: 20px; }
/* what we teach */
.teach .panel { display: grid; align-content: start; gap: 14px; }
.teach h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 500; }
.teach .panel > p { color: var(--text-2); }
.teach-build { border-color: rgba(245, 185, 66, 0.4); }
.teach-build .label { color: var(--accent); }
.build-steps { list-style: none; margin: 4px 0 0; padding: 0; counter-reset: bs; display: grid; }
.build-steps li { counter-increment: bs; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.build-steps li::before { content: counter(bs, decimal-leading-zero); grid-row: span 2; font: 500 12px/1.7 var(--mono); letter-spacing: 0.12em; color: var(--accent); }
.build-steps b { font-weight: 500; color: var(--text); }
.build-steps span { color: var(--text-2); font-size: 14.5px; }
.teach-foot { margin-top: clamp(22px, 2.6vw, 34px); padding: 20px 0 0; border-top: 1px solid var(--line); color: var(--text-2); font-size: clamp(16px, 1.3vw, 19px); max-width: 52em; }
.teach-foot b { color: var(--text); font-weight: 500; }
.avenues { margin-top: clamp(28px, 3.4vw, 48px); display: grid; gap: 18px; }
.avenues header { display: grid; gap: 10px; }
.avenues header .label { color: var(--accent); letter-spacing: 0.2em; }
.avenues h3 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; }
.avenues .panel { display: grid; gap: 12px; align-content: start; }
.avenues .panel .label { color: var(--text-3); }
.avenues h4 { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.15; letter-spacing: -0.015em; font-weight: 500; }
.avenues .panel p { color: var(--text-2); }
.avenues-lead { color: var(--text-2); font-size: clamp(16px, 1.3vw, 19px); max-width: 46em; }
