/* =========================================================
   LEE — fotosbylee · darkroom × contemporary gallery
   ========================================================= */
:root {
  --carbon: #141311;
  --carbon-2: #1c1a17;
  --carbon-3: #26231f;
  --parch: #e9e2d3;        /* matte parchment */
  --bone: #f3ede1;         /* bone */
  --raw: #a59b88;          /* raw linen */
  --raw-dk: #6f675a;
  --ink: #1a1815;
  --safelight: #a3301f;    /* darkroom safelight — used sparingly */
  --edge: #d9a24a;         /* film edge-print amber */
  --base: #1d1712;         /* negative film base */

  --f-display: 'Instrument Serif', 'Times New Roman', serif;
  --f-body: 'Newsreader', Georgia, serif;
  --f-type: 'Courier Prime', 'Courier New', monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--carbon); color: var(--parch);
  font-family: var(--f-body); font-size: 18px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--safelight); color: var(--bone); }
:focus-visible { outline: 1px dashed var(--edge); outline-offset: 4px; }

.wrap { padding-inline: var(--gutter); max-width: 1680px; margin-inline: auto; }
.t-label {
  font-family: var(--f-type); font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; line-height: 1.5; margin: 0;
}
.t-type { font-family: var(--f-type); font-size: 14px; letter-spacing: .02em; line-height: 1.6; margin: 0; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--safelight); margin-right: 10px; vertical-align: 1px; box-shadow: 0 0 12px var(--safelight); }
.u-link { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.u-link:hover { background-size: 100% 1px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10001; background: var(--bone); color: var(--ink); padding: 8px 14px; font-family: var(--f-type); }
.skip:focus { left: 8px; }

/* ---------- Grain (whole screen) ---------- */
.grain {
  position: fixed; inset: -100%; z-index: 9000; pointer-events: none;
  background-image: 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='.9' 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 1.2 -.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .16; mix-blend-mode: overlay;
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 17% { transform: translate(-3%, 2%); } 33% { transform: translate(2%, -4%); }
  50% { transform: translate(-4%, -1%); } 67% { transform: translate(3%, 3%); } 83% { transform: translate(-1%, 4%); } 100% { transform: translate(0, 0); }
}

/* ---------- Splash (film leader) ---------- */
.splash { display: none; }
html.js .splash {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 9500;
  background: var(--carbon); color: var(--parch);
  animation: splash-safety .01s 3.4s forwards;   /* CSS safety net */
}
html.no-splash .splash, html.js .splash.is-gone { display: none; }
@keyframes splash-safety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.splash__leader { position: relative; width: min(56vmin, 420px); aspect-ratio: 1; display: grid; place-items: center; }
.splash__sweep { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(233,226,211,.16) 0turn, rgba(233,226,211,.16) var(--a, 0turn), transparent var(--a, 0turn));
  animation: sweep .5s linear infinite; }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0turn; }
@keyframes sweep { from { --a: 0turn; } to { --a: 1turn; } }
.splash__ring { position: absolute; border-radius: 50%; border: 1px solid rgba(233,226,211,.55); }
.splash__ring--a { inset: 0; } .splash__ring--b { inset: 12%; border-color: rgba(233,226,211,.3); }
.splash__cross { position: absolute; inset: -8% 50% -8% auto; width: 1px; background: rgba(233,226,211,.35); }
.splash__cross::after { content: ''; position: absolute; left: calc(-50vmin); width: 100vmin; top: 50%; height: 1px; background: rgba(233,226,211,.35); max-width: none; }
.splash__num { position: relative; font-family: var(--f-display); font-size: min(34vmin, 260px); line-height: 1; }
.splash__meta { position: absolute; bottom: 32px; left: 0; right: 0; text-align: center; margin: 0;
  font-family: var(--f-type); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--raw); }
.splash.is-out { animation: splash-out .8s var(--ease-io) forwards; }
@keyframes splash-out { 0% { clip-path: inset(0 0 0 0); filter: brightness(1); } 30% { filter: brightness(2.2); } 100% { clip-path: inset(0 0 100% 0); filter: brightness(1); } }

/* ---------- Custom cursor ---------- */
.cursor { display: none; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 9800; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; will-change: transform; }
/* Red "REC" cursor. No blend modes: every red stroke carries a light inner line and a
   dark outer halo, so it reads on parchment, on black and on busy photos alike. */
