/* =========================================================
   TLE SOLUTIONS — Design System
   Display: Jost (tracked-out caps) · Body: Roboto
   Signature: The Circle Mark — the crane roundel from the
   logo, reused as a divider medallion, ring accent and
   hover motif throughout the site.
   ========================================================= */

:root {
  /* --- Color --- */
  --forest: #062C1E;
  --forest-deep: #041A11;
  --forest-mid: #0A3D28;
  --gold: #D4AF37;
  --gold-bright: #E9CC72;
  --gold-dim: #8A7228;
  --gold-line: rgba(212, 175, 55, 0.35);
  --charcoal: #1E232A;
  --charcoal-raised: #262C34;
  --ivory: #F4F6F5;
  --ivory-dim: #E7EAE8;
  --ink: #1E232A;
  --ink-soft: rgba(30, 35, 42, 0.68);
  --on-forest: #F4F6F5;
  --on-forest-soft: rgba(244, 246, 245, 0.72);

  /* --- Type --- */
  --font-display: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Roboto', 'Helvetica Neue', Arial, sans-serif;

  /* --- Space (8px base) --- */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4.5rem;
  --sp-7: 6.5rem;
  --sp-8: 9rem;

  /* --- Layout --- */
  --container: 1280px;
  --edge: clamp(1.5rem, 5vw, 4rem);
  --radius-sm: 2px;
  --radius-md: 4px;

  /* --- Motion --- */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-sm: 0.25s;
  --dur-md: 0.45s;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: clamp(2.25rem, 4.4vw, 4rem); letter-spacing: 0.01em; font-weight: 600; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: 0.02em; }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); letter-spacing: 0.04em; font-weight: 600; }

p { margin: 0 0 var(--sp-2); color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--edge);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.on-light { color: var(--gold-dim); }

.lede {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 46ch;
}
.on-forest .lede,
.on-forest p { color: var(--on-forest-soft); }
.on-forest h1, .on-forest h2, .on-forest h3, .on-forest h4 { color: var(--on-forest); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1.05em 1.9em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-sm) var(--ease-spring),
              box-shadow var(--dur-sm) var(--ease-spring),
              background-color var(--dur-sm) var(--ease-spring),
              color var(--dur-sm) var(--ease-spring),
              border-color var(--dur-sm) var(--ease-spring);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--forest-deep);
  box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 8px 20px -8px rgba(212,175,55,0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 14px 28px -10px rgba(212,175,55,0.65);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold-dim);
}
.btn-secondary:hover {
  border-color: var(--gold);
  background: rgba(212,175,55,0.08);
  transform: translateY(-2px);
}
.on-light .btn-secondary,
.btn-secondary.on-light {
  color: var(--forest);
  border-color: var(--forest);
}
.on-light .btn-secondary:hover,
.btn-secondary.on-light:hover { background: rgba(6,44,30,0.06); }

.btn-tertiary {
  background: var(--charcoal);
  color: var(--ivory);
}
.btn-tertiary:hover { background: #2A313A; transform: translateY(-2px); }

/* =========================================================
   Nav
   ========================================================= */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding-block: var(--sp-3);
  transition: background-color var(--dur-md) var(--ease-spring),
              padding var(--dur-md) var(--ease-spring),
              box-shadow var(--dur-md) var(--ease-spring),
              border-color var(--dur-md) var(--ease-spring);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(4, 26, 17, 0.92);
  backdrop-filter: blur(10px);
  padding-block: var(--sp-1);
  border-color: var(--gold-line);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,0.6);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75em;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--on-forest);
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: transform var(--dur-md) var(--ease-spring);
}
.brand:hover img { transform: rotate(18deg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links > li { position: relative; }
.nav-links a.top-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-forest-soft);
  padding: 0.5em 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  transition: color var(--dur-sm) ease;
}
.nav-links a.top-link:hover,
.nav-links a.top-link:focus-visible,
.nav-links li.is-open a.top-link { color: var(--gold-bright); }
.nav-links a.top-link:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }

.caret { width: 9px; height: 9px; transition: transform var(--dur-sm) var(--ease-spring); }
.nav-links li.is-open .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 1.1rem);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 300px;
  background: var(--charcoal);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
  padding: var(--sp-1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-sm) var(--ease-spring), transform var(--dur-sm) var(--ease-spring), visibility var(--dur-sm);
  box-shadow: 0 24px 48px -20px rgba(0,0,0,0.55);
}
/* Invisible bridge over the gap above the panel, so the cursor stays in the hover chain while crossing it.
   Desktop only: on mobile the dropdown becomes position:static, which would misposition this pseudo-element. */
