/* ─────────────────────────────────────────────
   Nathan Keil — overexposed
   ───────────────────────────────────────────── */

:root {
  --paper: #f3f2ee;
  --ink: #121212;
  --ink-2: rgba(18, 18, 18, 0.56);
  --ink-3: rgba(18, 18, 18, 0.28);
  --line: rgba(18, 18, 18, 0.12);
  --glow: 0 0 1px rgba(255, 255, 255, 0.7), 0 0 28px rgba(255, 255, 255, 0.95), 0 0 80px rgba(255, 255, 255, 0.85);
  --glow-f: drop-shadow(0 0 14px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 46px rgba(255, 255, 255, 0.8));
  --gutter: clamp(16px, 2.4vw, 40px);
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --iri: conic-gradient(from 0deg, #ffd9e8, #fff2d6, #dcfff0, #d6ecff, #e9dcff, #ffd9e8);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

::selection { background: #fff; color: var(--ink); text-shadow: 0 0 18px #fff; }

a { color: inherit; text-decoration: none; }
em { font-style: italic; }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.manifesto em, .car__name em, .contact__title em, .garage__title em, .hero__tag em { font-family: var(--serif); font-weight: 400; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400; }
.label { color: var(--ink-2); display: inline-block; }

/* ── light field ─────────────────────────────── */
#light {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
}
#light.fallback {
  background:
    radial-gradient(60% 50% at 30% 30%, #fff 0%, transparent 70%),
    radial-gradient(50% 60% at 75% 70%, #fdf6ff 0%, transparent 70%),
    var(--paper);
}

.grain {
  position: fixed; inset: -50%;
  z-index: 50;
  pointer-events: none;
  opacity: 0.06;
  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%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-6%, 4%); }
  40% { transform: translate(5%, -7%); }
  60% { transform: translate(-3%, 8%); }
  80% { transform: translate(7%, 2%); }
  100% { transform: translate(0, 0); }
}

main { position: relative; z-index: 2; }

/* ── cursor ──────────────────────────────────── */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 100; }
.cursor__dot, .cursor__ring {
  position: fixed; left: 0; top: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor__dot { width: 6px; height: 6px; background: var(--ink); margin: -3px 0 0 -3px; transform: none; }
.cursor__ring {
  width: 42px; height: 42px; margin: -21px 0 0 -21px; transform: none;
  border: 1px solid var(--ink-3);
  display: grid; place-items: center;
  transition: width 0.6s var(--ease), height 0.6s var(--ease), margin 0.6s var(--ease),
              background 0.6s var(--ease), border-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.cursor__label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0; transform: scale(0.6); transition: opacity 0.4s, transform 0.6s var(--ease);
}
.cursor.is-active .cursor__ring {
  width: 96px; height: 96px; margin: -48px 0 0 -48px;
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(2px) brightness(1.1) saturate(1.8);
  -webkit-backdrop-filter: blur(2px) brightness(1.1) saturate(1.8);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.9), inset 0 0 20px rgba(255, 255, 255, 0.9);
}
.cursor.is-active .cursor__label { opacity: 1; transform: scale(1); }
.cursor.is-link .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--ink); }
.cursor.is-hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media (hover: hover) and (pointer: fine) { html, a, button { cursor: none; } }

/* ── loader ─────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  pointer-events: none;
}
.loader__mark {
  font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.02em; text-shadow: var(--glow);
}
.loader__mark span { font-family: var(--sans); font-style: normal; font-weight: 100; margin: 0 0.15em; }
.loader__count {
  position: absolute; right: var(--gutter); bottom: calc(var(--gutter) + 14px);
  display: flex; align-items: baseline; gap: 0.8rem;
}
.loader__num {
  font-family: var(--sans); font-weight: 100; font-size: clamp(4rem, 13vw, 12rem);
  line-height: 0.8; letter-spacing: -0.06em; font-variant-numeric: tabular-nums;
}
.loader__unit { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }

/* ── nav ─────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: calc(var(--gutter) * 0.9) var(--gutter);
  color: #fff; mix-blend-mode: difference;
}
.nav__mark { font-weight: 500; font-size: 15px; letter-spacing: -0.02em; justify-self: start; }
.nav__mark sup { font-family: var(--mono); font-size: 8px; margin-left: 3px; letter-spacing: 0.05em; font-weight: 400; }
.nav__meta { display: flex; gap: 1.6rem; }
.nav__clock { font-variant-numeric: tabular-nums; }
.nav__links { justify-self: end; display: flex; gap: 1.6rem; }

/* letter roll used by nav + index */
.rc { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.1; }
.rc__i { display: inline-block; position: relative; transition: transform 0.7s var(--ease); transition-delay: calc(var(--i) * 18ms); }
.rc__i::after { content: attr(data-c); position: absolute; left: 0; top: 100%; }
.roll:hover .rc__i, .row:hover .rc__i { transform: translateY(-100%); }

