@font-face {
  font-family: "Jost";
  src: url("fonts/jost.928f4210aa48.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #1c2128;
  --surface: #262c35;
  --surface-2: #313945;
  --ink: #ecebe7;
  --muted: #c9c8c2;
  --lamp: #f3c65f;
  --lamp-soft: #f7d688;
  --lamp-ink: #1c2128;
  --shade: #dcab45;
  --coat: #d98e1a;
  --shirt: #fbf7ee;
  --black: #121417;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1rem + 1.6vw, 2.25rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(4.25rem, 8vw, 8.5rem);

  --margin: clamp(16px, 4vw, 56px);
  --gap: clamp(120px, 14vw, 200px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Jost", system-ui, sans-serif;
  font-size: var(--step-body);
  line-height: 1.5;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ol, ul, figure, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-body); font-weight: 500; letter-spacing: 0; line-height: 1.3; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { color: var(--lamp); }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; }
::selection { background: var(--lamp); color: var(--lamp-ink); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--lamp);
  color: var(--lamp-ink);
  font: 500 var(--step-body)/1 "Jost", system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}
.button:hover { background: var(--lamp-soft); color: var(--lamp-ink); transform: translateY(-2px); }
.button:active { transform: scale(0.97); }

.bar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px var(--margin);
}
.wordmark { font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.bar nav { display: flex; align-items: center; gap: 28px; }
.bar nav a:not(.button) { text-decoration: none; }
.bar nav a:not(.button):hover { text-decoration: underline; }

.hero {
  position: relative;
  min-height: max(100svh, 640px);
  overflow: hidden;
  display: grid;
  align-content: center;
  padding: 120px var(--margin) 80px;
}
.hero-text { position: relative; z-index: 1; max-width: min(46vw, 640px); }
.name {
  font-size: var(--step-display);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 6ch;
}
.hero-line { margin: 40px 0 32px; max-width: 34ch; font-size: var(--step-body); }
.lamp {
  position: absolute;
  width: 120vh;
  height: 120vh;
  max-width: none;
  left: calc(78% - 60vh);
  top: calc(55% - 60vh);
}
.glow { fill: var(--lamp); }
.shade { fill: var(--shade); }
.limb, .head, .hair, .pupil { fill: var(--black); }
.shirt { fill: var(--shirt); }
.coat { fill: var(--coat); }
.eye { fill: var(--shirt); }

.intro { padding: var(--gap) var(--margin); }
.statement {
  max-width: 24ch;
  margin: 0 auto;
  font-size: var(--step-lead);
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}
.dot {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: -0.2em;
  margin: 0 0.12em;
}

.science {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 24px;
  padding: 0 var(--margin) var(--gap);
}
.science-text { grid-column: 1 / 7; }
.science-text > p { margin-top: 32px; max-width: 44ch; }
.facts { margin-top: 48px; display: grid; gap: 28px; }
.facts dt { font-weight: 500; display: flex; align-items: center; gap: 12px; }
.facts dt::before { content: ""; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--lamp); flex: none; }
.facts dd { margin-top: 4px; max-width: 44ch; }

.gene { grid-column: 8 / 13; align-self: start; display: grid; gap: 16px; position: sticky; top: 32px; }
.gene-stage { width: 100%; aspect-ratio: 1; }
.gene-pool { fill: var(--surface); }
.gene-light {
  fill: var(--lamp);
  transform-origin: 50px 50px;
  transform: scale(sqrt(calc(var(--kept) / 100)));
  transition: transform 500ms var(--ease);
}
.gene-figure { font-size: var(--step-head); font-weight: 700; line-height: 1; letter-spacing: -0.02em; margin-top: 8px; }
.gene-label { font-weight: 500; margin-top: 8px; }
.gene input[type="range"] { width: 100%; height: 44px; margin: 0; accent-color: var(--lamp); cursor: pointer; }
.gene-note { color: var(--muted); font-size: var(--step-small); }