@media (min-width: 961px) {
  .dropdown::before {
    content: '';
    position: absolute;
    top: -1.1rem;
    left: 0;
    right: 0;
    height: 1.1rem;
    visibility: visible;
    pointer-events: auto;
  }
}
.nav-links li.is-open .dropdown,
.nav-links li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.dropdown a {
  display: block;
  padding: 0.85em 1.1em;
  border-radius: var(--radius-sm);
  color: var(--on-forest);
  font-size: 0.9rem;
}
.dropdown a small {
  display: block;
  margin-top: 0.2em;
  font-size: 0.75rem;
  color: var(--on-forest-soft);
  font-weight: 400;
}
.dropdown a:hover { background: rgba(212,175,55,0.12); }
.dropdown a:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: -2px; }

.nav-cta { display: flex; align-items: center; gap: var(--sp-3); }
.nav-cta .btn { padding: 0.85em 1.5em; }

.mobile-cta { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  color: var(--on-forest);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 960px) {
  .nav-links, .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.is-open { background: var(--forest-deep); }
  .site-header.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 74px;
    left: 0; right: 0;
    background: var(--forest-deep);
    padding: var(--sp-3) var(--edge) var(--sp-5);
    border-top: 1px solid var(--gold-line);
    border-bottom: 1px solid var(--gold-line);
    gap: var(--sp-2);
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }
  .site-header.is-open .nav-links > li { width: 100%; }
  .site-header.is-open .nav-links li.has-dropdown .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    box-shadow: none;
    margin-top: var(--sp-1);
    width: 100%;
  }
  .site-header.is-open .nav-links li.has-dropdown.is-open .dropdown { display: block; }
  .site-header.is-open .mobile-cta { display: inline-flex; margin-top: var(--sp-2); }
}

/* =========================================================
   Section scaffolding
   ========================================================= */
.section { padding-block: var(--sp-7); position: relative; }
.section-tight { padding-block: var(--sp-6); }
.section-forest { background: var(--forest); color: var(--on-forest); }
.section-charcoal { background: var(--charcoal); color: var(--ivory); }
.section-ivory { background: var(--ivory); }

.section-head {
  max-width: 640px;
  margin-bottom: var(--sp-5);
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: var(--sp-2); }

/* Gold hairline divider, homage to the logo's ring */
.divider {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--gold-dim);
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold-line);
}
.divider .mark { flex: none; }
.section-forest .divider,
.section-charcoal .divider { color: var(--gold); }

/* the crane-truss diamond used inside dividers */
.truss-mark {
  width: 9px; height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}

/* =========================================================
   Signature — The Circle Mark
   ========================================================= */
.ring-badge {
  --size: 120px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
}
.ring-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-badge circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
}
.ring-badge .ring-static { opacity: 0.55; }
.ring-badge .ring-draw {
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  transition: stroke-dashoffset 1.1s var(--ease-spring);
}
.ring-badge.is-visible .ring-draw,
.ring-badge:hover .ring-draw { stroke-dashoffset: 0; }

.medallion {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--forest-deep);
  border: 1px solid var(--gold-line);
  display: grid;
  place-items: center;
  box-shadow: 0 20px 44px -16px rgba(0,0,0,0.6), 0 0 0 6px rgba(6,44,30,1);
  flex: none;
}
.medallion img { width: 56px; height: 56px; border-radius: 50%; }

