/* ============================================================
   Miller Land Services LLC — scroll-driven landing page
   Palette: forest/charcoal greens + warm dirt tan, off-white text
   ============================================================ */

:root {
  --bg-dark:        #0c1310;   /* near-black forest */
  --bg-darker:      #070b08;
  --green-deep:     #16241b;
  --green-mid:      #2f4a36;
  --tan:            #c79a5e;   /* warm dirt / equipment accent */
  --tan-bright:     #e0b878;
  --text-on-dark:   #f1ede4;   /* warm off-white */
  --text-muted:     #b9c2b6;   /* readable muted on dark */
  --font-display: 'Bricolage Grotesque', Georgia, serif;
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;
}

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

html, body {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body { position: relative; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- LOADER ---------- */
#loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg-darker);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.6rem;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-brand {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.8rem); letter-spacing: 0.12em;
  color: var(--text-on-dark); text-align: center; line-height: 1;
}
.loader-brand span {
  display: block; font-size: 0.42em; letter-spacing: 0.42em;
  color: var(--tan); margin-top: 0.7em; padding-left: 0.42em;
}
#loader-track {
  width: min(260px, 60vw); height: 2px;
  background: rgba(255,255,255,0.12); overflow: hidden;
}
#loader-bar { width: 0%; height: 100%; background: var(--tan); transition: width 0.2s ease; }
#loader-percent { font-size: 0.8rem; letter-spacing: 0.25em; color: var(--text-muted); }

/* ---------- HEADER ---------- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem clamp(1.2rem, 4vw, 3.5rem);
  mix-blend-mode: normal;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7,11,8,0.85) 0%, rgba(7,11,8,0) 100%);
  pointer-events: none;
}
.logo { display: flex; align-items: center; }
.logo img {
  height: clamp(34px, 4.4vw, 46px); width: auto; display: block;
  filter: brightness(0) invert(1);   /* render black logo as white over dark header */
  transition: opacity 0.25s ease;
}
.logo:hover img { opacity: 0.82; }
.nav-links { display: flex; gap: clamp(1rem, 2.2vw, 2.4rem); }
.nav-links a {
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); transition: color 0.25s ease; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--tan); transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--text-on-dark); }
.nav-links a:hover::after { width: 100%; }
.header-cta {
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.92rem; letter-spacing: 0.04em;
  border: 1px solid rgba(199,154,94,0.55); color: var(--tan-bright);
  padding: 0.55em 1.1em; border-radius: 2px;
  transition: background 0.3s ease, color 0.3s ease;
}
.header-cta:hover { background: var(--tan); color: var(--bg-darker); }

/* ---------- MOBILE NAV TOGGLE (hamburger) ---------- */
.nav-toggle {
  display: none;                 /* shown only on mobile (see media query) */
  position: relative; z-index: 110;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; width: 44px; height: 44px; margin-left: 0.2rem;
  padding: 0; background: none; border: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 26px; height: 2px; border-radius: 2px;
  background: var(--text-on-dark);
  transition: transform 0.32s cubic-bezier(0.22,1,0.36,1), opacity 0.2s ease;
}
/* hamburger morphs into an X when the menu is open */
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- MOBILE NAV PANEL ---------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 90;      /* sits under the header bar (z-100) */
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.2rem; padding: 6rem 8vw 3rem; overflow-y: auto;
  background:
    radial-gradient(120% 75% at 50% 16%, rgba(47,74,54,0.38) 0%, rgba(7,11,8,0) 62%),
    var(--bg-darker);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
body.nav-open .mobile-nav { opacity: 1; visibility: visible; pointer-events: auto; }

