/* ============================================================
   SCULPTED IN SHADOWS — main stylesheet
   Fine art boudoir & nude photography, Melbourne
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../assets/fonts/cormorant-300.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../assets/fonts/cormorant-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../assets/fonts/cormorant-400i.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../assets/fonts/cormorant-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../assets/fonts/jost-300.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../assets/fonts/jost-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../assets/fonts/jost-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- Tokens & reset ---------- */
:root {
  color-scheme: dark;
  --bg: #0b0a09;
  --bg-2: #14120f;
  --ink: #e9e2d4;
  --ink-dim: #a89f8e;
  --muted: #8a8172;
  --gold: #b3915a;
  --gold-soft: rgba(179, 145, 90, 0.35);
  --line: rgba(233, 226, 212, 0.12);
  --line-strong: rgba(233, 226, 212, 0.4);
  --gold-border: rgba(179, 145, 90, 0.65);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.87, 0, 0.13, 1);
}

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

html { scroll-behavior: initial; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection { background: var(--gold); color: var(--bg); }

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Image protection (deterrent) */
.protected img, .protected video {
  -webkit-user-select: none; user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
}

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; }

/* ---------- Utility ---------- */
.container { width: min(1440px, 92vw); margin-inline: auto; }
.label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.hairline { width: 100%; height: 1px; background: var(--line); border: 0; }

/* ---------- Film grain (static — no flicker) ---------- */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Candlelight — a very slow, smooth ambient glow (≈45s loop, no flicker) */
.grain::after {
  content: '';
  position: absolute; inset: -30%;
  background: radial-gradient(ellipse 45% 38% at 30% 35%,
              rgba(179, 145, 90, 0.10), transparent 70%);
  animation: candle-drift 45s ease-in-out infinite alternate;
}
@keyframes candle-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(12%, 8%) scale(1.15); }
}
html[data-theme="light"] .grain::after { display: none; }
@media (prefers-reduced-motion: reduce) {
  .grain::after { animation: none; }
}

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 6000;
  border-radius: 50%;
  will-change: transform;
}
.cursor-dot {
  width: 5px; height: 5px;
  background: var(--gold);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              background-color 0.35s, border-color 0.35s;
}
.cursor-ring span {
  font-size: 0.55rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--bg); opacity: 0;
  transition: opacity 0.25s;
}
.cursor-ring.is-view {
  width: 84px; height: 84px;
  background: var(--gold);
  border-color: var(--gold);
}
.cursor-ring.is-view span { opacity: 1; }
.cursor-ring.is-link { width: 60px; height: 60px; border-color: var(--gold); }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}
@media (hover: hover) and (pointer: fine) {
  html.js body, html.js a, html.js button, html.js .check-row, html.js .masonry-item { cursor: none; }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 5000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2rem;
}
.preloader-word {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 3rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  display: flex;
  overflow: hidden;
}
.preloader-word span { display: inline-block; transform: translateY(120%); white-space: pre; }
.preloader-count {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: var(--muted);
}
.preloader-line {
  width: min(320px, 60vw); height: 1px;
  background: var(--line);
  position: relative; overflow: hidden;
}
.preloader-line::after {
  content: ''; position: absolute; inset: 0;
  background: var(--gold);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

/* ---------- Page transition veil ---------- */
.veil {
  position: fixed; inset: 0;
  background: var(--bg-2);
  z-index: 4500;
  transform: scaleY(0);
  transform-origin: top;
  pointer-events: none;
}
.veil-brand {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); letter-spacing: 0.4em; text-transform: uppercase;
  font-size: 0.9rem; color: var(--gold);
  opacity: 0;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 3000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem clamp(1.2rem, 4vw, 3.4rem);
  transition: transform 0.6s var(--ease-out), background 0.5s;
}
.nav.is-scrolled {
  background: linear-gradient(rgba(11, 10, 9, 0.88), rgba(11, 10, 9, 0));
}
.nav.is-hidden { transform: translateY(-110%); }
.nav-logo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-logo em { font-style: normal; color: var(--gold); }
.nav-links { display: flex; gap: 2.4rem; list-style: none; }
.nav-links a {
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  position: relative; padding: 0.4rem 0;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a.is-active::after {
  transform: scaleX(1); transform-origin: left;
}
.nav-burger {
  display: none;
  flex-direction: column; gap: 7px;
  padding: 0.6rem 0.2rem;
  z-index: 3200;
}
.nav-burger i {
  display: block; width: 30px; height: 1px;
  background: var(--ink);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* Fullscreen menu (mobile / burger) */
.menu-overlay {
  position: fixed; inset: 0;
  background: var(--bg-2);
  z-index: 3100;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(2rem, 8vw, 7rem);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}
.menu-overlay ul { list-style: none; }
.menu-overlay li { overflow: hidden; }
.menu-overlay a {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  line-height: 1.28;
  letter-spacing: 0.04em;
  transform: translateY(110%);
  transition: color 0.3s;
}
.menu-overlay a:hover { color: var(--gold); font-style: italic; }
.menu-overlay .menu-foot {
  margin-top: 3rem;
  font-size: 0.8rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-dim);
}
body.menu-open .nav-burger i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .nav-burger i:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh; min-height: 620px;
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  transform: scale(1.15);
  filter: brightness(0.72) contrast(1.05);
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,10,9,0.55) 0%, rgba(11,10,9,0.05) 35%, rgba(11,10,9,0.88) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  padding: 0 clamp(1.2rem, 4vw, 3.4rem) clamp(2.4rem, 6vh, 5rem);
}
.hero-kicker { margin-bottom: 1.4rem; opacity: 0; }
.hero-title {
  font-size: clamp(3rem, 11.5vw, 11rem);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); }
