/* ==========================================================================
   Jordan & John LLC — site styles
   Tokens first, then base, layout, components, pages, motion.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Brand (from logo, dark variant) */
  --ember: #C2462E;          /* button fills, marks */
  --ember-ink: #EE7356;      /* ember for text on black (AA) */
  --charcoal: #DCDDD8;       /* the logo's light-gray "U" on dark; also line art */

  /* Black theme surfaces */
  --paper: #0B0B0B;          /* page background */
  --paper-2: #141414;        /* raised sections, art panels */
  --mist: #1B1B1B;
  --sage-pale: #C9CFBF;
  --sage: #8E9A7A;
  --moss: #10130F;           /* deep green-black bands */
  --moss-2: #A3B08E;         /* sage accent for icons and emphasis */
  --straw: #D8CFAE;
  --water: #6F9496;

  /* Text */
  --ink: #F2F0EA;
  --muted: #A9A9A2;
  --on-dark: #F2F0EA;
  --on-dark-muted: #B5B5AE;
  --danger: #FF8A75;

  --line: rgba(242, 240, 234, 0.14);
  --line-dark: rgba(242, 240, 234, 0.16);

  /* Type */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --step-3: clamp(2.125rem, 1.5rem + 2.6vw, 3.5rem);
  --step-4: clamp(3rem, 1.9rem + 5vw, 6rem);

  /* Space (4pt base, spacious marketing density) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --gutter: clamp(16px, 5vw, 48px);
  --section: clamp(64px, 9vw, 128px);

  --radius-s: 4px;
  --radius-m: 12px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --dur-1: 150ms;
  --dur-2: 260ms;
  --dur-3: 900ms;

  /* Layers */
  --z-header: 40;
  --z-menu: 50;
  --z-skip: 100;

  --header-h: 72px;
}

/* ---------- 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);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Keep the hidden attribute working even on elements given a display value */
[hidden] { display: none !important; }

/* Headings: heavy, condensed, uppercase (per the client's reference) */
h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  font-stretch: 68%;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1; }

/* Small technical labels in mono, widely tracked */
.label {
  display: inline-flex;
  align-items: center;
  gap: var(--s-4);
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.label__num { color: var(--ink); }
.label__num + span {
  padding-left: var(--s-4);
  border-left: 1px solid var(--muted);
}

p { margin: 0; max-width: 62ch; }

a { color: var(--ember-ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 3px;
  border-radius: 2px;
}

ul, ol { margin: 0; padding: 0; }

.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: var(--s-4);
  top: -100px;
  z-index: var(--z-skip);
  padding: var(--s-3) var(--s-4);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-s);
  text-decoration: none;
}
.skip-link:focus { top: var(--s-4); }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--paper2 { background: var(--paper-2); }
.section--dark {
  background: var(--moss);
  color: var(--on-dark);
}
.section--dark a { color: var(--on-dark); }

.section-head {
  display: grid;
  gap: var(--s-4);
  margin-bottom: var(--s-8);
  max-width: 760px;
}
.section-head p { color: var(--muted); font-size: var(--step-1); }
.section--dark .section-head p { color: var(--on-dark-muted); }

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius-s);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background-color var(--dur-1) var(--ease-out),
    color var(--dur-1) var(--ease-out),
    border-color var(--dur-1) var(--ease-out),
    transform var(--dur-1) var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--ember); color: #fff; }
.btn--primary:hover { background: var(--ember-ink); }
.btn--ghost { border-color: var(--charcoal); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.section--dark .btn--ghost { border-color: var(--on-dark); color: var(--on-dark); }
.section--dark .btn--ghost:hover { background: var(--on-dark); color: var(--moss); }
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(11, 11, 11, 0.92);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--charcoal);
  text-decoration: none;
  min-height: 44px;
}
.brand .mark { width: 26px; height: auto; flex: none; }

.wordmark {
  font-weight: 700;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.0625rem;
  color: var(--charcoal);
  white-space: nowrap;
}
.wordmark .amp { color: var(--ember); }