/* ── hero ────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: calc(var(--gutter) * 4) var(--gutter) var(--gutter);
  overflow: hidden;
}
.hero__coords {
  position: absolute; bottom: calc(var(--gutter) + 2px); left: 50%; transform: translateX(-50%);
  display: flex; gap: 1.4rem; color: var(--ink-2); white-space: nowrap;
}
.hero__title {
  margin: 0; align-self: center;
  display: flex; flex-direction: column;
  line-height: 0.82;
  filter: var(--glow-f);
}
.hero__line { display: block; white-space: nowrap; }
.hero__line--a {
  font-family: var(--sans); font-weight: 120;
  font-size: clamp(4.6rem, 22vw, 27rem);
  letter-spacing: -0.075em;
  margin-left: -0.04em;
}
.hero__line--b {
  font-size: clamp(5rem, 24vw, 30rem);
  align-self: flex-end;
  margin-top: -0.06em;
  padding-right: 0.06em;
}
.ch { display: inline-block; }

.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.hero__tag { margin: 0; font-size: clamp(1.1rem, 1.6vw, 1.5rem); line-height: 1.2; letter-spacing: -0.02em; max-width: 22ch; }
.hero__tag em { font-size: 1.15em; }
.hero__scroll { display: flex; align-items: center; gap: 0.8rem; color: var(--ink-2); }
.hero__scroll-line { display: block; width: 64px; height: 1px; background: var(--ink-3); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  animation: scrollline 2.2s var(--ease) infinite;
}
@keyframes scrollline { 0% { transform: translateX(-101%); } 55% { transform: translateX(0); } 100% { transform: translateX(101%); } }

.hero__orbit {
  position: absolute; right: 12vw; top: 18vh;
  width: clamp(110px, 12vw, 180px); aspect-ratio: 1;
  color: var(--ink-2);
}
.hero__orbit svg { width: 100%; height: 100%; overflow: visible; }
.hero__orbit text { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; fill: currentColor; }
.hero__orbit::after {
  content: ""; position: absolute; inset: 34%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #fff 30%, rgba(255,255,255,0) 72%);
  box-shadow: 0 0 60px 20px rgba(255, 255, 255, 0.9);
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.25); opacity: 0.75; } }

/* ── manifesto ───────────────────────────────── */
.manifesto { padding: 28vh var(--gutter) 22vh; }
.manifesto__text {
  margin: 4vh 0 0; max-width: 20ch;
  font-size: clamp(2rem, 5.6vw, 6.4rem);
  line-height: 1.02; letter-spacing: -0.045em; font-weight: 250;
  filter: var(--glow-f);
}
.manifesto__text em { letter-spacing: -0.02em; }
.w { display: inline-block; }

/* ── marquee ─────────────────────────────────── */
.marquee { overflow: hidden; padding: 4vh 0; border-block: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__track span {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(4rem, 13vw, 15rem); line-height: 1; white-space: nowrap;
  padding-right: 0.3em; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1px var(--ink-3);
  text-shadow: 0 0 60px rgba(255, 255, 255, 1);
}
.marquee__track i { font-style: normal; font-family: var(--sans); font-weight: 100; -webkit-text-stroke: 0; color: var(--ink-3); font-size: 0.5em; vertical-align: middle; margin: 0 0.25em; }

/* ── index ───────────────────────────────────── */
.index { position: relative; padding: 24vh var(--gutter) 20vh; }
.index__head { display: flex; justify-content: space-between; margin-bottom: 4vh; }
.index__list { list-style: none; margin: 0; padding: 0; position: relative; z-index: 2; filter: var(--glow-f); }
.row {
  position: relative;
  display: grid; grid-template-columns: 4rem 1.3fr 1fr 7rem; align-items: center; gap: 1.5rem;
  padding: clamp(14px, 2vw, 28px) 0;
  transition: opacity 0.6s var(--ease);
}
.row::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line);
  transform-origin: left; transform: scaleX(var(--line-s, 1));
}
.index__list li:last-child > .row::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.row__n, .row__y { color: var(--ink-2); }
.row__y { text-align: right; }
.row__t {
  font-size: clamp(2.2rem, 6.6vw, 7.2rem);
  font-weight: 200; letter-spacing: -0.055em; line-height: 1;

}
.row__t .rc { line-height: 1.04; padding-right: 0.02em; }
.row__d { color: var(--ink-2); font-size: clamp(0.95rem, 1.05vw, 1.1rem); letter-spacing: -0.01em; transition: color 0.5s, transform 0.8s var(--ease); }
.row:hover .row__d { color: var(--ink); transform: translateX(10px); }
.index__list:hover .row:not(:hover) { opacity: 0.22; }

