/* =========================================================
   SAFIR WEDDING DESIGN — opulent sapphire + gold
   Display: Cormorant Garamond · Body/UI: Jost
   ========================================================= */

:root {
  --ink:        #080d18;   /* deepest midnight base */
  --sapphire:   #0f1b33;   /* panel */
  --sapphire-2: #0b1220;   /* alt band */
  --royal:      #1e3a8a;   /* royal-blue accent */
  --gold:       #c9a227;   /* gold leaf */
  --gold-lite:  #e3c66b;   /* bright gold */
  --gold-soft:  rgba(201,162,39,.30);
  --gold-hair:  rgba(201,162,39,.45);
  --ivory:      #f4efe6;   /* primary text */
  --muted:      #9aa6bf;   /* secondary text */

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --display: "Cormorant Garamond", "Times New Roman", serif;
  --body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ── Reset / base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 300;
  color: var(--ivory);
  background: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

:focus-visible {
  outline: 2px solid var(--gold-lite);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Shared editorial type devices ──────────────────── */
.eyebrow {
  display: inline-block;
  font-family: var(--body);
  font-weight: 400;
  font-size: .72rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold-lite);
  margin: 0 0 1.1rem;
  padding-left: .42em; /* offset the trailing letter-spacing */
}
.eyebrow-center { padding-left: 0; }

.section-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.1rem, 5.4vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: .005em;
  margin: 0;
  color: var(--ivory);
}
.section-title em { font-style: italic; color: var(--gold-lite); }

.rule {
  display: block;
  width: 64px;
  height: 1px;
  margin: 1.4rem 0 1.6rem;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-sub {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
  max-width: 46ch;
  margin: 0;
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: 0 1.9rem;
  font-family: var(--body);
  font-weight: 400;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background .35s var(--ease),
              color .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-lite), var(--gold));
  color: #1a1303;
  box-shadow: 0 8px 30px -12px rgba(201,162,39,.7);
}
.btn-gold:hover { background: var(--gold-lite); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: var(--gold-hair);
}
.btn-ghost:hover { border-color: var(--gold-lite); color: var(--gold-lite); }

/* ════════════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease),
              backdrop-filter .4s var(--ease), box-shadow .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,13,24,.86);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--gold-soft);
  box-shadow: 0 18px 40px -28px #000;
}
.nav-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  margin-right: auto;
}
.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: .26em;
  color: var(--ivory);
  padding-left: .26em;
}
.brand-sub {
  font-family: var(--body);
  font-weight: 400;
  font-size: .58rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold-lite);
  margin-top: .42rem;
  padding-left: .42em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0; padding: 0;
}
.nav-links a {
  font-family: var(--body);
  font-weight: 400;
  font-size: .76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ivory);
  text-decoration: none;
  position: relative;
  padding: .4rem 0;
  transition: color .3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold-lite);
  transition: width .35s var(--ease);
}
.nav-links a:hover { color: var(--gold-lite); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { margin-left: .5rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 26px; height: 1.5px;
  margin-inline: auto;
  background: var(--ivory);
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  background: linear-gradient(180deg, var(--sapphire) 0%, var(--ink) 100%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.nav-mobile.open { opacity: 1; visibility: visible; transform: none; }
.nav-mobile .nav-links {
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}
.nav-mobile .nav-links a {
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: .14em;
  text-transform: none;
}
.nav-mobile .nav-links a::after { display: none; }

/* ════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem var(--gutter) 6rem;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
  /* source is only 361x640 — slight scale + heavy scrim hide the upscale */
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.06);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 80% at 50% 8%, rgba(30,58,138,.25), transparent 60%),
    linear-gradient(180deg, rgba(8,13,24,.82) 0%, rgba(11,18,32,.6) 38%, rgba(8,13,24,.92) 100%);
}
/* Signature: a gold hairline "frame within a frame" — gilded-frame motif */
.hero-frame {
  position: absolute;
  inset: clamp(1rem, 2.4vw, 2rem);
  z-index: 2;
  border: 1px solid var(--gold-hair);
  pointer-events: none;
}
.hero-frame::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(201,162,39,.18);
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 860px;
}
.hero-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.9rem, 9vw, 6.4rem);
  line-height: 1.0;
  letter-spacing: .01em;
  margin: 0;
  color: var(--ivory);
  text-shadow: 0 2px 40px rgba(0,0,0,.5);
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-lite);
}
.hero-rule {
  display: block;
  width: 92px;
  height: 1px;
  margin: 1.8rem auto;
  background: linear-gradient(90deg, transparent, var(--gold-lite), transparent);
  position: relative;
}
.hero-rule::after {
  content: "✦";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold-lite);
  font-size: .7rem;
  text-shadow: 0 0 10px rgba(8,13,24,.9);
}
.hero-sub {
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(1rem, 2.1vw, 1.18rem);
  letter-spacing: .02em;
  color: rgba(244,239,230,.86);
  max-width: 50ch;
  margin: 0 auto 2.4rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: 2.4rem; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}
