/* fynncomerford.com
   blue and paper. warmth only from photographs.
   two grotesks and a mono, all lowercase. */

:root {
  --midnight: #0A1A55;
  --azulejo: #1B3C9E;
  --ink: #141414;
  --paper: #EEE8DC;
  --cream: #F6F1E7;
  --heat: #B3241E;

  --display: "Inter Tight", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --read: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;

  --gut: clamp(16px, 4vw, 48px);
  --bg: var(--paper);
  --fg: var(--ink);
  --link: var(--azulejo);
  --rule: color-mix(in srgb, var(--fg) 70%, transparent);
  --soft: color-mix(in srgb, var(--fg) 62%, transparent);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* page themes */
.t-paper    { --bg: var(--paper);    --fg: var(--ink);   --link: var(--azulejo); }
.t-midnight { --bg: var(--midnight); --fg: var(--cream); --link: var(--cream); }
.t-ink      { --bg: var(--ink);      --fg: var(--cream); --link: var(--cream); }
.t-pic      { --bg: var(--ink);      --fg: var(--cream); --link: var(--cream); }

/* night: after dark the whole site turns midnight. paper only in daylight */
html[data-hour="night"] .t-paper,
html[data-hour="night"] .paper-panel {
  --bg: var(--midnight); --fg: var(--cream); --link: #AFC0F2;
}
html[data-hour="night"] .t-ink { --bg: #08133F; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.5 var(--read);
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; font-weight: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
.mono { font: 400 12px/1.5 var(--mono); letter-spacing: .01em; }
.soft { color: var(--soft); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── header ───────────────────────────────────────────────────────────── */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 22px var(--gut);
  font: 400 12px/1.4 var(--mono);
  color: var(--fg);
}
.top a { color: inherit; }
.top nav { display: flex; gap: clamp(12px, 2vw, 28px); flex-wrap: wrap; justify-content: flex-end; }
.top nav a[aria-current="page"], .top .back { text-decoration: underline; text-underline-offset: .25em; }
.menu-btn { display: none; }

/* ── pictures: full-bleed, grainy, close ──────────────────────────────── */
.pic { position: relative; overflow: hidden; background: #222; isolation: isolate; }
.pic > img, .pic > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pic::after {
  content: ""; position: absolute; inset: -50%; z-index: 2; pointer-events: none;
  background: var(--grain); opacity: .5; mix-blend-mode: overlay;
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0) } 20% { transform: translate(-3%, 2%) } 40% { transform: translate(2%, -4%) }
  60% { transform: translate(-4%, -1%) } 80% { transform: translate(3%, 3%) } 100% { transform: translate(0, 0) }
}
@media (prefers-reduced-motion: reduce) { .pic::after { animation: none; } }
.pic .shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgb(0 0 0 / .55), rgb(0 0 0 / .05) 55%, rgb(0 0 0 / .25)); }

