/* ANTI ANTI — portfolio.
   Two committed looks on one markup: "dark" (darkroom graphite, viewfinder marks) and "film" (contact sheet on warm paper). */
:root {
  --bg: #0c0d0e;
  --surface: #16171a;
  --raise: #1c1d21;
  --ink: #ece8e0;
  --muted: #94908a;
  --line: #2a2b2f;
  --accent: #d2bd93;
  --accent-ink: #141311;
  --film: #121110;
  --edge: #d9893a;
  --danger: #e8907f;
  --ok: #9cc8a0;
  --grain-opacity: 0;
  --shadow: 0 30px 60px -36px rgba(0, 0, 0, .8);

  --font-display: "Cormorant Garamond", "Garamond", "Georgia", serif;
  --font-body: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --font-hand: "Caveat", "Segoe Print", cursive;

  --display-weight: 300;
  --display-track: -0.01em;
  --radius: 2px;
  --side: max(clamp(16px, 4vw, 52px), env(safe-area-inset-left, 0px));
  --side-r: max(clamp(16px, 4vw, 52px), env(safe-area-inset-right, 0px));
  --maxw: 1360px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --t-xs: .75rem; --t-sm: .875rem; --t-md: 1rem; --t-lg: 1.25rem; --t-xl: 1.75rem; --t-2xl: 2.75rem;
  color-scheme: dark;
}
:root[data-variant="film"] {
  --bg: #ece4d5;
  --surface: #e3d8c4;
  --raise: #f3ece0;
  --ink: #2a2019;
  --muted: #73645a;
  --line: #cbbca3;
  --accent: #b9442a;
  --accent-ink: #fff6ec;
  --film: #161210;
  --edge: #e8933c;
  --danger: #a8301c;
  --ok: #3f7a48;
  --grain-opacity: .12;
  --shadow: 0 22px 44px -26px rgba(60, 36, 14, .55);
  --font-display: "Prata", "Georgia", "Times New Roman", serif;
  --display-weight: 400;
  --display-track: -0.015em;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-md);
  line-height: 1.6;
  padding-left: var(--side);
  padding-right: var(--side-r);
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60;
  background-image: url("/static/img/grain.png"); opacity: var(--grain-opacity); mix-blend-mode: multiply;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.page { max-width: var(--maxw); margin: 0 auto; }
:root:not([data-variant="film"]) .only-film { display: none !important; }
:root[data-variant="film"] .only-dark { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); text-decoration: none; }
.skip:focus { top: 12px; }

