/* ==========================================================================
   Little Ten Mile Equine Dentistry
   Design tokens and styles per the design handoff.
   Radius: 2px on buttons only. Shadows: none anywhere.
   ========================================================================== */

:root {
  /* Colors */
  --cream:          #f8f3e8;
  --ink:            #221509;
  --dark-brown:     #1c130d;
  --near-black:     #161210;
  --brass:          #c9a876;
  --brass-hover:    #dcbb8c;
  --warm-brown:     #6e4526;
  --mid-brown:      #8a6a3f;
  --body-brown:     #4a3c2c;
  --muted-warm:     #7a6a54;
  --cream-body:     #e6dcc8;
  --muted-cream:    #cbbfae;
  --dim-cream:      #9c8a70;
  --footer-label:   #8a7a64;
  --footer-legal:   #6b5f4f;
  --rule-cream:     #e2d5bb;
  --rule-stat:      #ddd0b8;
  --rule-input:     #d8c9a8;
  --rule-dark:      #2c2620;
  --nav-scrolled:   #1c130dee;
  --nav-top:        rgba(28, 19, 13, 0.4);

  /* Type */
  --serif: 'Bodoni Moda', 'Didot', 'Times New Roman', serif;
  --sans:  'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-pad: clamp(64px, 10vw, 140px) 6vw;
  --hero-pad:    clamp(140px, 16vw, 64px) clamp(24px, 6vw, 80px) clamp(64px, 8vw, 96px);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:hover { color: var(--brass); }

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

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }
p { margin: 0; }

/* Visible focus ring — not defined in the prototype, added per handoff. */
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 3000;
  background: var(--brass);
  color: var(--dark-brown);
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  color: var(--dark-brown);
}

/* --------------------------------------------------------------------------
   Shared primitives
   -------------------------------------------------------------------------- */

/* Brass button */
.btn {
  display: inline-block;
  background: var(--brass);
  color: var(--dark-brown);
  padding: 16px 32px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  width: max-content;
}
.btn:hover { background: var(--brass-hover); color: var(--dark-brown); }
.btn--lg { padding: 18px 36px; }
.btn--sm { padding: 12px 26px; font-size: 12px; }
.btn--block { width: 100%; text-align: center; }

/* Kickers */
.kicker {
  display: block;
  font-size: 12px;
  letter-spacing: 0.24em;
  font-weight: 600;
  color: var(--brass);
}
.kicker--cream { color: var(--mid-brown); }

/* Cover images that fill their cell */
.cover { width: 100%; height: 100%; object-fit: cover; }

/* Section grounds */
.sec          { padding: var(--section-pad); }
.sec--cream   { background: var(--cream); }
.sec--dark    { background: var(--dark-brown); color: var(--cream); }
.sec--black   { background: var(--near-black); color: var(--cream); }
.sec--center  { text-align: center; }

/* Dark page hero (Services / Travel / Gallery) */
.page-hero {
  min-height: 64vh;            /* Services */
  background: var(--dark-brown);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--hero-pad);
  gap: 24px;
}
.page-hero h1 {
  font-size: clamp(40px, 7vw, 86px);
  line-height: 1.04;
  max-width: 820px;
}
.page-hero p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted-cream);
  max-width: 460px;
}
.page-hero--travel { min-height: 56vh; }
.page-hero--travel h1 { max-width: 760px; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 48px);
  background: var(--nav-top);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background 0.35s ease;
}
.nav.is-scrolled { background: var(--nav-scrolled); }

.nav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--cream);
  line-height: 1.15;
}
.nav__brand:hover { color: var(--cream); }
.nav__logo { width: 52px; height: 52px; flex: 0 0 auto; }
.nav__lockup { display: flex; flex-direction: column; }
.nav__name {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.04em;
}
.nav__sub {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--brass);
}

.nav__links { display: flex; align-items: center; gap: 40px; }
.nav__link {
  text-decoration: none;
  color: var(--cream);
  font-size: 14px;
  letter-spacing: 0.03em;
}
.nav__link:hover { color: var(--brass); }

/* Hamburger */
.nav__toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--cream);
}
.nav__toggle span:last-child { width: 18px; }

/* Mobile overlay */
.menu {
  position: fixed;
  inset: 0;
  /* Spec says 999, but the nav sits at 1000 and would cover the close button,
     making it unclickable. The overlay is full-screen by design (its 100px top
     padding assumes it covers the nav), so it paints above the nav. */
  z-index: 1001;
  background: var(--dark-brown);
  display: none;
  flex-direction: column;
  padding: 100px 40px 40px;
  gap: 32px;
  overflow-y: auto;
}
.menu.is-open { display: flex; }
.menu a {
  text-decoration: none;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 28px;
}
.menu a:hover { color: var(--brass); }
.menu .btn {
  margin-top: 20px;
  width: 100%;
  padding: 18px;
  text-align: center;
  font-size: 13px;
  font-family: var(--sans);
}
.menu__close {
  position: absolute;
  top: 28px;
  right: 28px;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

/* Breakpoint: 900px (CSS media query, replacing the prototype's JS width check) */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
}

