/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --bg: #181a10;          /* deep olive-black */
  --bg-deep: #0e0f09;
  --surface: rgba(24, 26, 16, .78);
  --fg: #efe7d4;          /* warm cream */
  --muted: #9b9a78;       /* olive grey */
  --line: rgba(239, 231, 212, .14);
  --olive: #8a8f45;
  --olive-dark: #3b3e1e;
  --accent: #e86a2c;      /* burnt orange */
  --teal: #3ba79c;
  --teal-dark: #1d5c56;
  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.77, 0, .18, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(16px, 3vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--fg); scrollbar-gutter: stable; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html.is-locked { overflow: hidden; }
body { font-family: var(--mono); font-size: 13px; line-height: 1.55; background: var(--bg); overflow-x: hidden; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
ol, ul { list-style: none; }
::selection { background: var(--teal); color: var(--fg); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.serif { font-family: var(--serif); }

/* ==========================================================================
   Text reveal helpers
   ========================================================================== */
.split .word { display: inline-block; white-space: nowrap; overflow: hidden; vertical-align: top; padding: 0 .14em .26em .06em; margin: 0 -.14em -.26em -.06em; }
.split .ch { display: inline-block; transform: translateY(108%) rotate(8deg); transform-origin: 0 100%; transition: transform 1.15s var(--ease-out); transition-delay: calc(var(--i) * 28ms + var(--d, 0ms)); }
.split.is-in .ch { transform: none; }

.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease-out), transform 1.3s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Loader
   ========================================================================== */
/* Top padding matches the masthead so the name sits exactly where the header's does.
   The orange is painted inset from the top and bottom edges, leaving dark strips there:
   iOS Safari tints its toolbars from the page edges, so they stay dark instead of turning orange. */
.loader { --edge-t: calc(env(safe-area-inset-top, 0px) + 10px); --edge-b: calc(env(safe-area-inset-bottom, 0px) + 10px); position: fixed; inset: 0; z-index: 95; background: var(--bg) linear-gradient(var(--accent), var(--accent)) 0 var(--edge-t) / 100% calc(100% - var(--edge-t) - var(--edge-b)) no-repeat; color: var(--bg); display: flex; flex-direction: column; justify-content: space-between; padding: 20px var(--pad) calc(var(--pad) + var(--edge-b)); }
.loader .label { color: var(--olive-dark); }
.loader__bar { background: var(--teal-dark) !important; height: 2px !important; }
.loader__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 24px; }
/* On narrow screens the label drops below the name rather than being squeezed */
.loader__top .label { white-space: nowrap; }
/* The name comes into focus on the loader; the header's copy is already settled underneath */
.loader .brand .ch { animation: focus-in .5s var(--ease-out) both; animation-delay: calc(var(--i) * 12ms + .025s); }
.loader .brand__ipa { animation: fade-in .4s ease .225s both; }
.loader .brand__ipa i { color: inherit; }
@keyframes focus-in { from { opacity: 0; filter: blur(10px); } }
@keyframes fade-in { from { opacity: 0; } }
.loader__bottom { display: flex; flex-direction: column; gap: 2vh; }
.loader__bar { height: 1px; background: currentColor; transform-origin: left; transform: scaleX(var(--p, 0)); }
.loader__count { font-family: var(--serif); font-weight: 200; font-size: clamp(96px, 24vw, 380px); line-height: .78; letter-spacing: -.05em; align-self: flex-end; font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 144, "SOFT" 100; }

/* ==========================================================================
   Masthead + menu
   ========================================================================== */
/* Solid background, not a gradient: iOS Safari extends a fixed header's solid colour into its
   see-through status bar; otherwise content scrolling under it shows through. The fade sits below. */
.masthead { position: fixed; inset: 0 0 auto 0; z-index: 46; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 20px var(--pad); color: var(--fg); background-color: var(--bg); pointer-events: none; transition: color .5s ease, background-color .5s ease; }
.masthead::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 30px; background: linear-gradient(var(--bg), transparent); pointer-events: none; transition: opacity .5s ease; }
/* iOS Safari draws page content under its see-through status bar, above the top edge of the
   viewport where a fixed header can't reach. This block reaches up from the header to cover it. */