.mobile-nav-links {
  display: flex; flex-direction: column; align-items: center; width: 100%;
}
.mobile-nav-links a {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 8.5vw, 2.7rem); line-height: 1.55;
  letter-spacing: -0.01em; color: var(--text-on-dark);
  opacity: 0; transform: translateY(18px);   /* animated in when panel opens */
}
.mobile-nav-links a.is-current { color: var(--tan-bright); }
.mobile-nav-cta {
  margin-top: 1.7rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.12rem; letter-spacing: 0.02em;
  background: var(--tan); color: var(--bg-darker);
  padding: 0.85em 2em; border-radius: 2px;
  box-shadow: 0 10px 34px rgba(0,0,0,0.45);
  opacity: 0; transform: translateY(18px);
}
.mobile-nav-tag {
  margin-top: 1.5rem;
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--tan); text-align: center; opacity: 0;
}
@keyframes navLinkIn { to { opacity: 1; transform: translateY(0); } }
body.nav-open .mobile-nav-links a,
body.nav-open .mobile-nav-cta,
body.nav-open .mobile-nav-tag {
  animation: navLinkIn 0.5s cubic-bezier(0.22,1,0.36,1) forwards;
}
body.nav-open .mobile-nav-links a:nth-child(1) { animation-delay: 0.06s; }
body.nav-open .mobile-nav-links a:nth-child(2) { animation-delay: 0.12s; }
body.nav-open .mobile-nav-links a:nth-child(3) { animation-delay: 0.18s; }
body.nav-open .mobile-nav-links a:nth-child(4) { animation-delay: 0.24s; }
body.nav-open .mobile-nav-links a:nth-child(5) { animation-delay: 0.30s; }
body.nav-open .mobile-nav-links a:nth-child(6) { animation-delay: 0.36s; }
body.nav-open .mobile-nav-cta { animation-delay: 0.44s; }
body.nav-open .mobile-nav-tag { animation-delay: 0.54s; }

@media (prefers-reduced-motion: reduce) {
  .mobile-nav { transition: opacity 0.2s ease; }
  body.nav-open .mobile-nav-links a,
  body.nav-open .mobile-nav-cta,
  body.nav-open .mobile-nav-tag { animation: none; opacity: 1; transform: none; }
  .nav-toggle span { transition: none; }
}

/* ---------- HERO ---------- */
.hero-standalone {
  position: relative; z-index: 20;
  height: 100vh; width: 100%;
  background: transparent;            /* dimmed video shows through from load */
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 0 6vw;
  will-change: opacity;
}
.hero-inner { max-width: 1100px; }
.hero-logo {
  display: block; margin: 0.4rem auto 0;
  width: clamp(280px, 56vw, 640px); height: auto;
  /* render black logo as white, then drop a soft shadow for legibility over video */
  filter: brightness(0) invert(1) drop-shadow(0 10px 44px rgba(0,0,0,0.6));
}
.section-label {
  display: inline-block;
  font-size: 0.8rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--tan); margin-bottom: 1.4rem;
}
.hero-tagline {
  margin-top: 1.6rem;
  font-size: clamp(0.95rem, 2.2vw, 1.5rem);
  letter-spacing: 0.16em; color: var(--text-muted); text-transform: uppercase;
}
.hero-cta {
  display: inline-block; margin-top: 2.2rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1rem, 1.4vw, 1.2rem); letter-spacing: 0.04em;
  background: var(--tan); color: var(--bg-darker);
  padding: 0.85em 2em; border-radius: 2px;
  box-shadow: 0 10px 34px rgba(0,0,0,0.45);
  transition: transform 0.25s ease, background 0.25s ease;
}
.hero-cta:hover { background: var(--tan-bright); transform: translateY(-2px); }
.scroll-indicator {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-indicator .arrow {
  width: 1px; height: 38px;
  background: linear-gradient(180deg, var(--tan), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: 0.3; transform: scaleY(0.7); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- CANVAS ---------- */
.canvas-wrap {
  position: fixed; inset: 0; z-index: 2;
  will-change: opacity;
}
#canvas { display: block; width: 100%; height: 100%; }

/* ---------- READABILITY VIGNETTE ---------- */
#vignette {
  position: fixed; inset: 0; z-index: 4; pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(7,11,8,0.88) 0%, rgba(7,11,8,0.5) 26%,
      rgba(7,11,8,0.05) 48%, rgba(7,11,8,0.05) 52%,
      rgba(7,11,8,0.5) 74%, rgba(7,11,8,0.88) 100%),
    linear-gradient(0deg, rgba(7,11,8,0.7) 0%, rgba(7,11,8,0) 32%),
    linear-gradient(180deg, rgba(7,11,8,0.45) 0%, rgba(7,11,8,0) 22%);
}

/* ---------- HERO DIM (over the video behind the hero) ---------- */
#hero-dim {
  position: fixed; inset: 0; z-index: 5; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 42%,
    rgba(7,11,8,0.48) 0%, rgba(7,11,8,0.66) 58%, rgba(7,11,8,0.82) 100%);
}

