/* =========================================================================
   Photonomous Photography: styles (Top-Down Aerial is its drone line; TD-012)
   Mobile first. Tokens first. Light + dark. No frameworks.
   ========================================================================= */

/* ---------- Fonts (Google Fonts, self-hosted, latin subset, OFL) ---------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin.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: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin.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;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand: K3P, the full mark (E-037, 11/24; TD-014); the small mark and the square icons are plain K3. Site colors come from this palette plus white; the rgba tints below
     are the palette's black and white at low opacity, for borders, alternate backgrounds and overlays. */
  --brand-black: #0D0D0D;
  --brand-red: #D00000;     /* links, accents and buttons: 5.7:1 on white; on black only for large text and graphics */
  --brand-gray: #5A5A5A;    /* secondary text: 6.9:1 on white; never as text on black */
  --brand-contour: #5A5A5A;

  /* Light theme (default) */
  --bg: #FFFFFF;
  --bg-alt: rgba(13, 13, 13, .04);
  --surface: #FFFFFF;
  --surface-2: rgba(13, 13, 13, .03);
  --border: rgba(13, 13, 13, .14);
  --border-strong: rgba(13, 13, 13, .26);
  --field-border: #5A5A5A;
  --text: #0D0D0D;
  --text-muted: #5A5A5A;
  --heading: #0D0D0D;
  --link: #D00000;
  --link-hover: #0D0D0D;
  --accent: #D00000;
  --accent-ink: #FFFFFF;
  --accent-hover: #0D0D0D;
  --eyebrow: #D00000;
  --solid: #0D0D0D;
  --focus: #D00000;
  --icon: #D00000;
  --contour-opacity: .3;
  --tile: rgba(13, 13, 13, .05);
  --tile-ink: #5A5A5A;
  --shadow-sm: 0 1px 2px rgba(13, 13, 13, .06), 0 1px 3px rgba(13, 13, 13, .05);
  --shadow-md: 0 6px 18px -6px rgba(13, 13, 13, .16), 0 2px 6px rgba(13, 13, 13, .05);
  --shadow-lg: 0 24px 48px -16px rgba(13, 13, 13, .24);
  --header-bg: rgba(255, 255, 255, .9);

  /* Always-dark surfaces (hero, footer, page headers) */
  --deep: #0D0D0D;
  --deep-2: #0D0D0D;
  --on-deep: #FFFFFF;
  --on-deep-muted: rgba(255, 255, 255, .8);

  /* Type */
  --font-head: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.15rem, 1.05rem + .45vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.2rem + .9vw, 1.85rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.6rem + 2.8vw, 3.75rem);

  /* Space + shape */
  --gutter: 16px;
  --container: 1200px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --section-y: clamp(56px, 8vw, 112px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 68px;

  color-scheme: light;
}

/* Dark theme: system preference unless the visitor picked light. Text is white; the red stays on buttons,
   icons and large type only (3.4:1 on black), and links are white and underlined. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D0D0D;
    --bg-alt: rgba(255, 255, 255, .04);
    --surface: #0D0D0D;
    --surface-2: rgba(255, 255, 255, .05);
    --border: rgba(255, 255, 255, .16);
    --border-strong: rgba(255, 255, 255, .3);
    --field-border: rgba(255, 255, 255, .6);
    --text: #FFFFFF;
    --text-muted: rgba(255, 255, 255, .78);
    --heading: #FFFFFF;
    --link: #FFFFFF;
    --link-hover: rgba(255, 255, 255, .78);
    --accent: #D00000;
    --accent-ink: #FFFFFF;
    --accent-hover: #D00000;
    --eyebrow: #FFFFFF;
    --solid: #D00000;
    --focus: #FFFFFF;
    --icon: #D00000;
    --contour-opacity: .35;
    --tile: rgba(255, 255, 255, .06);
    --tile-ink: #FFFFFF;
    --shadow-sm: 0 1px 2px rgba(13, 13, 13, .3);
    --shadow-md: 0 8px 22px -8px rgba(13, 13, 13, .55);
    --shadow-lg: 0 24px 48px -16px rgba(13, 13, 13, .6);
    --header-bg: rgba(13, 13, 13, .9);
    --deep: #0D0D0D;
    --deep-2: #0D0D0D;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D0D0D;
  --bg-alt: rgba(255, 255, 255, .04);
  --surface: #0D0D0D;
  --surface-2: rgba(255, 255, 255, .05);
  --border: rgba(255, 255, 255, .16);
  --border-strong: rgba(255, 255, 255, .3);
  --field-border: rgba(255, 255, 255, .6);
  --text: #FFFFFF;
  --text-muted: rgba(255, 255, 255, .78);
  --heading: #FFFFFF;
  --link: #FFFFFF;
  --link-hover: rgba(255, 255, 255, .78);
  --accent: #D00000;
  --accent-ink: #FFFFFF;
  --accent-hover: #D00000;
  --eyebrow: #FFFFFF;
  --solid: #D00000;
  --focus: #FFFFFF;
  --icon: #D00000;
  --contour-opacity: .35;
  --tile: rgba(255, 255, 255, .06);
  --tile-ink: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(13, 13, 13, .3);
  --shadow-md: 0 8px 22px -8px rgba(13, 13, 13, .55);
  --shadow-lg: 0 24px 48px -16px rgba(13, 13, 13, .6);
  --header-bg: rgba(13, 13, 13, .9);
  --deep: #0D0D0D;
  --deep-2: #0D0D0D;
  color-scheme: dark;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --header-h: 76px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.nav-locked { overflow: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; display: block; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; transition: color .2s var(--ease); }
a:hover { color: var(--link-hover); }
strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
/* Always-dark sections: a light ring that reads on navy in both themes */
.hero, .page-hero, .cta-band, .quote-card, .site-footer, .video-slot { --focus: #FFFFFF; }
::selection { background: var(--brand-red); color: #fff; }
[hidden] { display: none !important; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--brand-black); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section--contour { isolation: isolate; overflow: hidden; }
.section--contour::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("/assets/img/contours.svg") center / cover no-repeat;
  opacity: calc(var(--contour-opacity) * .7);
}
/* TD-007 L1 (U-070, 11/27): red text over the contour texture. Where a contour line crossed an eyebrow or a link it
   fell to 3.9:1. A halo in the section's own ground color knocks the lines out around the letters, as on a printed
   map, so the text keeps its 5.7:1; on plain ground the halo can't be seen. */
.section--contour { --halo: var(--bg); }
.section--alt.section--contour { --halo: color-mix(in srgb, var(--bg), var(--text) 4%); }   /* = --bg-alt over --bg */
.section--contour :is(.eyebrow, a:not(.btn)) { text-shadow: 0 0 2px var(--halo), 0 0 4px var(--halo), 0 0 6px var(--halo); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p:not(.eyebrow) { color: var(--text-muted); font-size: var(--step-1); line-height: 1.55; margin-bottom: 0; }
.lede { font-size: var(--step-1); color: var(--text-muted); line-height: 1.55; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--eyebrow);
  margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--brand-red); }
.section-head--center .eyebrow { justify-content: center; }

.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.split { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-left { grid-template-columns: 1.2fr .8fr; } }

