:root {
  color-scheme: light;
  --paper: #f5f2eb;
  --surface: #fcfbf7;
  --ink: #193d34;
  --body: #46534c;
  --accent: #484687;
  --accent-hover: #39366f;
  --border: #d7d7cb;
  --tint: #e8eee6;
  font-family: "Inter", "Aptos", system-ui, sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 100px; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, label:has(:focus-visible) { outline: 3px solid #836118; outline-offset: 4px; }
img { display: block; max-width: 100%; }
.shell { width: min(100% - 6rem, 1280px); margin-inline: auto; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; padding: .7rem 1rem; top: .5rem; left: .5rem; background: white; z-index: 5; }
.site-header { position: sticky; top: 0; z-index: 3; border-bottom: 1px solid var(--border); background: #faf8f3; }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 82px; }
.brand { font-size: 1.15rem; font-weight: 680; letter-spacing: -.026em; text-decoration: none; white-space: nowrap; }
.site-header .brand { display: block; flex: none; }
.brand-logo { width: auto; height: 70px; }
.site-header nav { margin-inline-start: auto; display: flex; align-items: center; gap: .32rem; flex-wrap: wrap; }
.site-header nav a { border: 1px solid var(--border); border-radius: 9px; padding: .62rem .82rem; font-size: .88rem; font-weight: 600; text-decoration: none; }
.site-header nav a:hover { background: var(--tint); }
.button { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid transparent; min-height: 54px; padding: .75rem 1.36rem; color: var(--accent); font-size: .9rem; font-weight: 680; text-decoration: none; }
.primary { color: white; background: var(--accent); border-color: var(--accent); }
.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.secondary { background: var(--surface); border-color: var(--border); }
.secondary:hover { border-color: var(--accent); }
.header-action { min-height: 44px; }
.hero { display: grid; grid-template-columns: .94fr 1.06fr; align-items: center; gap: clamp(2rem, 5vw, 5.5rem); padding-block: clamp(3.1rem, 6vw, 5rem); }
.eyebrow { font-size: .82rem; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); font-weight: 690; margin: 0 0 1rem; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { letter-spacing: -.055em; line-height: 1.12; font-weight: 500; }
h1 { font-size: clamp(3rem, 4.35vw, 4.05rem); }
h1 em { color: var(--accent); font-style: normal; }
h2 { font-size: clamp(2.1rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.32rem, 2.1vw, 1.66rem); }
.hero-copy .eyebrow { margin-bottom: clamp(1.2rem, 2.3vw, 2rem); }
.hero-intro { margin-top: clamp(1.3rem, 2.5vw, 2.2rem); max-width: 35rem; color: var(--body); font-size: clamp(1rem, 1.5vw, 1.13rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.9rem; }
.hero-image { min-width: 0; overflow: hidden; border-radius: 16px; background: #131a31; }
.hero-image img { aspect-ratio: 1.5; width: 100%; height: auto; object-fit: cover; }
.perspective { display: grid; grid-template-columns: .57fr 1fr; gap: 1.5rem 2rem; padding-block: clamp(2.35rem, 4.8vw, 4.4rem); }
.perspective .eyebrow { margin-top: .12rem; }
.perspective div > p, .experiment-copy > p:not(.eyebrow), .notes-intro > p:not(.eyebrow) { margin-top: 1.25rem; color: var(--body); }
.perspective div > p { max-width: 45rem; }
.focus-section { padding-block: clamp(2.4rem, 5vw, 4rem); }
.focus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.9rem, 2vw, 1.5rem); margin-top: 1.55rem; }
.focus-card { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); text-decoration: none; display: flex; flex-direction: column; }
.focus-card:hover { border-color: var(--accent); }
.focus-card img { display: block; width: 100%; height: auto; aspect-ratio: 1.54; object-fit: cover; background: #162138; }
.focus-card > div { padding: clamp(1rem, 2vw, 1.6rem); display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.focus-card .eyebrow { margin-bottom: .75rem; }
.focus-card h3 + p { margin: .65rem 0 .9rem; color: var(--body); }
.card-action { margin-top: auto; color: var(--accent); font-size: .91rem; font-weight: 650; }
.focus-card:hover .card-action { text-decoration: underline; }
.experiment-section { background: #faf8f3; border-block: 1px solid var(--border); padding-block: clamp(3rem, 6vw, 5rem); }
.experiment-grid, .notes-section { display: grid; grid-template-columns: .84fr 1.16fr; gap: clamp(2rem, 6vw, 5.5rem); }
.experiment-grid { align-items: center; }
.experiment-steps { padding-left: 1.4rem; margin: 1rem 0 1.4rem; color: var(--body); }
.experiment-steps li { margin: .4rem 0; padding-left: .25rem; }
.experiment-steps li::marker { color: var(--accent); font-weight: 680; }
.text-link { color: var(--accent); font-weight: 670; text-underline-offset: 4px; }
.text-link:hover { color: var(--accent-hover); }
.signal-card { min-width: 0; padding: clamp(1.15rem, 3vw, 2.1rem); border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.signal-meta { color: var(--accent); font-size: .83rem; font-weight: 680; margin-bottom: .45rem; }
.signal-controls { display: flex; gap: .45rem; padding: 0; border: 0; margin: 1rem 0; flex-wrap: wrap; min-width: 0; }
.signal-controls label { display: flex; align-items: center; gap: .45rem; cursor: pointer; border: 1px solid var(--border); padding: .38rem .68rem; border-radius: 7px; }
.signal-controls label:has(:checked) { background: #eceaf6; border-color: var(--accent); }
.signal-controls input { margin: 0; accent-color: var(--accent); }
#trace { display: block; width: 100%; height: 152px; background: #111b31; border-radius: 6px; }
.signal-axis { display: flex; justify-content: space-between; color: var(--body); font-size: .81rem; margin-block: .32rem .95rem; }
#signal-caption { font-weight: 670; min-height: 2.6em; }
.signal-note { font-size: .9rem; color: var(--body); margin-top: .25rem; }
.notes-section { padding-block: clamp(3rem, 6vw, 5rem); }
.notes-list { border-top: 1px solid var(--border); }
.notes-list details { border-bottom: 1px solid var(--border); }
.notes-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: 1.15rem .3rem; }
.notes-list summary::-webkit-details-marker { display: none; }
.notes-list summary:hover strong { color: var(--accent); }
.notes-list small, .notes-list strong { display: block; }
.notes-list small { color: var(--accent); font-weight: 650; font-size: .84rem; margin-bottom: .25rem; }
.notes-list strong { font-size: 1.1rem; line-height: 1.3; }
.disclosure { width: 14px; height: 14px; display: grid; place-items: center; flex: none; position: relative; }
.disclosure::before, .disclosure::after { content: ""; background: var(--accent); position: absolute; width: 13px; height: 2px; }
.disclosure::after { transform: rotate(90deg); }
details[open] .disclosure::after { transform: none; }
.notes-list details p { padding: 0 .3rem 1.25rem; max-width: 42rem; color: var(--body); }
.about-section { border-block: 1px solid var(--border); }
.about-inner { max-width: 62rem; padding: clamp(1.65rem, 3vw, 3rem) clamp(.25rem, 3.8vw, 3rem); }
.about-inner h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.about-inner h3 { margin-top: 1.5rem; }
.about-inner p { color: var(--body); margin-top: .8rem; }
.about-links { display: flex; flex-wrap: wrap; gap: .45rem 1.25rem; margin-top: 1.1rem; }
.about-links a { color: var(--accent); font-weight: 620; text-underline-offset: 3px; }
.site-footer { background: var(--paper); padding-block: clamp(1.7rem, 4vw, 3.4rem); }
.footer-inner { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; padding-block: .85rem 1.6rem; color: var(--body); font-size: .91rem; }
.footer-inner .brand { color: var(--ink); }
.footer-inner p { margin-top: .2rem; }
.footer-inner nav { display: flex; gap: .6rem 1.15rem; flex-wrap: wrap; }
.site-footer a { text-underline-offset: 3px; }
.footer-credits { border-top: 1px solid var(--border); padding-top: 1rem; color: var(--body); font-size: .84rem; }
@media (max-width: 1000px) {
  .shell { width: calc(100% - 4rem); }
  .hero { gap: 1.6rem; }
  .header-inner { gap: .65rem; }
  .site-header nav a { padding-inline: .6rem; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 1rem; }
  .site-header { position: static; }
  .brand-logo { height: 58px; }
  .shell { width: calc(100% - 2.3rem); }
  .header-inner { flex-wrap: wrap; justify-content: space-between; padding-block: .65rem; }
  .site-header nav { order: 3; width: 100%; margin: 0; }
  .site-header nav a { padding: .37rem .55rem; }
  .hero, .perspective, .experiment-grid, .notes-section { grid-template-columns: 1fr; }
  .hero { padding-top: 2.3rem; }
  h1 { font-size: clamp(2.6rem, 8.6vw, 4rem); }
  .perspective { gap: .3rem; }
  .focus-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