/* placeholder tones, until real photographs arrive */
.tone-water  { background: radial-gradient(60% 70% at 52% 38%, #3d5aa8 0%, transparent 70%), radial-gradient(90% 60% at 30% 90%, #13245e, transparent), linear-gradient(160deg, #1d3474, #091640); }
.tone-haze   { background: radial-gradient(18% 22% at 42% 22%, #f6d39a 0%, #e59a49 35%, transparent 75%), radial-gradient(90% 70% at 50% 40%, #c4652a, transparent), linear-gradient(#a9501f, #3a1709 85%); }
.tone-ember  { background: radial-gradient(40% 70% at 30% 55%, #2a0807 0%, transparent 70%), radial-gradient(30% 60% at 78% 45%, #300a08, transparent 70%), linear-gradient(120deg, #8e1a16, #b8312a 45%, #7a1210); }
.tone-dusk   { background: radial-gradient(80% 50% at 50% 100%, #3d3446, transparent), linear-gradient(#5a6c98 0%, #7f8db0 45%, #31324a 100%); }
.tone-sand   { background: radial-gradient(40% 50% at 70% 40%, #4a3b2e 0%, transparent 70%), linear-gradient(#cfc6b4, #a59a85 60%, #6b6152); }
.tone-alpine { background: radial-gradient(70% 35% at 40% 62%, #59617a, transparent), linear-gradient(#8d9ec0 0%, #b3b6c4 35%, #4b5a4c 70%, #2b3328); }
.tone-skin   { background: radial-gradient(55% 60% at 60% 40%, #c8957a 0%, #8b5a43 45%, transparent 80%), linear-gradient(135deg, #3a2318, #6e4330 50%, #241510); }
.tone-cobalt { background: radial-gradient(50% 60% at 50% 50%, #2b4fb8, transparent 75%), linear-gradient(var(--azulejo), var(--midnight)); }
.tone-ink    { background: linear-gradient(#262626, #111); }
.pic[class*="tone-"]::before { /* soft focus on placeholders */
  content: ""; position: absolute; inset: 0; backdrop-filter: blur(2px);
}

/* ── the full screen hero (home, essay, film, trip) ───────────────────── */
.hero { min-height: 100vh; min-height: 100svh; display: grid; }
.hero > * { grid-area: 1 / 1; }
.hero .pic { min-height: 100%; }
.hero .over {
  position: relative; z-index: 5; align-self: end;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px;
  padding: 120px var(--gut) clamp(28px, 5vh, 56px);
}
.huge {
  font: 400 clamp(56px, 12.5vw, 220px)/.88 var(--display);
  letter-spacing: -.045em;
  margin-left: -.05em;
}
.big {
  font: 400 clamp(44px, 7.4vw, 120px)/.95 var(--display);
  letter-spacing: -.035em;
  margin-left: -.04em;
}
.mid { font: 400 clamp(28px, 3.4vw, 48px)/1.05 var(--display); letter-spacing: -.025em; }
.home .line { max-width: 34em; margin-top: 18px; font: 400 15px/1.55 var(--mono); }
.home .where { margin-bottom: 14px; }
.newest { text-align: right; }
.newest li { margin-top: 4px; }
.newest a { text-decoration: underline; text-underline-offset: .25em; }

/* ── generic page frame ───────────────────────────────────────────────── */
.page { padding: 96px var(--gut) 0; min-height: 70vh; }
.head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-bottom: clamp(32px, 6vh, 64px); }
.head.stack { display: block; }
.head .mono { margin-top: 10px; }
.t-paper .head h1 { color: var(--midnight); }
html[data-hour="night"] .t-paper .head h1 { color: var(--cream); }

/* ruled rows: the index pattern used everywhere */
.rows { border-top: 1px solid var(--rule); }
.rows > li, .rows > a { display: grid; align-items: baseline; gap: 4px 24px; padding: 12px 0 10px; border-bottom: 1px solid var(--rule); color: inherit; }
.rows .t { font: 400 clamp(19px, 1.7vw, 24px)/1.15 var(--display); letter-spacing: -.015em; }
.rows a:hover .t, a.rows-a:hover .t { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.label { font: 400 12px/1.5 var(--mono); margin: 32px 0 10px; }
.label:first-child { margin-top: 0; }

/* writing index: year, title, leader, minutes */
.toc > li > a, .toc > li > span { display: grid; grid-template-columns: 6.5em auto 1fr auto; align-items: baseline; gap: 14px; color: inherit; padding: 10px 0; }
.toc .t { color: var(--link); font: 400 clamp(19px, 1.8vw, 26px)/1.2 var(--display); letter-spacing: -.015em; }
.toc .lead { border-bottom: 1px dotted var(--link); transform: translateY(-.3em); opacity: .7; }
.toc .muted .t { color: var(--soft); }
.toc .muted .lead { border-color: var(--soft); }
.toc a:hover .t { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }

/* ── essay ────────────────────────────────────────────────────────────── */
.essay-hero .over { grid-template-columns: 1fr; }
.essay-hero h1 { max-width: 13ch; }
.essay-body {
  display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 36rem) minmax(160px, 1fr);
  column-gap: clamp(24px, 4vw, 64px);
  padding: 0 var(--gut);
}
.essay-body .side { grid-column: 1; grid-row: 1 / span 999; padding-top: 72px; }
.essay-body .side .sticky { position: sticky; top: 24px; font: 400 12px/1.5 var(--mono); }
.essay-body .side .ttl { max-width: 16em; }
.essay-body .side .left { margin-top: 10px; font-variant-numeric: tabular-nums; }
.essay-body .contents { margin-top: 28px; }
.essay-body .contents a { display: grid; grid-template-columns: 2.4em 1fr; color: inherit; padding: 2px 0; }
.essay-body .contents a.on { color: var(--link); }
.essay-body .contents a.on .nm { text-decoration: underline; text-underline-offset: .25em; }
.prose { grid-column: 2; padding: 72px 0 40px; font: 400 18px/1.62 var(--read); text-transform: none; }
.prose > * { grid-column: 2; }
.prose p + p { margin-top: 1.05em; }
.prose p.first { font: 500 clamp(22px, 2vw, 26px)/1.3 var(--display); letter-spacing: -.015em; color: var(--midnight); margin-bottom: 1em; }
html[data-hour="night"] .prose p.first { color: var(--cream); }
.prose .part { font: 400 12px/1.5 var(--mono); text-transform: lowercase; margin: 3.2em 0 1.4em; scroll-margin-top: 24px; }
.prose .part:first-child { margin-top: 0; }
.prose sup a { font: 400 11px var(--mono); color: var(--link); padding: 0 2px; }
.prose .noted { position: relative; }
.note {
  position: absolute; left: calc(100% + clamp(24px, 4vw, 64px)); top: .2em; width: min(15rem, 22vw);
  font: 400 12px/1.5 var(--mono); color: var(--link); text-transform: lowercase;
  border-top: 1px solid var(--link); padding-top: 8px;
}
.note b { font-weight: 400; margin-right: 6px; }

/* the one red screen per essay, at the line that matters. red nowhere else */
.heat { width: 100vw; margin: 64px 0 64px calc(var(--off, 0px) * -1); min-height: 100vh; min-height: 100svh; display: grid; text-transform: lowercase; }
.heat > * { grid-area: 1 / 1; }
.heat .pic { background-color: var(--heat); }
.heat p { position: relative; z-index: 5; align-self: center; padding: 0 var(--gut); color: var(--cream); font: 400 clamp(40px, 6.6vw, 104px)/1.0 var(--display); letter-spacing: -.035em; max-width: 14ch; }

/* la suite */
.suite { padding: clamp(64px, 12vh, 140px) var(--gut) 0; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; border-top: 1px solid var(--rule); margin-top: 48px; }
.suite .next .t { color: var(--link); }

/* ── films / dark index over a picture ────────────────────────────────── */
.over-index { position: relative; min-height: 100vh; }
.over-index > .pic { position: fixed; inset: 0; z-index: 0; }
.over-index > .pic .shade { background: rgb(0 0 0 / .42); }
.over-index > .page { position: relative; z-index: 3; padding-bottom: 40px; }
.films .rows > li { grid-template-columns: 8em minmax(10em, 16em) 1fr auto; }
.films .rows .w { text-decoration: underline; text-underline-offset: .25em; }
.film-meta { display: flex; gap: 22px; margin-top: 14px; }
.film-meta a { text-decoration: underline; text-underline-offset: .25em; }
.screen { background: #000; padding: 72px var(--gut); }
.screen .frame { aspect-ratio: 16 / 9; width: 100%; max-width: 1400px; margin: 0 auto; background: #0b0b0b; display: grid; place-items: center; }
.screen iframe { width: 100%; height: 100%; border: 0; }
.notes-block { max-width: 36rem; padding: 64px var(--gut); font: 400 17px/1.6 var(--read); }
.pitch { max-width: 40rem; }
.pitch p.lede { font: 400 clamp(19px, 1.7vw, 23px)/1.45 var(--read); margin: 18px 0 40px; text-transform: none; }
.pitch dl { display: grid; grid-template-columns: 9em 1fr; gap: 18px 24px; margin: 0; }
.pitch dt { font: 400 12px/1.6 var(--mono); }
.pitch dd { margin: 0; }

/* ── photographs ──────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); }
.photos .rows > li > a, .photos .rows > li > span { display: grid; grid-template-columns: 2.5em 1fr; color: inherit; align-items: baseline; }
.photos .feature .pic { aspect-ratio: 6 / 5; }
.photos .feature .mono { margin-top: 10px; }
.series { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(48px, 9vw, 140px) clamp(16px, 3vw, 40px); padding-bottom: 80px; }
.series figure { margin: 0; cursor: zoom-in; }
.series figure .pic { aspect-ratio: 4 / 5; }
.series figure.l .pic { aspect-ratio: 3 / 2; }
.series figure figcaption { margin-top: 8px; font: 400 12px var(--mono); }
.series figure.s { grid-column: span 4; }
.series figure.m { grid-column: span 5; }
.series figure.l { grid-column: span 7; }
.series figure:nth-child(3n+2) { margin-top: 18vh; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: #000; display: none; place-items: center; padding: 4vh 4vw; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox .pic { width: min(100%, 140vh); aspect-ratio: 3 / 2; max-height: 92vh; }
.elsewhere { padding: clamp(80px, 16vh, 180px) var(--gut) 0; }
.elsewhere .rows > li { grid-template-columns: minmax(8em, 16em) 1fr auto; }

/* ── outside ──────────────────────────────────────────────────────────── */
.outside .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.outside .rows > li { grid-template-columns: 6.5em 1fr 10em; padding: 12px 0; }
.outside .rows .s { font: 400 12px/1.5 var(--mono); }
.trip { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.trip > .pic { position: sticky; top: 0; height: 100vh; }
.trip > .pic .over { position: absolute; z-index: 5; left: var(--gut); right: var(--gut); bottom: clamp(28px, 5vh, 56px); }
.paper-panel { background: var(--bg); color: var(--fg); padding: 96px var(--gut) 64px; --bg: var(--paper); --fg: var(--ink); --link: var(--azulejo); --rule: color-mix(in srgb, var(--fg) 70%, transparent); }
.days { margin: 28px 0 40px; }
.days li { display: grid; grid-template-columns: 3em auto 1fr; gap: 12px; align-items: baseline; padding: 4px 0; }
.days .t { color: var(--link); font: 400 18px/1.3 var(--display); }
.days .lead { border-bottom: 1px dotted var(--link); transform: translateY(-.3em); opacity: .7; }
.trip-text { font: 400 18px/1.55 var(--read); max-width: 32rem; text-transform: none; }
.route { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 40px 0 28px; font: 400 12px var(--mono); }
.route li { display: flex; align-items: center; gap: 18px; }
.route li + li::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: .6; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; border-top: 1px solid var(--rule); padding-top: 14px; }
.facts li { font: 400 clamp(17px, 1.5vw, 21px)/1.2 var(--display); }

/* ── work ─────────────────────────────────────────────────────────────── */
.work .rows > li, .work .rows > a { grid-template-columns: 9em minmax(9em, 14em) 1fr; }
.work .rows .d { font: 400 12px/1.5 var(--mono); }
.company .head { display: block; }
.company .lede { font: 400 clamp(19px, 1.8vw, 24px)/1.45 var(--read); max-width: 40rem; margin-top: 40px; text-transform: none; }
.company .outs { display: flex; gap: 28px; margin-top: 36px; }
.company .outs a { text-decoration: underline; text-underline-offset: .25em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 64px; border-top: 1px solid var(--rule); padding-top: 18px; }
.stats b { display: block; font: 400 clamp(44px, 6vw, 88px)/1 var(--display); letter-spacing: -.035em; font-weight: 400; }
.stats span { display: block; margin-top: 10px; max-width: 18em; }

/* ── collections ──────────────────────────────────────────────────────── */
.coll { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.coll ol { border-top: 1px solid var(--rule); counter-reset: c; }
.coll li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.coll li .t { font: 400 20px/1.2 var(--display); letter-spacing: -.015em; color: var(--link); }
.coll li .mono { margin-top: 4px; }
.coll .now { font: 400 12px var(--mono); color: var(--soft); margin-bottom: 2px; }
.coll .out { display: inline-block; margin-top: 14px; font: 400 12px var(--mono); text-decoration: underline; text-underline-offset: .25em; }

/* ── about ────────────────────────────────────────────────────────────── */
.about .split { align-items: start; }
.about .facts-list { border-top: 1px solid var(--rule); }
.about .facts-list li { font: 400 clamp(19px, 1.7vw, 24px)/1.2 var(--display); letter-spacing: -.015em; padding: 9px 0 8px; border-bottom: 1px solid var(--rule); }
.about .portrait .pic { aspect-ratio: 9 / 10; }
.about .reach { margin-top: 40px; display: grid; grid-template-columns: 9em 1fr; gap: 8px 24px; }


/* ── the same ending on every page: an email field and three links out ── */
.end { padding: clamp(80px, 14vh, 160px) var(--gut) 28px; }
.t-pic .end, .over-index .end { background: var(--ink); }
.end-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.end .outs { display: flex; gap: 28px; font: 400 12px var(--mono); }
.end .outs a { color: var(--fg); text-decoration: underline; text-underline-offset: .25em; }
.end .bye { display: flex; justify-content: space-between; margin-top: clamp(56px, 10vh, 120px); font: 400 12px var(--mono); color: var(--soft); }
.end .bye a { color: var(--soft); }

/* cut: pages change like film edits, a hard cut through black, never a fade */
.cut { position: fixed; inset: 0; z-index: 100; background: #000; pointer-events: none; visibility: hidden; }
.cut.on { visibility: visible; }

/* ── phones: one column, nothing lost ─────────────────────────────────── */
@media (max-width: 860px) {
  .top { position: absolute; }
  .top nav { display: none; }
  .menu-btn { display: block; background: none; border: 0; color: inherit; font: inherit; padding: 0; cursor: pointer; }
  .top.open nav { display: flex; position: fixed; inset: 0; z-index: 30; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding: var(--gut); background: var(--ink); }
  .top.open nav a { color: var(--cream); font: 400 44px/1.1 var(--display); letter-spacing: -.03em; }
  .top.open .menu-btn { position: fixed; z-index: 31; right: var(--gut); top: 22px; color: var(--cream); }

  .hero .over { grid-template-columns: 1fr; }
  .newest { text-align: left; }

  .essay-body { display: block; }
  .essay-body .side { padding-top: 40px; }
  .essay-body .side .sticky { position: static; }
  .essay-body .contents { display: none; }
  .progress-bar { display: block !important; }
  .prose { padding-top: 32px; font-size: 17px; }
  .note { position: static; width: auto; display: block; margin-top: 14px; }
  .suite, .end-grid, .split, .outside .cols, .coll, .trip { grid-template-columns: 1fr; }
  .trip > .pic { position: relative; height: 72vh; }

  .films .rows > li { grid-template-columns: 1fr auto; }
  .films .rows .k, .films .rows .l { grid-column: 1 / -1; }
  .work .rows > li, .work .rows > a { grid-template-columns: 1fr; gap: 2px; }
  .outside .rows > li { grid-template-columns: 1fr; gap: 2px; }
  .elsewhere .rows > li { grid-template-columns: 1fr; }
  .toc > li > a, .toc > li > span { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .toc .y { grid-column: 1 / -1; }
  .toc .lead { display: none; }
  .series { grid-template-columns: 1fr; }
  .series figure.s, .series figure.m, .series figure.l { grid-column: 1; margin-top: 0; }
  .series figure.s { width: 64%; }
  .series figure.m { width: 82%; justify-self: end; }
  .facts, .stats { grid-template-columns: 1fr 1fr; }
  .pitch dl, .about .reach { grid-template-columns: 1fr; gap: 4px; }
  .pitch dd { margin-bottom: 14px; }
  .end .outs { flex-wrap: wrap; }
}
.progress-bar { display: none; position: fixed; top: 0; left: 0; height: 2px; background: var(--link); z-index: 50; width: 0; }

/* header over a picture */
.essay .top, .trip-page .top { color: var(--cream); }
.trip-page .top .back { color: var(--link); }
@media (max-width: 860px) { .trip-page .top .back { color: var(--cream); } }
@media (max-width: 1100px) {
  .note { position: static; width: auto; display: block; margin-top: 14px; }
}
.essay .end 
/* rules and muted text follow each theme's foreground */
body, .t-paper, .t-midnight, .t-ink, .t-pic, .paper-panel, html[data-hour="night"] .t-paper, html[data-hour="night"] .paper-panel {
  --rule: color-mix(in srgb, var(--fg) 55%, transparent);
  --soft: color-mix(in srgb, var(--fg) 62%, transparent);
}
.about .reach { margin: 40px 0 0; }
.about .reach dd { margin: 0; }

/* real photographs already carry grain */
.pic:has(> img, > video)::after { opacity: .22; }
.lightbox .pic { aspect-ratio: auto; height: 92vh; }
.lightbox .pic > img { object-fit: contain; }

/* writing index: a short synopsis under the title, on hover. it cuts in, never fades */
.toc .syn {
  display: none;
  max-width: 34rem; margin: -2px 0 14px calc(6.5em + 14px);
  font: 400 15px/1.55 var(--read); text-transform: none; color: var(--fg);
}
.toc li:hover .syn, .toc li:focus-within .syn { display: block; }
@media (hover: none) { .toc .syn { display: block; } }
@media (max-width: 860px) { .toc .syn { margin-left: 0; } }

/* home: the name, quieter */
.home .name { font: 300 clamp(26px, 3.2vw, 44px)/1.05 var(--display); letter-spacing: -.02em; margin: 0; opacity: .92; }

/* photographs: each series has a short intro */
.photos .head .intro { max-width: 36rem; margin: 22px 0 0; font: 400 17px/1.6 var(--read); text-transform: none; }

/* rotating titles: each one keeps its own direction (arabic reads right to left) */
.rot { display: inline-block; unicode-bidi: plaintext; white-space: pre; padding-bottom: .14em; }

/* from the old site: bio on about, extra paragraphs on company pages, film notes */
.about .bio { max-width: 38rem; margin: 0 0 18px; font: 400 17px/1.6 var(--read); text-transform: none; }
.company .lede.more { margin-top: 20px; }
.notes-block p + p { margin-top: 1em; }

/* about: the welcome from the old home page, above the bio */
.about .hello-text { max-width: 38rem; margin-bottom: 40px; }
.about .hello-text .hi { font: 400 clamp(28px, 3.4vw, 48px)/1.05 var(--display); letter-spacing: -.025em; margin: 0 0 22px; }
.about .hello-text p { margin: 0 0 1em; font: 400 17px/1.6 var(--read); text-transform: none; }
.about .hello-text p.hi { text-transform: lowercase; }
.about .hello-text a { color: var(--link); text-decoration: underline; text-underline-offset: .2em; }

/* ── collections: books as 3d hardcovers, after stripe.press ─────────────── */
.press { margin: 0 0 96px; }
.press .label { margin-bottom: 18px; }

/* the book (shared) */
.b3 { --w: 132px; --h: calc(var(--w) * 1.5); --d: calc(var(--w) * .2); position: relative; width: var(--w); height: var(--h); perspective: 1800px; }
.b3-in { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 30deg)); transition: transform .7s cubic-bezier(.2, .7, .15, 1); }
.b3 .f { position: absolute; backface-visibility: hidden; }
.b3 .cover { inset: 0; background: var(--img) center / cover #ddd; transform: translateZ(calc(var(--d) / 2)); border-radius: 1px 3px 3px 1px; box-shadow: inset 5px 0 6px -3px rgba(0, 0, 0, .45), inset -1px 0 0 rgba(255, 255, 255, .25); }
.b3 .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255, 255, 255, .16), transparent 40%, rgba(0, 0, 0, .14)); }
.b3 .back { inset: 0; background: var(--spine, #2a2723); transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.b3 .spine { top: 0; height: 100%; width: var(--d); left: calc(50% - var(--d) / 2); transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 10%; padding: 9% 0 7%; color: var(--spine-ink, #f6f1e7);
  background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(255, 255, 255, .07) 30%, rgba(0, 0, 0, .05) 70%, rgba(0, 0, 0, .3)), var(--spine, #3b3a33); }
/* cloth */
.b3 .spine::before { content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .12) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 3px); }
.b3 .spine span, .b3 .spine i { position: relative; writing-mode: vertical-rl; text-transform: lowercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b3 .spine i { font: 400 clamp(8px, calc(var(--d) * .2), 11px) / 1.2 var(--mono); font-style: normal; opacity: .8; max-height: 22%; flex: none; }
.b3 .spine span { font: 400 clamp(11px, calc(var(--d) * .4), 19px) / 1.1 var(--display); letter-spacing: -.01em; flex: 1; min-height: 0; }
.b3 .spine b { position: relative; flex: none; font: 500 clamp(8px, calc(var(--d) * .22), 11px) / 1 var(--mono); opacity: .7; border: 1px solid currentColor; border-radius: 50%; width: 1.9em; height: 1.9em; display: grid; place-items: center; }
.b3 .pages { top: 2%; height: 96%; width: calc(var(--d) - 2px); left: calc(50% - var(--d) / 2 + 1px); transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 3px)); background: repeating-linear-gradient(90deg, #f4efe3 0 1px, #ddd6c6 1px 2px); }
.b3 .top { left: 1%; width: calc(98% - 3px); height: calc(var(--d) - 2px); top: calc(50% - var(--d) / 2 + 1px); transform: rotateX(90deg) translateZ(calc(var(--h) / 2 - 3px)); background: repeating-linear-gradient(0deg, #f4efe3 0 1px, #ddd6c6 1px 2px); }

/* the shelf: spines side by side; the open one turns to show its cover */
.shelf-wrap { position: relative; margin: 0 calc(var(--gut) * -1); padding: 64px var(--gut) 0; background: #24251e; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; isolation: isolate; }
.shelf-wrap::-webkit-scrollbar { display: none; }
.shelf-wrap::after { content: ""; position: sticky; display: block; left: 0; height: 30px; margin: 0 calc(var(--gut) * -1); background: linear-gradient(#17180f, #2e2f26 35%, #222319); }
.ghost { position: absolute; left: var(--gut); top: 8px; z-index: -1; margin: 0; white-space: nowrap; pointer-events: none; font: 300 clamp(64px, 10vw, 160px) / 1 var(--display); letter-spacing: -.04em; color: rgba(246, 241, 231, .06); transition: opacity .4s; }
.spines { list-style: none; margin: 0 auto; padding: 0; display: flex; align-items: flex-end; gap: 2px; width: max-content; }
.spines li { --w: clamp(150px, 15vw, 236px); --d: calc(var(--w) * var(--k)); flex: none; width: var(--d); transition: width .7s cubic-bezier(.2, .7, .15, 1); }
.spines li.open { width: calc(var(--w) + 18px); }
.spines button { all: unset; display: block; cursor: pointer; }
.spines button:focus-visible { outline: 1px solid var(--cream); outline-offset: 4px; }
.spines .b3 { --w: clamp(150px, 15vw, 236px); --d: calc(var(--w) * var(--k)); --h: calc(var(--w) * 1.5 * var(--hk)); width: var(--w); margin-left: calc((var(--d) - var(--w)) / 2); transition: margin .7s cubic-bezier(.2, .7, .15, 1); }
.spines li.open .b3 { margin-left: 9px; }
.spines .b3-in { --ry: 90deg; }
.spines li.open .b3-in { --ry: 0deg; transform: translateZ(20px) rotateY(var(--ry)); }
.spines li:not(.open) button:hover .b3-in { transform: translateY(-6px) rotateY(var(--ry)); }

/* what you are looking at */
.press-info { display: grid; grid-template-columns: 12rem 1fr; gap: 24px; padding: 28px 0 0; min-height: 132px; }
.press-info p { margin: 0; }
.press-info .t { font: 400 clamp(26px, 3vw, 40px) / 1.05 var(--display); letter-spacing: -.025em; color: var(--midnight); }
html[data-hour="night"] .press-info .t { color: var(--cream); }
.press-info .by { margin-top: 8px; }
.press-info .note { margin-top: 14px; max-width: 34rem; font: 400 16px / 1.55 var(--read); text-transform: none; }
.press-info .note:empty { display: none; }
.press > .out { display: inline-block; margin-top: 28px; }

@media (max-width: 860px) {
  .spines li, .spines .b3 { --w: 150px; }
  .spines { margin: 0; }
  .press-info { grid-template-columns: 1fr; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .b3-in, .spines li, .spines .b3 { transition: none; }
}

/* ── work/until: dressed like untillabs.com ─────────────────────────────── */
.skin-until { --u-green: #11180f; --u-cream: #f5f1ea; --u-ink: #121212; --u-red: #8e2416; background: var(--u-cream); color: var(--u-ink); }
.skin-until .u-mono { font: 400 12px/1.4 var(--mono); letter-spacing: .02em; }
.skin-until h1, .skin-until h2, .skin-until .u-big, .skin-until .u-lead { font-family: var(--display); font-weight: 600; text-transform: none; margin: 0; }

/* hero: deep green, grain, a soft-edged window onto the lab */
.u-hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; color: var(--u-cream);
  background: radial-gradient(120% 90% at 50% 45%, #18210f 0%, var(--u-green) 45%, #2b3a2b 100%); }
.u-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.u-orb { position: absolute; left: 50%; top: 44%; width: min(62vmin, 560px); aspect-ratio: 1; translate: -50% -50%; background: var(--img) center / cover;
  -webkit-mask: radial-gradient(closest-side, #000 55%, transparent 100%); mask: radial-gradient(closest-side, #000 55%, transparent 100%); opacity: .9;
  animation: u-breathe 9s ease-in-out infinite alternate; }
@keyframes u-breathe { from { scale: .94; filter: saturate(.8) brightness(.85); } to { scale: 1.04; filter: saturate(1.05) brightness(1); } }
.u-hero-text { position: relative; z-index: 2; align-self: end; text-align: center; padding: 0 var(--gut) clamp(40px, 9vh, 96px); }
.u-hero h1 { font-size: clamp(56px, 9vw, 132px); line-height: .95; letter-spacing: -.045em; margin-top: 14px; }
.u-hero .u-role { margin: 18px auto 0; max-width: 34rem; font: 400 16px/1.5 var(--read); opacity: .8; text-transform: none; }

/* statement: centred, heavy, tight */
.u-statement { padding: clamp(120px, 22vh, 220px) var(--gut); text-align: center; }
.u-lead { font-size: clamp(20px, 2.1vw, 30px); line-height: 1.12; letter-spacing: -.02em; max-width: 30em; margin: 0 auto !important; }
.u-big { font-size: clamp(36px, 4.4vw, 64px); line-height: .98; letter-spacing: -.035em; max-width: 17em; margin: 40px auto 0 !important; }

/* text left, picture right */
.u-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: 0 0 0 clamp(var(--gut), 10vw, 160px); }
.u-split h2 { font-size: clamp(36px, 4vw, 56px); line-height: 1; letter-spacing: -.035em; }
.u-split p { font: 400 clamp(18px, 1.6vw, 24px)/1.5 var(--display); letter-spacing: -.005em; max-width: 26rem; margin: 18px 0 28px; text-transform: none; }
.u-split figure { margin: 0; aspect-ratio: 4 / 3; background: var(--img) center / cover; border-radius: 6px 0 0 6px; }

/* pills */
.u-pill { display: inline-block; padding: 9px 22px; border-radius: 999px; font: 500 15px/1.2 var(--display); text-transform: none; text-decoration: none;
  color: var(--u-cream); background: linear-gradient(180deg, #3a3a3a, #0e0e0e); box-shadow: 0 6px 18px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .14); transition: transform .3s; }
.u-pill:hover { transform: translateY(-2px); }
.u-pill.light { color: var(--u-ink); background: linear-gradient(180deg, #fffdf8, #e9e3d8); }

/* bracketed steps */
.u-steps { list-style: none; margin: 0; padding: clamp(100px, 18vh, 180px) var(--gut); display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; font: 400 15px/1.4 var(--display); text-transform: none; }
.u-steps li { display: flex; gap: 12px; align-items: baseline; }
.u-steps .u-mono { color: #77726a; white-space: nowrap; }

/* deep red band */
.u-band { background: var(--u-red); color: var(--u-cream); padding: clamp(72px, 14vh, 140px) var(--gut); text-align: center; }
.u-pills { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 22px; }
.skin-until .end { background: var(--u-green); color: var(--u-cream); }

@media (max-width: 860px) {
  .u-split { grid-template-columns: 1fr; padding: 0 var(--gut); }
  .u-split figure { border-radius: 6px; }
  .u-steps { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .u-orb { animation: none; } }

/* ── film pages, as a cinema ────────────────────────────────────────────── */
.film { background: #000; color: #f3efe6; --serif: "Newsreader", Georgia, serif; }
/* the menu waits in the dark until you move */
.film .top { opacity: 0; transition: opacity .8s; }
.film.awake .top, .film .top:focus-within { opacity: 1; }

/* grain and vignette, over everything, barely there */
.film::before, .film::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 80; }
.film::before { background: radial-gradient(130% 100% at 50% 50%, transparent 55%, rgba(0, 0, 0, .55) 100%); }
.film::after { inset: -50%; opacity: .09; mix-blend-mode: screen; animation: grain 1s steps(6) infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes grain { 0% { translate: 0 0; } 20% { translate: -4% 3%; } 40% { translate: 3% -5%; } 60% { translate: -6% -2%; } 80% { translate: 5% 4%; } 100% { translate: 0 0; } }

/* the opening: letterboxed, credits fade up one by one */
.opening { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #000; display: grid; place-items: center; --open: 0; }
.o-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: o-in 2.4s .2s ease forwards; filter: brightness(.72) contrast(1.05); }
.o-media.drift { animation: o-in 2.4s .2s ease forwards, drift 40s ease-in-out infinite alternate; }
@keyframes o-in { to { opacity: 1; } }
@keyframes drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
/* 2.39:1 bars; they slide away as you scroll */
.bars i { position: absolute; left: 0; right: 0; z-index: 3; background: #000; height: max(7vh, calc((100svh - 100vw / 2.39) / 2)); transition: transform .1s linear; }
.bars i:first-child { top: 0; transform: translateY(calc(var(--open) * -100%)); }
.bars i:last-child { bottom: 0; transform: translateY(calc(var(--open) * 100%)); }
.o-credits { position: relative; z-index: 4; text-align: center; padding: 0 var(--gut); }
.o-credits > * { opacity: 0; animation: o-in 1.6s ease forwards; }
.o-title { margin: 0; font: 300 clamp(48px, 9vw, 150px)/.92 var(--display); letter-spacing: -.04em; text-transform: lowercase; animation-delay: 1s !important; }
.o-line { margin-top: 26px; letter-spacing: .38em; text-transform: uppercase; font-size: 11px; animation-delay: 2.2s !important; }
.o-by { margin-top: 10px; letter-spacing: .38em; text-transform: uppercase; font-size: 11px; opacity: 0; animation-delay: 3s !important; color: rgba(243, 239, 230, .7); }
.o-nav { position: absolute; z-index: 4; bottom: calc(max(7vh, (100svh - 100vw / 2.39) / 2) / 2); translate: 0 50%; margin: 0; left: 0; right: 0; display: flex; justify-content: center; gap: 28px; opacity: 0; animation: o-in 1.4s 3.8s ease forwards; }
.o-nav a { color: inherit; text-decoration: underline; text-underline-offset: .25em; }

/* lights down while the film is on screen */
.film main > *:not(.screen):not(.lightbox), .film .top, .film .end { transition: opacity 1.2s ease; }
.film.lights-down main > *:not(.screen):not(.lightbox), .film.lights-down .end { opacity: .06; }
.film .screen { padding: 14vh var(--gut); background: #000; }
.film .screen .frame { box-shadow: 0 0 120px rgba(255, 255, 255, .03); background: #050505; }
.film .screen .yt { max-width: 1400px; margin: 14px auto 0; }

/* the stills: a strip of film */
.strip-wrap { padding: 12vh 0 0; }
.strip-label { padding: 0 var(--gut); margin-bottom: 18px; color: rgba(243, 239, 230, .6); }
.strip { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; background: #0c0b0a; padding: 26px 0;
  --holes: repeating-linear-gradient(90deg, transparent 0 10px, #2a2622 10px 22px, transparent 22px 32px);
  background-image: var(--holes), var(--holes); background-size: 100% 9px, 100% 9px; background-position: 0 8px, 0 calc(100% - 8px); background-repeat: no-repeat; }
.strip::-webkit-scrollbar { display: none; }
.strip figure { flex: none; margin: 0; padding: 0 6px; width: min(62vw, 640px); cursor: zoom-in; }
.strip figure:first-child { margin-left: var(--gut); }
.strip figure:last-child { margin-right: var(--gut); }
.strip .pic { aspect-ratio: 2.39 / 1; }
.strip .pic img { transition: filter .5s; filter: brightness(.85); }
.strip figure:hover .pic img { filter: brightness(1); }
.strip figcaption { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #d9893b; opacity: .75; }

/* the notes: a director's statement */
.statement { max-width: 36rem; margin: 0 auto; padding: 22vh var(--gut) 10vh; text-align: center; }
.statement .s-label { color: rgba(243, 239, 230, .55); margin-bottom: 40px; }
.statement p:not(.mono) { font: 300 clamp(18px, 1.5vw, 21px)/1.7 var(--serif); margin: 0 0 1.4em; text-transform: none; color: rgba(243, 239, 230, .86); }
.statement p.first { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.35; font-style: italic; color: #f3efe6; position: relative; }
.statement p.first::before { content: "“"; display: block; font: 300 96px/0.6 var(--serif); margin-bottom: 18px; opacity: .5; }
.statement .s-links { margin-top: 48px; }
.statement .s-links a { color: inherit; text-decoration: underline; text-underline-offset: .25em; }
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 1.4s ease, transform 1.4s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* end credits roll */
.credits { padding: 8vh var(--gut) 0; }
.roll { height: 70vh; overflow: hidden; -webkit-mask: linear-gradient(transparent, #000 20%, #000 80%, transparent); mask: linear-gradient(transparent, #000 20%, #000 80%, transparent); }
.roll-in { padding: 70vh 0; text-align: center; animation: roll 22s linear infinite; animation-play-state: paused; }
.credits.rolling .roll-in { animation-play-state: running; }
.credits:hover .roll-in { animation-play-state: paused; }
@keyframes roll { from { transform: translateY(0); } to { transform: translateY(-100%); } }
.c-title { font: 300 clamp(32px, 4vw, 56px)/1 var(--display); letter-spacing: -.03em; margin: 0 0 12vh; }
.c-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 0 auto 4.5vh; max-width: 34rem; text-transform: none; }
.c-row .mono { text-align: right; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: rgba(243, 239, 230, .55); align-self: center; }
.c-row span:last-child { text-align: left; font: 400 19px/1.3 var(--display); }

/* the next film */
.next-film { position: relative; display: grid; place-items: center; height: 62vh; overflow: hidden; color: #f3efe6; text-decoration: none; margin-top: 10vh; }
.n-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.45); transition: filter 1s, transform 6s ease; }
.next-film:hover .n-media { filter: brightness(.7); transform: scale(1.04); }
.n-text { position: relative; display: grid; gap: 12px; text-align: center; }
.n-text .mono:first-child { letter-spacing: .38em; text-transform: uppercase; font-size: 11px; }
.n-title { font: 300 clamp(40px, 6vw, 96px)/.95 var(--display); letter-spacing: -.04em; }
.film .end { background: #000; }

@media (max-width: 860px) {
  .strip figure { width: 82vw; }
  .c-row { grid-template-columns: 1fr; gap: 4px; }
  .c-row .mono, .c-row span:last-child { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .film::after, .o-media.drift, .roll-in { animation: none; }
  .o-media, .o-credits > *, .o-nav { animation: none; opacity: 1; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* collections: the books stand on the page itself, no dark shelf behind */
.shelf-wrap { background: transparent; }
.shelf-wrap::after { height: 14px; background: linear-gradient(color-mix(in srgb, var(--fg) 22%, transparent), transparent); border-top: 1px solid color-mix(in srgb, var(--fg) 35%, transparent); }
.ghost { color: color-mix(in srgb, var(--fg) 4%, transparent); }

/* ── collections: films as ticket stubs, art as a salon hang ─────────────── */
.shelf-section { margin: 0 0 120px; --serif: "Newsreader", Georgia, serif; }
.shelf-section > .label { margin-bottom: 8px; }
.shelf-section .out { display: inline-block; margin-top: 40px; font: 400 12px var(--mono); text-decoration: underline; text-underline-offset: .25em; }

/* paper colours for the stubs */
.hue-0 { --pc: #e9d9b8; --pi: #5a2a1a; --pa: #b8452c; }
.hue-1 { --pc: #c9d8cf; --pi: #1f3a33; --pa: #2f6b5a; }
.hue-2 { --pc: #f0c9b6; --pi: #4a1d1d; --pa: #a23a2a; }
.hue-3 { --pc: #d6d2e6; --pi: #252347; --pa: #4b4691; }
.hue-4 { --pc: #f1e5a8; --pi: #3a3214; --pa: #8a6d12; }

/* ticket stubs */
.stubs { display: flex; flex-wrap: wrap; justify-content: center; padding: 30px 10px 40px 70px; }
.stub { position: relative; z-index: var(--z); display: flex; width: 300px; min-height: 128px; margin: -14px 0 0 -60px; color: var(--pi); background: var(--pc);
  rotate: var(--r); translate: 0 var(--dy); box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 8px 18px rgba(30, 20, 10, .12); text-transform: none; cursor: default; outline: none;
  /* punched notches top and bottom where the stub tears */
  -webkit-mask: radial-gradient(circle at 228px 0, transparent 7px, #000 7.5px) top / 100% 51% no-repeat, radial-gradient(circle at 228px 100%, transparent 7px, #000 7.5px) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle at 228px 0, transparent 7px, #000 7.5px) top / 100% 51% no-repeat, radial-gradient(circle at 228px 100%, transparent 7px, #000 7.5px) bottom / 100% 51% no-repeat;
  transition: rotate .45s cubic-bezier(.2,.8,.2,1), translate .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s; }
.stub:hover, .stub:focus-visible { z-index: 50; rotate: 0deg; translate: 0 calc(var(--dy) - 26px); box-shadow: 0 24px 40px rgba(30, 20, 10, .25); }
.s-main { width: 228px; padding: 14px 16px; border-right: 1.5px dashed color-mix(in srgb, var(--pi) 35%, transparent); }
.s-top { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--pa); }
.s-title { font: 600 22px/1.02 var(--display); letter-spacing: -.025em; margin: 12px 0 8px; }
.s-by { font-size: 11px; opacity: .75; }
.s-why { font: italic 300 14px/1.35 var(--serif); margin-top: 8px; }
.s-tear { flex: 1; display: grid; grid-template-columns: 1fr; align-content: center; justify-items: center; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--pa); }
.s-tear b { font: 600 22px/1.1 var(--display); color: var(--pi); text-transform: uppercase; margin-bottom: 4px; }

/* paintings, in css until there are scans: each built from its own colours */
.paint { aspect-ratio: var(--ar); width: 100%; background: var(--img, none) center / cover; }
.p-la-blouse-roumaine:not([style*="--img"]) { background:
  radial-gradient(ellipse 9% 7% at 50% 18%, #2b1f1a 60%, transparent 62%),
  radial-gradient(ellipse 13% 16% at 50% 27%, #e7c3a3 70%, transparent 72%),
  repeating-linear-gradient(90deg, transparent 0 9px, #2a4f9e 9px 11px, transparent 11px 18px, #c93b2a 18px 20px) 50% 62% / 46% 7% no-repeat,
  radial-gradient(ellipse 34% 44% at 50% 72%, #f4f0e4 72%, transparent 73%),
  linear-gradient(#b8291c, #9e2016); }
.p-la-grenouillere:not([style*="--img"]) { background:
  radial-gradient(ellipse 18% 6% at 46% 54%, #e8e3cf 60%, transparent 62%),
  radial-gradient(circle at 30% 70%, rgba(255,255,255,.55) 0 2px, transparent 3px) 0 0 / 23px 13px,
  radial-gradient(circle at 70% 40%, rgba(220,230,210,.45) 0 2px, transparent 3px) 0 0 / 17px 11px,
  linear-gradient(180deg, #35502e 0 30%, #5e7d4a 30% 46%, #6f8f8a 46%, #3f6670 100%); }
.p-the-icebergs:not([style*="--img"]) { background:
  radial-gradient(ellipse 30% 40% at 38% 46%, #f6f6f0 60%, transparent 62%),
  radial-gradient(ellipse 18% 26% at 66% 52%, #dfe8e8 60%, transparent 62%),
  radial-gradient(ellipse 24% 10% at 46% 64%, #7fc0c2 60%, transparent 62%),
  linear-gradient(180deg, #e9d3a6 0%, #d9c39e 35%, #9fb6b4 55%, #3f6a73 80%, #233f48 100%); }
.p-a-favourite-custom:not([style*="--img"]) { background:
  radial-gradient(ellipse 10% 7% at 38% 58%, #e6b998 70%, transparent 72%),
  radial-gradient(ellipse 9% 6% at 66% 62%, #e2b090 70%, transparent 72%),
  linear-gradient(180deg, transparent 0 52%, #6fb3b0 52% 80%, #e9e4d8 80%) ,
  repeating-linear-gradient(90deg, #f0ece2 0 18%, #ddd7c9 18% 20%),
  #efeadf; }

/* the salon */
.salon { display: grid; grid-template-columns: 1.1fr 1.5fr 1fr; grid-template-areas: "a b d" "a c d"; gap: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 64px); align-items: center;
  padding: clamp(40px, 6vw, 88px); background: radial-gradient(90% 70% at 50% 20%, #5d2a2a, #3f1a1c 70%); border-radius: 4px; }
.h-0 { grid-area: a; } .h-1 { grid-area: b; } .h-2 { grid-area: c; } .h-3 { grid-area: d; }
.hang { margin: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.frame { display: block; width: 100%; padding: clamp(8px, 1vw, 14px); border: 0; cursor: zoom-in;
  background: linear-gradient(135deg, #c9a45c, #7d5a22 45%, #d8b56e 70%, #6e4d1c);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.25), 0 22px 36px rgba(0,0,0,.45), 0 4px 8px rgba(0,0,0,.3); transition: translate .4s; }
.frame .paint { box-shadow: inset 0 0 0 4px #efe6d2, inset 0 0 12px rgba(0,0,0,.35); }
.frame:hover { translate: 0 -3px; }
.museum { justify-self: start; padding: 10px 12px; background: #f6f2ea; color: #222; font: 400 11px/1.45 var(--read); text-transform: none; max-width: 200px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.museum .m-artist { font-weight: 600; } .museum .m-med, .museum .m-where { color: #6d675e; }
.museum .m-note { margin-top: 6px; font-style: italic; }
.zoom { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 5vmin; background: rgba(12, 10, 9, .92); cursor: zoom-out; }
.zoom[hidden] { display: none; }
.z-in { display: grid; grid-template-columns: auto 220px; gap: 32px; align-items: end; max-width: 100%; animation: zin .4s cubic-bezier(.2,.8,.2,1); }
.z-in .paint { width: auto; height: min(80vh, 820px); max-width: 66vw; }
@keyframes zin { from { opacity: 0; scale: .96; } }

@media (max-width: 860px) {
  .stubs { padding-left: 50px; } .stub { width: 260px; margin-left: -40px; } .s-main { width: 190px; }
  .stub { -webkit-mask-position: top, bottom; }
  .salon { grid-template-columns: 1fr 1fr; grid-template-areas: "a d" "b b" "c c"; padding: 28px 20px; }
  .z-in { grid-template-columns: 1fr; } .z-in .paint { height: auto; width: 88vw; max-width: 88vw; }
}

/* stubs: the place each film was made, faint behind the type */
.stub[style*="--img"] .s-main { position: relative; isolation: isolate; }
.stub[style*="--img"] .s-main::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--img) center / cover; filter: grayscale(1) contrast(1.1);
  mix-blend-mode: multiply; opacity: .16; transition: opacity .45s; }
.stub[style*="--img"]:hover .s-main::before, .stub[style*="--img"]:focus-visible .s-main::before { opacity: .3; }
.s-where { font-size: 10px; margin-top: 6px; color: var(--pa); }

.photo-credits { margin-top: 28px; max-width: 70rem; font-size: 10.5px; line-height: 1.7; }
.photo-credits a { text-decoration: underline; text-underline-offset: .2em; }
