/* ==========================================================================
   Jay Huxtable
   Big type, tonal tiles, one accent. A fixed 3D canvas sits behind the page.
   Elevation: tonal surfaces only. No shadows, no gradients, no glow.
   z-index scale: world 0, page 1, nav 10, skip link 20. Nothing else.
   ========================================================================== */

:root {
  /* Warm near-black neutrals */
  --bg: #0f0e0d;
  --tile: #1a1917;
  --tile-hover: #22201d;
  --line: #2e2b27;
  --line-strong: #4a463f;
  --text: #f3efe8;
  --muted: #aaa397;
  --dim: #8a8478;

  /* One accent: amber */
  --accent: #f0a53a;
  --accent-hover: #f5b95e;
  --accent-press: #d98f26;
  --on-accent: #1c1404;

  /* Spacing scale, 4px base */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-6: 24px;
  --s-8: 32px;
  --s-12: 48px;
  --s-16: 64px;
  --s-24: 96px;
  --s-32: 128px;

  /* Type scale */
  --t-display: clamp(2rem, 8vw, 6.75rem);
  --t-headline: clamp(2rem, 4.8vw, 3.75rem);
  --t-title: clamp(1.375rem, 2.2vw, 1.75rem);
  --t-lead: clamp(1.125rem, 1.6vw, 1.3125rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;

  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --nav-h: 52px;
  --radius: 28px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a {
  color: inherit;
}

img {
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

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

[id] {
  scroll-margin-top: calc(var(--nav-h) + var(--s-6));
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* The hidden attribute must win over any display rule below. */
[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- 3D world ---------- */

.world {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms ease-out;
}

.world.is-ready {
  opacity: 1;
}

.world.is-off {
  visibility: hidden;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

/* ---------- Type ---------- */

.eyebrow {
  font-size: var(--t-lead);
  font-weight: 600;
  line-height: 1.3;
  color: var(--accent);
}

.display {
  font-size: var(--t-display);
  font-weight: 750;
  font-stretch: 112%;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Third line of the hero title: smaller, in the accent colour. */
.display__kicker {
  display: block;
  margin-top: 0.4em;
  font-size: 0.42em;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.headline {
  font-size: var(--t-headline);
  font-weight: 720;
  font-stretch: 110%;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.headline--xl {
  font-size: clamp(2.25rem, 6.4vw, 5.25rem);
}

.title {
  font-size: var(--t-title);
  font-weight: 680;
  font-stretch: 106%;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.4;
  color: var(--muted);
  text-wrap: pretty;
}

.caption {
  font-size: var(--t-small);
  line-height: 1.4;
  color: var(--dim);
}

/* ---------- Links and buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-3) var(--s-6);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 var(--s-6);
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--t-body);
  font-weight: 650;
  text-decoration: none;
  transition: background-color 150ms ease-out, transform 120ms ease-out;
}

.pill:hover {
  background: var(--accent-hover);
}

.pill:active {
  background: var(--accent-press);
  transform: scale(0.98);
}

.pill:focus-visible {
  outline-color: var(--text);
}

.pill--large {
  min-height: 60px;
  padding: 0 var(--s-8);
  font-size: var(--t-lead);
  overflow-wrap: anywhere;
}

.more {
  color: var(--accent);
  font-weight: 550;
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color 150ms ease-out;
}

.more:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.more:active {
  color: var(--accent-press);
}

.round {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0 0 3px;
  border: 0;
  border-radius: 50%;
  background: var(--tile);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 150ms ease-out, transform 120ms ease-out;
}

.round:hover {
  background: var(--tile-hover);
}

.round:active {
  transform: scale(0.94);
}

.round:disabled {
  color: var(--line-strong);
  cursor: default;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: var(--s-2);
  z-index: 20;
  padding: var(--s-2) var(--s-4);
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-color: var(--text);
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  background: rgba(15, 14, 13, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(243, 239, 232, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  height: var(--nav-h);
}

.nav__name {
  font-weight: 700;
  font-stretch: 108%;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  gap: clamp(var(--s-4), 3vw, var(--s-8));
}

.nav__links a {
  display: block;
  padding-block: var(--s-4);
  font-size: var(--t-small);
  text-decoration: none;
  color: var(--muted);
  transition: color 150ms ease-out;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__links a:active {
  color: var(--accent);
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + 7vh);
  text-align: center;
}

.hero__text > * + * {
  margin-top: var(--s-4);
}

.hero__sub {
  max-width: 44rem;
  margin-inline: auto;
}

.hero .actions {
  margin-top: var(--s-8);
}

/* ---------- Full-stack breakdown ----------
   Default: a plain section listing all four steps.
   .has-world (set by world.js): tall section, sticky content, one step at a time. */

.stack,
.showcase {
  padding-block: var(--s-32);
}

.stack__panel,
.showcase__panel {
  max-width: 31rem;
}

.stack__panel .headline,
.showcase__panel .headline {
  margin-top: var(--s-2);
}

.showcase__panel .lead {
  margin-top: var(--s-6);
}

.steps {
  display: grid;
  gap: var(--s-8);
  margin-top: var(--s-12);
}

.step__num {
  display: block;
  font-size: var(--t-small);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.step .title {
  margin-top: var(--s-1);
}

.step p {
  margin-top: var(--s-3);
  color: var(--muted);
  text-wrap: pretty;
}

.rail {
  display: none;
}

.stack .caption,
.showcase .caption {
  margin-top: var(--s-8);
}

.has-world .stack {
  height: 460vh;
  padding-block: 0;
}

.has-world .showcase {
  height: 260vh;
  padding-block: 0;
}

.has-world .stack__sticky,
.has-world .showcase__sticky {
  position: sticky;
  top: 0;
  display: grid;
  align-items: center;
  height: 100vh;
  height: 100svh;
  padding-top: var(--nav-h);
}

.has-world .steps {
  display: block;
  position: relative;
  isolation: isolate;
  height: 12.5rem;
  margin-top: var(--s-12);
}

.has-world .step {
  position: absolute;
  inset: 0 0 auto;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 220ms ease-in, transform 220ms ease-in;
}

.has-world .step.is-active {
  opacity: 1;
  transform: none;
  transition: opacity 250ms ease-out 80ms, transform 250ms ease-out 80ms;
}

.has-world .rail {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-6);
}

.rail span {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--line-strong);
  transition: background-color 200ms ease-out;
}

.rail span.is-active {
  background: var(--accent);
}

/* ---------- Blocks (opaque sections that cover the 3D world) ---------- */

.block {
  background: var(--bg);
  padding-block: clamp(var(--s-8), 4.5vw, var(--s-16));
}

.intro {
  text-align: center;
}

.intro > * + * {
  margin-top: var(--s-4);
}

.intro .pill {
  margin-top: var(--s-8);
}

.intro .lead {
  max-width: 36rem;
  margin-inline: auto;
}

.block--tight {
  padding-top: 0;
}

/* ---------- Viewer: plugin screenshots behind tabs ----------
   Default: every screenshot in a column. .is-enhanced (set by player.js):
   one at a time, cross-fading, chosen with the tabs. */

.viewer {
  margin-top: var(--s-8);
}

.viewer__tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto var(--s-6);
  padding: var(--s-1);
  border-radius: 999px;
  background: var(--tile);
}

.viewer__tab {
  min-height: 40px;
  padding: 0 clamp(var(--s-3), 2.4vw, var(--s-6));
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: var(--t-small);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}

.viewer__tab:hover {
  color: var(--text);
}

.viewer__tab:active {
  background: var(--line);
}

.viewer__tab[aria-selected="true"] {
  background: var(--accent);
  color: var(--on-accent);
}

.viewer__tab[aria-selected="true"]:focus-visible {
  outline-color: var(--text);
}

.viewer__stage {
  display: grid;
  gap: var(--s-12);
}

.viewer__panel {
  margin: 0;
}

.viewer__panel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(12px, 2vw, var(--radius));
  background: var(--tile);
  /* Screenshots are as dark as the page. A hairline keeps their edge readable. */
  outline: 1px solid rgba(243, 239, 232, 0.1);
  outline-offset: -1px;
}

/* Caption sits above the screenshot so it stays put when screenshots differ in height. */
.viewer__panel figcaption {
  margin-bottom: var(--s-6);
  text-align: center;
  color: var(--muted);
  text-wrap: balance;
}

.viewer__panel figcaption strong {
  font-weight: 650;
  color: var(--text);
}

.viewer.is-enhanced .viewer__stage {
  gap: 0;
}

.viewer.is-enhanced .viewer__panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease-in, visibility 0s linear 200ms;
}

.viewer.is-enhanced .viewer__panel.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 250ms ease-out;
}

/* ---------- Tiles ---------- */

.tile {
  display: block;
  padding: clamp(var(--s-6), 3.4vw, var(--s-12));
  border-radius: var(--radius);
  background: var(--tile);
  text-decoration: none;
}

.tile > .title + p {
  margin-top: var(--s-3);
  color: var(--muted);
  text-wrap: pretty;
}

.tile--link {
  transition: background-color 150ms ease-out;
}

.tile--link:hover {
  background: var(--tile-hover);
}

.tile--link:active {
  background: var(--line);
}

.tile__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-6) var(--s-12);
  align-items: end;
}

.roster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-8) var(--s-12);
  margin-top: var(--s-16);
  padding-top: var(--s-12);
  border-top: 1px solid var(--line);
}

