@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-italic.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: oklch(99.1% 0.004 95);
  --paper-2: oklch(96.8% 0.005 95);
  --rule: oklch(88% 0.005 95);
  --ink-3: oklch(52% 0.008 260);
  --ink-2: oklch(34% 0.008 260);
  --ink: oklch(16% 0.008 260);
  --gutter: clamp(20px, 4vw, 64px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Archivo", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.5;
  font-stretch: 100%;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3 { margin: 0; text-wrap: balance; }
p, dl, ol { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.14em; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
ul { list-style: none; margin: 0; padding: 0; }

.skip {
  position: absolute; left: var(--gutter); top: -3rem; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 0.5rem 0.75rem; text-decoration: none;
}
.skip:focus { top: 0.75rem; }

/* Header */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 56px; padding: 0 var(--gutter);
  font-size: 0.875rem; font-weight: 500;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
}
.who { text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.menu { display: flex; gap: 1.5rem; justify-self: center; }
.menu a { text-decoration: none; }
.menu a:hover { text-decoration: underline; }
.where { justify-self: end; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.where time { color: var(--ink); margin-left: 0.5rem; }

/* Stage: the pinned desk. Its height is set from the story length in site.js. */
.stage { position: relative; height: 2450vh; }
.stage-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
}
#desk, .desk-still { position: absolute; inset: 0; width: 100%; height: 100%; }
.desk-still { object-fit: cover; }
#desk { display: block; touch-action: pan-y; }

.panel {
  position: absolute; left: var(--gutter); right: var(--gutter);
  max-width: 34rem; top: 50%; --base-y: -50%;
  transform: translate3d(0, calc(var(--base-y) + var(--fade-y, 0px)), 0);
  opacity: 0; pointer-events: none;
  will-change: transform, opacity;
}
.panel.is-on { pointer-events: auto; }
.panel > * { will-change: transform; }
.kind { font-size: 0.8125rem; font-weight: 500; color: var(--ink-3); margin-bottom: 0.75rem; }
.panel h2 {
  font-size: clamp(2rem, 4vw, 3.9rem);
  font-weight: 740; font-stretch: 112%;
  line-height: 0.95; letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.panel p { color: var(--ink-2); max-width: 30rem; }
.panel .small { font-size: 0.9375rem; color: var(--ink-3); margin-top: 1rem; }
.go {
  display: inline-block; margin-top: 1.25rem; font-weight: 600; font-size: 1rem;
  text-decoration: none; border-bottom: 1.5px solid var(--ink); padding-bottom: 2px;
}
.go:hover { color: var(--ink-3); border-color: var(--ink-3); }

.list div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.75rem; padding: 0.55rem 0; border-top: 1px solid var(--rule); }
.list dt { font-weight: 600; font-size: 0.9375rem; padding-top: 0.05rem; }
.list dd { margin: 0; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.45; }
.facts div { grid-template-columns: 6.5rem 1fr; }
.elsewhere { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.steps { padding-left: 1.25rem; color: var(--ink-2); font-size: 0.9375rem; }
.steps li { padding: 0.25rem 0; }
.steps li::marker { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

.panel-hero { top: 18vh; --base-y: 0px; max-width: 46rem; }
.headline {
  font-size: clamp(2.5rem, 6.6vw, 6.5rem);
  font-weight: 780; font-stretch: 118%;
  line-height: 0.92; letter-spacing: -0.03em;
  text-wrap: balance;
}
.headline .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.headline .line > span { display: block; transform: translate3d(0, 110%, 0); }
.headline.is-in .line > span { transform: none; transition: transform 0.7s var(--ease-out); }
.headline.is-in .line:nth-child(2) > span { transition-delay: 0.07s; }
.headline.is-in .line:nth-child(3) > span { transition-delay: 0.14s; }
.lede { margin-top: 1.5rem; max-width: 30rem; color: var(--ink-2); font-size: 1.0625rem; }

.panel-contact { max-width: 60rem; top: auto; bottom: 10vh; --base-y: 0px; }
.big {
  font-size: clamp(3rem, 9vw, 10rem); font-weight: 800; font-stretch: 122%;
  letter-spacing: -0.035em; line-height: 0.9; max-width: 8em; margin-bottom: 1.5rem;
}
.actions { margin-top: 1.5rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.button {
  display: inline-block;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font-weight: 600; font-size: 1rem; padding: 0.95rem 1.5rem; border-radius: 999px;
  transition: opacity 0.15s;
}
.button:hover { opacity: 0.86; }
.button:active { transform: translateY(1px); }
.address { font-weight: 500; }

.hint {
  position: absolute; right: var(--gutter); bottom: 2.5vh;
  font-size: 0.8125rem; color: var(--ink-3); font-weight: 500;
  transition: opacity 0.3s;
}
.hint::after {
  content: ""; display: inline-block; width: 1px; height: 2.25rem; background: var(--ink-3);
  vertical-align: middle; margin-left: 0.75rem;
}
.stage.is-moving .hint { opacity: 0; }

/* Index of links after the story */
.index { padding: 5rem var(--gutter) 4rem; border-top: 1px solid var(--ink); }
.index ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0 2rem; }
.index li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); font-size: 0.9375rem; }
.index a { font-weight: 600; text-decoration: none; }
.index a:hover { text-decoration: underline; }
.index span { color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Footer */
.foot {
  display: grid; grid-template-columns: auto auto 1fr; gap: 0.5rem 2.5rem;
  padding: 1.25rem var(--gutter) 1.5rem; border-top: 1px solid var(--rule);
  font-size: 0.8125rem; color: var(--ink-3); font-weight: 500;
}
.foot p:first-child { color: var(--ink); }
.foot p:last-child { justify-self: end; text-align: right; max-width: 32rem; }

/* Narrow screens */
@media (max-width: 900px) {
  .top { grid-template-columns: 1fr auto; }
  .where { display: none; }
  .panel { top: auto; bottom: 5vh; --base-y: 0px; max-width: none; }
  .panel-hero { top: auto; bottom: 8vh; }
  .panel p { max-width: none; }
  .panel h2 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .list div { grid-template-columns: 7.5rem 1fr; padding: 0.45rem 0; }
  .list dt, .list dd, .steps { font-size: 0.875rem; }
  .facts div { grid-template-columns: 6rem 1fr; }
  .big { font-size: clamp(2.6rem, 13vw, 4rem); }
  .foot { grid-template-columns: 1fr; }
  .foot p:last-child { justify-self: start; text-align: left; }
  .hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .headline .line > span, .headline.is-in .line > span { transform: none; transition: none; }
}
