/* Simon Oiro · Jacpicha — portfolio v2
   A warm dark viewfinder. Archivo (wide display), Instrument Serif (italic voice), JetBrains Mono (readouts). */

:root {
  --bg: #0b0907;
  --surface: #15110d;
  --surface-2: #211a13;
  --ink: #f3ede4;
  --muted: #a1978b;
  --dim: rgba(243, 237, 228, .62);
  --accent: #d6aa5b;
  --accent-ink: #0b0907;
  --rec: #e5483b;
  --print: #efe7da;
  --paper: #ece7df;
  --paper-ink: #0b0907;
  --paper-muted: #5c554c;

  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --t-mono: 0.75rem;
  --t-small: clamp(0.9375rem, 0.9rem + 0.1vw, 1rem);
  --t-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --t-lead: clamp(1.375rem, 1.1rem + 1vw, 2rem);
  --t-head: clamp(2.5rem, 1.4rem + 4.4vw, 5.5rem);
  --t-giant: clamp(4.25rem, 1rem + 13vw, 16rem);

  --m: clamp(20px, 2.4vw, 36px);
  --gap: clamp(120px, 14vw, 220px);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--sans); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; }
p { max-width: 68ch; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main > section { overflow-x: clip; }

.mono { font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .14em; text-transform: uppercase; font-weight: 400; }
h1, h2, .display, .ch-title {
  font-family: var(--sans); font-weight: 800; font-stretch: 118%; text-transform: uppercase;
  letter-spacing: -0.035em; line-height: .9;
}
.serif-i { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -0.01em; font-stretch: 100%; }
h3 { font: 600 var(--t-lead)/1.15 var(--sans); font-stretch: 110%; letter-spacing: -0.015em; }

/* split text */
.split { display: inline; }
.split .w { display: inline-block; white-space: nowrap; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .c { display: inline-block; will-change: transform; }
.js .split:not(.is-in) .c { transform: translateY(110%); }
.split.is-in .c { transform: none; transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 22ms); }
[data-words] .wd { opacity: .16; transition: opacity .5s var(--ease); }
[data-words] .wd.is-lit { opacity: 1; }

.skip {
  position: fixed; left: var(--m); top: 12px; z-index: 120; padding: 10px 16px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* film grain over everything */
.grain {
  position: fixed; inset: -50%; z-index: 95; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)} 40%{transform:translate(3%,-5%)} 60%{transform:translate(-6%,-2%)} 80%{transform:translate(5%,4%)} 100%{transform:translate(0,0)} }

/* cursor */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 110; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: var(--ink); pointer-events: none; mix-blend-mode: difference;
  display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s;
  opacity: 0;
}
.cursor.is-on { opacity: 1; }
.cursor.is-big { width: 86px; height: 86px; margin: -43px 0 0 -43px; }
.cursor span { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .2s; }
.cursor.is-big span { opacity: 1; }
@media (hover: none) { .cursor { display: none; } }

/* viewfinder corners */
.vf { position: absolute; inset: var(--vf, 28px); pointer-events: none; }
.vf b { position: absolute; width: 22px; height: 22px; border: 0 solid currentColor; opacity: .7; }
.vf b:nth-child(1) { left: 0; top: 0; border-width: 1.5px 0 0 1.5px; }
.vf b:nth-child(2) { right: 0; top: 0; border-width: 1.5px 1.5px 0 0; }
.vf b:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1.5px 1.5px; }
.vf b:nth-child(4) { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 54px; padding: 0 30px; border: 0; border-radius: 999px; overflow: hidden; isolation: isolate;
  background: var(--accent); color: var(--accent-ink);
  font: 600 var(--t-small)/1 var(--sans); font-stretch: 110%; letter-spacing: .01em; text-decoration: none; cursor: pointer;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); border-radius: 50% 50% 0 0; transition: transform .6s var(--ease), border-radius .6s var(--ease); }