/* Logo mark colors */
.mark .mark-red { fill: var(--ember); }
.mark .mark-dark {
  fill: currentColor;
  stroke: var(--mark-gap, var(--paper));
  stroke-width: 8;
  paint-order: stroke;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1);
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav ul { list-style: none; }
.site-nav a:not(.btn) {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:not(.btn):hover { color: var(--ember-ink); }
/* Current page: angled tick echoing the logo's cut */
.site-nav a[aria-current="page"],
.site-nav a[aria-current="true"] { font-weight: 700; }
.site-nav a[aria-current="page"]::after,
.site-nav a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 22px;
  height: 4px;
  background: var(--ember);
  clip-path: polygon(0 100%, 30% 0, 100% 0, 70% 100%);
}

/* Mobile nav (default) */
.site-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: var(--z-menu);
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: var(--s-5) var(--gutter) var(--s-7);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.8);
}
.site-nav ul { display: grid; gap: var(--s-1); margin-bottom: var(--s-5); }
.site-nav ul a:not(.btn) { font-size: var(--step-1); }
.site-nav__cta { width: 100%; }

.js .site-nav {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out),
    visibility 0s linear var(--dur-2);
}
.js .site-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition:
    opacity var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out),
    visibility 0s;
}
/* Without JS: show nav inline under the header */
.no-js .menu-toggle { display: none; }
.no-js .site-nav { position: static; box-shadow: none; border: 0; padding: 0 0 var(--s-4); }
.no-js .header-inner { flex-wrap: wrap; }

@media (min-width: 1200px) {
  .menu-toggle { display: none; }
  .site-nav,
  .js .site-nav,
  .no-js .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: var(--s-6);
    max-height: none;
    overflow: visible;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .site-nav ul { display: flex; gap: var(--s-5); margin: 0; }
  .site-nav ul a:not(.btn) { font-size: 0.9375rem; }
  .site-nav__cta { width: auto; min-height: 44px; padding: 10px 18px; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-top: clamp(40px, 8vw, 104px);
  display: grid;
  gap: var(--s-5);
}
.hero__content h1 { max-width: 12ch; }
.hero__content .lede { color: var(--charcoal); }
/* Art sits under the text; only its empty sky overlaps the text block */
.hero__art {
  position: relative;
  z-index: 1;
  height: clamp(340px, 42vw, 600px);
  margin-top: clamp(-180px, -10vw, -40px);
}
.hero__art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
@media (min-width: 1024px) {
  .hero__content { padding-top: clamp(72px, 8vw, 112px); }
}

/* ---------- Statement ---------- */
.statement {
  font-size: var(--step-3);
  font-weight: 500;
  font-stretch: 108%;
  line-height: 1.25;
  max-width: 28ch;
  letter-spacing: -0.01em;
}
.statement strong { font-weight: 700; color: var(--ember-ink); }

/* ---------- Services list (home) ---------- */
.services { display: grid; gap: clamp(64px, 8vw, 112px); }
.service {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}
.service__art {
  background: var(--paper-2);
  border-radius: var(--radius-m);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.service__art svg { width: 100%; height: 100%; }
.service__body { display: grid; gap: var(--s-4); align-content: start; }
.service__body p { color: var(--muted); }
.service__index {
  font-weight: 700;
  font-stretch: 125%;
  color: var(--ember-ink);
  font-size: var(--step-1);
}
.deliverables { list-style: none; display: grid; gap: var(--s-2); margin-top: var(--s-2); }
.deliverables li {
  position: relative;
  padding-left: 28px;
}
.deliverables li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 14px;
  height: 4px;
  background: var(--sage);
  clip-path: polygon(0 100%, 30% 0, 100% 0, 70% 100%);
}
@media (min-width: 880px) {
  .service { grid-template-columns: 1.1fr 1fr; gap: var(--s-9); }
  .service:nth-child(even) .service__art { order: 2; }
}

/* ---------- Mission steps ---------- */
.steps-wrap { position: relative; }
.steps {
  list-style: none;
  position: relative;
  display: grid;
  gap: var(--s-7);
  counter-reset: step;
}
.step { position: relative; display: grid; gap: var(--s-3); padding-left: 56px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -4px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ember);
  color: var(--ember-ink);
  font-weight: 700;
  font-size: 0.9375rem;
  z-index: 1;
}
.step h3 { font-size: var(--step-2); }
.step p { color: var(--muted); }
.steps__line {
  position: absolute;
  left: 17px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  height: auto;
  overflow: visible;
}
.steps__line--h { display: none; }
@media (min-width: 880px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
  .step { padding-left: 0; padding-top: 64px; }
  .step::before { top: 0; }
  .steps__line--v { display: none; }
  .steps__line--h {
    display: block;
    left: 18px;
    right: auto;
    top: 17px;
    bottom: auto;
    width: calc(75% + 24px); /* ends at the 4th step's dot */
    height: 2px;
  }
}

