*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.04; margin: 0; letter-spacing: -0.01em; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 16px; top: 16px; }

.wrap { width: min(100% - 32px, 1180px); margin-inline: auto; }

/* Masthead */
.masthead { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.masthead.scrolled { border-bottom-color: var(--rule); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.wordmark { font-family: var(--font-body); font-weight: 600; letter-spacing: 0.24em; font-size: 0.95rem; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.wordmark svg { width: 22px; height: 22px; }
.masthead nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; font-size: 0.93rem; }
.masthead nav a { color: var(--ink-2); text-decoration: none; }
.masthead nav a:hover { color: var(--ink); }
.masthead .talk { color: var(--paper); background: var(--accent); padding: 8px 16px; border-radius: 999px; text-decoration: none; font-size: 0.93rem; white-space: nowrap; }
.masthead .talk:hover { background: var(--ink); }
@media (max-width: 860px) { .masthead nav { display: none; } }

/* Hero */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(3rem, 7.4vw, 6.4rem); line-height: 0.96; letter-spacing: -0.02em; }
.hero .lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 34em; margin-top: 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 34px; }
.btn { display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; padding: 14px 24px; border-radius: 999px; font-weight: 500; }
.btn:hover { background: var(--accent); }
.quiet-link { color: var(--ink); }
.drum-figure { margin: 0; }
.drum-figure svg { width: 100%; height: auto; }
.drum-figure figcaption { font-size: 0.9rem; color: var(--ink-2); text-align: center; margin-top: 8px; }
.turning { transform-box: view-box; transform-origin: 250px 230px; animation: turn 480s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .drum-figure { max-width: 440px; margin-inline: auto; width: 100%; }
}

/* Sections */
section { scroll-margin-top: 72px; }
.band { padding: clamp(64px, 10vw, 128px) 0; border-top: 1px solid var(--rule); }
.band-alt { background: var(--paper-2); }
.band-night { background: var(--night); color: var(--night-ink); border-top: 0; }
.band-night a { color: #a9d3b2; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.split > .lead { position: sticky; top: 104px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split > .lead { position: static; } }
h2 { font-size: clamp(2.3rem, 4.8vw, 4rem); }
.lead p.intro { font-size: 1.15rem; color: var(--ink-2); margin-top: 22px; max-width: 30em; }
.band-night .lead p.intro { color: var(--night-ink-2); }
.prose { max-width: 38em; }
.prose p { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 10px; }

/* Tropisms */
.tropisms { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--rule); }
.tropisms div { padding: 22px 22px 22px 0; border-bottom: 1px solid var(--rule); }
.tropisms div:nth-child(odd) { border-right: 1px solid var(--rule); }
.tropisms div:nth-child(even) { padding-left: 22px; padding-right: 0; }
.tropisms dt { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; }
.tropisms dd { margin: 6px 0 0; color: var(--ink-2); font-size: 0.98rem; }
@media (max-width: 560px) {
  .tropisms { grid-template-columns: 1fr; }
  .tropisms div, .tropisms div:nth-child(even) { padding: 18px 0; border-right: 0; }
}
.live-figure { margin: 40px 0 0; background: var(--paper-2); border-radius: var(--radius); overflow: hidden; }
.live-figure iframe { width: 100%; aspect-ratio: 16 / 11; border: 0; }
.live-figure figcaption { padding: 14px 20px 18px; font-size: 0.9rem; color: var(--ink-2); border-top: 1px solid var(--rule); }

/* Geometry explorer */
.explorer { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(18px, 3vw, 32px); }
.toggle { display: inline-flex; padding: 4px; background: var(--paper-2); border-radius: 999px; gap: 4px; }
.toggle button { font: inherit; font-size: 0.95rem; border: 0; background: transparent; color: var(--ink-2); padding: 9px 18px; border-radius: 999px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.explorer-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 22px; }
.explorer svg { width: 100%; height: auto; }
.geo-state[hidden] { display: none; }
.explorer-copy h3 { font-size: 1.7rem; }
.explorer-copy p { color: var(--ink-2); margin: 0; }
@media (max-width: 640px) { .explorer-body { grid-template-columns: 1fr; } }
.variables { list-style: none; padding: 0; margin: 36px 0 0; columns: 2; column-gap: 40px; }
.variables li { break-inside: avoid; padding: 14px 0; border-top: 1px solid var(--rule); }
.variables b { display: block; font-weight: 600; font-size: 0.98rem; }
.variables span { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 640px) { .variables { columns: 1; } }