body.is-locked { overflow: hidden; }

/* --------------------------------------------------------------------------
   Home
   -------------------------------------------------------------------------- */

.hero { display: flex; flex-wrap: wrap; }
.hero__media { flex: 1 1 520px; min-height: 94vh; align-self: stretch; }
.hero__media img { object-position: center 35%; }
.hero__panel {
  flex: 1 1 520px;
  min-height: 94vh;
  background: var(--dark-brown);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 7vw, 88px) clamp(28px, 6vw, 96px);
  gap: 26px;
}
.hero__panel h1 {
  font-size: clamp(40px, 6.5vw, 84px);
  line-height: 1.04;
}
.hero__lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted-cream);
  max-width: 440px;
}
.hero__actions {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
}
.hero__textlink {
  text-decoration: underline;
  color: var(--cream);
  font-size: 14px;
}
.hero__textlink:hover { color: var(--brass); }

/* --- Hero, mobile only (<=767px) -------------------------------------------
   The two 520px flex cells wrap to a stack here. Make the stack fill exactly
   one screen: the panel takes its natural height and the image absorbs
   whatever is left, so no cream section peeks in below the fold.
   Tablet and desktop (768px+) are untouched. */
@media (max-width: 767px) {
  .hero {
    flex-direction: column;
    min-height: 100vh;    /* fallback for browsers without svh */
    min-height: 100svh;   /* excludes mobile browser chrome */
  }

  /* Image takes the remainder of the screen above the panel. */
  .hero__media {
    position: relative;
    align-self: stretch;
    flex: 1 1 auto;
    height: auto;
    max-height: none;
    min-height: 34svh;
  }
  /* The media cell's height comes from `flex: 1 1 auto`, which is indefinite,
     so the image's `height: 100%` cannot resolve and it collapses to its
     natural aspect ratio. Pin it to the cell so it always fills. */
  .hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }
  .hero__media::after {
    content: '';
    position: absolute;
    inset: auto 0 -1px 0;
    height: 45%;
    background: linear-gradient(
      180deg,
      rgba(28, 19, 13, 0) 0%,
      rgba(28, 19, 13, 0.45) 55%,
      rgba(28, 19, 13, 0.85) 82%,
      var(--dark-brown) 100%
    );
    pointer-events: none;
  }

  /* Panel is exactly as tall as its content. */
  .hero__panel {
    flex: 0 0 auto;
    min-height: 0;
    padding: 32px 28px 40px;
    gap: 18px;
  }
  .hero__panel h1 { font-size: 38px; line-height: 1.06; }
  .hero__lede { font-size: 16px; line-height: 1.55; }

  .hero__actions {
    gap: 18px;
    margin-top: 6px;
  }
  .hero__actions .btn { padding: 16px 30px; }
}

/* Short portrait screens (iPhone SE and similar): shrink the panel so the
   image still gets room and the CTAs stay above the fold. */
@media (max-width: 767px) and (max-height: 700px) {
  .hero__media { min-height: 22svh; }
  .hero__panel { padding: 22px 24px 28px; gap: 12px; }
  .hero__panel h1 { font-size: 30px; line-height: 1.08; }
  .hero__lede { font-size: 14px; line-height: 1.5; }
  .hero__actions { gap: 12px; margin-top: 0; }
  .hero__actions .btn { padding: 13px 24px; font-size: 12px; }
  .hero__panel .kicker { font-size: 11px; }
}

/* Landscape phones: wide but very short, so the split can stay side by side. */
@media (min-width: 568px) and (max-width: 900px) and (orientation: landscape) {
  .hero { flex-direction: row; }
  .hero__media {
    flex: 1 1 520px;
    height: auto;
    min-height: 100svh;
  }
  .hero__media img { object-position: center 35%; }
  .hero__media::after { content: none; }
  .hero__panel { flex: 1 1 520px; min-height: 100svh; padding: 32px 28px; }
}

.statement { padding: 120px 6vw 0; background: var(--cream); }
.statement__inner { max-width: 720px; margin: 0 auto; text-align: center; }
.statement h2 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.12;
  margin-bottom: 28px;
}
.statement p { font-size: 18px; line-height: 1.75; color: var(--body-brown); }
.statement__band {
  margin-top: 64px;
  height: 56vh;
  min-height: 380px;
  position: relative;
}
.statement__band img { object-position: center 40%; }