/* ---------- Dark band ---------- */
.band {
  display: grid;
  gap: var(--s-7);
  align-items: center;
}
.band__text { display: grid; gap: var(--s-5); }
.band__text p { color: var(--on-dark-muted); }
.band__coords {
  font-weight: 600;
  font-stretch: 112%;
  color: var(--on-dark);
  letter-spacing: 0.02em;
}
.band__art { width: 100%; max-width: 520px; justify-self: center; }
@media (min-width: 880px) {
  .band { grid-template-columns: 1fr 1fr; gap: var(--s-9); }
}

/* ---------- CTA ---------- */
.cta {
  display: grid;
  gap: var(--s-5);
  justify-items: start;
}
.cta h2 { max-width: 18ch; }
.cta p { color: var(--muted); font-size: var(--step-1); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.page-hero__grid {
  display: grid;
  gap: var(--s-7);
  align-items: center;
}
.page-hero__text { display: grid; gap: var(--s-5); }
.page-hero__art {
  background: var(--paper-2);
  border-radius: var(--radius-m);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
@media (min-width: 960px) {
  .page-hero__grid { grid-template-columns: 1.05fr 1fr; gap: var(--s-9); }
}

/* ---------- Feature grid (deliverables on service pages) ---------- */
.features {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.feature {
  display: grid;
  gap: var(--s-3);
  padding-block: var(--s-6);
  border-bottom: 1px solid var(--line);
}
.feature h3 { font-size: var(--step-2); }
.feature p { color: var(--muted); }
.feature__icon { width: 40px; height: 40px; color: var(--moss-2); }
@media (min-width: 760px) {
  .features { grid-template-columns: 1fr 1fr; column-gap: var(--s-8); }
}

/* Two-column text + list */
.split {
  display: grid;
  gap: var(--s-7);
}
.split__text { display: grid; gap: var(--s-4); align-content: start; }
.split__text p { color: var(--muted); }
.section--dark .split__text p { color: var(--on-dark-muted); }
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s-9); }
}

.plain-list { list-style: none; display: grid; }
.plain-list li {
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.plain-list li:first-child { border-top: 1px solid var(--line); }
.section--dark .plain-list li { border-color: var(--line-dark); }

.ordered {
  list-style: none;
  counter-reset: ord;
  display: grid;
  gap: var(--s-5);
}
.ordered li {
  counter-increment: ord;
  position: relative;
  padding-left: 48px;
}
.ordered li::before {
  content: counter(ord);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--ember);
  color: var(--ember-ink);
  font-weight: 700;
  font-size: 0.875rem;
}
.section--dark .ordered li::before { color: var(--on-dark); }
.ordered strong { display: block; font-stretch: 110%; }
.ordered span { color: var(--muted); }
.section--dark .ordered span { color: var(--on-dark-muted); }

.note {
  padding: var(--s-5);
  border-left: 4px solid var(--ember);
  background: var(--paper);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}
.section--dark .note { background: rgba(255, 255, 255, 0.06); }