.play {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 10px;
  padding: 0 var(--margin) var(--gap);
}
.play h2 { grid-column: 1 / 6; grid-row: 1; align-self: start; }
.tiles { display: contents; }
.tile { grid-row: 1; align-self: end; display: grid; gap: 8px; }
.tile h3 { margin-top: 12px; }
.tile p { color: var(--muted); max-width: 34ch; }
.t1 { grid-column: 1 / 3; }
.t2 { grid-column: 3 / 6; }
.t3 { grid-column: 6 / 9; }
.t4 { grid-column: 9 / 13; }
.tile-field { display: grid; place-items: center; overflow: hidden; }
.t1 .tile-field { height: 26vh; background: var(--surface); }
.t2 .tile-field { height: 38vh; background: var(--surface-2); }
.t3 .tile-field { height: 50vh; background: var(--surface); }
.t4 .tile-field { height: 64vh; background: var(--lamp); }
.tile-field img, .tile-pair { height: 82%; width: auto; max-width: 92%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }

.join {
  position: relative;
  min-height: 90svh;
  overflow: hidden;
  background: var(--surface);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 24px;
  padding: 96px var(--margin) 0;
  align-items: center;
}
.join-object {
  grid-column: 1 / 9;
  grid-row: 1;
  align-self: stretch;
  margin: -96px 0 0 calc(-1 * var(--margin));
  position: relative;
  clip-path: circle(80% at 12% 100%);
}
.join-object img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.join-text { grid-column: 9 / 13; grid-row: 1; padding-bottom: 96px; display: grid; gap: 16px; }
.join-fact { font-size: var(--step-lead); font-weight: 500; line-height: 1.2; }
.join form { display: grid; gap: 16px; margin-top: 8px; }
.field-label, legend { font-weight: 500; }
.join input[type="email"] {
  width: 100%;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
.join input[type="email"]::placeholder { color: var(--muted); }
.join fieldset { border: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.join legend { margin-bottom: 8px; }
.choice { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--lamp); margin: 0; }
.consent { align-items: flex-start; }
.consent input { margin-top: 4px; flex: none; }
.join .button { justify-self: start; }
.err { color: var(--lamp); font-weight: 500; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.town { padding: var(--gap) var(--margin) 120px; }
.cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 40px; }
.cat-head + .menu + .cat-head, .menu + .cat-head { margin-top: 96px; }
.count { flex: none; }
.menu { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 64px; }
.menu li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; }
.menu .dot { width: 64px; height: 64px; margin: 0; }
.dot-plain { background: var(--surface-2); }
.item { display: flex; justify-content: space-between; gap: 16px; }
.item strong { font-weight: 500; }
.item span { flex: none; color: var(--lamp); }
.menu p + p { margin-top: 4px; max-width: 42ch; }
.note { color: var(--lamp); }

.close { background: var(--lamp); color: var(--lamp-ink); padding: 64px var(--margin) 32px; }
.close a:hover { color: var(--lamp-ink); text-decoration-thickness: 3px; }
.blocks { display: flex; align-items: flex-end; gap: 4px; height: 34svh; min-height: 220px; }
.blocks span {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.08em;
  background: var(--bg);
  color: var(--lamp);
  font-size: min(11vw, 17svh);
  font-weight: 700;
  line-height: 1;
}
.b1 { height: 80%; } .b2 { height: 94%; } .b4 { height: 70%; } .b5 { height: 88%; }
.b3 { height: 100%; flex: 0.6; margin: 0 14px; background: var(--coat) !important; color: var(--lamp-ink) !important; }
.close-menu { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: 56px; }
.close-menu nav { grid-column: 1 / 9; display: grid; grid-template-columns: repeat(3, max-content); gap: 12px 56px; align-content: start; }
.close-notes { grid-column: 9 / 13; display: grid; gap: 20px; }
.credits { margin-top: 56px; font-size: var(--step-small); max-width: 52ch; }
.close-last { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; }
.close .button { background: var(--bg); color: var(--ink); }
.close .button:hover { background: var(--surface-2); color: var(--ink); }