/* ---------- MARQUEE ---------- */
.marquee-wrap {
  position: fixed; top: 50%; left: 0; z-index: 6;
  width: 100%; transform: translateY(-50%);
  opacity: 0; pointer-events: none; overflow: hidden;
  mix-blend-mode: soft-light;
}
.marquee-text {
  font-family: var(--font-display); font-weight: 800;
  font-size: 12vw; line-height: 1; white-space: nowrap;
  text-transform: uppercase; letter-spacing: -0.01em;
  color: var(--tan-bright);
}

/* ---------- SCROLL CONTAINER & SECTIONS ---------- */
#scroll-container { position: relative; height: 800vh; z-index: 12; }

.scroll-section {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100vh; z-index: 12;
  display: flex; align-items: center;
  opacity: 0; visibility: hidden; pointer-events: none;
}
.scroll-section.is-active { visibility: visible; pointer-events: auto; }

.align-left  { justify-content: flex-start; padding-left: clamp(1.5rem, 6vw, 7rem); }
.align-right { justify-content: flex-end;   padding-right: clamp(1.5rem, 6vw, 7rem); }
.align-left .section-inner,
.align-right .section-inner { max-width: min(44vw, 560px); }
.align-right .section-inner { text-align: left; }

.section-inner > * + * { margin-top: 1.1rem; }

.section-heading {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 5rem); line-height: 0.98;
  letter-spacing: -0.02em; color: var(--text-on-dark);
  text-shadow: 0 2px 30px rgba(0,0,0,0.55);
}
.section-body {
  font-size: clamp(1rem, 1.35vw, 1.18rem); line-height: 1.6;
  color: var(--text-on-dark); max-width: 46ch;
  text-shadow: 0 1px 16px rgba(0,0,0,0.6);
}
.scroll-section .section-label { margin-bottom: 0.4rem; }

/* Services list (all services in one section) */
.services-list { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.95rem; }
.services-list li { display: flex; flex-direction: column; gap: 0.1rem; }
.svc-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.15rem, 1.9vw, 1.6rem); line-height: 1.05;
  color: var(--text-on-dark); text-shadow: 0 1px 14px rgba(0,0,0,0.6);
}
.svc-desc {
  font-size: clamp(0.88rem, 1.1vw, 1.02rem); color: var(--text-muted);
  text-shadow: 0 1px 12px rgba(0,0,0,0.6);
}

/* County list */
.county-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.6rem;
  margin-top: 1.4rem;
}
.county-list li {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1rem, 1.5vw, 1.35rem); color: var(--text-on-dark);
  padding-left: 1.1em; position: relative;
  text-shadow: 0 1px 14px rgba(0,0,0,0.6);
}
.county-list li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 0.45em; height: 0.45em; background: var(--tan); transform: rotate(45deg);
}

/* Stats */
.section-stats { justify-content: center; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 5vw, 4.5rem); text-align: center;
  padding: 0 6vw; max-width: 1200px;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.stat-prefix { font-size: 0.9rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tan); }
.stat-number {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 7vw, 6rem); line-height: 1; color: var(--text-on-dark);
}
.stat-badge {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2.4rem); line-height: 0.95;
  color: var(--tan-bright); text-transform: uppercase;
}
.stat-label {
  font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted);
}

/* Reviews */
.review {
  border-left: 2px solid var(--tan);
  padding: 0.1rem 0 0.1rem 1.2rem; margin-top: 1.3rem;
}
.review p {
  font-size: clamp(0.98rem, 1.3vw, 1.15rem); line-height: 1.55;
  color: var(--text-on-dark); font-style: italic;
  text-shadow: 0 1px 14px rgba(0,0,0,0.6);
}
.review cite {
  display: block; margin-top: 0.6rem; font-style: normal;
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
}
/* Reviews CTA — invites a new review, links out to the Facebook reviews page */
.review-cta {
  display: inline-flex; align-items: center; gap: 0.55em;
  margin-top: 1.7rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(0.95rem, 1.2vw, 1.08rem); letter-spacing: 0.02em;
  color: var(--bg-darker); background: var(--tan);
  padding: 0.72em 1.45em; border-radius: 2px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.4);
  transition: transform 0.25s ease, background 0.25s ease;
}
.review-cta::after {
  content: "→"; font-size: 1.05em; line-height: 1;
  transition: transform 0.25s ease;
}
.review-cta:hover { background: var(--tan-bright); transform: translateY(-2px); }
.review-cta:hover::after { transform: translateX(3px); }