.btn:hover::before { transform: none; border-radius: 0; }
.btn-ink { background: var(--paper-ink); color: var(--paper); }
.btn-ink::before { background: var(--accent); }
.btn-ink:hover { color: var(--accent-ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: #0a0806; color: var(--ink); overflow: hidden;
  transition: opacity 1.1s var(--ease), visibility 1.1s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader[hidden] { display: none; }
html:not(.js) .loader { display: none; }
.loader-bokeh i {
  position: absolute; border-radius: 50%; filter: blur(28px); opacity: .75; mix-blend-mode: screen;
  background: radial-gradient(circle, #ffcf86 0%, rgba(255, 170, 70, .55) 35%, rgba(255, 140, 40, 0) 70%);
  animation: bokeh 7s ease-in-out infinite alternate;
}
.loader-bokeh i:nth-child(1) { width: 26vmax; height: 26vmax; left: 8%; top: 18%; }
.loader-bokeh i:nth-child(2) { width: 18vmax; height: 18vmax; right: 10%; top: 12%; animation-delay: -2s; }
.loader-bokeh i:nth-child(3) { width: 14vmax; height: 14vmax; left: 40%; bottom: 6%; animation-delay: -4s; opacity: .45; }
.loader-bokeh i:nth-child(4) { width: 9vmax; height: 9vmax; right: 30%; bottom: 22%; animation-delay: -1s; opacity: .5; }
.loader-bokeh i:nth-child(5) { width: 30vmax; height: 30vmax; right: -8%; bottom: -12%; animation-delay: -3s; opacity: .35; }
.loader-bokeh i:nth-child(6) { width: 7vmax; height: 7vmax; left: 22%; bottom: 30%; animation-delay: -5s; opacity: .6; }
@keyframes bokeh { to { transform: translate(4vw, -3vh) scale(1.15); } }
.loader .vf { --vf: 16vh 14vw; color: var(--ink); }
.loader-read {
  position: absolute; left: 14vw; right: 14vw; top: 16vh; bottom: 16vh; display: grid; place-items: center;
  grid-template-rows: auto 1fr auto; padding: 22px 28px; color: rgba(243,237,228,.75);
}
.loader-brand { justify-self: start; }
.focus-mark { width: 54px; height: 70px; border: 1.5px solid rgba(243,237,228,.75); border-top: 0; border-bottom: 0; }
.loader-scale { display: flex; gap: 14px; align-items: center; }
.loader-scale em { display: flex; gap: 6px; font-style: normal; align-items: center; }
.loader-scale em i { width: 1.5px; height: 10px; background: currentColor; opacity: .5; }
.loader-scale em i.on { opacity: 1; background: var(--rec); height: 14px; }
.loader-pct { position: absolute; right: 28px; bottom: 22px; color: var(--rec); font-size: .8125rem; }
.loader.is-focus .loader-bokeh i { filter: blur(6px); transition: filter 1.2s var(--ease); }

/* ---------- bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 60; display: flex; align-items: center; gap: 36px;
  padding: 22px var(--m); font-size: var(--t-small); color: var(--ink);
  transition: transform .6s var(--ease), background .5s var(--ease);
}
.bar.is-hidden { transform: translateY(-110%); }
.bar.is-solid { background: rgba(11, 9, 7, .92); }
.wordmark { margin-right: auto; display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.wm-a { font: 800 1rem/1 var(--sans); font-stretch: 120%; text-transform: uppercase; letter-spacing: -0.02em; }
.wm-b { font: italic 400 1.25rem/1 var(--serif); color: var(--accent); }
.bar-links { display: flex; gap: 30px; }
.bar-links a { position: relative; text-decoration: none; padding: 4px 0; }
.bar-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.bar-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.sound { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 6px 0; cursor: pointer; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 2px; height: 3px; background: currentColor; transition: height .3s; }
.sound[aria-pressed="true"] { color: var(--accent); }
.sound[aria-pressed="true"] .eq i { animation: eq .9s ease-in-out infinite alternate; }
.sound[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -.3s; }
.sound[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { from { height: 3px; } to { height: 12px; } }
.menu { display: none; background: none; border: 0; cursor: pointer; padding: 6px 0; }

/* ---------- THE FILM ---------- */
.story { position: relative; }
.story-a { height: 240svh; }
.story-b { height: 1350svh; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.stage-back { z-index: 1; }
.stage-front { z-index: 22; margin-top: -100svh; pointer-events: none; }
.stage-front a, .stage-front button { pointer-events: auto; }
.stage-back::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 48%, rgba(214, 170, 91, .16), rgba(214, 170, 91, 0) 70%);
}
.bigword { position: absolute; inset: 0; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; pointer-events: none; }
.bw {
  grid-area: 1 / 1; justify-self: center; white-space: nowrap; text-align: center; margin: 0;
  font: 900 var(--t-giant)/.82 var(--sans); font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.045em;
  color: var(--ink);
}
.bw .w { display: inline-block; white-space: nowrap; overflow: hidden; vertical-align: top; padding: 0 .02em; }
.bw .c { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-io); transition-delay: calc(var(--i) * 35ms); }
.bw.is-on .c { transform: none; }
.bw.is-gone .c { transform: translateY(-105%); }
html:not(.js) .bw:not(.is-on) { display: none; }
html:not(.js) .bw .c { transform: none; }
.story-a .bw { align-self: start; margin-top: 15vh; font-size: min(9.2vw, 15rem); }
.bw-out { color: transparent; -webkit-text-stroke: 1.5px rgba(243, 237, 228, .5); }
.bw-soft { color: rgba(243, 237, 228, .1); }

/* the one canvas, fixed for the whole site */
.gl { position: fixed; inset: 0; z-index: 20; width: 100%; height: 100%; pointer-events: none; }
.no-webgl .gl { display: none; }
.stage-fallback { position: absolute; inset: 0; z-index: 1; display: none; }
.stage-fallback img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.45); }
.no-webgl .stage-fallback { display: block; }

