/* ==========================================================================
   P2 Comsports International — main stylesheet
   Light theme. Palette sampled from client photography and the P² logo.
   Photo-backed sections re-scope the text tokens — see "media scope" below.
   ========================================================================== */

/* --------------------------------------------------------------- tokens */
:root {
  /* page surfaces — white base, warm neutral bands */
  --page: #ffffff;
  --surface: #f7f6f3;
  --surface-2: #f1efea;
  --surface-3: #e9e6df;

  /* kept for scrims, button text and the ink end of the scale */
  --black: #050506;

  /* accent — logo amber for fills, deep amber wherever it carries text */
  --amber: #f0a81e;
  --amber-bright: #f0c000;
  --amber-deep: #7d5710;

  /* warm neutrals — court walkway concrete */
  --sand: #c1a992;
  --sand-pale: #ede4d9;
  --paper: #f7f4ef;
  --tech-grey: #dfe4e4;

  /* text — dark on light by default */
  --ink: #0d0d0f;
  --ink-soft: #45433f;
  --text: #16161a;
  --text-soft: #4d4b46;
  --text-faint: #6a6761;

  /* lines */
  --line: rgba(13, 13, 15, 0.13);
  --line-strong: rgba(13, 13, 15, 0.26);
  --line-dark: rgba(10, 10, 11, 0.14);

  /* focus ring — dark on light, re-scoped to bright inside media sections */
  --focus: #7d5710;

  /* panel — the warm sand band that breaks up the white */
  --panel-bg: var(--sand-pale);
  --panel-bg-2: #e2d7c8;
  --panel-ink: var(--ink);
  --panel-ink-soft: var(--ink-soft);
  --panel-line: var(--line-dark);
  --tech-bg: var(--tech-grey);

  /* type */
  --font-display: "Chakra Petch", "Segoe UI Semibold", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;

  --fs-micro: 0.75rem;
  --fs-sm: clamp(0.875rem, 0.4vw + 0.79rem, 0.9375rem);
  --fs-body: clamp(1rem, 0.35vw + 0.93rem, 1.125rem);
  --fs-lede: clamp(1.125rem, 0.7vw + 0.98rem, 1.375rem);
  --fs-h4: clamp(1.0625rem, 0.5vw + 0.96rem, 1.25rem);
  --fs-h3: clamp(1.25rem, 1.1vw + 1rem, 1.75rem);
  --fs-h2: clamp(1.875rem, 3vw + 1.1rem, 3rem);
  --fs-h1: clamp(2.25rem, 5.2vw + 0.9rem, 4.25rem);
  --fs-hero: clamp(2.75rem, 7.6vw + 0.5rem, 6rem);
  --fs-figure: clamp(2.5rem, 4vw + 1.4rem, 4rem);

  /* space */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  --section-y: clamp(3.5rem, 8vw, 7rem);
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --container: 78rem;
  --measure: 38rem;

  --radius: 2px;
  --radius-lg: 4px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.45s;
}

/* ----------------------------------------------------------- media scope
   Sections laid over photography keep their dark scrims. Re-declaring the
   text tokens here flips every descendant to light-on-dark in one place,
   so no component needs to know which context it is in. */
body[data-hero="media"] .hero,
.track,
.cta-band,
body[data-hero="media"] .header:not(.is-stuck),
.drawer {
  --text: #f2f0ec;
  --text-soft: #c6c3bd;
  --text-faint: #a5a29c;
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.3);
  --amber-deep: var(--amber);
  --focus: var(--amber-bright);
  color: var(--text);
}

/* This site commits to a single light theme rather than following the OS.
   The tokens above are the single point of change if a dark variant is
   wanted later — no component rule hardcodes a colour. */

/* ------------------------------------------------------------ base reset */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; }
h4 { font-size: var(--fs-h4); line-height: 1.25; letter-spacing: 0; }

p { margin: 0 0 var(--space-sm); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

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

button { font: inherit; color: inherit; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--space-lg) 0;
}

::selection { background: var(--amber); color: var(--black); }

/* ------------------------------------------------------- focus & a11y */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -100px;
  z-index: 999;
  background: var(--amber);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 700;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: var(--space-sm); }

