:root {
  --paper: #ffffff; --wash: #f6f2ea; --ink: #14141c; --muted: #6b6b73; --line: #e5e2dc;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.label { font: 600 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; margin: 0; }
h1 em, h2 em, h3 em, .wordmark em { font-style: italic; }
.wordmark { font: 400 26px/1 var(--serif); letter-spacing: -.03em; text-decoration: none; }

/* top bar */
.top { position: absolute; inset: 0 0 auto 0; z-index: 2; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.top nav a { font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; margin-left: 26px; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* hero: the painting, with words on its open sky */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; overflow: hidden; background: #dfe7f1; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; transform-origin: 75% 55%; }
@media (prefers-reduced-motion: no-preference) and (min-width: 901px) { .hero > img { animation: drift 26s ease-out both; } @keyframes drift { from { transform: scale(1.07); } to { transform: none; } } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.35) 38%, rgba(255,255,255,0) 62%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-top: 96px; padding-bottom: 64px; }
.soonlabel { display: inline-block; color: #2b2b36; border: 1px solid rgba(20,20,28,.35); border-radius: 999px; padding: 7px 14px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(46px, 7.2vw, 92px); line-height: 1; max-width: 9.5em; }
.hero p { font-size: clamp(17px, 1.6vw, 20px); max-width: 30em; margin: 22px 0 30px; color: #2b2b36; }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 28px; border-radius: 999px; background: var(--ink); color: #fff;
  font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.pill.soon { background: rgba(20,20,28,.88); cursor: default; }
.hero small { display: block; margin-top: 14px; font-size: 13px; color: #3b3b46; }

section { padding: 96px 0; }
section.wash { background: var(--wash); }
.head { max-width: 640px; margin-bottom: 48px; }
.head h2 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.05; margin-top: 12px; }
.head p { color: var(--muted); margin: 16px 0 0; }

/* a row of paintings that runs off the edge of the page */
.gallery { padding-bottom: 72px; }
.gallery .head { margin-bottom: 36px; }
.strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding: 0 max(24px, calc((100vw - 1072px) / 2)) 18px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent; -webkit-overflow-scrolling: touch; }
.scene { flex: 0 0 clamp(220px, 24vw, 310px); margin: 0; scroll-snap-align: start; }
.scene img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px; }
.scene figcaption { margin-top: 12px; font: 400 20px/1.2 var(--serif); letter-spacing: -.01em; }
.scene figcaption .label { display: block; margin-bottom: 3px; }

/* five roles, each in its own scene */
.roles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.role { margin: 0; }
.role .pic { position: relative; overflow: hidden; border-radius: 3px; }
.role .pic img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; transition: transform 1.2s ease; }
.role:hover .pic img { transform: scale(1.04); }
.role .pic::after { content: ""; position: absolute; inset: 45% 0 0 0; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55)); }
.role h3 { position: absolute; z-index: 1; left: 14px; bottom: 12px; color: #fff; font-size: 30px; }
.role figcaption { padding: 14px 2px 0; }
.role p { margin: 6px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* sample: the painting, the line, the player, the verse */
.sample { display: grid; grid-template-columns: .82fr 1fr; gap: 64px; align-items: center; }
.frame { margin: 0; }
.frame img { width: 100%; border-radius: 3px; box-shadow: 0 40px 70px -40px rgba(40,30,20,.5); }
.sample blockquote { margin: 14px 0 0; font: 400 clamp(32px, 3.9vw, 52px)/1.08 var(--serif); letter-spacing: -.02em; }
.player { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
.player button { flex: none; width: 64px; height: 64px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; }
.player button svg { fill: currentColor; }
.player .i-pause, .player.on .i-play { display: none; }
.player.on .i-pause { display: inline; }
.player .meta { flex: 1; min-width: 0; }
.player .bar { height: 2px; background: var(--line); margin: 10px 0 8px; cursor: pointer; position: relative; }
.player .bar::before { content: ""; position: absolute; inset: -10px 0; }
.player .bar i { display: block; height: 100%; width: 0; background: var(--ink); }
.player .time { font: 500 12px/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.sample .verse { border-top: 1px solid var(--ink); padding-top: 18px; margin-top: 38px; }
.sample .verse p { margin: 10px 0 0; }
.sample .sa { font-size: 20px; line-height: 1.7; }
.sample .tr { font-style: italic; color: var(--muted); font-size: 15px; }

/* the listeners */
.faces { display: flex; gap: 14px; margin-bottom: 28px; }
.faces img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: #fff; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.trio img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 62%; border-radius: 3px; }

/* phones */
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: start; }
.phone { margin: 0; }
.phone img { width: 100%; border-radius: 44px; border: 8px solid #17171c; box-shadow: 0 30px 60px -30px rgba(40,30,20,.45); background: #17171c; }
.phone figcaption { margin-top: 22px; }
.phone figcaption h3 { font-size: 24px; }
.phone figcaption p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

/* paths */
.paths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.path { position: relative; margin: 0; overflow: hidden; border-radius: 2px; }
.path img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 80% 50%; }
.path::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.66), rgba(255,255,255,0) 64%); }
.path figcaption { position: absolute; z-index: 1; left: 14px; top: 12px; max-width: 62%; font: 400 21px/1.12 var(--serif); letter-spacing: -.02em; }

