/* =========================================================
   Falin Enterprises Inc. — styles
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --ink: #14171a;
  --ink-2: #1e2327;
  --paper: #f6f3ee;
  --paper-2: #ebe6dd;
  --text: #22272b;
  --muted: #5d666d;
  --accent: #ffc61a;
  --accent-ink: #14171a;
  --clay: #b4532a;
  --line: rgba(20, 23, 26, .12);
  --line-light: rgba(255, 255, 255, .14);
  --radius: 4px;
  --gutter: 20px;
  --section-pad: clamp(4rem, 9vw, 8rem);
  --header-h: 72px;
  --font-head: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .015em;
  line-height: 1;
}
h2 { font-size: clamp(2.25rem, 5.5vw, 4rem); }
.h2-xl { font-size: clamp(2.75rem, 7vw, 5.25rem); }
h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.section-paper :focus-visible { outline-color: var(--ink); }
.section-paper .btn:focus-visible { outline-color: var(--ink); }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 300;
  background: var(--accent); color: var(--accent-ink);
  padding: .75rem 1rem; border-radius: var(--radius); font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; outline-color: var(--ink); }

/* ---------- Icons ---------- */
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 36px; height: 36px; stroke-width: 1.6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .75rem 1.5rem;
  border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.btn-primary:hover { background: #ffd23f; border-color: #ffd23f; }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-lg { min-height: 60px; padding: 1rem 2.25rem; font-size: 1.15rem; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: flex; align-items: center; gap: .75rem;
  font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em;
  color: var(--muted); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 32px; height: 4px; background: var(--accent); flex: none; }
