/* Wilusa Labs LLC: shared stylesheet for every page. Direction: "The name as a monument" (seed 938907493).
   Type: Unbounded 800 (display, capitals) + Onest (text). Palette: Sheet and biro. */

@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded-800-latin.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("fonts/onest-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #f4f4f4;
  --band-1: #e3e3e3;
  --band-2: #d6d6d6;
  --band-hover: #c9c9c9;
  --band-wilusa: #767676;
  --ink: #111111;
  --muted: #5f5f5f;
  --accent: #1a4be0;
  --accent-strong: #1238b0;
  --accent-ink: #ffffff;
  --field-1: #111111;
  --field-1-ink: #ffffff;
  --field-1-muted: #b0b0b0;

  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-text: "Onest", "Helvetica Neue", Arial, sans-serif;

  --step-small: 1rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 0.95rem + 1.05vw, 1.875rem);
  --step-head: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);

  --margin: clamp(16px, 2.2vw, 32px);
  --gutter: clamp(12px, 1.5vw, 24px);
  --section: clamp(72px, 9vw, 136px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-text); font-size: var(--step-body); font-weight: 400; line-height: 1.5;
  font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, figure, ul, ol, dl, dd, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:target { scroll-margin-top: 24px; }
p { text-wrap: pretty; }

.wrap { padding-inline: var(--margin); }
.skip {
  position: absolute; left: var(--margin); top: -200px; z-index: 10;
  background: var(--ink); color: var(--bg); padding: 12px 16px; text-decoration: none;
}
.skip:focus { top: 16px; }

/* ---------- type ---------- */
.mark, .head, .era {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-kerning: normal; font-feature-settings: "kern";
}
.mark { display: block; line-height: 0.86; letter-spacing: -0.045em; white-space: nowrap; }
.head { font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; text-wrap: balance; }
.statement { font-size: var(--step-lead); line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; max-width: 34ch; text-wrap: pretty; }

/* fitted display lines: the script sets font-size from the content box; the vw sizes in CSS are close to the result */
.fit__inner { display: inline-block; white-space: nowrap; }
.mask { display: inline-block; clip-path: inset(-12% -4% 0 -4%); padding-bottom: 0.02em; }
.ln { display: inline-block; }

/* A háček drawn over S, because the self-hosted latin cuts have no Š. */
.hacek { position: relative; }
.hacek::after {
  content: ""; position: absolute; left: 50%; top: 0.03em;
  width: 0.42em; height: 0.14em; margin-left: -0.21em;
  background: currentColor;
  clip-path: polygon(0 0, 24% 0, 50% 50%, 76% 0, 100% 0, 63% 100%, 37% 100%);
}

/* links and the one button */
.link {
  text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, currentColor 70%, transparent);
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-text); font-weight: 500; font-size: var(--step-body); text-decoration: none;
  border-radius: 0;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-strong); }
  .link:hover { text-decoration-color: currentColor; }
}

/* ---------- the bar (every page) ---------- */
.bar {
  position: absolute; top: 20px; left: var(--margin); right: var(--margin); z-index: 3;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-size: 0.9375rem; font-weight: 500;
}
.bar a { text-decoration: none; display: inline-block; padding: 6px 0; }
.bar__links { display: flex; gap: clamp(16px, 2vw, 32px); }
.bar__links a {
  text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.3em;
  text-decoration-color: transparent; transition: text-decoration-color var(--t-hover) ease;
}
.bar__links a[aria-current="page"] { text-decoration-color: currentColor; }
@media (hover: hover) and (pointer: fine) { .bar__links a:hover { text-decoration-color: currentColor; } }
@media (max-width: 599px) { .bar__links .wide { display: none; } }

/* ======================================================================
   HERO: pinned title over portraits
   ====================================================================== */
/* The portraits start below the name, so the name never sits on a photograph. The title is pinned
   only where everything fits in one screen; on short screens (a laptop zoomed to 200%, a phone held
   sideways) the hero is plain flow: the name, the words, then the three pictures one after another. */
