/* Imersão Claude Code — claude-code.aisac.global
   Marble and terminal: warm paper, ink, one clay accent. Fonts are self-hosted (OFL). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/geist-mono-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5efe8;
  --paper-warm: #efe6db;
  --paper-bright: #fbf8f3;
  --ink: #17130f;
  --ink-soft: #4a433c;
  --ink-mute: #6f665d;
  --hairline: rgba(23, 19, 15, 0.1);
  --clay: #d97757;
  --clay-deep: #c4502a;
  --clay-press: #a94221;
  --night: #1c1815;
  --night-soft: #2b2521;
  /* Text and rules on the night sections. */
  --clay-soft: #f0b79f;
  --on-night: rgba(251, 248, 243, 0.76);
  --on-night-mute: rgba(251, 248, 243, 0.6);
  --night-line: rgba(251, 248, 243, 0.14);

  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --pad: clamp(16px, 3.2vw, 56px);
  --pad-tight: clamp(12px, 1.1vw, 20px);
  --topbar-h: clamp(64px, 10svh, 96px);
  --strip-h: 60px;
  --float-h: 64px;
  --wrap: 1240px;
  --section-pad: clamp(72px, 9.5vw, 148px);
  --radius: clamp(14px, 1.2vw, 20px);

  /* The statue image is 1354x1162. Everything that must dodge it derives from --statue-w. */
  --statue-w: min(62.5vw, 120svh, 1320px);
  --statue-sink: calc(var(--statue-w) * 0.11);

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::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: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--clay-deep);
  outline-offset: 4px;
  border-radius: 4px;
}

::selection {
  background: var(--clay);
  color: #fff;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ── Top bar ─────────────────────────────────────────────── */

.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  height: var(--topbar-h);
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.3vw, 22px);
  min-width: 0;
}

.brand__mascot {
  width: clamp(34px, 3.9vw, 66px);
  transition: transform 0.5s var(--ease-out);
}

.brand:hover .brand__mascot {
  transform: translateY(-3px) rotate(-4deg);
}

.brand__rule {
  width: 1.5px;
  height: clamp(22px, 2.5vw, 42px);
  background: var(--ink);
  opacity: 0.75;
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 1.62vw, 1.75rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 46px);
  font-size: clamp(0.9rem, 1.02vw, 1.1rem);
  font-weight: 500;
}

.topbar__nav a {
  position: relative;
  padding: 8px 0;
}

.topbar__nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 2px;
  height: 1.5px;
  background: var(--clay-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.topbar__nav a:hover::after,
.topbar__nav a:focus-visible::after {
  transform: scaleX(1);
}

/* ── Hero frame ──────────────────────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  /* Fills the viewport; on tall, narrow windows it stops growing so the statue keeps its weight. */
  min-height: max(680px, min(100svh, 80vw));
  padding-top: var(--topbar-h);
  display: flex;
  flex-direction: column;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 66% at 51% 36%, #fffdfa 0%, rgba(255, 253, 250, 0) 64%),
    radial-gradient(80% 50% at 50% 108%, rgba(196, 80, 42, 0.13), rgba(196, 80, 42, 0) 62%),
    linear-gradient(180deg, #f7f1ea 0%, #f1e8dd 100%);
}

.hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/grain.webp") 0 0 / 128px 128px;
  mix-blend-mode: multiply;
  opacity: 0.5;
}

.hero__main {
  position: relative;
  z-index: 3;
  flex: 1;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-content: center;
  align-items: start;
  gap: 24px;
  padding: clamp(10px, 2svh, 24px) var(--pad) clamp(18px, 4.5svh, 52px);
  pointer-events: none; /* the statue shows through; children opt back in */
}

.hero__main > * {
  pointer-events: auto;
}

/* ── Copy ────────────────────────────────────────────────── */

.hero__copy {
  /* Stops short of the statue's headphones (16% of the image width left of its centre). */
  width: calc(50vw - var(--pad) - var(--statue-w) * 0.16 - 12px);
  /* Below the title the statue's phone reaches further left: the text under it is narrower. */
  --copy-narrow: calc(50vw - var(--pad) - var(--statue-w) * 0.228 - 20px);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, min(3.75vw, 7.2svh), 4.6rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.038em;
}

.hero__line {
  display: block;
  overflow: hidden;
  /* room for descenders and the cedilla inside the clip */
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
  white-space: nowrap;
}

.hero__line > span {
  display: block;
}

.hero__lede {
  margin-top: clamp(14px, 2.2svh, 26px);
  max-width: min(27em, var(--copy-narrow));
  color: var(--ink-soft);
  font-size: clamp(1rem, min(1.26vw, 2.5svh), 1.4rem);
  line-height: 1.48;
}