.hero-title em { font-style: italic; color: var(--gold); text-transform: none; letter-spacing: 0; }
.hero-meta {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 2.2rem; gap: 2rem;
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0;
}
.hero-scroll {
  position: absolute; z-index: 2;
  right: clamp(1.2rem, 4vw, 3.4rem); top: 50%;
  transform: translateY(-50%) rotate(90deg); transform-origin: center;
  font-size: 0.68rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--ink-dim);
  display: flex; align-items: center; gap: 1rem;
}
.hero-scroll::after {
  content: ''; width: 56px; height: 1px; background: var(--gold);
  animation: scroll-pulse 2.2s var(--ease-out) infinite;
}
@keyframes scroll-pulse {
  0% { transform: scaleX(0); transform-origin: left; }
  50% { transform: scaleX(1); transform-origin: left; }
  51% { transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(7rem, 16vh, 12rem) 0; }
.manifesto-text {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.6vw, 3.2rem);
  line-height: 1.42;
  font-weight: 300;
  max-width: 30ch;
  margin-inline: auto;
  text-align: center;
}
.manifesto-text .word { display: inline-block; }
html.js .manifesto-text .word { opacity: 0.35; }
.manifesto-text em { color: var(--gold); }

/* ---------- Selected works ---------- */
.works { padding-bottom: clamp(5rem, 12vh, 9rem); }
.works-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: clamp(2.4rem, 6vh, 4.4rem);
  gap: 2rem;
}
.works-head h2 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 300; }
.works-head .label { flex-shrink: 0; }
.works-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2.5vw, 2.4rem);
}
.work-card { position: relative; display: block; }
.work-card:nth-child(1) { grid-column: 1 / 6; margin-top: 0; }
.work-card:nth-child(2) { grid-column: 7 / 13; margin-top: clamp(4rem, 12vh, 9rem); }
.work-card:nth-child(3) { grid-column: 1 / 7; margin-top: clamp(-3rem, -4vh, -1rem); }
.work-card:nth-child(4) { grid-column: 8 / 13; margin-top: clamp(3rem, 9vh, 7rem); }
.work-card figure {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-2);
}
.work-card:nth-child(2) figure { aspect-ratio: 4 / 5; }
.work-card:nth-child(3) figure { aspect-ratio: 4 / 3; }
.work-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  filter: grayscale(0.55) brightness(0.85);
  transition: filter 0.9s var(--ease-out), transform 1.2s var(--ease-out);
  will-change: transform;
}
.work-card:hover img { filter: grayscale(0) brightness(1); transform: scale(1.04); }
.work-card figcaption {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 1.1rem;
}
.work-card .work-name {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  transition: color 0.4s;
}
.work-card:hover .work-name { color: var(--gold); font-style: italic; }
.work-card .work-idx {
  font-size: 0.68rem; letter-spacing: 0.3em; color: var(--muted);
}
@media (max-width: 760px) {
  .works-grid { grid-template-columns: 1fr; }
  .work-card { grid-column: 1 / -1 !important; margin-top: 0 !important; }
}