.cursor { --rec: #ff2b1c; --halo: drop-shadow(0 0 1px rgba(0,0,0,.9)) drop-shadow(0 0 3px rgba(0,0,0,.45)); }
.cursor__dot {
  width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--rec);
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.95), 0 0 0 3px rgba(0,0,0,.55), 0 0 12px 2px rgba(255,43,28,.55);
  animation: rec-blink 1.2s steps(1) infinite; transition: opacity .2s;
}
@keyframes rec-blink { 0%, 62% { opacity: 1; } 63%, 100% { opacity: .25; } }
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1.5px solid var(--rec); border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); filter: var(--halo);
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), border-radius .45s var(--ease), border-color .3s, background-color .3s, box-shadow .3s;
}
.cursor__label { font-family: var(--f-type); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #fff;
  text-shadow: 0 0 2px #000, 0 0 6px rgba(0,0,0,.8); opacity: 0; transition: opacity .25s; white-space: nowrap; }
.cursor.is-down .cursor__ring { transform: scale(.82); }
.cursor.is-hidden { opacity: 0; }
/* link: red target */
.cursor--link .cursor__ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(255,43,28,.16); border-width: 2px; }
/* viewfinder over photos: red corner brackets + REC tally */
.cursor--view .cursor__ring, .cursor--focus .cursor__ring {
  width: 132px; height: 88px; margin: -44px 0 0 -66px; border-radius: 0; border-color: transparent; box-shadow: none;
  background:
    linear-gradient(var(--rec), var(--rec)) 0 0 / 18px 2px no-repeat, linear-gradient(var(--rec), var(--rec)) 0 0 / 2px 18px no-repeat,
    linear-gradient(var(--rec), var(--rec)) 100% 0 / 18px 2px no-repeat, linear-gradient(var(--rec), var(--rec)) 100% 0 / 2px 18px no-repeat,
    linear-gradient(var(--rec), var(--rec)) 0 100% / 18px 2px no-repeat, linear-gradient(var(--rec), var(--rec)) 0 100% / 2px 18px no-repeat,
    linear-gradient(var(--rec), var(--rec)) 100% 100% / 18px 2px no-repeat, linear-gradient(var(--rec), var(--rec)) 100% 100% / 2px 18px no-repeat;
}
.cursor--view .cursor__ring::before, .cursor--focus .cursor__ring::before {
  content: 'REC'; position: absolute; top: 7px; right: 9px; padding-left: 11px;
  font-family: var(--f-type); font-size: 9px; letter-spacing: .14em; color: #fff; text-shadow: 0 0 2px #000, 0 0 5px #000;
  background: radial-gradient(circle, var(--rec) 3.5px, transparent 4px) 0 50% / 8px 8px no-repeat;
  animation: rec-blink 1.2s steps(1) infinite;
}
.cursor--view .cursor__dot, .cursor--focus .cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; }
.cursor--focus .cursor__ring { width: 92px; height: 62px; margin: -31px 0 0 -46px; }
.cursor--view .cursor__label, .cursor--focus .cursor__label, .cursor--drag .cursor__label, .cursor--write .cursor__label { opacity: 1; }
.cursor--drag .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; border-style: dashed; }
.cursor--write .cursor__ring { width: 110px; height: 110px; margin: -55px 0 0 -55px; background: var(--rec); border-color: #fff; }
.cursor--write .cursor__label { text-shadow: none; }
.cursor--write .cursor__dot { opacity: 0; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--gutter); color: var(--bone); mix-blend-mode: difference;
}
.nav__brand { display: flex; align-items: baseline; gap: 12px; }
.nav__mark { font-family: var(--f-display); font-size: 30px; letter-spacing: .02em; line-height: 1; }
.nav__handle { font-family: var(--f-type); font-size: 11px; letter-spacing: .14em; opacity: .7; }
.nav__links { display: flex; gap: clamp(18px, 3vw, 44px); font-family: var(--f-type); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.nav__links a { position: relative; display: inline-flex; gap: 8px; padding: 6px 0; }
.nav__n { opacity: .5; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__right { display: flex; align-items: center; gap: 22px; }
.nav__status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-type); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.nav__status i { width: 7px; height: 7px; border-radius: 50%; background: #e0563f; animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.lang { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-type); font-size: 12px; letter-spacing: .12em; }
.lang__btn { opacity: .45; padding: 6px 2px; transition: opacity .3s; }
.lang__btn[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.lang__sep { opacity: .35; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #0c0b0a; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(1.12); will-change: transform; filter: contrast(1.08) brightness(.82); }
html.js .hero__img { animation: develop 2.6s var(--ease) both; animation-play-state: paused; }
html.is-ready .hero__img { animation-play-state: running; }
@keyframes develop {
  0% { filter: brightness(3.2) contrast(.35) blur(6px); transform: scale(1.22); }
  55% { filter: brightness(1.25) contrast(.85) blur(.5px); }
  100% { filter: contrast(1.08) brightness(.82) blur(0); transform: scale(1.12); }
}
.hero__media::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(10,9,8,.75) 100%), linear-gradient(180deg, rgba(10,9,8,.45) 0%, transparent 30%, transparent 45%, rgba(10,9,8,.92) 100%); }
.hero__leak { position: absolute; width: 60vmax; height: 60vmax; right: -22vmax; top: -18vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(214,94,46,.55), rgba(163,48,31,.25) 40%, transparent 70%);
  mix-blend-mode: screen; filter: blur(30px); opacity: .55; animation: leak 9s ease-in-out infinite alternate; z-index: 1; }
@keyframes leak { 0% { opacity: .25; transform: translate(0, 0) scale(1); } 60% { opacity: .6; } 100% { opacity: .38; transform: translate(-6vmax, 4vmax) scale(1.1); } }
.hero__scratch { position: absolute; top: 0; bottom: 0; left: 63%; width: 1px; background: rgba(243,237,225,.35); z-index: 1; animation: scratch 7s steps(1) infinite; }
@keyframes scratch { 0%, 100% { opacity: 0; } 12% { opacity: .9; left: 63%; } 14% { opacity: 0; } 51% { opacity: .6; left: 21%; } 52% { opacity: 0; } 77% { opacity: .5; left: 82%; } 78% { opacity: 0; } }

.crop { position: absolute; width: 22px; height: 22px; z-index: 2; opacity: .7; }
.crop::before, .crop::after { content: ''; position: absolute; background: var(--parch); }
.crop::before { left: 50%; top: 0; bottom: 0; width: 1px; } .crop::after { top: 50%; left: 0; right: 0; height: 1px; }
.crop--tl { top: calc(var(--nav-h) + 8px); left: var(--gutter); } .crop--tr { top: calc(var(--nav-h) + 8px); right: var(--gutter); }
.crop--bl { bottom: 22px; left: var(--gutter); } .crop--br { bottom: 22px; right: var(--gutter); }

.hero__edge { position: absolute; left: 10px; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); transform-origin: 50% 50%;
  margin: 0 0 0 10px; white-space: nowrap; font-family: var(--f-type); font-size: 11px; letter-spacing: .3em; color: var(--edge); opacity: .7; z-index: 2; }
