/* Self-hosted brand typefaces (latin subset, variable) — no third-party request on render path */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/archivo-var.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Plex Sans';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/plex-sans-var.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* ==========================================================================
   Booked Local Marketing — 2.5D design system
   Palette sampled directly from the official logo (logo_white_bg.jpg):
     navy  #0C4570 · green #5E9D3A · gray #6D6E6F
   Depth model: single light source, upper-left. Every shadow casts down-right.
   ========================================================================== */

:root {
  /* ---- Brand, sampled from the logo ---- */
  --navy:        #0C4570;
  --navy-deep:   #0C3B5F;
  --navy-mid:    #1A5684;
  --navy-ink:    #072B45;
  --steel:       #284F6B;
  --green:       #5E9D3A;
  --green-deep:  #46782C;   /* 5.3:1 with white — used for solid fills */
  --green-soft:  #8AAE73;
  --mint:        #D7E8E0;
  --sky:         #B0CEC4;
  --gray:        #6D6E6F;
  --gray-700:    #586065;
  --gray-500:    #697074;   /* 5.0:1 on white, 4.7:1 on --paper-2 */
  --gray-300:    #9EA2A1;

  /* ---- Surfaces ---- */
  --paper:       #FFFFFF;
  --paper-2:     #F5F8FA;
  --paper-3:     #EDF2F6;
  --line:        #E2E8ED;
  --line-strong: #CFD8E0;

  /* ---- Depth scale (consistent direction) ---- */
  --d1: 0 1px 2px rgba(7,43,69,.05),  0 2px 6px rgba(7,43,69,.04);
  --d2: 0 2px 4px rgba(7,43,69,.06),  0 6px 14px rgba(7,43,69,.05);
  --d3: 0 3px 6px rgba(7,43,69,.07),  0 12px 26px rgba(7,43,69,.07);
  --d4: 0 6px 12px rgba(7,43,69,.09), 0 22px 44px rgba(7,43,69,.10);
  --d5: 0 10px 20px rgba(7,43,69,.11),0 36px 70px rgba(7,43,69,.13);

  /* ---- Bevels / edge highlights ---- */
  --bevel:      inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(7,43,69,.06);
  --bevel-dark: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -1px 0 rgba(0,0,0,.24);

  /* ---- Motion: 150–300ms only ---- */
  --t-fast: 160ms;
  --t:      220ms;
  --t-slow: 300ms;
  --ease:   cubic-bezier(.22,.61,.36,1);

  /* ---- Geometry ---- */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --shell: 1240px;
  --gutter: clamp(1.15rem, 4vw, 3rem);

  /* ---- Type ---- */
  --display: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --body:    'Plex Sans', 'Segoe UI', system-ui, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .18vw, 1.075rem);
  line-height: 1.65;
  color: var(--gray-700);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }
video { height: auto; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--navy-ink);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 1.35rem + 3.4vw, 4.05rem); font-weight: 800; letter-spacing: -.032em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.7rem); letter-spacing: -.026em; }
h3 { font-size: clamp(1.06rem, .99rem + .32vw, 1.28rem); letter-spacing: -.015em; line-height: 1.25; }
p  { text-wrap: pretty; }

/* Layered typography: navy headline lifted off white with a light emboss */
.lift {
  text-shadow: 0 1px 0 rgba(255,255,255,.9), 0 2px 4px rgba(7,43,69,.09);
}
/* Green swash painted behind the glyphs of a single emphasised word.
   Uses a background (always behind text) rather than a pseudo-element,
   so it never needs a negative z-index or a stacking-context hack. */
.mark {
  white-space: nowrap;
  background-image: linear-gradient(180deg, rgba(94,157,58,.26), rgba(94,157,58,.60));
  background-repeat: no-repeat;
  background-size: 100% .16em;
  background-position: 0 90%;
}