/* ---------- Thermal demo (crop protection) ---------- */
.patrol {
  display: grid;
  gap: var(--s-5);
}
.patrol__screen {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: #1C231D;
  aspect-ratio: 800 / 460;
  box-shadow: 0 0 0 1px var(--line-dark);
}
.patrol__screen svg { width: 100%; height: 100%; }
@media (min-width: 1024px) {
  .patrol {
    grid-template-columns: minmax(0, 2.2fr) minmax(240px, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: var(--s-7);
    align-items: start;
  }
  .patrol__screen { grid-row: 1 / span 3; }
  .patrol__controls { flex-direction: column; align-items: stretch; }
}
.patrol__controls { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.patrol__status {
  min-height: 3.2em;
  font-weight: 500;
  color: var(--on-dark);
  max-width: 60ch;
}
.patrol__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  font-size: var(--step--1);
  color: var(--on-dark-muted);
}
.patrol__legend span { display: inline-flex; align-items: center; gap: var(--s-2); }
.swatch { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.swatch--heat { background: radial-gradient(circle, #FFE08A 0 30%, #F08A3C 60%, #C2462E 100%); }
.swatch--drone { background: var(--on-dark); border-radius: 2px; }

.thermal-group { opacity: 0; transition: opacity 500ms var(--ease-out); }
.thermal-group.is-seen { opacity: 1; }
.thermal-label { opacity: 0; transition: opacity 300ms var(--ease-out) 150ms; }
.thermal-group.is-seen .thermal-label { opacity: 1; }
.thermal-group.is-seen.is-gone { opacity: 0.3; }
.thermal-group.is-gone .thermal-label { opacity: 0; transition-delay: 0s; }
.heat { animation: heat-pulse 2.4s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes heat-pulse { from { opacity: 0.85; } to { opacity: 1; } }

/* ---------- Forms ---------- */
.contact-grid {
  display: grid;
  gap: var(--s-8);
}
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 1.4fr 1fr; gap: var(--s-9); }
}
.form { display: grid; gap: var(--s-5); }
.form-row { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 640px) {
  .form-row--2 { grid-template-columns: 1fr 1fr; }
}
.field { display: grid; gap: var(--s-2); align-content: start; }
.field label { font-weight: 600; }
.field .req { color: var(--ember-ink); }
.field .hint { font-size: var(--step--1); color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid #5C5C57;
  border-radius: var(--radius-s);
  background: #141414;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--moss-2);
  box-shadow: 0 0 0 3px rgba(163, 176, 142, 0.35);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }
.field .error {
  display: none;
  align-items: center;
  gap: var(--s-2);
  color: var(--danger);
  font-size: var(--step--1);
  font-weight: 600;
}
.field.has-error .error { display: flex; }

.error-summary {
  padding: var(--s-5);
  border: 2px solid var(--danger);
  border-radius: var(--radius-s);
  background: #2A1411;
}
.error-summary h2 { font-size: var(--step-2); margin-bottom: var(--s-3); }
.error-summary ul { padding-left: 1.2em; }
.error-summary a { color: var(--danger); font-weight: 600; }

.form-success {
  padding: var(--s-6);
  border-radius: var(--radius-m);
  background: var(--mist);
  display: grid;
  gap: var(--s-3);
}
.form-success h2 { font-size: var(--step-2); }

.btn .spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.aside-card {
  display: grid;
  gap: var(--s-5);
  align-content: start;
  padding: var(--s-6);
  border-radius: var(--radius-m);
  background: var(--paper-2);
}
.aside-card h2 { font-size: var(--step-2); }

/* ---------- Principles (about) ---------- */
.principles {
  display: grid;
  gap: var(--s-6);
  list-style: none;
}
.principle { display: grid; gap: var(--s-2); padding-top: var(--s-5); border-top: 2px solid var(--charcoal); }
.principle h3 { font-size: var(--step-2); }
.principle p { color: var(--muted); }
@media (min-width: 760px) {
  .principles { grid-template-columns: 1fr 1fr; column-gap: var(--s-8); row-gap: var(--s-7); }
}

/* ---------- Footer ---------- */
.site-footer {
  --mark-gap: var(--moss);
  background: var(--moss);
  color: var(--on-dark);
  border-top: 1px solid var(--line);
  padding-block: var(--s-9) var(--s-6);
}
.footer-inner { display: grid; gap: var(--s-8); }
.footer-brand { display: grid; gap: var(--s-4); max-width: 36ch; }
.footer-brand .brand { color: #DCDDD8; }
.footer-brand .wordmark { color: var(--on-dark); }
.footer-brand p { color: var(--on-dark-muted); }
.footer-contact { list-style: none; display: grid; }
.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--on-dark);
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.footer-contact a:hover { color: var(--ember-ink); text-decoration: underline; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-lines { list-style: none; display: grid; gap: var(--s-2); }
.contact-lines a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--step-1);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s-6); }
.footer-nav h2 {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: 0.18em;
  margin-bottom: var(--s-3);
  color: var(--on-dark-muted);
}
.footer-nav ul { list-style: none; display: grid; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--on-dark-muted);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--on-dark); text-decoration: underline; }
.footer-legal {
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-muted);
  font-size: var(--step--1);
  max-width: none;
}
@media (min-width: 880px) {
  .footer-inner { grid-template-columns: 1fr 1.4fr; }
  .footer-legal { grid-column: 1 / -1; }
}