.hero__top { position: absolute; top: calc(var(--nav-h) + 12px); left: calc(var(--gutter) + 40px); right: calc(var(--gutter) + 40px);
  display: flex; justify-content: space-between; gap: 16px; color: var(--raw); z-index: 2; }

.hero__body { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 3vw;
  padding: 0 var(--gutter) clamp(72px, 10vh, 120px); }
.hero__title { margin: 0; font-family: var(--f-display); font-weight: 400; color: var(--bone);
  font-size: clamp(7.5rem, 31vw, 34rem); line-height: .74; letter-spacing: -.045em; display: flex; overflow: hidden; padding-top: .06em; margin-bottom: -.06em; }
/* EVERSLEY: the word always fills (and never exceeds) its column. The h1 is a size container,
   so the letters scale with the column width (cqi) instead of the viewport. */
.hero__title { container-type: inline-size; width: 100%; font-size: clamp(3rem, 10vw, 12rem); }
.hero__char { display: inline-block; font-size: 1em; }
@supports (font-size: 1cqi) { .hero__char { font-size: 28cqi; } }
.hero__char:nth-child(2) { font-style: italic; letter-spacing: -.02em; }
html.js:not(.is-ready) .hero__char { transform: translateY(105%); }
html.js .hero__char { transition: transform 1.4s var(--ease); }
html.js .hero__char:nth-child(2) { transition-delay: .05s; } html.js .hero__char:nth-child(3) { transition-delay: .1s; }
html.js .hero__char:nth-child(4) { transition-delay: .15s; } html.js .hero__char:nth-child(5) { transition-delay: .2s; }
html.js .hero__char:nth-child(6) { transition-delay: .25s; } html.js .hero__char:nth-child(7) { transition-delay: .3s; }
html.js .hero__char:nth-child(8) { transition-delay: .35s; }
.hero__side { padding-bottom: 1.6vw; max-width: 460px; }
.hero__kicker { color: var(--raw); margin-bottom: 18px; min-height: 1.5em; }
.hero__line { font-family: var(--f-display); font-size: clamp(1.7rem, 2.6vw, 2.6rem); line-height: 1.08; margin: 0 0 28px; color: var(--bone); }
.hero__line em { color: var(--parch); opacity: .8; }
.hero__meta { margin: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 18px; border-top: 1px solid rgba(233,226,211,.22); padding-top: 14px; }
.hero__meta dt { font-family: var(--f-type); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--raw-dk); filter: brightness(1.4); }
.hero__meta dd { margin: 4px 0 0; font-family: var(--f-type); font-size: 12.5px; color: var(--parch); }
html.js .hero__side > * { transition: opacity 1s var(--ease), transform 1s var(--ease); }
html.js:not(.is-ready) .hero__side > * { opacity: 0; transform: translateY(18px); }
html.js .hero__line { transition-delay: .5s; } html.js .hero__meta { transition-delay: .7s; }