.roster__label {
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--dim);
}

.roster ul {
  margin-top: var(--s-3);
}

.roster li {
  padding-block: var(--s-1);
  font-size: var(--t-title);
  font-weight: 680;
  font-stretch: 106%;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

/* ---------- Records ---------- */

.block--records {
  overflow: hidden;
}

.streams {
  display: grid;
  justify-items: center;
  gap: var(--s-1);
  margin-top: var(--s-12);
}

.streams__num {
  font-size: var(--t-display);
  font-weight: 750;
  font-stretch: 112%;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.streams__pre,
.streams__post {
  font-size: var(--t-lead);
  color: var(--muted);
}

/* Cover flow: a sideways-scrolling row. player.js turns each card in 3D
   according to how far it is from the centre. */
.flow {
  --card: clamp(210px, 25vw, 320px);
  display: flex;
  gap: var(--s-6);
  margin-top: var(--s-4);
  padding: var(--s-8) calc(50% - var(--card) / 2) var(--s-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.flow::-webkit-scrollbar {
  display: none;
}

.card {
  position: relative;
  flex: none;
  width: var(--card);
  scroll-snap-align: center;
  will-change: transform;
}

.card__cover {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 18px;
  background: var(--tile);
}

.card__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__play {
  position: absolute;
  right: var(--s-3);
  bottom: var(--s-4);
  z-index: 2;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: background-color 150ms ease-out, transform 120ms ease-out;
}

/* Play triangle and pause bars, drawn with clip-path so no icon files are needed */
.card__play::before {
  content: "";
  position: absolute;
  inset: 16px 14px 16px 18px;
  background: var(--on-accent);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.card.is-playing .card__play::before {
  inset: 16px;
  clip-path: polygon(0 0, 36% 0, 36% 100%, 0 100%, 0 0, 64% 0, 100% 0, 100% 100%, 64% 100%, 64% 0);
}

.card__play:hover {
  background: var(--accent-hover);
}

.card__play:active {
  background: var(--accent-press);
  transform: scale(0.94);
}

.card__play:focus-visible {
  outline-color: var(--text);
}

/* YouTube snippet: the player fills the cover while it is open. */
.card__video {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--bg);
}

.card__close {
  position: absolute;
  top: var(--s-2);
  right: var(--s-2);
  z-index: 4;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0 0 2px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1.375rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 150ms ease-out, transform 120ms ease-out;
}

.card__close:hover {
  background: var(--accent-hover);
}

.card__close:active {
  background: var(--accent-press);
  transform: scale(0.94);
}

.card__close:focus-visible {
  outline-color: var(--text);
}

.card__bar {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 4px;
  background: rgba(15, 14, 13, 0.55);
  opacity: 0;
  transition: opacity 150ms ease-out;
}

.card.is-playing .card__bar,
.card.is-paused .card__bar {
  opacity: 1;
}

.card__bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.card__artist {
  margin-top: var(--s-4);
  font-size: var(--t-title);
  font-weight: 700;
  font-stretch: 106%;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.card__release {
  margin-top: var(--s-1);
  font-weight: 550;
}

.card__release span {
  margin-left: var(--s-1);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--dim);
}

.card__role {
  margin-top: var(--s-1);
  font-size: var(--t-small);
  color: var(--muted);
  text-wrap: pretty;
}

.card__track {
  margin-top: var(--s-2);
  font-size: var(--t-small);
  color: var(--dim);
}

.card .more {
  display: inline-block;
  margin-top: var(--s-2);
  font-size: var(--t-small);
}

.flow__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-3) var(--s-6);
  min-height: 44px;
  margin-top: var(--s-4);
}

.flow__nav {
  display: flex;
  gap: var(--s-2);
}

/* Bento: studio by the numbers */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-12);
}