.hero-scroll-line {
  width: 1px; height: 46px;
  background: linear-gradient(180deg, var(--gold-lite), transparent);
}
.hero-scroll-text {
  font-family: var(--body);
  font-size: .62rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: .34em;
}

/* ════════════════════════════════════════════════════
   ABOUT / ATELIER
   ════════════════════════════════════════════════════ */
.about {
  position: relative;
  padding: clamp(5rem, 11vw, 8.5rem) 0;
  background:
    radial-gradient(80% 60% at 85% 0%, rgba(30,58,138,.12), transparent 60%),
    var(--ink);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.about-text .lead {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ivory);
  margin: 0 0 1.3rem;
}
.about-text p { color: var(--muted); margin: 0 0 1.2rem; max-width: 52ch; }
.about-text p:last-of-type { margin-bottom: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.6rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--gold-soft);
}
.stat { display: flex; flex-direction: column; gap: .35rem; }
.stat-number {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1;
  color: var(--gold-lite);
}
.stat-label {
  font-family: var(--body);
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-figure {
  position: relative;
  margin: 0;
  justify-self: center;
}
.frame {
  position: relative;
  padding: 12px;
  border: 1px solid var(--gold-hair);
  background: linear-gradient(160deg, rgba(201,162,39,.08), rgba(8,13,24,.4));
}
.frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(201,162,39,.2);
  pointer-events: none;
}
.frame-portrait {
  width: min(320px, 70vw);
}
.frame-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 28%;
}
.about-crest {
  position: absolute;
  width: clamp(96px, 16vw, 132px);
  height: auto;
  right: -22px;
  bottom: -28px;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  box-shadow: 0 16px 40px -18px #000;
  background: var(--ivory);
}

/* ════════════════════════════════════════════════════
   SERVICES — numbered editorial list
   ════════════════════════════════════════════════════ */
.services {
  position: relative;
  padding: clamp(5rem, 11vw, 8.5rem) 0;
  background: linear-gradient(180deg, var(--sapphire-2) 0%, var(--ink) 100%);
  border-top: 1px solid var(--gold-soft);
  border-bottom: 1px solid var(--gold-soft);
}
.services-head { max-width: 720px; margin-bottom: clamp(2.5rem, 6vw, 4rem); }

.service-list {
  list-style: none;
  margin: 0; padding: 0;
}
.service-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  padding: clamp(1.8rem, 4vw, 2.6rem) 0;
  border-top: 1px solid var(--gold-soft);
  transition: background .4s var(--ease);
}
.service-row:last-child { border-bottom: 1px solid var(--gold-soft); }
.service-num {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-hair);
  letter-spacing: .02em;
  transition: color .4s var(--ease), -webkit-text-stroke-color .4s var(--ease);
}
.service-icon {
  width: clamp(34px, 5vw, 44px);
  height: clamp(34px, 5vw, 44px);
  color: var(--gold-lite);
  flex: none;
}
.service-icon svg { width: 100%; height: 100%; }
.service-body { min-width: 0; }
.service-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.1;
  margin: 0 0 .4rem;
  color: var(--ivory);
}
.service-desc {
  color: var(--muted);
  font-size: clamp(.95rem, 1.4vw, 1.02rem);
  margin: 0;
  max-width: 60ch;
}
.service-row:hover { background: rgba(30,58,138,.08); }
.service-row:hover .service-num { color: var(--gold-lite); -webkit-text-stroke-color: var(--gold-lite); }