.hero {
  position: relative;
  --p-top: calc(98px + 0.86 * 11.3vw + 24px);
  --p-h: calc(100svh - var(--p-top));
  --p-w: calc(var(--p-h) * 2 / 3);
  --col: min(calc(50vw - var(--p-w) / 2 - var(--margin) - 32px), 34ch);
}
.hero__pin {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 98px var(--margin) 32px;
}
.hero__title { display: flex; flex-direction: column; align-self: stretch; font-weight: 400; }
.hero__title:focus { outline: none; }
.hero .mark { font-size: 11.3vw; color: var(--ink); }
.hero__what {
  display: block; margin-top: clamp(28px, 2.6vw, 40px); width: var(--col);
  font-family: var(--font-text); font-size: clamp(1.125rem, 0.9rem + 0.45vw, 1.375rem);
  font-weight: 500; line-height: 1.3; letter-spacing: 0; text-transform: none;
}
.hero__lead { margin-top: 10px; width: var(--col); font-size: var(--step-body); line-height: 1.45; }
.hero__action { margin-top: 28px; }

.slide { position: relative; padding: 24px var(--margin); background: var(--bg); }
.slide--b { background: var(--surface); }
.portrait {
  position: relative; width: min(100%, 480px); aspect-ratio: 2 / 3;
  overflow: clip; background: var(--band-1);
}
.portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  filter: grayscale(1) contrast(1.06);
}
.slide__note { margin-top: 12px; max-width: 30ch; font-size: var(--step-small); line-height: 1.45; }
@media (min-width: 600px) {
  .slide { display: flex; align-items: flex-end; gap: var(--gutter); }
  .portrait { flex: none; width: min(58%, 480px); }
  .slide__note { margin-top: 0; }
}
.slide__count { display: block; font-weight: 500; margin-bottom: 4px; }

/* tablet: the name on two lines, the portrait under it, the words below the portrait */
@media (max-width: 1023px) {
  .hero { --p-top: calc(64px + 2 * 0.86 * 19.4vw + 16px); --p-h: calc(100svh - var(--p-top) - 250px); --col: min(54%, 40ch); }
  .hero__pin { padding-top: 64px; }
  .hero__title { flex: 1 1 auto; }
  .hero .mark { font-size: 19.4vw; }
  .mark .mask { display: block; }
  .hero__what { margin-top: auto; }
  .hero__action { margin-top: 20px; }
}
/* phone */
@media (max-width: 599px) {
  .hero { --p-top: calc(52px + 2 * 0.86 * 18.6vw + 16px); --p-h: min(calc((100vw - 32px) * 1.5), calc(100svh - var(--p-top) - 214px)); --col: 100%; }
  .hero__pin { padding-top: 52px; padding-bottom: 16px; }
  .hero .mark { font-size: 18.6vw; }
  .hero__what { font-size: 1.125rem; }
  .hero__lead { margin-top: 6px; font-size: 1.0625rem; }
  .hero__action { margin-top: 16px; min-height: 48px; }
}
@media (max-width: 1023px) and (max-height: 639px), (max-width: 1023px) and (min-aspect-ratio: 4/5) {
  .hero__title { flex: none; }
  .hero__what { margin-top: 24px; }
}

/* pinned: the name stays while the portraits slide in under it, one screen each */
@media (min-width: 1024px) and (min-height: 640px), (max-width: 1023px) and (min-height: 640px) and (max-aspect-ratio: 4/5) {
  .hero__pin { position: sticky; top: 0; height: 100svh; pointer-events: none; }
  .hero__pin a, .hero__pin p, .hero__pin .mark, .hero__what { pointer-events: auto; }
  .hero__slides { margin-top: -100svh; }
  .slide { position: sticky; top: 0; height: 100svh; overflow: clip; padding: 0; }
  .portrait {
    position: absolute; top: var(--p-top); left: 50%;
    width: var(--p-w); height: var(--p-h); aspect-ratio: auto;
    transform: translateX(-50%);
  }
  .slide__note { position: absolute; right: var(--margin); bottom: 32px; width: min(22vw, 30ch); max-width: none; margin: 0; }
}
@media (max-width: 1023px) and (min-height: 640px) and (max-aspect-ratio: 4/5) {
  .slide__note { width: min(36%, 30ch); }
}
@media (max-width: 599px) and (min-height: 640px) and (max-aspect-ratio: 4/5) {
  .slide__note { display: none; }
}

