/* =====================================================================
   VISUFAVOR — "Contact Sheet" identity
   A single, deliberately light world — warm cream paper + gold, matching
   the studio's own logo mark — not a light/dark-adaptive page. Dark
   "prints" (photo tiles, the lightbox) are kept deliberately dark within
   this light page: a real contact sheet is dark frames on light paper.
   No theme switching is provided on purpose.
   ===================================================================== */

/* ---------------------------------------------------------------------
   Self-hosted webfonts (SIL Open Font License, latin subset only).
   Served from our own origin instead of fonts.googleapis.com: that link
   was render-blocking and cost two extra third-party DNS + TLS
   handshakes before a single pixel could paint. Sans and display are
   variable, so one file each covers their whole weight range.
   --------------------------------------------------------------------- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  /* --- color: clean off-white page, near-black text, gold spent sparingly --- */
  --ink:          #fafaf7;   /* page ground — near-white, subtle warm neutral */
  --surface:      #f2f0ea;   /* alt panel (ticker) */
  --surface-2:    #e9e6dd;   /* raised panel */
  --paper:        #131110;   /* primary text — near-black */
  --ash:          #6b6860;   /* muted grey-brown text, >=4.5:1 on --ink */
  --ember:        #8a641c;   /* accent — deep gold, used only where it counts */
  --ember-bright: #d4a52f;   /* vivid logo gold — fills & dark-surface use only */
  --line:         rgba(19, 17, 16, 0.12);
  --line-soft:    rgba(19, 17, 16, 0.06);

  /* fixed dark-surface tokens — photo tiles & the lightbox stay dark
     regardless of the page theme, so they get their own palette */
  --dark-surface:     #15100c;
  --dark-text:        #f2eae1;
  --dark-text-muted:  #a79c8e;
  --dark-line:        rgba(242, 234, 225, 0.14);

  /* --- type --- */
  --ff-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --ff-body:    "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --ff-mono:    "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --radius: 3px;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--ff-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 1100;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-mono);
  font-size: 0.82rem;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: transform 0.2s ease;
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

.eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  text-wrap: balance;
  line-height: 1.05;
}

/* Section rhythm — spacing lives on the section, not stray margins */
section {
  padding: clamp(72px, 12vw, 140px) clamp(20px, 6vw, 64px);
  max-width: 1320px;
  margin-inline: auto;
}

/* ---------- Custom cursor tag (gallery only) ---------- */
.cursor-tag {
  position: fixed;
  top: 0; left: 0;
  z-index: 900;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  background: var(--ember-bright);
  color: var(--paper);
  padding: 7px 14px;
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  will-change: transform, opacity;
}
.cursor-tag.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: none) { .cursor-tag { display: none; } }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 22px clamp(20px, 6vw, 64px);
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.is-scrolled {
  background: rgba(250, 250, 247, 0.88);
  backdrop-filter: blur(10px);
  padding-block: 14px;
  border-color: var(--line);
}
.site-nav__row {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 40px);
  min-width: 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--ff-mono);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
}
.wordmark__mark { flex-shrink: 0; }
.wordmark--sm { font-size: 0.82rem; }
.site-nav .wordmark { flex-shrink: 0; }

.nav-links { display: flex; gap: 28px; margin-right: auto; }
.nav-links a {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  color: var(--ash);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s ease;
}
.nav-links a span { color: var(--ash); font-size: 0.68rem; }
.nav-links a:hover { color: var(--paper); }