.lens {
  position: fixed; left: 0; top: 0; z-index: 1;
  width: clamp(240px, 26vw, 420px); aspect-ratio: 1;
  margin: calc(clamp(240px, 26vw, 420px) / -2) 0 0 calc(clamp(240px, 26vw, 420px) / -2);
  pointer-events: none;
  opacity: 0; transform: scale(0.4);
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease);
}
.lens.is-on { opacity: 1; transform: scale(1); }
.lens__orb {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--iri);
  filter: blur(26px) saturate(1.4) hue-rotate(var(--hue, 0deg));
  transition: filter 0.8s var(--ease);
  animation: spin 9s linear infinite;
}
.lens__orb::after {
  content: ""; position: absolute; inset: 18%; border-radius: 50%;
  background: radial-gradient(circle, #fff 20%, rgba(255,255,255,0) 70%);
}
.lens__n {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: 10px; color: var(--ink-2);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── garage ──────────────────────────────────── */
.garage { position: relative; overflow: hidden; }
.garage__pin {
  display: flex; align-items: center; gap: 4vw;
  height: 100vh; width: max-content;
  padding: 0 var(--gutter);
  will-change: transform;
}
.garage__intro { width: min(38vw, 560px); flex: none; }
.garage__title {
  margin: 3vh 0 2vh; font-weight: 200;
  font-size: clamp(3rem, 8vw, 9rem); line-height: 0.9; letter-spacing: -0.06em;
  filter: var(--glow-f);
}
.garage__title em { display: block; letter-spacing: -0.02em; }
.garage__note { color: var(--ink-2); }
.garage__track { display: flex; gap: 2.4vw; }

.car {
  position: relative; flex: none;
  width: clamp(260px, 30vw, 480px); aspect-ratio: 3 / 4;
  padding: clamp(18px, 2vw, 32px);
  display: flex; flex-direction: column; justify-content: space-between;
  border-radius: 4px;
  background: linear-gradient(160deg, rgba(255,255,255,0.65), rgba(255,255,255,0.18));
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.85), 0 40px 90px -50px rgba(20, 20, 40, 0.22);
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
}
.car::before {
  content: ""; position: absolute; inset: -40%;
  background: var(--iri); opacity: 0; filter: blur(40px);
  transition: opacity 0.9s var(--ease);
  animation: spin 12s linear infinite;
  z-index: -1;
}
.car:hover::before { opacity: 0.85; }
.car__year {
  font-weight: 100; font-size: clamp(4rem, 8.6vw, 9.4rem); letter-spacing: -0.07em; line-height: 0.8;
  color: transparent; -webkit-text-stroke: 1px var(--ink-3);
  transition: color 0.8s var(--ease), -webkit-text-stroke-color 0.8s;
  text-shadow: 0 0 50px rgba(255,255,255,0.9);
}
.car:hover .car__year { color: #fff; -webkit-text-stroke-color: rgba(255,255,255,0); text-shadow: 0 0 30px #fff, 0 0 80px #fff; }
.car__name { margin: 0; font-weight: 300; font-size: clamp(1.4rem, 2.1vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.05; }
.car__name em { display: block; font-size: 1.25em; }
.car__spec { display: grid; grid-template-columns: auto 1fr; gap: 6px 1.2rem; margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-2); }
.car__spec dd { margin: 0; color: var(--ink); }

/* ── contact ─────────────────────────────────── */
.contact {
  position: relative;
  min-height: 130vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20vh var(--gutter) 0; text-align: center;
}
.contact > .label { position: absolute; top: 10vh; left: var(--gutter); }
.contact__title {
  margin: 0 0 8vh; font-weight: 200;
  font-size: clamp(3rem, 10.5vw, 13rem); line-height: 0.9; letter-spacing: -0.065em;
  filter: var(--glow-f);
}
.contact__title > * { display: block; }
.contact__title em { letter-spacing: -0.02em; font-size: 1.08em; }

.halo {
  position: relative; display: grid; place-items: center;
  width: clamp(150px, 14vw, 220px); aspect-ratio: 1; border-radius: 50%;
  will-change: transform;
}
.halo__glow {
  position: absolute; inset: -14%; border-radius: 50%;
  background: var(--iri); filter: blur(22px) saturate(1.6);
  animation: spin 7s linear infinite;
  transition: inset 0.8s var(--ease), filter 0.8s var(--ease);
}
.halo::before {
  content: ""; position: absolute; inset: 6%; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle at 40% 35%, #fff, rgba(255,255,255,0.75) 60%, rgba(255,255,255,0.4));
  box-shadow: 0 0 60px rgba(255,255,255,1), inset 0 0 0 1px rgba(255,255,255,0.9);
}
.halo__text { position: relative; z-index: 2; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; will-change: transform; }
.halo:hover .halo__glow { inset: -30%; filter: blur(30px) saturate(2.2); }

.foot {
  width: 100%; margin-top: auto;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 4vh 0 var(--gutter); border-top: 1px solid var(--line);
  color: var(--ink-2);
}
.contact { padding-bottom: 0; }
.contact__title { margin-top: auto; }
.halo { margin-bottom: auto; }
.foot__links { display: flex; gap: 1.6rem; }
.foot a:hover { color: var(--ink); }

/* ── responsive ──────────────────────────────── */
@media (max-width: 900px) {
  .nav__meta { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .hero__orbit { right: 6vw; top: 14vh; }
  .hero__coords { left: auto; right: var(--gutter); transform: none; bottom: calc(var(--gutter) + 40px); flex-direction: column; gap: 4px; text-align: right; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 1.2rem; }

  .row { grid-template-columns: 2.4rem 1fr auto; grid-template-areas: "n t y" ". d d"; gap: 0.4rem 0.8rem; }
  .row__n { grid-area: n; } .row__t { grid-area: t; } .row__y { grid-area: y; } .row__d { grid-area: d; }
  .lens { display: none; }

  .garage { overflow: visible; }
  .garage__pin { display: block; width: auto; height: auto; padding: 18vh 0 10vh; }
  .garage__intro { width: auto; padding: 0 var(--gutter); margin-bottom: 5vh; }
  .garage__track {
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 2rem;
    scrollbar-width: none; gap: 14px;
  }
  .garage__track::-webkit-scrollbar { display: none; }
  .car { width: 78vw; scroll-snap-align: center; }
}

@media (max-width: 520px) {
  .nav__links { gap: 1rem; }
  .foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .lens__orb, .halo__glow, .car::before, .hero__orbit::after, .hero__scroll-line::after { animation: none; }
  .loader { display: none; }
}

/* mobile composition */
@media (max-width: 900px) {
  .hero__line--a { font-size: 27vw; }
  .hero__line--b { font-size: 30vw; margin-top: 0; }
  .hero__title { margin-top: 6vh; }
  .contact { min-height: 100svh; }
  .contact__title { font-size: 15vw; }
  .foot { text-align: left; align-items: flex-start; }
  .manifesto { padding: 18vh var(--gutter) 14vh; }
  .index { padding: 16vh var(--gutter) 12vh; }
  .row { padding: 18px 0 26px; }
}

/* links in copy */
.manifesto__link { position: relative; color: inherit; }
.manifesto__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 1px;
  background: currentColor; opacity: 0.35;
  transform-origin: right; transition: transform 0.9s var(--ease), opacity 0.6s;
}
.manifesto__link:hover::after { opacity: 1; transform: scaleX(0); transform-origin: left; animation: relink 0.9s 0.35s var(--ease) forwards; }
@keyframes relink { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.contact .halo { margin-bottom: 0; }
.contact__mail { margin: 4vh 0 auto; color: var(--ink-2); font-size: 12px; text-transform: none; letter-spacing: 0.04em; transition: color 0.4s; }
.contact__mail:hover { color: var(--ink); }

/* ─────────────────────────────────────────────
   Project pages
   ───────────────────────────────────────────── */
.p-hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--gutter) * 5) var(--gutter) var(--gutter);
  overflow: hidden;
}
.p-hero__num {
  position: absolute; right: -2vw; top: 3vh; pointer-events: none;
  font-weight: 100; font-size: clamp(14rem, 44vw, 52rem); line-height: 0.8; letter-spacing: -0.08em;
  color: transparent; -webkit-text-stroke: 1px var(--ink-3);
}
.p-back { position: absolute; top: calc(var(--gutter) * 3.4); left: var(--gutter); color: var(--ink-2); z-index: 2; }
.p-back:hover { color: var(--ink); }
.p-hero__body { position: relative; margin-bottom: 6vh; }
.p-title {
  margin: 2vh 0 2.6vh; font-weight: 150;
  font-size: clamp(3.6rem, 14vw, 17rem); line-height: 0.86; letter-spacing: -0.065em;
  filter: var(--glow-f);
}
.p-lede { margin: 0; text-wrap: balance; font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3.4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.01em; max-width: 22ch; }
.p-meta { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin: 0; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.p-meta dt { color: var(--ink-2); margin-bottom: 0.55rem; }
.p-meta dd { margin: 0; color: var(--ink); font-size: 12px; text-transform: none; letter-spacing: 0.02em; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 8px; vertical-align: middle; background: #4fcf86; box-shadow: 0 0 10px #4fcf86; animation: breathe 2.4s ease-in-out infinite; }

.p-spec { padding: 12vh var(--gutter) 10vh; perspective: 1400px; }
.glass {
  position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: 6px;
  background: linear-gradient(160deg, rgba(255,255,255,0.72), rgba(255,255,255,0.28));
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.95), 0 0 80px rgba(255,255,255,0.9), 0 60px 120px -60px rgba(20,20,40,0.28);
  transform-origin: center top;
}
.glass .spec { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: inherit; }
.glass figcaption { position: absolute; left: 0; right: 0; top: 100%; margin-top: 16px; display: flex; justify-content: space-between; color: var(--ink-2); }
.spec__live i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #ff5a7a; box-shadow: 0 0 10px #ff5a7a; margin-right: 8px; vertical-align: middle; animation: breathe 1.6s ease-in-out infinite; }

.p-brief { display: grid; grid-template-columns: 1fr 3fr; gap: 2rem; padding: 22vh var(--gutter) 16vh; }
.p-brief__text { margin: 0; font-size: clamp(1.7rem, 3.6vw, 4rem); line-height: 1.08; letter-spacing: -0.04em; font-weight: 250; filter: var(--glow-f); }

.p-how { padding: 6vh var(--gutter) 14vh; }
.p-how__list { list-style: none; margin: 4vh 0 0; padding: 0; }
.step { position: relative; display: grid; grid-template-columns: 4rem 1.1fr 1.4fr; gap: 1.5rem; align-items: baseline; padding: clamp(22px, 3vw, 44px) 0; }
.step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: left; transform: scaleX(var(--line-s, 1)); }
.step:last-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.step__n { color: var(--ink-2); }
.step__h { margin: 0; font-weight: 250; font-size: clamp(1.6rem, 3vw, 3.2rem); line-height: 1.05; letter-spacing: -0.04em; transition: transform 0.8s var(--ease); }
.step:hover .step__h { transform: translateX(12px); }
.step__p { margin: 0; color: var(--ink-2); font-size: clamp(1rem, 1.15vw, 1.15rem); line-height: 1.5; letter-spacing: -0.005em; max-width: 46ch; transition: color 0.5s; }
.step:hover .step__p { color: var(--ink); }