/* ════════════════════════════════════════════════════
   GALLERY
   ════════════════════════════════════════════════════ */
.gallery {
  padding: clamp(5rem, 11vw, 8.5rem) 0;
  background:
    radial-gradient(70% 50% at 15% 100%, rgba(30,58,138,.12), transparent 60%),
    var(--ink);
}
.gallery-head { max-width: 680px; margin-bottom: clamp(2.5rem, 6vw, 4rem); }

.gallery-feature {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.gallery-item-lg {
  aspect-ratio: 4 / 5;
  max-height: 640px;
}
.gallery-item-lg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.gallery-feature-aside { align-self: center; }
.gallery-quote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 1.95rem);
  line-height: 1.4;
  color: var(--ivory);
  margin: 0 0 1.6rem;
  padding-left: 1.4rem;
  border-left: 2px solid var(--gold);
}
.gallery-ig-link {
  display: inline-block;
  font-family: var(--body);
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-lite);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: .25rem;
  transition: border-color .3s var(--ease);
}
.gallery-ig-link:hover { border-color: var(--gold-lite); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.8rem);
  max-width: 780px;
  margin-inline: auto;
}
.gallery-tile {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  text-align: center;
}
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--gold-soft);
  background: var(--sapphire-2);
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.gallery-feature .gallery-item-lg img {
  object-fit: cover;
}
/* The tiles are the founder portrait + two ivory watercolour brand marks —
   shown on an ivory mat as gilded medallions, never stretched photos. */
.gallery-tile .gallery-item {
  background: radial-gradient(circle at 50% 40%, #fbf8f1, #efe7d8);
}
.gallery-tile .gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
/* the two watercolour emblems (2nd + 3rd tile) are art, not photographs:
   contain + padding so they read as framed medallions */
.gallery-tile:nth-child(2) .gallery-item img,
.gallery-tile:nth-child(3) .gallery-item img {
  object-fit: contain;
  padding: clamp(.6rem, 2vw, 1.2rem);
}
/* warmer champagne mat + a fine gold inner ring so even pale gold-on-ivory
   artwork reads as a deliberate embossed seal, never an empty square */
.gallery-tile:nth-child(2) .gallery-item,
.gallery-tile:nth-child(3) .gallery-item {
  background: radial-gradient(circle at 50% 42%, #f3ead8, #e6d8bd);
}
.gallery-tile:nth-child(2) .gallery-item::before,
.gallery-tile:nth-child(3) .gallery-item::before {
  content: "";
  position: absolute;
  inset: clamp(.5rem, 1.6vw, .9rem);
  border: 1px solid rgba(201,162,39,.5);
  border-radius: 50%;
  pointer-events: none;
}
.gallery-tile figcaption {
  font-family: var(--body);
  font-size: .64rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 0 var(--gold-lite);
  pointer-events: none;
  transition: box-shadow .4s var(--ease);
}
.gallery-item:hover { border-color: var(--gold-lite); transform: translateY(-3px); }
.gallery-grid .gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover::after { box-shadow: inset 0 0 0 1px var(--gold-soft); }

/* ════════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════════ */
.contact {
  padding: clamp(5rem, 11vw, 8.5rem) 0;
  background: linear-gradient(180deg, var(--ink) 0%, var(--sapphire) 100%);
  border-top: 1px solid var(--gold-soft);
}
.contact-panel {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(2.8rem, 6vw, 4.8rem) clamp(1.5rem, 5vw, 4rem);
  background:
    radial-gradient(100% 80% at 50% 0%, rgba(30,58,138,.18), transparent 65%),
    rgba(11,18,32,.55);
}
.contact-frame {
  position: absolute;
  inset: clamp(.8rem, 2vw, 1.4rem);
}
.contact-title { margin-inline: auto; }
.contact-desc {
  color: var(--muted);
  max-width: 52ch;
  margin: 2rem auto 2.6rem;
  position: relative; z-index: 1;
}
.contact-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  margin: 0 0 2.8rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--gold-soft);
  border-bottom: 1px solid var(--gold-soft);
  position: relative; z-index: 1;
}
.contact-fact { display: flex; flex-direction: column; gap: .4rem; }
.contact-fact dt {
  font-family: var(--body);
  font-size: .62rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-fact dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--ivory);
}
.contact-fact dd a { color: var(--gold-lite); text-decoration: none; }
.contact-fact dd a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  position: relative; z-index: 1;
}