/* ---------- Photos ---------- */
.photo { margin: 0; display: grid; gap: var(--s-4); }
.photo__frame {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 4 / 3;
}
.photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.photo:hover .photo__frame img { transform: scale(1.03); }
.photo figcaption { font-size: 1rem; }

.gallery {
  display: grid;
  gap: var(--s-7) var(--s-5);
}
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
/* Feature layout: one large photo and two stacked */
@media (min-width: 960px) {
  .gallery--feature {
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: auto auto;
  }
  .gallery--feature .photo:first-child { grid-row: 1 / span 2; }
  .gallery--feature .photo:first-child .photo__frame { aspect-ratio: auto; height: 100%; min-height: 420px; }
  .gallery--feature .photo:first-child { grid-template-rows: 1fr auto; }
}

.section-foot { margin-top: var(--s-7); }

/* ---------- Shop: Field Deck video hero ---------- */
.deck-hero { padding-top: clamp(48px, 7vw, 96px); }
.deck-hero__head { display: grid; gap: var(--s-5); margin-bottom: var(--s-7); }
.deck-hero__head h1 { font-size: clamp(3.5rem, 2rem + 8vw, 9rem); }
.deck-stage {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
  max-height: 88svh;
  width: 100%;
  overflow: hidden;
}
.deck-stage__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.deck-stage__controls {
  position: absolute;
  right: var(--gutter);
  bottom: var(--s-5);
  display: flex;
  gap: var(--s-3);
}
.deck-stage__note {
  position: absolute;
  left: var(--gutter);
  top: var(--s-4);
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(242, 240, 234, 0.75);
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(242, 240, 234, 0.35);
  background: rgba(11, 11, 11, 0.6);
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.icon-btn:hover { background: rgba(11, 11, 11, 0.9); border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
/* Show the icon for the action the button will do */
.icon-btn .icon-play, .icon-btn[aria-pressed="true"] .icon-pause { display: none; }
.icon-btn[aria-pressed="true"] .icon-play { display: block; }
.icon-btn .icon-sound, .icon-btn[aria-pressed="true"] .icon-muted { display: none; }
.icon-btn[aria-pressed="true"] .icon-sound { display: block; }

.fine-print { margin-top: var(--s-6); color: var(--muted); font-size: var(--step--1); }

/* ---------- Shop: product list ---------- */
.products {
  list-style: none;
  display: grid;
  gap: var(--s-5);
}
.product {
  display: grid;
  grid-template-rows: auto auto 1fr auto; /* keeps every card's button on the same line */
  gap: var(--s-4);
  padding: var(--s-6);
  background: var(--paper);
  border: 1px solid var(--line);
}
.product p { color: var(--muted); }
.product .btn { justify-self: start; margin-top: var(--s-3); }
@media (min-width: 900px) {
  .products { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Legal pages ---------- */
.legal { display: grid; gap: var(--s-8); }
@media (min-width: 960px) {
  .legal { grid-template-columns: 260px minmax(0, 1fr); gap: var(--s-9); align-items: start; }
  .legal__toc { position: sticky; top: calc(var(--header-h) + var(--s-5)); }
}
.legal__toc ol { list-style: none; display: grid; gap: var(--s-1); }
.legal__toc a {
  display: flex;
  align-items: center;
  min-height: 36px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
}
.legal__toc a:hover { color: var(--ink); text-decoration: underline; }
.legal__body { display: grid; gap: var(--s-4); max-width: 72ch; }
.legal__body h2 { font-size: var(--step-2); margin-top: var(--s-7); scroll-margin-top: calc(var(--header-h) + var(--s-5)); }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p, .legal__body li { color: var(--ink); line-height: 1.7; }
.legal__body ul { padding-left: 1.25em; display: grid; gap: var(--s-2); }
.legal__body li::marker { color: var(--ember-ink); }
.legal__meta { color: var(--muted); }

/* ---------- Footer legal links ---------- */
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); align-items: center; justify-content: space-between; }
.footer-legal__links { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); }
.footer-legal__links a,
.link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--on-dark-muted);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.footer-legal__links a:hover, .link-btn:hover { color: var(--on-dark); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: var(--s-4);
  right: var(--s-4);
  bottom: var(--s-4);
  z-index: var(--z-menu);
  max-width: 560px;
  margin-left: auto;
  display: grid;
  gap: var(--s-4);
  padding: var(--s-5);
  background: #161616;
  border: 1px solid var(--line);
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.9);
}
.cookie-banner h2 { font-size: var(--step-1); line-height: 1.1; }
.cookie-banner p { font-size: 0.9375rem; color: var(--on-dark-muted); }
.cookie-banner .btn-row .btn { min-height: 44px; padding: 10px 18px; }
@media (prefers-reduced-motion: no-preference) {
  .cookie-banner { animation: banner-in 400ms var(--ease-out); }
}
@keyframes banner-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- 404 ---------- */
.not-found { min-height: 60svh; display: grid; align-content: center; gap: var(--s-5); padding-block: var(--s-9); }
.not-found__code {
  font-family: var(--mono);
  color: var(--ember-ink);
  letter-spacing: 0.18em;
}
.not-found h1 { max-width: 14ch; }
.not-found__links { max-width: 520px; margin-top: var(--s-5); }

