/* =========================================================
   Stellar Meridian Aerial Imaging: immersive scroll layout
   Colors and fonts come from css/design-tokens.css, a copy of
   stellar-meridian-brand/design-tokens.css (the brand source of truth).
   The hex fallbacks only apply if that file fails to load.
   ========================================================= */
:root {
  --charcoal-950: var(--sm-charcoal-950, #181a20);
  --charcoal-900: var(--sm-charcoal-900, #1c1f25);
  --charcoal-800: var(--sm-charcoal, #23262e);   /* card background */
  --charcoal-700: var(--sm-charcoal-700, #2a2e37);
  --steel-500: var(--sm-steel, #7c8692);         /* contour lines */
  --steel-400: var(--sm-steel-400, #9aa3ae);
  --steel-300: var(--sm-steel-300, #c3c9d0);
  --text: var(--sm-white, #f1f3f5);
  --sky: var(--sm-sky, #5cb6ea);
  --sky-glow: rgba(92, 182, 234, .16);
  --line: rgba(124, 134, 146, .24);

  --font-sans: var(--sm-font-body, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  --font-mono: var(--sm-font-data, "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace);

  --radius: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 72px;
  --gutter: clamp(16px, 5vw, 72px);
  --vh: 100vh;
  color-scheme: dark;
}
@supports (height: 100svh) { :root { --vh: 100svh; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html:not(.motion) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--charcoal-950);
  color: var(--steel-300);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: var(--sky); text-decoration: none; }
a:hover { color: var(--text); }
h1, h2, h3 { color: var(--text); line-height: 1.05; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--sky); color: var(--charcoal-900); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; color: var(--charcoal-900); }
.mono { font-family: var(--font-mono); }
.accent { color: var(--sky); }

.eyebrow {
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;   /* brand label: Plex Mono 12 px / 500 / +0.2em */
  color: var(--steel-300); margin-bottom: 1.1rem; display: flex; align-items: center; gap: .8rem;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--sky); flex: none; }
/* Service scenes: the service name is the <h2> (search keyword), the slogan below it is a styled <p> */
h2.eyebrow { line-height: 1.5; margin-top: 0; }
p.scene-title { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--sky); color: var(--charcoal-900); box-shadow: 0 8px 24px -10px rgba(92, 182, 234, .7); }
.btn-primary:hover { background: var(--sky); color: var(--charcoal-900); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(241, 243, 245, .4); color: var(--text); background: rgba(28, 31, 37, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--sky); color: var(--text); transform: translateY(-2px); }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }

/* ---------- Progress bar ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--sky); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 10px rgba(92, 182, 234, .7); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: linear-gradient(rgba(24, 26, 32, .55), transparent);
  transition: background-color .35s var(--ease), backdrop-filter .35s;
}
.site-header.is-scrolled { background: rgba(24, 26, 32, .6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.header-inner { height: 100%; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 44px; height: 44px; transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-8deg); }
/* Header lockup (official brand file; the lettering is outlined, so it's never retyped) */
.brand img.brand-lockup { width: auto; height: 42px; }
.brand:hover img.brand-lockup { transform: none; opacity: .88; }
@media (max-width: 420px) { .brand img.brand-lockup { height: 35px; } }   /* 35 px tall = 181 px wide, above the 180 px lockup minimum */

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a:not(.btn) { color: var(--steel-300); font-size: .93rem; font-weight: 500; position: relative; padding: .3rem 0; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--sky); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-nav a:not(.btn):hover { color: var(--text); }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), background-color .2s; }
.nav-toggle-bars { top: 21px; }
.nav-toggle-bars::before { content: ""; left: 0; top: -7px; }
.nav-toggle-bars::after { content: ""; left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(24, 26, 32, .97); backdrop-filter: blur(12px);
    padding: .5rem var(--gutter) 1.5rem; border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .site-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .site-nav a:not(.btn) { padding: .95rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 1.1rem; }
  .site-header.menu-open { background: rgba(24, 26, 32, .97); }
}

/* ---------- Scene index (right edge) ---------- */
.scene-nav { position: fixed; right: clamp(14px, 2vw, 28px); top: 50%; translate: 0 -50%; z-index: 40; }
.scene-nav ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.scene-nav a { display: flex; align-items: center; justify-content: flex-end; gap: .7rem; padding: .3rem 0; color: var(--steel-400); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.scene-nav a span { opacity: 0; transform: translateX(6px); transition: opacity .3s var(--ease), transform .3s var(--ease); white-space: nowrap; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.scene-nav a::after { content: ""; width: 14px; height: 2px; background: rgba(241, 243, 245, .45); transition: width .35s var(--ease), background-color .35s; }
.scene-nav a:hover span, .scene-nav a.is-active span { opacity: 1; transform: none; }
.scene-nav a.is-active { color: var(--text); }
.scene-nav a.is-active::after { width: 30px; background: var(--sky); }
@media (max-width: 1000px) { .scene-nav { display: none; } }

/* =========================================================
   SCENES
   Without motion (reduced motion / no JS): each scene is a plain full-screen section.
   With motion: scenes are tall scroll tracks; .scene-pin sticks to the viewport and
   the next scene slides up over it (negative margin overlap).
   ========================================================= */
.scene { position: relative; }
.scene-pin { position: relative; height: var(--vh); min-height: 520px; overflow: hidden; background: var(--charcoal-900); isolation: isolate; }

html.motion .scene { height: calc(var(--vh) * (2 + var(--dwell, .5))); }
html.motion .scene + .scene, html.motion .quote-section { margin-top: calc(var(--vh) * -1); }
html.motion .scene-pin { position: sticky; top: 0; }

.scene-media { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.scene-media img, .scene-media video { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.scene-media video { position: absolute; inset: 0; }

.contours { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.scene .contours { z-index: -2; }
/* owner wants the hero contours just barely visible over the pivot video (lines, blue highlight and "400 M" label fade together) */
.scene-hero .contours { z-index: -1; opacity: .22; }
/* Hero (drone photo, 16:9): keep the drone in the crop; the badge was removed so it never covers the drone */
#hero .scene-media img { object-position: 60% 35%; }
/* Phones: the photo fills the top ~70% and fades into charcoal, copy sits at the bottom, so the drone stays clear of the headline */
@media (max-width: 760px) {
  #hero .scene-media { background: var(--charcoal-900); }
  #hero .scene-media img { height: 70%; object-position: 74% 50%;
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
  #hero .hero-inner { align-content: end; padding-bottom: 5.5rem; }
}
/* narrow phones: "Central Washington." (non-breaking) and the mono eyebrow were wider than the screen */
.hero-inner > * { min-width: 0; }
@media (min-width: 421px) { .scene-hero h1 .accent { white-space: nowrap; } }
@media (max-width: 420px) {
  .scene-hero h1 { font-size: 2.1rem; }
  .scene-hero .eyebrow { letter-spacing: .06em; font-size: 11px; white-space: nowrap; }
}
/* short phones (e.g. 375x667): photo a bit shorter, secondary button hidden, so the copy stays below the drone */
@media (max-width: 760px) and (max-height: 700px) {
  #hero .scene-media img { height: 62%; }
  #hero .hero-inner { padding-bottom: 1.25rem; gap: 0; }
  #hero .hero-actions .btn-ghost, #hero .coords { display: none; }
  #hero .lede { margin-bottom: 1.1rem; }
}

.scene-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(24, 26, 32, .55), transparent 22%),
    linear-gradient(to top, rgba(24, 26, 32, .92) 0%, rgba(24, 26, 32, .5) 38%, transparent 68%),
    linear-gradient(to right, rgba(24, 26, 32, .55), transparent 62%);
}
.scene-right .scene-shade {
  background:
    linear-gradient(to bottom, rgba(24, 26, 32, .55), transparent 22%),
    linear-gradient(to top, rgba(24, 26, 32, .92) 0%, rgba(24, 26, 32, .5) 38%, transparent 68%),
    linear-gradient(to left, rgba(24, 26, 32, .6), transparent 62%);
}
/* lighter outside the text area than the old video shade, so the drone and sky stay bright */
/* tighter around the copy and ~0 at the drone (upper right), so the drone isn't dimmed (owner: "make it pop") */
.scene-shade-hero { background: radial-gradient(ellipse 55% 70% at 22% 60%, rgba(24, 26, 32, .8), rgba(24, 26, 32, .4) 55%, rgba(24, 26, 32, 0)), linear-gradient(to bottom, rgba(24, 26, 32, .5), transparent 22%); }
@media (max-width: 760px) {
  .scene-shade-hero { background: linear-gradient(to bottom, rgba(24, 26, 32, .5), transparent 18%, transparent 34%, rgba(24, 26, 32, .7) 52%, rgba(24, 26, 32, .92)); }
}
.scene-shade-strong { background: linear-gradient(to right, rgba(24, 26, 32, .88), rgba(24, 26, 32, .55) 55%, rgba(24, 26, 32, .25)); }

.scene-cover { position: absolute; inset: 0; z-index: 5; background: var(--charcoal-950); opacity: 0; pointer-events: none; }

.scene-content {
  position: absolute; left: var(--gutter); bottom: clamp(3rem, 11vh, 7.5rem);
  width: min(680px, calc(100% - var(--gutter) * 2));
}
.scene-right .scene-content { left: auto; right: calc(var(--gutter) + 40px); }
.scene-content-top { bottom: auto; top: calc(var(--header-h) + clamp(1.5rem, 6vh, 4rem)); }

.scene-index { font-family: var(--font-mono); font-size: .85rem; letter-spacing: .2em; color: var(--steel-400); margin-bottom: 1.4rem; }
.scene-index span { color: var(--sky); font-size: 1.05rem; }
.scene-title { font-size: clamp(2.5rem, 6.4vw, 5.6rem); line-height: 1.02; font-weight: 700; letter-spacing: -.02em;   /* brand display: Inter Bold, -0.02em */ margin-bottom: .35em; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.scene-text { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--steel-300); max-width: 36em; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.chips { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; color: var(--text); padding: .4rem .75rem; border-radius: 999px; border: 1px solid rgba(92, 182, 234, .5); background: rgba(24, 26, 32, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* Corner frame brackets */
.frame { position: absolute; inset: calc(var(--header-h) + 10px) clamp(12px, 2.4vw, 32px) clamp(14px, 2.4vw, 32px); pointer-events: none; }
.frame i { position: absolute; width: 26px; height: 26px; border: 0 solid rgba(241, 243, 245, .45); }
.frame i:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.frame i:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

/* ---------- Hero ---------- */
.hero-inner {
  position: absolute; inset: var(--header-h) var(--gutter) 0; display: grid;
  grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.scene-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 1.3rem; text-wrap: balance; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 34em; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-badge { justify-self: center; width: min(100%, 380px); position: relative; }
.hero-badge::before { content: ""; position: absolute; inset: -14%; border-radius: 50%; background: radial-gradient(circle, rgba(92, 182, 234, .2), transparent 65%); z-index: -1; }
.badge { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .5)); font-family: var(--font-sans); }
.badge-ring { transform-origin: 100px 100px; animation: spin 90s linear infinite; }
.badge-star { transform-origin: 100px 58px; animation: twinkle 5s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .85; transform: scale(.94); } }

.hero-copy > *, .hero-badge { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-badge { animation-delay: .2s; animation-duration: 1.2s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.coords {
  position: absolute; right: clamp(34px, 4.4vw, 64px); bottom: clamp(30px, 4.4vw, 58px); margin: 0;
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono); font-size: .88rem; letter-spacing: .14em; color: var(--steel-300);
}
.coords svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
/* Brand map furniture: crop ticks in three corners, coordinates + crosshair in the fourth (desktop; phones center the coords) */
@media (min-width: 901px) {
  .scene-hero .frame i:nth-child(4) { display: none; }
  .scene-hero .coords { right: clamp(12px, 2.4vw, 32px); bottom: clamp(14px, 2.4vw, 32px); }
}
.scroll-cue { position: absolute; left: 50%; bottom: 30px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(241, 243, 245, .45); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--sky); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; align-content: center; gap: 1.6rem; padding-bottom: 4rem; }
  .hero-badge { order: -1; width: min(44vw, 190px); }
  .coords { right: auto; left: 50%; translate: -50% 0; bottom: 84px; font-size: .74rem; white-space: nowrap; }
}
@media (max-width: 520px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .scroll-cue { display: none; }
  .coords { bottom: 28px; }
  .lede { margin-bottom: 1.5rem; }
}
@media (max-height: 640px) and (max-width: 900px) { .hero-badge { display: none; } }

/* ---------- Compare (raw → ortho) ---------- */
.compare { position: absolute; inset: 0; z-index: -3; user-select: none; }
.compare-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--sky); box-shadow: 0 0 22px rgba(92, 182, 234, .8); pointer-events: none; }
.compare-handle span { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; translate: -50% -50%; border-radius: 50%; background: var(--charcoal-800); border: 2px solid var(--sky); }
.compare-handle span::before, .compare-handle span::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border: solid var(--sky); border-width: 0 0 2px 2px; }
.compare-handle span::before { left: 10px; transform: translateY(-50%) rotate(45deg); }
.compare-handle span::after { right: 10px; transform: translateY(-50%) rotate(-135deg); }
.compare-labels { position: absolute; left: var(--gutter); right: calc(var(--gutter) + 40px); bottom: clamp(1.6rem, 5vh, 3rem); display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text); pointer-events: none; }
.compare-labels span { background: rgba(24, 26, 32, .7); backdrop-filter: blur(6px); padding: .4rem .75rem; border-radius: 6px; }
/* stronger at the top-left so copy stays legible over the bright satellite image */
.scene-compare .scene-shade { background:
  linear-gradient(to bottom, rgba(24, 26, 32, .92), rgba(24, 26, 32, .72) 50%, transparent 80%),
  linear-gradient(to right, rgba(24, 26, 32, .7), transparent 58%); }
/* Manual slider (shown when scroll animation is off) */
.compare-range { position: absolute; left: 50%; bottom: 5.5rem; translate: -50% 0; width: min(460px, 80vw); z-index: 2; accent-color: var(--sky); cursor: ew-resize; }
html.motion .compare-range { display: none; }

/* ---------- Work reel: click-through carousel (owner, 2026-11-08) ----------
   One screen like the other scenes, so scrolling passes straight on to About. Arrows, swipe, arrow keys or the
   intro's "View the work" button move the track one frame at a time; main.js sets --i (frame index). */
.reel-track { display: flex; height: 100%; transform: translateX(calc(var(--i, 0) * -100vw)); transition: transform .65s var(--ease); }
.reel-frame { position: relative; flex: 0 0 100vw; height: 100%; margin: 0; overflow: hidden; background: var(--charcoal-900); }
.reel-frame img { position: absolute; top: 0; left: 0; width: 100%; max-width: none; height: 100%; object-fit: cover; }
/* .reel-frame--fit: show the whole image (e.g. a 3D model render with a built-in callout) instead of filling the frame;
   the background matches the render's dark sky so the letterbox doesn't show */
.reel-frame--fit { background: linear-gradient(#0f171a 55%, var(--charcoal-950)); }
.reel-frame--fit img { left: 0; width: 100%; object-fit: contain; object-position: 50% 42%; }
.reel-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(24, 26, 32, .85), transparent 40%), linear-gradient(to bottom, rgba(24, 26, 32, .5), transparent 20%); pointer-events: none; }
.reel-frame figcaption { position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(3rem, 10vh, 6rem); display: grid; gap: .35rem; justify-items: start; }
.reel-frame figcaption strong { color: var(--text); font-size: clamp(1.6rem, 3.6vw, 3rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.reel-frame figcaption span:last-child { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-300); }
.tag { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); border: 1px solid rgba(92, 182, 234, .55); padding: .2rem .5rem; border-radius: 4px; background: rgba(24, 26, 32, .45); }
.reel-open { position: absolute; z-index: 3; right: calc(var(--gutter) + 40px); bottom: clamp(3rem, 10vh, 6rem); width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(241, 243, 245, .45); background: rgba(24, 26, 32, .55); backdrop-filter: blur(6px); color: var(--text); cursor: pointer; transition: transform .3s var(--ease), border-color .3s, background-color .3s; }
.reel-open svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reel-open:hover { transform: scale(1.08); border-color: var(--sky); background: rgba(92, 182, 234, .2); }
.reel-play { right: auto; bottom: auto; left: 50%; top: 50%; translate: -50% -50%; width: 84px; height: 84px; border: 2px solid var(--sky); }
.reel-play svg { width: 30px; height: 30px; fill: var(--sky); stroke: none; margin-left: 4px; }
.reel-intro { display: grid; align-items: center; background: var(--charcoal-800); }
.reel-intro::after { display: none; }
.reel-intro-copy { position: relative; padding-inline: var(--gutter); max-width: 900px; }
.reel-hint { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: 0; margin-top: 1rem; border: 0; background: none; cursor: pointer; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sky); }
.reel-hint:hover { color: var(--text); }
.reel-hint svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
.reel-progress { position: absolute; left: var(--gutter); right: calc(var(--gutter) + 40px); bottom: 1.6rem; height: 2px; background: rgba(241, 243, 245, .18); z-index: 4; }
.reel-progress span { display: block; height: 100%; background: var(--sky); transform-origin: left; transform: scaleX(0); transition: transform .65s var(--ease); }
.reel-arrow {
  position: absolute; z-index: 5; top: 50%; translate: 0 -50%; width: 52px; height: 52px; display: grid; place-items: center; cursor: pointer;
  border-radius: 50%; border: 1px solid rgba(241, 243, 245, .45); background: rgba(24, 26, 32, .6); color: var(--text);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: border-color .2s, background-color .2s, opacity .25s;
}
.reel-arrow:hover { border-color: var(--sky); background: rgba(92, 182, 234, .2); }
.reel-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reel-arrow[disabled] { opacity: 0; pointer-events: none; }
.reel-prev { left: clamp(10px, 2vw, 28px); }
.reel-next { right: calc(var(--gutter) + 40px); }
.reel-count { position: absolute; z-index: 5; right: calc(var(--gutter) + 40px); bottom: 2.4rem; margin: 0; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .16em; color: var(--steel-300); }
.reel-count-i { color: var(--sky); }
.reel-frame[aria-hidden="true"] figcaption { visibility: hidden; }
@media (max-width: 700px) {
  .reel-arrow { top: auto; translate: none; bottom: calc(2.4rem + 60px); width: 46px; height: 46px; }
  .reel-prev { left: auto; right: calc(var(--gutter) + 56px); }
  .reel-next { right: var(--gutter); }
  .reel-count { display: none; }   /* the progress bar shows position; the full-size button sits where the count would go */
}

/* ---------- About ---------- */
.about-panel { bottom: auto; top: 50%; translate: 0 -50%; width: min(700px, calc(100% - var(--gutter) * 2)); }
.about-panel .scene-title { font-size: clamp(2.1rem, 4.6vw, 3.8rem); }
.about-panel .scene-text { font-size: clamp(1rem, 1.2vw, 1.1rem); }
.creds { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; gap: .8rem; }
.creds li { display: flex; gap: .9rem; align-items: flex-start; }
.creds svg { flex: none; width: 24px; height: 24px; margin-top: .15rem; fill: none; stroke: var(--sky); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.creds strong { color: var(--text); font-weight: 600; }
.area { font-size: .95rem; padding-top: 1.2rem; border-top: 1px solid var(--line); margin: 0; }
.area span { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--steel-400); margin-bottom: .3rem; }
/* Owner portrait: small avatar row above the eyebrow; a framed column on the right on wide screens */
.about-portrait { display: flex; align-items: center; gap: .9rem; margin: 0 0 1.1rem; }
.about-portrait-frame { position: relative; display: block; flex: none; }
.about-portrait img { display: block; width: 64px; height: 64px; object-fit: cover; object-position: 50% 30%; border-radius: 50%; border: 2px solid var(--sky); }
.about-portrait figcaption { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(241, 243, 245, .82); text-shadow: 0 1px 3px rgba(0, 0, 0, .7), 0 0 12px rgba(0, 0, 0, .5); }
.about-portrait figcaption strong { display: block; font-family: var(--font-sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text); margin-bottom: .15rem; }
@media (min-width: 1000px) and (min-height: 640px) {
  .about-panel { width: min(1120px, calc(100% - var(--gutter) * 2)); display: grid; grid-template-columns: minmax(0, 680px) clamp(230px, 24vw, 330px); column-gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
  .about-panel > * { grid-column: 1; }
  .about-panel > .about-portrait { grid-column: 2; grid-row: 1 / span 8; align-self: center; flex-direction: column; align-items: stretch; gap: .9rem; margin: 0; }
  .about-portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 0; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
  /* brand corner brackets, top-left and bottom-right */
  .about-portrait-frame::before, .about-portrait-frame::after { content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid var(--sky); pointer-events: none; }
  .about-portrait-frame::before { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
  .about-portrait-frame::after { bottom: -10px; right: -10px; border-left: 0; border-top: 0; }
}
@media (max-width: 700px) {
  .about-panel { top: auto; bottom: 2rem; translate: none; }
  .about-portrait { margin-bottom: .9rem; }
  #about .eyebrow { display: none; } /* the portrait row introduces the section on phones */
  .about-portrait img { width: 52px; height: 52px; }
  .about-panel .scene-text { font-size: .95rem; line-height: 1.55; }
  .about-panel .area { display: none; }
  .creds { margin: 1rem 0 0; gap: .55rem; font-size: .92rem; }
  /* full-width text on phones: darken top-to-bottom (not left-to-right) so the bright field doesn't wash out the bio */
  #about .scene-shade-strong { background: linear-gradient(to bottom, rgba(24, 26, 32, .5), rgba(24, 26, 32, .8) 30%, rgba(24, 26, 32, .9) 60%, rgba(24, 26, 32, .94)); }
  #about .scene-title { font-size: 2rem; }
}

/* ---------- Mobile scene tweaks ---------- */
@media (max-width: 700px) {
  .scene-content, .scene-right .scene-content { left: var(--gutter); right: auto; bottom: 2.6rem; width: calc(100% - var(--gutter) * 2); }
  .scene-content-top { bottom: auto; }
  .scene-right .scene-shade, .scene-shade { background: linear-gradient(to bottom, rgba(24, 26, 32, .6), transparent 25%), linear-gradient(to top, rgba(24, 26, 32, .95) 0%, rgba(24, 26, 32, .6) 45%, rgba(24, 26, 32, .1) 80%); }
  .scene-compare .scene-shade { background: linear-gradient(to bottom, rgba(24, 26, 32, .92), rgba(24, 26, 32, .78) 52%, transparent 72%); }
  .scene-index { margin-bottom: .8rem; }
  .chips { margin-top: 1rem; }
  .chips li { font-size: .68rem; }
  .reel-open { right: var(--gutter); }
  .reel-frame figcaption { bottom: 6.5rem; right: var(--gutter); }
  .reel-frame figcaption + .reel-open:not(.reel-play) { bottom: 2.4rem; right: auto; left: var(--gutter); }
  .reel-progress, .compare-labels { right: var(--gutter); }
  .frame { display: none; }
}

/* ---------- Quote ---------- */
.quote-section {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--charcoal-900); border-top: 1px solid var(--line);
  min-height: var(--vh); padding: calc(var(--header-h) + clamp(2rem, 7vh, 5rem)) var(--gutter) 0;
  box-shadow: 0 -30px 60px rgba(0, 0, 0, .45);
}
.quote-section > .contours { z-index: -1; opacity: .75; }
.quote { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; padding-bottom: clamp(4rem, 10vh, 7rem); }
.quote-head .scene-title { font-size: clamp(2.3rem, 5vw, 4rem); }
/* "How it works": three numbered steps under the quote intro */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; position: relative; padding-left: 2.8rem; font-size: .95rem; color: var(--steel-300); }
.steps li::before { content: "0" counter(step); position: absolute; left: 0; top: .05rem; font-family: var(--font-mono); font-size: .85rem; color: var(--sky); letter-spacing: .08em; }
.steps strong { display: block; color: var(--text); font-weight: 600; margin-bottom: .1rem; }
.quote-contact { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .3rem; }
.quote-contact span { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--steel-400); }
.quote-contact a { font-family: var(--font-mono); font-size: 1.02rem; word-break: break-all; }

.quote-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem;
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  background: rgba(35, 38, 46, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7);
}
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 500; color: var(--steel-300); }
.field label span { color: var(--sky); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; border-radius: 10px;
  background: var(--charcoal-900); border: 1px solid rgba(124, 134, 146, .35); color: var(--text);
  transition: border-color .2s, box-shadow .2s, background-color .2s; font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--steel-400); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(154, 163, 174, .55); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px var(--sky-glow); background: var(--charcoal-800); }