.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem .6rem;
  font-family: var(--display);
  font-size: .715rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--navy);
}
.eyebrow .sep { color: var(--green); font-size: .8em; }
.eyebrow--light { color: var(--sky); }
.eyebrow--light .sep { color: var(--green-soft); }

.lede {
  font-size: clamp(1.03rem, .99rem + .3vw, 1.19rem);
  line-height: 1.62;
  color: var(--gray-700);
  max-width: 54ch;
}
.lede--light { color: rgba(224,235,242,.82); }

/* ---------- Shell & sections ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section { position: relative; }
.band      { padding-block: clamp(3.6rem, 2rem + 6vw, 7rem); }
.band--sm  { padding-block: clamp(2.4rem, 1.6rem + 3vw, 4rem); }
.band--tint { background: var(--paper-2); border-block: 1px solid var(--line); }

/* Navy panel with restrained green illumination + hairline grid */
.band--navy {
  background:
    radial-gradient(120% 90% at 108% 108%, rgba(94,157,58,.20) 0%, rgba(94,157,58,0) 58%),
    radial-gradient(90% 70% at -10% -20%, rgba(120,165,199,.16) 0%, rgba(120,165,199,0) 60%),
    linear-gradient(168deg, #10527D 0%, var(--navy) 38%, #08304E 100%);
  color: rgba(224,235,242,.82);
  overflow: hidden;
  isolation: isolate;
}
.band--navy::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 78px 78px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 15%, transparent 78%);
          mask-image: radial-gradient(120% 80% at 50% 0%, #000 15%, transparent 78%);
  pointer-events: none;
  z-index: -1;
}
.band--navy h2, .band--navy h3 { color: #fff; }
.band--navy .lift { text-shadow: 0 1px 0 rgba(0,0,0,.22), 0 2px 12px rgba(0,0,0,.18); }
/* Green top edge that reads as an illuminated seam */
.seam-top { box-shadow: inset 0 3px 0 rgba(94,157,58,.85); }

/* Section head with a decorative layered numeral */
.sec-head { position: relative; margin-bottom: clamp(1.9rem, 1.2rem + 2vw, 3.1rem); }
.sec-head > * { position: relative; z-index: 1; }
.sec-head h2 { margin-top: .55rem; max-width: 24ch; }
.sec-head .lede { margin-top: .95rem; }
.ghost-num {
  position: absolute;
  top: -.42em; right: 0;
  z-index: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4.6rem, 3rem + 8vw, 10rem);
  line-height: 1;
  letter-spacing: -.05em;
  color: rgba(12,69,112,.055);
  user-select: none;
  pointer-events: none;
}
.band--navy .ghost-num { color: rgba(255,255,255,.055); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .78rem 1.5rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--display);
  font-size: .895rem;
  font-weight: 700;
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: var(--d3), inset 0 1px 0 rgba(255,255,255,.18), inset 0 -2px 0 rgba(0,0,0,.16);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--d4), inset 0 1px 0 rgba(255,255,255,.22), inset 0 -2px 0 rgba(0,0,0,.18);
}
.btn:active { transform: translateY(0); box-shadow: var(--d1), inset 0 2px 5px rgba(0,0,0,.22); }
.btn--green { --btn-bg: var(--green-deep); }
.btn--green:hover { background: #3B6725; }
.btn--ghost {
  --btn-bg: var(--paper);
  --btn-fg: var(--navy);
  border: 1px solid var(--line-strong);
  box-shadow: var(--d2), var(--bevel);
}
.btn--ghost:hover { box-shadow: var(--d3), var(--bevel); border-color: var(--navy-mid); }
.btn--on-navy {
  --btn-bg: rgba(255,255,255,.07);
  --btn-fg: #fff;
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: none;
}
.btn--on-navy:hover { background: rgba(255,255,255,.13); box-shadow: none; }
.btn .arrow { transition: transform var(--t) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Focus & skip link ---------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}
.band--navy :where(a, button):focus-visible { outline-color: var(--green-soft); }
.skip {
  position: absolute;
  left: 50%; top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  padding: .7rem 1.2rem;
  background: var(--navy);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: .85rem;
  border-radius: 0 0 var(--r) var(--r);
  text-decoration: none;
  transition: transform var(--t) var(--ease);
}
.skip:focus { transform: translate(-50%, 0); }

/* Anchor offset so headings clear the sticky bar */
:target { scroll-margin-top: 96px; }
section[id], div[id] { scroll-margin-top: 88px; }

/* ==========================================================================
   NAVIGATION — sticky, raised on scroll
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
          backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t) var(--ease), background-color var(--t) var(--ease);
}
.nav.is-stuck {
  background: rgba(255,255,255,.94);
  box-shadow: 0 1px 0 var(--line), 0 8px 26px rgba(7,43,69,.09);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 72px;
}
.brand { flex: 0 0 auto; display: flex; align-items: center; text-decoration: none; }
.brand img {
  height: 34px;
  width: auto;
  transition: transform var(--t) var(--ease);
}
.brand:hover img { transform: translateY(-1px); }

.nav-menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .15rem;
}
.nav-menu a {
  position: relative;
  padding: .55rem .8rem;
  border-radius: var(--r-sm);
  font-family: var(--display);
  font-size: .855rem;
  font-weight: 600;
  color: var(--gray-700);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.nav-menu a::after {
  content: '';
  position: absolute;
  left: .8rem; right: .8rem; bottom: .3rem;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t) var(--ease);
}
.nav-menu a:hover { color: var(--navy-ink); background: rgba(12,69,112,.045); }
.nav-menu a[aria-current="true"] { color: var(--navy); }
.nav-menu a[aria-current="true"]::after { transform: scaleX(1); }

.nav-cta { flex: 0 0 auto; margin-left: .7rem; }
.nav-cta .btn { min-height: 42px; padding: .5rem 1.15rem; font-size: .845rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  box-shadow: var(--d1), var(--bevel);
  cursor: pointer;
  transition: box-shadow var(--t) var(--ease);
}
.nav-toggle:hover { box-shadow: var(--d2), var(--bevel); }
.nav-toggle .bars { position: relative; width: 19px; height: 2px; background: var(--navy); border-radius: 2px; transition: background-color var(--t-fast) var(--ease); }
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: '';
  position: absolute; left: 0;
  width: 19px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--t) var(--ease), top var(--t) var(--ease);
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after  { top: 0; transform: rotate(-45deg); }

/* ==========================================================================
   HERO — split screen, raised video frame
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.6rem, 1.4rem + 5vw, 5.4rem) clamp(3rem, 1.6rem + 5vw, 5.6rem);
  background: linear-gradient(178deg, #FFFFFF 0%, #FBFDFE 55%, var(--paper-2) 100%);
}
/* Hairline grid drifting in from the right — depth without decoration-for-its-own-sake */
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(62%, 780px);
  background-image:
    linear-gradient(to right, rgba(12,69,112,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12,69,112,.055) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 88%);
          mask-image: linear-gradient(to left, #000 0%, transparent 88%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 4.4rem);
}
.hero-copy > * + * { margin-top: 1.15rem; }
.hero h1 { max-width: 17ch; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.8rem;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.6rem;
  font-size: .875rem;
  color: var(--gray-500);
}
.hero-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: 0 0 auto; box-shadow: 0 0 0 3px rgba(94,157,58,.16); }