/* Contact */
.contact-details {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 0.9rem; margin-top: 1.6rem;
}
.cta-button {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1rem, 1.4vw, 1.2rem); letter-spacing: 0.02em;
  background: var(--tan); color: var(--bg-darker);
  padding: 0.85em 1.6em; border-radius: 2px;
  transition: transform 0.25s ease, background 0.25s ease;
}
.cta-button:hover { background: var(--tan-bright); transform: translateY(-2px); }
.contact-link {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem); color: var(--text-on-dark);
  border-bottom: 1px solid transparent; transition: border-color 0.25s ease, color 0.25s ease;
  text-shadow: 0 1px 14px rgba(0,0,0,0.6);
}
.contact-link:hover { border-color: var(--tan); color: var(--tan-bright); }
.insured-tag {
  display: inline-block; margin-top: 1.6rem;
  font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--tan);
}

/* ---------- TABLET / MOBILE ---------- */
@media (max-width: 860px), (max-height: 560px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }      /* reveal the hamburger */
  .logo { margin-right: auto; }       /* push the CTA + hamburger to the right */
  .site-header { padding: 1rem 5vw; }
  .header-cta { font-size: 0.82rem; padding: 0.52em 1em; }
  .logo img { height: 32px; }
}

/* Compact, centered layout for narrow screens OR short (landscape) screens */
@media (max-width: 768px), (max-height: 560px) {
  #scroll-container { height: 600vh; }

  /* Hero */
  .hero-standalone { height: 100svh; }
  .hero-logo { width: min(76vw, 380px); margin-top: 0; }
  .hero-tagline { font-size: 0.82rem; letter-spacing: 0.12em; margin-top: 1.1rem; }
  .hero-cta { margin-top: 1.6rem; font-size: 0.95rem; padding: 0.8em 1.7em; }
  .section-label { font-size: 0.72rem; letter-spacing: 0.26em; }

  /* Sections: center content in the space BELOW the header, never clip.
     svh keeps it inside the address-bar-visible viewport on phones. */
  .scroll-section { height: 100svh; }
  .align-left, .align-right {
    justify-content: center; align-items: center;
    padding: 4.6rem 7vw 5vh;          /* top padding clears the fixed header */
  }
  .align-left .section-inner,
  .align-right .section-inner {
    max-width: 420px; width: 100%; text-align: center; margin-inline: auto;
  }
  .section-inner > * + * { margin-top: 0.7rem; }
  .scroll-section .section-label { margin-bottom: 0.3rem; }
  .section-heading { font-size: clamp(1.85rem, 8.5vw, 2.7rem); line-height: 1.04; }
  .section-body { font-size: 0.96rem; line-height: 1.5; margin-inline: auto; }

  /* Services list */
  .services-list { margin-top: 1rem; gap: 0.6rem; text-align: left; max-width: 340px; margin-inline: auto; }
  .svc-name { font-size: 1.1rem; }
  .svc-desc { font-size: 0.84rem; }

  /* County list */
  .county-list { max-width: 320px; margin: 1rem auto 0; gap: 0.4rem 1.4rem; text-align: left; }
  .county-list li { font-size: 1rem; }

  /* Reviews — the tightest section: shrink so all three fit small screens */
  .review { margin-top: 0.8rem; padding-left: 0.9rem; text-align: left; }
  .review p { font-size: 0.86rem; line-height: 1.42; }
  .review cite { margin-top: 0.35rem; font-size: 0.68rem; }
  .review-cta { margin-top: 1.1rem; padding: 0.66em 1.3em; font-size: 0.95rem; }

  /* Contact */
  .contact-details { align-items: center; gap: 0.7rem; margin-top: 1.1rem; }
  .cta-button { font-size: 1rem; padding: 0.78em 1.5em; }
  .contact-link { font-size: 0.95rem; }
  .insured-tag { margin-top: 1.1rem; font-size: 0.68rem; }

  /* Centered text sits over the busy middle of the video, so dim more evenly */
  #vignette {
    background: linear-gradient(180deg,
      rgba(7,11,8,0.58) 0%, rgba(7,11,8,0.66) 55%, rgba(7,11,8,0.80) 100%);
  }
  .marquee-text { font-size: 22vw; }
}