.price {
  margin-top: -90px;
  position: relative;
  z-index: 2;
  background: var(--dark-brown);
  color: var(--cream);
  padding: 150px 6vw 100px;
  text-align: center;
}
.price .kicker { margin-bottom: 24px; }
.price__figure {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(80px, 16vw, 200px);
  line-height: 0.9;
}
.price__unit {
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--brass);
  margin-top: 12px;
  font-weight: 600;
}
.price__body {
  max-width: 540px;
  margin: 36px auto 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--cream-body);
}
.price__note {
  max-width: 520px;
  margin: 20px auto 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--dim-cream);
}

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: center;
  padding: var(--section-pad);
  background: var(--cream);
}
.split__media { flex: 1 1 380px; height: 460px; }
.split__body  { flex: 1 1 380px; }
.split__body h2 {
  font-size: clamp(32px, 4.5vw, 50px);
  line-height: 1.12;
  margin: 0 0 28px;
}
.split__body .kicker { margin-bottom: 20px; }
.split__body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--body-brown);
  margin-bottom: 40px;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 22px;
  border-top: 1px solid var(--rule-stat);
  padding-top: 32px;
}
.stat__num {
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 88px);
  color: var(--warm-brown);
  line-height: 1;
}
.stat__label {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--body-brown);
  max-width: 170px;
  line-height: 1.5;
}

.travelgrad {
  background: linear-gradient(180deg, #1c130d 0%, #4a3324 42%, #f8f3e8 100%);
  padding: clamp(80px, 10vw, 140px) 6vw;
}
.travelgrad__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.travelgrad h2 {
  color: var(--cream);
  font-size: clamp(30px, 5vw, 54px);
  margin: 0 0 28px;
  line-height: 1.12;
}
.travelgrad__inner p {
  color: var(--cream-body);
  font-size: 17px;
  line-height: 1.75;
}
.travelgrad__caption {
  text-align: center;
  max-width: 480px;
  margin: 32px auto 0;
  font-size: 13px;
  color: var(--muted-warm);
}

/* Distance diagram */
.distance {
  display: flex;
  align-items: center;
  max-width: 600px;
  margin: 72px auto 0;
}
.distance__end { text-align: center; flex: 0 0 auto; }
.distance__place {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
}
.distance__meta {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--warm-brown);
  margin-top: 6px;
}
.distance__rule {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(to right, #6e4526 0 8px, transparent 8px 16px);
  margin: 0 24px;
}
@media (max-width: 420px) {
  .distance { flex-direction: column; gap: 20px; }
  .distance__rule {
    width: 100%;
    flex: 0 0 auto;
    margin: 0;
  }
}

.steps__title {
  text-align: center;
  font-size: clamp(28px, 4.5vw, 46px);
  margin: 0 0 72px;
}
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}
.step { flex: 1 1 260px; max-width: 320px; }
.step__num {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--brass);
  letter-spacing: 0.1em;
}
.step__title {
  font-family: var(--serif);
  font-size: 26px;
  margin: 16px 0 12px;
}
.step p { font-size: 15px; color: var(--body-brown); line-height: 1.7; }

.feature { display: flex; flex-wrap: wrap; background: var(--near-black); }
.feature__media { flex: 1 1 460px; height: 520px; }
.feature__media img { object-position: center 40%; }
.feature__body {
  flex: 1 1 460px;
  min-height: 520px;
  color: var(--cream);
  padding: clamp(48px, 6vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}
.feature__body h2 { font-size: clamp(30px, 4.5vw, 52px); line-height: 1.12; }
.feature__body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted-cream);
  max-width: 440px;
}

.closing h2 { font-size: clamp(30px, 5vw, 54px); margin: 0 0 28px; }
.closing p {
  max-width: 620px;
  margin: 0 auto 56px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--body-brown);
}
.closing__band {
  max-width: 1100px;
  margin: 0 auto;
  height: 48vh;
  min-height: 340px;
}
.closing__band img { object-position: center 45%; }

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.statband {
  padding: var(--section-pad);
  background: var(--cream);
  display: flex;
  flex-wrap: wrap;
  text-align: center;
  border-bottom: 1px solid var(--rule-cream);
}
.statband__cell { flex: 1 1 280px; padding: 24px; }
.statband__cell + .statband__cell { border-left: 1px solid var(--rule-cream); }
.statband__num {
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 96px);
  color: var(--warm-brown);
  line-height: 1;
}
.statband__label {
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--mid-brown);
  margin-top: 14px;
  font-weight: 600;
}
@media (max-width: 620px) {
  .statband__cell + .statband__cell {
    border-left: none;
    border-top: 1px solid var(--rule-cream);
    margin-top: 24px;
    padding-top: 48px;
  }
}