/* ======================================================================
   THE NAME: heading captions a panorama
   ====================================================================== */
.intro { padding-top: var(--section); }
.intro__notes {
  display: grid; grid-template-columns: repeat(2, minmax(0, 40ch)); gap: 24px 48px;
  margin-top: 32px;
}
.intro__notes p { font-size: var(--step-body); line-height: 1.5; }
.pano { margin-top: 56px; }
.pano__frame { overflow: clip; aspect-ratio: 21 / 9; background: var(--band-1); }
.pano__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; filter: grayscale(1) contrast(1.06); }
.pano figcaption { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }
@media (max-width: 599px) {
  .intro__notes { grid-template-columns: 1fr; gap: 16px; }
  .pano__frame { aspect-ratio: 4 / 5; }
}

/* ======================================================================
   ONE HILL, MANY CITIES: the layers of Troy
   ====================================================================== */
.layers { background: var(--surface); padding-block: var(--section); margin-top: var(--section); }
.layers__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  row-gap: 48px; align-items: start;
}
.layers__head { grid-column: 1 / -1; }
.layers__head .statement { margin-top: 24px; max-width: 40ch; }

/* the city's name for the chosen layer, at full page width */
.era {
  --cap: min(19vw, 30svh);
  grid-column: 1 / -1; position: relative;
  height: calc(var(--cap) * 0.94);
  line-height: 0.8; letter-spacing: -0.04em; color: var(--ink);
  margin-bottom: -16px;
}
.era__w {
  position: absolute; left: 0; bottom: 0; display: none;
  font-size: var(--cap); white-space: nowrap;
  clip-path: inset(-0.4em -0.1em 0 -0.1em);
}
.era__w.is-on { display: block; }
.era__in { display: inline-block; padding-bottom: 0.01em; }
html:not(.js) .era { display: none; }