.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;
}

/* ----------------------------------------------------------- structure */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--dark { background: var(--surface); }
.section--darker { background: var(--page); }
.section--raised { background: var(--surface-2); }

.section--panel {
  background: var(--panel-bg);
  color: var(--panel-ink);
}
.section--panel h2,
.section--panel h3,
.section--panel h4 { color: var(--panel-ink); }
.section--panel p { color: var(--panel-ink-soft); }

.section--tech { background: var(--tech-bg); color: var(--ink); }

/* thin amber rule that opens most sections */
.section__rule {
  width: 3.5rem;
  height: 3px;
  background: var(--amber);
  margin-bottom: var(--space-md);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin: 0 0 var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
}
.eyebrow__index {
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.section--panel .eyebrow__index,
.section--tech .eyebrow__index { color: var(--ink-soft); }
.section--panel .eyebrow,
.section--tech .eyebrow { color: var(--amber-deep); }
.section--panel .section__rule,
.section--tech .section__rule { background: var(--amber-deep); }

.section__head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section__head--split {
  display: grid;
  gap: var(--space-md) var(--space-xl);
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 56rem) {
  .section__head--split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--text-soft);
  max-width: 34rem;
}
.section--panel .lede,
.section--tech .lede { color: var(--panel-ink-soft); }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  min-height: 3rem;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--amber); color: var(--black); border-color: var(--amber); }
.btn--primary:hover { background: var(--amber-bright); border-color: var(--amber-bright); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--amber-deep); color: var(--amber-deep); }
.hero .btn--ghost:hover,
.cta-band .btn--ghost:hover { border-color: var(--amber); color: var(--amber); }

.btn--dark { background: var(--black); color: var(--paper); border-color: var(--black); }
.btn--dark:hover { background: var(--surface-2); }

.btn[disabled],
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

/* text link with an amber underline that draws in */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--amber-deep);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--amber-deep), var(--amber-deep));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--dur) var(--ease);
}
.link:hover { background-size: 100% 2px; }
.link__arrow { transition: transform var(--dur) var(--ease); }
.link:hover .link__arrow { transform: translateX(4px); }
.section--panel .link,
.section--tech .link {
  color: var(--amber-deep);
  background-image: linear-gradient(var(--amber-deep), var(--amber-deep));
}

/* -------------------------------------------------------------- header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              backdrop-filter var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

/* Pages without a photographic hero need a solid header from the first
   pixel, or the light nav would sit on white. */
body:not([data-hero="media"]) .header {
  background: var(--page);
  border-bottom-color: var(--line);
}

/* Two logo files, cross-faded, so the mark stays legible against both the
   photograph and the white bar. */
.brand__mark { grid-area: 1 / 1; transition: opacity var(--dur) var(--ease); }
.brand__marks { display: grid; flex-shrink: 0; }
.brand__mark--dark { opacity: 1; }
.brand__mark--light { opacity: 0; }
body[data-hero="media"] .header:not(.is-stuck) .brand__mark--dark { opacity: 0; }
body[data-hero="media"] .header:not(.is-stuck) .brand__mark--light { opacity: 1; }
.drawer .brand__mark--dark { opacity: 0; }
.drawer .brand__mark--light { opacity: 1; }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand__mark { width: auto; height: 2.15rem; }
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text);
}
.brand__sub {
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.nav { display: none; }
@media (min-width: 62rem) {
  .nav { display: flex; align-items: center; gap: clamp(1.1rem, 2vw, 2rem); }
}
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2rem);
  list-style: none;
}
.nav__link {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-soft);
  padding-block: 0.4rem;
  transition: color var(--dur) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}