/* ---------- Marquee ---------- */
.marquee {
  padding: clamp(3rem, 8vh, 5.5rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track { display: inline-flex; will-change: transform; }
.marquee-track span {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 6rem);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-right: 2.5rem;
  color: transparent;
  -webkit-text-stroke: 1px rgba(233, 226, 212, 0.55);
}
.marquee-track span em { font-style: italic; color: var(--gold); -webkit-text-stroke: 0; }

/* ---------- Aerial video ---------- */
.aerial { position: relative; padding: clamp(6rem, 14vh, 11rem) 0; }
.aerial-frame {
  position: relative; overflow: hidden;
  width: min(1200px, 88vw);
  margin-inline: auto;
  aspect-ratio: 16 / 9;
}
.aerial-frame video {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.25);
}
.aerial-caption {
  display: flex; justify-content: space-between;
  width: min(1200px, 88vw); margin: 1.2rem auto 0;
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- CTA ---------- */
.cta {
  padding: clamp(7rem, 18vh, 13rem) 0;
  text-align: center;
}
.cta h2 {
  font-size: clamp(2.6rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1.1;
  margin: 1.6rem 0 2.8rem;
}
.cta h2 em { color: var(--gold); }
.btn {
  display: inline-flex; align-items: center; gap: 1rem;
  padding: 1.15rem 2.6rem;
  border: 1px solid var(--gold-border);
  border-radius: 100px;
  font-size: 0.72rem; letter-spacing: 0.34em; text-transform: uppercase;
  position: relative; overflow: hidden;
  transition: color 0.45s var(--ease-out), border-color 0.45s;
  isolation: isolate;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-expo);
  border-radius: inherit;
}
.btn:hover { color: var(--bg); border-color: var(--gold); }
.btn:hover::before { transform: translateY(0); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 7vh, 5rem) 0 2.4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.4rem;
}
.footer-brand {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem; letter-spacing: 0.28em; text-transform: uppercase;
}
.footer-brand em { font-style: normal; color: var(--gold); }
.footer p.tag { color: var(--muted); margin-top: 1rem; max-width: 34ch; font-size: 0.9rem; }
.footer h4 {
  font-family: var(--sans); font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: 1.2rem;
}
.footer ul { list-style: none; }
.footer ul a {
  display: inline-block; padding: 0.5rem 0;
  font-size: 0.9rem; color: var(--ink-dim);
  transition: color 0.3s, transform 0.3s;
}
.footer ul a:hover { color: var(--gold); transform: translateX(6px); }
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding-top: 1.8rem; border-top: 1px solid var(--line);
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: clamp(9rem, 22vh, 14rem) 0 clamp(3rem, 7vh, 5rem);
}
.page-hero .label { display: block; margin-bottom: 1.4rem; }
.page-hero h1 {
  font-size: clamp(3rem, 9vw, 7.6rem);
  font-weight: 300;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.page-hero h1 .line { display: block; overflow: hidden; }
.page-hero h1 .line > span { display: inline-block; transform: translateY(110%); }
.page-hero h1 em { font-style: italic; text-transform: none; color: var(--gold); }
.page-hero .page-intro {
  margin-top: 2rem; max-width: 52ch;
  color: var(--ink-dim); font-size: 1.02rem;
}

/* ---------- Gallery ---------- */
.gallery { padding-bottom: clamp(5rem, 10vh, 8rem); }
.masonry { column-count: 3; column-gap: clamp(0.8rem, 1.6vw, 1.4rem); }
@media (max-width: 1100px) { .masonry { column-count: 2; } }
@media (max-width: 620px)  { .masonry { column-count: 1; } }
.masonry-item {
  break-inside: avoid;
  margin-bottom: clamp(0.8rem, 1.6vw, 1.4rem);
  position: relative; overflow: hidden;
  cursor: pointer;
}
html.js .masonry-item { opacity: 0; transform: translateY(60px); }
.masonry-item img {
  width: 100%;
  height: auto;
  transform: scale(1.001);
  transition: transform 1s var(--ease-out), filter 0.8s;
}
.masonry-item:hover img { transform: scale(1.06); filter: brightness(1.08); }
.masonry-item::after {
  content: attr(data-idx);
  position: absolute; left: 1rem; bottom: 0.8rem;
  font-size: 0.68rem; letter-spacing: 0.3em; color: var(--ink);
  opacity: 0; transition: opacity 0.4s;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}
.masonry-item:hover::after { opacity: 0.85; }

/* Gallery pager (bottom nav between galleries) */
.gallery-next {
  border-top: 1px solid var(--line);
  padding: clamp(4rem, 10vh, 7rem) 0;
  text-align: center;
}
.gallery-next .label { display: block; margin-bottom: 1rem; }
.gallery-next a.next-link {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  font-weight: 300;
  transition: color 0.4s, letter-spacing 0.6s var(--ease-out);
}
.gallery-next a.next-link:hover { color: var(--gold); font-style: italic; letter-spacing: 0.05em; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(8, 7, 6, 0.97);
  z-index: 3500;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
}
.lightbox figure {
  max-width: 90vw; max-height: 86vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox img {
  max-width: 90vw; max-height: 86vh;
  width: auto; height: auto;
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0,0,0,0.7);
}
.lightbox-close {
  position: absolute; top: 1.6rem; right: 2rem;
  font-size: 0.72rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--ink-dim); padding: 0.8rem;
  transition: color 0.3s;
}
.lightbox-close:hover { color: var(--gold); }
.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  padding: 1.4rem;
  font-family: var(--serif); font-size: 2rem; color: var(--ink-dim);
  transition: color 0.3s, transform 0.3s;
  user-select: none;
}
.lightbox-arrow:hover { color: var(--gold); }
.lightbox-prev { left: 1rem; }
.lightbox-prev:hover { transform: translateY(-50%) translateX(-5px); }
.lightbox-next { right: 1rem; }
.lightbox-next:hover { transform: translateY(-50%) translateX(5px); }
.lightbox-count {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; letter-spacing: 0.4em; color: var(--ink-dim);
}

