:root {
  --ink: #111310;
  --paper: #f4f2ed;
  --white: #fff;
  --line: #d6d5cf;
  --muted: #6a6e68;
  --acid: #c8ff5a;
  --green: #173d30;
  --blue: #6177ff;
  --coral: #ff7455;
  --yellow: #ffd15a;
  --radius: 8px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Cabinet Grotesk", Geist, "Helvetica Neue", Arial, sans-serif; letter-spacing: 0; }
button, input { font: inherit; letter-spacing: 0; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.page-shell { width: 100%; max-width: 100%; overflow-x: hidden; }
.nav { position: absolute; z-index: 10; top: 0; left: 50%; transform: translateX(-50%); width: min(1440px, calc(100% - 48px)); height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.28); }
.nav a { color: inherit; text-decoration: none; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.brand-mark { width: 18px; height: 18px; border: 5px solid var(--acid); border-radius: 50%; }
.nav-links { display: flex; gap: 34px; }
.nav-links a { opacity: .78; }
.nav-links a:hover { opacity: 1; }
.nav-action { justify-self: end; padding: 11px 17px; border: 1px solid rgba(255,255,255,.5); border-radius: 4px; font-weight: 800; }
.hero { position: relative; isolation: isolate; min-height: min(760px, 92vh); padding: 150px max(26px, calc((100vw - 1440px) / 2)) 94px; display: flex; align-items: center; justify-content: center; color: var(--white); background: #111713; text-align: center; }
.hero-photo, .hero-overlay { position: absolute; inset: 0; z-index: -2; }
.hero-photo { background: url("assets/treasury.jpg") center / cover; filter: grayscale(.65) contrast(1.2); transform: scale(1.02); }
.hero-overlay { z-index: -1; background: linear-gradient(0deg, rgba(9,14,11,.94) 0%, rgba(9,14,11,.55) 52%, rgba(9,14,11,.78) 100%), radial-gradient(circle at center, transparent 0%, rgba(0,0,0,.48) 78%); }
.hero-content { width: min(1180px, 100%); }
.eyebrow, .small-label { margin: 0 0 17px; font-size: .74rem; line-height: 1.3; font-weight: 850; text-transform: uppercase; letter-spacing: 0; }
.eyebrow { color: var(--acid); }
.eyebrow.dark { color: var(--green); }
.small-label { color: #70756f; }
.small-label.light { color: #aeb6af; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 1180px; margin: 0 auto 26px; font-size: clamp(2.8rem, 5vw, 5.1rem); line-height: .99; font-weight: 650; }
.hero-content > p:last-of-type { max-width: 760px; margin: 0 auto 34px; color: rgba(255,255,255,.82); font-size: clamp(1.02rem, 1.6vw, 1.3rem); line-height: 1.58; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.button { min-height: 48px; padding: 13px 18px; border: 1px solid transparent; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); background: var(--white); text-decoration: none; font-weight: 850; cursor: pointer; transition: transform .25s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #10150f; background: var(--acid); }
.button.secondary { color: var(--white); border-color: rgba(255,255,255,.48); background: rgba(10,13,11,.42); }
.marquee { overflow: hidden; color: var(--white); background: var(--blue); }
.marquee div { width: max-content; padding: 15px 0; font-size: .72rem; font-weight: 850; animation: marquee 28s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.calculator-band, .reasoning-band, .worked-band, .teaching-band, footer { padding: 128px max(24px, calc((100vw - 1440px) / 2)); }
.section-heading { width: min(1080px, 100%); margin-bottom: 48px; }
.section-heading h2, .worked-grid h2, footer h2 { margin-bottom: 20px; font-size: clamp(2.15rem, 4vw, 4.2rem); line-height: 1.04; font-weight: 640; }
.section-heading > p:last-child { max-width: 760px; color: var(--muted); line-height: 1.65; }
.tool-frame { overflow: hidden; color: var(--white); background: #151915; border: 1px solid #2f342f; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(21,25,21,.18); }
.tool-status { min-height: 52px; padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #b8bfb8; border-bottom: 1px solid #343a34; font: .7rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.tool-status span:first-child { display: flex; align-items: center; gap: 9px; }
.tool-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 4px rgba(200,255,90,.12); }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); }
.input-pane { padding: 32px; color: var(--ink); background: #faf9f5; }
.result-pane { padding: 32px; background: #151915; }
.pane-top { margin-bottom: 26px; display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.pane-top h3 { margin: 0; font-size: 1.55rem; }
.preset-actions { display: flex; gap: 8px; }
.preset-actions button { min-height: 38px; padding: 8px 12px; color: var(--ink); background: var(--white); border: 1px solid #c9cdc7; border-radius: 4px; font-weight: 800; cursor: pointer; }
.preset-actions button[aria-current="true"] { color: #0e1b13; border-color: var(--green); background: #e4f6cf; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.field-grid .wide { grid-column: span 2; }
.field-grid label { color: #6e736e; font-size: .74rem; font-weight: 800; }
.input-shell { min-height: 43px; margin-top: 7px; padding: 0 11px; display: flex; align-items: center; gap: 5px; color: #727771; background: var(--white); border: 1px solid #c9cdc7; border-radius: 4px; }
.input-shell input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-weight: 800; }
.prediction { margin: 25px 0 15px; padding: 0; border: 0; }
.prediction legend { margin-bottom: 9px; color: #6e736e; font-size: .75rem; font-weight: 800; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid #c9cdc7; border-radius: 4px; }
.segmented button { min-height: 43px; border: 0; color: var(--ink); background: var(--white); font-weight: 850; cursor: pointer; }
.segmented button + button { border-left: 1px solid #c9cdc7; }
.segmented button[aria-pressed="true"] { color: var(--white); background: var(--green); }
.button.compute { width: 100%; background: var(--acid); }
.result-top { padding-bottom: 24px; display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; border-bottom: 1px solid #343a34; }
.result-top strong { display: block; font-size: clamp(2.7rem, 5vw, 4.8rem); line-height: .92; color: var(--acid); }
.result-top > span { padding-bottom: 5px; color: var(--white); font-size: .78rem; font-weight: 850; }
.explanation { min-height: 74px; margin: 20px 0; color: #dbe0db; line-height: 1.55; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #353a35; border: 1px solid #353a35; }
.metric-grid div { padding: 14px; background: #1d221d; }
.metric-grid span, .migration span { display: block; margin-bottom: 7px; color: #939b94; font-size: .68rem; }
.metric-grid strong { font-size: .95rem; }
.migration { margin: 12px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.migration div { padding: 14px; border: 1px solid #383e38; }
.migration strong { font-size: 1.05rem; }
.proof { color: var(--acid); font: 800 .7rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }
.feedback { margin: 16px 0 12px; padding: 13px; color: #dce1ff; background: #20243b; border-left: 3px solid var(--blue); font-size: .84rem; line-height: 1.5; }
.comparison { color: #9fa69f; font-size: .82rem; line-height: 1.5; }
.button.export { width: 100%; margin-top: 8px; }
.reasoning-band { background: var(--white); }
.accordion { min-height: 360px; display: flex; gap: 8px; }
.accordion article { min-width: 0; padding: 28px; flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border-radius: var(--radius); transition: flex .7s cubic-bezier(.2,.8,.2,1), transform .7s ease; }
.accordion article:hover { flex: 1.7 1 0; transform: translateY(-4px); }
.accordion article:nth-child(1) { background: var(--acid); }
.accordion article:nth-child(2) { color: var(--white); background: var(--blue); }
.accordion article:nth-child(3) { background: var(--yellow); }
.accordion article > span { margin-bottom: auto; font-weight: 900; }
.accordion h3 { margin-bottom: 12px; font-size: clamp(1.6rem, 3vw, 2.7rem); }
.accordion p { max-width: 460px; margin-bottom: 0; line-height: 1.55; }
.worked-band { color: var(--white); background: #161a16; }
.media-frame { margin: 0 0 92px; overflow: hidden; }
.media-frame img { width: 100%; aspect-ratio: 16/7; object-fit: cover; display: block; filter: grayscale(.7) contrast(1.2); transition: transform .7s ease; }
.media-frame:hover img { transform: scale(1.05); }
.media-frame figcaption { max-width: 760px; padding-top: 14px; color: #9aa29a; font-size: .78rem; line-height: 1.5; }
.worked-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 80px; align-items: end; }
.worked-grid article p:last-child, .worked-grid aside p { color: #bac0ba; line-height: 1.7; }
.worked-grid aside { padding: 30px; background: #242924; border-left: 5px solid var(--coral); }
.worked-grid aside strong { color: var(--coral); }
.teaching-band { background: #eceee7; }
.teaching-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); grid-auto-flow: dense; gap: 12px; }
.teaching-grid article { min-height: 240px; padding: 28px; border-radius: var(--radius); background: var(--white); }
.teaching-grid .teaching-wide { grid-column: span 7; }
.teaching-grid .teaching-side { grid-column: span 5; color: var(--white); background: var(--green); }
.teaching-grid article:nth-child(n+3) { grid-column: span 4; }
.teaching-grid article:nth-child(4) { background: #dfe5ff; }
.teaching-grid article:nth-child(5) { background: #ffe1d9; }
.teaching-grid h3 { margin-bottom: 14px; font-size: 1.45rem; line-height: 1.2; }
.teaching-grid p { line-height: 1.6; }
.carousel-controls { display: flex; align-items: center; gap: 13px; margin-top: 25px; }
.carousel-controls button { width: 42px; height: 42px; border: 1px solid #bec3bc; border-radius: 50%; color: var(--ink); background: var(--white); font-size: 1.5rem; cursor: pointer; }
.carousel-controls span { color: var(--muted); font-size: .78rem; }
.assessment-actions { margin: 22px 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.assessment-actions button { min-height: 44px; color: var(--white); background: transparent; border: 1px solid rgba(255,255,255,.45); border-radius: 4px; font-weight: 800; cursor: pointer; }
.assessment-actions button:hover { color: var(--green); background: var(--acid); }
footer { min-height: 520px; display: flex; flex-direction: column; justify-content: space-between; color: var(--white); background: #101310; }
footer > div { max-width: 1120px; }
footer p { margin: 80px 0 0; color: #879087; font-size: .78rem; }
@media (max-width: 900px) {
  .nav { width: calc(100% - 32px); grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .tool-grid, .worked-grid { grid-template-columns: 1fr; }
  .worked-grid { gap: 48px; }
  .result-pane { min-height: 650px; }
  .teaching-grid .teaching-wide, .teaching-grid .teaching-side { grid-column: span 12; }
}
@media (max-width: 620px) {
  .nav { height: 66px; }
  .brand span:last-child { display: none; }
  .nav-action { padding: 9px 12px; font-size: .78rem; }
  .hero { min-height: 650px; padding: 126px 20px 68px; }
  h1 { font-size: 3rem; }
  .calculator-band, .reasoning-band, .worked-band, .teaching-band, footer { padding: 96px 16px; }
  .section-heading h2, .worked-grid h2, footer h2 { font-size: 2.35rem; }
  .tool-status { align-items: flex-start; flex-direction: column; }
  .input-pane, .result-pane { padding: 20px 16px; }
  .pane-top { flex-direction: column; }
  .preset-actions { width: 100%; }
  .preset-actions button { flex: 1; }
  .field-grid { grid-template-columns: 1fr 1fr; }
  .field-grid .wide { grid-column: span 2; }
  .result-top { align-items: flex-start; flex-direction: column; }
  .result-top strong { font-size: 3.2rem; }
  .accordion { min-height: auto; flex-direction: column; }
  .accordion article { min-height: 260px; }
  .accordion article:hover { flex: 1 1 0; }
  .media-frame img { aspect-ratio: 4/3; }
  .teaching-grid article:nth-child(n) { grid-column: span 12; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