@media (min-width: 62rem) { .nav-toggle { display: none; } }
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--black);
  color: var(--text);
  padding: 6rem var(--gutter) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0.4s;
}
.drawer.is-open { transform: translateX(0); visibility: visible; }
@media (min-width: 62rem) { .drawer { display: none; } }
.drawer__list { list-style: none; display: flex; flex-direction: column; }
.drawer__list li { border-bottom: 1px solid var(--line); }
.drawer__link {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}
.drawer__link[aria-current="page"] { color: var(--amber); }
.drawer__num {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.drawer__foot { margin-top: auto; display: grid; gap: var(--space-sm); }
.drawer__contact {
  font-size: var(--fs-sm);
  color: var(--text-soft);
  text-decoration: none;
  display: block;
}
.drawer__contact:hover { color: var(--amber); }

body.nav-open { overflow: hidden; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: min(94svh, 54rem);
  display: flex;
  align-items: flex-end;
  padding-top: 8rem;
  padding-bottom: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
  background: var(--page);
}
body[data-hero="media"] .hero { background: var(--black); }
.hero--compact {
  min-height: auto;
  padding-top: clamp(8rem, 16vw, 11rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  align-items: flex-start;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5,5,6,0.86) 0%, rgba(5,5,6,0.34) 32%, rgba(5,5,6,0.5) 62%, rgba(5,5,6,0.94) 100%),
    linear-gradient(90deg, rgba(5,5,6,0.86) 0%, rgba(5,5,6,0.42) 48%, rgba(5,5,6,0.12) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__title { font-size: var(--fs-hero); letter-spacing: -0.025em; }
.hero__title em {
  font-style: normal;
  color: var(--amber);
}
.hero__lede {
  font-size: var(--fs-lede);
  color: var(--text-soft);
  max-width: 36rem;
  margin-top: var(--space-md);
  line-height: 1.55;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-family: var(--font-display);
  font-weight: 600;
}

/* one page-load animation */
.reveal { opacity: 0; transform: translateY(24px); }
.js .hero .reveal {
  animation: rise 0.9s var(--ease) forwards;
}
.js .hero .reveal:nth-child(1) { animation-delay: 0.05s; }
.js .hero .reveal:nth-child(2) { animation-delay: 0.16s; }
.js .hero .reveal:nth-child(3) { animation-delay: 0.27s; }
.js .hero .reveal:nth-child(4) { animation-delay: 0.38s; }
.js .hero .reveal:nth-child(5) { animation-delay: 0.49s; }
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}
html:not(.js) .reveal { opacity: 1; transform: none; }

/* scroll-triggered reveal for later sections */
.js .on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .on-scroll.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------ breadcrumbs */
.breadcrumb { font-size: var(--fs-sm); }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  color: var(--text-faint);
}
.breadcrumb li { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumb li + li::before { content: "/"; color: var(--text-faint); }
.breadcrumb a { color: var(--text-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--amber); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* ------------------------------------------------------------- stats */
.stats {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat {
  background: var(--page);
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 3vw, 2rem);
}
.stat__figure {
  font-family: var(--font-display);
  font-size: var(--fs-figure);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--amber-deep);
}
.stat__label {
  margin-top: var(--space-2xs);
  font-size: var(--fs-sm);
  color: var(--text-soft);
  max-width: 20rem;
}
.stats__note {
  font-size: var(--fs-micro);
  color: var(--text-faint);
  margin-top: var(--space-md);
  max-width: 46rem;
}

/* -------------------------------------------------------- track cards */
.tracks {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
  list-style: none;
}
@media (min-width: 48rem) { .tracks { grid-template-columns: repeat(3, 1fr); } }

.track {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 24rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--black);
  isolation: isolate;
}
.track__media { position: absolute; inset: 0; z-index: -2; }
.track__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.track::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5,5,6,0.42) 0%, rgba(5,5,6,0.8) 55%, rgba(5,5,6,0.96) 100%);
  transition: background 0.5s var(--ease);
}
.track:hover .track__media img { transform: scale(1.05); }
.track:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.track__body {
  margin-top: auto;
  padding: var(--space-md) var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}
.track__index {
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--amber);
}
.track__title { font-size: var(--fs-h3); }
.track__title a { text-decoration: none; }
.track__title a::after { content: ""; position: absolute; inset: 0; }
.track__title a:focus-visible { outline: none; }
.track__text { font-size: var(--fs-sm); color: var(--text-soft); }
.track__cta {
  margin-top: var(--space-2xs);
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  gap: 0.5em;
}
.track:hover .track__cta .link__arrow { transform: translateX(4px); }