.hero__scroll { position: absolute; z-index: 2; bottom: 26px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 12px; color: var(--raw); }
.hero__lever { width: 34px; height: 1px; background: rgba(233,226,211,.3); position: relative; overflow: hidden; }
.hero__lever::after { content: ''; position: absolute; inset: 0; background: var(--parch); transform: translateX(-100%); animation: lever 2.2s var(--ease-io) infinite; }
@keyframes lever { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(110px, 18vh, 220px) var(--gutter); max-width: 1500px; margin: 0 auto; position: relative; }
.manifesto__kicker { color: var(--raw); margin-bottom: 36px; }
.manifesto__text { font-family: var(--f-display); font-size: clamp(2.3rem, 5.6vw, 6.2rem); line-height: 1.02; letter-spacing: -.015em; margin: 0; color: var(--bone); text-wrap: balance; }
.manifesto__text .w { transition: opacity .5s ease, color .5s ease; opacity: .14; }
.manifesto__text .w.is-lit { opacity: 1; }
.manifesto__text .w:nth-child(3n+2).is-lit { font-style: italic; }
.manifesto__note { margin: 44px 0 0 auto; max-width: 400px; color: var(--raw); }

/* ---------- Work / light table ---------- */
.work { position: relative; background: var(--parch); color: var(--ink); padding: clamp(90px, 14vh, 160px) 0 clamp(70px, 10vh, 120px); overflow: hidden; }
.work::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 60% at 50% 55%, rgba(255,252,244,.95), rgba(233,226,211,0) 70%); }
.work > * { position: relative; }
.folio { color: var(--raw-dk); display: flex; align-items: center; gap: 14px; }
.folio::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: .35; }
.work__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; align-items: end; }
.work__head .folio { grid-column: 1 / -1; margin-bottom: 26px; }
.work__title { grid-column: 1 / 9; margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(5rem, 15vw, 15rem); line-height: .8; letter-spacing: -.04em; }
.work__title em { color: var(--safelight); }
.work__aside { grid-column: 9 / -1; padding-bottom: 1.2vw; }
.work__sub { font-size: 19px; line-height: 1.45; margin: 0 0 14px; max-width: 34ch; }
.work__count { color: var(--raw-dk); }
.work__bar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 54px auto 26px; }
.work__hint { color: var(--raw-dk); }
.work__ctrl { display: flex; gap: 10px; }
.btn-ghost { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 16px; border: 1px solid currentColor; border-radius: 999px;
  font-family: var(--f-type); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; transition: background-color .35s, color .35s; }
.btn-ghost:hover { background: var(--ink); color: var(--parch); }
.contact .btn-ghost:hover { background: var(--bone); color: var(--ink); }
.btn-ghost--wide { min-width: 170px; }
.when-pos { display: none; }
.work.is-positive .when-pos { display: inline; } .work.is-positive .when-neg { display: none; }

