/* ==========================================================================
   Caleb Borden Photography — Global Stylesheet
   Cinematic dark theme · primary: black · accent: deep red
   Closely matches /Sitemap/Landing Page.html aesthetic
   ========================================================================== */

:root {
  --bg: #050505;
  --bg-2: #0b0808;
  --bg-3: #110e0d;
  --ink: #f4efe9;
  --ink-dim: #8a807a;
  --ink-faint: #44403c;
  --red: #c8102e;
  --red-deep: #7a0a1c;
  --red-glow: #ff2a3d;
  --grid: rgba(244, 239, 233, 0.06);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html, body { background: var(--bg); color: var(--ink); }

body {
  font-family: var(--serif);
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--red-deep); color: var(--ink); }

/* --------------------------------------------------------------------------
   Atmosphere — vignette, grain, scanlines, ambient glow
   -------------------------------------------------------------------------- */
.atmosphere { position: fixed; inset: 0; pointer-events: none; z-index: 1; }

.vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 50%, transparent 50%, rgba(0,0,0,0.55) 85%, #000 100%),
    radial-gradient(60% 50% at 80% 10%, rgba(200, 16, 46, 0.10), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(122, 10, 28, 0.12), transparent 70%);
}

.grain {
  position: absolute; inset: -50%;
  opacity: 0.10;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grainShift 1.2s steps(4) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 1%); }
  50%  { transform: translate(1%, -2%); }
  75%  { transform: translate(-1%, 2%); }
  100% { transform: translate(0, 0); }
}

.scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.012) 0 1px, transparent 1px 3px);
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   Letterbox bars — only on the splash page
   -------------------------------------------------------------------------- */
.letterbox {
  position: fixed; left: 0; right: 0;
  height: clamp(28px, 5vh, 56px);
  background: #000;
  z-index: 50;
  pointer-events: none;
}
.letterbox.top { top: 0; border-bottom: 1px solid rgba(200, 16, 46, 0.25); }
.letterbox.bottom { bottom: 0; border-top: 1px solid rgba(200, 16, 46, 0.25); }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 64px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: linear-gradient(to bottom, rgba(5,5,5,0.92), rgba(5,5,5,0.55) 70%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(244, 239, 233, 0.04);
}

.nav.scrolled { background: rgba(5,5,5,0.94); border-bottom-color: rgba(244, 239, 233, 0.08); }

.nav .brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: none;
}
.nav .brand .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red-glow), 0 0 4px var(--red-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

.nav-links {
  display: flex; align-items: center;
  gap: clamp(18px, 3vw, 38px);
  list-style: none;
}
.nav-links a {
  position: relative;
  color: var(--ink-dim);
  transition: color 0.3s var(--ease);
  padding: 6px 0;
}
.nav-links a::after {
  content: ""; position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
  transition: width 0.4s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.hamburger {
  display: none;
  width: 36px; height: 36px;
  position: relative;
  z-index: 100;
}
.hamburger span {
  position: absolute; left: 6px; right: 6px;
  height: 1px; background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), top 0.4s var(--ease), bottom 0.4s var(--ease);
}
.hamburger span:nth-child(1) { top: 12px; }
.hamburger span:nth-child(2) { top: 18px; }
.hamburger span:nth-child(3) { top: 24px; }
.hamburger.open span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 18px; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .hamburger { display: block; }
  .nav-links {
    /* Explicit viewport sizing — .nav's backdrop-filter creates a containing
       block for fixed descendants, so `inset: 0` would size to .nav, not the
       viewport, leaving the bottom items poking out at the top of the page. */
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    margin: 0; padding: 0;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: rgba(5, 5, 5, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateY(-100%);
    transition: transform 0.55s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 14px; letter-spacing: 0.32em; }
}

/* --------------------------------------------------------------------------
   Page shell — common layout
   -------------------------------------------------------------------------- */
.page {
  position: relative;
  z-index: 5;
  padding-top: 96px;
  min-height: 100vh;
  min-height: 100svh;
}

.section {
  padding: clamp(56px, 9vw, 120px) clamp(20px, 5vw, 64px);
  max-width: 1480px;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 36px; height: 1px;
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
}

.h-display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.h-display em { color: var(--red); font-style: italic; }

.h-section {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.05;
  color: var(--ink);
  margin-top: 18px;
}

.lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 60ch;
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
   CTA button (carries the Landing Page DNA)
   -------------------------------------------------------------------------- */
.cta {
  --c: var(--red);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 18px 28px 18px 32px;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(200, 16, 46, 0.55);
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 42, 61, 0.18) 50%, transparent 100%);
  transform: translateX(-110%);
  transition: transform 0.7s var(--ease);
}
.cta::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.cta:hover {
  border-color: var(--red);
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    0 0 50px rgba(255, 42, 61, 0.4),
    0 0 120px rgba(200, 16, 46, 0.25);
}
.cta:hover::before { transform: translateX(110%); }
.cta:hover::after { transform: scaleX(1); }