.page { max-width: 760px; padding: 160px var(--margin) var(--gap); margin: 0 auto; }
.page h1 { font-size: var(--step-head); margin-bottom: 32px; }
.prose h2 { font-size: var(--step-lead); margin: 48px 0 12px; }
.prose p + p { margin-top: 12px; }
.card { padding: 28px 0; }
.card + .card { margin-top: 8px; }
.card h3 { font-size: var(--step-lead); margin: 4px 0 8px; }
.card time, .post time { color: var(--muted); }
.post .body { margin-top: 32px; }
.post .body p + p { margin-top: 16px; }
.post .cta { display: inline-block; margin-top: 48px; color: var(--lamp); font-weight: 500; }
.pager { display: flex; gap: 32px; margin-top: 48px; }

.rise-ready [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.rise-ready [data-rise].in { opacity: 1; transform: none; }
.rise-ready .lamp .glow { animation: lamp-on 1.1s var(--ease) both; }
.rise-ready .lamp .pair { animation: pair-settle 1.3s var(--ease) both; transform-origin: 46% 74%; }
.lamp .pair { animation: breathe 6s ease-in-out 1.4s infinite; transform-origin: 46% 74%; }
@keyframes lamp-on { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(71% at 50% 50%); } }
@keyframes pair-settle { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: none; } }
@keyframes breathe { 50% { transform: scale(1.015); } }
.tile-field img { transition: transform 600ms var(--ease); }
.t4 .tile-field img { animation: drift 18s ease-in-out infinite alternate; }
.tile:hover .tile-field img { transform: scale(1.04); }
@keyframes drift { to { transform: scale(1.06) rotate(4deg); } }

@media (min-width: 901px) {
  .home .bar nav a:not(.button) { color: var(--lamp-ink); }
  .home .bar .button { background: var(--bg); color: var(--ink); }
}

.rise-ready .blocks span[data-rise] { opacity: 1; transform: scaleY(0.4); transform-origin: bottom; }
.rise-ready .blocks span[data-rise].in { transform: none; }

@media (max-width: 900px) {
  .bar { padding-top: 16px; }
  .bar .wide { display: none; }
  .bar nav { gap: 16px; }
  .hero { align-content: start; padding-top: 15svh; min-height: 100svh; }
  .hero-text { max-width: none; }
  .name { font-size: 18vw; }
  .hero-line { margin: 24px 0 24px; font-size: 1.125rem; }
  .lamp { --w: min(130vw, 58svh); width: var(--w); height: var(--w); left: calc(50% - var(--w) / 2); top: calc(100% - var(--w) * 0.7); }
  .statement { text-align: left; max-width: none; }
  .science, .play, .join { display: block; }
  .facts { margin-top: 40px; }
  .gene { position: static; margin-top: 64px; }
  .gene-stage { width: min(100%, 420px); }
  .play h2 { margin-bottom: 32px; }
  .tiles { display: grid; gap: 28px; }
  .tile { grid-column: auto; grid-row: auto; }
  .t1 .tile-field { height: 34vw; } .t2 .tile-field { height: 46vw; } .t3 .tile-field { height: 62vw; } .t4 .tile-field { height: 78vw; }
  .join { display: flex; flex-direction: column; padding: 96px var(--margin) 0; }
  .join-object { order: 2; }
  .join-text { position: relative; }
  .join .button { width: 100%; }
  .join-text { padding-bottom: 0; }
  .join-object { height: 60svh; margin: 48px calc(-1 * var(--margin)) 0; clip-path: circle(70% at 30% 100%); }
  .menu { grid-template-columns: 1fr; }
  .menu li { grid-template-columns: 52px 1fr; }
  .menu .dot { width: 52px; height: 52px; }
  .cat-head h2 { font-size: 8.5vw; }
  .blocks { height: 22svh; min-height: 140px; gap: 3px; }
  .blocks span { font-size: 12vw; }
  .b3 { margin: 0 6px; }
  .close-menu { display: grid; grid-template-columns: 1fr; }
  .close-menu nav, .close-notes { grid-column: auto; }
  .close-menu nav { grid-template-columns: repeat(2, max-content); gap: 12px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise-ready [data-rise] { opacity: 1; transform: none; }
}