/* -------------------------------------------------------- feature grid */
.features {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  grid-template-columns: 1fr;
  list-style: none;
}
@media (min-width: 40rem) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: var(--page);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  transition: background-color var(--dur) var(--ease);
}
.feature:hover { background: var(--surface-2); }
.feature__index {
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--amber-deep);
  margin-bottom: var(--space-2xs);
}
.feature__title { font-size: var(--fs-h4); }
.feature p { font-size: var(--fs-sm); color: var(--text-soft); }

.section--panel .features { background: var(--panel-line); border-color: var(--panel-line); }
.section--panel .feature { background: var(--panel-bg); }
.section--panel .feature:hover { background: var(--panel-bg-2); }
.section--panel .feature p { color: var(--panel-ink-soft); }

/* ------------------------------------------------------- split blocks */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 56rem) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--reverse .split__media { order: 2; }
}
.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
}
.split__media img { width: 100%; height: auto; }
.split__body > * + * { margin-top: var(--space-sm); }

/* checklist */
.checklist { list-style: none; display: grid; gap: var(--space-xs); margin-top: var(--space-md); }
.checklist li {
  position: relative;
  padding-left: 1.85rem;
  font-size: var(--fs-sm);
  color: var(--text-soft);
  max-width: var(--measure);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--amber-deep);
  clip-path: polygon(0 38%, 38% 100%, 100% 0, 100% 22%, 38% 100%, 0 60%);
}
.section--panel .checklist li { color: var(--panel-ink-soft); }
.section--panel .checklist li::before { background: var(--amber-deep); }

/* --------------------------------------------------------- proof grid */
.proof {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
  list-style: none;
}
@media (min-width: 48rem) { .proof { grid-template-columns: repeat(3, 1fr); } }
.proof__item { display: flex; flex-direction: column; gap: var(--space-xs); }
.proof__media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.proof__caption { border-left-color: var(--amber-deep); }
/* Source photographs vary in aspect ratio; a fixed box keeps the three
   cards the same height so their captions align. */
.proof__media { aspect-ratio: 16 / 9; }
.proof__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transition: transform 0.7s var(--ease);
}
.proof__item:hover .proof__media img { transform: scale(1.04); }
.proof__caption {
  font-size: var(--fs-sm);
  color: var(--text-soft);
  padding-left: var(--space-sm);
  border-left: 2px solid var(--amber);
}
.proof__caption strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------- technical figures */
.figures {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
  list-style: none;
}
@media (min-width: 40rem) { .figures { grid-template-columns: repeat(2, 1fr); } }
.figure {
  background: var(--tech-bg);
  border: 1px solid rgba(10, 10, 11, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.figure img { width: 100%; height: auto; mix-blend-mode: multiply; }
.figure figcaption {
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  border-top: 1px solid rgba(10, 10, 11, 0.14);
  padding-top: var(--space-xs);
}
.figure figcaption span:last-child { color: var(--amber-deep); }
.section--tech .link { color: var(--amber-deep); }

/* ------------------------------------------------------------- tables */
.spec-table-wrap { overflow-x: auto; margin-top: var(--space-lg); }
.spec-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.spec-table caption {
  text-align: left;
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-bottom: var(--space-sm);
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: var(--space-sm) var(--space-md) var(--space-sm) 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table th {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  width: 34%;
}
.spec-table td { color: var(--text-soft); }
.section--panel .spec-table th { color: var(--panel-ink); }
.section--panel .spec-table td { color: var(--panel-ink-soft); }
.section--panel .spec-table th,
.section--panel .spec-table td { border-bottom-color: var(--panel-line); }
.section--panel .spec-table caption { color: var(--panel-ink-soft); }

/* ------------------------------------------------------- benefit grid */
.benefits {
  display: grid;
  gap: 1px;
  background: var(--panel-line);
  border: 1px solid var(--panel-line);
  grid-template-columns: 1fr;
  list-style: none;
  counter-reset: benefit;
}
@media (min-width: 40rem) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .benefits { grid-template-columns: repeat(3, 1fr); } }
.benefits li {
  counter-increment: benefit;
  background: var(--panel-bg);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  font-size: var(--fs-sm);
  color: var(--panel-ink);
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  font-weight: 500;
}
.benefits li::before {
  content: counter(benefit, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--amber-deep);
  padding-top: 0.2em;
  flex-shrink: 0;
}

/* ------------------------------------------------------------- steps */
.steps { list-style: none; counter-reset: step; display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 56rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  counter-increment: step;
  background: var(--page);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--amber-deep);
  margin-bottom: var(--space-2xs);
}
.step h3 { font-size: var(--fs-h4); }
.step p { font-size: var(--fs-sm); color: var(--text-soft); }

/* ---------------------------------------------------------- CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--black);
  isolation: isolate;
}
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5,5,6,0.96) 0%, rgba(5,5,6,0.82) 55%, rgba(5,5,6,0.6) 100%);
}
.cta-band__inner { max-width: 44rem; }
.cta-band h2 { font-size: var(--fs-h2); }
.cta-band p { color: var(--text-soft); margin-top: var(--space-sm); }

/* -------------------------------------------------------------- forms */
.form { display: grid; gap: var(--space-md); }
.form__grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}
@media (min-width: 44rem) { .form__grid { grid-template-columns: repeat(2, 1fr); } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.field .req { color: var(--amber); }
.field__hint { font-size: var(--fs-micro); color: var(--text-faint); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--page);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--amber-deep) 50%),
                    linear-gradient(135deg, var(--amber-deep) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 1.35rem, calc(100% - 0.8rem) 1.35rem;
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--text-faint); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--amber-deep); background: var(--page); }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #c0392b; }
.field__error {
  font-size: var(--fs-sm);
  color: #a3231a;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  min-height: 0;
}
.field__error:empty { display: none; }
.field__error::before { content: "\26A0"; flex-shrink: 0; }