/* ---------- Form consent note ---------- */
.form-note { font-size: var(--step--1); color: var(--muted); }

/* ---------- Leader profile ---------- */
.profile {
  display: grid;
  gap: var(--s-7);
  align-items: end;
}
.profile__text { display: grid; gap: var(--s-5); }
.profile__role {
  font-size: var(--step-2);
  font-weight: 500;
  color: var(--muted);
}
.profile__photo .photo__frame { aspect-ratio: 1 / 1; }
@media (min-width: 900px) {
  .profile { grid-template-columns: 1.15fr 1fr; gap: var(--s-9); }
}

.prose { display: grid; gap: var(--s-5); max-width: 68ch; }
.prose p { font-size: var(--step-1); line-height: 1.65; color: var(--ink); max-width: none; }

.pullquote {
  margin: 0;
  padding-left: var(--s-6);
  border-left: 4px solid var(--ember);
  font-size: var(--step-3);
  font-weight: 700;
  font-stretch: 68%;
  text-transform: uppercase;
  line-height: 1;
  max-width: 24ch;
}

/* Career path: a real sequence, drawn as a vertical line */
.path {
  list-style: none;
  position: relative;
  display: grid;
  gap: var(--s-7);
  padding-left: 40px;
}
.path::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--line);
}
.path li { position: relative; display: grid; gap: var(--s-2); }
.path li::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ember);
}
.path li:last-child::before { background: var(--ember); }
.path h3 { font-size: var(--step-2); }
.path p { color: var(--muted); }

/* ---------- Offer list (numbered services) ---------- */
.offer-head {
  display: flex;
  color: var(--ink);
  font-size: 1.125rem;
  padding-bottom: var(--s-4);
  border-bottom: 4px solid var(--ink);
}
.offers { list-style: none; }
.offer {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s-4);
  padding-block: var(--s-7);
  border-bottom: 1px solid var(--line);
}
.offer__num {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--muted);
  padding-top: 0.35em;
}
.offer__body { display: grid; gap: var(--s-4); }
.offer__body p { font-size: var(--step-1); line-height: 1.6; color: var(--ink); }
.offer__note { color: var(--muted) !important; font-size: 1rem !important; }
@media (min-width: 760px) {
  .offer { grid-template-columns: 180px 1fr; gap: var(--s-6); }
  .offer__body h3 { font-size: var(--step-3); }
}