.field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.7); cursor: pointer; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer; }
.select select:invalid, .select select:has(> option[value=""]:checked) { color: var(--steel-400); }
.select::after { content: ""; position: absolute; right: 1rem; top: 50%; width: 8px; height: 8px; border: solid var(--steel-400); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: .4rem; }
.form-status { margin: 0; font-size: .95rem; }
.form-status.is-success { color: var(--sky); }
.form-status.is-error { color: var(--text); }
.quote-form.is-sending button[type="submit"] { opacity: .65; pointer-events: none; }
@media (max-width: 900px) { .quote { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .quote-form { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer { max-width: 1240px; margin: 0 auto; border-top: 1px solid var(--line); padding: 3rem 0 2rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.footer-brand p { margin: 1.3rem 0 0; color: var(--steel-400); font-size: .95rem; }
/* "Real flights, real footage." beside the badge (owner: bigger, "so people know that we are proud of this") */
.footer-brand { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(1.2rem, 3vw, 2rem); align-items: center; flex: 1 1 520px; max-width: 720px; }
.footer-brand > p { grid-column: 1 / -1; }
.footer-pledge { padding-left: 1rem; border-left: 3px solid var(--sky); }
.footer-brand .footer-pledge p { margin: 0; }
.footer-brand .pledge-lead { color: var(--text); font-size: clamp(1.4rem, 2.6vw, 2.05rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
.pledge-lead em { font-style: normal; color: var(--sky); }
.footer-brand .pledge-sub { margin-top: .5rem; color: var(--steel-300); font-size: clamp(.98rem, 1.2vw, 1.08rem); line-height: 1.45; max-width: 36em; text-wrap: pretty; }
@media (max-width: 480px) {
  .footer-brand { grid-template-columns: 1fr; row-gap: 1.2rem; }
  .footer-brand .brand img.footer-logo { width: 96px; height: 96px; }   /* badge minimum */
}
.footer-brand i { color: var(--sky); font-style: normal; padding: 0 .3rem; }
.footer-contact { margin: 0; display: grid; gap: 0; font-family: var(--font-mono); }   /* rows are 44 px tap targets, so no extra gap */
.footer-contact div { display: flex; align-items: center; gap: 1.4rem; }
.footer-contact a, .quote-contact a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-contact dt { color: var(--steel-400); width: 1ch; }
.footer-contact dd { margin: 0; }
.footer-contact a { color: var(--steel-300); word-break: break-all; }
.footer-contact a:hover { color: var(--sky); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; padding-top: 1.6rem; font-size: .85rem; color: var(--steel-400); }   /* Steel 400: small text on charcoal (steel alone fails contrast below 18 pt) */
.footer-base p { margin: 0; }
.footer-base .mono { letter-spacing: .1em; text-transform: uppercase; font-size: .75rem; }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(18, 20, 25, .96); color: var(--text); overscroll-behavior: contain; }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; animation: fadein .3s var(--ease); }
.lightbox::backdrop { background: transparent; }
@keyframes fadein { from { opacity: 0; } }
.lightbox-stage { display: grid; place-items: center; padding: 64px clamp(12px, 7vw, 96px) 8px; min-height: 0; }
.lightbox-stage img, .lightbox-stage video { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: zoomin .35s var(--ease); }
@keyframes zoomin { from { opacity: 0; transform: scale(.97); } }
.lightbox-msg { font-family: var(--font-mono); color: var(--steel-400); text-align: center; max-width: 30em; }
.lightbox-caption { text-align: center; margin: 0; padding: .9rem 1rem 1.4rem; color: var(--steel-300); font-size: .95rem; }
.lb-btn { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: rgba(35, 38, 46, .8); color: var(--text); cursor: pointer; transition: background-color .2s, border-color .2s; }
.lb-btn:hover { border-color: var(--sky); background: rgba(92, 182, 234, .15); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; translate: 0 -50%; }
.lb-next { right: 12px; top: 50%; translate: 0 -50%; }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 10px; translate: none; } }

/* ---------- Simple pages (thank-you, 404) ---------- */
.simple { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; position: relative; isolation: isolate; overflow: hidden; padding: 6rem var(--gutter); background: var(--charcoal-800); }
.simple .contours { z-index: -1; }
.simple-inner { max-width: 560px; }
.simple-inner img { width: 96px; height: 96px; margin: 0 auto 2rem; }
.simple-inner .eyebrow { justify-content: center; }
.simple-inner .btn { margin-top: 1rem; }

@media (max-width: 520px) { .eyebrow { letter-spacing: .13em; font-size: .72rem; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .hero-copy > *, .hero-badge { opacity: 1; transform: none; }
}
.brand img.footer-logo { width: 120px; height: 120px; }   /* beats the generic .brand img size; badge minimum is 96 px */
.badge { border-radius: 50%; }

/* Build & Volumes (paired) scene: both panels use the old Volumes layout. The pile video's outline fills the center and its
   volume callout sits top-right, so the text goes in the clear upper-left; the foundations photo works the same way. */
:is(#construction, #volumes) .scene-media { top: var(--header-h); }
:is(#construction, #volumes) .scene-content { left: var(--gutter); right: auto; bottom: auto; top: calc(var(--header-h) + clamp(1rem, 4vh, 2.5rem)); width: min(540px, calc(100% - var(--gutter) * 2)); }
:is(#construction, #volumes) .scene-index { margin-bottom: .7rem; }
/* the 16,122 yd³ render is a demo, not a client job: say so on the frame */
.media-note { position: absolute; z-index: 1; right: calc(var(--gutter) + 48px); bottom: 1.4rem; margin: 0; padding: .3rem .6rem; border-radius: 4px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-300); background: rgba(24, 26, 32, .75); border: 1px solid rgba(124, 134, 146, .45); }
@media (max-width: 700px) and (orientation: portrait) { :is(#construction, #volumes) .media-note { right: auto; left: .6rem; bottom: 1rem; font-size: .6rem; } }
:is(#construction, #volumes) .eyebrow { margin-bottom: .7rem; }
:is(#construction, #volumes) .scene-title { font-size: clamp(2.2rem, 3.8vw, 3.4rem); margin-bottom: .25em; }
:is(#construction, #volumes) .scene-text { font-size: clamp(.96rem, 1.1vw, 1.05rem); max-width: 30em; }
:is(#construction, #volumes) .chips { margin-top: 1rem; }
:is(#construction, #volumes) .scene-shade {
  background: radial-gradient(ellipse 66% 86% at 0% 0%, rgba(24, 26, 32, .93), rgba(24, 26, 32, .8) 55%, transparent 100%);   /* covers the copy over the bright dirt in the foundations photo too */
}
@media (max-width: 700px) and (orientation: portrait) {
  /* Phones: show the whole 16:9 frame (pile, outline and callout) under the header, text below it */
  :is(#construction, #volumes) .scene-media { bottom: auto; height: 56.25vw; }
  :is(#construction, #volumes) .scene-media::after { content: ""; position: absolute; inset: auto 0 -2px; height: 30%; background: linear-gradient(transparent, var(--charcoal-900)); }
  :is(#construction, #volumes) .scene-content { top: calc(var(--header-h) + 56.25vw + 1.6rem); bottom: auto; }
  :is(#construction, #volumes) .scene-shade { background: none; }
  :is(#construction, #volumes)::before { content: ""; position: absolute; inset: 0; z-index: -4; pointer-events: none; opacity: .5;
    background: repeating-radial-gradient(ellipse 160% 60% at 20% 115%, transparent 0 22px, rgba(124, 134, 146, .14) 22px 23px); }
}

/* Company slogan (About) */
.slogan { margin: 1.3rem 0 0; padding-left: 1rem; border-left: 3px solid var(--sky); color: var(--text); font-size: clamp(1.15rem, 1.7vw, 1.45rem); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }
.slogan em { font-style: normal; color: var(--sky); }
@media (max-width: 700px) { .slogan { margin-top: .9rem; font-size: 1.08rem; } }
/* Short phones (e.g. iPhone SE): keep the About panel clear of the header */
@media (max-width: 700px) and (max-height: 760px) {
  #about .creds { display: none; }
  #about .scene-title { font-size: 1.9rem; }
}
#aerial .scene-index, #aerial .eyebrow { text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
/* Photo & Video scene (FPV golden-hour loop): keep the bright sky and sun clean,
   darken only behind the text in the lower left */
#aerial .scene-shade {
  background:
    linear-gradient(to bottom, rgba(24, 26, 32, .35), transparent 14%),
    radial-gradient(ellipse 85% 110% at 0% 100%, rgba(24, 26, 32, .92), rgba(24, 26, 32, .72) 55%, transparent 90%);
}
@media (max-width: 700px) {
  #aerial .scene-shade { background: linear-gradient(to bottom, rgba(24, 26, 32, .35), transparent 14%), linear-gradient(to top, rgba(24, 26, 32, .92) 0%, rgba(24, 26, 32, .55) 48%, transparent 75%); }
  #aerial .scene-media img, #aerial .scene-media video { object-position: 64% 50%; }
}

/* Work reel intro: background video loop behind "From the field." */
.reel-intro { isolation: isolate; }
.reel-media { position: absolute; top: 0; bottom: 0; left: -8%; width: 116%; z-index: -3; }
.reel-frame .reel-media img, .reel-media video { position: absolute; inset: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-intro-shade {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(24, 26, 32, .5), transparent 22%),
    linear-gradient(to right, rgba(24, 26, 32, .88), rgba(24, 26, 32, .55) 48%, rgba(24, 26, 32, .12));
}
.reel-intro > .contours { z-index: -1; opacity: .38; }
.reel-intro .scene-title, .reel-intro .scene-text, .reel-intro .eyebrow { text-shadow: 0 2px 16px rgba(0, 0, 0, .45); }
@media (max-width: 700px) {
  .reel-intro-shade { background: linear-gradient(rgba(24, 26, 32, .55), rgba(24, 26, 32, .78)); }
  .reel-media img, .reel-media video { object-position: 86% 50%; }   /* work-intro-birds still: keep the two birds (upper right) in the narrow phone crop */
}

/* Agriculture (satellite vs. drone fly-through) and Mapping (field layers loop): both videos keep labels lower right in the frame */
@media (max-width: 700px) and (orientation: portrait) {
  /* Phones: show the whole 16:9 frame (with its labels) under the header, text below it */
  #agriculture .scene-media, #mapping .scene-media { top: var(--header-h); bottom: auto; height: 56.25vw; }
  #agriculture .scene-media::after, #mapping .scene-media::after { content: ""; position: absolute; inset: auto 0 -2px; height: 30%; background: linear-gradient(transparent, var(--charcoal-900)); }
  #agriculture .scene-content, #mapping .scene-content { top: calc(var(--header-h) + 56.25vw + 1.6rem); bottom: auto; }
  #agriculture .scene-shade, #mapping .scene-shade { background: none; }
  #agriculture::before, #mapping::before { content: ""; position: absolute; inset: 0; z-index: -4; pointer-events: none; opacity: .5;
    background: repeating-radial-gradient(ellipse 160% 60% at 20% 115%, transparent 0 22px, rgba(124, 134, 146, .14) 22px 23px); }
}
/* Desktop: darken only behind the text on the left so the video's lower-right labels stay bright */
@media (min-width: 701px), (orientation: landscape) {
  #agriculture .scene-shade, #mapping .scene-shade {
    background:
      linear-gradient(to bottom, rgba(24, 26, 32, .5), transparent 18%),
      linear-gradient(to right, rgba(24, 26, 32, .88) 0%, rgba(24, 26, 32, .72) 34%, rgba(24, 26, 32, .3) 50%, transparent 57%);
  }
  #agriculture .scene-index, #agriculture .eyebrow, #mapping .scene-index, #mapping .eyebrow { text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
}

/* Agriculture is now a still: the VARI findings infographic (2400x1408, has its own text).
   It's always shown whole (contain) on charcoal so none of its callouts get cropped or covered.
   Wide screens: infographic on the right, scene text in a column on the left.
   Narrower screens: infographic full width under the header, text below it. */
#agriculture { background: var(--charcoal-900); }
/* Phones: call / quote bar pinned to the bottom. main.js adds .is-visible after the hero and removes it at the form.
   Bottom-anchored scene text, reel captions and buttons sit 60 px higher on phones so the bar never covers them. */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    display: flex; gap: .6rem; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    padding: .5rem var(--gutter) calc(.5rem + env(safe-area-inset-bottom));
    background: rgba(24, 26, 32, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); transform: translateY(105%); transition: transform .35s var(--ease);
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta .btn { flex: 1; justify-content: center; min-height: 44px; padding-block: .6rem; }
  .mobile-cta .btn-ghost { flex: 0 0 auto; padding-inline: 1.2rem; }
  .mobile-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
  .scene .scene-content:not(.scene-content-top) { bottom: calc(2.6rem + 60px); }
  .reel-frame figcaption { bottom: calc(6.5rem + 60px); }
  .reel-frame figcaption + .reel-open:not(.reel-play) { bottom: calc(2.4rem + 60px); }
  .reel-progress { bottom: calc(1.6rem + 60px); }
}
/* Shorter phones: the scenes with the photo box on top run into the bar, so drop the "01 / 06" counter and the
   per-scene quote link (the bar already offers it); on very short phones also the chips */
@media (max-width: 760px) and (max-height: 800px) {
  .scene-service .scene-index, .scene-service .text-link { display: none; }
}
@media (max-width: 760px) and (max-height: 700px) {
  #mapping .chips, #inspections .chips, :is(#construction, #volumes) .chips, #agriculture .chips { display: none; }
}

/* Phones (no pinning): the Raw-to-map wipe is a drag slider; labels sit above the call bar, the slider just above them */
@media (max-width: 760px) {
  html:not(.motion) .compare-labels { bottom: calc(1.2rem + 64px); }
  html:not(.motion) .compare-range { bottom: calc(1.2rem + 64px + 5.2rem); width: calc(100% - var(--gutter) * 2); height: 44px; z-index: 6; }
}

/* Phones (no pinning): each section's text fades up once as it comes into view (main.js adds .lite-reveal / .is-in) */
html.lite-reveal :is(.scene-content, .reel-intro-copy, .quote-head) > *,
html.lite-reveal .quote-form { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.lite-reveal :is(.scene-content, .reel-intro-copy, .quote-head) > :nth-child(2) { transition-delay: .07s; }
html.lite-reveal :is(.scene-content, .reel-intro-copy, .quote-head) > :nth-child(3) { transition-delay: .14s; }
html.lite-reveal :is(.scene-content, .reel-intro-copy, .quote-head) > :nth-child(n+4) { transition-delay: .2s; }
html.lite-reveal :is(.scene-content, .reel-intro-copy, .quote-head).is-in > *,
html.lite-reveal .quote-form.is-in { opacity: 1; transform: none; }

/* Mapping: five layer stills stacked; the tabs (hover / tap / arrow keys) cross-fade between them */
/* the new layer fades in on top; the old one stays opaque underneath until that's done, so the map never dips dark */
.layer-stack img { position: absolute; inset: 0; opacity: 0; z-index: 0; transition: opacity 0s .3s; }
.layer-stack img.is-active { opacity: 1; z-index: 1; transition: opacity .3s var(--ease); }
.layer-hint { margin: 1.3rem 0 .55rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel-300); }
.layer-hint .hint-tap { display: none; }
@media (hover: none) { .layer-hint .hint-hover { display: none; } .layer-hint .hint-tap { display: inline; } }
.layer-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.layer-tabs button {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .45rem .85rem; cursor: pointer;
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .06em; color: var(--text);
  background: rgba(24, 26, 32, .6); border: 1px solid rgba(124, 134, 146, .55); border-radius: 999px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background-color .2s, border-color .2s, color .2s;
}
.layer-tabs button span { color: var(--sky); font-size: .68rem; }
.layer-tabs button:hover { border-color: var(--sky); }
.layer-tabs button[aria-selected="true"] { background: var(--sky); border-color: var(--sky); color: var(--charcoal-900); }
.layer-tabs button[aria-selected="true"] span { color: var(--charcoal-900); }
#mapping .chips { margin-top: 1rem; }
/* Wide screens: whole map on the right (contained; the stills have a charcoal surround), text in a left column, no shade over the map */
#mapping { background: var(--charcoal-900); }
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) {
  /* a 16:9 box (the stills' shape) centred in the space right of the text, so the edge fade below lands on the photo's edges */
  /* (GSAP's zoom resets the CSS translate property, so centre with a fixed height + auto margins instead) */
  #mapping .scene-media { inset: var(--header-h) calc(var(--gutter) + 40px) 0 calc(var(--gutter) + min(30vw, 420px) + 2rem); margin-block: auto;
    height: min(calc((100vw - var(--gutter) * 2 - 40px - min(30vw, 420px) - 2rem) * 9 / 16), calc(100% - var(--header-h) - 2.5rem)); }
  #mapping .layer-stack img { object-fit: contain; }
  /* feather the stills' charcoal surround into the page so no faint box shows (map tile + card sit inside the fade) */
  #mapping .layer-stack picture { position: absolute; inset: 0; display: block;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 3.5%, #000 96.5%, transparent), linear-gradient(to bottom, transparent, #000 4.5%, #000 95%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent, #000 3.5%, #000 96.5%, transparent), linear-gradient(to bottom, transparent, #000 4.5%, #000 95%, transparent);
    mask-composite: intersect; }
  #mapping .scene-shade { background: none; }
  #mapping .scene-content { width: min(30vw, 420px); top: 50%; bottom: auto; translate: 0 -50%; }
  #mapping .scene-title { font-size: clamp(2rem, 3.4vw, 3.4rem); }
}
@media (max-width: 760px) {
  .layer-tabs button { min-height: 44px; padding-inline: .7rem; font-size: .72rem; }
  #mapping .chips { display: none; }   /* the layer tabs take their place on phones */
}

/* Agriculture infographic opens full size in a new tab (pinch-zoomable on phones) */
.fit-zoom { position: absolute; inset: 0; display: block; cursor: zoom-in; }
.zoom-hint { position: absolute; z-index: 1; right: .6rem; bottom: .6rem; display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .6rem; border-radius: 6px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text); background: rgba(24, 26, 32, .8); border: 1px solid rgba(92, 182, 234, .5); }
.zoom-hint svg { width: 13px; height: 13px; fill: none; stroke: var(--sky); stroke-width: 2; stroke-linecap: round; }
.fit-zoom:hover .zoom-hint { border-color: var(--sky); }
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) { .zoom-hint { display: none; } }   /* wide: image is contained in a taller box, the tag would float below it */

/* Small text links under a scene's chips (full-size map, "get a quote for this") */
.text-link { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.1rem; min-height: 44px; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.text-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.text-link:hover svg { transform: translate(2px, -2px); }
.text-link + .text-link { margin-left: 1.4rem; }
.scene-media--fit img { object-fit: contain; object-position: 50% 50%; }
#agriculture .scene-shade { background: none; }
#agriculture .scene-media::after { display: none; }
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) {
  #agriculture .scene-media { inset: calc(var(--header-h) + 1rem) calc(var(--gutter) + 40px) 1.5rem calc(var(--gutter) + min(30vw, 420px) + 2rem); }
  #agriculture .scene-content { width: min(30vw, 420px); top: 50%; bottom: auto; translate: 0 -50%; }
  #agriculture .scene-title { font-size: clamp(2rem, 3.4vw, 3.4rem); }
}
@media (max-width: 999px), (max-aspect-ratio: 5/4) {
  #agriculture .scene-media { top: var(--header-h); bottom: auto; left: 0; right: 0; height: 58.7vw; }
  #agriculture .scene-content { top: calc(var(--header-h) + 58.7vw + 1.4rem); bottom: auto; }
}

/* Inspections: scroll-driven zoom over the roof photo, from the whole barn in to the torn tar
   paper on the roof's corner; a thin outline + label fade in as it arrives. main.js scrubs --p
   from 0 to 1 while the scene is pinned (reduced motion: stays at 0, outline shown). The photo is
   a rotated orthophoto with white corners, so every frame stays inside its photo area.
   Image-space values are fractions of the photo (3200x2506, measured on the owner's orthophoto): --tx/--ty = the damage,
   --cx/--cy = where the opening frame is centred, --px/--py = where the damage ends up on screen. */
#inspections .roof-media {
  container-type: size;
  --ar: 1.2769;                       /* photo width / height */
  --tx: .255; --ty: .591;             /* torn corner */
  --bw: .052; --bh: .078; --rot: 17deg;/* outline size (fractions of photo width) and roof angle */
  --cx: .44;  --cy: .52;              /* opening frame centre: the whole barn */
  --px: .27;  --py: .60;              /* damage position on screen when zoomed */
  --s: 1.3;                           /* end zoom */
  --W: max(200cqw, 100cqh * var(--ar) / .4);  /* never show more than 50% x 40% of the photo */
  --H: calc(var(--W) / var(--ar));
  --left: calc(50cqw - var(--cx) * var(--W));
  --top: calc(50cqh - var(--cy) * var(--H));
  --dx: calc(var(--px) * 100cqw - var(--left) - var(--tx) * var(--W));
  --dy: calc(var(--py) * 100cqh - var(--top) - var(--ty) * var(--H));
  --p: 0;                             /* zoom progress, set by main.js */
  --mx: calc(var(--left) + var(--tx) * var(--W) + var(--dx) * var(--p));   /* outline follows the damage */
  --my: calc(var(--top) + var(--ty) * var(--H) + var(--dy) * var(--p));
  --ms: calc(1 + (var(--s) - 1) * var(--p));
  background: var(--charcoal-900);
}
#inspections .roof-kb {
  position: absolute; left: var(--left); top: var(--top); width: var(--W); height: var(--H);
  transform-origin: calc(var(--tx) * 100%) calc(var(--ty) * 100%);
  transform: translate(calc(var(--dx) * var(--p)), calc(var(--dy) * var(--p))) scale(var(--ms));
  will-change: transform;
}
#inspections .roof-kb img { display: block; width: 100%; height: 100%; object-fit: fill; will-change: auto; }
#inspections .roof-mark { position: absolute; inset: 0; pointer-events: none; opacity: clamp(0, (var(--p) - .82) * 6, 1); }
#inspections .roof-mark-box, #inspections .roof-mark-label { position: absolute; left: var(--mx); top: var(--my); }
#inspections .roof-mark-box {
  width: calc(var(--bw) * var(--W) * var(--ms)); height: calc(var(--bh) * var(--W) * var(--ms));
  translate: -50% -50%; rotate: var(--rot);
  border: 1.5px solid var(--sm-signal-amber, #f2a33a); border-radius: 3px;   /* signal amber = findings only (brand guide) */
  box-shadow: 0 0 0 1px rgba(24, 26, 32, .35), 0 0 18px rgba(242, 163, 58, .16);
}
#inspections .roof-mark-label {
  translate: -50% calc(-1 * (var(--bh) * var(--W) * var(--ms) * .62 + 100%) - 10px);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; white-space: nowrap; color: var(--text);
  padding: .3rem .6rem; border-radius: 4px; border: 1px solid rgba(124, 134, 146, .55);
  background: rgba(42, 46, 55, .82); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);   /* Charcoal 700 callout panel */
}
#inspections .roof-mark-label::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: .5rem; border-radius: 1px; background: var(--sm-signal-amber, #f2a33a); vertical-align: .08em; }

/* Reduced motion (or scroll effects off): still frame of the whole barn with the outline shown */
html:not(.motion) #inspections .roof-mark { opacity: 1; }

/* Phones (portrait): photo in a box under the header, text below it (like Volumes) */
@media (max-width: 700px) and (orientation: portrait) {
  #inspections .roof-media { top: var(--header-h); bottom: auto; height: 62.5vw; --cx: .41; --cy: .52; --px: .42; --py: .5; --s: 1.9; }
  #inspections .roof-media::after { content: ""; position: absolute; inset: auto 0 -2px; height: 22%; background: linear-gradient(transparent, var(--charcoal-900)); }
  #inspections .scene-content { top: calc(var(--header-h) + 62.5vw + 1.4rem); bottom: auto; }
  #inspections .scene-shade { background: none; }
  #inspections .roof-mark-label { font-size: .64rem; }
  #inspections::before { content: ""; position: absolute; inset: 0; z-index: -4; pointer-events: none; opacity: .5;
    background: repeating-radial-gradient(ellipse 160% 60% at 20% 115%, transparent 0 22px, rgba(124, 134, 146, .14) 22px 23px); }
}

/* ============ Services: one scene, six slides that rotate (owner, 2026-11-08) ============
   Each .svc-panel fills the pin and keeps its old per-service layout (rules keyed on the slide ids:
   #mapping, #construction/#volumes, #inspections, #agriculture, #aerial). main.js toggles .is-active and
   rotates by listening for the active tab's progress bar to finish (--svc-ms long). */
.svc-panel { position: absolute; inset: 0; isolation: isolate; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s; }
.svc-panel.is-active { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
.scene-services { --svc-ms: 7000ms; }
.svc-nav { position: absolute; z-index: 6; left: var(--gutter); right: calc(var(--gutter) + 40px); bottom: 1.2rem; display: flex; align-items: center; gap: .5rem; }
.svc-tabs { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.svc-tabs::-webkit-scrollbar { display: none; }
.svc-tabs button, .svc-toggle {
  position: relative; display: inline-flex; align-items: center; gap: .45rem; flex: none; min-height: 40px; padding: .45rem .9rem; cursor: pointer; overflow: hidden;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .05em; white-space: nowrap; color: var(--text);
  background: rgba(24, 26, 32, .66); border: 1px solid rgba(124, 134, 146, .5); border-radius: 999px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background-color .2s, border-color .2s;
}
.svc-tabs button:hover, .svc-toggle:hover { border-color: var(--sky); }
.svc-num { color: var(--sky); font-size: .68rem; }
.svc-tabs button[aria-selected="true"] { border-color: var(--sky); background: rgba(92, 182, 234, .2); }
.svc-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sky); transform-origin: left; transform: scaleX(0); }
.scene-services.is-playing .svc-tabs button[aria-selected="true"] .svc-bar { animation: svc-bar var(--svc-ms) linear forwards; }
.scene-services.is-held .svc-tabs button[aria-selected="true"] .svc-bar { animation-play-state: paused; }
@keyframes svc-bar { to { transform: scaleX(1); } }
.svc-toggle { width: 40px; padding: 0; justify-content: center; }
.svc-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.svc-toggle .i-play { display: none; fill: currentColor; stroke: none; }
.svc-toggle[aria-pressed="true"] .i-pause { display: none; }
.svc-toggle[aria-pressed="true"] .i-play { display: block; }
/* keep slide content and media clear of the bar */
@media (min-width: 761px) {
  :is(#aerial, #inspections) .scene-content { bottom: calc(clamp(3rem, 11vh, 7.5rem) + 2.6rem); }
  #mapping .scene-media { bottom: 4.2rem; }
}
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) { #agriculture .scene-media { bottom: 4.6rem; } }
/* phones: bar sits above the call bar, scrolls sideways if it must; quote links and slide numbers hidden (the bar and call bar cover them) */
@media (max-width: 760px) {
  .svc-nav { left: 0; right: 0; bottom: calc(64px + .5rem); padding-inline: var(--gutter); }
  .svc-tabs button { min-height: 44px; padding-inline: .75rem; font-size: .7rem; }
  .svc-toggle { width: 44px; min-height: 44px; }
  .scene-services .scene-index, .scene-services .text-link, .scene-services .layer-hint { display: none; }
  #aerial .scene-content { bottom: calc(64px + 44px + 1.6rem); }
  /* Mapping's layer tabs: one row that scrolls sideways instead of wrapping to two */
  #mapping .layer-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  #mapping .layer-tabs::-webkit-scrollbar { display: none; }
  #mapping .layer-tabs button { flex: none; }
}
@media (max-width: 760px) and (max-height: 700px) {
  #mapping .scene-title { font-size: 2rem; }
  #mapping .scene-text { font-size: .92rem; line-height: 1.45; }
}

/* ============ FAQ (between the quote form and the footer) ============
   Native <details> accordions: crawlable, keyboard-friendly, no script. Two columns on wide screens. */
.faq { max-width: 1240px; margin: 0 auto; padding: 0 0 clamp(3rem, 8vh, 5rem); }
.faq-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; margin: 0 0 1.4rem; }
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1.2rem; align-items: start; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: rgba(35, 38, 46, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: .9rem 1.1rem; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; color: var(--text); }
.faq-item summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: .3rem; border: solid var(--sky); border-width: 0 2px 2px 0; transform: translateY(-25%) rotate(45deg); transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: translateY(25%) rotate(-135deg); }
.faq-item summary:hover h3 { color: var(--sky); }
.faq-item p { margin: 0; padding: 0 1.1rem 1.1rem; color: var(--steel-300); font-size: .97rem; line-height: 1.6; }
@media (max-width: 900px) { .faq-list { grid-template-columns: 1fr; } }