.ig-link {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  color: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.ig-link:hover { border-color: var(--ember); color: var(--ember); }

.menu-toggle {
  display: none;
  flex-shrink: 0;
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 6px 2px;
}

/* ---------- Primary CTA (WhatsApp) ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  background: var(--ember-bright);
  color: var(--paper);
  font-family: var(--ff-mono);
  font-size: 0.86rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: filter 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn-primary:hover { filter: brightness(0.92); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary--small { padding: 9px 16px; font-size: 0.78rem; flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(120px, 16vw, 180px) clamp(20px, 6vw, 64px) 100px;
  overflow: hidden;
}

/* Cursor spotlight — a soft key light the visitor moves around the hero */
.hero__spotlight {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  background: radial-gradient(
    560px circle at var(--mx, 50%) var(--my, 40%),
    rgba(212, 165, 47, 0.16),
    transparent 62%
  );
}
@media (hover: hover) and (pointer: fine) {
  .hero:hover .hero__spotlight { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .hero__spotlight { display: none; } }

.hero__rail {
  position: absolute;
  top: 0; bottom: 0; left: clamp(8px, 2.4vw, 28px);
  width: 6px;
  z-index: 0;
  background-image: radial-gradient(circle, var(--line) 2px, transparent 2.4px);
  background-size: 6px 22px;
  display: none;
}
@media (min-width: 860px) { .hero__rail { display: block; } }

.hero__body { position: relative; z-index: 1; max-width: 1180px; margin-inline: auto; width: 100%; }

.frame-tag {
  font-family: var(--ff-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--ash);
  margin-bottom: 26px;
}

.hero__title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin-bottom: 48px;
}
.hero__title em { font-style: italic; font-weight: 500; color: var(--ash); }

.hero__meta {
  display: grid;
  grid-template-columns: minmax(0, 460px) auto;
  gap: 40px;
  align-items: end;
  justify-content: space-between;
}
.hero__sub { color: var(--ash); font-size: 1.02rem; max-width: 46ch; text-wrap: pretty; }
.hero__actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-end; text-align: right; }