.tile--stat {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  min-height: 13rem;
  padding: var(--s-8);
}

.stat {
  text-wrap: balance;
  font-size: clamp(1.625rem, 2.6vw, 2.375rem);
  font-weight: 750;
  font-stretch: 112%;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  color: var(--muted);
  text-wrap: pretty;
}

.tile--stat .more {
  margin-top: auto;
  font-size: var(--t-small);
}

.tile--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-3) var(--s-12);
  align-items: start;
}

.tile--wide .title {
  grid-row: span 2;
  font-size: var(--t-headline);
  font-weight: 720;
  font-stretch: 110%;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.tile--wide > .title + p {
  margin-top: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-3);
}

.chips li {
  padding: var(--s-2) var(--s-4);
  border-radius: 999px;
  background: var(--line);
  font-size: var(--t-small);
  font-weight: 550;
}

/* ---------- Studio photos: sideways reel ----------
   One row, every photo at the same height and its own width, nothing cropped.
   player.js shuffles the order and adds arrows and drag-to-scroll. */

.reel {
  display: flex;
  gap: var(--s-4);
  margin-top: var(--s-4);
  /* Line the first photo up with the page column, then run off the right edge. */
  padding-inline: max(var(--gutter), calc((100% - 1240px) / 2 + var(--gutter)));
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  cursor: grab;
}