/* honeypot */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form__response { margin: 0; }
.alert {
  padding: var(--space-md);
  border-radius: var(--radius);
  border-left: 3px solid;
  font-size: var(--fs-sm);
}
.alert--ok { background: rgba(240, 168, 30, 0.14); border-color: var(--amber-deep); color: var(--text); }
.alert--error { background: rgba(192, 57, 43, 0.09); border-color: #c0392b; color: var(--text); }
.alert strong { display: block; font-family: var(--font-display); margin-bottom: 0.25rem; }

.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); }
.spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(5, 5, 6, 0.3);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form__legal { font-size: var(--fs-micro); color: var(--text-faint); max-width: 34rem; }
.form__legal a { color: var(--text-soft); }

.noscript-note {
  padding: var(--space-md);
  border: 1px solid var(--amber-deep);
  border-radius: var(--radius);
  background: rgba(240, 168, 30, 0.08);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-md);
}

/* ------------------------------------------------------- contact rail */
.contact-rail { display: grid; gap: var(--space-lg); align-content: start; }
.contact-rail__item { display: grid; gap: 0.3rem; }
.contact-rail__label {
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.contact-rail__value {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  word-break: break-word;
}
a.contact-rail__value:hover { color: var(--amber-deep); }

/* ------------------------------------------------------------ footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-block: var(--space-xl) var(--space-lg);
}
.footer__top {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 48rem) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 64rem) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer__brand-text { font-size: var(--fs-sm); color: var(--text-soft); margin-top: var(--space-sm); max-width: 24rem; }
.footer__heading {
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--space-sm);
}
.footer__list { list-style: none; display: grid; gap: 0.6rem; }
.footer__list a {
  font-size: var(--fs-sm);
  color: var(--text-soft);
  text-decoration: none;
}
.footer__list a:hover { color: var(--amber-deep); text-decoration: underline; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  font-size: var(--fs-micro);
  color: var(--text-faint);
}
.footer__credit { color: var(--text-faint); }
.footer__credit a {
  color: var(--text-soft);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.footer__credit a:hover { color: var(--amber-deep); border-color: var(--amber-deep); }

.social { display: flex; gap: var(--space-2xs); list-style: none; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-soft);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.social a:hover { color: var(--amber-deep); border-color: var(--amber-deep); }
.social svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }

/* --------------------------------------------------- back to top */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--amber);
  color: var(--black);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(13, 13, 15, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--amber-bright); }