.hud { position: fixed; inset: 0; z-index: 30; pointer-events: none; color: var(--dim); transition: color .6s var(--ease), opacity .6s var(--ease); }
.hud .vf { --vf: 84px var(--m) var(--m); color: var(--ink); transition: color .6s var(--ease); }
.hud.is-light { color: rgba(11, 9, 7, .62); }
.hud.is-light .vf { color: var(--paper-ink); }
.hud.is-quiet { opacity: .5; }
html:not(.is-ready) .hud { opacity: 0; }
.hud > span { position: absolute; line-height: 1.6; }
.hud-tl { left: calc(var(--m) + 34px); top: 104px; }
.hud-tr { right: calc(var(--m) + 34px); top: 104px; display: flex; align-items: center; gap: 8px; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); animation: rec 1.2s steps(2) infinite; }
@keyframes rec { 50% { opacity: .15; } }
.hud-bl { left: calc(var(--m) + 34px); bottom: calc(var(--m) + 18px); }
.hud-br { right: calc(var(--m) + 34px); bottom: calc(var(--m) + 18px); }
.hud-scale { position: absolute; left: 50%; bottom: calc(var(--m) + 18px); width: min(360px, 40vw); height: 16px; transform: translateX(-50%); overflow: hidden; }
.hud-ticks { position: absolute; left: 0; top: 0; display: flex; gap: 9px; will-change: transform; }
.hud-ticks i { flex: none; width: 1px; height: 7px; background: currentColor; }
.hud-ticks i:nth-child(5n+1) { height: 13px; }
.hud-needle { position: absolute; left: 50%; top: 0; width: 1.5px; height: 16px; background: var(--rec); }

.ch { position: absolute; z-index: 4; visibility: hidden; display: grid; gap: 18px; justify-items: start; }
.ch.is-on { visibility: visible; }
.ch-0 { left: var(--m); right: var(--m); bottom: calc(var(--m) + 64px); grid-template-columns: 1fr auto; align-items: end; padding: 0 34px; }
.ch-0 .ch-serif { font-size: var(--t-lead); grid-column: 1; }
.ch-0 .ch-small { grid-column: 2; grid-row: 1 / span 2; max-width: 30ch; text-align: right; justify-self: end; align-self: end; }
.ch-0 .scroll-cue { grid-column: 1; }
.ch-left { left: calc(var(--m) + 34px); bottom: calc(var(--m) + 70px); max-width: min(40vw, 560px); }
.ch-right { right: calc(var(--m) + 34px); bottom: calc(var(--m) + 70px); max-width: min(40vw, 560px); justify-items: end; text-align: right; }
.ch-head { font-size: clamp(2.25rem, 1rem + 3.6vw, 4.5rem); overflow-wrap: normal; word-break: keep-all; hyphens: none; }
.ch-serif { font: italic 400 var(--t-lead)/1.15 var(--serif); }
.ch-xl { font-size: clamp(1.75rem, 1.1rem + 2.2vw, 3.25rem); line-height: 1.08; }
.ch-small { color: var(--dim); font-size: var(--t-small); max-width: 42ch; }
.ch-index { color: var(--accent); }
.ch-link { text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--accent); color: var(--ink); pointer-events: auto; }
.ch .ch-small, .ch .ch-link, .ch .ch-index, .ch .spec li, .ch .scroll-cue { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.ch.is-on .ch-small, .ch.is-on .ch-link, .ch.is-on .ch-index, .ch.is-on .spec li, .ch.is-on .scroll-cue { opacity: 1; transform: none; transition-delay: .35s; }
.ch-center { left: var(--m); right: var(--m); bottom: calc(var(--m) + 70px); justify-items: center; text-align: center; }
.spec { display: grid; gap: 10px; width: min(340px, 36vw); }
.spec li { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 10px; border-bottom: 1px solid rgba(243,237,228,.18); color: var(--dim); }
.spec li span:last-child { color: var(--ink); }
.ch.is-on .spec li:nth-child(2) { transition-delay: .45s; } .ch.is-on .spec li:nth-child(3) { transition-delay: .55s; } .ch.is-on .spec li:nth-child(4) { transition-delay: .65s; }
.scroll-cue { display: flex; align-items: center; gap: 12px; color: var(--dim); }
.scroll-cue i { width: 1px; height: 34px; background: rgba(243,237,228,.3); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--accent); animation: cue 1.8s var(--ease-io) infinite; }
@keyframes cue { to { top: 100%; } }