.hero__actions {
  margin-top: clamp(18px, 3.2svh, 36px);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 14px clamp(18px, 1.6vw, 28px);
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.85em;
  min-height: 52px;
  padding: 0.95em 1.55em;
  border-radius: 12px;
  /* Both stops keep white text at 4.5:1 or better. */
  background: linear-gradient(180deg, var(--clay-deep) 0%, #b84925 100%);
  color: #fff;
  font-size: clamp(0.92rem, 1.08vw, 1.14rem);
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 1px 2px rgba(120, 44, 18, 0.35),
    0 16px 32px -14px rgba(196, 80, 42, 0.7);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.2s;
}

.button .icon {
  width: 1.35em;
  height: 1.35em;
  stroke-width: 2.2;
  transition: transform 0.35s var(--ease-out);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 2px 3px rgba(120, 44, 18, 0.35),
    0 22px 38px -14px rgba(196, 80, 42, 0.8);
}

.button:hover .icon {
  transform: translateX(5px);
}

.button:active {
  transform: translateY(0);
  background: var(--clay-press);
}

.text-link {
  padding: 6px 0;
  font-size: clamp(0.98rem, 1.12vw, 1.2rem);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.42em;
  transition: color 0.2s, text-underline-offset 0.3s var(--ease-out);
}

.text-link:hover {
  color: var(--clay-deep);
  text-underline-offset: 0.6em;
}

/* ── Certifications ──────────────────────────────────────── */

.certs {
  /* Sized by height and by the statue too, so it stays clear of the right shoulder. */
  width: min(30vw, 50svh, 50vw - var(--pad) - var(--statue-w) * 0.27, 540px);
  min-width: 250px;
  margin-top: clamp(-14px, -1svh, -4px);
  padding: clamp(14px, 1.7vw, 30px) clamp(12px, 1.3vw, 22px) clamp(12px, 1.4vw, 24px);
  border: 1px solid rgba(23, 19, 15, 0.09);
  border-radius: clamp(14px, 1.2vw, 20px);
  background: linear-gradient(180deg, rgba(255, 253, 250, 0.82), rgba(250, 245, 238, 0.66));
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 30px 60px -38px rgba(88, 52, 24, 0.45);
  text-align: center;
}

.certs__title {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, min(1.6vw, 2.9svh), 1.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.certs__badges {
  margin-top: clamp(10px, 1.5vw, 24px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(4px, 0.6vw, 10px);
}

.certs__badges img {
  width: 100%;
  filter: drop-shadow(0 8px 10px rgba(150, 62, 30, 0.22));
  transition: transform 0.5s var(--ease-out);
}

.certs__badges li:hover img {
  transform: translateY(-4px) rotate(-2.5deg) scale(1.03);
}

.certs__badges li:nth-child(2):hover img {
  transform: translateY(-4px) rotate(2deg) scale(1.03);
}

.certs__codes {
  margin-top: clamp(10px, 1.3vw, 22px);
  padding-top: clamp(8px, 1vw, 16px);
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  font-family: var(--font-mono);
  font-size: clamp(0.66rem, 0.86vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

/* ── Statue ──────────────────────────────────────────────── */

.statue {
  position: absolute;
  left: 50%;
  bottom: var(--strip-h);
  z-index: 2;
  width: var(--statue-w);
  margin-left: calc(var(--statue-w) * -0.5);
  margin-bottom: calc(var(--statue-sink) * -1);
  pointer-events: none;
  perspective: 1500px;
}

.statue__parallax {
  transform-origin: 50% 82%;
  will-change: transform;
}

.statue__body {
  position: relative;
}

.statue__img {
  width: 100%;
  filter: drop-shadow(0 28px 34px rgba(70, 44, 22, 0.2));
}

.statue__glint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.statue__glint-wide {
  fill: #fff;
  opacity: 0.26;
}

.statue__glint-thin {
  fill: #fff;
  opacity: 0.38;
}

/* A thin nimbus behind the head; it drifts against the statue for depth. */
.statue__halo {
  position: absolute;
  left: 48.9%;
  top: 20%;
  width: 38%;
  aspect-ratio: 1;
  margin: -19% 0 0 -19%;
  border-radius: 50%;
  border: 1px solid rgba(196, 80, 42, 0.3);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 74%);
}

.statue__halo::after {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  border: 1px dashed rgba(23, 19, 15, 0.14);
}

/* ── Builds ──────────────────────────────────────────────── */

.builds {
  position: relative;
  z-index: 1;
  padding: 0 var(--pad-tight) clamp(12px, 2svh, 22px);
}

.builds__label {
  margin: 0 0 10px calc(var(--pad) - var(--pad-tight));
  font-family: var(--font-mono);
  font-size: clamp(0.66rem, 0.74vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.builds__label span {
  color: var(--clay-deep);
}

.builds__list {
  /* The statue's body is ~72% of its width; the middle column is narrower, so the inner cards run
     behind it. The tucks are how far an inner card's text keeps away from the statue, which is wider
     at the foot of the card than at its head. Measured against the image; .tools/qa.mjs checks them
     with the statue pushed to both ends of its travel. */
  --tuck-head: calc(var(--statue-w) * 0.056);
  --tuck-foot: calc(var(--statue-w) * 0.076);
  --tuck-foot-end: calc(var(--statue-w) * 0.09);
  display: grid;
  grid-template-columns: 1fr 1fr calc(var(--statue-w) * 0.6) 1fr 1fr;
  gap: clamp(8px, 0.8vw, 14px);
}

.build:nth-child(3) {
  grid-column: 4;
}

.build {
  position: relative;
  min-width: 0;
  padding: clamp(10px, 0.95vw, 16px);
  border-radius: clamp(12px, 1vw, 16px);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.build--dark {
  background: linear-gradient(160deg, var(--night-soft), var(--night) 60%);
  color: var(--paper-bright);
  box-shadow: 0 24px 40px -28px rgba(23, 19, 15, 0.7);
}

.build--light {
  background: linear-gradient(160deg, #fffdfa, #f4ece2);
  box-shadow: inset 0 0 0 1px rgba(23, 19, 15, 0.07), 0 24px 40px -30px rgba(88, 52, 24, 0.5);
}

.build:hover {
  transform: translateY(-5px);
}

.build__head {
  display: flex;
  align-items: center;
  gap: 0.6em;
  min-height: clamp(22px, 2.1vw, 34px);
  margin-bottom: clamp(8px, 0.8vw, 14px);
  font-size: clamp(0.8rem, 0.98vw, 1.14rem);
}

.build__head .icon {
  width: 1.35em;
  height: 1.35em;
  stroke-width: 1.7;
}

.build--dark .build__head .icon {
  color: #f0b79f;
}

.build--light .build__head .icon {
  color: var(--clay-deep);
}

.build__name {
  font-family: var(--font-display);
  font-size: inherit;
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.build__shot {
  position: relative;
  overflow: hidden;
  border-radius: clamp(7px, 0.6vw, 10px);
  aspect-ratio: 16 / 8.2;
  background: var(--night);
}

.build--light .build__shot {
  box-shadow: inset 0 0 0 1px rgba(23, 19, 15, 0.08);
}

/* Marble by default; the product's own colours come back on hover. */
.build__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) sepia(0.3) contrast(1.06) brightness(0.96);
  transition: filter 0.6s var(--ease-out), transform 0.9s var(--ease-out);
}

.build:hover .build__shot img {
  filter: none;
  transform: scale(1.05);
}

.build__shot--pixel {
  background-color: #f7f0e7;
  background-image:
    linear-gradient(rgba(23, 19, 15, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 19, 15, 0.055) 1px, transparent 1px);
  background-size: 10px 10px;
}

.build__shot--pixel img {
  object-fit: contain;
  padding: 5% 5% 14%;
  image-rendering: pixelated;
}

.build__tag {
  position: absolute;
  left: 6px;
  bottom: 6px;
  max-width: calc(100% - 12px);
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(23, 19, 15, 0.72);
  color: var(--paper-bright);
  font-family: var(--font-mono);
  font-size: clamp(0.56rem, 0.62vw, 0.7rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The inner cards run behind the statue: keep what must be read out from under it. */
.build--tuck-start .build__head {
  margin-left: var(--tuck-head);
}

.build--tuck-start .build__tag {
  margin-left: var(--tuck-foot);
  max-width: calc(100% - 12px - var(--tuck-foot));
}

.build--tuck-start .build__shot--pixel img {
  padding-left: calc(3% + var(--tuck-foot));
}

.build--tuck-end .build__tag {
  max-width: calc(100% - 12px - var(--tuck-foot-end));
}

/* ── Facts strip ─────────────────────────────────────────── */

.hero__strip {
  position: relative;
  z-index: 4;
  min-height: var(--strip-h);
  padding: 10px var(--pad);
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.2vw, 20px);
  border-top: 1px solid var(--hairline);
  background: linear-gradient(180deg, #f1e9df, #ede3d7);
  font-size: clamp(0.95rem, 1.16vw, 1.22rem);
  font-weight: 500;
}

.hero__strip .icon {
  width: 1.5em;
  height: 1.5em;
  color: var(--clay-deep);
}

.hero__facts {
  --fact-gap: 1.75em;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
  /* Every fact has its dot in front. The dot of a fact that starts a line sits in this clipped margin,
     so a wrapped line never opens with a separator. */
  margin-left: calc(-1 * var(--fact-gap));
  clip-path: inset(0 0 0 var(--fact-gap));
}

.hero__facts li::before {
  content: "·";
  display: inline-block;
  width: var(--fact-gap);
  text-align: center;
  color: var(--ink-mute);
  font-weight: 700;
}

/* ── Floating top bar (page.js) ──────────────────────────── */

.topbar.is-floating {
  position: fixed;
  height: var(--float-h);
  border-bottom: 1px solid var(--hairline);
  background: rgba(245, 239, 232, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 14px 30px -26px rgba(88, 52, 24, 0.6);
}

.topbar.is-floating .brand__mascot {
  width: 34px;
}

.topbar.is-floating .brand__rule {
  height: 22px;
}

.topbar.is-floating .brand__name {
  font-size: 1.05rem;
}

.topbar.is-floating .topbar__nav {
  font-size: 0.95rem;
}

.topbar.is-floating .topbar__nav .topbar__tickets {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--clay-deep) 0%, #b84925 100%);
  color: #fff;
  font-weight: 650;
}

.topbar.is-floating .topbar__tickets::after {
  display: none;
}

/* ── Sections ────────────────────────────────────────────── */

.section {
  position: relative;
  isolation: isolate;
  padding: var(--section-pad) var(--pad);
  scroll-margin-top: var(--float-h);
}

/* The hero's paper grain, so the page reads as one sheet. */
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/grain.webp") 0 0 / 128px 128px;
  mix-blend-mode: multiply;
  opacity: 0.5;
  pointer-events: none;
}

.section--warm {
  background: var(--paper-warm);
}

.section--night {
  background:
    radial-gradient(70% 60% at 88% 0%, #33291f 0%, rgba(51, 41, 31, 0) 62%),
    var(--night);
  color: var(--paper-bright);
}

.section--clay {
  /* Both stops keep white text at 4.5:1 or better. */
  background: linear-gradient(120deg, #b84925 0%, var(--clay-press) 100%);
  color: #fff;
}

.section--night::before,
.section--clay::before {
  mix-blend-mode: soft-light;
  opacity: 0.4;
}

.section__wrap {
  max-width: var(--wrap);
  margin-inline: auto;
}

.section__head {
  max-width: 50rem;
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__lede {
  margin-top: clamp(14px, 1.5vw, 22px);
  max-width: 38em;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.3vw, 1.3rem);
  line-height: 1.5;
}

.section__lede strong {
  color: var(--ink);
}

.section__head--center .section__lede {
  margin-inline: auto;
}

.eyebrow {
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 0.76vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--clay-deep);
}

.section--night .eyebrow {
  color: var(--on-night-mute);
}

.section--night .eyebrow span {
  color: var(--clay);
}

.title {
  margin-top: clamp(14px, 1.4vw, 22px);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.9vw, 3.5rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.title em {
  color: var(--clay-deep);
  font-style: normal;
}

.section--night .title em {
  color: var(--clay);
}

.prose {
  display: grid;
  justify-items: start;
  gap: 1.05em;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.22vw, 1.22rem);
  line-height: 1.55;
}

.prose strong,
.prose__strong {
  color: var(--ink);
  font-weight: 650;
}

.prose__lead {
  color: var(--clay-deep);
  font-family: var(--font-display);
  font-size: 1.55em;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.prose .button {
  margin-top: 0.7em;
}

.section--night .prose {
  color: var(--on-night);
}

.section--night .prose strong,
.section--night .prose__strong {
  color: var(--paper-bright);
}

.section--clay .prose,
.section--clay .prose__strong {
  color: #fff;
}

.section .button {
  white-space: normal;
  line-height: 1.2;
}

.fineprint {
  color: var(--ink-mute);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* ── 01 Idea ─────────────────────────────────────────────── */

.idea__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 110px);
  align-items: start;
}

.idea__head {
  position: sticky;
  top: calc(var(--float-h) + 32px);
}

.idea .title {
  font-size: clamp(2.1rem, 4.6vw, 4.1rem);
}

/* ── 02 What you can build ───────────────────────────────── */

.make__grid {
  margin-top: clamp(32px, 4vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.2vw, 20px);
}

.make__card {
  padding: clamp(20px, 2vw, 32px);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #fffdfa, #f6eee4);
  box-shadow: inset 0 0 0 1px rgba(23, 19, 15, 0.07), 0 24px 40px -32px rgba(88, 52, 24, 0.45);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.make__card:hover {
  transform: translateY(-5px);
  box-shadow: inset 0 0 0 1px rgba(196, 80, 42, 0.3), 0 30px 46px -30px rgba(88, 52, 24, 0.55);
}

.make__top {
  margin-bottom: clamp(28px, 3.4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.make__num {
  color: var(--clay-press);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.make__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--night-soft), var(--night));
  color: var(--clay-soft);
}

.make__icon .icon {
  width: 22px;
  height: 22px;
}

.make__card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.55vw, 1.55rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.make__card p {
  margin-top: 10px;
  color: var(--ink-soft);
}

.make__close {
  margin-top: clamp(32px, 4vw, 64px);
  max-width: 46rem;
  display: grid;
  gap: 12px;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.22vw, 1.22rem);
}

.make__claim {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.9vw, 1.9rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

/* ── 03 Method ───────────────────────────────────────────── */

.method__top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 110px);
  align-items: end;
}

.method__prompt {
  justify-self: stretch;
  padding: 14px 18px;
  border: 1px dashed rgba(251, 248, 243, 0.24);
  border-radius: 12px;
  background: rgba(251, 248, 243, 0.04);
  color: var(--paper-bright);
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.method__prompt span {
  margin-right: 0.4em;
  color: var(--clay);
}

.flow {
  margin-top: clamp(40px, 5vw, 84px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: flow;
}

.flow li {
  position: relative;
  padding: 20px 20px 0 0;
  border-top: 1px solid rgba(251, 248, 243, 0.26);
  counter-increment: flow;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.9vw, 1.9rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.028em;
}

.flow li::before {
  content: "0" counter(flow);
  display: block;
  margin-bottom: 12px;
  color: var(--on-night-mute);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.flow li::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper-bright);
}

.flow li:last-child {
  border-top-color: var(--clay);
  color: var(--clay);
}

.flow li:last-child::after {
  background: var(--clay);
  box-shadow: 0 0 0 5px rgba(217, 119, 87, 0.22);
}

.method__list {
  margin-top: clamp(40px, 5vw, 84px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 56px);
}

.method__item {
  padding: clamp(20px, 2.2vw, 30px) 0;
  border-top: 1px solid var(--night-line);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 16px;
  align-items: baseline;
}

.method__num {
  color: var(--clay);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.method__item h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.method__item p {
  grid-column: 2;
  color: var(--on-night);
}

.method__close {
  margin-top: clamp(36px, 4.6vw, 76px);
  max-width: 22em;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.method__close em {
  color: var(--clay);
  font-style: normal;
}

/* ── 04 Demonstration ────────────────────────────────────── */

.demo__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 100px);
  align-items: center;
}

.demo__prose {
  margin-top: clamp(20px, 2.4vw, 34px);
}

.console {
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--night-soft), var(--night) 60%);
  color: var(--paper-bright);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 50px 80px -46px rgba(23, 19, 15, 0.8);
  font-family: var(--font-mono);
  rotate: 1.4deg;
}

.console__bar {
  padding: 14px 18px;
  border-bottom: 1px solid var(--night-line);
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--on-night-mute);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.console__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(251, 248, 243, 0.2);
}

.console__path {
  margin-left: 10px;
}

.console__live {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--clay-soft);
  text-transform: uppercase;
}

.console__live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clay);
}

.console__steps {
  padding: 6px 18px 0;
}

.console__steps li {
  padding: clamp(12px, 1.3vw, 17px) 0;
  border-bottom: 1px dashed var(--night-line);
  display: grid;
  grid-template-columns: 2.6em minmax(0, 1fr) auto;
  align-items: center;
  font-size: clamp(0.9rem, 1.12vw, 1.08rem);
}

.console__num {
  color: var(--on-night-mute);
  font-size: 0.78em;
}

.console__steps .icon {
  color: var(--clay-soft);
  stroke-width: 2.2;
}

.console__now {
  color: var(--clay);
}

.console__state {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(217, 119, 87, 0.16);
  color: var(--clay-soft);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.console__prompt {
  padding: 16px 18px 18px;
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: clamp(0.9rem, 1.12vw, 1.08rem);
}

.console__prompt span:first-child {
  color: var(--clay);
}

.console__caret {
  width: 0.6em;
  height: 1.15em;
  background: var(--paper-bright);
}

/* ── 05 Programme ────────────────────────────────────────── */

.program__meta {
  margin-top: clamp(16px, 1.8vw, 26px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.program__meta li {
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  background: var(--paper-bright);
  box-shadow: inset 0 0 0 1px rgba(23, 19, 15, 0.1);
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
}

.program__meta .icon {
  color: var(--clay-deep);
}

.agenda {
  margin-top: clamp(32px, 4vw, 64px);
  border-top: 1px solid rgba(23, 19, 15, 0.2);
}

.agenda__slot {
  padding: clamp(20px, 2.3vw, 34px) 0;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: clamp(150px, 15vw, 210px) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 8px clamp(20px, 3vw, 52px);
  align-items: baseline;
}

.agenda__time {
  color: var(--clay-press);
  font-family: var(--font-mono);
  font-size: clamp(0.86rem, 1vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.agenda__slot h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.028em;
}

.agenda__topic {
  margin-top: 7px;
  font-weight: 650;
}

.agenda__text {
  color: var(--ink-soft);
}

.agenda__slot--aside h3,
.agenda__slot--break h3 {
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.35vw, 1.35rem);
  font-weight: 650;
}

.agenda__slot--aside .agenda__time,
.agenda__slot--break .agenda__time {
  color: var(--ink-mute);
}

.agenda__slot--break {
  padding-block: clamp(12px, 1.3vw, 18px);
  background: repeating-linear-gradient(-45deg, rgba(23, 19, 15, 0.035) 0 8px, transparent 8px 16px);
}

.agenda__slot--break h3 {
  grid-column: 2 / -1;
}

.program__note {
  margin-top: 18px;
}

/* ── 06 Instructor ───────────────────────────────────────── */

.teacher__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 100px);
  align-items: start;
}

.portrait {
  position: sticky;
  top: calc(var(--float-h) + 32px);
}

/* A niche for the bust: the same statue as the hero, on night instead of paper. */
.portrait__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px var(--radius) var(--radius);
  background:
    radial-gradient(60% 46% at 50% 30%, #4a3b30 0%, rgba(74, 59, 48, 0) 72%),
    linear-gradient(180deg, var(--night-soft), var(--night));
  box-shadow: 0 60px 90px -56px rgba(23, 19, 15, 0.85);
}

/* The image is wider than the niche and is cropped on both sides; its head sits on the halo. */
.portrait__frame img {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: auto;
  max-width: none;
  height: 88%;
  translate: -49% 0;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.45));
}

.portrait__halo {
  position: absolute;
  top: 29.6%;
  left: 50%;
  width: 49%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 1px solid rgba(217, 119, 87, 0.55);
  border-radius: 50%;
}

.portrait__halo::after {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px dashed rgba(251, 248, 243, 0.2);
  border-radius: 50%;
}

.portrait__caption {
  margin-top: 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portrait__caption strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-transform: none;
}

.teacher__copy {
  display: grid;
  gap: clamp(20px, 2.4vw, 34px);
}

.creds {
  border-top: 1px solid rgba(23, 19, 15, 0.2);
}

.creds li {
  padding: clamp(14px, 1.6vw, 22px) 0;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: clamp(64px, 6vw, 88px) minmax(0, 1fr);
  gap: clamp(14px, 1.6vw, 24px);
  align-items: center;
}

.creds img {
  filter: drop-shadow(0 8px 10px rgba(150, 62, 30, 0.22));
}

.creds h3 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.3vw, 1.3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.creds__code {
  margin-left: 0.3em;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--night);
  color: var(--paper-bright);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  vertical-align: 0.2em;
  white-space: nowrap;
}

.creds p {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.teacher__sub {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.8vw, 1.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.028em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--paper-bright);
  box-shadow: inset 0 0 0 1px rgba(23, 19, 15, 0.16);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.012em;
}

/* ── 07 Audience ─────────────────────────────────────────── */

.wishes {
  margin-top: clamp(32px, 4vw, 64px);
  border-top: 1px solid rgba(23, 19, 15, 0.2);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 72px);
}