.reel::-webkit-scrollbar {
  display: none;
}

.reel.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

.reel__item {
  flex: none;
  height: clamp(240px, 38vw, 520px);
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--tile);
  scroll-snap-align: center;
}

.reel__item img {
  display: block;
  width: auto;
  height: 100%;
  max-width: none;
  -webkit-user-drag: none;
}

.reel__foot {
  display: flex;
  justify-content: center;
  min-height: 44px;
  margin-top: var(--s-6);
}
/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s-12) clamp(var(--s-8), 6vw, var(--s-24));
  align-items: stretch;
}

/* Beside the text, the photo is exactly as tall as the text: its top lines up with
   "About" and its bottom with the last sentence. height 0 + min-height 100% lets the
   text set the row height; the photo then fills it and crops evenly top and bottom. */
.about__photo {
  display: block;
  width: 100%;
  height: 0;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  background: var(--tile);
}

.about__body > * + * {
  margin-top: var(--s-4);
}

.about__body .lead {
  margin-top: var(--s-6);
  color: var(--text);
}

.about__body > p:not(.eyebrow):not(.lead):not(.caption) {
  max-width: 34rem;
  color: var(--muted);
}

/* ---------- Contact ---------- */

.block--contact {
  padding-bottom: var(--s-16);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s-4);
  /* Both columns end level: the form block stretches to the height of the three
     tiles beside it, and the message box takes up the slack. */
  align-items: stretch;
  margin-top: var(--s-8);
}