/* ---------- Consent gate ---------- */
.gate {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 4400;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 2rem;
}
.gate-inner { max-width: 560px; }
.gate-inner .label { display: block; margin-bottom: 1.6rem; }
.gate-inner h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 300; line-height: 1.15;
  margin-bottom: 1.6rem;
}
.gate-inner h2 em { color: var(--gold); }
.gate-inner p { color: var(--ink-dim); margin-bottom: 2.6rem; font-size: 0.95rem; }
.gate-actions { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }
.btn-ghost {
  display: inline-flex;
  padding: 1.15rem 2.6rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.72rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--muted);
  transition: color 0.4s, border-color 0.4s;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-dim); }

/* ---------- About page ---------- */
.about-grid {
  display: grid; grid-template-columns: 5fr 6fr;
  gap: clamp(2.4rem, 6vw, 6rem);
  align-items: start;
  padding-bottom: clamp(5rem, 12vh, 9rem);
}
.about-photo { position: relative; overflow: hidden; }
.about-photo img { width: 100%; filter: brightness(0.92); }
.about-copy h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 300; line-height: 1.25;
  margin-bottom: 1.8rem;
}
.about-copy h2 em { color: var(--gold); }
.about-copy p { color: var(--ink-dim); margin-bottom: 1.3rem; max-width: 58ch; }
.about-copy strong { color: var(--ink); font-weight: 400; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.process { padding-bottom: clamp(6rem, 14vh, 10rem); }
.process-head { margin-bottom: clamp(2.4rem, 6vh, 4rem); }
.process-head h2 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 300; margin-top: 1rem; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.process-step { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.process-step .num {
  font-family: var(--serif); font-size: 2.4rem; color: var(--gold);
  display: block; margin-bottom: 0.9rem;
}
.process-step h3 { font-size: 1.35rem; margin-bottom: 0.7rem; }
.process-step p { font-size: 0.88rem; color: var(--ink-dim); }
@media (max-width: 960px) { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-steps { grid-template-columns: 1fr; } }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: clamp(3rem, 7vw, 7rem);
  padding-bottom: clamp(6rem, 14vh, 10rem);
}
.contact-aside p { color: var(--ink-dim); max-width: 40ch; margin-bottom: 2.4rem; }
.contact-aside .big-mail {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  color: var(--ink);
  display: inline-block;
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 0.3rem;
  transition: color 0.4s, border-color 0.4s;
  word-break: break-all;
}
.contact-aside .big-mail:hover { color: var(--gold); border-color: var(--gold); }
.contact-meta { margin-top: 3rem; display: grid; gap: 1.8rem; }
.contact-meta h4 {
  font-family: var(--sans); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-dim);
  margin-bottom: 0.5rem;
}
.contact-meta p, .contact-meta a { color: var(--ink-dim); font-size: 0.95rem; }
.contact-meta a:hover { color: var(--gold); }