/* plain facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.fact { padding: 26px 28px 8px 0; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--line); }
.fact h3 { font-size: 26px; }
.fact p { color: var(--muted); margin: 10px 0 0; font-size: 15.5px; }

/* the last painting */
.close { position: relative; overflow: hidden; min-height: 560px; display: flex; align-items: center; background: #e6e4f0; }
.close > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; }
.close::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.74) 0%, rgba(255,255,255,.3) 42%, rgba(255,255,255,0) 64%); }
.close .wrap { position: relative; z-index: 1; width: 100%; padding-top: 80px; padding-bottom: 80px; }
.close h2 { font-size: clamp(40px, 6vw, 76px); line-height: 1; max-width: 8em; }
.close .icon { width: 76px; height: 76px; border-radius: 17px; margin: 0 0 24px; box-shadow: 0 14px 30px -14px rgba(40,30,20,.45); }
.close .pill { margin-top: 28px; }

footer { border-top: 1px solid var(--line); padding: 30px 0 44px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: baseline; justify-content: space-between; }
footer nav a { font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; margin-right: 24px; }
footer small { color: var(--muted); font-size: 13px; }

/* text pages */
.page { max-width: 680px; margin: 0 auto; padding: 130px 24px 90px; }
.page h1 { font-size: clamp(44px, 6vw, 64px); line-height: 1; }
.page h2 { font-size: 27px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.page p { margin: 12px 0 0; }
.page .label { display: block; margin-top: 14px; }
.page a { text-underline-offset: 3px; }
.plain .top { position: static; border-bottom: 1px solid var(--line); }
.plain .page { padding-top: 64px; }

@media (max-width: 900px) {
  section { padding: 68px 0; }
  .roles { display: flex; overflow-x: auto; gap: 12px; margin: 0 -24px; padding: 0 24px 14px; scroll-snap-type: x proximity; }
  .role { flex: 0 0 68%; scroll-snap-align: start; }
  .phones { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; gap: 52px; }
  .sample { grid-template-columns: 1fr; gap: 36px; }
  .frame { max-width: 420px; }
  .faces { gap: 8px; }
  .faces img { width: calc((100% - 40px) / 6); height: auto; aspect-ratio: 1; }
  .trio { gap: 6px; }
  .scene { flex-basis: 62%; }
  .close { min-height: 0; display: block; background: var(--wash); }
  .close > img { position: static; height: auto; aspect-ratio: 5 / 4; object-position: 84% 50%; }
  .close::after { display: none; }
  .close .wrap { padding-top: 48px; padding-bottom: 56px; }
  .paths { grid-template-columns: repeat(2, 1fr); }
  .path figcaption { font-size: 17px; left: 10px; top: 9px; }
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 22px 0 6px; border-left: 0; border-top: 1px solid var(--line); }
  .fact:first-child { border-top: 0; }
  /* on a phone the words sit on paper and the painting follows, so neither covers the other */
  .hero { display: flex; flex-direction: column; min-height: 0; background: var(--wash); }
  .hero > img { position: static; order: 2; height: auto; aspect-ratio: 5 / 4; object-position: 86% 50%; }
  .hero::after { display: none; }
  .hero .wrap { padding-top: 116px; padding-bottom: 40px; }
  .top nav a { margin-left: 18px; }
}