/* Hardware */
.hardware { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 8px; }
.hardware > div { padding: 20px 0; border-top: 1px solid var(--rule); }
.hardware h3 { font-size: 1.45rem; }
.hardware p { color: var(--ink-2); margin: 0; font-size: 0.98rem; }
.places { margin-top: 40px; font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.25; color: var(--ink); max-width: 30em; }
.places span { color: var(--ink-2); }
@media (max-width: 640px) { .hardware { grid-template-columns: 1fr; } }

/* Soil */
.soil { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.soil blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.9rem, 3.8vw, 3.1rem); line-height: 1.12; }
.media-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.media-list li { background: var(--accent-soft); color: var(--accent); padding: 6px 14px; border-radius: 999px; font-size: 0.92rem; }
@media (max-width: 860px) { .soil { grid-template-columns: 1fr; } }

/* Variants */
.variants { list-style: none; padding: 0; margin: 48px 0 0; border-top: 1px solid var(--ink); }
.variants li { display: grid; grid-template-columns: minmax(130px, 3fr) minmax(0, 6fr) minmax(150px, 2.4fr); gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.variants .name { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.variants .what { color: var(--ink-2); }
.variants .status { font-size: 0.9rem; color: var(--ink-2); text-align: right; }
.variants .now .status { color: var(--accent); font-weight: 600; }
.variants .now .status::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); margin-right: 8px; vertical-align: 1px; }
@media (max-width: 720px) {
  .variants li { grid-template-columns: 1fr; gap: 4px; }
  .variants .status { text-align: left; }
}

/* Licensing */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 52px; border-top: 1px solid var(--rule); }
.roles > div { padding: 26px 26px 6px 0; }
.roles > div + div { padding-left: 26px; border-left: 1px solid var(--rule); }
.roles h3 { font-size: 1.6rem; }
.roles p { color: var(--ink-2); font-size: 0.98rem; }
@media (max-width: 760px) {
  .roles { grid-template-columns: 1fr; }
  .roles > div, .roles > div + div { padding: 22px 0 4px; border-left: 0; border-top: 1px solid var(--rule); }
  .roles > div:first-child { border-top: 0; }
}
.not { margin-top: 44px; padding: 24px 28px; background: var(--accent-soft); border-radius: var(--radius); color: var(--ink); max-width: 46em; }
.not p { margin: 0; }

/* Phases */
.phases { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: phase; position: relative; }
.phases::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 1px; background: var(--rule); }
.phases li { position: relative; padding-right: 32px; counter-increment: phase; }
.phases li::before { content: counter(phase); position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 22px; }
.phases li:first-child::before { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.phases h3 { font-size: 1.7rem; }
.phases p { color: var(--ink-2); font-size: 0.98rem; }
@media (max-width: 760px) {
  .phases { grid-template-columns: 1fr; gap: 28px; }
  .phases::before { left: 19px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .phases li { padding: 0 0 0 64px; }
  .phases li::before { position: absolute; left: 0; top: 0; margin: 0; }
}

/* Platform (night band) */
.capabilities { list-style: none; margin: 0; padding: 0; }
.capabilities li { padding: 22px 0; border-top: 1px solid #3a372f; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; }
.capabilities li:last-child { border-bottom: 1px solid #3a372f; }
.capabilities b { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.15; }
.capabilities span { color: var(--night-ink-2); }
@media (max-width: 560px) { .capabilities li { grid-template-columns: 1fr; gap: 4px; } }
.band-night h2 { color: var(--night-ink); }

/* Where we are */
.stage-now { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.15; max-width: 22em; margin-top: 28px; }
.sequence { list-style: none; padding: 0; margin: 48px 0 0; counter-reset: step; }
.sequence li { counter-increment: step; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--rule); }
.sequence li::before { content: counter(step); font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--accent); }
.sequence h3 { font-size: 1.45rem; margin-bottom: 6px; }
.sequence p { color: var(--ink-2); margin: 0; max-width: 40em; }
.closing { margin-top: 48px; font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; max-width: 28em; }

/* Contact */
.contact { padding: clamp(80px, 12vw, 150px) 0; background: var(--accent); color: var(--paper); }
.contact h2 { font-size: clamp(2.6rem, 6vw, 5rem); max-width: 14em; }
.contact p { font-size: 1.15rem; max-width: 34em; margin-top: 22px; color: #dbe7d6; }
.contact .mail { display: inline-block; margin-top: 18px; font-family: var(--font-display); font-size: clamp(1.5rem, 4.4vw, 2.6rem); color: var(--paper); overflow-wrap: anywhere; }
.contact :focus-visible { outline-color: var(--paper); }

footer { padding: 28px 0 40px; font-size: 0.88rem; color: var(--ink-2); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .turning { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
