:root {
  --bg: #edccbe;
  --surface: #e8c2b2;
  --ink: #351a2b;
  --muted: #6c4857;
  --field: #351a2b;
  --field-ink: #edccbe;
  --display: "Gambarino", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --text: "General Sans", "Avenir Next", "Segoe UI", sans-serif;
  --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.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3.4rem, 7.4vw, 7.5rem);
  --step-close: clamp(3.6rem, 11vw, 12rem);
  --margin: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.5;
  text-wrap: pretty;
}

img, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: 0.18em; }

a:hover { text-underline-offset: 0.28em; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

::selection { background: var(--ink); color: var(--bg); }

h1, h2, .close__name {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.92;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: var(--step-display); }

h2 { font-size: var(--step-head); }

p { margin: 0; }

.lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }

.lines [data-line] { display: block; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 48px;
  min-width: 88px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--bg);
  font: 500 var(--step-body) / 1 var(--text);
  text-decoration: none;
  position: absolute;
  top: 14px;
  right: var(--margin);
  z-index: 3;
}

.button:hover, .button:focus-visible { background: var(--bg); color: var(--ink); }

.hero { position: relative; }

.bar {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: stretch;
  width: 42%;
  min-height: 56px;
  background: var(--ink);
  color: var(--bg);
}

.mark {
  display: flex;
  align-items: center;
  padding: 0 18px 0 var(--margin);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-right: 18px;
}

.tabs a { text-decoration: none; font-weight: 500; }

.tabs a:hover { text-decoration: underline; }

.menu {
  display: none;
  background: transparent;
  color: inherit;
  border: 0;
  font: 500 var(--step-body) / 1 var(--text);
  padding: 0 18px;
  cursor: pointer;
}

.mast {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 1fr 1fr;
  height: 52svh;
  min-height: 340px;
  overflow: hidden;
  background: var(--ink);
}

.mast > * {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.mast .a { grid-column: 1 / 3; grid-row: 1; }
.mast .b { grid-column: 3; grid-row: 1; }
.mast .tile-a { grid-column: 4; grid-row: 1 / 3; background: var(--field); }
.mast .d { grid-column: 5; grid-row: 1; }
.mast .tile-b { grid-column: 6; grid-row: 1 / 3; background: var(--surface); }
.mast .f { grid-column: 1 / 3; grid-row: 2; }
.mast .g { grid-column: 3; grid-row: 2; }
.mast .tile-c { grid-column: 5; grid-row: 2; background: var(--ink); }

.mast img, .mast video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.hero__copy {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 24px;
  padding: 72px var(--margin) 96px;
  align-items: start;
}

.standfirst { max-width: 30ch; font-size: var(--step-lead); line-height: 1.45; }

.method, .person { padding: 64px var(--margin); }

.method h2 { max-width: 14ch; text-indent: 3vw; }

.method__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 16px;
  margin-top: 40px;
  align-items: stretch;
}

.method__side {
  grid-column: 1 / 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.reading { font-size: var(--step-lead); line-height: 1.35; max-width: 22ch; }

.method__side figure { margin: 0; width: min(22vw, 100%); align-self: start; }

.method__side img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.method__label {
  grid-column: 7;
  align-self: start;
  margin: 0;
  font-size: var(--step-small);
}

.method__rows { grid-column: 8 / 13; }

.row {
  display: grid;
  grid-template-columns: 34% 1fr;
  gap: 12px;
  padding: 14px 8px;
  color: inherit;
  text-decoration: none;
}

.row span:first-child { color: var(--muted); font-weight: 500; }

.row.is-break { margin-top: 36px; }

.row:hover, .row[aria-current="true"] { background: var(--surface); }

.person h2 { max-width: 12ch; }

.person .lead {
  max-width: 36ch;
  margin-top: 24px;
  font-size: var(--step-lead);
  line-height: 1.4;
}

.person__tiles {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 16px;
  margin-top: 72px;
  align-items: start;
}

.person__photo { position: relative; margin: 0; }

.person__photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(1) contrast(1.05);
}

.person__photo p {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 46%);
  padding: 20px;
  background: var(--bg);
}

.marktile { background: var(--field); color: var(--field-ink); }

.marktile svg { display: block; width: 72%; margin: 28px auto 8px; height: auto; }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
  margin: 0;
  padding: 20px;
}

.facts div { margin: 0; }

.facts dt { font-size: var(--step-small); }

.facts dd { margin: 4px 0 0; font-weight: 500; }

.facts a { color: inherit; }

.questions {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 16px;
  background: var(--field);
  color: var(--field-ink);
  padding: 72px var(--margin);
}