/* Short viewports (small phones, landscape phones): shrink further to fit */
@media (max-height: 640px) {
  .align-left, .align-right { padding-top: 4rem; padding-bottom: 3vh; }
  .section-inner > * + * { margin-top: 0.5rem; }
  .section-heading { font-size: clamp(1.5rem, 7vw, 2.1rem); }
  .section-body { font-size: 0.9rem; line-height: 1.45; }
  .review { margin-top: 0.55rem; }
  .review p { font-size: 0.8rem; line-height: 1.38; }
  .review cite { margin-top: 0.25rem; }
  .services-list { gap: 0.4rem; margin-top: 0.7rem; }
  .svc-name { font-size: 1.02rem; }
  .svc-desc { font-size: 0.8rem; }
  .county-list { margin-top: 0.7rem; }
  .county-list li { font-size: 0.92rem; }
}

/* Last-resort safety net: when content still can't fit a very short screen,
   let the active section scroll internally so nothing is ever cut off.
   (Touch scroll is native; Lenis only smooths wheel, so this works on phones.) */
@media (max-height: 520px) {
  .align-left, .align-right { align-items: flex-start; }
  .scroll-section { overflow-y: auto; -webkit-overflow-scrolling: touch; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-indicator .arrow { animation: none; }
}

/* ============================================================
   OUR WORK — gallery page (work.html)
   ============================================================ */
.work-page { background: var(--bg-dark); overflow-x: hidden; }
.work-page .nav-links a.is-current { color: var(--text-on-dark); }
.work-page .nav-links a.is-current::after { width: 100%; }

.work-main {
  max-width: 1500px; margin: 0 auto;
  padding: clamp(7rem, 13vw, 10rem) clamp(1.2rem, 4vw, 3.5rem) clamp(3rem, 7vw, 5rem);
}

/* Intro */
.work-intro { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.4rem); }
.work-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5rem); line-height: 0.98;
  letter-spacing: -0.02em; color: var(--text-on-dark); margin-top: 0.6rem;
}
.work-lead {
  margin-top: 1.2rem; max-width: 52ch;
  font-size: clamp(1rem, 1.35vw, 1.18rem); line-height: 1.6; color: var(--text-muted);
}

/* Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(220px, 30vw, 340px), 1fr));
  gap: clamp(0.5rem, 1.2vw, 1rem);
}
.gallery-item {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--green-deep);
  border-radius: 3px; cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s ease, opacity 0.4s ease;
}
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(199,154,94,0);
  background: linear-gradient(180deg, rgba(7,11,8,0) 55%, rgba(7,11,8,0.45) 100%);
  opacity: 0; transition: opacity 0.35s ease, box-shadow 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; box-shadow: inset 0 0 0 2px rgba(199,154,94,0.7); }

/* Closing CTA */
.work-cta {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: clamp(2.4rem, 5vw, 3.6rem);
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.work-cta-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1; color: var(--text-on-dark);
}
.work-cta-text {
  margin-top: 0.9rem; font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--text-muted);
}
.work-cta-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1.2rem; margin-top: 1.6rem;
}
.work-cta .insured-tag { margin-top: 1.8rem; }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: none; align-items: center; justify-content: center;
  background: rgba(5,8,6,0.94);
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open { display: flex; }
.lb-stage {
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  max-width: 100%; max-height: 100%;
}
.lb-image {
  max-width: min(94vw, 1400px); max-height: 84vh;
  width: auto; height: auto; object-fit: contain;
  border-radius: 3px; box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.lb-count {
  font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-muted);
}
.lb-close, .lb-nav {
  position: absolute; background: rgba(7,11,8,0.55);
  border: 1px solid rgba(255,255,255,0.16); color: var(--text-on-dark);
  cursor: pointer; line-height: 1;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.lb-close:hover, .lb-nav:hover { background: var(--tan); color: var(--bg-darker); border-color: var(--tan); }
.lb-close {
  top: clamp(1rem, 3vw, 1.8rem); right: clamp(1rem, 3vw, 1.8rem);
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.6rem;
}
.lb-nav {
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
}
.lb-prev { left: clamp(0.6rem, 2.5vw, 2rem); }
.lb-next { right: clamp(0.6rem, 2.5vw, 2rem); }

@media (max-width: 768px) {
  .work-page .nav-links { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .work-cta-actions { flex-direction: column; gap: 0.8rem; }
  .lb-nav { width: 44px; height: 44px; font-size: 1.6rem; }
  .lb-image { max-height: 78vh; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item img { transition: none; }
  .gallery-item:hover img { transform: none; }
}