.form-row { position: relative; margin-bottom: 2.6rem; }
.form-row label {
  display: block;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.7rem;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  padding: 0.5rem 0 0.9rem;
  outline: none;
  border-radius: 0;
  transition: border-color 0.4s;
}
.form-row select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b3915a'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.2rem center;
  padding-right: 2rem;
}
.form-row select option { background: var(--bg-2); color: var(--ink); font-family: var(--sans); font-size: 1rem; }
.form-row textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.form-row input[type="date"] { font-family: var(--sans); font-weight: 400; font-size: 1.1rem; letter-spacing: 0.04em; }
.form-row input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.85) sepia(0.3); cursor: pointer; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--gold); }
.form-row .focus-line {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.form-row input:focus ~ .focus-line,
.form-row textarea:focus ~ .focus-line,
.form-row select:focus ~ .focus-line { transform: scaleX(1); }
.form-note { font-size: 0.8rem; color: var(--muted); margin: -1rem 0 2.2rem; }
.form-status { margin-top: 1.4rem; font-size: 0.85rem; color: var(--gold); min-height: 1.4em; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Release form page ---------- */
.release-wrap {
  max-width: 880px; margin-inline: auto;
  padding-bottom: clamp(6rem, 14vh, 10rem);
}
.release-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: clamp(1.6rem, 4vw, 3.4rem);
  margin-bottom: 2rem;
}
.release-card h3 {
  font-weight: 500;
  font-size: 1.5rem; margin-bottom: 1.4rem;
  padding-bottom: 0.9rem; border-bottom: 1px solid var(--line);
}
.release-card h3 .step {
  font-family: var(--sans); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.3em;
  color: var(--gold); display: block; margin-bottom: 0.5rem; text-transform: uppercase;
}
.release-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.4rem; }
@media (max-width: 640px) { .release-cols { grid-template-columns: 1fr; } }
.release-terms {
  font-size: 0.95rem; color: var(--ink-dim);
  max-height: 300px; overflow-y: auto;
  padding-right: 1rem;
  line-height: 1.7;
}
.release-terms::-webkit-scrollbar { width: 4px; }
.release-terms::-webkit-scrollbar-thumb { background: var(--gold-soft); }
.release-terms h5 { color: var(--ink); font-family: var(--sans); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 1.3rem 0 0.4rem; }
.release-terms h5:first-child { margin-top: 0; }
.release-terms p { margin-bottom: 0.7rem; }
.check-row {
  display: flex; align-items: flex-start; gap: 0.9rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(233,226,212,0.06);
  cursor: pointer;
}
.check-row input {
  appearance: none;
  width: 20px; height: 20px; flex-shrink: 0;
  border: 1px solid var(--gold-border);
  cursor: pointer; position: relative;
  transition: background 0.3s, border-color 0.3s;
  margin-top: 0.15rem;
}
.check-row input:checked { background: var(--gold); border-color: var(--gold); }
.check-row input:checked::after {
  content: '✕';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--bg); font-size: 0.7rem;
}
.check-row span { font-size: 0.9rem; color: var(--ink-dim); }
.check-row span strong { color: var(--ink); font-weight: 400; }
.sig-pad-wrap { position: relative; }
.sig-pad {
  width: 100%; height: 200px;
  background: #f4efe6;
  border: 1px solid var(--line-strong);
  cursor: crosshair;
  touch-action: none;
}
.sig-hint {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  color: rgba(11,10,9,0.25);
  font-family: var(--serif); font-style: italic; font-size: 1.1rem;
}
.sig-tools { display: flex; justify-content: space-between; margin-top: 0.8rem; }
.sig-tools button {
  font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted); padding: 0.5rem 0;
  transition: color 0.3s;
}
.sig-tools button:hover { color: var(--gold); }
.release-actions { text-align: center; margin-top: 2.6rem; }
.release-status { margin-top: 1.2rem; font-size: 0.85rem; min-height: 1.4em; color: var(--gold); text-align: center; }
.release-disclaimer {
  margin-top: 2.4rem; font-size: 0.85rem; color: var(--ink-dim);
  text-align: center; max-width: 60ch; margin-inline: auto;
}