.wishes li {
  padding: clamp(18px, 2vw, 28px) 0;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.wishes .icon {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 50%;
  background: var(--clay-deep);
  color: #fff;
  stroke-width: 2.6;
}

.wishes h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.wishes p {
  margin-top: 5px;
  color: var(--ink-soft);
}

.audience__close {
  margin-top: clamp(28px, 3.4vw, 52px);
  max-width: 40em;
  gap: 0.5em;
}

/* ── Cost band ───────────────────────────────────────────── */

.cost {
  padding-block: clamp(56px, 7vw, 112px);
}

.cost__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 100px);
  align-items: center;
}

.cost .title {
  margin-top: 0;
  font-size: clamp(1.9rem, 3.7vw, 3.3rem);
}

/* ── 08 Tickets ──────────────────────────────────────────── */

.tickets__sub {
  margin-top: 16px;
  color: var(--clay-press);
  font-family: var(--font-mono);
  font-size: clamp(0.74rem, 0.86vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lots {
  margin-top: clamp(40px, 4.8vw, 76px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 22px);
}

.lot {
  position: relative;
  padding: clamp(22px, 2.2vw, 34px);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #fffdfa, #f6eee4);
  box-shadow: inset 0 0 0 1px rgba(23, 19, 15, 0.08);
  display: flex;
  flex-direction: column;
}

.lot__label {
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lot__price {
  margin-top: clamp(14px, 1.6vw, 24px);
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 5.4vw, 5rem);
  font-weight: 750;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.lot__currency {
  margin-right: 0.22em;
  font-size: 0.36em;
  font-weight: 650;
  letter-spacing: -0.01em;
  vertical-align: 1.05em;
}

.lot__note {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lot__text {
  margin-top: 8px;
  flex: 1;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* The longest label on the page, set a step smaller so it stays on one line inside a lot card. */
.lot__buy {
  margin-top: 22px;
  padding-inline: 1.1em;
  gap: 0.6em;
  justify-content: center;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.lot__status {
  margin-top: 22px;
  min-height: 52px;
  padding: 8px 12px;
  border: 1px dashed rgba(23, 19, 15, 0.26);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.lot__fine {
  margin-top: 12px;
  color: var(--ink-mute);
  font-size: 0.82rem;
  text-align: center;
}

.lot__badge {
  position: absolute;
  top: clamp(18px, 1.9vw, 30px);
  right: clamp(18px, 1.9vw, 30px);
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--clay-deep) 0%, #b84925 100%);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* The lot on sale is the dark card. */
.lot[data-state="open"] {
  background: linear-gradient(160deg, var(--night-soft), var(--night) 60%);
  box-shadow: 0 46px 70px -44px rgba(23, 19, 15, 0.85);
  color: var(--paper-bright);
}

.lot[data-state="open"] .lot__label {
  color: var(--clay-soft);
}

.lot[data-state="open"] .lot__price {
  color: var(--paper-bright);
}

.lot[data-state="open"] .lot__text {
  color: var(--on-night);
}

.lot[data-state="open"] .lot__fine {
  color: var(--on-night-mute);
}

.lot[data-state="open"] .lot__status {
  border-color: rgba(251, 248, 243, 0.3);
  color: var(--clay-soft);
}

/* A sold-out lot goes flat and quiet. Its price is not struck through: that would read as a discount. */
.lot[data-state="closed"] {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(23, 19, 15, 0.14);
}

.lot[data-state="closed"] .lot__price,
.lot[data-state="closed"] .lot__note {
  color: var(--ink-mute);
}

/* A lot shows only what belongs to its state, and the section only what belongs to its sales state
   (site-config.js, applied by tickets.js). Hiding, not showing, so each element keeps its own display. */
.lot[data-state="open"] [data-when]:not([data-when~="open"]),
.lot[data-state="soon"] [data-when]:not([data-when~="soon"]),
.lot[data-state="closed"] [data-when]:not([data-when~="closed"]),
.tickets[data-sales="pending"] [data-sales-when]:not([data-sales-when~="pending"]),
.tickets[data-sales="open"] [data-sales-when]:not([data-sales-when~="open"]),
.tickets[data-sales="closed"] [data-sales-when]:not([data-sales-when~="closed"]) {
  display: none;
}

.tickets__close {
  margin: clamp(40px, 5vw, 80px) auto 0;
  max-width: 44rem;
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.tickets__close h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.tickets__close p {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.15vw, 1.15rem);
}

.tickets__close .button {
  margin-top: 10px;
}

.tickets__close .tickets__notice {
  margin-top: 6px;
  color: var(--clay-press);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── 09 Recap ────────────────────────────────────────────── */

.recap__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 100px);
  align-items: start;
}

.recap__prose {
  margin-top: clamp(20px, 2.4vw, 34px);
}

.recap__intro {
  color: var(--on-night-mute);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
}

.checks {
  margin-top: 16px;
  border-top: 1px solid rgba(251, 248, 243, 0.26);
}

.checks li {
  padding: clamp(14px, 1.5vw, 20px) 0;
  border-bottom: 1px solid var(--night-line);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(1.02rem, 1.3vw, 1.28rem);
  font-weight: 500;
}

.checks .icon {
  color: var(--clay);
  stroke-width: 2.4;
}

/* ── 10 FAQ ──────────────────────────────────────────────── */

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(28px, 6vw, 100px);
  align-items: start;
}

.faq__head {
  position: sticky;
  top: calc(var(--float-h) + 32px);
}

.faq__list {
  border-top: 1px solid rgba(23, 19, 15, 0.2);
}

.faq__item {
  border-bottom: 1px solid var(--hairline);
}

.faq__item summary {
  padding: clamp(18px, 2vw, 26px) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item h3 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.45vw, 1.42rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.022em;
  transition: color 0.2s;
}

.faq__item summary:hover h3 {
  color: var(--clay-press);
}

.faq__item summary .icon {
  width: 36px;
  height: 36px;
  padding: 9px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(23, 19, 15, 0.22);
  stroke-width: 2.2;
  transition: rotate 0.4s var(--ease-out), background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.faq__item[open] summary .icon {
  background: var(--clay-deep);
  box-shadow: none;
  color: #fff;
  rotate: 45deg;
}

.faq__answer {
  max-width: 44em;
  padding-bottom: clamp(18px, 2vw, 26px);
  display: grid;
  gap: 0.8em;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.12vw, 1.12rem);
  line-height: 1.55;
}

.faq__answer strong {
  color: var(--ink);
}

/* ── Final call ──────────────────────────────────────────── */

.final {
  overflow: clip;
  text-align: center;
}

.final__inner {
  position: relative;
  max-width: 68rem;
  display: grid;
  justify-items: center;
  gap: clamp(16px, 1.8vw, 26px);
}

.final .title {
  max-width: 17em;
}

/* The hero's nimbus, closing the page where it opened. */
.final__inner::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(760px, 118vw);
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 1px solid rgba(196, 80, 42, 0.3);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 253, 250, 0.9), rgba(255, 253, 250, 0) 76%);
}

.final__mascot {
  width: clamp(60px, 5.6vw, 92px);
}

.final__inner .title {
  margin-top: 0;
}

.final__lines {
  display: grid;
  gap: 4px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
}

.final__turn {
  max-width: 34em;
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  font-weight: 650;
}

.final__brand {
  margin-top: clamp(10px, 1.4vw, 22px);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8.2vw, 7rem);
  font-weight: 750;
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.final__tag {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 0.95vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.final .button {
  margin-top: 8px;
}

/* ── Footer ──────────────────────────────────────────────── */

.footer {
  padding: clamp(36px, 4vw, 64px) var(--pad);
  background: var(--night);
  color: var(--on-night);
}

.footer__wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px clamp(28px, 6vw, 96px);
  align-items: center;
}

.footer .brand__mascot {
  width: 40px;
}

.footer .brand__rule {
  height: 24px;
  background: var(--paper-bright);
}

.footer .brand__name {
  color: var(--paper-bright);
  font-size: 1.15rem;
}

.footer__note {
  max-width: 48em;
  justify-self: end;
  font-size: 0.88rem;
  line-height: 1.55;
}

.footer__bottom {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--night-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 0.86rem;
}

.footer__legal {
  display: flex;
  gap: 22px;
}

.footer__legal a {
  padding: 6px 0;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.footer__legal a:hover {
  color: var(--paper-bright);
}

.footer :focus-visible {
  outline-color: var(--clay);
}

/* ── Section motion ──────────────────────────────────────── */

@media (min-width: 1024px) {
  .lot[data-state="open"] {
    translate: 0 -14px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .topbar.is-floating {
    animation: fade-down 0.45s var(--ease-out) both;
  }

  /* `translate`, so the offset never fights a card's own hover transform. Only under .has-reveal,
     which page.js sets: without the script nothing is ever hidden. */
  .has-reveal .reveal {
    opacity: 0;
    translate: 0 26px;
    transition:
      opacity 0.8s var(--ease-out) var(--reveal-delay, 0s),
      translate 0.9s var(--ease-out) var(--reveal-delay, 0s),
      transform 0.5s var(--ease-out),
      box-shadow 0.5s var(--ease-out);
  }

  .has-reveal .reveal.is-visible {
    opacity: 1;
    translate: none;
  }

  .make__card:nth-child(3n + 2),
  .method__item:nth-child(3n + 2),
  .wishes li:nth-child(even) {
    --reveal-delay: 0.08s;
  }

  .make__card:nth-child(3n + 3),
  .method__item:nth-child(3n + 3) {
    --reveal-delay: 0.16s;
  }

  .console__caret {
    animation: caret-blink 1.1s steps(1) infinite;
  }

  .console__live::before {
    animation: live-pulse 1.8s ease-in-out infinite;
  }
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

@keyframes live-pulse {
  50% {
    opacity: 0.35;
  }
}

/* ── Entrance ────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .topbar {
    animation: fade-down 0.8s var(--ease-out) both;
  }

  .hero__line > span {
    animation: line-up 0.95s var(--ease-out) both;
  }

  .hero__line:nth-child(2) > span {
    animation-delay: 0.09s;
  }

  .hero__line:nth-child(3) > span {
    animation-delay: 0.18s;
  }

  .hero__lede {
    animation: fade-up 0.9s var(--ease-out) 0.32s both;
  }

  .hero__actions {
    animation: fade-up 0.9s var(--ease-out) 0.44s both;
  }

  .statue__body {
    animation:
      statue-rise 1.35s var(--ease-out) 0.08s both,
      statue-float 9s ease-in-out 1.6s infinite alternate;
  }

  .statue__halo {
    animation: halo-in 1.6s var(--ease-out) 0.35s both;
  }

  .certs {
    animation: fade-left 1s var(--ease-out) 0.55s both;
  }

  .builds__label {
    animation: fade-up 0.8s var(--ease-out) 0.7s both;
  }

  .build {
    animation: fade-up 0.9s var(--ease-out) both;
  }

  .build:nth-child(1) {
    animation-delay: 0.72s;
  }

  .build:nth-child(2) {
    animation-delay: 0.8s;
  }

  .build:nth-child(3) {
    animation-delay: 0.88s;
  }

  .build:nth-child(4) {
    animation-delay: 0.96s;
  }

  .hero__strip {
    animation: fade-in 0.9s ease 0.9s both;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}

@keyframes fade-left {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
}

@keyframes line-up {
  from {
    transform: translateY(108%);
  }
}

@keyframes statue-rise {
  from {
    opacity: 0;
    transform: translateY(5%) scale(1.035);
  }
}

/* `translate` (not `transform`) so it never fights the entrance or the pointer tilt. */
@keyframes statue-float {
  to {
    translate: 0 -7px;
  }
}

@keyframes halo-in {
  from {
    opacity: 0;
    transform: scale(0.86);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important; /* reduced motion wins over every component transition */
  }
}

/* ── Stacked layout: tablets and phones ──────────────────── */

@media (max-width: 1279px) {
  :root {
    --statue-w: min(128vw, 820px);
    --topbar-h: 64px;
    --strip-h: 0px;
  }

  .hero {
    min-height: 0;
  }

  .hero__main {
    display: contents;
  }

  .hero__copy {
    --copy-narrow: none;
    order: 1;
    position: relative;
    z-index: 3;
    width: auto;
    padding: clamp(16px, 4vw, 40px) var(--pad) 0;
  }

  .hero__title {
    font-size: clamp(1.85rem, 8.6vw, 3.9rem);
  }

  .hero__lede {
    margin-top: 16px;
    max-width: 30em;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
  }

  .hero__actions {
    margin-top: 22px;
    flex-wrap: wrap;
  }

  .button {
    font-size: 0.95rem;
  }

  .statue {
    order: 2;
    position: relative;
    left: auto;
    bottom: auto;
    align-self: center;
    flex-shrink: 0;
    margin: clamp(4px, 2vw, 20px) 0 calc(var(--statue-w) * -0.17);
  }

  /* The cut-off base of the bust fades out where the certifications card takes over. */
  .statue__body {
    -webkit-mask-image: linear-gradient(#000 80%, transparent 97%);
    mask-image: linear-gradient(#000 80%, transparent 97%);
  }

  .certs {
    order: 3;
    position: relative;
    z-index: 3;
    align-self: center;
    width: calc(100% - 2 * var(--pad));
    max-width: 560px;
    min-width: 0;
    margin-top: 0;
    padding: 20px 16px 16px;
    background: linear-gradient(180deg, rgba(255, 253, 250, 0.92), rgba(250, 245, 238, 0.86));
  }

  .certs__title {
    font-size: clamp(1.1rem, 4.6vw, 1.6rem);
  }

  .certs__badges {
    margin-top: 16px;
    gap: 8px;
  }

  .certs__codes {
    margin-top: 14px;
    padding-top: 12px;
    font-size: clamp(0.62rem, 2.6vw, 0.9rem);
    letter-spacing: 0.12em;
  }

  .builds {
    order: 4;
    z-index: 3;
    width: 100%;
    max-width: calc(720px + 2 * var(--pad));
    margin-inline: auto;
    padding: 28px var(--pad) 24px;
  }

  .builds__label {
    margin-left: 0;
    font-size: clamp(0.58rem, 2.5vw, 0.72rem);
    letter-spacing: 0.08em;
  }

  .builds__list {
    --tuck-head: 0px;
    --tuck-foot: 0px;
    --tuck-foot-end: 0px;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .build:nth-child(3) {
    grid-column: auto;
  }

  .build {
    padding: 10px;
  }

  .build__head {
    font-size: clamp(0.8rem, 3.5vw, 1.05rem);
    margin-bottom: 8px;
  }

  .build__tag {
    font-size: clamp(0.5rem, 2.2vw, 0.68rem);
  }

  .hero__strip {
    order: 5;
    align-items: flex-start;
    padding: 14px var(--pad);
    font-size: 0.95rem;
  }

  .hero__strip .icon {
    margin-top: 1px;
  }
}

@media (max-width: 719px) {
  .topbar__nav a:not(.topbar__tickets) {
    display: none;
  }

  .topbar__nav .topbar__tickets {
    padding: 8px 14px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
  }

  .topbar__tickets::after {
    display: none;
  }

  .brand__name {
    font-size: clamp(0.9rem, 4.4vw, 1.1rem);
  }

  .hero__facts {
    flex-direction: column;
    margin-left: 0;
    clip-path: none;
  }

  .hero__facts li::before {
    content: none;
  }
}

@media (max-width: 379px) {
  .button {
    width: 100%;
    justify-content: center;
  }

  /* Two cards per row leave ~120px each: the icon gives its room to the name. */
  .build__head .icon {
    display: none;
  }

  .build__head {
    font-size: 0.78rem;
  }
}

/* ── 404 (src/404.html) ──────────────────────────────────── */

.not-found {
  min-height: 100svh;
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.not-found__mascot {
  width: 88px;
}

.not-found__code {
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.not-found__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.not-found__text {
  max-width: 30em;
  margin-bottom: 10px;
  color: var(--ink-soft);
}

/* ── Sections on tablets and phones ──────────────────────── */

@media (max-width: 1023px) {
  .idea__grid,
  .method__top,
  .demo__grid,
  .teacher__grid,
  .cost__grid,
  .recap__grid,
  .faq__grid,
  .footer__wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .idea__head,
  .portrait,
  .faq__head {
    position: static;
  }

  .make__grid,
  .method__list,
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow {
    row-gap: 28px;
  }

  .console {
    rotate: none;
  }

  .agenda__slot {
    grid-template-columns: minmax(0, 1fr);
  }

  .agenda__slot--break {
    padding-inline: 12px;
  }

  .agenda__slot--break h3 {
    grid-column: auto;
  }

  .portrait {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
  }

  /* One lot per row, the one on sale first. */
  .lots {
    max-width: 520px;
    margin-inline: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  .lot[data-state="open"] {
    order: -1;
  }

  .lot[data-state="closed"] {
    order: 1;
  }

  .footer__note {
    justify-self: start;
  }
}

@media (max-width: 639px) {
  .make__grid,
  .method__list,
  .flow,
  .wishes {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow {
    row-gap: 22px;
  }

  .make__top {
    margin-bottom: 22px;
  }

  .section .button {
    width: 100%;
    justify-content: space-between;
  }

  .lot__buy,
  .final .button,
  .tickets__close .button {
    justify-content: center;
  }

  .creds__code {
    display: table;
    margin: 6px 0 0;
  }
}