.contact__notes {
  display: grid;
  gap: var(--s-4);
}

/* ---------- Form ---------- */

.contact__form {
  display: flex;
  flex-direction: column;
}

.form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}

/* The message field grows to fill whatever height is left in the block. */
.field--grow {
  flex: 1;
  grid-template-rows: auto 1fr auto;
}

.field {
  display: grid;
  gap: var(--s-2);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field label,
.field legend {
  padding: 0;
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--muted);
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  line-height: 1.4;
  transition: border-color 150ms ease-out;
}

.field textarea {
  height: 100%;
  min-height: 6rem;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--dim);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
  border-radius: 14px;
}

.field [aria-invalid="true"] {
  border-color: #ff8a70;
}

.field__error {
  font-size: var(--t-small);
  color: #ff8a70;
}

/* Topic choices: radio buttons drawn as pills */
.field--choices {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.field--choices legend {
  width: 100%;
  margin-bottom: var(--s-2);
}

.choice {
  position: relative;
  cursor: pointer;
}

.choice input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--s-4);
  border-radius: 999px;
  background: var(--line);
  color: var(--text);
  font-size: var(--t-small);
  font-weight: 600;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}

.choice:hover span {
  background: var(--line-strong);
}

.choice input:checked + span {
  background: var(--accent);
  color: var(--on-accent);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.form__foot {
  display: grid;
  justify-items: start;
  gap: var(--s-4);
}

button.pill {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

button.pill:disabled {
  background: var(--line-strong);
  color: var(--muted);
  cursor: default;
  transform: none;
}

.form__status {
  color: #ff8a70;
}

.form__done:focus {
  outline: none;
}

.form__done p {
  margin-top: var(--s-3);
  color: var(--muted);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2) var(--s-6);
  padding-block: var(--s-8);
  font-size: var(--t-small);
  color: var(--dim);
}

.footer a {
  text-underline-offset: 4px;
  transition: color 150ms ease-out;
}

.footer a:hover {
  color: var(--text);
}

.footer a:active {
  color: var(--accent);
}

/* ---------- 404 ---------- */

.notfound {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: var(--s-4);
  min-height: 100vh;
  min-height: 100svh;
  padding-block: var(--s-24);
  text-align: center;
}

.notfound .pill {
  margin-top: var(--s-6);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .tile__head {
    grid-template-columns: 1fr;
    align-items: start;
    justify-items: start;
  }

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

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

  .tile--stat {
    min-height: 12rem;
  }

  .tile--wide {
    grid-template-columns: 1fr;
  }

  .tile--wide .title {
    grid-row: auto;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .field textarea {
    min-height: 9rem;
  }

  /* Stacked: the photo goes back to its own 3:4 shape. */
  .about__photo {
    max-width: 360px;
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 4;
  }
}

/* Narrower than tall: the model sits in the top half, captions in the bottom half. */
@media (max-aspect-ratio: 1 / 1) {
  .has-world .stack__sticky,
  .has-world .showcase__sticky {
    align-items: end;
    padding-bottom: var(--s-8);
  }

  .has-world .steps {
    height: 11rem;
    margin-top: var(--s-6);
  }

  .stack__panel .headline,
  .showcase__panel .headline {
    font-size: clamp(1.625rem, 6vw, 2.5rem);
  }

  .stack .caption,
  .showcase .caption {
    margin-top: var(--s-4);
  }

  .showcase__panel .lead {
    margin-top: var(--s-3);
  }
}

@media (max-width: 560px) {
  .nav__inner {
    gap: var(--s-3);
  }

  .nav__name {
    font-size: 0.9375rem;
  }

  .nav__links {
    gap: var(--s-3);
  }

  .nav__links a {
    font-size: 0.8125rem;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 6vh);
  }

  .display__kicker {
    font-size: 0.56em;
  }

  .roster {
    grid-template-columns: 1fr;
  }

  .flow {
    --card: 68vw;
    gap: var(--s-4);
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