/* ---- Raised 2.5D video frame ----
   The plate behind the frame carries the perspective, so the video itself is
   never transformed and stays pixel-sharp. */
.video-stage {
  position: relative;
  width: 100%;
  max-width: 396px;
  margin-inline: auto;
}
.video-plate {
  position: absolute;
  z-index: 0;
  inset: 30px -26px -30px 26px;
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, rgba(12,69,112,.13), rgba(12,69,112,.04));
  border: 1px solid rgba(12,69,112,.13);
  transform: perspective(1500px) rotateY(-7deg) rotateX(1.4deg);
  pointer-events: none;
}
.video-plate--green {
  inset: 54px -46px -54px 46px;
  background: linear-gradient(150deg, rgba(94,157,58,.13), rgba(94,157,58,.03));
  border-color: rgba(94,157,58,.20);
  transform: perspective(1500px) rotateY(-9deg) rotateX(2deg);
}
.video-frame {
  position: relative;
  z-index: 2;
  padding: 13px;
  border-radius: var(--r-xl);
  background: linear-gradient(162deg, #17588180 0%, var(--navy) 34%, #08304E 100%), var(--navy);
  box-shadow: var(--d5), var(--bevel-dark);
  transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease);
}
.video-stage:hover .video-frame { transform: translateY(-3px); box-shadow: var(--d5), 0 46px 90px rgba(7,43,69,.16), var(--bevel-dark); }
/* Illuminated green seam down the left edge of the bezel */
.video-frame::before {
  content: '';
  position: absolute;
  left: 0; top: 30px; bottom: 30px;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(180deg, rgba(94,157,58,0), var(--green) 20%, var(--green) 80%, rgba(94,157,58,0));
}
.video-frame video,
.video-frame .poster-btn {
  width: 100%;
  border-radius: 14px;
  background: #06283F;
}
/* 1080×1350 source — 4:5 is declared so the box never collapses or stretches */
.v-4x5 { aspect-ratio: 4 / 5; object-fit: contain; }