.stack > * + * { margin-top: 1rem; }
.more-link { margin: clamp(24px, 3vw, 36px) 0 0; }
.center { text-align: center; }
.muted { color: var(--text-muted); }
.small { font-size: var(--step--1); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent); --btn-ink: var(--accent-ink); --btn-border: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; letter-spacing: .01em; line-height: 1.2;
  text-align: center; text-decoration: none; text-wrap: balance;
  color: var(--btn-ink); background: var(--btn-bg);
  border: 1.5px solid var(--btn-border); border-radius: 999px;
  cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { --btn-bg: var(--accent-hover); color: var(--btn-ink); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.btn:hover .icon--move { transform: translateX(3px); }
.btn--ghost { --btn-bg: transparent; --btn-ink: var(--heading); --btn-border: var(--border-strong); }
.btn--ghost:hover { --btn-bg: var(--surface-2); --btn-ink: var(--heading); box-shadow: none; }
.btn--light { --btn-bg: #FFFFFF; --btn-ink: #0D0D0D; }
.btn--light:hover { --btn-bg: #FFFFFF; --btn-ink: #D00000; }
.btn--outline-light { --btn-bg: transparent; --btn-ink: #FFFFFF; --btn-border: rgba(255, 255, 255, .55); }
.btn--outline-light:hover { --btn-bg: rgba(255, 255, 255, .1); --btn-ink: #FFFFFF; --btn-border: #FFFFFF; box-shadow: none; }
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: .875rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--link);
}
.text-link .icon { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--heading); margin-right: auto; }
.brand:hover { color: var(--heading); }
.wordmark { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.wordmark__top { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; letter-spacing: .02em; color: var(--heading); }
.wordmark__sub { font-family: var(--font-head); font-weight: 500; font-size: .62rem; letter-spacing: .2em; margin-top: 5px; margin-right: -.2em; color: var(--text-muted); }

.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; text-decoration: none; color: var(--text); font-family: var(--font-head);
  font-weight: 600; font-size: .92rem; letter-spacing: .01em;
}
.site-nav a:hover { color: var(--link); }
.site-nav a[aria-current="page"] { color: var(--link); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--border); border-radius: 50%; background: transparent; color: var(--heading);
  cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.icon-btn .icon { width: 20px; height: 20px; }
.theme-toggle .icon--sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon--sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon--sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon--moon { display: none; }
}
html:not(.js) .theme-toggle { display: none; }
.header-cta { display: none; }
.nav-toggle .icon--close { display: none; }
.nav-open .nav-toggle .icon--close { display: block; }
.nav-open .nav-toggle .icon--menu { display: none; }

/* Mobile drawer */
@media (max-width: 1179.98px) {
  .nav-open .site-nav {
    display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    background: var(--bg); overflow-y: auto; padding: 12px var(--gutter) 32px;
    border-top: 1px solid var(--border);
  }
  .nav-open .site-nav a { padding: 16px 4px; font-size: 1.15rem; border-bottom: 1px solid var(--border); }
  .site-nav .nav-cta { margin-top: 24px; }
  .site-nav .nav-cta .btn { width: 100%; }
  html:not(.js) .site-nav { display: block; position: static; width: 100%; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; }
  html:not(.js) .site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-bottom: 12px; }
  html:not(.js) .nav-toggle { display: none; }
}
@media (min-width: 1180px) {
  .site-nav { display: block; }
  .site-nav ul { display: flex; align-items: center; gap: clamp(12px, 1.25vw, 22px); }
  .site-nav a { white-space: nowrap; }
  .site-nav .nav-cta { display: none; }
  .site-nav a { position: relative; padding: 8px 0; }
  .site-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px;
    background: var(--brand-red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
  }
  .site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .nav-toggle { display: none; }
  .header-actions { margin-left: clamp(8px, 1.5vw, 20px); }
}
@media (min-width: 1440px) { .header-cta { display: inline-flex; } }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--deep);
  color: var(--on-deep);
  min-height: min(92vh, 860px);
  display: flex; align-items: center;
  padding-block: clamp(48px, 9vw, 120px);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media::before {
  content: ""; position: absolute; inset: 0;
  background: url("/assets/img/contours.svg") center / cover no-repeat; opacity: .22;
}
.hero__still, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__video.is-playing { opacity: 1; }
.hero--has-media .hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13, 13, 13, .92) 0%, rgba(13, 13, 13, .72) 45%, rgba(13, 13, 13, .35) 100%);
}
.hero--has-media .hero__media::before { display: none; }
.hero__inner { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; width: 100%; }
@media (min-width: 960px) { .hero__inner { grid-template-columns: 1.25fr .75fr; } }
.hero h1 { color: #FFFFFF; margin-bottom: 18px; max-width: 14ch; }
.hero .eyebrow { color: #FFFFFF; }
.hero__offer { font-size: var(--step-1); color: var(--on-deep-muted); max-width: 40ch; margin-bottom: 28px; line-height: 1.55; }
.hero__offer strong { color: #FFFFFF; font-weight: 600; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--on-deep-muted); font-size: .95rem; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts .icon { color: var(--brand-red); width: 18px; height: 18px; }
.hero__mark { justify-self: center; width: min(78vw, 400px); }
.hero__plate {
  position: relative; aspect-ratio: 1; border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 30px 80px -20px rgba(13, 13, 13, .55), 0 0 0 10px rgba(255, 255, 255, .06), 0 0 0 22px rgba(255, 255, 255, .03);
  display: grid; place-items: center;
}
.hero__plate img { width: 69%; height: auto; }
@media (max-width: 959.98px) { .hero__mark { order: -1; width: min(54vw, 240px); } }
.hero__pause {
  position: absolute; right: var(--gutter); bottom: 20px; z-index: 2;
  border-color: rgba(255, 255, 255, .4); color: #fff; background: rgba(13, 13, 13, .4);
}
.hero__pause:hover { background: rgba(13, 13, 13, .7); border-color: #fff; }
.hero__pause[aria-pressed="true"] .icon--pause { display: none; }
.hero__pause[aria-pressed="false"] .icon--play, .hero__pause:not([aria-pressed]) .icon--play { display: none; }

/* Badges (only rendered when a flag is true) */
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.badges--spaced { margin-top: 24px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px;
  border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .02em;
  background: var(--surface-2); color: var(--heading); border: 1px solid var(--border);
}
.badge .icon { width: 18px; height: 18px; color: var(--brand-red); }
.on-deep .badge, .hero .badge, .page-hero .badge, .site-footer .badge { background: rgba(255, 255, 255, .08); color: #FFFFFF; border-color: rgba(255, 255, 255, .2); }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(160deg, var(--deep-2) 0%, var(--deep) 100%);
  color: var(--on-deep);
  padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 80px);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("/assets/img/contours.svg") 70% 40% / cover no-repeat; opacity: .2;
}
.page-hero h1 { color: #FFFFFF; font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem); max-width: 20ch; }
.page-hero .eyebrow { color: #FFFFFF; }
.page-hero p { color: var(--on-deep-muted); font-size: var(--step-1); max-width: 60ch; line-height: 1.55; margin-bottom: 0; }
.page-hero .btn-row { margin-top: 28px; }
.on-deep { color: var(--on-deep); }
.on-deep h2, .on-deep h3 { color: #FFFFFF; }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 30px);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); }
.card > :last-child { margin-bottom: 0; }
.card__icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px;
  border-radius: 12px; background: var(--tile); color: var(--accent);
}
:root[data-theme="dark"] .card__icon { color: var(--icon); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card__icon { color: var(--icon); } }
.card__icon .icon { width: 24px; height: 24px; }
.card__meta {
  display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px;
  font-size: .9rem; color: var(--text-muted); border-top: 1px solid var(--border);
}
.card__meta .icon { width: 18px; height: 18px; color: var(--brand-red); }
.card__link { margin-top: 14px; }
.card--link .card__stretch { color: var(--heading); text-decoration: none; }
.card--link:hover .card__stretch { color: var(--link); }
.card--link .card__stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card--link:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.card--link .card__stretch:focus-visible { outline: none; }

.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--tile) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A71BC' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Fleet strip (home) and fleet cards ---------- */
.fleet-strip { display: grid; gap: 16px; }
@media (min-width: 760px) { .fleet-strip { grid-template-columns: repeat(3, 1fr); } }
.fleet-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.fleet-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.fleet-card__media {
  position: relative; aspect-ratio: 16 / 10; background: var(--tile); display: grid; place-items: center; overflow: hidden;
}
.fleet-card__media img { width: 100%; height: 100%; object-fit: cover; }
.fleet-card__media img.is-placeholder { width: 46%; height: auto; object-fit: contain; opacity: .9; }
.fleet-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.fleet-card__role {
  font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--eyebrow); margin-bottom: 6px;
}
.fleet-card h3 { margin-bottom: 6px; }
.fleet-card p { color: var(--text-muted); margin-bottom: 0; }
.tag {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .72rem; letter-spacing: .04em;
  background: var(--tile); color: var(--tile-ink);
}
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

/* Spec list */
.specs { display: grid; grid-template-columns: 1fr; margin: 0; border-top: 1px solid var(--border); }
.specs > div { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.specs dt { font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--text-muted); }
.specs dd { margin: 0; font-size: .95rem; color: var(--text); }

/* ---------- Media placeholders (sample work) ---------- */
.ph-tile {
  position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; text-align: center;
  aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--tile); color: var(--tile-ink);
  border: 1px dashed var(--border-strong);
}
.ph-tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("/assets/img/contours.svg") center / 320% no-repeat; opacity: calc(var(--contour-opacity) * .8);
}
.ph-tile__inner { display: grid; justify-items: center; gap: 8px; padding: 16px; }
.ph-tile .icon { width: 28px; height: 28px; color: var(--accent); }
:root[data-theme="dark"] .ph-tile .icon { color: var(--icon); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ph-tile .icon { color: var(--icon); } }
.ph-tile__cat { font-family: var(--font-head); font-weight: 700; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--heading); }
.ph-tile__label { font-size: .9rem; }