.depends {
  padding: var(--section-pad);
  background: var(--cream);
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
}
.depends__intro { flex: 1 1 340px; }
.depends__intro h2 {
  font-size: clamp(30px, 4.5vw, 48px);
  margin: 0 0 24px;
  line-height: 1.15;
}
.depends__intro p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--body-brown);
  max-width: 420px;
}
.depends__grid {
  flex: 2 1 480px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule-cream);
}
.depends__cell { background: var(--cream); padding: 36px; }
@media (max-width: 520px) {
  .depends__grid { grid-template-columns: 1fr; }
  .depends__cell { padding: 28px 24px; }
}
.depends__cell .step__num { font-size: 13px; letter-spacing: 0; }
.depends__cell div:last-child {
  font-size: 19px;
  margin-top: 14px;
  font-family: var(--serif);
}

.feature--short .feature__media { height: 460px; }
.feature--short .feature__media img { object-position: center 35%; }
.feature--short .feature__body { min-height: 460px; }
.feature--short .feature__body h2 { font-size: clamp(30px, 4.5vw, 50px); line-height: 1.15; }
.feature--short .feature__body p { font-size: 16px; line-height: 1.7; max-width: 420px; }

/* --------------------------------------------------------------------------
   Travel
   -------------------------------------------------------------------------- */

.tr-row {
  padding: var(--section-pad);
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
}
.tr-row--cream {
  background: var(--cream);
  border-bottom: 1px solid var(--rule-cream);
}
.tr-row--dark { background: var(--near-black); color: var(--cream); }
.tr-row__label { flex: 1 1 300px; }
.tr-row__label .kicker { margin-bottom: 16px; }
.tr-row__label h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}
.tr-row__body { flex: 2 1 420px; }
.tr-row__body p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--body-brown);
  max-width: 560px;
}
.tr-row--dark .tr-row__body p { color: var(--muted-cream); }
.tr-row__body p.has-diagram { margin-bottom: 40px; }

.distance--inline { max-width: 480px; margin: 0; }
.distance--inline .distance__place { font-size: 20px; }
.distance--inline .distance__rule { margin: 0 20px; }

.tr-closing h2 { font-size: clamp(32px, 5vw, 56px); margin: 0 0 24px; }
.tr-closing p {
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--body-brown);
}
.tr-closing .btn { display: inline-block; }

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.gal-hero {
  min-height: 46vh;
  padding: clamp(140px, 16vw, 64px) clamp(24px, 6vw, 80px) clamp(56px, 7vw, 80px);
  gap: 20px;
}
.gal-hero h1 { font-size: clamp(38px, 6.5vw, 76px); line-height: 1.06; }

.gallery { padding: 0 6vw clamp(64px, 10vw, 120px); background: var(--cream); }
.gallery__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-top: 56px;
}
.gallery__cell {
  cursor: pointer;
  padding: 0;
  border: none;
  background: none;
  overflow: hidden;
  display: block;
  /* Grid items default to min-width:auto, which for a button wrapping an image
     resolves to the image's intrinsic width and blows out the track. */
  min-width: 0;
}
.gallery__cell img { transition: transform 0.5s ease; }
.gallery__cell:hover img { transform: scale(1.03); }

/* Mosaic — mobile first, so no specificity war with the desktop vh heights.
   Base: one column. 561-900px: two columns. 901px+: the 6-column mosaic. */
.gallery__cell { aspect-ratio: 4 / 3; }

@media (min-width: 561px) and (max-width: 900px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .gallery__cell:nth-child(1) { grid-column: span 2; aspect-ratio: 3 / 2; }
  .gallery__cell:nth-child(2) { grid-column: span 1; aspect-ratio: 3 / 4; }
  .gallery__cell:nth-child(3) { grid-column: span 1; aspect-ratio: 3 / 4; }
  .gallery__cell:nth-child(4) { grid-column: span 2; aspect-ratio: 3 / 2; }
  .gallery__cell:nth-child(5) { grid-column: span 1; aspect-ratio: 3 / 4; }
  .gallery__cell:nth-child(6) { grid-column: span 1; aspect-ratio: 3 / 4; }
  .gallery__cell:nth-child(7) { grid-column: span 2; aspect-ratio: 3 / 2; }
  .gallery__cell:nth-child(8) { grid-column: span 2; aspect-ratio: 3 / 2; }
}