.cta .arrow {
  display: inline-flex; align-items: center;
  width: 26px; height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.35s var(--ease);
}
.cta .arrow::after {
  content: "";
  position: absolute;
  right: -1px; top: 50%;
  width: 8px; height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.cta:hover .arrow { width: 38px; }

.cta.ghost { border-color: rgba(244, 239, 233, 0.18); }
.cta.ghost:hover { border-color: var(--ink); }

/* --------------------------------------------------------------------------
   Splash / index page (mirrors Sitemap landing page styling)
   -------------------------------------------------------------------------- */
.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  isolation: isolate;
}

.glow-orb {
  position: absolute;
  top: 50%; left: 50%;
  width: 80vmin; height: 80vmin;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 42, 61, 0.20), rgba(122, 10, 28, 0.05) 40%, transparent 65%);
  filter: blur(40px);
  z-index: 1;
  animation: breathe 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breathe {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
}

.topbar {
  position: relative;
  z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(56px, 9vh, 88px) clamp(20px, 5vw, 64px) 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.topbar .meta { display: flex; gap: clamp(12px, 3vw, 32px); }
.topbar .meta span:nth-child(2) { color: var(--ink-faint); }
@media (max-width: 560px) { .topbar .meta span:not(:first-child) { display: none; } }

.splash-hero {
  position: relative; z-index: 10;
  display: grid; grid-template-columns: 1fr;
  align-items: center;
  padding: clamp(40px, 8vh, 96px) clamp(20px, 5vw, 64px);
}
.splash-hero .frame { position: relative; max-width: 1100px; margin: 0 auto; width: 100%; }

.crosshair { position: absolute; width: 22px; height: 22px; border-color: var(--red); opacity: 0.7; }
.crosshair.tl { top: -8px; left: -8px; border-top: 1px solid; border-left: 1px solid; }
.crosshair.tr { top: -8px; right: -8px; border-top: 1px solid; border-right: 1px solid; }
.crosshair.bl { bottom: -8px; left: -8px; border-bottom: 1px solid; border-left: 1px solid; }
.crosshair.br { bottom: -8px; right: -8px; border-bottom: 1px solid; border-right: 1px solid; }

h1.splash-title {
  font-family: var(--serif);
  font-weight: 300; font-style: italic;
  font-size: clamp(56px, 13vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1.splash-title .line { display: block; padding-bottom: 0.18em; }
h1.splash-title .line:last-child { padding-bottom: 0.28em; }
h1.splash-title .word {
  display: inline-block;
  transform: translateX(60%) scale(1.6);
  transform-origin: right center;
  opacity: 0;
  filter: blur(10px);
  animation: zoomIn 1.4s var(--ease) forwards;
  padding-bottom: 0.05em;
}
h1.splash-title .line:nth-child(1) .word { animation-delay: 0.5s; }
h1.splash-title .line:nth-child(2) .word { animation-delay: 0.7s; }
h1.splash-title .line:nth-child(3) .word { animation-delay: 0.9s; }
h1.splash-title .accent {
  color: var(--red);
  font-style: italic;
  text-shadow: 0 0 24px rgba(255, 42, 61, 0.55), 0 0 60px rgba(200, 16, 46, 0.35);
}

@keyframes zoomIn {
  0%   { transform: translateX(60%) scale(1.6); opacity: 0; filter: blur(10px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { transform: translateX(0) scale(1); opacity: 1; filter: blur(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.splash-sub {
  margin-top: clamp(24px, 4vh, 44px);
  display: flex; justify-content: flex-end;
  opacity: 0;
  animation: fadeUp 1.2s 1.4s ease-out forwards;
}
.specs {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: right;
  line-height: 1.9;
  white-space: nowrap;
}
.specs .k { color: var(--ink-dim); }
.specs .v { color: var(--ink); margin-left: 8px; }
@media (max-width: 720px) {
  .splash-sub { justify-content: flex-start; }
  .specs { text-align: left; white-space: normal; }
}

.cta-row {
  margin-top: clamp(36px, 7vh, 72px);
  display: flex; align-items: center;
  gap: clamp(20px, 4vw, 40px);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1.2s 1.7s ease-out forwards;
}
.cta-aside {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.cta-aside .num { color: var(--red); }

.strip {
  position: relative; z-index: 10;
  padding: 0 clamp(20px, 5vw, 64px) clamp(56px, 9vh, 88px);
  display: grid; grid-template-columns: 1fr auto; align-items: end;
  gap: 20px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.strip .frames { display: flex; gap: 6px; align-items: center; }
.strip .frames .cell { width: 18px; height: 12px; border: 1px solid var(--ink-faint); opacity: 0.7; }
.strip .frames .cell.active {
  border-color: var(--red);
  background: rgba(200, 16, 46, 0.25);
  box-shadow: 0 0 10px rgba(255, 42, 61, 0.4);
}
.strip .reel { color: var(--ink-dim); }
@media (max-width: 560px) {
  .strip { grid-template-columns: 1fr; }
  .strip .reel { text-align: left; }
}

/* --------------------------------------------------------------------------
   Home page — animated title, carousel, contact form
   -------------------------------------------------------------------------- */
.home-hero {
  position: relative;
  padding: clamp(110px, 18vh, 180px) clamp(20px, 5vw, 64px) clamp(40px, 8vh, 80px);
  text-align: center;
  max-width: 1480px;
  margin: 0 auto;
}

/* Title reveal — restrained mask + line + letter-spacing animation */
.title-reveal {
  display: inline-block;
  position: relative;
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(40px, 9vw, 132px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.title-reveal .word {
  display: inline-block;
  position: relative;
  overflow: hidden;
  padding: 0.08em 0.14em 0.22em;
  /* Promote each word to its own compositor layer so the rising inner
     doesn't repaint the surrounding atmosphere on every frame. */
  transform: translateZ(0);
}
.title-reveal .word .inner {
  display: inline-block;
  transform: translate3d(0, 105%, 0);
  opacity: 0;
  /* Animate only compositor-friendly properties (transform + opacity).
     The previous keyframe also animated letter-spacing, which is a layout
     property - reflowing the inline-block widths every frame caused the
     title to wobble laterally and the surrounding grain/scanlines to
     repaint, which is what showed up as "glitching". */
  animation: titleRise 1.4s var(--ease) forwards;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.title-reveal .word:nth-child(1) .inner { animation-delay: 0.2s; }
.title-reveal .word:nth-child(2) .inner { animation-delay: 0.45s; }
.title-reveal .word:nth-child(3) .inner { animation-delay: 0.7s; color: var(--red); text-shadow: 0 0 24px rgba(255, 42, 61, 0.45), 0 0 60px rgba(200, 16, 46, 0.25); }
@keyframes titleRise {
  0%   { transform: translate3d(0, 105%, 0); opacity: 0; }
  100% { transform: translate3d(0, 0, 0);    opacity: 1; }
}

.title-rule {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  margin: clamp(28px, 5vh, 48px) auto 24px;
  animation: ruleExpand 1.6s 1.1s var(--ease) forwards;
  box-shadow: 0 0 12px rgba(255, 42, 61, 0.3);
}
@keyframes ruleExpand { to { width: min(420px, 60%); } }

.home-eyebrow {
  display: inline-flex;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0;
  animation: fadeUp 1s 1.3s ease-out forwards;
}

/* --------------------------------------------------------------------------
   Featured carousel
   -------------------------------------------------------------------------- */
.carousel {
  position: relative;
  margin: clamp(40px, 8vh, 88px) auto 0;
  max-width: 1480px;
  padding: 0 clamp(20px, 5vw, 64px);
}

.carousel-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(244, 239, 233, 0.06);
  background: var(--bg-2);
  isolation: isolate;
}
.carousel-stage::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 50%, transparent 60%, rgba(0,0,0,0.5) 100%);
  z-index: 3;
}

.carousel-track {
  position: absolute; inset: 0;
  display: flex;
  transition: transform 1.1s var(--ease);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  position: relative;
  overflow: hidden;
}
.carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 6s ease-out;
}
.carousel-slide.is-active img { transform: scale(1); }

.carousel-meta {
  position: absolute;
  left: clamp(16px, 3vw, 36px);
  bottom: clamp(16px, 3vw, 36px);
  z-index: 4;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex; align-items: center; gap: 14px;
  pointer-events: none;
}
.carousel-meta .chip {
  padding: 6px 10px;
  border: 1px solid rgba(200, 16, 46, 0.55);
  color: var(--ink);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
}

.carousel-controls {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(12px, 2vw, 24px);
  pointer-events: none;
  z-index: 5;
}
.carousel-btn {
  pointer-events: auto;
  width: 48px; height: 48px;
  border: 1px solid rgba(244, 239, 233, 0.2);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-family: var(--mono);
  display: grid; place-items: center;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.carousel-btn:hover {
  border-color: var(--red);
  background: rgba(200, 16, 46, 0.18);
  transform: translateY(-1px);
}
.carousel-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.4; }

.carousel-dots {
  margin-top: 22px;
  display: flex; gap: 10px; justify-content: center;
}
.carousel-dots button {
  width: 28px; height: 2px;
  background: rgba(244, 239, 233, 0.15);
  transition: background 0.3s var(--ease), width 0.4s var(--ease);
}
.carousel-dots button.is-active {
  background: var(--red);
  width: 48px;
  box-shadow: 0 0 8px rgba(255, 42, 61, 0.6);
}

/* --------------------------------------------------------------------------
   Contact section
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } }

.contact .info { max-width: 46ch; }
.contact .info p { color: var(--ink-dim); line-height: 1.6; }
.contact .info ul {
  list-style: none;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.contact .info ul li { padding: 12px 0; border-top: 1px solid rgba(244, 239, 233, 0.06); display: flex; justify-content: space-between; gap: 16px; }
.contact .info ul li:last-child { border-bottom: 1px solid rgba(244, 239, 233, 0.06); }
.contact .info ul li .v { color: var(--ink); }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  position: relative;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(244, 239, 233, 0.08);
  background: linear-gradient(180deg, rgba(17, 14, 13, 0.55), rgba(11, 8, 8, 0.35));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.form .field { display: flex; flex-direction: column; gap: 8px; }
.form .field.full { grid-column: 1 / -1; }

.form label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.form label .req { color: var(--red); margin-left: 4px; }

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 14px 14px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(244, 239, 233, 0.12);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  border-radius: 2px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 1px rgba(200, 16, 46, 0.4), 0 0 20px rgba(255, 42, 61, 0.15);
  background: rgba(0,0,0,0.6);
}
.form textarea { resize: vertical; min-height: 130px; font-family: var(--serif); line-height: 1.5; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-dim) 50%), linear-gradient(135deg, var(--ink-dim) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.form select option { background: var(--bg-2); color: var(--ink); }

.form .err {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-glow);
  min-height: 12px;
}

.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.form .submit-row {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-top: 6px;
}
.form .form-status {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.form .form-status.ok { color: var(--ink); }
.form .form-status.err { color: var(--red-glow); }

@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Page hero (gallery / film / services)
   -------------------------------------------------------------------------- */
.page-hero {
  padding: clamp(80px, 14vh, 140px) clamp(20px, 5vw, 64px) clamp(40px, 6vh, 60px);
  max-width: 1480px; margin: 0 auto;
  position: relative;
}
.page-hero .crumb {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 18px;
}
.page-hero .crumb a:hover { color: var(--ink); }
.page-hero .crumb .sep { color: var(--ink-faint); margin: 0 10px; }

/* --------------------------------------------------------------------------
   Gallery hub — category cards
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.cat-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(244, 239, 233, 0.06);
  background: var(--bg-2);
  isolation: isolate;
}
.cat-card .cover {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  filter: saturate(0.9) brightness(0.85);
  transition: transform 1.4s var(--ease), filter 0.6s var(--ease);
}
.cat-card::before {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.25) 50%, rgba(5,5,5,0.92) 100%);
}
.cat-card::after {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  border: 1px solid transparent;
  transition: border-color 0.5s var(--ease);
}
.cat-card:hover .cover { transform: scale(1.12); filter: saturate(1.1) brightness(1); }
.cat-card:hover::after { border-color: rgba(200, 16, 46, 0.7); box-shadow: inset 0 0 60px rgba(255, 42, 61, 0.15); }

.cat-card .label {
  position: absolute; inset: auto 0 0 0; z-index: 3;
  padding: clamp(20px, 3vw, 32px);
  display: flex; align-items: end; justify-content: space-between;
  gap: 16px;
}
.cat-card .label .name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  color: var(--ink);
}
.cat-card .label .count {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.cat-card .index {
  position: absolute; top: clamp(16px, 2vw, 24px); left: clamp(16px, 2vw, 24px); z-index: 3;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.32em;
  color: var(--red);
}

/* --------------------------------------------------------------------------
   Image grid (category subpages)
   -------------------------------------------------------------------------- */
.image-grid {
  --gap: clamp(8px, 1.2vw, 16px);
  column-count: 3;
  column-gap: var(--gap);
}
@media (max-width: 1080px) { .image-grid { column-count: 2; } }
@media (max-width: 600px)  { .image-grid { column-count: 1; } }

.image-grid .tile {
  break-inside: avoid;
  margin: 0 0 var(--gap);
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  cursor: zoom-in;
  isolation: isolate;
}
.image-grid .tile img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1s var(--ease), filter 0.5s var(--ease);
  filter: saturate(0.95);
}
.image-grid .tile::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
  pointer-events: none;
}
.image-grid .tile:hover img { transform: scale(1.04); filter: saturate(1.1); }
.image-grid .tile:hover::after { border-color: rgba(200, 16, 46, 0.7); }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.96);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
  padding: clamp(40px, 6vh, 80px) clamp(20px, 4vw, 60px);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  animation: lbFade 0.4s var(--ease);
}
@keyframes lbFade { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }

.lightbox .lb-btn {
  position: absolute;
  width: 48px; height: 48px;
  border: 1px solid rgba(244, 239, 233, 0.18);
  background: rgba(0,0,0,0.6);
  color: var(--ink);
  display: grid; place-items: center;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.lightbox .lb-btn:hover { border-color: var(--red); background: rgba(200, 16, 46, 0.2); }
.lightbox .lb-close { top: 24px; right: 24px; }
.lightbox .lb-prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next  { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.lightbox .lb-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--ink-dim);
}

/* --------------------------------------------------------------------------
   Film production page
   -------------------------------------------------------------------------- */
.film-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(540px, 100%), 1fr));
  gap: clamp(28px, 3vw, 48px);
}
.film-card {
  display: flex; flex-direction: column;
  gap: 14px;
}
.film-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(244, 239, 233, 0.08);
  background: #000;
  overflow: hidden;
  isolation: isolate;
}
.film-embed::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  border: 1px solid transparent;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.film-card:hover .film-embed::before {
  border-color: rgba(200, 16, 46, 0.6);
  box-shadow: inset 0 0 40px rgba(255, 42, 61, 0.12);
}
.film-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-meta {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-dim);
}
.film-meta .num { color: var(--red); }
.film-card h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2vw, 28px);
  color: var(--ink);
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   Services / pricing cards
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: clamp(18px, 2vw, 28px);
}
.svc-card {
  position: relative;
  padding: clamp(28px, 3vw, 40px);
  background: linear-gradient(180deg, rgba(17, 14, 13, 0.6), rgba(11, 8, 8, 0.4));
  border: 1px solid rgba(244, 239, 233, 0.08);
  display: flex; flex-direction: column;
  gap: 18px;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  isolation: isolate;
}
.svc-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.svc-card:hover {
  border-color: rgba(200, 16, 46, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 60px rgba(200, 16, 46, 0.12);
}
.svc-card:hover::before { opacity: 1; }

.svc-card .num {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
}
.svc-card h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.1;
  color: var(--ink);
}
.svc-card p {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.6;
}
.svc-card ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 4px;
}
.svc-card ul li {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(244, 239, 233, 0.08);
  font-size: 15px;
  color: var(--ink);
}
.svc-card ul li:last-child { border-bottom: 0; }
.svc-card ul li .price {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--red);
  white-space: nowrap;
}
.svc-card .note {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative; z-index: 5;
  margin-top: clamp(60px, 9vh, 120px);
  padding: clamp(40px, 6vh, 72px) clamp(20px, 5vw, 64px) clamp(28px, 4vh, 40px);
  border-top: 1px solid rgba(244, 239, 233, 0.06);
  background: rgba(5, 5, 5, 0.7);
}
.site-footer .inner {
  max-width: 1480px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto;
  gap: 24px; align-items: end;
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-faint);
}
.site-footer .inner .brand-line { color: var(--ink-dim); font-family: var(--serif); font-style: italic; font-size: 16px; letter-spacing: 0.02em; text-transform: none; }
.site-footer .inner .brand-line .accent { color: var(--red); }
.site-footer .inner a:hover { color: var(--ink); }
.site-footer .inner ul { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 600px) {
  .site-footer .inner { grid-template-columns: 1fr; }
  .site-footer .inner ul { justify-content: flex-start; }
}

/* --------------------------------------------------------------------------
   Reveal-on-scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .title-reveal .word .inner { transform: none; opacity: 1; filter: none; }
  .reveal { opacity: 1; transform: none; }
}