.p-stack { padding: 6vh var(--gutter) 18vh; display: flex; flex-direction: column; align-items: flex-start; gap: 4vh; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 12px 18px; border-radius: 999px; color: var(--ink);
  background: rgba(255,255,255,0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.95), 0 10px 30px -18px rgba(20,20,40,0.25);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.chip:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px #fff, 0 0 30px #fff, 0 14px 30px -14px rgba(20,20,40,0.3); }
.halo--sm { width: clamp(120px, 10vw, 160px); margin: 2vh 0 0; }

.p-next { min-height: 120vh; display: flex; flex-direction: column; padding: 18vh var(--gutter) 0; }
.p-next__link { margin: auto 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3vh; }
.p-next__title {
  font-weight: 150; font-size: clamp(3.4rem, 13vw, 16rem); line-height: 0.88; letter-spacing: -0.065em;
  filter: var(--glow-f); transition: letter-spacing 1.2s var(--ease);
}
.p-next__link:hover .p-next__title { letter-spacing: -0.03em; }
.p-next__lede { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2vw, 2rem); color: var(--ink-2); }
.p-next .foot { margin-top: 12vh; }

@media (max-width: 900px) {
  .p-hero__num { font-size: 72vw; top: 11vh; }
  .p-title { font-size: 17vw; }
  .p-meta { grid-template-columns: 1fr 1fr; row-gap: 1.4rem; }
  .glass { aspect-ratio: 4 / 5; }
  .p-brief { grid-template-columns: 1fr; padding: 16vh var(--gutter) 12vh; }
  .step { grid-template-columns: 2.4rem 1fr; row-gap: 0.8rem; }
  .step__p { grid-column: 2; }
  .p-next { min-height: 100svh; }
  .p-next__title { font-size: 16vw; }
}