/* Photos: not a security boundary, but no casual "save image" either (see /media protections server-side). */
.protect { position: relative; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.protect img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
.protect::after { content: ""; position: absolute; inset: 0; }

.eyebrow {
  font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin: 0;
}

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 30; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  margin-inline: calc(var(--side) * -1) calc(var(--side-r) * -1);
  padding-inline: var(--side) var(--side-r);
}
.logo {
  font-family: var(--font-display); font-weight: 500; font-size: 1.1rem;
  letter-spacing: .32em; text-decoration: none; white-space: nowrap; padding-block: 8px;
}
:root[data-variant="film"] .logo { font-weight: 400; letter-spacing: .14em; }
.nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); font-size: var(--t-sm); }
.nav-links { display: flex; gap: clamp(14px, 2.2vw, 28px); }
.nav-links a { text-decoration: none; color: var(--muted); padding-block: 8px; position: relative; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="true"]::after { transform: scaleX(1); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.seg a, .seg button {
  padding: 4px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer;
}
.seg [aria-current="true"], .seg [aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.icon-link { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); transition: border-color .2s; }
.icon-link:hover { border-color: var(--accent); }
.icon-link svg { width: 16px; height: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border: 1px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink); font-weight: 500; font-size: var(--t-sm);
  text-decoration: none; cursor: pointer; letter-spacing: .03em; transition: filter .2s, transform .2s var(--ease);
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); filter: none; }
.nav .btn { padding: 9px 16px; }
.menu-btn { display: none; }
.menu { display: contents; }
@media (max-width: 900px) {
  .menu-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
  .menu-btn svg { width: 18px; height: 18px; }
  .menu {
    display: none; position: fixed; inset: var(--header-h) 0 auto 0; z-index: 29;
    flex-direction: column; align-items: stretch; gap: 18px; padding: 24px var(--side-r) 28px var(--side);
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .menu.is-open { display: flex; }
  .menu .nav-links { flex-direction: column; gap: 4px; font-size: var(--t-lg); }
  .menu .nav-links a { padding-block: 10px; color: var(--ink); }
  .menu-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
  .nav > .btn { display: none; }
}
@media (min-width: 901px) { .menu-row { display: contents; } }

/* ---------- hero bits shared with the intro (layout lives in motion.css) ---------- */
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-genres { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero-genres li + li::before { content: "/"; margin-right: 16px; opacity: .5; }
.hand-note { font-family: var(--font-hand); font-size: 1.8rem; color: var(--accent); rotate: -3deg; display: inline-block; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.scroll-cue span { display: block; width: 1px; height: 34px; background: linear-gradient(currentColor, transparent); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes af-blink { 0% { opacity: .25; } 100% { opacity: 1; } }

/* viewfinder brackets, shared by hero, gallery hover and cursor */
.vf {
  --c: var(--ink); --l: 22px; --w: 1.5px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l) no-repeat;
}

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px 32px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head > div { display: grid; gap: 10px; }
.section-title {
  margin: 0; font-family: var(--font-display); font-weight: var(--display-weight);
  letter-spacing: var(--display-track); font-size: clamp(2.8rem, 6.4vw, 5.2rem); line-height: .95; text-wrap: balance;
}
:root[data-variant="film"] .section-title { font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1; }
.genres { display: flex; flex-wrap: wrap; gap: 8px; }
#work .section-head { flex-direction: column; align-items: flex-start; }
.genres button {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 9px 15px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: var(--t-sm);
  color: var(--muted); transition: color .2s, border-color .2s, background-color .2s;
}
.genres button sup { font-family: var(--font-mono); font-size: 10px; top: 0; }
.genres button:hover { color: var(--ink); border-color: var(--muted); }
.genres button[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
:root[data-variant="film"] .genres button { border-radius: var(--radius); }

/* ---------- gallery ---------- */
.sheet { columns: 3 300px; column-gap: 20px; }
.shot { break-inside: avoid; margin: 0 0 24px; }
.shot[hidden] { display: none; }
.shot-open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--surface); cursor: zoom-in; overflow: hidden; }
.shot-open .protect img { width: 100%; opacity: 0; transform: scale(1.015); transition: opacity .6s ease, transform 1.2s var(--ease); }
.shot-open .protect img.is-loaded { opacity: 1; transform: none; }
.shot-open:hover .protect img.is-loaded { transform: scale(1.02); }
.shot-open .vf { position: absolute; inset: 6px; opacity: 0; z-index: 2; transition: opacity .2s, inset .25s var(--ease); --l: 16px; pointer-events: none; }
.shot-open:hover .vf, .shot-open:focus-visible .vf { opacity: 1; inset: 14px; }
.shot figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 9px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.shot figcaption .g { text-transform: uppercase; color: var(--ink); }
:root[data-variant="film"] .shot-open { background: var(--film); padding: 8px 8px 24px; }
:root[data-variant="film"] .shot-open .vf { display: none; }
:root[data-variant="film"] .shot-open::after {
  content: "▸ " attr(data-frame) "     " attr(data-frame) "A";
  position: absolute; left: 10px; bottom: 6px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .1em; color: var(--edge); white-space: pre;
}
.empty { padding: 48px 0; color: var(--muted); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 88px); }
.about-text { display: grid; gap: 18px; max-width: 62ch; font-size: 1.0625rem; }
.about-text p { margin: 0; }
.about-text p:first-child { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.45; }
.specs { margin: 0; display: grid; align-content: start; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 11ch minmax(0, 1fr); gap: 16px; padding-block: 13px; border-bottom: 1px solid var(--line); }
.specs dt { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.specs dd { margin: 0; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* ---------- process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 1px solid var(--ink); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: .12em; color: var(--accent); }
:root[data-variant="film"] .steps li::before { content: "▸ " counter(step) "A"; }
.steps h3 { margin: 0; font-size: var(--t-lg); font-weight: 500; }
.steps p { margin: 0; color: var(--muted); font-size: var(--t-sm); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.note-18 {
  margin-top: 36px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 20px; align-items: start;
  padding: 20px 22px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius);
}
.note-18 .badge { font-family: var(--font-mono); font-size: var(--t-sm); font-weight: 500; padding: 4px 8px; border: 1px solid var(--accent); color: var(--accent); border-radius: var(--radius); }
.note-18 p { margin: 0; color: var(--muted); font-size: var(--t-sm); max-width: 72ch; }
.note-18 strong { color: var(--ink); font-weight: 500; }

/* ---------- booking ---------- */
.booking { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 88px); }
.booking-intro { display: grid; gap: 18px; align-content: start; }
.booking-intro p { margin: 0; color: var(--muted); max-width: 44ch; }
.direct { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.direct a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--radius); font-size: var(--t-sm); text-decoration: none; color: var(--ink); transition: border-color .2s; }
.direct a:hover { border-color: var(--accent); }
.direct svg { width: 15px; height: 15px; }
.form { display: grid; gap: 20px; min-width: 0; padding: clamp(20px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.field { display: grid; gap: 7px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: var(--t-sm); color: var(--muted); padding: 0; }
.field input[type="text"], .field textarea {
  width: 100%; padding: 13px 14px; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); font-size: var(--t-md); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .65; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field .err { margin: 0; font-size: var(--t-xs); color: var(--danger); }
.field .err:empty { display: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--t-sm); color: var(--ink); background: var(--bg); transition: background-color .2s, color .2s, border-color .2s; }
:root[data-variant="film"] .chips span { border-radius: var(--radius); }
.chips label:hover span { border-color: var(--muted); }
.chips input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: center; font-size: var(--t-sm); color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
details.more summary { cursor: pointer; font-size: var(--t-sm); color: var(--muted); list-style: none; width: fit-content; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+ "; color: var(--accent); }
details.more[open] summary::before { content: "− "; }
details.more .more-body { display: grid; gap: 18px; margin-top: 16px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-note { margin: 0; font-size: var(--t-xs); color: var(--muted); max-width: 52ch; }
.form-note a { color: var(--ink); }
.form-status { margin: 0; font-size: var(--t-sm); color: var(--danger); }
.form-status:empty { display: none; }
.done { display: grid; gap: 12px; align-content: start; padding: 32px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--surface); }
.done h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--t-2xl); line-height: 1; }
.done p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .booking { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { display: grid; grid-template-columns: 1fr auto; gap: 18px 24px; padding-block: 36px 48px; border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--muted); }
.foot-brand { font-family: var(--font-display); font-size: clamp(2.4rem, 7vw, 5rem); line-height: .9; color: var(--ink); letter-spacing: .06em; font-weight: var(--display-weight); grid-column: 1 / -1; margin: 0 0 12px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
@media (max-width: 640px) { .foot { grid-template-columns: 1fr; } }

/* ---------- lightbox ---------- */
.lb { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 8, 9, .97); color: #ece8e1; }
:root[data-variant="film"] .lb { background: rgba(22, 18, 16, .97); }
.lb::backdrop { background: transparent; }
.lb[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; animation: lb-in .25s ease both; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: calc(60px + env(safe-area-inset-top, 0px)) max(72px, env(safe-area-inset-right, 0px)) 8px max(72px, env(safe-area-inset-left, 0px)); }
.lb-stage .protect { max-width: 100%; max-height: 100%; display: grid; }
.lb-stage img { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; transition: opacity .25s; }
.lb-stage img.is-loading { opacity: .25; }
.lb-bar { display: flex; justify-content: space-between; gap: 16px; padding: 12px max(20px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: #a9a49b; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: rgba(0,0,0,.35); color: #ece8e1; cursor: pointer; font-size: 18px; transition: background-color .2s; }
.lb-btn:hover { background: rgba(255,255,255,.12); }
.lb-prev { left: max(14px, env(safe-area-inset-left, 0px)); top: 50%; translate: 0 -50%; }
.lb-next { right: max(14px, env(safe-area-inset-right, 0px)); top: 50%; translate: 0 -50%; }
.lb-close { right: max(14px, env(safe-area-inset-right, 0px)); top: calc(14px + env(safe-area-inset-top, 0px)); }
@media (max-width: 640px) { .lb-stage { padding-inline: 8px; } .lb-prev, .lb-next { top: auto; bottom: calc(56px + env(safe-area-inset-bottom, 0px)); translate: none; } }

/* ---------- legal + 404 ---------- */
.legal { max-width: 74ch; padding-block: clamp(40px, 6vw, 80px); }
.legal h1 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; margin: 12px 0 28px; }
.legal h2 { font-size: var(--t-lg); font-weight: 600; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink); }
.legal .muted { color: var(--muted); }
.legal address { font-style: normal; white-space: pre-line; }
.legal .back { display: inline-block; margin-top: 40px; }

/* reveal on scroll (progressive: content is visible without JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

.reduced { scroll-behavior: auto; }
.reduced *, .reduced *::before, .reduced *::after { animation: none !important; transition: none !important; }
.reduced .reveal { opacity: 1 !important; transform: none !important; }