.questions h2 { grid-column: 1 / 4; }

.faq { grid-column: 5 / 13; columns: 2; column-gap: 56px; }

.faq p { break-inside: avoid; margin: 0 0 20px; max-width: 38ch; }

.credits, .close__top p { max-width: 60ch; }

.faq strong { font-weight: 500; }

.write {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 16px;
  padding: 64px var(--margin) 56px;
  align-items: start;
}

.write h2, .write .say { grid-column: 1 / 6; }

.write .say { margin-top: 20px; font-size: var(--step-lead); line-height: 1.35; max-width: 24ch; }

.write figure { grid-column: 7 / 10; margin: 0; }

.write img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(1) contrast(1.05);
}

.write .where { grid-column: 10 / 13; }

.write .where p { font-weight: 500; }

.write .where ul { list-style: none; margin: 16px 0 0; padding: 0; }

.write .where li { margin-top: 8px; }

.write .where .firm { margin-top: 20px; font-size: var(--step-small); font-weight: 400; color: var(--muted); }

.close {
  background: var(--field);
  color: var(--field-ink);
  padding: 40px var(--margin) 28px;
}

.close__top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
}

.close__top a { color: inherit; }

.close__name {
  display: block;
  margin-top: 48px;
  color: inherit;
  text-decoration: none;
  font-size: var(--step-close);
  line-height: 0.9;
}

.close__name:hover { text-decoration: underline; text-underline-offset: 0.08em; }

.close__meta {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 16px;
  margin-top: 28px;
  font-size: var(--step-small);
  align-items: start;
}

.close__meta p { margin: 0; }

.close__meta .credits { text-align: center; }

.close__meta .year { text-align: right; }

.close__meta a { color: inherit; }

.credits a { white-space: nowrap; }

@media (max-width: 900px) {
  .bar { width: auto; right: 72px; }
  .tabs {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100vw;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0 12px;
    background: var(--ink);
  }
  .tabs.is-open { display: flex; }
  .tabs a { padding: 12px var(--margin); }
  .menu { display: inline-flex; align-items: center; margin-left: auto; }
  .button { position: static; margin-top: 28px; }
  .mast { height: 38svh; min-height: 220px; grid-template-columns: repeat(3, 1fr); }
  .mast .a { grid-column: 1; grid-row: 1; }
  .mast .b { grid-column: 2; grid-row: 1; }
  .mast .tile-a { grid-column: 3; grid-row: 1 / 3; }
  .mast .d, .mast .f, .mast .g, .mast .tile-c { display: none; }
  .mast .tile-b { grid-column: 1 / 3; grid-row: 2; }
  .hero__copy { grid-template-columns: 1fr; padding: 28px var(--margin) 48px; }
  .method h2 { text-indent: 0; }
  .method__grid, .person__tiles, .questions, .close__meta { display: block; }
  .write {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }
  .write h2, .write .say { grid-column: 1; }
  .write figure { grid-column: 2; grid-row: 1; margin: 0; }
  .write .where { grid-column: 2; grid-row: 2; }
  .method__label { display: none; }
  .method__side figure { width: 100%; margin-left: 0; }
  .method__side img { aspect-ratio: 16 / 10; }
  .row { grid-template-columns: 1fr; gap: 4px; }
  .person__photo p { position: static; width: auto; margin-top: 16px; padding: 0; background: transparent; }
  .marktile { margin-top: 16px; }
  .questions h2, .faq { display: block; }
  .faq { columns: 2; column-gap: 32px; margin-top: 28px; }
  .faq p { max-width: none; }
  .close__top { display: block; }
  .close__top a { display: inline-block; margin-top: 12px; }
  .close__meta p { text-align: left; margin-top: 12px; }
  .credits a { white-space: normal; }
}

@media (max-width: 640px) {
  .faq { columns: 1; }
  .write { display: block; }
  .write figure { margin: 28px 0; }
  .write img { width: min(220px, 64vw); height: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero .lines [data-line] {
    transform: translateY(105%);
    animation: line-up 800ms var(--ease) forwards;
    animation-delay: calc(var(--i) * 110ms + 80ms);
  }
  .js .hero [data-load] {
    opacity: 0;
    transform: translateY(16px);
    animation: rise 500ms var(--ease) forwards;
    animation-delay: 420ms;
  }
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    animation: rise 700ms var(--ease) forwards;
    animation-play-state: paused;
    animation-delay: var(--d, 0ms);
  }
  .js [data-reveal].is-in { animation-play-state: running; }
  .js .mast .g video { transform: scale(1.06); animation: drift 18s linear infinite alternate; }
}

@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes drift { to { transform: scale(1); } }