@media (min-width: 901px) {
  .gallery__grid { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .gallery__cell { aspect-ratio: auto; }
  .gallery__cell:nth-child(1) { grid-column: span 4; height: 60vh; min-height: 360px; }
  .gallery__cell:nth-child(2) { grid-column: span 2; height: 60vh; min-height: 360px; }
  .gallery__cell:nth-child(3) { grid-column: span 2; height: 40vh; min-height: 260px; }
  .gallery__cell:nth-child(4) { grid-column: span 3; height: 40vh; min-height: 260px; }
  .gallery__cell:nth-child(5) { grid-column: span 1; height: 40vh; min-height: 260px; }
  .gallery__cell:nth-child(6) { grid-column: span 6; height: 64vh; min-height: 400px; }
  .gallery__cell:nth-child(7) { grid-column: span 3; height: 48vh; min-height: 300px; }
  .gallery__cell:nth-child(8) { grid-column: span 3; height: 48vh; min-height: 300px; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(20, 14, 9, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox__frame {
  width: 100%;
  height: 100%;
  max-width: 1400px;
  position: relative;
}
.lightbox__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
  line-height: 1;
}
.lightbox__close { top: 28px; right: 28px; font-size: 36px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 44px; padding: 12px 20px; }
.lightbox__nav:hover { color: var(--brass); }
.lightbox__prev { left: 8px; }
.lightbox__next { right: 8px; }
.lightbox__count {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--dim-cream);
}
@media (max-width: 700px) {
  .lightbox { padding: 20px; }
  .lightbox__nav { font-size: 34px; padding: 10px 12px; }
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-hero {
  padding: clamp(140px, 18vw, 64px) 6vw clamp(24px, 5vw, 40px);
  background: var(--cream);
  text-align: center;
}
.contact-hero h1 {
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.1;
  margin: 0 auto 20px;
  max-width: 820px;
}
.contact-hero p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--body-brown);
  max-width: 560px;
  margin: 0 auto;
}

.form-section { padding: clamp(40px, 6vw, 64px) 6vw clamp(80px, 10vw, 140px); background: var(--cream); }

.form {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.form__row { display: flex; flex-wrap: wrap; gap: 28px; }
.form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--warm-brown);
}
.form__row .form__field { flex: 1 1 260px; }
.form input,
.form select,
.form textarea {
  font-family: var(--sans);
  font-size: 16px;
  padding: 14px 4px;
  border: none;
  border-bottom: 1px solid var(--rule-input);
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  width: 100%;
  letter-spacing: normal;
  transition: border-color 0.2s ease;
}
.form textarea { resize: vertical; }
.form select { -webkit-appearance: none; appearance: none; cursor: pointer; }
.form input:focus,
.form select:focus,
.form textarea:focus { border-bottom-color: var(--brass); }
.form input::placeholder,
.form textarea::placeholder { color: #b0a289; }
.form .btn { margin-top: 12px; }
.form__fineprint {
  font-size: 13px;
  color: var(--footer-label);
  text-align: center;
}

/* Honeypot — hidden from people, visible to bots. */
.form__hp {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Error / status states */
.form__field.has-error input,
.form__field.has-error select,
.form__field.has-error textarea { border-bottom-color: #9c3a24; }
.form__error {
  display: none;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #9c3a24;
  text-transform: none;
}
.form__field.has-error .form__error { display: block; }

.form__status {
  display: none;
  font-size: 14px;
  line-height: 1.6;
  padding: 16px 18px;
  border-left: 2px solid #9c3a24;
  background: #f2e7d5;
  color: #6b2a19;
}
.form__status.is-visible { display: block; }

.confirmation {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid var(--rule-input);
  border-bottom: 1px solid var(--rule-input);
  padding: clamp(56px, 8vw, 88px) 24px;
}
.confirmation h2 {
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.15;
  margin: 0 0 20px;
}
.confirmation p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--body-brown);
  max-width: 520px;
  margin: 0 auto;
}
.confirmation__meta {
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted-warm);
}
.confirmation__meta a { color: var(--warm-brown); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--near-black);
  color: var(--cream);
  padding: 80px 6vw 40px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
}
.footer__brand {
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.footer__brand img { width: 152px; height: 152px; }
.footer__brand p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted-cream);
}
.footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--footer-label);
}
.footer__col a {
  text-decoration: none;
  color: var(--cream-body);
  font-size: 14px;
}
.footer__col a:hover { color: var(--brass); }
.footer__legal {
  border-top: 1px solid var(--rule-dark);
  padding-top: 24px;
  font-size: 12px;
  color: var(--footer-legal);
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

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