.chapters { position: absolute; z-index: 4; right: calc(var(--m) + 4px); top: 50%; transform: translateY(-50%); display: grid; gap: 8px; }
.chapters i { width: 2px; height: 18px; background: rgba(243,237,228,.22); transition: background .4s, height .4s var(--ease); }
.chapters i.is-on { background: var(--accent); height: 34px; }

.flash { position: fixed; inset: 0; z-index: 36; background: #fff8ec; opacity: 0; pointer-events: none; mix-blend-mode: screen; }
.stage-front::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease); background: radial-gradient(ellipse 70% 60% at 50% 55%, rgba(200, 30, 20, 0) 30%, rgba(150, 20, 12, .38) 100%); }
.stage-front.is-safelight::after { opacity: 1; }
.ch-world h2 { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.ch-world.is-swap h2, .ch-world.is-swap #worldCat { opacity: 0; transform: translateY(10px); }
#worldCat { transition: opacity .35s var(--ease), transform .35s var(--ease); }

.stage-canvas.is-pick { cursor: pointer; }
.iris { position: absolute; inset: 0; z-index: 6; clip-path: circle(0% at 50% 50%); pointer-events: none; }
.iris img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); }
.iris::after { content: ""; position: absolute; inset: 0; background: rgba(8, 6, 4, .4); }
.iris-copy { position: absolute; inset: auto var(--m) calc(var(--m) + 64px); z-index: 2; padding: 0 34px; }
.iris-copy .ch-title { font-size: var(--t-giant); line-height: .86; max-width: none; }
.iris-copy .serif-i { font-size: 1.05em; }

/* ---------- work: the camera fires each story out of its lens ---------- */
.work { position: relative; padding: 16svh var(--m) 34svh; }
.work-head { position: relative; z-index: 4; display: grid; gap: 18px; margin-bottom: 12svh; }
.work-head .mono { color: var(--accent); }
.work-head h2 { font-size: var(--t-giant); line-height: .84; }
.work-list { position: relative; z-index: 4; width: min(46%, 820px); display: grid; gap: 6svh; }
.work-list a { display: grid; grid-template-columns: 56px 1fr; gap: 6px 18px; align-items: baseline; text-decoration: none; color: rgba(243,237,228,.24); transition: color .5s var(--ease); }
.wl-n { grid-row: span 2; color: inherit; transition: color .5s; }
.wl-t { font: 800 clamp(2.25rem, .6rem + 4vw, 5.25rem)/.92 var(--sans); font-stretch: 122%; text-transform: uppercase; letter-spacing: -0.04em; transition: font-stretch .7s var(--ease), letter-spacing .7s var(--ease), transform .7s var(--ease); transform-origin: left center; }
.wl-m { color: inherit; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease); }
.wl-img { display: none; }
.work-list a.is-on { color: var(--ink); }
.work-list a.is-on .wl-n { color: var(--accent); }
.work-list a.is-on .wl-m { opacity: 1; transform: none; color: var(--dim); }
.work-list a:hover .wl-t { font-stretch: 100%; letter-spacing: -0.02em; color: var(--accent); }
.no-webgl .work-list a.is-on .wl-img { display: block; grid-column: 2; width: min(360px, 70vw); aspect-ratio: 4/3; object-fit: cover; margin-top: 12px; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding: 28px 0; margin-top: var(--gap); background: var(--accent); color: var(--accent-ink); }
.marquee-track { display: flex; gap: 40px; align-items: baseline; width: max-content; will-change: transform; }
.marquee-track span { font: 800 clamp(2.5rem, 1rem + 5vw, 6rem)/1 var(--sans); font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.04em; }
.marquee-track em { font: italic 400 clamp(1.75rem, 1rem + 3vw, 4rem)/1 var(--serif); }