.masthead::after { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 200px; background: var(--bg); pointer-events: none; transition: opacity .5s ease; }
.menu-open .masthead { color: var(--bg); background-color: transparent; }
.menu-open .masthead::before, .menu-open .masthead::after { opacity: 0; }
.masthead > * { pointer-events: auto; }
.brand { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1; padding: 0 .1em .1em 0; display: inline-flex; align-items: baseline; }
.brand .ch { display: inline-block; }
/* Dictionary-style pronunciation after the name */
.brand__ipa { margin-left: 14px; font-family: var(--mono); font-style: normal; font-size: 12px; letter-spacing: .02em; white-space: nowrap; opacity: .55; }
.brand__ipa i { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--accent); }
.menu-open .brand__ipa i { color: inherit; }
/* Name + IPA need ~335px; below this the burger wouldn't fit next to them */
@media (max-width: 393px) { .brand__ipa { display: none; } }

.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.nav a { position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav sup { font-size: 8px; margin-left: 3px; color: var(--teal); }

/* Burger: 32px hit area, vertically centred on the IPA text (measured centre ~17.5px below the masthead's top padding) */
.menu-btn { display: none; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; margin: 1.5px -5px 0 0; }
.menu-btn__icon { position: relative; width: 22px; height: 8px; }
.menu-btn__icon::before, .menu-btn__icon::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .6s var(--ease); }
.menu-btn__icon::before { top: 0; }
.menu-btn__icon::after { bottom: 0; }
.menu-open .menu-btn__icon::before { transform: translateY(3.25px) rotate(45deg); }
.menu-open .menu-btn__icon::after { transform: translateY(-3.25px) rotate(-45deg); }
.masthead.is-compact .nav { display: none; }
.masthead.is-compact .menu-btn { display: inline-flex; }
/* No photos yet: nothing to navigate to */
.masthead.is-empty .menu-btn { display: none; }

.menu { position: fixed; inset: 0; z-index: 45; background: var(--accent); color: var(--bg); padding: 96px var(--pad) var(--pad); display: flex; flex-direction: column; justify-content: flex-end; overflow-y: auto; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .9s var(--ease), visibility 0s .9s; }
.menu-open .menu { clip-path: inset(0); visibility: visible; transition-delay: 0s; }
.menu a { display: flex; align-items: baseline; gap: .35em; overflow: hidden; padding: 0 .15em .2em 0; margin-bottom: -.2em; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 9vw, 110px); line-height: 1.02; letter-spacing: -.03em; }
.menu a > span { display: block; transform: translateY(110%); transition: transform .8s var(--ease-out); }
.menu a sup { font-family: var(--mono); font-size: 12px; letter-spacing: 0; opacity: .5; }
.menu a:hover em { font-style: italic; color: var(--fg); }
.menu-open .menu a > span { transform: none; transition-delay: calc(.3s + var(--i) * 60ms); }

/* ==========================================================================
   Home
   ========================================================================== */
.hero { position: relative; min-height: 100svh; padding: 120px var(--pad) var(--pad); display: flex; flex-direction: column; justify-content: flex-end; }
.hero__kicker { margin-bottom: 3vh; font-size: 13.2px; color: var(--teal); }
.hero__floats { position: absolute; inset: 0; pointer-events: none; }
.float { position: absolute; display: block; pointer-events: auto; overflow: hidden; aspect-ratio: var(--r); background: var(--c); clip-path: inset(100% 0 0 0); transition: clip-path 1.7s var(--ease) var(--d); will-change: transform; }
.float img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); transition: transform 2.4s var(--ease-out) var(--d); }
.hero__floats.is-in .float { clip-path: inset(0 0 0 0); }
.hero__floats.is-in .float img { transform: none; }
.float:hover img { transform: scale(1.06); transition-delay: 0s; }
.float--0 { --d: .15s; right: 9vw; top: 14vh; width: clamp(160px, 21vw, 390px); }
.float--1 { --d: .35s; right: 34vw; top: 26vh; width: clamp(110px, 12.5vw, 240px); }
.float--2 { --d: .55s; right: 3vw; top: 50vh; width: clamp(140px, 15vw, 290px); }
.hero__kicker, .hero__title, .hero__foot { position: relative; z-index: 1; }
.hero__title { color: var(--fg); }
/* "Coming into focus": letters start blurred and overexposed, then settle */
.hero__title .word { overflow: visible; }
.hero__title.split .ch { transform: none; opacity: 0; filter: blur(22px) brightness(2.2); transition: opacity 1.4s ease, filter 2s var(--ease-out); transition-delay: calc(var(--i) * 70ms + 150ms); }
.hero__title.split.is-in .ch { opacity: 1; filter: blur(0) brightness(1); }
.hero__title { font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 18.5vw, 340px); line-height: .86; letter-spacing: -.04em; margin: 0 0 .22em -.05em; font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 300; }
.hero__foot { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding-top: 18px; border-top: 1px solid var(--line); }
.hero__intro { max-width: 46ch; color: var(--muted); }
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.hero__scroll i { position: relative; width: 1px; height: 52px; overflow: hidden; background: var(--line); }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }

.strip { position: relative; padding: 12vh 0 14vh; overflow: hidden; }
.strip__track { display: flex; align-items: center; width: max-content; animation: marquee 90s linear infinite; }
.strip:hover .strip__track { animation-play-state: paused; }
.strip__item { flex: none; height: calc(var(--h) * clamp(170px, 28vw, 380px)); aspect-ratio: var(--r); margin-right: clamp(18px, 3.5vw, 56px); transform: translateY(var(--y)); overflow: hidden; background: var(--c); }
.strip__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .7s ease; }
.strip__item:hover img { transform: scale(1.08); }
.strip:hover .strip__item:not(:hover) img { filter: grayscale(1) brightness(.55); }
@keyframes marquee { to { transform: translateX(-50%); } }

.index { padding: 4vh var(--pad) 10vh; }
.index__head { display: flex; justify-content: space-between; padding-bottom: 14px; }
.index__list li { position: relative; }
.idx-row { position: relative; display: grid; grid-template-columns: clamp(2.5rem, 6vw, 5rem) auto minmax(0, 1fr) auto 2.5rem; align-items: center; gap: 16px; padding: 2.2vh 0 2vh; transition: padding .8s var(--ease); }
.idx-row::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--fg); opacity: .2; transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) var(--d, 0ms); }
.is-in > .idx-row::before { transform: scaleX(1); }
.idx-row:hover { padding-left: 2.5vw; }
.idx-row__no { color: var(--muted); }
.idx-row__title { position: relative; display: block; overflow: hidden; padding: 0 .25em .22em 0; margin: 0 -.25em -.22em 0; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 7.5vw, 128px); line-height: 1.04; letter-spacing: -.035em; }
.idx-row__title > span { display: block; white-space: nowrap; transition: transform .85s var(--ease); }
.idx-row__title > span + span { position: absolute; inset: 0; padding-right: .1em; transform: translateY(105%); font-style: italic; color: var(--hl); }
.index__list li:nth-child(3n+1) { --hl: var(--accent); }
.index__list li:nth-child(3n+2) { --hl: var(--teal); }
.index__list li:nth-child(3n) { --hl: var(--olive); }
.idx-row:hover .idx-row__title > span:first-child { transform: translateY(-105%); }
.idx-row:hover .idx-row__title > span + span { transform: none; }
.idx-row__meta { text-align: right; }
.idx-row__arrow { font-size: 22px; justify-self: end; transform: rotate(-45deg); transition: transform .8s var(--ease); }
.idx-row:hover .idx-row__arrow { transform: none; color: var(--hl); }
.idx-row:hover .idx-row__no { color: var(--hl); }
.idx-row__thumb { display: none; }

/* Hover strip: thumbnails rise into the empty space between title and meta */
.idx-row__peek { display: flex; justify-content: flex-end; align-items: center; gap: clamp(6px, .8vw, 12px); min-width: 0; overflow: hidden; padding: 0 2vw; }
.idx-row__peek img { flex: none; height: clamp(52px, 6.5vw, 112px); aspect-ratio: var(--r); object-fit: cover; background: var(--c); clip-path: inset(100% 0 0 0); transform: translateY(30%) rotate(calc((var(--j) - 2) * 2deg)); transition: clip-path .5s var(--ease), transform .6s var(--ease); }
.idx-row:hover .idx-row__peek img { clip-path: inset(0 0 0 0); transform: rotate(calc((var(--j) - 2) * 2deg)); transition-duration: .9s, 1.1s; transition-delay: calc(var(--j) * 60ms); }
.idx-row__peek img:nth-child(even) { margin-top: 1.4vw; }

/* ==========================================================================
   Category
   ========================================================================== */