/* ==========================================================================
   CAPABILITY STRIP
   ========================================================================== */
.cap-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem .6rem;
}
.cap-strip .cap-label {
  font-family: var(--display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-right: .35rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .85rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--d1), var(--bevel);
  font-family: var(--display);
  font-size: .8rem;
  font-weight: 600;
  color: var(--navy-ink);
}
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: 0 0 auto; }
.chip:nth-child(3n) i { background: var(--navy-mid); }
.chip:nth-child(4n) i { background: var(--gray-300); }

/* ==========================================================================
   FEATURED VIDEO
   ========================================================================== */
.feature-wrap { display: grid; justify-items: center; text-align: center; }
.feature-wrap h2 { max-width: 22ch; }
.feature-wrap .lede { margin-top: 1rem; margin-inline: auto; }
.feature-stage {
  position: relative;
  width: min(100%, 442px);
  margin-top: clamp(1.8rem, 1rem + 2.4vw, 3rem);
}
/* Flat frame: no transform on the media, so the 1080×1350 source stays sharp */
.frame-flat {
  position: relative;
  z-index: 2;
  padding: 14px;
  border-radius: var(--r-xl);
  background: linear-gradient(162deg, #175881 0%, #0C4570 40%, #072B45 100%);
  box-shadow: 0 18px 34px rgba(3,20,33,.34), 0 48px 90px rgba(3,20,33,.30), var(--bevel-dark);
}
.frame-flat::before {
  content: '';
  position: absolute;
  left: 0; top: 34px; bottom: 34px;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(180deg, rgba(94,157,58,0), var(--green) 18%, var(--green) 82%, rgba(94,157,58,0));
}
.frame-flat::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,.16);
  pointer-events: none;
}
.frame-flat video { width: 100%; border-radius: 14px; background: #06283F; }
.feature-glow {
  position: absolute;
  z-index: 0;
  inset: 46px -40px -46px 40px;
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, rgba(94,157,58,.20), rgba(94,157,58,.04));
  border: 1px solid rgba(94,157,58,.24);
  /* Drift is folded into the same transform so the perspective survives */
  transform: perspective(1500px) rotateY(-8deg) rotateX(1.6deg) translate3d(0, calc(var(--drift, 0) * 1px), 0);
  will-change: transform;
  pointer-events: none;
}
.media-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem .95rem;
  margin-top: 1.25rem;
  font-family: var(--display);
  font-size: .765rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(224,235,242,.78);
}
.media-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.media-meta span + span::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--green-soft); }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--d3), var(--bevel);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--d4), var(--bevel);
  border-color: var(--line-strong);
}
.icon-tile {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: linear-gradient(158deg, #FFFFFF, var(--paper-3));
  border: 1px solid var(--line);
  box-shadow: var(--d1), var(--bevel);
  flex: 0 0 auto;
}
.icon-tile svg { width: 21px; height: 21px; }

/* ---- Lead service: full-width, deepest elevation, green seam ---- */
.svc-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(1.5rem, .8rem + 3vw, 3.4rem);
  padding: clamp(1.4rem, 1rem + 2vw, 2.6rem);
  border-radius: var(--r-xl);
  box-shadow: var(--d5), var(--bevel);
  overflow: hidden;
}
.svc-lead::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--green) 62%, var(--green-soft));
}
.svc-lead:hover { transform: translateY(-5px); }
.svc-lead h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.85rem); letter-spacing: -.024em; }
.svc-lead .lede { font-size: 1.03rem; max-width: 46ch; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(94,157,58,.1);
  border: 1px solid rgba(94,157,58,.26);
  font-family: var(--display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #3E6B27;
}
.svc-lead-head { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.svc-lead-body > * + * { margin-top: 1rem; }
.spec-list { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.15rem; }
.spec-list li {
  list-style: none;
  padding: .34rem .72rem;
  border-radius: var(--r-sm);
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: .8rem;
  font-weight: 500;
  color: var(--gray-700);
}

/* ---- Supporting service cards ---- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, .6rem + 1.4vw, 1.5rem);
  margin-top: clamp(1rem, .6rem + 1.4vw, 1.5rem);
}
.svc-card { padding: clamp(1.2rem, 1rem + 1vw, 1.7rem); display: flex; flex-direction: column; }
.svc-card h3 { margin-top: 1.05rem; }
.svc-card p { margin-top: .6rem; font-size: .95rem; }
.svc-card .svc-shot-slot { margin-top: auto; padding-top: 1.5rem; }

/* ==========================================================================
   SERVICE PHOTOGRAPHY
   Full-size sources live in /assets/img/services/. The Netlify Image CDN does
   the cropping and format negotiation per request, so the files on disk stay
   untouched and no build step is involved.
   ========================================================================== */
.svc-shot {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--paper-3);
  border: 1px solid var(--line);
  box-shadow: var(--d2), var(--bevel);
}
.svc-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
/* The lead card carries a taller crop and a deeper lift to match its elevation */
.svc-shot--lead { box-shadow: var(--d3), var(--bevel); }
.svc-shot--lead img { aspect-ratio: 4 / 3; }

/* ==========================================================================
   PROCESS — three connected stages
   ========================================================================== */
.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, .6rem + 2vw, 2.4rem);
}
/* The connector sits behind the numerals and stops short of the outer edges */
.process::before {
  content: '';
  position: absolute;
  top: 29px;
  left: calc(16.66% + 28px);
  right: calc(16.66% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--line-strong), var(--green-soft) 50%, var(--line-strong));
  z-index: 0;
}
.stage { position: relative; z-index: 1; list-style: none; }
.stage .num {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 17px;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(158deg, var(--navy-mid), var(--navy) 55%, var(--navy-deep));
  box-shadow: var(--d3), var(--bevel-dark);
}
.stage:last-child .num { background: linear-gradient(158deg, #4C8230, var(--green-deep) 55%, #35591F); }
.stage h3 { margin-top: 1.15rem; }
.stage p { margin-top: .55rem; font-size: .95rem; }

/* ==========================================================================
   WORK
   ========================================================================== */
.work-layout {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: clamp(1.4rem, .8rem + 2.6vw, 3.2rem);
  align-items: start;
}
/* Portfolio grid — extra items reflow automatically */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(1rem, .6rem + 1.4vw, 1.5rem);
}
.work-card { overflow: hidden; border-radius: var(--r-lg); }
.work-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--navy-ink);
  cursor: pointer;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  overflow: hidden;
}
.work-media img, .work-media video { width: 100%; display: block; }
.work-media .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,43,69,0) 40%, rgba(7,43,69,.45));
  transition: opacity var(--t) var(--ease);
}
.work-media .play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 66px; height: 66px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  box-shadow: var(--d4);
  transition: transform var(--t) var(--ease), background-color var(--t) var(--ease);
}
.work-media .play svg { width: 22px; height: 22px; margin-left: 3px; fill: var(--navy); }
.work-media:hover .play { transform: translate(-50%, -50%) scale(1.06); background: #fff; }
.work-media:hover .veil { opacity: .7; }
.work-caption { padding: 1.05rem 1.2rem 1.25rem; }
.work-caption h3 { font-size: 1.06rem; }
.work-caption p { margin-top: .4rem; font-size: .9rem; }
.work-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .8rem; }
.work-tags span {
  padding: .26rem .6rem;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-family: var(--display);
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-700);
}
.work-aside > * + * { margin-top: 1.1rem; }
.spec-rows { border-top: 1px solid var(--line); margin-top: 1.4rem; }
.spec-rows div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .72rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.spec-rows dt, .spec-rows .k { color: var(--gray-500); }
.spec-rows dd, .spec-rows .v { font-weight: 600; color: var(--navy-ink); font-family: var(--display); }