/* ---------- film ---------- */
.film { margin-top: var(--gap); }
.film-frame { position: relative; height: 100svh; overflow: hidden; clip-path: inset(10svh 9vw round 28px); }
.film-frame video { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.film-scrim { position: absolute; inset: 0; background: rgba(8,6,4,.42); }
.film-copy { position: absolute; left: calc(9vw + var(--m)); bottom: calc(10svh + var(--m)); max-width: 48rem; display: grid; gap: 26px; justify-items: start; }
.film-copy h2 { font-size: clamp(2.25rem, 1rem + 3.8vw, 4.75rem); }
.film-copy p { max-width: 44ch; }

/* ---------- archive ---------- */
.archive { margin-top: var(--gap); padding: 0 var(--m); }
.archive-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: end; margin-bottom: 64px; }
.archive-head h2 { font-size: var(--t-giant); line-height: .84; }
.archive-tools { display: grid; gap: 18px; justify-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 20px; border: 1px solid rgba(243,237,228,.24); border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink); font-size: var(--t-small); transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.chip:hover { border-color: var(--ink); transform: translateY(-2px); }
.chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.search { width: 100%; max-width: 460px; }
.search input {
  width: 100%; min-height: 54px; padding: 0 22px; border: 1px solid rgba(243,237,228,.24); border-radius: 999px;
  background: transparent; color: var(--ink); font: inherit; transition: border-color .3s;
}
.search input:focus { outline: none; border-color: var(--accent); }
.search input::placeholder { color: var(--muted); }
.archive-count { color: var(--muted); }
.grid { columns: 3 320px; column-gap: 16px; }
.tile { break-inside: avoid; margin-bottom: 16px; }
.tile.is-hidden { display: none; }
.tile-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; background: var(--surface); overflow: hidden; }
.tile-btn img { width: 100%; height: auto; transition: transform 1.2s var(--ease), filter .6s; }
.tile-btn:hover img { transform: scale(1.06); filter: brightness(.75); }
.tile-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 18px; text-align: left; transform: translateY(100%); transition: transform .55s var(--ease); background: rgba(11,9,7,.78); }
.tile-cap > span:first-child { font: italic 400 1.375rem/1.1 var(--serif); }
.tile-cap .mono { color: var(--accent); }
.tile-btn:hover .tile-cap, .tile-btn:focus-visible .tile-cap { transform: none; }
.archive-empty { padding: 64px 0; font: italic 400 var(--t-lead) var(--serif); }