.work-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .work-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } .work-grid > :first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; } }

/* ---------- Feature list (why us) ---------- */
.feature { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.feature__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--solid); color: #fff; }
.feature__icon .icon { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 4px; font-size: 1.1rem; }
.feature p { color: var(--text-muted); margin: 0; }

/* Stat row */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
/* TD-017 (E-040): Home has three stats since the camcorders stat came out. The third spans the row on phones; three across from 900px */
.stats--3 > .stat:last-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .stats--3 { grid-template-columns: repeat(3, 1fr); } .stats--3 > .stat:last-child { grid-column: auto; } }
.stat { background: var(--surface); padding: 22px 20px; }
.stat__value { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); color: var(--heading); line-height: 1.05; letter-spacing: -.02em; }
.stat__value span { color: var(--accent); }
.stat__label { margin-top: 6px; font-size: .9rem; color: var(--text-muted); line-height: 1.4; }

/* ---------- Service area ---------- */
.area-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.area-list li { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .92rem; }
.area-list li.is-home { background: var(--solid); color: #fff; border-color: var(--solid); font-weight: 600; }
.area-map {
  position: relative; aspect-ratio: 1; max-width: 460px; margin-inline: auto; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border); overflow: hidden; isolation: isolate;
}
.area-map svg { width: 100%; height: 100%; }

.area-map .map-ring { fill: none; stroke: var(--border-strong); stroke-width: 1.5; stroke-dasharray: 3 6; }
.area-map .map-ring--outer { fill: var(--bg-alt); stroke-dasharray: none; stroke: var(--border); }
.area-map .map-ring-label { fill: var(--text-muted); font: 600 11px var(--font-head); letter-spacing: .08em; }
.area-map .map-towns circle { fill: var(--accent); }
.area-map .map-towns text { fill: var(--text); font: 500 12.5px var(--font-body); }
.area-map .map-home circle { fill: var(--brand-red); }
.area-map .map-home .map-home__halo { fill: var(--brand-red); opacity: .22; }
.area-map .map-home text { fill: var(--heading); font: 800 15px var(--font-head); }