/* ─────────────────────────────────────────────
   Film
   ───────────────────────────────────────────── */
/* a print developing: starts blown out to white, comes up into colour */
.dev { position: relative; margin: 0; overflow: hidden; background: #fbfaf7; }
.dev img {
  display: block; width: 100%; height: auto;
  filter: brightness(2.1) contrast(0.55) saturate(0) blur(5px);
  transform: scale(1.035);
  transition: filter 2.6s cubic-bezier(0.2, 0.65, 0.15, 1), transform 3.2s cubic-bezier(0.2, 0.65, 0.15, 1);
  transition-delay: inherit;
}
.dev.is-developed img,
.roll-row:hover .dev--hover img,
.roll-row:focus-visible .dev--hover img { filter: none; transform: none; }
.dev--hover img { transition-duration: 1.1s, 1.5s; filter: brightness(1.6) contrast(0.7) saturate(0.15) blur(2px); }
.roll-row__strip .dev:nth-child(2) img { transition-delay: 60ms; }
.roll-row__strip .dev:nth-child(3) img { transition-delay: 120ms; }
.roll-row__strip .dev:nth-child(4) img { transition-delay: 180ms; }
.roll-row__strip .dev:nth-child(5) img { transition-delay: 240ms; }
.roll-row__strip .dev:nth-child(6) img { transition-delay: 300ms; }

/* home: contact-sheet rows */
.film { position: relative; padding: 16vh var(--gutter) 20vh; }
.film__list { list-style: none; margin: 0; padding: 0; }
.roll-row {
  position: relative;
  display: grid; grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.45fr) 4.5rem; align-items: center; gap: 1.5rem;
  padding: clamp(16px, 2vw, 30px) 0;
  transition: opacity 0.6s var(--ease);
}
.roll-row::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line);
  transform-origin: left; transform: scaleX(var(--line-s, 1));
}
.film__list li:last-child > .roll-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.roll-row__t { filter: var(--glow-f); }
.roll-row__title {
  display: block; font-weight: 200; font-size: clamp(2rem, 5vw, 5.6rem); line-height: 1; letter-spacing: -0.055em;
  transition: transform 0.9s var(--ease);
}
.roll-row__sub { display: block; margin-top: 0.7rem; color: var(--ink-2); font-family: var(--serif); font-style: italic; font-size: clamp(1rem, 1.35vw, 1.4rem); }
.roll-row:hover .roll-row__title { transform: translateX(10px); }
.roll-row__strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; }
.roll-row__strip .dev { aspect-ratio: 3 / 2; }
.roll-row__strip .dev img { height: 100%; object-fit: cover; }
.film__list:hover .roll-row:not(:hover) { opacity: 0.28; }