.eyebrow-light { color: rgba(255, 255, 255, .8); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .25s, border-color .25s;
}
.site-header.is-scrolled, .site-header.menu-open { background: var(--ink); border-bottom-color: var(--line-light); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: #fff; }
.logo-tile { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: #fff; flex: none; display: block; }
.logo-tile img { width: 100%; height: 100%; object-fit: cover; }
.wordmark { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; letter-spacing: .06em; line-height: 1; white-space: nowrap; }

.menu-toggle {
  display: none; width: 48px; height: 48px; margin-right: -8px;
  background: none; border: 0; color: #fff; padding: 0;
  align-items: center; justify-content: center;
}
.menu-toggle-bars { position: relative; width: 26px; height: 14px; display: block; }
.menu-toggle-bars span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .25s, top .25s; }
.menu-toggle-bars span:first-child { top: 0; }
.menu-toggle-bars span:last-child { top: 12px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:first-child { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:last-child { top: 6px; transform: rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 2rem; }
.site-nav ul a {
  color: #fff; text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: .5rem 0; background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 3px no-repeat;
  transition: background-size .25s;
}
.site-nav ul a:hover { background-size: 100% 3px; }

@media (max-width: 819px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 2.5rem;
    padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
    background: var(--ink);
    visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s;
    overflow-y: auto;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; }
  .site-nav ul { flex-direction: column; gap: .5rem; }
  .site-nav ul a {
    font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
    font-size: clamp(2.5rem, 12vw, 3.5rem); letter-spacing: .02em; line-height: 1.1; background: none;
  }
  .site-nav ul a:hover { color: var(--accent); }
  .nav-call { align-self: stretch; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: 92svh; min-height: 92vh; min-height: 92svh;
  padding: calc(var(--header-h) + 3rem) 0 clamp(3rem, 8vw, 6rem);
  background: var(--ink); color: #fff; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform-origin: 60% 50%; animation: kenburns 14s cubic-bezier(.2, .6, .3, 1) both; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 23, 26, .9) 0%, rgba(20, 23, 26, .65) 45%, rgba(20, 23, 26, .2) 100%),
    linear-gradient(0deg, rgba(20, 23, 26, .85) 0%, rgba(20, 23, 26, 0) 55%);
}
.hero-inner { position: relative; }
.hero h1 { font-size: clamp(2.75rem, 8vw, 6rem); line-height: .95; letter-spacing: .01em; max-width: 12ch; margin-bottom: 1.5rem; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 36rem; color: rgba(255, 255, 255, .92); margin-bottom: 2rem; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .line-in { display: block; animation: line-up .95s cubic-bezier(.2, .7, .2, 1) both; }
.hero h1 .line:nth-child(2) .line-in { animation-delay: .38s; }
.hero h1 .line:first-child .line-in { animation-delay: .2s; }
.hero .eyebrow { animation: fade-up .8s ease-out .75s both; }
.hero-sub { animation: fade-up .8s ease-out .95s both; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; animation: fade-up .8s ease-out 1.15s both; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.scroll-cue { display: none; }
@media (min-width: 900px) and (min-height: 600px) {
  .scroll-cue {
    display: flex; flex-direction: column; align-items: center; gap: .55rem;
    position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%);
    font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .24em; color: rgba(255, 255, 255, .8);
    animation: fade-up .8s ease-out 1.5s both;
  }
  .scroll-cue::after {
    content: ""; width: 1px; height: 38px; background: var(--accent);
    transform-origin: top; animation: cue 2.2s ease-in-out 1.8s infinite;
  }
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 150; pointer-events: none;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%;
}

/* ---------- Capabilities ticker ---------- */
.ticker { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.ticker::before {
  content: ""; display: block; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 10px, #0b0d0f 10px 20px);
}
.ticker-track { display: flex; width: max-content; animation: ticker-scroll 42s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; flex: none; align-items: center; padding-block: 1.05rem; }
.ticker-list li {
  display: flex; align-items: center; flex: none; white-space: nowrap;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.2rem, 2.3vw, 1.65rem); letter-spacing: .08em; line-height: 1;
}
.ticker-list li::after {
  content: ""; width: 9px; height: 9px; margin-inline: clamp(1.1rem, 2.4vw, 1.9rem);
  background: var(--accent); transform: rotate(45deg); flex: none;
}
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-pad); scroll-margin-top: var(--header-h); }
.section-paper { background: var(--paper); color: var(--text); }
.section-ink { background: var(--ink); color: #fff; }
.section-ink h2 { color: #fff; }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 48rem; }
.section-lead { margin-top: 1.25rem; font-size: 1.15rem; color: rgba(255, 255, 255, .8); }
.section-paper h2, .section-paper h3 { color: var(--ink); }
.section-head h2 { max-width: 16ch; }

/* ---------- What we do: capabilities + dig-to-reveal ---------- */
.dig { position: relative; background: var(--paper); color: var(--text); scroll-margin-top: 0; }
.dig-stage { position: relative; background: var(--paper); --mw: clamp(220px, 28vw, 330px); }
.dig-top { position: relative; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(1.75rem, 4vw, 2.75rem); }
.dig-head { position: relative; z-index: 5; }
.dig-head .eyebrow { margin-bottom: .9rem; }
.dig-head h2 { color: var(--ink); }
.dig-hint, .dig-soil, .dig-cut, .dig-machine { display: none; }
.dig-pit { position: relative; background: var(--ink); padding: clamp(2rem, 5vw, 3.5rem) 0; }

/* capability cards */
.caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.cap {
  position: relative; display: flex; flex-direction: column; gap: .6rem; min-height: 0; overflow: hidden;
  padding: 1rem; background: var(--ink-2); border: 1px solid var(--line-light); border-radius: var(--radius); color: #fff;
}
.cap-top { display: flex; align-items: center; justify-content: space-between; }
.cap-num { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; letter-spacing: .12em; line-height: 1; color: var(--accent); }
.cap-icon { width: 28px; height: 28px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--accent); }
.cap h3 { font-size: 1.35rem; line-height: 1.04; letter-spacing: .03em; color: #fff; }
.cap p { font-size: .9rem; line-height: 1.45; color: rgba(255, 255, 255, .74); }
@media (min-width: 900px) {
  .caps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .9rem; }
  .cap { padding: 1.15rem; gap: .75rem; }
  .cap h3 { font-size: 1.5rem; }
}

/* ----- pinned dig scene (JS adds .dig-active only when motion is allowed) ----- */
.js .dig.dig-active { height: calc(100vh + 160vh); height: calc(100svh + 160vh); }
.js .dig.dig-active .dig-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; --mw: clamp(220px, min(28vw, 40svh), 330px);
}
.js .dig.dig-active .dig-top {
  /* bottom padding leaves room for the excavator body so it stands below the heading */
  flex: none; padding: calc(var(--header-h) + clamp(.4rem, 2.2svh, 1.5rem)) 0 calc(var(--mw) * .3 + clamp(.3rem, 1svh, .6rem));
}
.js .dig.dig-active .dig-head .eyebrow { margin-bottom: clamp(.3rem, 1.2svh, .8rem); }
.js .dig.dig-active .dig-head h2 { font-size: clamp(1.75rem, 6svh, 4rem); }
.js .dig.dig-active .dig-pit {
  flex: 1 1 0; min-height: 0; display: flex; flex-direction: column;
  padding: clamp(1.5rem, 4.4svh, 2.6rem) 0 clamp(.7rem, 2svh, 1.25rem);
}
.js .dig.dig-active .dig-grid { flex: 1 1 0; min-height: 0; position: relative; z-index: 1; }
.js .dig.dig-active .caps {
  height: 100%; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: clamp(.4rem, 1.5svh, .9rem);
}
.js .dig.dig-active .cap {
  padding: clamp(.5rem, 1.7svh, 1.1rem); gap: clamp(.25rem, 1svh, .7rem);
  opacity: 0; transform: translateY(12px);
  transition: opacity .55s ease, transform .55s ease, border-color .3s;
}
.js .dig.dig-active .cap.is-unearthed { opacity: 1; transform: none; }
.js .dig.dig-active .cap-icon { width: clamp(20px, 3.8svh, 30px); height: clamp(20px, 3.8svh, 30px); color: rgba(255, 255, 255, .55); transition: color .6s ease .2s; }
.js .dig.dig-active .cap.is-unearthed .cap-icon { color: var(--accent); }
.js .dig.dig-active .cap h3 { font-size: clamp(1.05rem, 2.8svh, 1.5rem); }
.js .dig.dig-active .cap p { font-size: clamp(.72rem, 1.85svh, .9rem); }
.js .dig.dig-active .cap-num { font-size: clamp(.9rem, 2.3svh, 1.1rem); }

.js .dig.dig-active .dig-hint {
  display: block; position: absolute; right: var(--gutter); bottom: clamp(.4rem, 1.4svh, .9rem); z-index: 5;
  font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--muted);
  transition: opacity .3s ease;
}
.js .dig.dig-active .dig-hint.is-hidden { opacity: 0; }

.js .dig.dig-active .dig-soil {
  display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; will-change: clip-path;
  clip-path: polygon(0% 0, 100% 0, 100% 100%, calc(0% - 3%) 100%);
  background:
    linear-gradient(#5a7d3a, #5a7d3a) 0 0 / 100% 4px no-repeat,
    linear-gradient(#3b2a1e, #3b2a1e) 0 4px / 100% 14px no-repeat,
    linear-gradient(180deg, #a8552e 0%, #8a4424 100%);
}
.soil-tex { position: absolute; inset: 22px 0 0 0; width: 100%; height: calc(100% - 22px); display: block; }
.js .dig.dig-active .dig-cut {
  display: block; position: absolute; z-index: 3; top: 0; bottom: 0; left: 0; width: 18px; pointer-events: none;
  transform-origin: 0 0; will-change: transform;
  background: linear-gradient(90deg, rgba(10, 6, 3, .6), rgba(10, 6, 3, 0));
  border-left: 2px solid rgba(10, 6, 3, .55);
}
.js .dig.dig-active .dig-machine {
  display: block; position: absolute; z-index: 4; left: 0; bottom: 100%; width: var(--mw); margin-bottom: -2px;
  pointer-events: none; will-change: transform;
}
.dig-machine svg { display: block; overflow: visible; }
.ex-y { fill: var(--accent); }
.ex-k { fill: var(--ink); }
.ex-w { fill: #2b3238; }
.ex-g { fill: #9fb3bf; }
.ex-d { fill: #9a5530; }

@media (max-width: 899px) {
  .js .dig.dig-active { height: calc(100vh + 140vh); height: calc(100svh + 140vh); }
  .js .dig.dig-active .dig-stage { --mw: clamp(184px, min(54vw, 30svh), 210px); }
  .js .dig.dig-active .dig-head h2 { font-size: clamp(1.6rem, min(6svh, 9.2vw), 3rem); }
  .js .dig.dig-active .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, minmax(0, 1fr)); gap: clamp(.3rem, 1.1svh, .6rem); }
  .js .dig.dig-active .cap { padding: clamp(.3rem, 1.1svh, .75rem) clamp(.5rem, 1.6svh, .8rem); gap: clamp(.1rem, .5svh, .4rem); }
  .js .dig.dig-active .cap h3 { font-size: clamp(.88rem, 2.3svh, 1.2rem); line-height: 1; }
  .js .dig.dig-active .cap-num { font-size: clamp(.8rem, 2svh, 1rem); }
  .js .dig.dig-active .cap-icon { width: clamp(16px, 2.8svh, 24px); height: clamp(16px, 2.8svh, 24px); }
  /* compact cards: description kept in the DOM for screen readers */
  .js .dig.dig-active .cap p {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .js .dig.dig-active .dig-pit { padding-bottom: clamp(.6rem, 1.6svh, 1rem); }
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.tile {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0;
  border: 0; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); color: #fff;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .6, .2, 1); }
.tile-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.75rem .65rem .55rem;
  background: linear-gradient(0deg, rgba(20, 23, 26, .92), rgba(20, 23, 26, 0));
  font-size: .75rem; line-height: 1.3; font-weight: 500; text-align: left;
}
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: .75rem; } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 820px) and (hover: hover) {
  .tile-cap { padding: 2.5rem 1rem 1rem; font-size: .9rem; opacity: 0; transform: translateY(14px); transition: opacity .35s ease, transform .4s cubic-bezier(.2, .7, .2, 1); }
  .tile:hover .tile-cap, .tile:focus-visible .tile-cap { opacity: 1; transform: none; }
  .tile:hover img, .tile:focus-visible img { transform: scale(1.06); }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.about-media { position: relative; margin: 0 14px 14px 0; }
.about-media::before {
  content: ""; position: absolute; z-index: 0; right: -14px; bottom: -14px; width: 70%; height: 70%;
  background: var(--accent); border-radius: var(--radius);
}
.about-media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.about-text h2 { margin-bottom: 1.5rem; max-width: 14ch; }
.count-year { font-variant-numeric: tabular-nums; }
.about-text > p { margin-bottom: 1.1rem; max-width: 38rem; }
.values { margin-top: 2rem; display: grid; gap: 1.1rem; border-top: 1px solid var(--line); padding-top: 1.75rem; }
.values li { display: flex; gap: 1rem; align-items: flex-start; }
.icon-check { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--ink); color: var(--accent); stroke-width: 3; margin-top: 2px; }
.values strong { display: block; font-family: var(--font-head); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .04em; line-height: 1.1; color: var(--ink); }
.values span { color: var(--muted); }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.05fr 1fr; gap: clamp(3rem, 6vw, 6rem); }
}

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.contact-card {
  display: flex; flex-direction: column; gap: .35rem; padding: 1.75rem; min-height: 48px;
  background: var(--ink-2); border: 1px solid var(--line-light); border-radius: var(--radius);
  text-decoration: none; color: #fff; transition: border-color .2s, transform .2s, background-color .2s;
}
.contact-card:hover { border-color: var(--accent); background: #232a2f; transform: translateY(-3px); }
.contact-card .icon-lg { color: var(--accent); margin-bottom: .75rem; }
.cc-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; color: rgba(255, 255, 255, .72); font-weight: 600; }
.cc-value { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.15; letter-spacing: .02em; }
.cc-email { font-size: clamp(1.25rem, 2.2vw, 1.6rem); overflow-wrap: anywhere; }
.cc-link { margin-top: .75rem; font-weight: 600; color: var(--accent); }
.cc-link::after { content: " →"; }
.contact-cta { margin-top: 2.5rem; }
@media (min-width: 900px) { .contact-cards { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
@media (max-width: 559px) { .contact-cta .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { background: #0e1114; color: rgba(255, 255, 255, .8); padding-top: clamp(3rem, 6vw, 4.5rem); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.25rem; padding-bottom: 2.5rem; }
.footer-tag { margin-top: 1rem; font-family: var(--font-head); font-size: 1.25rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.footer-contact { display: flex; flex-direction: column; gap: .6rem; }
.footer-contact a, .footer-nav a { color: inherit; text-decoration: none; }
.footer-contact a:hover, .footer-nav a:hover { color: var(--accent); text-decoration: underline; }
.footer-nav { display: flex; flex-direction: column; gap: .6rem; }
.footer-base { border-top: 1px solid var(--line-light); padding-block: 1.5rem; font-size: .85rem; color: rgba(255, 255, 255, .65); }
@media (min-width: 820px) {
  .footer-grid { grid-template-columns: 1.3fr 1.3fr 1fr; gap: 3rem; }
}

/* ---------- Mobile sticky call bar ---------- */
.call-bar { display: none; }
@media (max-width: 819px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .call-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: 1.4fr 1fr; gap: .6rem;
    padding: .65rem var(--gutter) calc(.65rem + env(safe-area-inset-bottom));
    background: var(--ink); border-top: 1px solid var(--line-light);
    transform: translateY(110%); visibility: hidden; transition: transform .3s, visibility .3s;
  }
  .call-bar.is-visible { transform: none; visibility: visible; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(10, 12, 14, .94); padding: 64px 16px 16px;
}
.lightbox[hidden] { display: none; }
.lb-figure { display: flex; flex-direction: column; align-items: center; gap: .85rem; max-width: 100%; max-height: 100%; min-height: 0; }
.lb-img { max-width: min(100%, 1400px); max-height: calc(100vh - 150px); max-height: calc(100svh - 150px); width: auto; height: auto; object-fit: contain; border-radius: var(--radius); }
.lb-caption { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1rem; color: #fff; text-align: center; font-size: .95rem; }
.lb-count { color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%;
  transition: background-color .2s, color .2s;
}
.lb-btn:hover { background: var(--accent); color: var(--accent-ink); }
.lb-close { top: 8px; right: 8px; }
.lb-prev, .lb-next { top: 50%; margin-top: -24px; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
@media (max-width: 599px) {
  .lb-prev, .lb-next { top: auto; bottom: 12px; margin-top: 0; }
  .lightbox { padding-bottom: 76px; }
  .lb-img { max-height: calc(100svh - 190px); }
}

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .tile:hover img, .contact-card:hover { transform: none; }
  .dig-soil, .dig-cut, .dig-machine, .dig-hint { display: none !important; }
  .ticker-track { width: auto; justify-content: center; }
  .ticker-list { flex-wrap: wrap; justify-content: center; padding-inline: var(--gutter); row-gap: .6rem; }
  .ticker-list[aria-hidden="true"] { display: none; }
  .ticker-list li:last-child::after { display: none; }
  .scroll-cue { display: none !important; }
}

/* ---------- Photos carry no visible captions (alt text stays for screen readers) ---------- */
.tile-cap, .lb-text { display: none !important; }
.tile::after { display: none !important; }