/* ---------- Line art (illustrations) ---------- */
.art-line { fill: none; stroke: var(--charcoal); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.art-soft { fill: none; stroke: #4E5A49; stroke-width: 1.25; stroke-linecap: round; }
.art-water { fill: none; stroke: var(--water); stroke-width: 3; stroke-linecap: round; }
.art-ember { fill: none; stroke: var(--ember); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art-fill-ember { fill: var(--ember); }
.art-fill-dark { fill: var(--charcoal); }

/* ==========================================================================
   Motion
   Everything is visible by default. Animated starting states apply only
   when JS is running AND the user has not asked for reduced motion.
   ========================================================================== */
.draw { stroke-dasharray: 1; stroke-dashoffset: 0; }

@media (prefers-reduced-motion: no-preference) {
  /* Line art draws in when it enters the viewport */
  .js [data-draw] .draw {
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.6s var(--ease-out);
  }
  .js [data-draw] .draw:nth-of-type(2n) { transition-delay: 120ms; }
  .js [data-draw] .draw:nth-of-type(3n) { transition-delay: 240ms; }
  .js [data-draw].is-drawn .draw { stroke-dashoffset: 0; }

  .js [data-draw] .pop {
    opacity: 0;
    transform: scale(0.6);
    transform-box: fill-box;
    transform-origin: center;
    transition: opacity 400ms var(--ease-out) 900ms, transform 500ms var(--ease-out) 900ms;
  }
  .js [data-draw].is-drawn .pop { opacity: 1; transform: none; }

  /* Photos reveal with an upward wipe as they enter view */
  .js .photo[data-draw] .photo__frame {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1.1s var(--ease-out);
  }
  .js .photo[data-draw] .photo__frame img { transform: scale(1.08); }
  .js .photo[data-draw].is-drawn .photo__frame { clip-path: inset(0 0 0 0); }
  .js .photo[data-draw].is-drawn .photo__frame img { transform: none; }
  .js .photo[data-draw].is-drawn:hover .photo__frame img { transform: scale(1.03); }
  .js .gallery .photo[data-draw]:nth-child(2) .photo__frame { transition-delay: 120ms; }
  .js .gallery .photo[data-draw]:nth-child(3) .photo__frame { transition-delay: 240ms; }

  /* Hero: land rises in layers, then contours draw */
  .js .hero .land {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity var(--dur-3) var(--ease-out), transform 1.2s var(--ease-out);
  }
  .js .hero .land--mid { transition-delay: 120ms; }
  .js .hero .land--near { transition-delay: 240ms; }
  .js .hero.is-live .land { opacity: 1; transform: none; }

  .js .hero .contour {
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 2s var(--ease-out) 400ms;
  }
  .js .hero.is-live .contour { stroke-dashoffset: 0; }

  .js .hero .marker {
    opacity: 0;
    transform: scale(0.4);
    transform-box: fill-box;
    transform-origin: center;
    transition: opacity 300ms var(--ease-out), transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .js .hero .marker.is-on { opacity: 1; transform: none; }

  .js .hero .drone { opacity: 0; }
  .js .hero.is-live .drone { opacity: 1; transition: opacity 400ms var(--ease-out) 500ms; }

  /* Hover bob + rotor shimmer once the drone has arrived */
  .drone.is-hovering .drone__body { animation: bob 3.2s ease-in-out infinite; }
  .drone .rotor { transform-box: fill-box; transform-origin: center; animation: rotor 0.14s linear infinite alternate; }
  .is-paused .drone__body,
  .is-paused .rotor,
  .is-paused .heat { animation-play-state: paused; }

  /* Steps line */
  .js .steps-wrap[data-draw] .steps__line .draw { transition-duration: 1.8s; }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes rotor {
  from { transform: scaleX(1); }
  to { transform: scaleX(0.3); }
}

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