/* Numbered steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; color: var(--text-muted); }
.steps li strong { display: block; color: var(--heading); font-family: var(--font-head); font-weight: 700; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--solid); color: #fff;
  font: 700 .9rem var(--font-head);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--deep); border: 1px solid rgba(255, 255, 255, .16); color: var(--on-deep);
  padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px);
  display: grid; gap: 24px; align-items: center;
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/assets/img/contours.svg") 80% 50% / 160% no-repeat; opacity: .22; }
.cta-band h2 { color: #FFFFFF; margin-bottom: 8px; }
.cta-band p { color: var(--on-deep-muted); margin: 0; font-size: var(--step-1); }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; } }

/* ---------- Pricing ---------- */
.price-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 34px); }
.price-card--featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.price-card__flag { position: absolute; top: -13px; left: 24px; padding: 4px 12px; border-radius: 999px; background: var(--solid); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.price-card__flag::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--brand-red); vertical-align: middle; }
.price { font-family: var(--font-head); color: var(--heading); margin: 6px 0 4px; }
.price__from { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.price__amount { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
.price-card .check-list { margin: 18px 0 24px; }
.price-card .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 4px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--tile) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A71BC' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--link); }
.faq__body { padding: 0 4px 22px; color: var(--text-muted); max-width: 70ch; }
.faq__body > :last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--heading); }
.field .req { color: var(--text-muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--field-border); border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(208, 0, 0, .25); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 40%, transparent); }
.field [aria-invalid="true"] { border-color: #D00000; }
:root[data-theme="dark"] .field [aria-invalid="true"] { border-color: #D00000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field [aria-invalid="true"] { border-color: #D00000; } }
.field__hint { font-size: .85rem; color: var(--text-muted); }
.field__error { font-size: .85rem; color: #D00000; font-weight: 600; }
:root[data-theme="dark"] .field__error { color: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field__error { color: #FFFFFF; } }
.form-note { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg-alt); border-left: 3px solid var(--brand-red); color: var(--text); font-size: .95rem; }
.hp-field { position: absolute !important; left: -9999px !important; }

.contact-card { display: grid; gap: 18px; }
.contact-line { display: flex; gap: 12px; align-items: flex-start; }
.contact-line .icon { width: 22px; height: 22px; color: var(--accent); margin-top: 3px; }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-btn {
  min-height: 44px; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  background: var(--surface); color: var(--text); border: 1.5px solid var(--border-strong);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.filter-btn:hover { border-color: var(--accent); }
.filter-btn[aria-pressed="true"] { background: var(--solid); color: #fff; border-color: var(--solid); }
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.gallery__item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--tile); }
.gallery__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; aspect-ratio: 4 / 3; }
.gallery__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__btn:hover img { transform: scale(1.03); }
.gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; color: #fff; font-size: .88rem; background: linear-gradient(transparent, rgba(13, 13, 13, .78)); pointer-events: none; }
.video-slot { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--deep); }
.video-slot iframe, .video-slot video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; border: 0; cursor: pointer; color: #fff; background: linear-gradient(160deg, var(--brand-black), var(--deep)); }
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.video-facade__play { position: relative; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--brand-black); box-shadow: var(--shadow-lg); transition: transform .2s var(--ease); }
.video-facade:hover .video-facade__play { transform: scale(1.06); }
.video-facade__play .icon { width: 30px; height: 30px; margin-left: 4px; }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; color: #fff; }
.lightbox::backdrop { background: rgba(13, 13, 13, .94); }
.lightbox__inner { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 64px 16px 72px; }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; max-width: 100%; max-height: 100%; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100vh - 160px); width: auto; height: auto; border-radius: 6px; }
.lightbox figcaption { color: #FFFFFF; font-size: .95rem; text-align: center; }
.lightbox__close, .lightbox__nav { position: absolute; border-color: rgba(255, 255, 255, .35); color: #fff; background: rgba(255, 255, 255, .08); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .2); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__nav--prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 639.98px) {
  .lightbox__nav--prev, .lightbox__nav--next { top: auto; bottom: 14px; transform: none; }
  .lightbox__nav--prev { left: calc(50% - 96px); }
  .lightbox__nav--next { right: calc(50% - 96px); }
}

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--step-2); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose li { margin-bottom: .4em; }
.prose p, .prose li { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--deep); color: var(--on-deep-muted); padding-block: clamp(48px, 6vw, 80px) 28px; margin-top: auto;
  font-size: .95rem;
}
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/assets/img/contours.svg") 10% 80% / 140% no-repeat; opacity: .1; }
.site-footer a { color: #FFFFFF; text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.footer-descriptor { margin: 0 0 10px; font-weight: 600; font-size: .9rem; color: #FFFFFF; }   /* TD-012: the descriptor line (E-034) */
.footer-title { font-family: var(--font-head); font-weight: 700; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-contact { display: grid; gap: 10px; }
.footer-contact p { margin: 0; display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--brand-red); margin-top: 4px; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: grid; gap: 10px; font-size: .85rem; color: var(--on-deep-muted);
}
@media (min-width: 900px) { .footer-bottom { grid-template-columns: 1fr auto; align-items: center; } }
.footer-bottom p { margin: 0; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s !important; }
.reveal-delay-2 { transition-delay: .16s !important; }
.reveal-delay-3 { transition-delay: .24s !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */
.not-found { text-align: center; padding-block: clamp(64px, 12vw, 140px); }
.not-found__mark { width: 180px; margin: 0 auto 28px; }
.not-found .btn-row { justify-content: center; margin-top: 28px; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .hero__media, .btn, .filters { display: none !important; }
  .hero, .page-hero { background: none; color: #0D0D0D; min-height: 0; }
  .hero h1, .page-hero h1 { color: #0D0D0D; }
}

/* ===== Page-specific styles (appended) ===== */

/* ---------- services ---------- */
/* ---------- Services page ---------- */

/* Jump links under the page hero */
.svc-jump { border-bottom: 1px solid var(--border); background: var(--surface); }
.svc-jump__inner { padding-block: 14px; }
.svc-jump ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.svc-jump a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px;
  border-radius: 999px; border: 1.5px solid var(--border-strong); background: var(--surface);
  color: var(--text); text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: .85rem;
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.svc-jump a:hover { border-color: var(--accent); color: var(--link); }
.svc-jump .icon { width: 16px; height: 16px; color: var(--accent); }
:root[data-theme="dark"] .svc-jump .icon { color: var(--icon); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .svc-jump .icon { color: var(--icon); } }

/* Service sections */
.svc { align-items: start; }
.svc__copy h2 { margin-bottom: 12px; }
.svc__copy .lede { margin-bottom: 28px; }
.svc__copy h3 { font-size: 1.05rem; margin: 0 0 14px; }
.svc__copy .check-list { margin-bottom: 28px; }
.svc__copy .specs { margin-bottom: 0; }
.svc__copy .specs dd strong { color: var(--heading); }
.svc__media { display: grid; gap: 16px; }
@media (min-width: 900px) {
  .svc__media { position: sticky; top: calc(var(--header-h) + 24px); }
  .svc--flip > .svc__media { order: -1; }
}

/* Two-option row (construction) */
.svc-options { display: grid; gap: 14px; margin: 0 0 28px; }
@media (min-width: 640px) { .svc-options { grid-template-columns: 1fr 1fr; } }
.svc-option {
  padding: 18px 20px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border);
}
.section--alt .svc-option { background: var(--surface); }
.svc__copy .svc-option h3 { margin: 0 0 6px; font-size: 1rem; }
.svc-option p { margin: 0; color: var(--text-muted); font-size: .95rem; line-height: 1.5; }

/* Short note under the media tile */
.svc-note {
  margin: 0; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--brand-red);
  color: var(--text); font-size: .95rem; line-height: 1.5;
}

/* Every shoot includes */
.includes .card { height: 100%; }
.includes .card h3 { font-size: 1.05rem; }
.includes .card--cta { background: var(--bg-alt); border-style: dashed; border-color: var(--border-strong); }
.includes .card--cta .text-link { margin-top: auto; }

/* The final CTA follows a plain section: drop its top padding so the gap is one section, not two */
.svc-includes + .section { padding-top: 0; }

/* ---------- fleet ---------- */
/* ---------- Fleet page ---------- */

/* Aircraft section: intro text + photo, then a spec card */
.aircraft__top { align-items: start; }
.aircraft__cap {
  font-family: var(--font-head); font-weight: 700; font-size: var(--step-1);
  color: var(--accent); line-height: 1.3; margin: -4px 0 14px;
}
:root[data-theme="dark"] .aircraft__cap { color: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .aircraft__cap { color: #FFFFFF; } }
.aircraft__desc { color: var(--text-muted); font-size: 1.05rem; }
.aircraft__used { font-size: 1rem; margin: 26px 0 12px; }
.aircraft .check-list { margin-bottom: 0; }
@media (min-width: 900px) {
  .aircraft--flip .aircraft__media { order: -1; }
}

/* Photo slot */
.aircraft-media { margin: 0; }
.aircraft-media__frame {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center; aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg); background: var(--tile);
  border: 1px dashed var(--border-strong);
}
.aircraft-media__frame::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("/assets/img/contours.svg") center / 260% no-repeat;
  opacity: calc(var(--contour-opacity) * .8);
}
.aircraft-media__frame img { width: 100%; height: 100%; object-fit: cover; }
.aircraft-media__frame img.is-placeholder { width: 38%; height: auto; object-fit: contain; opacity: .9; }
.aircraft-media figcaption {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 12px; font-size: var(--step--1); color: var(--text-muted); text-align: center;
}
.aircraft-media figcaption .icon { width: 18px; height: 18px; color: var(--text-muted); }

/* Spec card */
.spec-card { margin-top: clamp(28px, 4vw, 44px); }
.spec-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.spec-card__head .card__icon { margin-bottom: 0; }
.spec-card__head h3 { margin: 0; }
@media (min-width: 900px) {
  .specs--cols { grid-template-columns: 1fr 1fr; column-gap: 48px; border-top: 0; }
  .specs--cols > div:nth-child(-n+2) { border-top: 1px solid var(--border); }
}
.specs .nobr { white-space: nowrap; }
.spec-note { margin: 18px 0 0; font-size: var(--step--1); color: var(--text-muted); }

/* Comparison table */
.table-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.table-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.compare { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .95rem; }
.compare caption {
  caption-side: top; text-align: left; padding: 18px 20px 14px;
  font-family: var(--font-head); font-weight: 700; color: var(--heading);
}
.compare caption span { display: block; margin-top: 2px; font-family: var(--font-body); font-weight: 400; font-size: var(--step--1); color: var(--text-muted); }
.compare th, .compare td { padding: 14px 20px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); }
.compare thead th {
  background: var(--surface-2); font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--heading);
}
.compare thead th span { display: block; font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.compare tbody th { font-family: var(--font-head); font-weight: 600; color: var(--heading); width: 28%; }
.compare td { color: var(--text-muted); }
.fit {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .75rem; letter-spacing: .02em; white-space: nowrap;
}
.fit--main { background: var(--brand-black); color: #FFFFFF; }
.fit--support { background: var(--tile); color: var(--tile-ink); box-shadow: inset 0 0 0 1px var(--border-strong); }
.compare td .fit + span { display: block; margin-top: 6px; font-size: .88rem; }
.compare__none { color: var(--text-muted); }
/* Keep the caption note readable without scrolling on narrow screens */
.compare caption span { max-width: calc(100vw - 80px); }
@media (min-width: 900px) { .compare caption span { max-width: none; } }
.table-hint { margin: 10px 0 0; font-size: var(--step--1); color: var(--text-muted); }
@media (min-width: 900px) { .table-hint { display: none; } }

/* Dark: navy pill needs a visible edge against the dark surface */
:root[data-theme="dark"] .fit--main { background: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fit--main { background: var(--accent); } }

/* ---------- portfolio ---------- */
/* Portfolio page: filter bar, grid columns, video tiles, static video slot, lightbox extras (merge into styles.css later) */

/* Filter bar + live count */
.portfolio-bar { display: grid; gap: 4px; margin-bottom: 24px; }
.portfolio-bar .filters { margin-bottom: 0; }
.portfolio-count { margin: 6px 0 0; min-height: 1.6em; font-size: var(--step--1); color: var(--text-muted); }
@media (min-width: 900px) {
  .portfolio-bar { grid-template-columns: 1fr auto; align-items: center; gap: 16px; }
  .portfolio-count { margin: 0; text-align: right; }
}

/* Pressed filter stays clearly distinct on dark surfaces */
:root[data-theme="dark"] .filter-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .filter-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
}

/* Grid: 1 / 2 / 3 columns so categories of three line up as full rows */
.gallery.portfolio-grid { grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .gallery.portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .gallery.portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.portfolio-grid > .ph-tile,
.portfolio-grid > .gallery__item { min-width: 0; }
/* Phones: shorter placeholders, and no repeated "coming soon" tiles in the All view */
@media (max-width: 559.98px) {
  .portfolio-grid > .ph-tile { aspect-ratio: 16 / 9; }
  .portfolio-grid > .ph-tile--repeat { display: none; }
}

/* Keyboard focus stays visible inside tiles that clip their overflow */
/* (an inset box-shadow on the button itself would be painted under the photo, so the ring sits on ::after) */
.gallery__btn { position: relative; }
.gallery__btn:focus-visible,
.video-facade:focus-visible { outline: none; }
.gallery__btn:focus-visible::after,
.video-facade:focus-visible::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: var(--radius);
  box-shadow: inset 0 0 0 3px #FFFFFF, inset 0 0 0 6px #0D0D0D;
}

/* Video tiles inside the grid match the 4:3 photo tiles */
.gallery__item--video .video-slot { aspect-ratio: 4 / 3; border-radius: 0; }
.gallery__item.is-playing .gallery__cap { display: none; }

/* Static featured video slot placeholder */
.video-slot { box-shadow: var(--shadow-md); }
.video-slot__ph {
  position: absolute; inset: 0; isolation: isolate;
  display: grid; place-content: center; justify-items: center; gap: 8px; padding: 16px; text-align: center;
  color: var(--on-deep-muted); background: linear-gradient(160deg, var(--brand-black), var(--deep));
}
.video-slot__ph::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("/assets/img/contours.svg") center / 220% no-repeat; opacity: .22;
}
.video-slot__ph .icon { width: 34px; height: 34px; color: #FFFFFF; }
.video-slot__cat { font-family: var(--font-head); font-weight: 700; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #FFFFFF; }
.video-slot__label { font-size: .95rem; }

/* Lightbox extras */
html.lightbox-locked { overflow: hidden; }
.lightbox__count {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .08em; color: #FFFFFF;
}
.lightbox figure { touch-action: pan-y; }
.lightbox .icon-btn:focus-visible { outline-color: #FFFFFF; }

/* No-JS notice */
.portfolio-noscript {
  padding: 18px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius);
  background: var(--surface-2); color: var(--text);
}
.portfolio-noscript p { margin: 0; }

/* ---------- pricing ---------- */
/* =========================================================================
   Pricing page additions (merge into styles.css under "Pricing")
   Mobile first. Uses existing tokens only.
   ========================================================================= */

/* Package grid: 1 col, 2 cols from 640px, 3 cols from 960px */
.price-grid { display: grid; gap: 32px 24px; }
@media (min-width: 640px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }

.price-card__cat {
  font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--eyebrow); margin: 0 0 6px;
}
.price-card h3 { margin-bottom: 4px; }
.price-card__desc { color: var(--text-muted); font-size: .95rem; margin: 6px 0 0; }
.price__unit { display: inline-block; white-space: nowrap; margin-left: 4px; font-size: .9rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }
.price-card .check-list { font-size: .95rem; }
.price-card__time {
  display: flex; align-items: center; gap: 8px; margin: auto 0 18px; padding-top: 16px;
  font-size: .9rem; font-weight: 600; color: var(--heading); border-top: 1px solid var(--border);
}
.price-card__time .icon { width: 18px; height: 18px; color: var(--brand-red); }
.price-card .price-card__time + .btn { margin-top: 0; }

/* Line up category, title, price, list, turnaround and button across each row
   (cards have 7 in-flow children; the absolutely positioned flag is skipped). */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 640px) {
    .price-grid > .price-card { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
    .price-grid > .price-card .check-list { align-self: start; }
    .price-grid > .price-card .price-card__time { margin-top: 0; align-self: end; }
    .price-grid > .price-card > .btn { align-self: end; }
    .price-grid > .quote-card { grid-row: span 7; }
  }
}