/* ---------- Reveal helpers (hidden states only when JS is running) ---------- */
html.js .reveal-up { opacity: 0; transform: translateY(70px); }
.reveal-img-mask { overflow: hidden; }
html.js .reveal-img-mask img { transform: scale(1.25); }

/* Keyboard focus */
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain { display: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.15s !important; }
}


/* ---------- Light (gallery ivory) theme ---------- */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f2ede3;
  --bg-2: #faf6ee;
  --ink: #201b14;
  --ink-dim: #5b5344;
  --muted: #6e6553;
  --gold: #8a6a34;
  --gold-soft: rgba(140, 106, 52, 0.35);
  --gold-border: rgba(140, 106, 52, 0.7);
  --line: rgba(32, 27, 20, 0.14);
  --line-strong: rgba(32, 27, 20, 0.45);
}
html[data-theme="light"] .grain { opacity: 0.04; }
html[data-theme="light"] .nav.is-scrolled {
  background: linear-gradient(rgba(242, 237, 227, 0.92), rgba(242, 237, 227, 0));
}
html[data-theme="light"] .marquee-track span {
  -webkit-text-stroke: 1px rgba(32, 27, 20, 0.45);
}
html[data-theme="light"] .work-card img { filter: grayscale(0.55) brightness(0.98); }
html[data-theme="light"] .work-card:hover img { filter: grayscale(0) brightness(1); }
html[data-theme="light"] .form-row input[type="date"]::-webkit-calendar-picker-indicator { filter: none; }

/* Hero stays an immersive dark frame in both themes */
.hero-content, .hero-scroll { color: #e9e2d4; }
.hero-meta { color: #b5ac9b; }
.hero-title em { color: #b3915a; }
.hero-kicker { color: #b3915a; }

/* Lightbox always dark (it frames photographs) */
.lightbox { background: rgba(8, 7, 6, 0.97); }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  margin-left: 1.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color 0.3s, transform 0.4s var(--ease-out);
}
.theme-toggle:hover { border-color: var(--gold); transform: rotate(40deg); }
.theme-toggle i {
  display: block; width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
  border: 1px solid currentColor;
}
.menu-overlay .theme-toggle { margin: 2rem 0 0; }
@media (max-width: 960px) { .nav > .theme-toggle { display: none; } }

/* ---------- Remote signing block (release form) ---------- */
.remote-sign {
  margin-top: 2.4rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.remote-sign-title {
  font-family: var(--sans); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold);
}
.remote-sign-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.remote-sign .btn-ghost { padding: 0.9rem 1.8rem; font-size: 0.68rem; }

/* ---------- Per-clause terms list (release form) ---------- */
.terms-guide {
  font-size: 0.9rem; color: var(--gold);
  border: 1px solid var(--gold-soft);
  padding: 0.9rem 1.2rem;
  margin-bottom: 1.4rem;
}
.terms-guide strong { font-weight: 500; }
.terms-list { max-height: 420px; overflow-y: auto; padding-right: 1rem; }
.terms-list::-webkit-scrollbar { width: 4px; }
.terms-list::-webkit-scrollbar-thumb { background: var(--gold-soft); }
.term-row {
  display: flex; align-items: flex-start; gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(233, 226, 212, 0.06);
  cursor: pointer;
}
.term-row input {
  appearance: none;
  width: 20px; height: 20px; flex-shrink: 0;
  border: 1px solid var(--gold-border);
  cursor: pointer; position: relative;
  transition: background 0.3s, border-color 0.3s;
  margin-top: 0.15rem;
}
.term-row input:checked { background: var(--gold); border-color: var(--gold); }
.term-row input:checked::after {
  content: '✕';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--bg); font-size: 0.7rem;
}
.term-row span { display: block; }
.term-row strong {
  display: block;
  font-weight: 500; font-size: 0.88rem; color: var(--ink);
  margin-bottom: 0.25rem;
}
.term-row em {
  font-style: normal; font-size: 0.86rem; color: var(--ink-dim); line-height: 1.6;
}
.term-row.is-excluded strong { color: #c96f5a; text-decoration: line-through; }
.term-row.is-excluded em { opacity: 0.45; }