/* garage: photo panels between the spec cards */
.gphoto { position: relative; flex: none; display: block; height: calc(clamp(260px, 30vw, 480px) * 4 / 3); }
.gphoto .dev { height: 100%; border-radius: 2px; box-shadow: 0 40px 90px -50px rgba(20, 20, 40, 0.35), 0 0 60px rgba(255, 255, 255, 0.8); }
.gphoto .dev img { width: auto; height: 100%; max-width: none; }
.gphoto__cap { position: absolute; left: 0; top: calc(100% + 12px); color: var(--ink-2); white-space: nowrap; }

/* project pages: a band of frames */
.p-photos { padding: 4vh var(--gutter) 6vh; }
.p-photos__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 28px); margin-top: 3vh; align-items: start; }
.p-photo { display: block; }
.p-photo .mono { display: block; margin-top: 10px; color: var(--ink-2); }
.p-photo:hover .mono { color: var(--ink); }

/* /film/<roll>/ contact sheet */
.f-hero { min-height: 92svh; }
.sheet { padding: 10vh var(--gutter) 16vh; }
.sheet__grid {
  list-style: none; margin: 4vh 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.6vw, 44px) clamp(12px, 1.6vw, 28px);
}
.frame { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 20vh; }
.frame--pano { grid-column: span 2; }
.frame__btn { all: unset; display: block; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .frame__btn { cursor: none; } }
.frame__btn .dev { aspect-ratio: 3 / 2; display: grid; place-items: center; background: #f6f5f1; box-shadow: 0 30px 70px -45px rgba(20, 20, 40, 0.3); }
.frame__btn .dev img { width: 100%; height: 100%; object-fit: contain; }
.frame--pano .frame__btn .dev { aspect-ratio: auto; }
.frame--pano .frame__btn .dev img { height: auto; }
.frame__btn:hover .dev.is-developed img { transform: scale(1.012); }
.frame__btn:focus-visible { outline: 1px solid var(--ink); outline-offset: 5px; }
.frame__n { display: flex; gap: 12px; color: var(--ink-2); }
.frame__n b { color: var(--ink); font-weight: 500; }

/* frame viewer */
html.lb-open { overflow: hidden; }
.lb {
  position: fixed; inset: 0; z-index: 80;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 14px;
  padding: calc(var(--gutter) * 0.9) var(--gutter);
  background: rgba(246, 245, 241, 0.95);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }
.lb button { all: unset; cursor: pointer; padding: 8px 2px; color: var(--ink-2); transition: color 0.3s; }
.lb button:hover, .lb button:focus-visible { color: var(--ink); }
.lb button:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .lb button { cursor: none; } }
.lb .lb__close { justify-self: end; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.lb__fig { margin: 0; min-height: 0; display: grid; place-items: center; }
.lb__img {
  width: auto; height: auto; max-width: 100%; max-height: calc(100svh - 150px); object-fit: contain;
  box-shadow: 0 60px 140px -70px rgba(20, 20, 40, 0.5);
  filter: brightness(2.4) contrast(0.5) saturate(0) blur(10px); transform: scale(0.985);
  transition: filter 1.8s cubic-bezier(0.2, 0.65, 0.15, 1), transform 2s cubic-bezier(0.2, 0.65, 0.15, 1);
}
.lb.is-dev .lb__img { filter: none; transform: none; }
.lb__bar { display: flex; justify-content: space-between; align-items: center; color: var(--ink-2); }

@media (max-width: 1100px) {
  .sheet__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .roll-row { grid-template-columns: 2.4rem minmax(0, 1fr) auto; grid-template-areas: "n t y" "s s s"; gap: 0.9rem 0.8rem; padding: 18px 0 24px; }
  .roll-row .row__n { grid-area: n; } .roll-row__t { grid-area: t; } .roll-row .row__y { grid-area: y; } .roll-row__strip { grid-area: s; }
  .gphoto { height: auto; width: 88vw; scroll-snap-align: center; align-self: center; }
  .gphoto .dev { height: auto; }
  .gphoto .dev img { width: 100%; height: auto; }
  .gphoto__cap { position: static; display: block; margin-top: 10px; }
  .p-photos__row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  /* phones: two across, like a real contact sheet; tap a frame for the full view */
  .sheet__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 8px; }
  .frame { gap: 6px; }
  .frame__n { font-size: 9px; gap: 8px; }
  .frame__n .cap { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .dev img, .lb__img { transition: none; }
}

/* ── loupe (contact sheets, desktop) ───────── */
.loupe { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 95; pointer-events: none; will-change: transform; }
.loupe__lens, .loupe__rim {
  position: absolute; left: -84px; top: -84px; width: 168px; height: 168px; border-radius: 50%;
  opacity: 0; transform: scale(0.9);
  transition: opacity 0.35s ease, transform 0.6s var(--ease);
}
.loupe__lens {
  background-color: #efeee9; background-repeat: no-repeat;
  box-shadow: 0 24px 50px -20px rgba(18, 18, 24, 0.45), 0 2px 6px rgba(18, 18, 24, 0.1);
}
/* hairline rim, a whisper of glass: a thin outer ring, inner falloff and one soft highlight */
.loupe__rim {
  background: radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 36%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.8),
    inset 0 0 26px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(18, 18, 18, 0.2),
    0 0 0 7px rgba(255, 255, 255, 0.18);
}
.loupe__read {
  position: absolute; left: 0; top: 98px; transform: translateX(-50%);
  white-space: nowrap; font-size: 10px; letter-spacing: 0.14em; color: var(--ink-2);
  text-shadow: 0 0 10px #fff, 0 0 2px #fff;
  opacity: 0; transition: opacity 0.35s ease;
}
.loupe.is-on .loupe__lens, .loupe.is-on .loupe__rim { opacity: 1; transform: none; }
.loupe.is-on .loupe__read { opacity: 1; transition-delay: 0.12s; }
.cursor { transition: opacity 0.25s ease; }
.cursor.is-loupe { opacity: 0; }

