:root {
  --ink: #111111;
  --paper: #ffffff;
  --ground: #f3f3f2;
  --quiet: #858585;
  --line: #dededc;
  --mono: var(--reading-sans);
  --sans: var(--reading-sans);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; overflow: hidden; }
html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--reading-font);
  -webkit-user-select: none;
  user-select: none;
}

main { height: 100vh; height: 100svh; overflow-y: auto; overscroll-behavior-y: none; -webkit-overflow-scrolling: touch; scroll-snap-type: y mandatory; }

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(24px, 3.6vw, 55px);
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.masthead, nav, .section-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: -.03em;
}

.masthead { display: flex; justify-content: space-between; gap: 20px; }
.masthead p { margin: 0; }
.established { color: #b4b4b4; }

.hero {
  flex: 1;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 48px 0 36px;
}

h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(38px, 6.2vw, 96px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: .16em;
  text-indent: .16em;
  white-space: nowrap;
}

/* The title must remain readable when Safari cannot load the web font. */
.hero h1 { visibility: visible; }

.cursor { display: inline-block; margin-left: .08em; font-weight: 400; animation: blink 920ms steps(1, end) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.scroll-cue { align-self: center; color: var(--ink); font: 500 10px var(--mono); text-decoration: none; letter-spacing: -.03em; }
.scroll-cue span { margin-left: 7px; }
.projects { position: relative; min-height: 100vh; min-height: 100svh; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.project-track { height: 100vh; height: 100svh; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
.project-track::-webkit-scrollbar { display: none; }
.project-track.is-dragging { user-select: none; }
.project-column { position: relative; flex: 0 0 50%; min-width: 50%; scroll-snap-align: start; scroll-snap-stop: always; }
.project-slide { position: relative; min-height: 100%; padding: clamp(32px, 4.5vw, 72px); display: flex; flex-direction: column; background: #edeeeb; }
.project-column:nth-child(3n + 1) .project-slide { background: #d9dad6; }
.project-column:nth-child(3n + 2) .project-slide { background: #e6e9e8; }
.project-column:nth-child(3n) .project-slide { background: #ebe8e3; }
.project-copy { flex: 1; display: grid; place-content: center; text-align: left; }
.project-slide .project-status { width: fit-content; margin: 0 0 28px; padding: 4px 7px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 8px/1 var(--sans); letter-spacing: -.03em; }
.project-slide h2 { margin: 0; max-width: 7em; font-size: clamp(34px, 3.8vw, 60px); line-height: 1.01; font-weight: 500; letter-spacing: -.075em; white-space: nowrap; }
.project-slide h2.project-title--ai, .project-slide h2.project-title--ai-voices, .project-slide h2.project-title--child, .project-slide h2.project-title--folk { max-width: 8.6em; white-space: normal; text-wrap: balance; overflow-wrap: normal; word-break: normal; line-break: strict; }
.project-slide p { max-width: 430px; margin: 25px 0 0; font-size: 14px; line-height: 1.75; }
.project-slide p.project-description--folk { max-width: 480px; text-wrap: pretty; }
.no-wrap { white-space: nowrap; }
.project-copy::after { display: none; }
.project-link { display: inline-block; margin: 22px 0 0; color: currentColor; font: 500 10px var(--mono); text-decoration: none; letter-spacing: -.02em; transition: opacity 180ms ease; }
.project-link:hover, .project-link:focus-visible { opacity: .46; outline: none; }
@media (min-width: 641px) {
  .project-copy { padding: 0 clamp(8px, 1.8vw, 28px); }
}
.about-cue { position: absolute; z-index: 2; bottom: clamp(24px, 3.6vw, 55px); left: 50%; transform: translateX(-50%); color: #fff; mix-blend-mode: difference; font: 500 10px var(--mono); text-decoration: none; white-space: nowrap; }
.about-cue span { margin-left: 7px; }
.about { min-height: 100vh; min-height: 100svh; padding: clamp(24px, 6.1vw, 94px); scroll-snap-align: start; scroll-snap-stop: always; display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(40px, 10vw, 160px); align-content: center; align-items: center; }
.identity h2 { margin: clamp(22px, 2.5vw, 34px) 0 0; font-size: clamp(50px, 5.4vw, 84px); line-height: .86; font-weight: 500; letter-spacing: -.09em; }
.legal-name { margin: 16px 0 0; font-size: clamp(18px, 1.65vw, 25px); letter-spacing: -.05em; }
.motto { margin: 9px 0 0; color: #606060; font: 500 11px var(--mono); }
.about-portrait { display: block; width: clamp(220px, 25vw, 375px); height: auto; }
.research-heading { margin-bottom: 34px; }
.research-label { margin: 0; font: 500 10px var(--mono); }
.archive-trigger, .dialog-close { appearance: none; border: 0; padding: 0; color: var(--ink); background: transparent; font: 500 10px var(--mono); letter-spacing: -.03em; cursor: pointer; }
.archive-trigger { display: inline-block; margin-top: 24px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; white-space: nowrap; }
.archive-trigger span { margin-left: 4px; }
.archive-trigger:hover, .archive-trigger:focus-visible, .dialog-close:hover, .dialog-close:focus-visible { opacity: .46; outline: none; }
.question-grid { display: grid; gap: 28px; }
.question-grid article { padding-top: 15px; border-top: 1px solid rgba(17,17,17,.24); }
.question-grid h3 { margin: 0; font-size: clamp(18px, 1.65vw, 25px); font-weight: 500; letter-spacing: -.045em; }
.research-link { color: inherit; text-decoration: none; }
.research-link:hover, .research-link:focus-visible { color: #2355a2; outline: none; }
.question-grid p { max-width: 500px; margin: 9px 0 0; color: #4f4f4f; font-size: 13px; line-height: 1.65; }
.research-dialog { width: min(620px, calc(100vw - 40px)); max-height: min(680px, calc(100svh - 40px)); margin: auto; border: 1px solid var(--line); padding: 0; color: var(--ink); background: var(--paper); box-shadow: 0 22px 70px rgba(17,17,17,.16); }
.research-dialog::backdrop { background: rgba(17,17,17,.22); backdrop-filter: blur(2px); }
.research-dialog-content { padding: clamp(24px, 4vw, 42px); }
.research-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 26px; border-bottom: 1px solid rgba(17,17,17,.24); }
.research-dialog h2 { margin: 0; font-size: clamp(32px, 5vw, 48px); font-weight: 500; line-height: 1; letter-spacing: -.07em; }
.dialog-close { flex: 0 0 auto; margin-top: 3px; }
.dialog-close span { margin-left: 6px; font-size: 16px; vertical-align: -1px; }
.past-research-list { display: grid; justify-items: stretch; align-content: start; padding: 18px 0 2px; text-align: left; }
.past-research-list article { width: 100%; padding: 0 0 18px; border-bottom: 1px solid rgba(17,17,17,.18); }
.past-research-list h3 { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: -.04em; }
.past-research-list article p { max-width: 480px; margin: 6px 0 0; color: #4f4f4f; font-size: 12px; line-height: 1.6; }
.past-research-empty { margin: 0; color: #666; font-size: 13px; line-height: 1.65; }
.past-research-empty strong { display: block; margin-bottom: 7px; color: var(--ink); font: 500 11px var(--mono); }

@media (max-width: 640px) {
  .stage { padding: 18px; }
  .masthead { font-size: 8px; }
  .established { text-align: right; }
  h1 { font-size: clamp(27px, 10.4vw, 54px); letter-spacing: .1em; text-indent: .1em; }
  .project-slide { padding: 24px 18px 18px; }
  .project-column { flex-basis: 82vw; min-width: 82vw; }
  .project-slide h2 { font-size: clamp(28px, 8vw, 38px); }
  .project-slide .project-status { margin-bottom: 20px; padding: 3px 6px; font-size: 8px; }
  .project-slide p { max-width: 285px; margin-top: 17px; font-size: 12px; line-height: 1.6; }
  .project-link { font-size: 9px; }
  .about { padding: 24px 22px 28px; grid-template-columns: 1fr; grid-template-rows: auto auto; gap: 34px; align-content: center; align-items: start; }
  .identity { display: grid; grid-template-columns: minmax(126px, 38vw) minmax(0, 1fr); align-items: center; gap: 28px; }
  .identity h2 { margin: 0; font-size: clamp(42px, 13vw, 54px); }
  .legal-name { margin-top: 10px; font-size: 18px; }
  .motto { margin-top: 5px; font-size: 9px; white-space: nowrap; }
  .about-portrait { width: 100%; }
  .research { min-height: 0; }
  .research-heading { margin-bottom: 18px; }
  .research-label, .archive-trigger { font-size: 9px; }
  .question-grid { grid-template-columns: 1fr; gap: 12px; }
  .question-grid article { padding-top: 8px; }
  .question-grid article:last-child { grid-column: auto; }
  .question-grid h3 { font-size: 16px; line-height: 1.22; }
  .question-grid p { margin-top: 5px; font-size: 11px; line-height: 1.45; }
  .archive-trigger { margin-top: 18px; padding-top: 0; }
  .research-dialog { width: calc(100vw - 32px); max-height: calc(100svh - 32px); }
  .research-dialog-content { padding: 24px 20px; }
  .research-dialog-header { padding-bottom: 22px; }
  .past-research-list { padding-top: 16px; }
  .past-research-list article { padding-bottom: 16px; }
  .past-research-list h3 { font-size: 14px; }
  .past-research-list article p { margin-top: 5px; font-size: 11px; line-height: 1.5; }
}

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