.chero { padding: 140px var(--pad) 10vh; }
.chero__crumb { display: flex; gap: 10px; }
.chero__crumb a:hover { color: var(--fg); }
.chero__title { font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 13.5vw, 240px); line-height: .88; letter-spacing: -.04em; margin: 4vh 0 5vh -.05em; font-variation-settings: "opsz" 144, "SOFT" 100; }
.chero__title .word:nth-child(even) { font-style: italic; color: var(--accent); }
.chero__crumb span:last-child { color: var(--teal); }
.chero__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 36px; padding-top: 16px; border-top: 1px solid var(--line); }
.chero__series { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; }
.chero__series button { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg); position: relative; padding: 2px 0; }
.chero__series button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.chero__series button:hover::after { transform: scaleX(1); transform-origin: left; }

.grid { position: relative; margin: 0 var(--pad); transform-origin: 50% 50%; will-change: transform; }
.g-item { position: absolute; left: 0; top: 0; display: block; transition: opacity .7s ease; }
.grid:has(.g-item:hover) .g-item:not(:hover) { opacity: .32; }
.g-item__par { will-change: transform; }
.g-item__tilt { transition: transform .7s var(--ease-out); }
.g-item__frame { position: relative; overflow: hidden; aspect-ratio: var(--r); background: var(--c); clip-path: inset(100% 0 0 0); transition: clip-path .95s var(--ease) var(--d, 0ms); }
.g-item.is-in .g-item__frame { clip-path: inset(0 0 0 0); }
.g-item.is-hidden .g-item__frame { visibility: hidden; }
.g-item__zoom { width: 100%; height: 100%; transition: transform 1.3s var(--ease-out); }
.g-item:hover .g-item__zoom { transform: scale(1.06); }
.g-item__frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.2); transition: transform 1.3s var(--ease-out) var(--d, 0ms), opacity .45s ease; }
.g-item.is-in .g-item__frame img { transform: none; }
.g-item__frame img.is-loaded { opacity: 1; }
.g-item__cap { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); overflow: hidden; }
.g-item__cap span { display: block; transform: translateY(110%); transition: transform .8s var(--ease-out) calc(var(--d, 0ms) + .25s); }
.g-item__cap span:first-child { color: var(--accent); }
.g-item.is-in .g-item__cap span { transform: none; }

.g-head { position: absolute; left: 0; top: 0; width: 100%; display: flex; align-items: baseline; gap: 2.4vw; padding-bottom: 14px; }
.g-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s; }
.g-head.is-right { flex-direction: row-reverse; }
.g-head.is-right::after { transform-origin: right; }
.g-head.is-in::after { transform: scaleX(1); }
.g-head h2 { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(36px, 6vw, 100px); line-height: 1; letter-spacing: -.025em; }
.g-head h2 a:hover { color: var(--accent); }
.g-head > .label:first-child { color: var(--teal); }
.g-head__count { margin-left: auto; }
.g-head.is-right .g-head__count { margin-left: 0; margin-right: auto; }

.next { position: relative; display: block; margin: 18vh var(--pad) 0; padding: 9vh 0 10vh; text-align: center; overflow: hidden; border-top: 1px solid var(--line); }
.next__label { position: relative; z-index: 1; }
.next__title { position: relative; z-index: 1; display: block; margin-top: 2vh; font-family: var(--serif); font-size: clamp(56px, 14vw, 250px); line-height: .9; letter-spacing: -.045em; color: var(--fg); font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 250; transition: font-variation-settings 1s var(--ease), letter-spacing 1s var(--ease), color .8s ease; }
.next:hover .next__title { color: var(--accent); letter-spacing: 0; text-shadow: 0 0 60px rgba(232, 106, 44, .45); }
.next__img { position: absolute; left: 50%; top: 50%; width: min(42vw, 520px); aspect-ratio: 4 / 3; object-fit: cover; transform: translate(-50%, -50%) scale(1.25) rotate(-4deg); clip-path: inset(50% 50% 50% 50%); transition: clip-path 1.1s var(--ease), transform 1.6s var(--ease-out); }
.next:hover .next__img { clip-path: inset(0 0 0 0); transform: translate(-50%, -50%) rotate(-2deg); }

/* ==========================================================================
   Footer
   ========================================================================== */