/* circular image accent overlapping a rectangular photo */
.photo-frame { position: relative; }
.photo-frame .ring-accent {
  position: absolute;
  width: 30%;
  aspect-ratio: 1;
  border: 1px solid var(--gold);
  border-radius: 50%;
  opacity: 0.85;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--on-forest);
  overflow: hidden;
  background: var(--forest-deep);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-media::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(6,44,30,0.15) 0%, rgba(4,26,17,0.78) 55%, rgba(4,26,17,0.96) 100%),
    linear-gradient(0deg, rgba(4,26,17,0.98) 0%, rgba(4,26,17,0.55) 38%, rgba(4,26,17,0.35) 100%);
}
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  mix-blend-mode: multiply;
  background-color: rgba(6, 44, 30, 0.55);
}
.hero-grain {
  position: absolute; inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: calc(var(--sp-8) + 74px) var(--sp-7);
}
.hero-badge { margin-bottom: var(--sp-3); }
.hero h1 { max-width: 15ch; margin-block: var(--sp-2) var(--sp-3); }
.hero .lede { margin-bottom: var(--sp-4); color: var(--on-forest-soft); }
.hero-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  right: var(--edge);
  bottom: var(--sp-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6em;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-forest-soft);
}
.hero-scroll .line { width: 1px; height: 42px; background: linear-gradient(var(--gold), transparent); animation: scrollpulse 2.4s ease-in-out infinite; }
@keyframes scrollpulse { 0%,100% { opacity: .3; } 50% { opacity: 1; } }
@media (max-width: 700px) { .hero-scroll { display: none; } }

/* Page hero (non-home, shorter) */
.page-hero {
  position: relative;
  padding-block: calc(var(--sp-8) + 40px) var(--sp-6);
  background: var(--forest-deep);
  color: var(--on-forest);
  overflow: hidden;
}
.page-hero .hero-media { opacity: 0.9; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 20ch; margin-block: var(--sp-2) var(--sp-2); }
.breadcrumb {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-forest-soft);
  margin-bottom: var(--sp-2);
}
.breadcrumb a:hover { color: var(--gold-bright); }

/* =========================================================
   Split Gateway
   ========================================================= */
.gateway {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
}
.gateway-panel {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: var(--sp-6) var(--sp-5);
  color: var(--on-forest);
  overflow: hidden;
  min-height: 480px;
}
.gateway-panel img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-spring);
}
.gateway-panel:hover img { transform: scale(1.045); }
.gateway-panel::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,26,17,0.4) 0%, rgba(4,26,17,0.58) 42%, rgba(4,26,17,0.96) 100%);
}
.gateway-panel.dark::after { background: linear-gradient(180deg, rgba(4,26,17,0.5) 0%, rgba(4,26,17,0.68) 42%, rgba(4,26,17,0.97) 100%); }
.gateway-body {
  position: relative;
  z-index: 1;
  max-width: 440px;
  text-shadow: 0 2px 14px rgba(4,26,17,0.55);
}
.gateway-body .eyebrow { margin-bottom: var(--sp-2); }
.gateway-body h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: var(--sp-2); }
.gateway-body p { margin-bottom: var(--sp-3); }

.gateway-seam {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: var(--gold-line);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gateway-seam .medallion { position: relative; }

@media (max-width: 860px) {
  .gateway { grid-template-columns: 1fr; }
  .gateway-seam { left: 0; right: 0; top: 50%; bottom: auto; width: 100%; height: 1px; transform: translateY(-50%); }
}

/* =========================================================
   Accreditations strip
   ========================================================= */
.accred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.accred-item { padding-left: var(--sp-3); border-left: 1px solid var(--gold-line); }
.accred-item .icon { color: var(--gold); margin-bottom: var(--sp-2); }
.accred-item h4 {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.5em;
  color: var(--on-forest);
}
@media (max-width: 860px) {
  .accred-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
}
.accred-grid.stacked {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin-inline: auto;
  gap: var(--sp-3);
}

/* =========================================================
   Cards
   ========================================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(6,44,30,0.06), 0 24px 48px -32px rgba(6,44,30,0.25);
  transition: transform var(--dur-md) var(--ease-spring), box-shadow var(--dur-md) var(--ease-spring);
  display: flex;
  flex-direction: column;
  position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(6,44,30,0.08), 0 32px 56px -28px rgba(6,44,30,0.32); }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-md) var(--ease-spring); }
.card:hover .card-media img { transform: scale(1.06); }
.card-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6,44,30,0.5) 100%);
}
.card-top-rule {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-md) var(--ease-spring);
}
.card:hover .card-top-rule { transform: scaleX(1); }
.card-body { padding: var(--sp-3); flex: 1; display: flex; flex-direction: column; }
.card-body .eyebrow { margin-bottom: var(--sp-1); }
.card-body h3 { margin-bottom: 0.6em; }
.card-body p { margin-bottom: var(--sp-2); }
.card-link {
  margin-top: auto;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.card-link svg { width: 14px; height: 14px; transition: transform var(--dur-sm) var(--ease-spring); }
.card:hover .card-link svg { transform: translateX(4px); }

@media (max-width: 960px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Photo gallery + lightbox
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-3);
}

/* Horizontal photo reel — used on individual project pages */
.gallery-reel {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--sp-2);
  margin: 0 calc(var(--edge) * -1);
  padding-inline: var(--edge);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) transparent;
}
.gallery-reel::-webkit-scrollbar { height: 6px; }
.gallery-reel::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 4px; }
.gallery-reel::-webkit-scrollbar-track { background: transparent; }
.gallery-reel .gallery-item {
  flex: 0 0 auto;
  width: min(80vw, 520px);
  scroll-snap-align: start;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--charcoal);
  border: none;
  padding: 0;
  display: block;
  width: 100%;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-md) var(--ease-spring);
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.06); }
.gallery-item:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4,26,17,0.82) 100%);
  opacity: 0;
  transition: opacity var(--dur-sm) ease;
}
.gallery-item:hover::after,
.gallery-item:focus-visible::after { opacity: 1; }
.gallery-item .gallery-top-rule {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-md) var(--ease-spring);
  z-index: 1;
}
.gallery-item:hover .gallery-top-rule,
.gallery-item:focus-visible .gallery-top-rule { transform: scaleX(1); }
.gallery-caption {
  position: absolute;
  left: var(--sp-2); right: var(--sp-2); bottom: var(--sp-2);
  z-index: 1;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-sm) ease, transform var(--dur-sm) ease;
}
.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption { opacity: 1; transform: translateY(0); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 26, 17, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}
.lightbox.is-open { display: flex; }
.lightbox-figure {
  position: relative;
  max-width: 90vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}