/* ── captions ─────────────────────────────── */
.frame__n .cap, .gphoto__cap .cap {
  font-family: var(--serif); font-style: italic; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink);
}

/* ── effects toggle (footer) ─────────────── */
.fx-toggle { all: unset; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; transition: color 0.3s; }
.fx-toggle:hover { color: var(--ink); }
.fx-toggle:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .fx-toggle { cursor: none; } }

/* ── lite effects: same look, far less GPU ─ */
html.fx-lite { --glow-f: none; }
html.fx-lite .grain { display: none; }
html.fx-lite .car, html.fx-lite .glass, html.fx-lite .chip, html.fx-lite .lb,
html.fx-lite .cursor.is-active .cursor__ring { backdrop-filter: none; -webkit-backdrop-filter: none; }
html.fx-lite .lb { background: rgba(246, 245, 241, 0.985); }
html.fx-lite .car { background: rgba(255, 255, 255, 0.72); }
html.fx-lite .dev img { filter: brightness(2.1) contrast(0.55) saturate(0); transition-duration: 1.6s, 1.8s; }
html.fx-lite .dev--hover img { filter: brightness(1.6) contrast(0.7) saturate(0.15); }
html.fx-lite .dev.is-developed img, html.fx-lite .roll-row:hover .dev--hover img { filter: none; }
html.fx-lite .lb__img { filter: brightness(2.4) contrast(0.5) saturate(0); }
html.fx-lite .lb.is-dev .lb__img { filter: none; }
html.fx-lite .halo__glow, html.fx-lite .lens__orb, html.fx-lite .car::before, html.fx-lite .hero__orbit::after { animation: none; }

/* ── /now/ ────────────────────────────────── */
.now-hero { min-height: 72svh; }
.now { padding: 4vh var(--gutter) 6vh; }
.now__list { list-style: none; margin: 0; padding: 0; }
.now__item {
  display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 2rem; align-items: baseline;
  padding: clamp(20px, 2.6vw, 38px) 0; border-top: 1px solid var(--line);
}
.now__item:last-child { border-bottom: 1px solid var(--line); }
.now__item time { color: var(--ink-2); }
.now__item p { margin: 0; max-width: 34ch; font-size: clamp(1.3rem, 2.3vw, 2.2rem); font-weight: 300; line-height: 1.18; letter-spacing: -0.025em; filter: var(--glow-f); }
.now-end { min-height: 0; padding-top: 10vh; }

/* ── 404 ──────────────────────────────────── */
.nf { min-height: 100svh; }
.nf .p-title { font-size: clamp(3.6rem, 15vw, 18rem); }
.nf__links { position: relative; display: flex; flex-wrap: wrap; gap: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.nf__links a { color: var(--ink); }

@media (max-width: 900px) {
  .now__item { grid-template-columns: 1fr; gap: 0.6rem; }
}