.strip { position: relative; overflow-x: auto; overflow-y: hidden; padding: 6px 0; outline: none; touch-action: pan-y; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip:focus-visible { outline: 1px dashed var(--safelight); outline-offset: -2px; }
html.js .strip.is-live { overflow: hidden; cursor: grab; }
.strip__track { list-style: none; margin: 0; padding: 0 var(--gutter); display: flex; width: max-content; will-change: transform; user-select: none; -webkit-user-select: none; }
html.js .strip.is-live .strip__track { padding: 0; }

.frame { --h: clamp(210px, 40vh, 440px); position: relative; flex: none; background: var(--base); padding: 0 calc(var(--h) * .045);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
.frame__edge { height: calc(var(--h) * .14); display: flex; justify-content: space-between; align-items: center; padding: 0 6px;
  font-family: var(--f-type); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--edge); white-space: nowrap; overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='20'%3E%3Crect x='6' y='3' width='14' height='14' rx='2.4' fill='%23fbf7ee'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: auto 46%; position: relative; }
.frame__edge--top { background-position: 0 30%; align-items: flex-end; padding-bottom: 2px; }
.frame__edge--bot { background-position: 0 70%; align-items: flex-start; padding-top: 2px; }
.frame__edge span { background: var(--base); padding: 0 6px; opacity: .9; }
.frame__edge--top span { transform: translateY(2px); } .frame__edge--bot span { transform: translateY(-2px); }
.frame__edge span:last-child { font-size: 9.5px; }
.frame__open { display: block; position: relative; height: var(--h); aspect-ratio: var(--ar, 3 / 2); overflow: hidden; background: #000; border-radius: 3px; }
/* Session start: edge code printed in safelight red, plus a thin leader line before the frame */
.frame--start { margin-left: calc(var(--h) * .12); }
.frame--start::before { content: ''; position: absolute; left: calc(var(--h) * -.12); top: 0; bottom: 0; width: calc(var(--h) * .12);
  background: repeating-linear-gradient(90deg, var(--base) 0 6px, #2a211a 6px 7px); }
.frame__edge .frame__session { color: #ff5a3c; font-weight: 700; letter-spacing: .16em; opacity: 1; }
/* Session cover: title card + featured photo, already developed (positive) */
.frame__cover { display: flex; gap: calc(var(--h) * .045); height: var(--h); }
.frame__title { flex: none; width: calc(var(--h) * .74); height: 100%; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--h) * .05) calc(var(--h) * .045); border-radius: 3px; color: var(--parch);
  border: 1px solid rgba(217,162,74,.35); background: linear-gradient(160deg, #2a201a, #15110d 70%); }
.frame__title-n { font-family: var(--f-type); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #ff5a3c; }
.frame__title-h { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: calc(var(--h) * .15); line-height: .9; letter-spacing: -.02em; color: var(--bone); }
.frame__title-h em { color: var(--edge); }
.frame__title-meta { font-family: var(--f-type); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--edge); }
.frame--cover .frame__open img { filter: none; }
.frame--cover .frame__open::after { opacity: 0; }
.frame--cover .frame__open { box-shadow: 0 0 0 2px #ff5a3c; }
.frame__open img { width: 100%; height: 100%; object-fit: cover; pointer-events: none;
  filter: invert(1) contrast(.88) brightness(1.08) grayscale(.15); transform: scale(1.02);
  transition: filter 1.1s var(--ease), transform 1.4s var(--ease); }
.frame__open::after { content: ''; position: absolute; inset: 0; background: #c26a2e; mix-blend-mode: multiply; opacity: .5; transition: opacity 1.1s var(--ease); pointer-events: none; }
.frame__open::before { content: attr(data-n); position: absolute; z-index: 2; right: 10px; bottom: 8px; font-family: var(--f-type); font-size: 11px; letter-spacing: .14em; color: var(--bone); opacity: 0; transition: opacity .4s; }
.frame:hover .frame__open img, .frame.is-dev .frame__open img, .work.is-positive .frame__open img, .frame__open:focus-visible img { filter: none; transform: scale(1.06); }
.frame:hover .frame__open::after, .frame.is-dev .frame__open::after, .work.is-positive .frame__open::after, .frame__open:focus-visible::after { opacity: 0; }
.frame:hover .frame__open::before, .frame.is-dev .frame__open::before { opacity: .85; }
.work__legend { margin-top: 26px; color: var(--raw-dk); text-align: right; }

/* ---------- Profile / editorial ---------- */
.bio { background: var(--bone); color: var(--ink); padding: clamp(100px, 16vh, 190px) 0 clamp(100px, 14vh, 170px); position: relative; overflow: hidden; }
.bio__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(14px, 2vw, 32px); position: relative; }
.bio__folio { grid-column: 1 / -1; display: flex; justify-content: space-between; border-top: 1px solid var(--ink); border-bottom: 1px solid rgba(26,24,21,.25); padding: 10px 0; margin-bottom: clamp(40px, 6vw, 80px); color: var(--raw-dk); }
.bio__title { grid-column: 1 / 10; grid-row: 2; margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(3.4rem, 8.6vw, 9.6rem); line-height: .86; letter-spacing: -.035em; position: relative; z-index: 2; }
.bio__title em { color: var(--safelight); }
.bio__fig { margin: 0; position: relative; }
.bio__img { overflow: hidden; background: var(--carbon-3); }
.bio__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) contrast(1.05) sepia(.12); transition: transform 1.6s var(--ease), filter 1s; }
.bio__fig:hover .bio__img img { transform: scale(1.04); filter: none; }
.bio__fig figcaption { margin-top: 10px; color: var(--raw-dk); font-size: 12.5px; }
.bio__fig--a { grid-column: 8 / -1; grid-row: 2 / 4; margin-top: clamp(140px, 14vw, 240px); }
.bio__fig--a .bio__img { aspect-ratio: 3 / 2; }
/* Elise's photos: keep her face / her at work in frame */
.bio__fig--a { justify-self: end; width: min(100%, 400px); }
.bio__fig--a .bio__img { aspect-ratio: 4 / 5; }
.bio__fig--a .bio__img img { object-position: 50% 45%; }
.bio__fig--b .bio__img img { object-position: 50% 50%; }
.bio__lede { grid-column: 1 / 6; grid-row: 3; margin: clamp(40px, 5vw, 70px) 0 0; font-size: clamp(19px, 1.45vw, 23px); line-height: 1.5; font-weight: 300; }
.bio__lede::first-letter { float: left; font-family: var(--f-display); font-size: 6.2em; line-height: .78; padding: .04em .1em 0 0; color: var(--safelight); }
.bio__quote { grid-column: 2 / 8; grid-row: 4; margin: clamp(70px, 9vw, 140px) 0 0; position: relative; }
.bio__quote p { margin: 0; font-family: var(--f-display); font-style: italic; font-size: clamp(2.1rem, 4.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.01em; text-indent: -.42em; }
.bio__quote p::before { content: '“'; } .bio__quote p::after { content: '”'; }
.bio__quote em { font-style: normal; }
.bio__quote cite { display: block; margin-top: 18px; font-style: normal; color: var(--raw-dk); }
.bio__fig--b { grid-column: 9 / 12; grid-row: 4 / 6; margin-top: clamp(60px, 7vw, 120px); transform: rotate(1.6deg); }
.bio__fig--b .bio__img { aspect-ratio: 2 / 3; box-shadow: 0 30px 60px -30px rgba(20,19,17,.5); border: 10px solid #fbf8f1; }
.grease { position: absolute; left: -16%; top: 6%; width: 132%; height: 54%; overflow: visible; pointer-events: none; z-index: 2; }
.grease path { fill: none; stroke: var(--safelight); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .9;
  stroke-dasharray: 1000; stroke-dashoffset: 0; }
html.js .bio__fig--b:not(.is-in) .grease path { stroke-dashoffset: 1000; }
html.js .bio__fig--b .grease path { transition: stroke-dashoffset 1.8s var(--ease) .5s; }
.grease__note { position: absolute; z-index: 3; left: -14%; top: 1%; font-family: var(--f-display); font-style: italic; font-size: 30px; color: var(--safelight); transform: rotate(-10deg); }
.bio__p2 { grid-column: 1 / 5; grid-row: 5; margin: clamp(60px, 7vw, 110px) 0 0; font-size: 17.5px; line-height: 1.6; }
.bio__sheet { grid-column: 5 / 9; grid-row: 5; margin: clamp(60px, 7vw, 110px) 0 0; border-top: 1px solid var(--ink); }
.bio__sheet div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(26,24,21,.2); }
.bio__sheet dt { font-family: var(--f-type); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--raw-dk); padding-top: 2px; }
.bio__sheet dd { margin: 0; font-family: var(--f-type); font-size: 13.5px; }
.bio__index { grid-column: 2 / 8; grid-row: 6; margin-top: clamp(60px, 7vw, 110px); }
.bio__index > .bio__travel:first-child { margin-top: 0; }
/* Index of sessions — sits under Elise's signature */
.bio__toc { margin-top: clamp(48px, 5vw, 80px); }
.bio__close .bio__toc > .t-label { color: var(--raw-dk); margin: 0 0 10px; }
.bio__toc ol { list-style: none; margin: 0; padding: 0; }
.bio__go { display: grid; grid-template-columns: 64px 1fr auto; align-items: baseline; color: inherit; text-decoration: none; cursor: pointer; }
.bio__go:focus-visible { outline: 2px solid var(--safelight); outline-offset: 4px; }
.bio__go-n { font-family: var(--f-type); font-size: 11px; letter-spacing: .12em; color: var(--raw-dk); white-space: nowrap; transition: color .3s, transform .5s var(--ease); }
.bio__toc li:hover .bio__go-n { color: var(--safelight); transform: translateX(4px); }
.bio__toc li { display: block; border-top: 1px solid rgba(26,24,21,.22); padding: 10px 0;
  font-family: var(--f-display); font-size: clamp(1.8rem, 3.4vw, 3.4rem); line-height: 1.05; transition: padding-left .5s var(--ease), color .3s; }
.bio__toc li:last-child { border-bottom: 1px solid rgba(26,24,21,.22); }
.bio__toc li span:first-child { font-family: var(--f-type); font-size: 12px; letter-spacing: .1em; color: var(--raw-dk); }
.bio__toc li:hover { padding-left: 18px; color: var(--safelight); }
.bio__travel { margin: 26px 0 0; font-family: var(--f-display); font-style: italic; font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: 1.15; color: var(--ink); max-width: 30ch;
  padding-left: 18px; border-left: 2px solid var(--safelight); }
.bio__album { margin: 22px 0 0; }
.bio__album-k { color: var(--raw-dk); margin: 0 0 10px; }
.bio__album-n { opacity: .7; }
.bio__album-row { display: grid; grid-template-columns: 1.508fr .663fr 1.508fr; gap: 8px; padding: 8px; background: #141210; }
.bio__album-f { margin: 0; position: relative; overflow: hidden; aspect-ratio: var(--ar); background: #0c0b0a; }
.bio__album-open { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.bio__album-open:focus-visible { outline: 2px solid #ff5a3c; outline-offset: 2px; }
.bio__album-f figcaption { pointer-events: none; }
.bio__album-f img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .6s; filter: saturate(.9); }
.bio__album-f:hover img { transform: scale(1.04); filter: none; }
.bio__album-f figcaption { position: absolute; left: 6px; bottom: 4px; font-family: var(--f-type); font-size: 10px; letter-spacing: .12em; color: #ff5a3c; text-shadow: 0 1px 2px rgba(0,0,0,.7); }
@media (max-width: 720px) {
  .bio__album-row { grid-template-columns: .663fr 1.508fr; }
  .bio__album-f:first-child { grid-column: 1 / -1; }
}
.bio__avail { margin-top: 22px; color: var(--raw-dk); max-width: 46ch; }
.bio__credit { margin: 10px 0 0; color: var(--raw-dk); }
.bio__lede p, .bio__p2 p, .bio__close p { margin: 0 0 1em; }
.bio__lede p:last-child, .bio__p2 p:last-child, .bio__close p:last-child { margin-bottom: 0; }
.bio__feature { grid-column: 2 / 11; grid-row: 6; margin-top: clamp(80px, 9vw, 140px); border-top: 1px solid var(--ink); padding-top: 18px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 20px clamp(24px, 4vw, 64px); align-items: start; }
.bio__feature .t-label { color: var(--raw-dk); }
.bio__feature-title { margin: 10px 0 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(3.4rem, 7vw, 7.4rem); line-height: .86; letter-spacing: -.03em; }
.bio__feature-title em { color: var(--safelight); }
.bio__feature-text { margin: 6px 0 0; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.55; font-weight: 300; }
.bio__index { grid-row: 7; grid-column: 1 / 7; }
.bio__close { grid-column: 8 / -1; grid-row: 7; margin-top: clamp(60px, 7vw, 110px); font-size: 17.5px; line-height: 1.6; }
.bio__close .bio__sign { margin-top: 1.4em; font-family: var(--f-display); font-style: italic; font-size: clamp(1.8rem, 2.6vw, 2.6rem); line-height: 1.1; color: var(--safelight); }
.bio__vert { position: absolute; right: calc(var(--gutter) * -0.4); top: 260px; writing-mode: vertical-rl; color: var(--raw-dk); opacity: .7; }

/* ---------- Contact ---------- */
.contact { background: var(--carbon); color: var(--parch); padding: clamp(110px, 16vh, 200px) 0 0; position: relative; overflow: hidden; }
.contact .folio { color: var(--raw); }
.contact__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.6rem, 6.4vw, 7rem); line-height: .95; letter-spacing: -.025em; margin: 30px 0 clamp(50px, 7vw, 90px); max-width: 15ch; color: var(--bone); }
.contact__title em { color: var(--raw); }
.contact__mail { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; border-top: 1px solid rgba(233,226,211,.2); border-bottom: 1px solid rgba(233,226,211,.2); padding: clamp(18px, 3vw, 34px) 0; }
.contact__email { font-family: var(--f-display); font-style: italic; font-size: clamp(2rem, 6.2vw, 6.6rem); line-height: 1; letter-spacing: -.02em; word-break: break-word;
  background: linear-gradient(var(--safelight), var(--safelight)) 0 92% / 0 2px no-repeat; transition: background-size .7s var(--ease), color .4s; }
.contact__email:hover { background-size: 100% 2px; color: var(--bone); }
.contact__copy { margin-left: auto; }
.contact__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; padding: 34px 0 0; }
.contact__grid .t-label { color: var(--raw-dk); filter: brightness(1.35); margin-bottom: 8px; }
.clocks span { color: var(--bone); }
.foot { padding-top: clamp(80px, 12vw, 160px); padding-bottom: 28px; }
.foot__big { margin: 0; font-family: var(--f-display); font-size: clamp(9rem, 38vw, 44rem); line-height: .7; letter-spacing: -.05em; color: var(--carbon-3); text-align: center; user-select: none; }
.foot__row { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; color: var(--raw); border-top: 1px solid rgba(233,226,211,.15); padding-top: 18px; margin-top: 18px; }

/* ---------- Exposure counter ---------- */
.counter { position: fixed; z-index: 800; left: var(--gutter); bottom: 20px; font-family: var(--f-type); color: var(--bone); mix-blend-mode: difference; display: flex; align-items: baseline; gap: 2px; }
.counter__n { font-size: 20px; letter-spacing: .06em; display: inline-block; }
.counter__n.tick { animation: tick .35s var(--ease); }
@keyframes tick { 0% { transform: translateY(-40%); opacity: 0; } 100% { transform: none; opacity: 1; } }
.counter__of { font-size: 11px; opacity: .6; letter-spacing: .12em; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 9600; display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox__bg { position: absolute; inset: 0; background: rgba(12,11,10,.94); animation: fade .5s var(--ease) both; }
@keyframes fade { from { opacity: 0; } }
.lightbox__fig { position: relative; margin: 0; max-width: min(90vw, 1500px); display: grid; gap: 16px; }
/* The photo is ALWAYS visible (opacity 1). The "develop" pass only touches filter/scale and
   only starts once the file has loaded (.is-shown), so a stalled animation can never leave it black. */
.lightbox__img { max-height: 78vh; max-width: 100%; width: auto; margin: 0 auto; object-fit: contain; opacity: 1; box-shadow: 0 40px 80px -30px #000; background: #0c0b0a; }
.lightbox__img.is-shown { animation: develop-lb 1.1s var(--ease); }
@keyframes develop-lb { 0% { filter: brightness(2.2) contrast(.55) blur(3px); transform: scale(.97); } 100% { filter: none; transform: none; } }
.lightbox.is-loading .lightbox__img { visibility: hidden; }
.lightbox.is-loading .lightbox__fig, .lightbox.is-error .lightbox__fig { min-width: 220px; min-height: 140px; }
.lightbox.is-error .lightbox__img { visibility: hidden; }
.lightbox.is-error .lightbox__fig::before { content: 'Photo unavailable — check your connection and try again'; position: absolute; inset: 0; display: grid; place-items: center;
  text-align: center; padding: 0 16px; font-family: var(--f-type); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--raw); }
.lightbox.is-loading .lightbox__fig::before { content: 'Developing…'; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-type); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--raw); animation: blink 1.4s ease-in-out infinite; }
.lightbox__cap { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; color: var(--parch); }
.lightbox__n { color: var(--edge); }
.lightbox__title { font-family: var(--f-display); font-size: 28px; font-style: italic; }
.lightbox__meta { color: var(--raw); }
.lightbox__close { position: absolute; top: 22px; right: var(--gutter); color: var(--parch); padding: 10px 0; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border: 1px solid rgba(233,226,211,.35); border-radius: 50%; color: var(--parch); font-size: 18px; transition: background-color .3s, color .3s; }
.lightbox__nav:hover { background: var(--parch); color: var(--ink); }
.lightbox__nav--prev { left: var(--gutter); } .lightbox__nav--next { right: var(--gutter); }

/* ---------- Reveal ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
html.js [data-reveal].is-in, html.reveal-all [data-reveal] { opacity: 1; transform: none; }
html.js .bio__fig--b[data-reveal] { transform: translateY(34px) rotate(1.6deg); }
html.js .bio__fig--b[data-reveal].is-in, html.reveal-all .bio__fig--b { transform: rotate(1.6deg); }
html.js .bio__fig[data-reveal] .bio__img { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-io) .15s; }
html.js .bio__fig[data-reveal].is-in .bio__img, html.reveal-all .bio__fig .bio__img { clip-path: inset(0 0 0 0); }
html.reveal-all .hero__char { transform: none !important; }
html.reveal-all .hero__side > * { opacity: 1 !important; transform: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__status { display: none; }
  .hero__body { grid-template-columns: 1fr; gap: 26px; }
  .hero__side { max-width: 560px; padding-bottom: 0; }
  .work__title { grid-column: 1 / -1; }
  .work__aside { grid-column: 1 / -1; margin-top: 26px; }
  .bio__title { grid-column: 1 / -1; }
  .bio__fig--a { grid-column: 5 / -1; grid-row: 3; margin-top: 50px; }
  .bio__lede { grid-column: 1 / -1; grid-row: 4; }
  .bio__quote { grid-column: 1 / 9; grid-row: 5; }
  .bio__fig--b { grid-column: 9 / -1; grid-row: 5 / 7; }
  .bio__p2 { grid-column: 1 / 9; grid-row: 6; }
  .bio__sheet { grid-column: 1 / 9; grid-row: 7; margin-top: 40px; }
  .bio__feature { grid-column: 1 / -1; grid-row: 8; }
  .bio__index { grid-column: 1 / -1; grid-row: 9; }
  .bio__close { grid-column: 1 / 10; grid-row: 10; }
  .bio__vert { display: none; }
  .contact__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  :root { --nav-h: 58px; }
  body { font-size: 17px; }
  .nav__handle { display: none; }
  .nav__links { gap: 14px; font-size: 11px; }
  .nav__n { display: none; }
  .nav__right { gap: 10px; }
  .hero__top .hero__coords { display: none; }
  .hero__top { left: calc(var(--gutter) + 30px); }
  .hero__edge { display: none; }
  .hero__meta { grid-template-columns: 1fr 1fr; }
  .hero__meta div:last-child { grid-column: 1 / -1; }
  .hero__body { padding-bottom: 86px; }
  .crop--bl, .crop--br { display: none; }
  .work__bar { flex-direction: column; align-items: flex-start; }
  .frame { --h: 200px; }
  .frame__edge { font-size: 9px; letter-spacing: .08em; }
  .frame__edge .frame__session { letter-spacing: .06em; }
  .frame__title-n, .frame__title-meta { font-size: 8.5px; letter-spacing: .08em; }
  .work__legend { text-align: left; }
  .bio__fig--a { grid-column: 1 / -1; }
  .bio__quote, .bio__p2, .bio__sheet { grid-column: 1 / -1; }
  .bio__fig--b { grid-column: 3 / 11; grid-row: auto; margin-top: 60px; }
  .bio__p2 { grid-row: auto; }
  .bio__sheet, .bio__index, .bio__feature, .bio__close { grid-row: auto; grid-column: 1 / -1; }
  .bio__feature { grid-template-columns: 1fr; }
  .bio__sheet div { grid-template-columns: 90px 1fr; }
  .grease__note { left: -6%; }
  .contact__grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .contact__copy { margin-left: 0; }
  .counter { display: none; }
  .lightbox__nav { top: auto; bottom: 18px; transform: none; width: 48px; height: 48px; }
}
@media (max-width: 380px) {
  .nav__links { gap: 10px; }
  .contact__grid { grid-template-columns: 1fr; }
}

/* Reduced motion: only the intrusive bits calm down (hover/fade/develop effects stay alive). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation-duration: 3s; }
  .hero__scratch, .hero__leak { animation: none; }
}