.lightbox-figure img {
  max-width: 90vw;
  max-height: 78vh;
  border-radius: var(--radius-md);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6);
}
.lightbox-caption {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-forest);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: transparent;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  color: var(--on-forest);
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--dur-sm) ease, background var(--dur-sm) ease, transform var(--dur-sm) var(--ease-spring);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { border-color: var(--gold); background: rgba(212,175,55,0.1); }
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.lightbox-close { top: var(--sp-3); right: var(--sp-3); }
.lightbox-prev { left: var(--sp-3); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--sp-3); top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) translateX(-2px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(2px); }
@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
  .lightbox-close { width: 40px; height: 40px; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--charcoal);
  color: var(--ivory-dim);
  padding-block: var(--sp-6) var(--sp-4);
  border-top: 1px solid var(--gold-line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-5);
  padding-bottom: var(--sp-5);
}
.footer-brand { display: flex; align-items: center; gap: 0.75em; margin-bottom: var(--sp-2); }
.footer-brand img { width: 40px; height: 40px; border-radius: 50%; }
.footer-brand span {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--ivory);
}
.footer-col h5 {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: var(--sp-2);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7em; }
.footer-col a, .footer-col p { color: rgba(244,246,245,0.65); font-size: 0.9375rem; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(244,246,245,0.08);
  font-size: 0.8125rem;
  color: rgba(244,246,245,0.45);
  flex-wrap: wrap;
  gap: var(--sp-2);
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Split (plain two-column text / form+sidebar layout)
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: start;
}
.split.form-layout { grid-template-columns: 1.5fr 1fr; }
@media (max-width: 700px) {
  .split, .split.form-layout { grid-template-columns: 1fr; gap: var(--sp-4); }
}

/* =========================================================
   Forms
   ========================================================= */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.form-field { display: flex; flex-direction: column; gap: 0.5em; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--forest);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.9em 1em;
  border: 1px solid #D6DBD8;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color var(--dur-sm) ease, box-shadow var(--dur-sm) ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.18);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.file-drop {
  border: 1.5px dashed #C9D0CC;
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  text-align: center;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color var(--dur-sm) ease, background var(--dur-sm) ease;
}
.file-drop:hover, .file-drop.is-drag { border-color: var(--gold); background: rgba(212,175,55,0.05); }
.file-drop input { display: none; }
.file-drop strong { color: var(--forest); }
.file-list { margin-top: var(--sp-1); font-size: 0.875rem; color: var(--ink-soft); }

@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
}

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   Misc utility
   ========================================================= */
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.stack-gap { display: flex; flex-direction: column; gap: var(--sp-2); }
.mt-0 { margin-top: 0 !important; }
.text-gold { color: var(--gold); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