/* ==========================================================================
   ABOUT & PRODUCTION
   ========================================================================== */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: clamp(1.6rem, .9rem + 3vw, 3.6rem);
  align-items: start;
}
.about-copy > * + * { margin-top: 1.15rem; }
.about-copy p { color: rgba(224,235,242,.82); font-size: 1.03rem; }
.kicker {
  display: inline-block;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 2px solid rgba(94,157,58,.65);
  font-family: var(--display);
  font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
}
.tool-panel {
  padding: clamp(1.2rem, .9rem + 1.4vw, 1.9rem);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 16px 40px rgba(3,20,33,.24), var(--bevel-dark);
}
.tool-panel h3 { font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--sky); font-weight: 700; }
.tool-list { margin-top: 1.1rem; }
.tool-list li {
  list-style: none;
  display: flex;
  gap: .8rem;
  padding: .75rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .93rem;
  color: rgba(224,235,242,.84);
}
.tool-list li:first-child { border-top: 0; padding-top: 0; }
.tool-list b { display: block; font-family: var(--display); font-weight: 700; color: #fff; font-size: .95rem; }
.tool-list .bullet { flex: 0 0 auto; width: 8px; height: 8px; margin-top: .42rem; border-radius: 2px; background: var(--green); box-shadow: 0 0 0 3px rgba(94,157,58,.18); }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(1.6rem, .9rem + 3vw, 3.4rem);
  align-items: start;
}
.contact-aside > * + * { margin-top: 1.15rem; }
.detail-list { margin-top: 1.7rem; }
.detail-list li { list-style: none; display: flex; gap: .85rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.detail-list li:first-child { border-top: 0; }
.detail-list .icon-tile { width: 38px; height: 38px; border-radius: 11px; }
.detail-list .icon-tile svg { width: 17px; height: 17px; }
.detail-list .t, .detail-list .v { display: block; }
.detail-list .t { font-family: var(--display); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-500); }
.detail-list .v { font-size: .96rem; color: var(--navy-ink); font-weight: 500; }
.detail-list a { color: var(--navy); text-decoration: none; border-bottom: 1px solid rgba(12,69,112,.28); transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.detail-list a:hover { color: var(--green-deep); border-color: var(--green); }

.form-card {
  padding: clamp(1.3rem, 1rem + 1.6vw, 2.3rem);
  border-radius: var(--r-xl);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--d5), var(--bevel);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: .38rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--display); font-size: .795rem; font-weight: 600; color: var(--navy-ink); }