/* ---------- about: the portrait develops when the camera fires ---------- */
.about { position: relative; padding: 18svh var(--m) 12svh; }
.about-grid { position: relative; z-index: 4; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr) minmax(0, .75fr); gap: 4vw; align-items: start; }
.portrait { position: sticky; top: 16vh; margin: 0; padding: 14px 14px 64px; background: var(--print); color: var(--paper-ink); transform: rotate(-2.5deg); transition: transform 1.2s var(--ease); }
.portrait:hover { transform: rotate(0deg) translateY(-6px); }
.portrait-pic { aspect-ratio: 4 / 5; overflow: hidden; background: #2a231c; filter: brightness(2.4) saturate(0) blur(8px) contrast(.6); transition: filter 3.2s var(--ease); }
.portrait.is-dev .portrait-pic { filter: none; }
.portrait-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; transform: scale(1.08); transition: transform 6s var(--ease); }
.portrait.is-dev .portrait-pic img { transform: none; }
.portrait-mono { width: 100%; height: 100%; display: grid; place-content: center; grid-auto-flow: column; gap: .05em; background: radial-gradient(ellipse at 40% 35%, #4a3a2a, #15110d 70%); color: var(--print); font: italic 400 clamp(5rem, 3rem + 6vw, 10rem)/1 var(--serif); }
.portrait-mono span:last-child { color: var(--accent); }
.portrait figcaption { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; justify-content: space-between; align-items: baseline; }
.portrait figcaption .serif-i { font-size: 1.5rem; }
.portrait figcaption .mono { color: var(--paper-muted); }
.about-body { display: grid; gap: 26px; align-content: start; }
.about-kicker { color: var(--accent); }
.about-body h2 { font-size: var(--t-head); margin-bottom: 12px; }
.about-lead { font: italic 400 var(--t-lead)/1.2 var(--serif); }
.about-name { color: var(--accent); }
.about-name em { font: italic 400 1.2em var(--serif); }
.beliefs { margin-top: 32px; display: grid; gap: 12px; counter-reset: b; }
.beliefs li { padding: 26px 28px; background: rgba(33, 26, 19, .7); counter-increment: b; display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; transition: background .4s, transform .5s var(--ease); }
.beliefs li:hover { background: var(--surface-2); transform: translateX(8px); }
.beliefs li::before { content: "0" counter(b); grid-row: span 2; font: 500 var(--t-mono) var(--mono); color: var(--accent); padding-top: 8px; }
.beliefs h3 { font-weight: 800; font-stretch: 120%; text-transform: uppercase; }

/* ---------- arc ---------- */
.arc { margin-top: var(--gap); padding: 0 var(--m); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 32px 4vw; align-items: center; }
.arc-head { display: grid; gap: 32px; justify-items: start; }
.arc-head h2 { font-size: var(--t-head); }
.arc-active { position: relative; min-height: 11em; width: 100%; }
.arc-text { position: absolute; inset: 0 0 auto; display: grid; gap: 12px; visibility: hidden; }
.arc-text.is-on { visibility: visible; }
.arc-text .mono { color: var(--accent); }
.arc-text p:last-child { max-width: 44ch; color: var(--dim); }
.arc-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.arc-btn { width: 54px; height: 54px; border: 1px solid rgba(243,237,228,.24); border-radius: 50%; background: transparent; cursor: pointer; font-size: 1.125rem; transition: background .3s, color .3s; }
.arc-btn:hover { background: var(--ink); color: var(--bg); }
.arc-stage { position: relative; height: min(74svh, 700px); perspective: 1600px; outline: none; touch-action: pan-y; }
.arc-stage:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; }
.arc-card { position: absolute; left: 50%; top: 50%; width: min(24vw, 340px); aspect-ratio: 4/5; margin: 0; overflow: hidden; cursor: pointer; will-change: transform; padding: 10px 10px 34px; background: var(--print); }
.arc-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

/* ---------- contact ---------- */
.contact {
  margin-top: var(--gap); min-height: 100svh; padding: clamp(80px, 12svh, 140px) var(--m) var(--m);
  background: var(--paper); color: var(--paper-ink);
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px 4vw; align-content: space-between;
}
.contact ::selection { background: var(--paper-ink); color: var(--paper); }
.contact-top { display: grid; gap: 26px; align-content: start; }
.contact-top h2 { font-size: var(--t-head); }
.contact-top p { font: italic 400 var(--t-lead)/1.25 var(--serif); max-width: 24ch; }
.cam-spot { height: 34vh; min-height: 200px; }
@media (max-width: 720px) { .cam-spot { display: none; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-content: start; }
.field { display: grid; gap: 8px; }
.field-wide, .form-foot { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; margin-bottom: 4px; padding: 0; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 54px; padding: 12px 0; border: 0; border-bottom: 1.5px solid rgba(11,9,7,.3); border-radius: 0;
  background: transparent; color: var(--paper-ink); font: inherit; transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--paper-ink); }
.field [aria-invalid="true"] { border-bottom-color: #a3261b; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick span { display: inline-flex; min-height: 44px; align-items: center; padding: 0 18px; border: 1px solid rgba(11,9,7,.3); border-radius: 999px; transition: background .3s, color .3s; }
.pick input:checked + span { background: var(--paper-ink); color: var(--paper); border-color: var(--paper-ink); }
.pick input:focus-visible + span { outline: 2px solid var(--paper-ink); outline-offset: 3px; }
.err { min-height: 1.3em; color: #a3261b; font-size: var(--t-small); }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form-status { font-weight: 600; }
.form-status.is-ok { color: #1e5c2a; }
.form-status.is-bad { color: #a3261b; }
.mail {
  grid-column: 1 / -1; display: block; text-decoration: none; color: var(--paper-ink);
  font: 800 clamp(1.75rem, .2rem + 5.6vw, 6.6rem)/1 var(--sans); font-stretch: 118%; letter-spacing: -0.045em;
  transition: color .4s, letter-spacing .6s var(--ease);
}
.mail:hover { color: #8a6526; letter-spacing: -0.03em; }
.contact-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; color: var(--paper-muted); }
.contact-foot a { margin-left: 22px; color: var(--paper-ink); }

/* ---------- footer ---------- */
.foot { padding: 46svh var(--m) 30px; color: var(--muted); overflow: hidden; }
.foot-word {
  font: 900 clamp(3.25rem, 11.6vw, 18rem)/.8 var(--sans); font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.055em;
  color: var(--ink); text-align: center; max-width: none; white-space: nowrap; margin-bottom: 40px;
}
.foot-word .c { display: inline-block; }
.foot-line { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 16px 24px; font-size: var(--t-small); }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.foot-links a, .foot-links .sound { color: var(--ink); text-decoration: none; padding: 0; }
.foot-links a:hover { color: var(--accent); }
.foot-line > p:last-child { text-align: right; justify-self: end; }
.credits { margin-top: 28px; font-size: var(--t-small); }
.credits summary { cursor: pointer; width: max-content; }
.credits ul { margin-top: 16px; columns: 2 360px; column-gap: 32px; }
.credits li { break-inside: avoid; margin-bottom: 8px; max-width: 64ch; }

/* ---------- lightbox ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--bg); }
dialog::backdrop { background: rgba(6,5,4,.94); }
.lightbox { width: 100vw; height: 100svh; max-width: none; max-height: none; background: transparent; }
.lightbox figure { height: 100%; display: grid; place-items: center; padding: 72px var(--m); gap: 16px; grid-template-rows: 1fr auto; }
.lightbox img { max-height: calc(100svh - 180px); width: auto; object-fit: contain; padding: 12px 12px 40px; background: var(--print); }
.lightbox figcaption { color: var(--dim); }
.lb-btn { position: absolute; min-height: 48px; padding: 0 22px; border: 1px solid rgba(243,237,228,.3); border-radius: 999px; background: transparent; cursor: pointer; transition: background .3s, color .3s; }
.lb-btn:hover { background: var(--ink); color: var(--bg); }
.lb-close { top: var(--m); right: var(--m); }
.lb-prev { left: var(--m); top: 50%; translate: 0 -50%; }
.lb-next { right: var(--m); top: 50%; translate: 0 -50%; }

/* ---------- reveal helpers ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-clip] { clip-path: inset(100% 0 0 0); }
.js [data-clip].is-in { clip-path: inset(0 0 0 0); transition: clip-path 1.3s var(--ease-io); transition-delay: var(--d, 0ms); }

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  .arc { grid-template-columns: 1fr; }
  .arc-stage { height: 60svh; }
  .arc-card { width: min(40vw, 320px); }
  .ch-left, .ch-right { max-width: 60vw; }
  .about { grid-template-columns: 1fr; }
  .about-pin { position: relative; height: 70svh; }
  .about-body { padding-top: 64px; }
}

/* ---------- phone ---------- */
@media (max-width: 720px) {
  .bar { gap: 18px; padding: 18px var(--m); }
  .wm-b { display: none; }
  .menu { display: block; }
  .bar .sound-t { display: none; }
  .bar-links { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 4px; padding: 0 var(--m); background: var(--bg); clip-path: circle(0% at 92% 4%); transition: clip-path .8s var(--ease-io); }
  .bar-links.is-open { clip-path: circle(150% at 92% 4%); }
  .bar-links a { font: 800 13vw/1.05 var(--sans); font-stretch: 120%; text-transform: uppercase; letter-spacing: -0.04em; }

  .story-a { height: 220svh; }
  .story-b { height: 1250svh; }
  .vf-stage { --vf: 74px 14px 14px; }
  .hud-tl, .hud-tr { top: 92px; }
  .hud-tl { left: 30px; } .hud-tr { right: 30px; }
  .hud-bl, .hud-br { bottom: 26px; }
  .hud-bl { left: 30px; } .hud-br { right: 30px; }
  .hud-scale { display: none; }
  .bw { font-size: 21vw; }
  .story-a .bw { white-space: normal; font-size: 19vw; line-height: .82; margin-top: 15vh; }
  .ch-0 { grid-template-columns: 1fr; bottom: 60px; padding: 0 12px; gap: 12px; }
  .ch-0 .ch-small { grid-column: 1; grid-row: auto; text-align: left; justify-self: start; }
  .ch-left, .ch-right { left: 30px; right: 30px; bottom: 64px; max-width: none; justify-items: start; text-align: left; }
  .ch-head { font-size: 10.6vw; }
  .ch-xl { font-size: 7.4vw; }
  .spec { width: 100%; }
  .chapters { display: none; }
  .iris-copy { padding: 0 12px; bottom: 70px; }
  .iris-copy .ch-title { font-size: 13vw; }

  .work-frame { --s: 64vw; }
  .work-fact { top: calc(100% + 18px); transform: none; }
  .work-kind { right: auto; left: 0; }
  .work-place { left: auto; right: 0; }
  .work-list a { font-size: 11vw; }

  .film-frame { clip-path: inset(6svh 4vw round 18px); }
  .film-copy { left: calc(4vw + var(--m)); right: calc(4vw + var(--m)); bottom: calc(6svh + var(--m)); }

  .archive-head { grid-template-columns: 1fr; }
  .archive-head h2 { font-size: 20vw; }
  .grid { columns: 2 140px; column-gap: 10px; }
  .tile { margin-bottom: 10px; }
  .tile-cap { position: static; transform: none; background: var(--surface); padding: 10px 12px; flex-direction: column; gap: 4px; }
  .tile-cap > span:first-child { font-size: 1.125rem; }

  .about-pin { height: 60svh; }
  .arc-card { width: 62vw; }
  .arc-stage { height: 62svh; }

  .contact { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .mail { font-size: 10.4vw; }
  .contact-foot { flex-direction: column; gap: 12px; }
  .contact-foot a { margin: 0 20px 0 0; }

  .foot-line { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
  .foot-line > p:last-child { text-align: left; justify-self: start; }
  .lb-prev, .lb-next { top: auto; bottom: var(--m); translate: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .split:not(.is-in) .c { transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-clip] { clip-path: none; }
  [data-words] .wd { opacity: 1; }
  .grain { display: none; }
}

/* ---------- the travelling camera: content layering, the dock ---------- */
.archive-head, .grid, .archive-empty, .arc-head, .arc-stage, .film-frame, .contact > *, .foot > * { position: relative; z-index: 4; }
.dock {
  position: fixed; z-index: 21; right: 26px; bottom: 26px; width: 150px; height: 150px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; opacity: 0; pointer-events: none; transform: scale(.6); transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.dock.is-on { opacity: 1; pointer-events: auto; transform: none; }
.dock svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.dock circle { fill: none; stroke-width: 1.6; }
.dock-track { stroke: rgba(243, 237, 228, .16); }
.dock-ring { stroke: var(--accent); stroke-dasharray: 295.3; stroke-dashoffset: 295.3; stroke-linecap: round; }
.dock-label { position: absolute; left: 50%; bottom: -4px; transform: translate(-50%, 100%); white-space: nowrap; color: var(--ink); opacity: 0; transition: opacity .4s, transform .4s var(--ease); }
.dock:hover .dock-label, .dock:focus-visible .dock-label { opacity: 1; transform: translate(-50%, 130%); }
.dock.is-light .dock-track { stroke: rgba(11, 9, 7, .18); }
.dock.is-light .dock-label { color: var(--paper-ink); }

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .work-list { width: 70%; }
}
@media (max-width: 720px) {
  .about { padding-top: 26svh; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .portrait { position: relative; top: 0; width: 78%; }
  .work-head h2 { font-size: 14.5vw; }
  .work-list a.is-on .wl-img { display: block; grid-column: 2; width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-top: 14px; border: 8px solid var(--print); border-bottom-width: 26px; transform: rotate(-1.5deg); animation: dev 1.4s var(--ease) both; }
  @keyframes dev { from { filter: brightness(2.2) saturate(0) blur(6px); opacity: 0; transform: translateY(20px) rotate(4deg); } }
  .work-list { width: 100%; gap: 5svh; }
  .work { padding-top: 30svh; }
  .wl-t { font-size: 10vw; }
  .dock { width: 104px; height: 104px; right: 14px; bottom: 14px; }
}
.portrait figcaption { gap: 12px; }
.portrait figcaption .serif-i { white-space: nowrap; }
@media (max-width: 720px) { .portrait figcaption .mono { display: none; } .portrait { padding-bottom: 54px; } }