.mound-wrap { grid-column: 1 / span 8; }
.band {
  --w: 52%;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr); column-gap: var(--gutter);
  align-items: center;
}
.band:nth-child(1) { --w: 46%; }
.band:nth-child(2) { --w: 52%; }
.band:nth-child(3) { --w: 57.3%; }
.band:nth-child(4) { --w: 62.6%; }
.band:nth-child(5) { --w: 68%; }
.band:nth-child(6) { --w: 73.3%; }
.band:nth-child(7) { --w: 78.6%; }
.band:nth-child(8) { --w: 84%; }
.band:nth-child(9) { --w: 89.3%; }
.band:nth-child(10) { --w: 94.6%; }
.band:nth-child(11) { --w: 100%; }
.band__btn {
  grid-column: 1; width: var(--w);
  display: flex; flex-wrap: wrap; min-height: 52px; align-items: center;
  column-gap: clamp(8px, 0.9vw, 12px); row-gap: 2px;
  padding: 6px clamp(10px, 1.1vw, 16px); text-align: left;
  background: var(--band-1); color: var(--ink);
  font-size: var(--step-small); line-height: 1.2;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.band:nth-child(odd) .band__btn { background: var(--band-2); }
.band--now .band__btn, .band--now:nth-child(odd) .band__btn { background: var(--bg); }
.band--now { margin-bottom: 12px; }
.band--wilusa .band__btn, .band--wilusa:nth-child(odd) .band__btn { background: var(--band-wilusa); color: #fff; }
.band.is-on .band__btn, .band.is-on:nth-child(odd) .band__btn { background: var(--ink); color: #fff; }
.band__name { font-weight: 500; white-space: nowrap; }
.band__tag { font-weight: 500; white-space: nowrap; }
.band__date { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.band__btn:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) {
  .band:not(.is-on):not(.band--wilusa) .band__btn:hover { background: var(--band-hover); }
  .band--wilusa:not(.is-on) .band__btn:hover { background: #6b6b6b; }
}
.band__btn:focus-visible { outline-offset: -4px; }
.band--wilusa .band__btn:focus-visible, .band.is-on .band__btn:focus-visible { outline-color: #fff; }
.band__note { grid-column: 2; font-size: var(--step-small); line-height: 1.3; }
.band.is-on .band__note { font-weight: 500; }
.band.is-on .band__name { text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.25em; }
.band__desc { grid-column: 1 / -1; padding: 10px 16px 18px; font-size: var(--step-small); max-width: 62ch; }
.band__w { padding-top: 0; font-weight: 500; }
.mound__note { margin-top: 16px; font-size: var(--step-small); color: var(--muted); }
.js .band__desc { display: none; }

.layer { grid-column: 9 / -1; }
html:not(.js) .layer { display: none; }
.layer__name { font-size: var(--step-lead); line-height: 1.15; font-weight: 500; }
.layer__date { margin-top: 4px; font-size: var(--step-lead); line-height: 1.2; font-variant-numeric: tabular-nums; }
.layer__age { margin-top: 6px; color: var(--muted); }
.layer__desc { margin-top: 20px; max-width: 40ch; min-height: calc(5 * 1.5em); }
.layer__wilusa { margin-top: 12px; font-weight: 500; min-height: 1.5em; }
.layer__wilusa.is-off { visibility: hidden; }
.layer__steps { display: flex; gap: 12px; margin-top: 24px; }
.step {
  min-height: 48px; padding: 0 18px; font-weight: 500;
  background: var(--bg);
  transition: background-color var(--t-hover) ease, opacity var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.step:active { transform: scale(0.97); }
.step:disabled { opacity: 0.45; cursor: default; }
@media (hover: hover) and (pointer: fine) { .step:not(:disabled):hover { background: var(--band-1); } }
.layers__close { grid-column: 1 / span 8; max-width: 40ch; }

/* 1024–1279px (iPad landscape, small laptops): give the bars more of the row so names and dates stay on one line */
@media (min-width: 1024px) and (max-width: 1279px) {
  .band { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}
/* below 1024px the panel follows the list, in the same order as the HTML and the keyboard */
@media (max-width: 1023px) {
  .layer { grid-column: 1 / -1; }
  .mound-wrap { grid-column: 1 / -1; }
  .layers__close { grid-column: 1 / -1; }
  .layer__desc { max-width: 56ch; min-height: calc(3 * 1.5em); }
  .band { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}
@media (max-width: 599px) {
  .layers__grid { row-gap: 32px; }
  .era { margin-bottom: -8px; }
  .layer__desc { min-height: calc(5 * 1.5em); }
  .band { display: block; }
  .band__btn { min-height: 48px; padding: 6px 12px; column-gap: 8px; }
  .band:nth-child(1) { --w: 60%; }
  .band:nth-child(2) { --w: 64%; }
  .band:nth-child(3) { --w: 68%; }
  .band:nth-child(4) { --w: 72%; }
  .band:nth-child(5) { --w: 80%; }
  .band:nth-child(6) { --w: 84%; }
  .band:nth-child(7) { --w: 86%; }
  .band:nth-child(8) { --w: 89%; }
  .band:nth-child(9) { --w: 92%; }
  .band:nth-child(10) { --w: 96%; }
  .js .band__note { display: none; }
  .band__note { padding: 6px 12px 0; }
}

/* ======================================================================
   WHAT WE DO
   ====================================================================== */
.work { padding-block: calc(var(--section) * 1.2) var(--section); }
.work__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: start;
}
.work__title { grid-column: 1 / span 7; grid-row: 1; }
.work__lead { grid-column: 1 / span 7; grid-row: 2; margin-top: 28px; max-width: 36ch; }
.stages {
  grid-column: 1 / span 7; grid-row: 3; margin-top: 56px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px var(--gutter);
}
.stages h3 { font-size: var(--step-body); font-weight: 500; }
.stages p { margin-top: 6px; max-width: 34ch; }
.work__note { grid-column: 1 / span 7; grid-row: 4; margin-top: 48px; font-weight: 500; }
.work__pic { grid-column: 9 / -1; grid-row: 1 / span 4; align-self: start; }
.work__frame { aspect-ratio: 4 / 5; overflow: clip; background: var(--band-1); }
.work__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 70%; filter: grayscale(1) contrast(1.06); }
.work__pic figcaption { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }
@media (max-width: 1023px) {
  .work__title, .work__lead, .stages, .work__note { grid-column: 1 / -1; }
  .work__pic { grid-column: 1 / span 8; grid-row: 5; margin-top: 56px; }
  .work__frame { aspect-ratio: 3 / 2; }
}
@media (max-width: 599px) {
  .stages { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
  .work__note { margin-top: 36px; }
  .work__pic { grid-column: 1 / -1; margin-top: 40px; }
}

/* ======================================================================
   COMPANY: side facts, wide paragraph
   ====================================================================== */
.company { background: var(--surface); padding-block: var(--section); }
.company__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  row-gap: 0; align-items: start;
}
.company__title { grid-column: 1 / -1; margin-bottom: 48px; }
.facts { grid-column: 1 / span 3; grid-row: 2; display: grid; gap: 18px; }
.facts dt { font-size: var(--step-small); color: var(--muted); }
.facts dd { font-weight: 500; }
.company__para { grid-column: 5 / span 7; grid-row: 2; font-size: var(--step-lead); line-height: 1.32; font-weight: 400; max-width: 44ch; }
.company__word { grid-column: 1 / span 3; grid-row: 3; margin-top: 88px; font-weight: 500; }
.company__col { margin-top: 88px; display: flex; flex-direction: column; gap: 6px; grid-row: 3; }
.company__col--a { grid-column: 5 / span 3; }
.company__col--b { grid-column: 8 / span 4; }
.company__col .first { font-weight: 500; }
.company__col a { align-self: flex-start; }
@media (max-width: 1023px) {
  .facts { grid-column: 1 / span 4; }
  .company__para { grid-column: 5 / -1; }
  .company__word { grid-column: 1 / span 4; }
  .company__col--a { grid-column: 5 / span 4; }
  .company__col--b { grid-column: 9 / span 4; }
}
@media (max-width: 599px) {
  .company__title { margin-bottom: 32px; }
  .company__para { grid-column: 1 / -1; grid-row: 2; font-size: 1.1875rem; }
  .facts { grid-column: 1 / -1; grid-row: 3; margin-top: 40px; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .company__word { grid-column: 1 / -1; grid-row: 4; margin-top: 48px; }
  .company__col--a { grid-column: 1 / -1; grid-row: 5; margin-top: 16px; }
  .company__col--b { grid-column: 1 / -1; grid-row: 6; margin-top: 32px; }
}

/* ======================================================================
   CONTACT: the e-mail as display type, on the white ground
   ====================================================================== */
.contact {
  background: var(--bg); color: var(--ink);
  min-height: 76svh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr;
  padding-block: var(--section) 0;
}
.contact__say { margin-top: 20px; font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; }
.contact__mail { align-self: end; padding-bottom: 10vh; padding-top: 72px; }
.mail {
  display: block; color: var(--ink); text-decoration: none;
  font-family: var(--font-text); font-weight: 500; letter-spacing: -0.045em; line-height: 1;
  font-size: 9.4vw; white-space: nowrap;
  transition: color var(--t-hover) ease;
}
.mail .mail__l { display: inline-block; }
@media (hover: hover) and (pointer: fine) { .mail:hover { color: var(--accent); } }
.contact__addr { margin-top: 24px; }
@media (max-width: 1023px) {
  .contact { min-height: 0; }
  .contact__mail { padding-top: 112px; padding-bottom: 88px; }
  .mail { font-size: 12.5vw; line-height: 1.02; }
  .mail .mail__l { display: block; }
}
@media (max-width: 599px) {
  .contact__mail { padding-top: 88px; padding-bottom: 72px; }
}

/* ======================================================================
   FOOTER: columns above, the name below (every page)
   ====================================================================== */
.foot { background: var(--field-1); color: var(--field-1-ink); padding-top: 56px; }
.foot__cols {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--gutter);
  font-size: var(--step-body); line-height: 1.55; color: var(--field-1-muted);
}
.foot .first { color: var(--field-1-ink); font-weight: 500; margin-bottom: 6px; }
.foot h2.first { font-family: var(--font-text); font-size: inherit; line-height: inherit; letter-spacing: 0; }
.foot :focus-visible { outline-color: #ffffff; }
.foot a { color: var(--field-1-ink); }
.credits { margin-top: 72px; font-size: var(--step-small); line-height: 1.55; color: var(--field-1-muted); }
.credits ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px var(--gutter); }
.credits a { color: var(--field-1-muted); }
@media (hover: hover) and (pointer: fine) { .credits a:hover, .foot a:hover { color: var(--field-1-ink); } }
.foot__mark { padding-top: 18vh; }
.wordmark { display: block; width: 100%; height: auto; overflow: visible; color: var(--field-1-ink); }
.wordmark text { font-family: var(--font-display); font-weight: 800; font-size: 100px; fill: currentColor; }
.wordmark--stack { display: none; }
.wordmark--stack .wordmark + .wordmark { margin-top: 0.6rem; }
.legal { padding-block: 20px 28px; font-size: var(--step-small); color: var(--field-1-muted); }
@media (max-width: 1023px) {
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .foot__cols > div:first-child, .foot__cols > div:last-child { grid-column: 1 / -1; }
  .credits ul { grid-template-columns: 1fr; }
  .foot__mark { padding-top: 12vh; }
  .wordmark--wide { display: none; }
  .wordmark--stack { display: block; }
}

/* ======================================================================
   TEXT PAGES: privacy, terms, not found
   ====================================================================== */
.page-head { position: relative; padding: 112px var(--margin) 0; }
.page-head .bar { top: 20px; }
.page-title { font-size: 9.6vw; color: var(--ink); }
.page-title--terms { font-size: 10.8vw; }
.page-title--lost { font-size: 13.3vw; }
/* a band of pictures from the hill under the title of a text page: unequal crops, one height */
.strip {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  padding: 56px var(--margin) 0;
}
.strip__pic { grid-column: span 2; height: clamp(220px, 34vh, 380px); overflow: clip; background: var(--band-1); }
.strip__pic--wide { grid-column: span 5; }
.strip__pic--mid { grid-column: span 3; }
.strip--three .strip__pic--wide { grid-column: span 6; }
.strip__pic img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06); }
.strip__pic .at-low { object-position: 50% 62%; }
.strip__pic .at-high { object-position: 50% 30%; }
.strip__pic .at-mid { object-position: 50% 40%; }
.strip__pic .at-left { object-position: 0% 60%; }
.strip--three { padding-top: 0; padding-bottom: var(--section); }
.strip__cap { grid-column: 1 / -1; margin-top: 12px; font-size: var(--step-small); color: var(--muted); }
@media (max-width: 599px) {
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--gutter); padding-top: 40px; }
  .strip__pic, .strip__pic--wide, .strip__pic--mid, .strip--three .strip__pic--wide { grid-column: span 1; height: auto; aspect-ratio: 4 / 5; }
  .strip--three .strip__pic--wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}

.doc {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  padding: 72px var(--margin) var(--section); align-items: start;
}
.doc__side { grid-column: 1 / span 3; position: sticky; top: 32px; display: grid; gap: 24px; }
.doc__side .first { font-weight: 500; }
.doc__side p { font-size: var(--step-small); }
.doc__body { grid-column: 5 / span 7; max-width: 66ch; }
.doc__lead { font-size: var(--step-lead); line-height: 1.32; max-width: 40ch; }
.page-head__lead { margin-top: 28px; }
.doc__body > .doc__part:first-child { margin-top: 0; }
.doc__part { margin-top: 56px; }
.doc__part h2 { font-size: var(--step-lead); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.doc__part p, .doc__part ul { margin-top: 14px; }
.doc__part ul { padding-left: 1.2em; list-style: disc; }
.doc__part li + li { margin-top: 8px; }
.doc__part a, .doc__side a { overflow-wrap: anywhere; }
.lost { padding: 72px var(--margin) var(--section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.lost__text { grid-column: 1 / span 6; display: flex; flex-direction: column; align-items: flex-start; }
.lost__text p { font-size: var(--step-lead); line-height: 1.32; max-width: 34ch; }
.lost .button { margin-top: 32px; }
.lost__pic { grid-column: 8 / -1; }
.lost__pic img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; filter: grayscale(1) contrast(1.06); }
.lost__pic figcaption { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }
@media (max-width: 1023px) {
  .page-head { padding-top: 96px; }
  .page-title, .page-title--terms, .page-title--lost { font-size: 17vw; }
  .doc__side { grid-column: 1 / -1; position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 48px; }
  .doc__body { grid-column: 1 / -1; }
  .lost__text { grid-column: 1 / -1; }
  .lost__pic { grid-column: 1 / span 8; margin-top: 56px; }
}
@media (max-width: 599px) {
  .doc { padding-top: 48px; }
  .doc__side { grid-template-columns: 1fr; gap: 16px; }
  .doc__part { margin-top: 44px; }
  .lost__pic { grid-column: 1 / -1; }
}

/* ======================================================================
   MOTION: hidden states live under .js.ready and no-preference only
   ====================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* load: the name rises from its baseline, the words and the action follow, the first portrait opens */
  .js .hero .mark .ln, .js .page-title .ln { transform: translateY(105%); animation: rise-line 820ms var(--ease-expo) forwards; animation-delay: 100ms; }
  .js .hero .mark .mask + .mask .ln, .js .page-title .mask + .mask .ln { animation-delay: 190ms; }
  .js .hero__what, .js .hero__lead, .js .hero__action, .js .bar { opacity: 0; transform: translateY(12px); animation: rise-in 520ms var(--ease-out) forwards; }
  .js .bar { transform: none; animation-delay: 80ms; }
  .js .hero__what { animation-delay: 380ms; }
  .js .hero__lead { animation-delay: 440ms; }
  .js .hero__action { animation-delay: 520ms; }
  .js .lost__text > * { opacity: 0; transform: translateY(12px); animation: rise-in 520ms var(--ease-out) 380ms forwards; }
  .js .lost__text > .button { animation-delay: 460ms; }
  .js .portrait--first { clip-path: inset(0 0 100% 0); animation: open-down 1000ms var(--ease-in-out) 150ms forwards; }
  .js .portrait--first img { transform: scale(1.08); animation: settle 1100ms var(--ease-expo) 100ms forwards; }

  /* entrances below the fold, once; only once the main script is running */
  .js.ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); }
  .js.ready [data-reveal].is-in { opacity: 1; transform: none; }

  /* the city's name rises from its mask; the panel answers each choice */
  .era__w.is-on.rise .era__in { animation: rise-line 760ms var(--ease-expo) both; }
  .layer.swap > * { animation: swap-in 320ms var(--ease-out) both; }
  .layer.swap > :nth-child(2) { animation-delay: 30ms; }
  .layer.swap > :nth-child(3) { animation-delay: 60ms; }
  .layer.swap > :nth-child(4) { animation-delay: 90ms; }
}
@keyframes rise-line { from { transform: translateY(105%); } to { transform: none; } }
@keyframes rise-in { to { opacity: 1; transform: none; } }
@keyframes open-down { to { clip-path: inset(0); } }
@keyframes settle { to { transform: none; } }
@keyframes swap-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* scroll-linked, quiet: each new portrait settles as its sheet slides in; the panorama drifts */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .slide:not(:first-child) .portrait img { animation: settle-scroll linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    .pano__frame img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .work__frame img { animation: drift-small linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes settle-scroll { from { transform: scale(1.1); } to { transform: none; } }
@keyframes drift { from { transform: scale(1.12) translateY(-3%); } to { transform: scale(1.02) translateY(2%); } }
@keyframes drift-small { from { transform: scale(1.08); } to { transform: scale(1); } }