.price-note { margin-top: 28px; color: var(--text-muted); font-size: .95rem; max-width: 72ch; }
/* Founding-client offer above the package grid (TD-005; remove after the fifth founding client) */
.offer-note { max-width: 720px; margin: 0 0 32px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg-alt); border-left: 3px solid var(--brand-red); color: var(--text); font-size: .95rem; line-height: 1.5; }

/* Add-on list */
.addon-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.addon-list li {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.addon-list__name { font-family: var(--font-head); font-weight: 700; color: var(--heading); }
.addon-list__price { font-family: var(--font-head); font-weight: 800; color: var(--heading); white-space: nowrap; text-align: right; }
.addon-list__price small { display: block; font-size: .78rem; font-weight: 600; color: var(--text-muted); }
.addon-list__desc { grid-column: 1 / -1; margin: 0; font-size: .92rem; color: var(--text-muted); }

/* Custom quote block (always-dark card, sits in the package grid) */
.quote-card {
  display: flex; flex-direction: column;
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--deep-2) 0%, var(--deep) 100%); color: var(--on-deep);
  border: 1px solid rgba(255, 255, 255, .14); padding: clamp(24px, 3vw, 34px);
}
.quote-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("/assets/img/contours.svg") 90% 20% / 220% no-repeat; opacity: .18;
}
.quote-card .eyebrow { color: #FFFFFF; }
.quote-card h3 { color: #FFFFFF; font-size: var(--step-2); margin-bottom: 10px; }
.quote-card p { color: var(--on-deep-muted); }
.quote-card .check-list li { color: #FFFFFF; }
.quote-card .check-list li::before { background-color: #FFFFFF; }
.quote-card .check-list { margin: 8px 0 24px; }
.quote-card .btn { margin-top: auto; }

/* Top-aligned split (add-ons) */
.split--top { align-items: start; }
.split--top .section-head { margin-bottom: 0; }

/* Notes cards */
.note-card h3 { display: flex; align-items: center; gap: 10px; }
.note-card .check-list li { color: var(--text-muted); }
.note-card .check-list { margin-bottom: 0; }

/* ---------- about ---------- */
/* About page: owner photo frame */
.about-photo { width: 100%; max-width: 420px; margin: 0 auto; }
.about-photo .ph-tile,
.about-photo img { aspect-ratio: 4 / 5; width: 100%; height: auto; border-radius: var(--radius); }
.about-photo img { display: block; object-fit: cover; box-shadow: var(--shadow-md); }
.about-photo figcaption { margin-top: 12px; font-size: .9rem; color: var(--text-muted); text-align: center; }

.about-facts { margin-top: 24px; display: grid; gap: 10px 28px; }
.about-facts li { margin-bottom: 0; }
@media (min-width: 600px) { .about-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- faq ---------- */
/* ---------- FAQ page ---------- */
.faq-layout { display: grid; gap: clamp(32px, 5vw, 64px); }

.faq-aside { display: grid; gap: 20px; align-content: start; }
.faq-toc__title,
.faq-ask__title {
  font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--heading); margin-bottom: 12px;
}
.faq-toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.faq-toc a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2);
  color: var(--heading); font-size: var(--step--1); font-weight: 600; text-decoration: none;
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.faq-toc a:hover { border-color: var(--border-strong); color: var(--link); }
.faq-toggle { justify-self: start; }
.faq-toggle .icon { transition: transform .25s var(--ease); }
.faq-toggle[aria-expanded="true"] .icon { transform: rotate(45deg); }
.faq-ask { display: none; }
.faq-ask p:not(.faq-ask__title) { font-size: var(--step--1); }

.faq-group { scroll-margin-top: calc(var(--header-h) + 24px); }
.faq-group + .faq-group { margin-top: clamp(44px, 6vw, 72px); }
.faq-group h2 { display: flex; align-items: center; gap: 14px; font-size: var(--step-2); margin-bottom: 16px; }
.faq-group__icon {
  display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px;
  border-radius: 10px; background: var(--tile); color: var(--accent);
}
:root[data-theme="dark"] .faq-group__icon { color: var(--icon); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .faq-group__icon { color: var(--icon); } }
.faq-group__icon .icon { width: 20px; height: 20px; }

.faq__body .check-list { margin-top: 4px; }
.faq__body .check-list li { margin-bottom: 8px; }
.faq-cta { margin-top: 18px; }

@media (min-width: 960px) {
  .faq-layout { grid-template-columns: 260px minmax(0, 1fr); align-items: start; }
  .faq-aside { position: sticky; top: calc(var(--header-h) + 24px); }
  .faq-toc ul { display: block; border-left: 2px solid var(--border); }
  .faq-toc li { margin: 0; }
  .faq-toc a {
    display: flex; min-height: 0; padding: 8px 0 8px 16px; margin-left: -2px;
    border: 0; border-left: 2px solid transparent; border-radius: 0; background: none;
    color: var(--text-muted); font-size: .95rem;
  }
  .faq-toc a:hover { border-left-color: var(--accent); color: var(--heading); }
  .faq-ask { display: block; }
}

/* ---------- contact ---------- */
/* ---------- Contact page + thank-you page (merge into styles.css later) ---------- */

/* Layout: form first, details beside it on wide screens */
.contact-layout { display: grid; gap: clamp(20px, 3vw, 32px); align-items: start; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }

.contact-form-card h2 { font-size: var(--step-2); margin-bottom: 14px; }
.contact-form-card .form-note { margin: 0 0 22px; }
.contact-form-card .form-note:empty { display: none; }

.contact-aside { display: grid; gap: clamp(20px, 3vw, 28px); }
@media (min-width: 960px) { .contact-aside { position: sticky; top: calc(var(--header-h) + 20px); } }
.contact-aside__title { font-size: var(--step-1); margin-bottom: 4px; }
.contact-aside .card > .contact-aside__title { margin-bottom: 18px; }
.contact-card .contact-aside__title { margin-bottom: 0; }
.contact-line { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.contact-line > span { display: grid; gap: 2px; }
.contact-line__label {
  font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-muted);
}
:root[data-theme="dark"] .contact-line .icon { color: var(--icon); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .contact-line .icon { color: var(--icon); } }

/* Form details */
.form__legend { margin: 0; font-size: .85rem; color: var(--text-muted); }
.form__actions { display: grid; gap: 14px; justify-items: start; margin-top: 4px; }
.form__actions .btn { width: 100%; }
@media (min-width: 640px) { .form__actions .btn { width: auto; min-width: 200px; } }
.form__privacy { margin: 0; font-size: .85rem; color: var(--text-muted); }
.field__hint, .field__error { margin: 0; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237F93AA' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input[type="date"] { min-height: 48px; }
@media (min-width: 640px) { .field--date { max-width: calc(50% - 9px); } }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(208, 0, 0, .25); }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; box-shadow: none; }

/* Error summary */
.error-summary {
  margin: 0 0 22px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1.5px solid #D00000; border-left-width: 5px;
}
.error-summary:focus { outline: 3px solid var(--focus); outline-offset: 3px; }
.error-summary h3 { font-size: 1.05rem; margin: 0 0 8px; color: var(--heading); }
.error-summary__list { margin: 0; padding-left: 1.1em; }
.error-summary__list li { margin-bottom: 4px; }
.error-summary__list li:last-child { margin-bottom: 0; }
.error-summary__list a { color: #D00000; font-weight: 600; }
:root[data-theme="dark"] .error-summary__list a { color: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .error-summary__list a { color: #FFFFFF; } }

/* Thank-you page */
.thanks-layout { display: grid; gap: clamp(20px, 3vw, 32px); align-items: start; }
@media (min-width: 900px) { .thanks-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.thanks-layout h2 { font-size: var(--step-2); }
.thanks-layout .card .btn-row { margin-top: 20px; }

/* Step numbers: the navy circle almost disappears on dark cards, so use the accent in dark mode */
:root[data-theme="dark"] .contact-aside .steps li::before,
:root[data-theme="dark"] .thanks-layout .steps li::before { background: var(--accent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .contact-aside .steps li::before,
  :root:not([data-theme="light"]) .thanks-layout .steps li::before { background: var(--accent); }
}

/* Stacked rows on phones keep the same rhythm as the rest of the form */
.form__row { display: grid; gap: 18px; }

/* ---------- legal ---------- */
/* ---------- Legal pages (privacy, terms) and 404 ----------
   Mobile-first. Uses only design-system custom properties so both themes work. */

.legal-meta {
  display: flex; flex-wrap: wrap; gap: 6px 20px;
  margin: 0 0 28px; padding: 0 0 20px;
  border-bottom: 1px solid var(--border);
  font-size: var(--step--1); color: var(--text-muted);
}
.legal-meta p { margin: 0; color: var(--text-muted); }
.legal-meta strong { color: var(--heading); font-weight: 600; }

.legal-toc {
  margin: 0 0 8px; padding: 20px 22px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
}
.legal-toc__title {
  font-family: var(--font-head); font-weight: 700; font-size: .75rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--heading);
  margin: 0 0 12px;
}
.legal-toc ol {
  margin: 0; padding-left: 1.4em; display: grid; gap: 6px;
  font-size: .95rem;
}
.legal-toc li { margin: 0; color: var(--text-muted); }
.legal-toc a { color: var(--link); }
@media (min-width: 640px) {
  .legal-toc ol { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}

.prose h2[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
.prose .legal-summary {
  padding: 18px 20px; margin: 0 0 8px;
  border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface-2);
}
.prose .legal-summary p:last-child, .prose .legal-summary ul:last-child { margin-bottom: 0; }
.legal-top { margin-top: 2.4em; font-size: var(--step--1); }

/* 404 */
.not-found__plate {
  aspect-ratio: 1; border-radius: 50%;
  background: #FFFFFF;
  box-shadow: var(--shadow-lg), 0 0 0 8px var(--surface-2);
  display: grid; place-items: center;
}
.not-found__plate img { width: 67%; height: auto; }
.not-found h1 { font-size: var(--step-4); margin-inline: auto; max-width: 16ch; }
.not-found .lede { max-width: 46ch; margin-inline: auto; }
.not-found__links {
  list-style: none; padding: 0; margin: 36px auto 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px;
}

/* ===== QA fixes ===== */
.nowrap { white-space: nowrap; }

/* Mobile drawer: backdrop-filter makes the header the containing block for the fixed
   drawer, so drop the blur while the menu is open (drawer then fills the viewport). */
@media (max-width: 959.98px) {
  .site-header.nav-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
}

/* Footer links: more room between taps */
.footer-links a { display: inline-block; padding: 4px 0; }

/* Dark theme: accent text and icon strokes need the light blue to reach 3:1 */
:root[data-theme="dark"] .stat__value span { color: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stat__value span { color: #FFFFFF; } }
:root[data-theme="dark"] .faq summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238DBDEB' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .check-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238DBDEB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .faq summary::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238DBDEB' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E");
  }
  :root:not([data-theme="light"]) .check-list li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238DBDEB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E");
  }
}
/* The quote card keeps light tick plates in both themes, so keep the blue tick there */
:root[data-theme="dark"] .quote-card .check-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A71BC' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .quote-card .check-list li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A71BC' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E");
  }
}

/* Two-column ranges: no lone card next to an empty cell */
@media (min-width: 640px) and (max-width: 959.98px) {
  .price-grid > .quote-card { grid-column: 1 / -1; }
  .grid--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 899.98px) {
  .work-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
}
@media (min-width: 560px) and (max-width: 959.98px) {
  .gallery.portfolio-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .gallery.portfolio-grid > .ph-tile:last-child:nth-child(odd),
  .gallery.portfolio-grid > :last-child:nth-child(odd) .gallery__btn,
  .gallery.portfolio-grid > :last-child:nth-child(odd) .video-slot { aspect-ratio: 2 / 1; }
}

/* A CTA section that follows a plain section: one gap, not two */
.section--flush-top { padding-top: 0; }

/* Phones: booking buttons in the CTA band span the width so the label wraps evenly */
@media (max-width: 639.98px) {
  .cta-band .btn-row .btn { width: 100%; }
}

/* Phones: smaller logo plate so the headline and offer lead */
@media (max-width: 639.98px) {
  .hero__mark { width: min(36vw, 136px); }
  .hero { min-height: 0; padding-block: 40px 56px; }
}

/* Header quote button: beside the menu button from 960px; with the full navigation (1180px up), from 1440px */
@media (min-width: 960px) and (max-width: 1179.98px) {
  .header-cta { display: inline-flex; }
}
@media (min-width: 960px) and (max-width: 1179.98px) {
  .site-nav ul { gap: 14px; }
  .site-nav a { font-size: .86rem; }
  .header-actions { margin-left: 10px; }
}

/* Narrow phones: stat values stay on one line ("Long-lens" never splits at the hyphen) */
@media (max-width: 419.98px) { .stat { padding-inline: 16px; } .stat__value { font-size: 1.35rem; } }

/* ---------- TD-009, 11/21: how we edit, before/after, estimate, 360° views, FAQ search (the aircraft cards went with TD-017) ---------- */

/* Services: how we edit */
.edit-list { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
.edit-list .feature { margin: 0; }

/* Before/after slider (assets/js/compare.js) */
.ba { margin: clamp(40px, 5vw, 64px) 0 0; }
.ba__frame {
  --ba-pos: 50%;
  position: relative; overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--radius);
  background: var(--tile); touch-action: pan-y; cursor: ew-resize; -webkit-user-select: none; user-select: none;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--ba-pos); width: 2px; margin-left: -1px;
  background: #FFFFFF; box-shadow: 0 0 0 1px rgba(13, 13, 13, .35); pointer-events: none;
}
.ba__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; background: #FFFFFF; box-shadow: var(--shadow-md);
}
.ba__tag {
  position: absolute; top: 12px; padding: 5px 10px; border-radius: 999px; pointer-events: none;
  background: rgba(13, 13, 13, .82); color: #FFFFFF; font-family: var(--font-head); font-weight: 600; font-size: .75rem;
}
.ba__tag--before { left: 12px; }
.ba__tag--after { right: 12px; }
.ba__control { display: grid; gap: 6px; margin-top: 16px; }
.ba__control label { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--heading); }
.ba__range { width: 100%; min-height: 44px; margin: 0; accent-color: var(--accent); }
.ba figcaption { margin-top: 6px; font-size: var(--step--1); color: var(--text-muted); }

/* Pricing: instant estimate (assets/js/estimator.js) */
.estimator {
  display: grid; gap: clamp(24px, 4vw, 48px); padding: clamp(20px, 3vw, 36px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
@media (min-width: 900px) { .estimator { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; } }
.estimator__form { display: grid; gap: 22px; }
.estimator__addons { min-width: 0; margin: 0; padding: 0; border: 0; }
.estimator__addons legend { margin-bottom: 10px; padding: 0; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--heading); }
.estimator__addon-list { display: grid; gap: 10px; }
.estimator__check { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.estimator__check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.estimator__check label { font-size: 1rem; color: var(--text); }
.estimator__qty { grid-template-columns: minmax(0, 1fr) 96px; align-items: center; column-gap: 14px; }
.estimator .estimator__qty label { font-family: var(--font-body); font-weight: 400; font-size: 1rem; color: var(--text); }
.estimator__why { display: block; font-size: .85rem; color: var(--text-muted); }
.estimator .is-off { opacity: .6; }
.estimator__addons .field__hint { margin: 10px 0 0; }
.estimator__result { padding: clamp(20px, 2.6vw, 28px); border-radius: var(--radius); background: var(--deep); color: var(--on-deep); }
@media (min-width: 900px) { .estimator__result { position: sticky; top: calc(var(--header-h) + 24px); } }
.estimator__label {
  margin-bottom: 4px; font-family: var(--font-head); font-weight: 700; font-size: .75rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--on-deep-muted);
}
.estimator__total {
  margin-bottom: 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
  line-height: 1.1; color: #FFFFFF; font-variant-numeric: tabular-nums;
}
.estimator__tax { display: block; margin-top: 6px; font-family: var(--font-body); font-weight: 500; font-size: .9rem; color: var(--on-deep-muted); }
/* TD-011: a total with quoted lines ("$249.00 + quoted items") at a smaller size */
.estimator__total.is-quoted { font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2rem); }
.estimator__lines { margin: 18px 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .18); }
.estimator__lines li {
  display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: .92rem; color: var(--on-deep-muted);
}
.estimator__lines li span:last-child { color: #FFFFFF; font-variant-numeric: tabular-nums; white-space: nowrap; }
.estimator__deposit { margin-bottom: 14px; color: #FFFFFF; }
.estimator__note { margin-bottom: 6px; font-weight: 600; color: #FFFFFF; }
.estimator__fine { margin-bottom: 20px; font-size: .85rem; color: var(--on-deep-muted); }

/* Portfolio: 360° views (assets/js/pano.js; viewer in assets/vendor/pannellum/) */
.pano { display: grid; gap: 24px; }
.pano .pano__ph { aspect-ratio: 2 / 1; }
.pano__item { margin: 0; }
.pano .pano__view { width: 100%; height: clamp(300px, 56vw, 600px); border-radius: var(--radius); overflow: hidden; background: var(--deep); }
.pano .pano__view:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.pano__item figcaption { margin-top: 10px; font-size: var(--step--1); color: var(--text-muted); }
.pano__help { max-width: 72ch; margin: 16px 0 0; font-size: var(--step--1); color: var(--text-muted); }

/* FAQ: search (assets/js/faq.js) */
.faq-search { display: grid; gap: 8px; }
.faq-search .faq-toc__title { margin-bottom: 0; }
.faq-search__box { position: relative; }
.faq-search__box .icon {
  position: absolute; top: 50%; left: 14px; width: 20px; height: 20px; margin-top: -10px;
  color: var(--text-muted); pointer-events: none;
}
.faq-search__input {
  width: 100%; min-height: 48px; padding: 12px 14px 12px 44px; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--field-border); border-radius: var(--radius-sm);
}
.faq-search__input:focus {
  outline: none; border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(208, 0, 0, .25); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 40%, transparent);
}
.faq-search__status { margin: 0; font-size: var(--step--1); color: var(--text-muted); }

/* ---------- TD-012: Photonomous Photography (E-034, E-035) ---------- */
/* The K3P lockup: color on light, reverse on dark. The reverse files carry a black margin of 12 units around the
   368 x 64 lockup, so they're drawn 1.375 times as tall with that margin pulled out: the letters match. */
.site-header { --logo-h: 28px; }
@media (min-width: 400px) { .site-header { --logo-h: 31px; } }
@media (min-width: 1024px) { .site-header { --logo-h: 36px; } }
.brand { gap: 0; }
.brand__logo { display: block; width: auto; height: var(--logo-h); max-width: none; }
.brand__logo--dark { height: calc(var(--logo-h) * 1.375); margin: calc(var(--logo-h) * -.1875); }
.site-header .brand__logo--dark { display: none; }
:root[data-theme="dark"] .site-header .brand__logo--light { display: none; }
:root[data-theme="dark"] .site-header .brand__logo--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-header .brand__logo--light { display: none; }
  :root:not([data-theme="light"]) .site-header .brand__logo--dark { display: block; }
}
.site-footer .brand { --logo-h: 38px; display: inline-block; }
.footer-line { font-size: .9rem; }