.foot { padding: 10vh var(--pad) var(--pad); }
.foot__big { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 10vw, 180px); line-height: .92; letter-spacing: -.04em; }
.foot__big .word:last-child { font-style: italic; color: var(--accent); }
.foot__big .word:nth-last-child(2) { color: var(--teal); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.foot__big + .foot__row { margin-top: 8vh; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__row a:hover, .foot__row button:hover { color: var(--fg); }
.foot__row button { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.empty { min-height: 100svh; display: grid; place-content: center; gap: 20px; padding: 120px var(--pad); max-width: 720px; margin: 0 auto; }
.empty h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 7vw, 88px); line-height: .95; letter-spacing: -.03em; }
.empty h1 em { color: var(--accent); }
.empty p { color: var(--muted); }
.empty code { color: var(--teal); background: var(--olive-dark); padding: 2px 6px; }

/* No photos yet: RAW previews render in the hero */
.preview { position: absolute; inset: -12%; animation: render var(--t, 10s) var(--ease) infinite; animation-delay: var(--dd, 0s); }
.preview--0 { --t: 10s; background: radial-gradient(45% 40% at 68% 38%, #f3c27a, transparent 70%), radial-gradient(70% 55% at 30% 75%, var(--teal-dark), transparent 75%), linear-gradient(170deg, var(--accent), var(--olive-dark) 70%); }
.preview--1 { --t: 12s; --dd: -4s; background: radial-gradient(50% 35% at 50% 30%, var(--fg), transparent 70%), radial-gradient(60% 60% at 40% 80%, var(--olive), transparent 75%), linear-gradient(200deg, var(--teal), var(--bg-deep) 80%); }
.preview--2 { --t: 14s; --dd: -9s; background: radial-gradient(40% 50% at 30% 45%, var(--accent), transparent 70%), radial-gradient(45% 45% at 75% 60%, #f0d58c, transparent 70%), linear-gradient(140deg, var(--olive-dark), var(--bg-deep)); }
@keyframes render {
  0%, 100% { opacity: .1; filter: blur(28px) brightness(2.6) saturate(0); transform: scale(1.15); }
  45%, 80% { opacity: 1; filter: none; transform: none; }
}
.preview__no { position: absolute; left: 8px; bottom: 8px; padding: 2px 6px; font-size: 9px; white-space: nowrap; color: var(--fg); background: rgba(14, 15, 9, .55); backdrop-filter: blur(6px); }
/* Phones: the previews become a cluster in their own block above the text, filling the
   space without covering it. Percentages are of that block, which grows with the screen. */
@media (max-width: 600px) {
  .hero--wip { padding-top: 84px; }
  .hero--wip .hero__floats { position: relative; inset: auto; flex: 1; min-height: 64vw; margin-bottom: 4vh; }
  .hero--wip .float--0 { left: auto; right: 0; top: 0; width: 56%; }
  .hero--wip .float--1 { left: 0; right: auto; top: 30%; width: 34%; }
  .hero--wip .float--2 { left: auto; right: 5%; top: 52%; width: 42%; }
}

.wip { display: grid; gap: 14px; }
.wip__line { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 4vw, 60px); line-height: 1; letter-spacing: -.02em; }
.wip__line em { color: var(--accent); }
.wip__dev { font-size: 11px; color: var(--teal); }
.wip__dev code { background: var(--olive-dark); padding: 1px 5px; }
.wip__status { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); }
.wip__status b { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: blink 2.4s ease-in-out infinite; }
.wip__updated { color: var(--muted); }
@keyframes blink { 50% { opacity: .25; box-shadow: none; } }
/* ==========================================================================
   Curtain (page transitions)
   ========================================================================== */
/* Only in the layout while a transition runs, so iOS Safari never sees it when picking a toolbar colour */
.curtain { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: none; }
.curtain.is-active { display: block; }
.curtain__layer { position: absolute; inset: 0; transform: scaleY(0); transform-origin: 50% 100%; }
/* Full-screen colour layers are painted as gradients: iOS Safari tints its toolbars from the
   background-color of fixed elements at the screen edges, and would otherwise turn them orange. */
.curtain__layer--color { background: linear-gradient(var(--accent), var(--accent)); }
.curtain__layer--paper { background: linear-gradient(var(--teal-dark), var(--teal-dark)); display: grid; place-items: center; overflow: hidden; }
.curtain__label { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(44px, 9vw, 140px); letter-spacing: -.03em; color: var(--fg); }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lb { position: fixed; inset: 0; z-index: 80; visibility: hidden; pointer-events: none; --c: #222; --panel: min(420px, 32vw); transition: visibility 0s 1s; }
.lb.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.lb__bg { position: absolute; inset: 0; background: color-mix(in oklab, var(--c) 18%, var(--bg-deep)); opacity: 0; transition: opacity .7s ease, background-color 1.2s ease; }
.lb.is-open .lb__bg { opacity: 1; }
.lb__stage { position: absolute; inset: 0; touch-action: none; }
.lb__img { position: absolute; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .6); background: var(--c); }

.lb__top, .lb__caption, .lb__nav, .lb__hint { opacity: 0; transition: opacity .5s ease; }
.lb.is-open .lb__top, .lb.is-open .lb__caption, .lb.is-open .lb__nav, .lb.is-open .lb__hint { opacity: 1; transition: opacity .8s ease .45s; }

.lb__top { position: absolute; z-index: 3; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 16px var(--pad); pointer-events: none; }
.lb__top > * { pointer-events: auto; }
.lb__count { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.lb__idx { display: inline-block; overflow: hidden; height: 1.55em; }
.lb__idx span { display: block; }
.lb__sep { width: 28px; height: 1px; background: currentColor; opacity: .4; }
.lb__actions { display: flex; gap: 10px; }
.lb__btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .22); background: rgba(0, 0, 0, .18); backdrop-filter: blur(10px); transition: background .35s ease, color .35s ease, border-color .35s ease, transform .6s var(--ease-out); }
.lb__btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.lb__btn[aria-pressed="true"] { background: var(--teal); color: var(--fg); border-color: var(--teal); }
.lb__close:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.lb__close:hover { transform: rotate(90deg); }
.lb__info:hover { transform: scale(1.08); }

.lb__nav { position: absolute; z-index: 2; top: 76px; bottom: 100px; width: 20%; display: flex; align-items: center; padding: 0 var(--pad); font-size: 22px; transition: right .9s var(--ease); }
.lb__prev { left: 0; justify-content: flex-start; }
.lb__next { right: 0; justify-content: flex-end; }
.lb.info-open .lb__next { right: var(--panel); }
.lb__nav span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .22); transition: background .35s, color .35s, transform .6s var(--ease-out); }
.lb__nav:hover span { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.lb__sep { background: var(--accent) !important; opacity: 1 !important; }
.lb__prev:hover span { transform: translateX(-6px); }
.lb__next:hover span { transform: translateX(6px); }

.lb__caption { position: absolute; z-index: 2; left: var(--pad); bottom: 24px; max-width: min(60vw, 720px); pointer-events: none; }
.lb__caption .line { display: block; overflow: hidden; padding: 0 .2em .22em 0; margin-bottom: -.22em; }
.lb__caption .line > span { display: block; animation: riseIn 1s var(--ease-out) both; animation-delay: var(--d, 0ms); }
.lb__title { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(24px, 2.8vw, 44px); line-height: 1.08; letter-spacing: -.015em; }
@keyframes riseIn { from { transform: translateY(105%); } }

.lb__hint { position: absolute; right: var(--pad); bottom: 28px; transition: right .9s var(--ease); }
.lb.info-open .lb__hint { opacity: 0; }

.lb__panel { position: absolute; z-index: 2; top: 0; right: 0; bottom: 0; width: var(--panel); padding: 92px 32px 40px; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); backdrop-filter: blur(28px) saturate(1.3); border-left: 1px solid rgba(255, 255, 255, .08); transform: translateX(101%); transition: transform 1s var(--ease), opacity .6s ease; }
.lb.info-open .lb__panel { transform: none; }
/* Closing the viewer: the panel drifts out and fades in step with the backdrop */
.lb.info-open:not(.is-open) .lb__panel { transform: translateX(60px); opacity: 0; transition: transform .7s var(--ease-out), opacity .5s ease; }
.lb__panel > * { animation: rowIn .9s var(--ease-out) both; animation-delay: calc(.12s + var(--i, 0) * 55ms); }
@keyframes rowIn { from { opacity: 0; transform: translateY(22px); } }
.lb__panel-title { font-family: var(--serif); font-weight: 300; font-size: 34px; line-height: 1.05; letter-spacing: -.02em; margin: 10px 0 6px; }
.lb__panel-desc { color: var(--muted); margin-bottom: 8px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 26px 0; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1); }
.spec { display: flex; flex-direction: column; gap: 2px; padding: 16px 16px 14px; background: rgba(14, 15, 9, .88); animation: rowIn .9s var(--ease-out) both; animation-delay: calc(.2s + var(--j) * 70ms); }
.spec__v { font-family: var(--serif); font-size: 30px; font-weight: 300; line-height: 1.1; letter-spacing: -.01em; font-variation-settings: "opsz" 72, "SOFT" 100; }
.spec__k { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.spec:first-child .spec__v { color: var(--accent); }
.lb__noexif { margin: 26px 0; padding: 16px; border: 1px dashed rgba(255, 255, 255, .18); color: var(--muted); }
.hist { margin: 0 0 22px; }
.hist canvas { display: block; width: 100%; height: 92px; }
.hist figcaption { margin-top: 8px; }
.rows .row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .08); animation: rowIn .9s var(--ease-out) both; animation-delay: calc(.35s + var(--j) * 45ms); }
.rows dt { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); flex: none; }
.rows dd { text-align: right; }
.rows dd a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); }