.field .req { color: var(--green-deep); }
.field .hint { font-size: .78rem; color: var(--gray-500); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: .72rem .9rem;
  font: inherit;
  font-size: .95rem;
  color: var(--navy-ink);
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  box-shadow: inset 0 1px 2px rgba(7,43,69,.055);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%230C4570' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .95rem center;
  background-size: 12px 8px;
  padding-right: 2.4rem;
}
.field :is(input, select, textarea):hover { border-color: var(--gray-300); }
.field :is(input, select, textarea):focus {
  background: var(--paper);
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(94,157,58,.18), inset 0 1px 2px rgba(7,43,69,.04);
}
.field :is(input, textarea):user-invalid { border-color: #B4432F; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.form-foot .fine { font-size: .82rem; color: var(--gray-500); max-width: 30ch; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Form status — announced, and visually distinct from the button */
.form-status { margin-top: 1.15rem; }
.form-status:empty { margin-top: 0; }
.note {
  display: flex;
  gap: .75rem;
  padding: .95rem 1.1rem;
  border-radius: var(--r);
  font-size: .93rem;
  line-height: 1.5;
}
.note svg { flex: 0 0 auto; width: 19px; height: 19px; margin-top: .12rem; }
.note--ok { background: rgba(94,157,58,.09); border: 1px solid rgba(94,157,58,.34); color: #37651F; }
.note--ok svg { stroke: var(--green-deep); }
.note--err { background: rgba(180,67,47,.07); border: 1px solid rgba(180,67,47,.30); color: #8E3524; }
.note--err svg { stroke: #B4432F; }
.note b { font-family: var(--display); }
.note a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: linear-gradient(180deg, #093351, var(--navy-ink));
  color: rgba(206,222,233,.72);
  padding-block: clamp(2.4rem, 1.6rem + 2.6vw, 3.8rem) 1.6rem;
  box-shadow: inset 0 3px 0 rgba(94,157,58,.7);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 1rem + 3vw, 3.4rem);
  align-items: start;
}
/* The official logo keeps its exact colours by sitting on a white card,
   rather than being recoloured for the dark background. */
.logo-chip {
  display: inline-flex;
  padding: .8rem 1.1rem;
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--d3), var(--bevel);
}
.logo-chip img { height: 30px; width: auto; }
.footer-line {
  margin-top: 1.3rem;
  font-family: var(--display);
  font-size: clamp(1.05rem, .95rem + .5vw, 1.32rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
}
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
.footer-nav h3 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); font-weight: 700; }
.footer-nav ul { margin-top: .85rem; }
.footer-nav li { list-style: none; }
.footer-nav li + li { margin-top: .5rem; }
.footer-nav a, .footer-social a {
  color: rgba(206,222,233,.82);
  text-decoration: none;
  font-size: .92rem;
  transition: color var(--t-fast) var(--ease);
}
.footer-nav a:hover, .footer-social a:hover { color: #fff; }
.footer-social { display: flex; flex-direction: column; gap: .6rem; margin-top: .85rem; }
.footer-social a { display: inline-flex; align-items: center; gap: .6rem; }
.footer-social svg { width: 17px; height: 17px; flex: 0 0 auto; fill: var(--sky); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .7rem 1.5rem;
  margin-top: clamp(2rem, 1.4rem + 2vw, 3rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.11);
  font-size: .84rem;
}

/* ==========================================================================
   SCROLL REVEAL — only active when JS is present, so no-JS shows everything
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 15px, 0);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 70ms; }
.js .reveal[data-delay="2"] { transition-delay: 140ms; }
.js .reveal[data-delay="3"] { transition-delay: 210ms; }

/* Gentle parallax drift, driven by one shared rAF loop */
.drift { will-change: transform; transform: translate3d(0, calc(var(--drift, 0) * 1px), 0); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .svc-lead { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
  .contact-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
}

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(2.2rem, 1rem + 4vw, 3rem); }
  .hero h1 { max-width: 22ch; }
  .hero::before { width: 100%; -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 72%); mask-image: linear-gradient(to top, #000 0%, transparent 72%); }
  .svc-lead { grid-template-columns: minmax(0, 1fr); }
  .svc-shot--lead { max-width: 460px; margin-inline: auto; }
  .work-layout,
  .about-layout,
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  /* Stacked, the portfolio grid caps its tracks so a single piece sits
     centred at a sane size instead of stretching across the whole band. */
  .work-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 360px)); justify-content: center; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .sec-head h2 { max-width: 30ch; }
}