/* ════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════ */
.footer {
  padding: 3rem 0;
  background: var(--ink);
  border-top: 1px solid var(--gold-soft);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}
.brand-footer { margin-right: 0; }
.footer-copy {
  font-family: var(--body);
  font-size: .8rem;
  color: var(--muted);
  margin: 0;
  text-align: center;
}
.footer-ig {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--body);
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--ivory);
  text-decoration: none;
  transition: color .3s var(--ease);
}
.footer-ig:hover { color: var(--gold-lite); }

/* ════════════════════════════════════════════════════
   STICKY MOBILE CTA BAR
   ════════════════════════════════════════════════════ */
.mobile-cta-bar {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom, 0));
  background: rgba(8,13,24,.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--gold-soft);
}
.mobile-cta-bar .btn { width: 100%; }

/* ════════════════════════════════════════════════════
   LIGHTBOX
   ════════════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 5vw, 4rem);
  background: rgba(5,8,15,.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-figure {
  margin: 0;
  max-width: min(90vw, 720px);
  max-height: 86vh;
  padding: 12px;
  border: 1px solid var(--gold-hair);
  background: var(--sapphire-2);
}
.lightbox-figure img {
  max-width: 100%;
  max-height: calc(86vh - 24px);
  object-fit: contain;
  margin-inline: auto;
}
.lightbox button {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 999px;
  border: 1px solid var(--gold-hair);
  background: rgba(8,13,24,.6);
  color: var(--ivory);
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.lightbox button svg { width: 22px; height: 22px; }
.lightbox button:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.lightbox-close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox-prev { left: clamp(.6rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: clamp(.6rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }

/* ════════════════════════════════════════════════════
   MOTION (gated behind reduced-motion preference)
   ════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
  }
  .reveal.in { opacity: 1; transform: none; }

  .hero-inner > * { animation: rise 1s var(--ease) both; }
  .hero-inner .eyebrow      { animation-delay: .05s; }
  .hero-inner .hero-title   { animation-delay: .15s; }
  .hero-inner .hero-rule    { animation-delay: .3s; }
  .hero-inner .hero-sub     { animation-delay: .4s; }
  .hero-inner .hero-actions { animation-delay: .5s; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
  }
  .hero-scroll-line { animation: pulse 2.4s var(--ease) infinite; transform-origin: top; }
  @keyframes pulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
}

/* ════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════ */
@media (max-width: 920px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { order: -1; }
  .gallery-feature { grid-template-columns: 1fr; }
  .gallery-item-lg { aspect-ratio: 4 / 3; max-height: 480px; }
}

@media (max-width: 760px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
  .mobile-cta-bar { display: block; }
  body { padding-bottom: 4.5rem; } /* room for sticky bar */

  .stats { grid-template-columns: 1fr; gap: 1.4rem; }
  .service-row { grid-template-columns: auto 1fr; column-gap: 1.2rem; row-gap: .4rem; }
  .service-icon { grid-row: 1 / 3; align-self: start; margin-top: .3rem; }
  .service-num {
    grid-column: 2;
    font-size: 2rem;
    margin-bottom: -.2rem;
  }
  .service-body { grid-column: 2; }
  .about-crest { right: 8px; }
  .gallery-tile { gap: .6rem; }
  .gallery-tile figcaption { font-size: .58rem; letter-spacing: .2em; }
}

@media (max-width: 400px) {
  .hero-frame { inset: .6rem; }
}