.to-top svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
body.cookie-open .to-top { bottom: clamp(9rem, 22vw, 7rem); }

/* ------------------------------------------------------ cookie banner */
.cookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 120;
  background: var(--surface-2);
  color: var(--text);
  border-top: 2px solid var(--amber);
  box-shadow: 0 -12px 40px rgba(13, 13, 15, 0.12);
  padding: var(--space-md) 0;
  transform: translateY(110%);
  transition: transform 0.45s var(--ease);
}
.cookie.is-open { transform: none; }
.cookie__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  justify-content: space-between;
}
.cookie__text { font-size: var(--fs-sm); color: var(--text-soft); max-width: 46rem; }
.cookie__text a { color: var(--amber-deep); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.cookie__actions .btn { min-height: 2.75rem; padding: 0.55rem 1.25rem; font-size: 0.8125rem; }

/* -------------------------------------------------------- error pages */
.error-page {
  min-height: 70svh;
  display: flex;
  align-items: center;
  padding-block: clamp(6rem, 14vw, 10rem);
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 18vw, 11rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--amber-deep);
}

/* ---------------------------------------------------------- prose */
.prose { max-width: 42rem; }
.prose h2 { margin-top: var(--space-xl); margin-bottom: var(--space-sm); }
.prose h3 { margin-top: var(--space-lg); margin-bottom: var(--space-xs); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-soft); }
.prose ul, .prose ol { margin: 0 0 var(--space-sm) 1.25rem; display: grid; gap: 0.4rem; }
.prose li { padding-left: 0.25rem; }
.prose a { color: var(--amber-deep); }
.prose__meta { font-size: var(--fs-sm); color: var(--text-faint); margin-bottom: var(--space-lg); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin-bottom: var(--space-md); }
.prose th, .prose td { text-align: left; padding: var(--space-xs) var(--space-sm) var(--space-xs) 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--font-display); color: var(--text); }
.prose td { color: var(--text-soft); }

/* --------------------------------------------------------- utilities */
.flow > * + * { margin-top: var(--space-sm); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.text-center { text-align: center; }
.max-measure { max-width: var(--measure); }

/* ------------------------------------------------- touch target sizing
   Below 62rem the site is being used by thumb, so every interactive
   element gets at least a 44px high hit area. Padding is used rather than
   height so the visual rhythm of the text is unchanged.               */
@media (max-width: 47.99rem) {
  /* Ragged wrapping reads as an accident. Two even columns instead. */
  .hero__meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xs) var(--space-sm);
  }
}

@media (max-width: 61.99rem) {
  .footer__list { gap: 0; }
  .footer__list a,
  .drawer__contact,
  .breadcrumb a,
  .breadcrumb [aria-current="page"] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: 0.35rem;
  }

  .footer__bottom { gap: var(--space-2xs); }
  .footer__bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 0.15rem;
  }

  .link { min-height: 44px; align-items: center; }

  .brand { padding-block: 0.35rem; }

  .prose a { padding-block: 0.15rem; }

  /* The banner must inform without swallowing the page. */
  .cookie { padding: var(--space-sm) 0; }
  .cookie__inner { gap: var(--space-sm); }
  .cookie__text { font-size: 0.8125rem; line-height: 1.5; }
  .cookie__actions { width: 100%; }
  .cookie__actions .btn { flex: 1 1 auto; min-height: 44px; }
}

/* ------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .js .on-scroll { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------- print */
@media print {
  .header, .drawer, .footer, .cookie, .to-top, .nav-toggle,
  .hero__media, .hero__scrim, .track__media, .cta-band__media,
  .form, .btn, .noscript-note { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; font-size: 11pt; }
  h1, h2, h3, h4, p, li, td, th { color: #000 !important; }
  .section { padding-block: 1rem; border-bottom: 1px solid #ccc; }
  a { text-decoration: underline; color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .hero { min-height: auto; padding: 1rem 0; }
  img { max-width: 45% !important; }
}