.link-arrow {
  font-family: var(--ff-mono);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.link-arrow span { transition: transform 0.25s ease; display: inline-block; }
.link-arrow:hover { border-color: var(--ember); color: var(--ember); }
.link-arrow:hover span { transform: translateX(4px); }
.link-arrow--ghost { color: var(--ash); }

.scroll-cue {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--ash);
}
.scroll-cue span {
  width: 1px; height: 30px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.scroll-cue span::after {
  content: "";
  position: absolute; top: -100%; left: 0; right: 0; height: 100%;
  background: var(--ember);
  animation: rail 2s ease-in-out infinite;
}
@keyframes rail { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

/* ---------- About ---------- */
.about__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.pull-quote {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  line-height: 1.35;
  text-wrap: balance;
  color: var(--paper);
}
.pull-quote em { font-style: italic; color: var(--paper); font-weight: 600; }

.ledger { border-top: 1px solid var(--line); min-width: 0; }
.ledger__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.ledger__row dt { color: var(--paper); font-weight: 500; font-size: 0.95rem; }
.ledger__row dd {
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  color: var(--ash);
  text-align: right;
  max-width: 240px;
  text-wrap: pretty;
}

/* ---------- Portfolio ---------- */
.portfolio__head { margin-bottom: 56px; }
.section-title { margin-bottom: 28px; }

.tabs { display: flex; gap: 28px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; }
.tab {
  font-family: var(--ff-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ash);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.tab:hover { color: var(--paper); }
.tab.is-active { color: var(--paper); border-color: var(--ember); }

.sheet {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
/* `.frame` owns the scroll-reveal animation and the 3D perspective;
   `.frame__inner` owns the pointer tilt. Keeping them on separate
   elements stops the animation's filled transform from overriding the
   tilt (animations outrank normal declarations in the cascade). */
.frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  grid-column: span 3;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  background: none;
  border: none;
  perspective: 900px;
}
.frame__inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.frame.is-tilting .frame__inner { transition: transform 0.09s linear; }

/* Pointer-following sheen, like light raking across a print */
.frame__shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(
    240px circle at var(--px, 50%) var(--py, 50%),
    rgba(255, 255, 255, 0.26),
    transparent 62%
  );
  mix-blend-mode: soft-light;
}
@media (hover: hover) and (pointer: fine) {
  .frame:hover .frame__shine { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .frame__shine { display: none; }
  .frame__inner { transform: none; }
}
.frame.is-wide { grid-column: span 4; aspect-ratio: 16 / 11; }
.frame.is-narrow { grid-column: span 2; aspect-ratio: 3 / 5; }
.frame.is-hidden { display: none; }

/* Placeholder tiles held while the darkroom feed is in flight. Same grid
   footprint as a real frame, so nothing jumps when the photos land. The
   resting state is a visible tile; the pulse is layered on top of it, so a
   browser that skips the animation still shows the sheet's shape. */
.frame-skel {
  grid-column: span 3;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background: var(--surface);
}
@media (min-width: 720px) {
  .frame-skel { grid-column: span 2; }
}
@keyframes skel-pulse { 50% { opacity: 0.45; } }

/* A menu row holding its own height while the content feed is in flight. */
.menu-row--skel {
  min-height: 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
@media (prefers-reduced-motion: no-preference) {
  .menu-row--skel { animation: skel-pulse 1.4s ease-in-out infinite; }
}
@media (prefers-reduced-motion: no-preference) {
  .frame-skel { animation: skel-pulse 1.4s ease-in-out infinite; }
}

@media (min-width: 720px) {
  .frame { grid-column: span 2; }
  .frame.is-wide { grid-column: span 4; }
  .frame.is-narrow { grid-column: span 2; }
}

.frame__plate {
  position: absolute; inset: 0;
  filter: saturate(0.82) brightness(0.92);
  transition: filter 0.5s ease, transform 0.6s ease;
  background-image:
    radial-gradient(38% 46% at 22% 26%, var(--c1) 0%, transparent 70%),
    radial-gradient(46% 55% at 80% 64%, var(--c2) 0%, transparent 72%),
    radial-gradient(75% 75% at 50% 105%, var(--c3) 0%, transparent 82%),
    linear-gradient(160deg, var(--c3), var(--c2));
}
.frame__plate::after {
  content: "";
  position: absolute; inset: 0;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.frame:hover .frame__plate { filter: saturate(1) brightness(1); transform: scale(1.035); }

.frame__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.94) brightness(0.97);
  transition: filter 0.5s ease, transform 0.6s ease;
}
.frame:hover .frame__photo { filter: saturate(1) brightness(1); transform: scale(1.035); }

.tone-a { --c1: #e8c374; --c2: #a3722f; --c3: #3a2610; }
.tone-b { --c1: #e2825a; --c2: #a3402a; --c3: #2a1109; }
.tone-c { --c1: #a3b579; --c2: #5c6f3c; --c3: #1c2211; }
.tone-d { --c1: #8d93a3; --c2: #4b5160; --c3: #15171d; }
.tone-e { --c1: #b98f63; --c2: #6b4a30; --c3: #20140b; }
.tone-f { --c1: #f0c878; --c2: #c98a3a; --c3: #3a2510; }

.frame__vignette {
  position: absolute; inset: 0;
  background:
    /* top-left scrim so the frame number stays legible over light photos */
    linear-gradient(148deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.18) 9%, transparent 20%),
    radial-gradient(120% 90% at 50% 20%, transparent 40%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.78) 100%);
}

.frame__index {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(242,234,225,0.75);
}

.frame__caption {
  display: block;
  position: absolute; left: 14px; right: 14px; bottom: 12px;
  transform: translateY(4px);
  opacity: 0.92;
}
.frame__tag {
  display: block;
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember-bright);
  margin-bottom: 4px;
}
.frame__title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--dark-text);
}

/* ---------- Services / Shoot menu ---------- */
.services__head { margin-bottom: 8px; }
.menu { border-top: 1px solid var(--line); min-width: 0; }
.menu-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  min-width: 0;
}
.menu-row__num { font-family: var(--ff-mono); color: var(--ash); font-size: 0.95rem; }
.menu-row__body { min-width: 0; }

.menu-row__title { font-family: var(--ff-display); font-weight: 700; font-size: 1.3rem; margin-bottom: 6px; text-wrap: balance; }
.menu-row__desc { color: var(--ash); font-size: 0.94rem; text-wrap: pretty; }
.menu-row__price {
  font-family: var(--ff-mono);
  font-size: 1rem;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}
@media (max-width: 640px) {
  .menu-row { grid-template-columns: 1fr; gap: 6px; }
  .menu-row__num { order: -1; }
  .menu-row__price { text-align: left; }
}

/* ---------- Workflow ---------- */
.workflow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 32px;
}
.workflow__step {
  font-family: var(--ff-mono);
  font-size: 0.76rem;
  color: var(--ash);
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.workflow__step b { color: var(--ember); font-weight: 500; }

/* ---------- Instagram ticker ---------- */
.ticker {
  display: block;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
  padding: 0;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 26s linear infinite;
}
.ticker__track span {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  padding: 26px clamp(20px, 3vw, 40px);
  white-space: nowrap;
  color: var(--paper);
}
.ticker__track span:nth-child(3n+2) { color: var(--ember); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-25%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ---------- Contact ---------- */
.contact__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
}
.contact__intro p { color: var(--ash); margin: 20px 0 26px; max-width: 42ch; text-wrap: pretty; }
.contact__direct { display: flex; flex-direction: column; gap: 10px; }
.contact__direct a {
  font-family: var(--ff-mono);
  font-size: 0.9rem;
  width: fit-content;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.contact__direct a:hover { border-color: var(--ember); color: var(--ember); }

.contact__form { display: flex; flex-direction: column; gap: 30px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 1rem;
  color: var(--paper);
  resize: none;
}
.field input:focus, .field textarea:focus { border-color: var(--ember); outline: none; }
.field label {
  position: absolute;
  left: 0; top: 10px;
  color: var(--ash);
  font-size: 1rem;
  pointer-events: none;
  transition: transform 0.2s ease, font-size 0.2s ease, color 0.2s ease, top 0.2s ease;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: -14px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--ff-mono);
  color: var(--ember);
}
.link-arrow--submit { width: fit-content; font-size: 0.92rem; }
.form-note { font-family: var(--ff-mono); font-size: 0.8rem; color: var(--ash); min-height: 18px; }

/* Announced result of a gallery filter — visible to everyone, not just SRs */
.sheet-status {
  font-family: var(--ff-mono);
  font-size: 0.76rem;
  color: var(--ash);
  margin-top: 20px;
  min-height: 18px;
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 30px clamp(20px, 6vw, 64px) 40px;
  font-family: var(--ff-mono);
  font-size: 0.76rem;
  color: var(--ash);
  border-top: 1px solid var(--line);
}
.site-footer a:hover { color: var(--ember); }

/* =====================================================================
   MOTION SYSTEM
   Built on CSS scroll-driven animations (`animation-timeline`), which run
   off the main thread — no library, no per-scroll JS. Every effect is
   opacity / transform / filter only, so it stays on the compositor.

   Fail-safe by construction: the resting state of every animated element
   is the VISIBLE one. Motion is layered on top inside
   `prefers-reduced-motion: no-preference`, so if a path is unsupported or
   motion is disabled, content simply shows — it is never stranded hidden.
   ===================================================================== */

/* ---------- Hero: word-by-word blur reveal ---------- */
.hero__title .w { display: inline-block; }
@keyframes word-in {
  from { opacity: 0; filter: blur(14px); transform: translateY(0.35em); }
  to   { opacity: 1; filter: blur(0);    transform: none; }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__title .w {
    animation: word-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: calc(var(--w, 0) * 55ms + 200ms);
  }
  .load-in {
    animation: rise-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: calc(var(--i, 0) * 120ms + 80ms);
  }
}

/* ---------- Reveal-on-scroll ---------- */
/* Resting state: visible. */
.reveal { opacity: 1; transform: none; }

@keyframes reveal-rise {
  from { opacity: 0; transform: translateY(26px); filter: blur(5px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

@media (prefers-reduced-motion: no-preference) {
  /* Path A — browser has scroll-driven animations: zero JS, off-thread. */
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal-rise linear both;
      animation-timeline: view();
      animation-range: entry 6% cover 28%;
    }
  }
  /* Path B — fallback: the IntersectionObserver in script.js drives it. */
  @supports not (animation-timeline: view()) {
    .reveal {
      opacity: 0;
      transform: translateY(18px);
      transition: opacity 0.6s ease, transform 0.6s ease;
      transition-delay: calc(var(--i, 0) * 60ms);
    }
    .reveal.is-visible { opacity: 1; transform: none; }
  }
}

/* ---------- Contact sheet: frames "develop" into view ---------- */
/* Photographic rather than generic: each frame resolves out of a blurred,
   desaturated, over-exposed state — a print coming up in the tray. */
/* Split across the two elements on purpose: a `filter` on `.frame` would
   flatten the 3D perspective the tilt depends on, so position animates on
   `.frame` and the developing filter animates on `.frame__inner`. */
@keyframes frame-develop {
  from { opacity: 0; transform: translateY(30px) scale(0.965); }
  to   { opacity: 1; transform: none; }
}
@keyframes frame-focus {
  from { filter: blur(9px) saturate(0.15) brightness(1.2); }
  to   { filter: blur(0) saturate(1) brightness(1); }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .frame {
      animation: frame-develop linear both;
      animation-timeline: view();
      animation-range: entry 4% cover 30%;
    }
    .frame__inner {
      animation: frame-focus linear both;
      animation-timeline: view();
      animation-range: entry 4% cover 32%;
    }
  }
}

/* ---------- Shoot menu: rows draw in from the leading edge ---------- */
@keyframes row-in {
  from { opacity: 0; transform: translateX(-22px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .menu-row {
      animation: row-in linear both;
      animation-timeline: view();
      animation-range: entry 2% cover 24%;
    }
  }
}

/* ---------- Reading-progress hairline ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 1050;
  background: linear-gradient(90deg, var(--ember-bright), var(--ember));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .scroll-progress {
      animation: progress-grow linear;
      animation-timeline: scroll(root block);
    }
  }
}
@keyframes progress-grow { to { transform: scaleX(1); } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 1000;
  background: rgba(10, 8, 6, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overscroll-behavior: contain;
}
.lightbox.is-open { display: flex; }
.lightbox__stage { max-width: min(90vw, 720px); width: 100%; }
.lightbox__frame {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--dark-line);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Photos are shown whole — never cropped to a fixed frame ratio. Only the
   generative placeholder plates, which have no intrinsic size, get one. */
.lightbox__frame.is-plate { width: 100%; aspect-ratio: 4 / 5; }
.lightbox__frame .frame__photo {
  position: static;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(74vh, 860px);
  object-fit: contain;
  filter: none;
}
.lightbox__caption {
  margin-top: 18px;
  font-family: var(--ff-mono);
  font-size: 0.88rem;
  color: var(--dark-text-muted);
  text-align: center;
  text-wrap: pretty;
}
.lightbox__caption strong { font-family: var(--ff-display); color: var(--dark-text); font-size: 1.05rem; font-weight: 600; }
.lightbox__close {
  position: absolute; top: 26px; right: 30px;
  font-family: var(--ff-mono);
  font-size: 0.82rem;
  color: var(--dark-text-muted);
}
.lightbox__close:hover { color: var(--dark-text); }
.lightbox__nav {
  font-family: var(--ff-display);
  font-size: 2rem;
  color: var(--dark-text-muted);
  padding: 10px 16px;
}
.lightbox__nav:hover { color: var(--ember-bright); }
.lightbox__nav--prev { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .ig-link { display: none; }
  .menu-toggle { display: block; }
  /* nav-links carried `margin-right: auto`; with it hidden the wordmark
     takes over pushing the actions right, so the row no longer overflows
     and shoves the menu toggle off-screen on narrow phones */
  .site-nav .wordmark { margin-right: auto; }
  .site-nav.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ink);
    padding: 26px clamp(20px, 6vw, 64px) 30px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    margin-right: 0;
  }
  .hero__meta { grid-template-columns: 1fr; }
  .hero__actions { align-items: flex-start; text-align: left; }
  .about__inner, .contact__inner { grid-template-columns: 1fr; }
  .sheet { grid-template-columns: repeat(2, 1fr); }
  .frame, .frame.is-wide, .frame.is-narrow { grid-column: span 1; aspect-ratio: 4/5; }
}

/* Narrow phones: drop the WhatsApp button's text so the wordmark, the
   button and the menu toggle all still fit inside a 320px viewport.
   The link keeps its accessible name via aria-label. */
@media (max-width: 430px) {
  .site-nav .btn-primary__label { display: none; }
  .site-nav .btn-primary { padding: 9px 11px; }
  .site-nav { padding-inline: 16px; }
}
