/* ==== Design tokens (Editorial Frame) ==== */
:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --ink: #161410;
  --ink-40: rgba(22,20,16,0.4);
  --ink-12: rgba(22,20,16,0.12);
  --accent: #C81E2E;
  --font-display: 'Archivo', Arial, sans-serif;
  --font-body: 'Archivo', Arial, sans-serif;
  --xs: 8px; --sm: 16px; --md: 32px; --lg: 64px; --xl: 120px;
  --container: 1440px;
  --edge: clamp(20px, 4vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
:where(html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol) { margin: 0; padding: 0; }
:where(ul, ol) { list-style: none; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:where(h1,h2,h3,h4) { font-family: var(--font-display); font-weight: 900; letter-spacing: -0.01em; line-height: 1.02; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink); }
.eyebrow--accent { color: var(--accent); }

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

/* ==== Header / utility nav ==== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: var(--md);
  padding: 14px var(--edge);
  background: rgba(250,250,247,0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--ink-12);
}
.util-back {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 10px; border: 1px solid var(--ink-12);
}
.util-back:hover { border-color: var(--ink); }
.site-logo {
  font-family: var(--font-display); font-weight: 900; font-size: 13px; line-height: 1.05;
  letter-spacing: -0.01em; text-transform: uppercase; margin-right: auto;
}
.site-nav { display: flex; gap: var(--md); align-items: center; }
.site-nav a {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.site-nav a:hover { border-color: var(--accent); color: var(--accent); }
.util-home {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--ink); padding: 8px 14px;
}
.util-home:hover { background: var(--ink); color: var(--bg); }
@media (max-width: 860px) {
  .site-header { flex-wrap: wrap; row-gap: 10px; }
  .site-nav { order: 3; width: 100%; overflow-x: auto; gap: var(--sm); }
  .util-back span { display: none; }
}

/* ==== Footer ==== */
.site-footer { border-top: 1px solid var(--ink-12); padding: var(--lg) var(--edge) var(--md); margin-top: var(--xl); }
.footer-inner { max-width: var(--container); margin: 0 auto; }
.footer-cta { font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 4vw, 48px); max-width: 14ch; margin-bottom: var(--md); }
.footer-contact { display: flex; flex-wrap: wrap; gap: var(--md); font-size: 14px; margin-bottom: var(--sm); }
.footer-contact a:hover { color: var(--accent); }
.footer-links { display: flex; gap: var(--md); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; padding-top: var(--md); border-top: 1px solid var(--ink-12); }
.footer-links a:hover { color: var(--accent); }
/* ==== Hero ==== */
.hero { position: relative; min-height: 100vh; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,20,16,0) 35%, rgba(22,20,16,0.82) 100%);
}
.hero-copy {
  position: relative; z-index: 2; min-height: 100vh; display: flex; flex-direction: column;
  justify-content: flex-end; padding: var(--edge); padding-bottom: var(--xl); max-width: 900px; color: #fff;
}
.hero-copy .eyebrow { color: #fff; }
.hero-copy h1 { font-size: clamp(44px, 9vw, 136px); color: #fff; margin: var(--sm) 0 var(--md); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid currentColor;
  padding: 14px 26px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  width: fit-content; transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: currentColor; }
.hero-copy .btn-outline:hover { background: #fff; color: var(--ink); }

/* ==== Category teasers ==== */
.cats { padding: var(--xl) var(--edge); border-bottom: 1px solid var(--ink-12); }
.section-title { font-size: clamp(32px, 5vw, 64px); margin-bottom: var(--lg); max-width: 16ch; }
.cats-list li { border-top: 1px solid var(--ink-12); }
.cats-list li:last-child { border-bottom: 1px solid var(--ink-12); }
.cats-list a { display: flex; align-items: center; gap: var(--md); padding: var(--md) 4px; }
.cats-num { font-family: var(--font-display); font-weight: 900; font-size: 14px; color: var(--accent); width: 28px; flex-shrink: 0; }
.cats-thumb { width: 92px; height: 116px; overflow: hidden; flex-shrink: 0; background: var(--surface); }
.cats-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cats-name { font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 3.6vw, 42px); flex: 1; transition: color 0.2s; }
.cats-arrow { font-size: 22px; transition: transform 0.2s, color 0.2s; }
.cats-list a:hover .cats-arrow { transform: translateX(8px); color: var(--accent); }
.cats-list a:hover .cats-name { color: var(--accent); }

/* ==== Featured rail / carousel ==== */
.rail { padding: var(--xl) 0; border-bottom: 1px solid var(--ink-12); }
.rail-head { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 var(--edge); margin-bottom: var(--md); gap: var(--md); }
.rail-head h2 { font-size: clamp(24px, 3vw, 36px); }
.rail-controls { display: flex; gap: var(--xs); flex-shrink: 0; }
.rail-controls button { width: 44px; height: 44px; border: 1px solid var(--ink-12); font-size: 16px; }
.rail-controls button:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.rail-track {
  display: flex; gap: var(--sm); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--edge); scrollbar-width: none; -ms-overflow-style: none;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-item { scroll-snap-align: start; flex: 0 0 clamp(240px, 32vw, 420px); display: flex; flex-direction: column; gap: var(--xs); }
.rail-index { font-size: 11px; letter-spacing: 0.08em; color: var(--ink-40); }
.rail-frame { aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.rail-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.rail-item:hover .rail-frame img { transform: scale(1.045); }
.rail-caption strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-top: 2px; }
.rail-cat { font-size: 12px; color: var(--ink-40); }

/* ==== About ==== */
.about { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--lg); padding: var(--xl) var(--edge); align-items: center; }
.about-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.about-copy h2 { font-size: clamp(30px, 5vw, 60px); margin: var(--sm) 0 var(--md); }
.about-copy p { max-width: 58ch; margin-bottom: var(--sm); }
.about-copy .btn-outline { margin-top: var(--sm); }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .cats-thumb { display: none; }
}
@media (max-width: 600px) {
  .hero-copy { padding-bottom: var(--lg); }
  .cats, .about, .rail-head { padding-left: var(--edge); padding-right: var(--edge); }
}
/* ==== Series viewer / carousel ==== */
.viewer { position: relative; height: 100vh; overflow: hidden; background: #000; }
.viewer-track { display: flex; height: 100%; transition: transform 0.6s cubic-bezier(.65,0,.35,1); will-change: transform; }
.viewer-slide { flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #000; }
.viewer-slide img { width: 100%; height: 100%; object-fit: contain; }
.viewer-count { position: absolute; top: 22px; left: var(--edge); z-index: 3; color: #fff; font-size: 12px; letter-spacing: 0.08em; }
.viewer-count-sep { opacity: 0.5; margin: 0 2px; }
.viewer-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; border: 1px solid rgba(255,255,255,0.45); color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s, color 0.2s;
}
.viewer-prev { left: var(--edge); }
.viewer-next { right: var(--edge); }
.viewer-nav:hover { background: #fff; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .viewer-track { transition: none; } }

.viewer-info { display: grid; grid-template-columns: 1fr 1fr; gap: var(--lg); padding: var(--xl) var(--edge); border-bottom: 1px solid var(--ink-12); }
.viewer-info-left h1 { font-size: clamp(32px, 5vw, 64px); margin: var(--sm) 0 var(--xs); }
.viewer-client { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-40); }
.viewer-desc { font-size: 16px; max-width: 60ch; }

.viewer-thumbs { display: flex; gap: var(--xs); overflow-x: auto; padding: var(--md) var(--edge) var(--xl); scrollbar-width: none; }
.viewer-thumbs::-webkit-scrollbar { display: none; }
.viewer-thumb { flex: 0 0 82px; height: 102px; opacity: 0.45; border-bottom: 2px solid transparent; overflow: hidden; transition: opacity 0.2s, border-color 0.2s; }
.viewer-thumb img { width: 100%; height: 100%; object-fit: cover; }
.viewer-thumb.is-active, .viewer-thumb:hover { opacity: 1; border-color: var(--accent); }

.rail-viewall { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.rail-viewall:hover { color: var(--accent); }

/* ==== Category hero ==== */
.cat-hero { position: relative; min-height: 68vh; overflow: hidden; }
.cat-hero-media { position: absolute; inset: 0; }
.cat-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.cat-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,20,16,0) 30%, rgba(22,20,16,0.82) 100%); }
.cat-hero-copy { position: relative; z-index: 2; min-height: 68vh; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--edge); padding-bottom: var(--lg); color: #fff; max-width: 760px; }
.cat-hero-copy .eyebrow { color: #fff; }
.cat-hero-copy h1 { font-size: clamp(40px, 8vw, 108px); color: #fff; margin: var(--sm) 0; }
.cat-desc { max-width: 56ch; font-size: 16px; }

@media (max-width: 900px) {
  .viewer { height: 68vh; }
  .viewer-info { grid-template-columns: 1fr; gap: var(--md); }
  .viewer-nav { width: 40px; height: 40px; }
}
/* ==== Info page ==== */
.info-hero { padding: var(--xl) var(--edge) var(--md); }
.info-hero h1 { font-size: clamp(36px, 6vw, 80px); margin-top: var(--sm); }
.info-body { padding: 0 var(--edge) var(--xl); max-width: 880px; }
.info-body h2 { font-family: var(--font-display); font-weight: 900; font-size: 24px; margin: var(--lg) 0 var(--sm); }
.info-body p { margin-bottom: var(--sm); max-width: 70ch; }
.info-body p a:hover { color: var(--accent); }
.info-body ul { margin: var(--sm) 0 var(--sm) 20px; list-style: disc; }
.info-body li { margin-bottom: 8px; }
.info-body em { color: var(--ink-40); }
/* ==== Gallery-lock (homepage / category) single-viewport layout ==== */
body.gallery-lock { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
body.gallery-lock .site-header { flex: 0 0 auto; position: static; }
body.gallery-lock .site-main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }

.gallery-viewport { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.gallery-split { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 0.85fr 1.35fr; overflow: hidden; }
.gallery-copy { padding: var(--edge); display: flex; flex-direction: column; justify-content: center; gap: var(--sm); min-height: 0; }
.gallery-copy h1 { font-size: clamp(32px, 5.2vw, 96px); }
.gallery-copy-desc { max-width: 46ch; font-size: 15px; }
.gallery-copy .btn-outline { margin-top: var(--xs); width: fit-content; }

.gallery-stage { position: relative; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.gallery-stage-link { position: relative; flex: 1 1 auto; min-height: 0; display: block; overflow: hidden; background: var(--surface); }
.gallery-stage-link img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-caption { flex: 0 0 auto; display: flex; align-items: center; gap: var(--md); padding: var(--sm) var(--edge); }
.gallery-caption-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.gallery-caption-meta { font-size: 12px; color: var(--ink-40); flex: 1; }
.gallery-caption-view { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.gallery-caption-view:hover { color: var(--accent); }

.gallery-thumbs { flex: 0 0 clamp(140px, 24vh, 240px); min-height: 0; display: flex; align-items: center; gap: var(--sm); padding: 0 var(--edge); }
.gallery-thumbs-track { flex: 1; display: flex; gap: var(--sm); height: 82%; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.gallery-thumbs-track::-webkit-scrollbar { display: none; }
.gallery-thumb { flex: 0 0 auto; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 16px; box-sizing: border-box; scroll-snap-align: start; opacity: 0.45; transition: opacity 0.2s; cursor: pointer; }
.gallery-thumb-num { font-size: 12px; letter-spacing: 0.06em; color: var(--ink-40); flex: 0 0 auto; }
.gallery-thumb-frame { flex: 1 1 auto; min-height: 0; max-width: 46vw; overflow: hidden; background: transparent; display: block; }
.gallery-thumb-frame img { height: 100%; width: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover, .gallery-thumb.is-active { opacity: 1; }
.gallery-thumb.is-active .gallery-thumb-num { color: var(--accent); font-weight: 700; }
.gallery-thumbs-controls { flex: 0 0 auto; display: flex; gap: 6px; }
.gallery-nav { width: 36px; height: 36px; border: 1px solid var(--ink-12); display: flex; align-items: center; justify-content: center; }
.gallery-nav:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }

@media (max-width: 900px) {
  .gallery-split { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .gallery-copy { border-right: none; border-bottom: 1px solid var(--ink-12); padding: var(--sm) var(--edge); gap: 6px; }
  .gallery-copy h1 { font-size: clamp(24px, 7vw, 40px); }
  .gallery-copy .eyebrow, .gallery-copy-desc { display: none; }
  .gallery-copy .btn-outline { padding: 9px 14px; font-size: 10px; }
  .gallery-caption { padding: 6px var(--edge); }
  .gallery-caption-title { font-size: 12px; }
  .gallery-caption-meta { display: none; }
  .gallery-thumbs { flex-basis: 120px; padding: 0 var(--sm); }
  .gallery-thumb { min-width: 84px; }
  .gallery-nav { width: 30px; height: 30px; }
}
/* ==== Gallery-lock header + CTA refinements ==== */
body.gallery-lock .site-header { border-bottom: none; }

.gallery-copy .btn-outline {
  border: none;
  background: linear-gradient(135deg, var(--accent) 0%, #7a1420 100%);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(200, 30, 46, 0.55);
}
.gallery-copy .btn-outline:hover {
  background: linear-gradient(135deg, #e0293c 0%, var(--accent) 100%);
  color: #fff;
}
/* ==== Homepage-only header tweaks ==== */
body.is-home .util-back { display: none; }