/* The K3P mark on the white plate (Home's hero, the 404 page): the mark is 1.7 times as wide as it is tall. */
.hero__plate img.plate-mark, .not-found__plate img.plate-mark { width: 68%; }

/* Dark theme: the dark sections sit on a black page, so they get a hairline */
:root[data-theme="dark"] .site-footer, :root[data-theme="dark"] .page-hero { border-top: 1px solid rgba(255, 255, 255, .12); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-footer, :root:not([data-theme="light"]) .page-hero { border-top: 1px solid rgba(255, 255, 255, .12); }
}

/* The open menu's quote button keeps the button's own ink: the menu's link color had made its text dark on the
   accent (3.2:1 before TD-012, 3.4:1 on the red; found by axe with the menu open, 11/23) */
.site-nav .nav-cta .btn, .site-nav .nav-cta .btn:hover { color: var(--btn-ink); }

/* Services: the four service groups (E-034) */
.svc-group { padding-block: clamp(28px, 4vw, 44px) 0; }
.svc-group__head { display: grid; gap: 6px; border-top: 3px solid var(--brand-red); padding-top: 18px; }
.svc-group__head h2 { margin: 0; }
.svc-group__head p { margin: 0; color: var(--text-muted); max-width: 64ch; }
.svc-jump__group { font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }

/* What we shoot (E-033) */
.shoot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .shoot-list { grid-template-columns: repeat(2, 1fr); } }
.shoot-list li { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.shoot-list h3 { font-size: var(--step-0); margin: 0 0 6px; }
.shoot-list p { margin: 0; color: var(--text-muted); }
.shoot-note { margin-top: 18px; color: var(--text-muted); }