/* ==========================================================================
   Cursor + grain
   ========================================================================== */
.cursor { position: fixed; left: 0; top: 0; z-index: 100; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
.cursor.is-visible { opacity: 1; }
.cursor span { position: absolute; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); color: var(--bg); font-weight: 500; transform: translate(-50%, -50%); display: grid; place-items: center; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; overflow: hidden; transition: width .55s var(--ease-out), height .55s var(--ease-out); }
.cursor.is-active span { width: 86px; height: 86px; }
.has-cursor [data-cursor], .has-cursor [data-cursor] * { cursor: none; }

.grain { position: fixed; inset: -120px; z-index: 50; pointer-events: none; opacity: .065; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain .9s steps(5) infinite; }
@keyframes grain { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-40px, 24px); } 40% { transform: translate(28px, -48px); } 60% { transform: translate(-16px, 40px); } 80% { transform: translate(44px, 12px); } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .masthead .nav { display: none; }
  /* The header scrolls away with the page; only the burger stays, pinned where it sat in the header */
  .masthead { position: absolute; gap: 12px; background-color: transparent; }
  .masthead::before { display: none; }
  .masthead .menu-btn { display: inline-flex; position: fixed; top: 21.5px; right: calc(var(--pad) - 5px); margin: 0; transition: color .3s ease; }
  /* Once scrolling starts, an orange disc grows in behind it so it stays readable over photos */
  .menu-btn::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .45s var(--ease); }
  .is-scrolled .menu-btn { color: var(--bg); }
  .is-scrolled .menu-btn::before { transform: scale(1); }
  .menu-open .menu-btn::before { transform: scale(0); }
  .lb { --panel: 100%; }
  .lb__panel { top: auto; left: 0; width: auto; max-height: 64vh; padding: 28px var(--pad) 40px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); border-radius: 20px 20px 0 0; transform: translateY(101%); }
  .lb.info-open:not(.is-open) .lb__panel { transform: translateY(60px); }
  .lb.info-open .lb__next { right: 0; }
  .lb__nav { top: auto; bottom: 16px; width: auto; padding: 0; }
  .lb__prev { left: auto; right: calc(var(--pad) + 56px); }
  .lb__next { right: var(--pad); }
  .lb__caption { bottom: 20px; max-width: calc(100% - 160px); }
  .lb__hint { display: none; }
  .hero__foot { grid-template-columns: 1fr; }
  .chero__series { margin-left: 0; }
}

@media (hover: none) {
  .idx-row { grid-template-columns: 2.4rem 1fr 76px; grid-template-rows: auto auto; row-gap: 4px; }
  .idx-row:hover { padding-left: 0; }
  .idx-row__no { grid-row: 1 / 3; align-self: start; padding-top: .6em; }
  .idx-row__title { grid-column: 2; }
  .idx-row__meta { grid-column: 2; grid-row: 2; text-align: left; }
  .idx-row__arrow { display: none; }
  .idx-row__thumb { display: block; grid-column: 3; grid-row: 1 / 3; width: 76px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--c); }
  .idx-row__peek { display: none; }
  .grid:has(.g-item:hover) .g-item:not(:hover) { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .grain { display: none; }
}