@media (max-width: 900px) {
  .nav-inner { min-height: 64px; gap: .7rem; }
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    padding: .85rem var(--gutter) 1.25rem;
    background: rgba(255,255,255,.98);
    -webkit-backdrop-filter: blur(14px);
            backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 38px rgba(7,43,69,.14);
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: .8rem .85rem; font-size: .96rem; border-radius: var(--r); min-height: 46px; display: flex; align-items: center; }
  .nav-menu a::after { display: none; }
  .nav-menu a[aria-current="true"] { background: rgba(12,69,112,.06); }
  .nav-cta { margin-left: auto; }
  .process { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .process::before { display: none; }
  .stage { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 0 1.15rem; }
  .stage .num { grid-row: 1 / span 3; }
  .stage h3 { margin-top: .1rem; }
}

@media (max-width: 860px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid > :last-child { grid-column: 1 / -1; }
  .svc-grid > :last-child { flex-direction: row; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
  .svc-grid > :last-child .svc-text { flex: 1 1 300px; }
  .svc-grid > :last-child .svc-shot-slot { margin: 0; padding: 0; flex: 1 1 240px; }
  .footer-nav { gap: 1.2rem 1.6rem; }
}

@media (max-width: 620px) {
  :root { --r-xl: 20px; --r-lg: 15px; }
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .svc-grid > :last-child { flex-direction: column; align-items: flex-start; }
  .svc-grid > :last-child .svc-shot-slot { padding-top: 1.3rem; align-self: stretch; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { width: 100%; }
  .form-foot .btn { width: 100%; }
  .form-foot .fine { max-width: none; }
  .ghost-num { font-size: clamp(3.6rem, 2.4rem + 8vw, 6rem); opacity: .8; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 560px) {
  .brand img { height: 29px; }
  .nav-cta { display: none; }
  .nav-menu .nav-cta-mobile { display: block; margin-top: .6rem; }
  .nav-menu .nav-cta-mobile .btn { width: 100%; }
  .media-meta { font-size: .71rem; }
}
@media (min-width: 561px) {
  .nav-menu .nav-cta-mobile { display: none; }
}

/* Very narrow — keep the split video frame from crowding the edges */
@media (max-width: 400px) {
  .video-plate, .video-plate--green, .feature-glow { display: none; }
  .video-stage, .feature-stage { max-width: 100%; }
}

/* ==========================================================================
   REDUCED MOTION — remove movement, keep the static depth
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .drift { transform: none !important; }
  .card:hover,
  .svc-lead:hover,
  .btn:hover,
  .btn:active,
  .brand:hover img,
  .video-stage:hover .video-frame,
  .work-media:hover .play { transform: none !important; }
}

@media print {
  .nav, .nav-toggle, .hero::before, .video-plate, .feature-glow { display: none !important; }
  body { color: #000; background: #fff; }
  .band--navy, .footer { background: #fff !important; color: #000 !important; }
  .band--navy h2, .band--navy h3, .kicker { color: #000 !important; }
}
