/* Lemma: the website. Tokens match brand/lemma.css. White, ink, and one blue button. */

@font-face { font-family: "Inter"; src: url("assets/fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("assets/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "STIX Two Text"; src: url("assets/fonts/stix-two-text-latin-400-italic.woff2") format("woff2"); font-style: italic; font-display: swap; }

:root {
  --paper: #FFFFFF; --ink: #0A0A0B; --mist: #F5F5F7; --hair: #E4E4E9; --silver: #A1A1A6; --graphite: #6E6E73; --blue: #1D3BFF;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --math: "STIX Two Text", "Times New Roman", serif;
  --pad: clamp(20px, 3.2vw, 48px);
  --gap: clamp(96px, 13vw, 200px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; background: var(--paper); }
body { margin: 0; font: 400 17px/1.55 var(--sans); letter-spacing: -0.01em; color: var(--ink); -webkit-font-smoothing: antialiased; font-variation-settings: "opsz" 20; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; font-variation-settings: "opsz" 32; }
.mono { font-family: var(--mono); }
.math { font-family: var(--math); font-style: italic; letter-spacing: 0; }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* The mark: a 5 by 8 slab that stands where the full stop goes. */
.slab { display: inline-block; height: 0.727em; width: calc(0.727em * 0.625); border-radius: 0.041em; background: currentColor; vertical-align: baseline; margin-left: 0.085em; }
.lockup { font: 620 1em/1 var(--sans); letter-spacing: -0.045em; font-variation-settings: "opsz" 32; white-space: nowrap; text-decoration: none; }

/* ---- bar ------------------------------------------------------------------ */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; height: 64px; padding: 0 var(--pad); background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.bar .lockup { font-size: 24px; margin-right: auto; }
.bar nav { display: flex; gap: 26px; font: 500 14px/1 var(--sans); color: var(--graphite); }
.bar nav a { text-decoration: none; transition: color 0.15s; }
.bar nav a:hover { color: var(--ink); }
.pill { font: 550 14px/1 var(--sans); text-decoration: none; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; }

/* ---- hero ----------------------------------------------------------------- */
.hero { position: relative; min-height: calc(100svh - 64px); padding: 28px var(--pad) clamp(28px, 4vw, 56px); display: grid; grid-template-columns: 1fr minmax(280px, 400px); grid-template-rows: auto 1fr; align-items: end; gap: 0 48px; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.eyebrow { grid-column: 1 / -1; align-self: start; font: 500 13px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--graphite); }
.hero h1 { position: relative; font-size: clamp(54px, 11.6vw, 208px); line-height: 0.9; letter-spacing: -0.062em; margin-left: -0.04em; }
.js .hero h1 .slab { opacity: 0; transition: opacity 0.18s; }
.js .hero h1 .slab.set { opacity: 1; }
.hero-side { position: relative; padding-bottom: 0.9vw; }
.hero-side p { font-size: 18px; line-height: 1.5; color: #3A3A3C; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; font: 550 16px/1 var(--sans); letter-spacing: -0.015em; text-decoration: none; transition: transform 0.15s, background 0.15s; }
.button:active { transform: scale(0.98); }
.button.blue { background: var(--blue); color: #fff; }
.button.blue:hover { background: #0F2BE6; }
.button.ghost { background: var(--mist); }
.button.ghost:hover { background: #EBEBEF; }
.button .mono { font-size: 13px; color: var(--graphite); }

/* ---- section furniture ----------------------------------------------------- */
section { padding: var(--gap) var(--pad) 0; }
.head { display: flex; gap: 18px; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--ink); font: 500 13px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.head .index { color: var(--graphite); }
.head .right { margin-left: auto; color: var(--graphite); }
h2 { font-size: clamp(38px, 6.4vw, 104px); line-height: 0.96; letter-spacing: -0.055em; margin: clamp(28px, 4vw, 60px) 0 clamp(36px, 5vw, 76px); max-width: 15em; }

/* ---- the film: a frame with an edge, and its own controls in ink ------------------ */
.film { padding-top: calc(var(--gap) * 0.5); }
.player { margin: clamp(28px, 5vw, 72px) auto 0; width: min(100%, 1240px); }
.screen { position: relative; aspect-ratio: 16 / 9; background: #fff; box-shadow: 0 0 0 1px var(--hair); overflow: hidden; cursor: pointer; }
.screen video { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.screen:fullscreen { background: #000; aspect-ratio: auto; }
.screen:fullscreen video { background: #000; }
.start { position: absolute; inset: 0; margin: auto; width: 92px; height: 92px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; display: grid; place-items: center; transition: transform 0.2s, opacity 0.2s; }
.start span { width: 0; height: 0; border-left: 22px solid var(--ink); border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }
.screen:hover .start { transform: scale(1.06); }
.player.started .start { opacity: 0; pointer-events: none; }
.deck { display: flex; align-items: center; gap: 16px; height: 56px; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--graphite); }
.deck button { border: 0; background: none; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; height: 40px; }
.deck button:hover, .deck button:focus-visible { color: var(--ink); }
.key { width: 28px; display: grid; place-items: center start; }
.key span { display: block; width: 0; height: 14px; border-left: 12px solid var(--ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; box-sizing: border-box; }
.player.playing .key span { width: 11px; border: 0; border-left: 4px solid var(--ink); border-right: 4px solid var(--ink); }
.clock { min-width: 4ch; color: var(--ink); font-variant-numeric: tabular-nums; }
.track { position: relative; flex: 1; height: 40px; cursor: pointer; touch-action: none; }
.track::before, .track i { content: ""; position: absolute; left: 0; top: 50%; height: 2px; margin-top: -1px; }
.track::before { right: 0; background: var(--hair); }
.track i { width: 0; background: var(--ink); }
.track b { position: absolute; top: 50%; left: 0; width: 7px; height: 11px; margin: -5.5px 0 0 -3.5px; border-radius: 1px; background: var(--ink); transition: transform 0.15s; }
.track:hover b, .track:focus-visible b { transform: scale(1.5); }
.word { white-space: nowrap; }

/* ---- what just happened ------------------------------------------------------ */
.collage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; align-items: start; }
.collage figure { margin: 0; }
.collage figure > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--mist); }
figcaption { margin-top: 12px; font: 500 12px/1.45 var(--mono); letter-spacing: 0.03em; text-transform: uppercase; color: var(--graphite); }
.collage .page > img { object-position: 50% 0; box-shadow: inset 0 0 0 1px var(--hair); outline: 1px solid var(--hair); outline-offset: -1px; }
.collage .face > img { object-position: 50% 20%; }
.collage .telling { grid-column: 1 / span 2; grid-row: 2; font-size: 21px; line-height: 1.5; color: #2C2C2E; max-width: 40ch; }
.sources { margin-top: 16px; font-size: 14px; color: var(--graphite); }
.figures { display: grid; grid-template-columns: 1fr 0.6fr 2.4fr 0.6fr; gap: 24px; margin: clamp(56px, 8vw, 120px) 0 0; border-top: 1px solid var(--hair); padding-top: 22px; }
.figures div { min-width: 0; }
.figures dt { font: 600 clamp(40px, 7.4vw, 124px)/0.9 var(--sans); letter-spacing: -0.06em; font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 32; }
.figures dd { margin: 14px 0 0; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--graphite); }

/* ---- the open one: the only dark room on the page ------------------------------- */
.open { position: relative; margin-top: var(--gap); padding: 0; background: var(--ink); color: #fff; overflow: hidden; }
.open .sky { position: absolute; inset: 0; background: url("assets/img/flock-night.jpg") center / cover; opacity: 0.5; }
.open .sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 10, 11, 0.92) 0%, rgba(10, 10, 11, 0.55) 38%, rgba(10, 10, 11, 0) 70%); }
.open .inner { position: relative; padding: clamp(56px, 8vw, 120px) var(--pad) clamp(64px, 9vw, 140px); display: grid; grid-template-columns: 1fr minmax(240px, 34%); gap: 0 48px; }
.open .head { grid-column: 1 / -1; border-color: rgba(255, 255, 255, 0.5); }
.open .head .index, .open .head .right { color: rgba(255, 255, 255, 0.6); }
.open h2 { grid-column: 1 / -1; font-size: clamp(46px, 9.4vw, 168px); line-height: 0.9; letter-spacing: -0.06em; }
.open .two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; font-size: 18px; line-height: 1.5; color: rgba(255, 255, 255, 0.86); align-self: end; }
.open .pnp { width: 100%; height: auto; align-self: end; }

/* ---- join --------------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps .shot { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); margin-bottom: 20px; }
.steps .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.steps li:hover .shot img { transform: scale(1.04); }
.steps .mono { font-size: 12px; letter-spacing: 0.06em; color: var(--graphite); }
.steps h3 { font-size: 28px; line-height: 1.1; letter-spacing: -0.04em; margin: 8px 0 8px; }
.steps p { color: #48484A; max-width: 34ch; }
.spec dd a { color: var(--blue); text-decoration: none; }
.spec dd a:hover { text-decoration: underline; }
.spec { margin: clamp(56px, 7vw, 104px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.spec div { border-top: 1px solid var(--hair); padding-top: 14px; min-width: 0; }
.spec dt { font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--graphite); }
.spec dd { margin: 12px 0 0; font: 550 20px/1.25 var(--sans); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.spec dd.mono { font: 500 15px/1.4 var(--mono); letter-spacing: 0; }
.spec dd.empty { color: var(--silver); font: 500 20px/1.25 var(--sans); letter-spacing: -0.03em; }
.spec dd button { all: unset; cursor: pointer; }

/* ---- the archive: a wall of prints ------------------------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { border: 0; cursor: pointer; height: 38px; padding: 0 18px; border-radius: 999px; background: var(--mist); color: var(--graphite); font: 500 14px/1 var(--sans); transition: background 0.15s, color 0.15s; }
.filters button:hover { color: var(--ink); }
.filters button.on { background: var(--ink); color: #fff; }
.wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 24px; }
.wall figure { position: relative; margin: 0; }
.wall figure.off { display: none; }
.wall figure[data-kind="paper"] img { object-position: 50% 0; outline: 1px solid var(--hair); outline-offset: -1px; }
.wall img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; background: var(--mist); filter: contrast(1.05); transition: filter 0.3s; }
.wall figure.dots::after { content: ""; position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 4 / 5; pointer-events: none; background-image: radial-gradient(rgba(0, 0, 0, 0.36) 1px, transparent 1.3px); background-size: 5px 5px; mix-blend-mode: multiply; }
.wall figcaption { text-transform: none; letter-spacing: -0.01em; font: 400 14px/1.4 var(--sans); color: #48484A; }
.wall figcaption b { font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.wall figcaption i { font: 500 12px/1 var(--mono); font-style: normal; color: var(--graphite); margin: 0 0 0 8px; }
.wall figcaption span { display: block; margin-top: 3px; }

/* ---- questions --------------------------------------------------------------------- */
.qa { margin-top: clamp(28px, 4vw, 60px); max-width: 980px; }
.qa details { border-bottom: 1px solid var(--hair); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; font: 600 clamp(22px, 2.6vw, 34px)/1.15 var(--sans); letter-spacing: -0.04em; font-variation-settings: "opsz" 32; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 13px; height: 21px; border-radius: 2px; background: var(--hair); transition: background 0.2s; }
.qa details[open] summary::after { background: var(--ink); }
.qa p { padding: 0 0 30px; max-width: 62ch; font-size: 18px; color: #3A3A3C; }

/* ---- foot ---------------------------------------------------------------------------- */
.foot { padding: var(--gap) var(--pad) 40px; }
.foot .big { font-size: clamp(88px, 25.5vw, 470px); line-height: 0.8; margin-left: -0.05em; padding-bottom: 0.08em; }
.foot .row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: baseline; justify-content: space-between; margin-top: clamp(28px, 4vw, 56px); padding-top: 18px; border-top: 1px solid var(--ink); font: 550 18px/1.3 var(--sans); letter-spacing: -0.025em; }
.foot nav { display: flex; gap: 24px; font: 500 14px/1 var(--sans); color: var(--graphite); }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.credits { margin-top: 28px; font-size: 13px; color: var(--graphite); }
.credits summary { cursor: pointer; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.credits h4 { margin: 22px 0 8px; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.credits ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 40px; }
.credits li { break-inside: avoid; padding: 3px 0; overflow-wrap: anywhere; }
.small { margin-top: 28px; font-size: 13px; color: var(--silver); }

/* things rise a little as they come into view */
.js .rise { opacity: 0; transform: translateY(22px); transition: opacity 0.7s, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .rise.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .bar nav { display: none; }
  .hero { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .hero h1 { align-self: end; margin-bottom: 28px; }
  .collage { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .collage .medal { display: none; }
  .collage .telling { grid-column: 1 / -1; grid-row: auto; font-size: 18px; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figures div:nth-child(3) { grid-column: 1 / -1; grid-row: 2; }
  .open .inner { grid-template-columns: 1fr; }
  .open .two { grid-template-columns: 1fr; gap: 18px; }
  .open .pnp { max-width: 420px; margin-top: 40px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps li:nth-child(n) { margin-top: 0; }
  .spec { grid-template-columns: 1fr 1fr; }
  .wall { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .credits ul { columns: 1; }
  .start { width: 64px; height: 64px; }
  .start span { border-left-width: 16px; border-top-width: 10px; border-bottom-width: 10px; margin-left: 4px; }
  .deck { gap: 12px; }
  #full { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise { opacity: 1; transform: none; transition: none; }
  .js .hero h1 .slab { opacity: 1; }
  .hero canvas { display: none; }
}
