/* ==========================================================================
   Haql Labs — design system, instrument edition
   Plain CSS. No build step, no CDN, no trackers.
   Dark-first instrument panel: black canvas, amber signal, numbered sections,
   ruled data rows. Light mode is an inversion of the same system.
   ========================================================================== */

/* ---------- fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */
:root {
  color-scheme: dark light;

  --bg: #0a0b0a;
  --bg-2: #0f110f;
  --surface: #111311;
  --surface-2: #171a17;

  --line: #242723;
  --line-2: #383d35;

  --ink: #efebe0;
  --ink-2: #a9a89e;
  --ink-3: #76766c;
  --ink-inverse: #0a0b0a;

  /* one signal: instrument amber */
  --accent: #e8b64a;
  --accent-strong: #f7cf7c;
  --accent-soft: #241d0c;
  --accent-line: #4a3d18;
  --on-accent: #0a0b0a;

  --high: #ff8f7d;
  --high-soft: #2a1410;
  --med: #e8b64a;
  --med-soft: #241d0c;
  --ok: #7ede9f;
  --ok-soft: #0e2417;

  --display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.1875rem;
  --fs-lg: clamp(1.15rem, 1.5vw, 1.35rem);
  --fs-xl: clamp(1.45rem, 2.3vw, 1.9rem);
  --fs-2xl: clamp(1.8rem, 3.2vw, 2.7rem);
  --fs-3xl: clamp(2.4rem, 5.6vw, 4.6rem);

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --section: clamp(3.5rem, 6.5vw, 5.5rem);

  --r-sm: 0;
  --r-md: 0;
  --r-lg: 0;
  --r-pill: 0;

  --wrap: 1200px;
  --wrap-narrow: 720px;
  --hdr-h: 60px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f0e7;
    --bg-2: #e9e5d8;
    --surface: #faf8f1;
    --surface-2: #efece0;

    --line: #d5cfbe;
    --line-2: #b3ac96;

    --ink: #14130f;
    --ink-2: #4d4a3f;
    --ink-3: #6b6759;
    --ink-inverse: #f3f0e7;

    --accent: #96650d;
    --accent-strong: #6d4a08;
    --accent-soft: #f0e3c4;
    --accent-line: #cdb179;
    --on-accent: #fffaef;

    --high: #9d2318;
    --high-soft: #f7e7e2;
    --med: #8a5c07;
    --med-soft: #f6ecd6;
    --ok: #0b6a41;
    --ok-soft: #e2f0e6;
  }
}

/* ---------- reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  font-family: var(--body);
  font-size: var(--fs-base);
  line-height: 1.65;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
strong,
b {
  font-weight: 600;
  color: var(--ink);
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
  color: var(--ink);
}
p {
  text-wrap: pretty;
}
code,
kbd,
samp,
pre {
  font-family: var(--mono);
}
::selection {
  background: var(--accent);
  color: var(--on-accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
section[id] {
  scroll-margin-top: calc(var(--hdr-h) + 12px);
}

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

/* ---------- layout utilities ---------- */
.wrap {
  width: min(var(--wrap), 100% - 2 * clamp(1.25rem, 4vw, 2.5rem));
  margin-inline: auto;
}
.wrap--narrow {
  width: min(var(--wrap-narrow), 100% - 2 * clamp(1.25rem, 4vw, 2.5rem));
}
.mono {
  font-family: var(--mono);
  font-size: 0.9em;
}
.muted {
  color: var(--ink-2);
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1.35rem;
}
.mt-5 {
  margin-top: 2.5rem;
}
.mb-4 {
  margin-bottom: 1.35rem;
}
.fine {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--ink-3);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 999;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.7rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.skip:focus {
  top: 0;
  color: var(--on-accent);
}

/* ---------- header ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.hdr__in {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--hdr-h);
}
.brand,
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex: none;
}
.brand:hover,
.logo:hover {
  color: var(--ink);
  text-decoration: none;
}
.brand__mark,
.logo__mar {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: none;
}
.brand__word {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18rem;
}
.brand__lab {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.logo__dot {
  color: var(--accent);
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.nav a,
.nav summary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  padding: 0.55rem 0.65rem;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s var(--ease);
}
.nav a:hover,
.nav summary:hover {
  color: var(--ink);
  text-decoration: none;
}
.nav a[aria-current="page"] {
  color: var(--accent);
}
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.15rem;
  height: 1px;
  background: var(--accent);
}
.nav__cta {
  margin-left: 0.8rem;
  background: var(--accent);
  color: var(--on-accent) !important;
  padding: 0.5rem 0.9rem;
}
.nav__cta:hover {
  background: var(--accent-strong);
  color: var(--on-accent) !important;
}

/* product menu — <details>, works without JS */
.menu {
  position: relative;
}
.menu > summary {
  list-style: none;
}
.menu > summary::-webkit-details-marker {
  display: none;
}
.menu > summary::after {
  content: "";
  width: 4px;
  height: 4px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s var(--ease);
}
.menu[open] > summary::after {
  transform: rotate(225deg) translateY(-2px);
}
.menu__panel {
  position: fixed;
  top: calc(var(--hdr-h) + 0.3rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, calc(100vw - 2rem));
  background: var(--bg);
  border: 1px solid var(--line-2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.menu__item {
  display: block;
  padding: 0.65rem 0.8rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.menu__item:hover,
.menu__item[aria-current="page"] {
  background: var(--surface-2);
}
.menu__item[aria-current="page"] b {
  color: var(--accent);
}
.menu > summary[data-active="true"] {
  color: var(--accent);
}
.menu__item b {
  display: block;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.menu__item span {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.5;
  margin-top: 0.15rem;
}
.menu__all {
  grid-column: 1 / -1;
  margin-top: 0;
  padding: 0.65rem 0.8rem;
  border-top: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
}

.burger {
  display: none;
  margin-left: auto;
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-2);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.burger span {
  display: block;
  width: 15px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 1020px) {
  .burger {
    display: flex;
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line-2);
    padding: 0.5rem clamp(1.25rem, 4vw, 2.5rem) 1rem;
    max-height: calc(100vh - var(--hdr-h));
    max-height: calc(100dvh - var(--hdr-h));
    overflow-y: auto;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a,
  .nav summary {
    padding: 0.85rem 0;
    font-size: 0.72rem;
    border-bottom: 1px solid var(--line);
  }
  .nav a[aria-current="page"]::after {
    display: none;
  }
  .nav__cta {
    margin: 0.8rem 0 0;
    justify-content: center;
    padding: 0.85rem 1rem;
    border-bottom: 0;
  }
  .menu {
    width: 100%;
  }
  .menu > summary {
    width: 100%;
    justify-content: space-between;
  }
  .menu__panel {
    position: static;
    transform: none;
    width: auto;
    border: 0;
    border-left: 1px solid var(--line-2);
    margin: 0.3rem 0 0.6rem 0.2rem;
    grid-template-columns: 1fr;
  }
  .menu__item {
    padding: 0.5rem 0.6rem;
  }
}

/* ---------- section furniture ---------- */
main {
  counter-reset: sec;
}
.sec {
  counter-increment: sec;
  padding: var(--section) 0;
  border-top: 1px solid var(--line);
}
.sec--alt {
  background: var(--bg-2);
}
.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.6rem;
  max-width: none;
}
.sec > .wrap > .eyebrow::before {
  content: counter(sec, decimal-leading-zero);
  color: var(--accent);
  letter-spacing: 0.04em;
  flex: none;
}
.sec > .wrap > .eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  align-self: center;
}
.lede {
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}
.lede--c {
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
  max-width: 64ch;
}
.sec h2 {
  font-size: var(--fs-2xl);
  margin-bottom: 1rem;
  max-width: 26ch;
}
.sec p {
  max-width: 70ch;
}
.sec .lede {
  margin-bottom: 1.4rem;
}

/* ---------- buttons ---------- */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.3rem;
  border: 1px solid transparent;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: background 0.15s var(--ease), color 0.15s var(--ease),
    border-color 0.15s var(--ease);
}
.btn:hover {
  text-decoration: none;
}
.btn--p {
  background: var(--accent);
  color: var(--on-accent);
}
.btn--p:hover {
  background: var(--accent-strong);
  color: var(--on-accent);
}
.btn--s {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--s:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--sm {
  padding: 0.5rem 0.8rem;
  font-size: 0.64rem;
}
.btn--lg {
  padding: 1rem 1.6rem;
  font-size: 0.78rem;
}
.btn--text {
  padding: 0.4rem 0;
  color: var(--accent);
  background: none;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem);
  border-top: 0;
}
.hero__in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(1.75rem, 4.5vw, 3.5rem);
  align-items: start;
}
.hero__copy {
  min-width: 0;
}
.hero h1 {
  font-size: var(--fs-3xl);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin-bottom: 1.4rem;
  max-width: 17ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero .lede {
  margin-bottom: 1.9rem;
  max-width: 46ch;
}
.reassure {
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.7;
  color: var(--ink-3);
  margin-top: 1.3rem;
  max-width: 56ch;
}
.reassure b {
  color: var(--ink-2);
  font-weight: 500;
}
.reassure code {
  font-size: 0.95em;
  background: var(--surface);
  padding: 0.05rem 0.25rem;
}
@media (max-width: 920px) {
  .hero__in {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    max-width: 20ch;
  }
}

/* hero proof strip */
.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.4rem;
  margin-top: 2rem;
  padding: 0.8rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.proof li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.proof li::before {
  content: "";
  width: 3px;
  height: 3px;
  background: var(--accent);
  flex: none;
}

/* ---------- instrument panel ---------- */
.hero__panel,
.panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line-2);
  overflow: hidden;
}
.panel__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  flex: none;
}
.panel__body {
  margin: 0;
  padding: 1rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.75;
  overflow-x: auto;
  color: var(--ink-2);
  tab-size: 2;
}
.panel__body .k {
  color: var(--accent);
}
.panel__body .s,
.panel__body .g {
  color: var(--ok);
  font-weight: 600;
}
.panel__body .n,
.panel__body .y {
  color: var(--med);
  font-weight: 600;
}
.panel__body .c {
  color: var(--ink-3);
  font-style: italic;
}
.panel__body .r,
.panel__body .w {
  color: var(--high);
  font-weight: 600;
}
.panel__body .b {
  color: var(--accent);
  font-weight: 600;
}
.panel__cap {
  padding: 0.8rem 1.1rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.62rem;
  line-height: 1.7;
  color: var(--ink-3);
  max-width: none;
}
.panel__cap code {
  background: var(--surface-2);
  padding: 0.05rem 0.25rem;
}
.copy {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: transparent;
  border: 1px solid var(--line-2);
  padding: 0.2rem 0.4rem;
  cursor: pointer;
}
.copy:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- product suite — numbered ruling, not tiles ---------- */
.tools,
.suite {
  display: block;
  border-top: 1px solid var(--line-2);
  counter-reset: tool;
}
.tool,
.product {
  position: relative;
  display: grid;
  grid-template-columns: 2.2rem 13rem minmax(0, 1fr) 11rem;
  gap: 0.35rem 1.75rem;
  align-items: baseline;
  padding: 1.5rem 0.25rem;
  border-bottom: 1px solid var(--line);
  background: none;
  transition: background 0.12s var(--ease);
}
.tool::before,
.product::before {
  counter-increment: tool;
  content: counter(tool, decimal-leading-zero);
  grid-column: 1;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.tool:hover,
.product:hover {
  background: var(--surface);
}
.tool__hd,
.product__hd {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  grid-column: 2;
}
.tool__hd h3,
.product h3 {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.tool > p,
.product p {
  grid-column: 3;
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 58ch;
  margin: 0;
}
.tool > p.fine,
.product > p.fine {
  grid-column: 4;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
}
.tool .btn {
  grid-column: 4;
  justify-self: end;
}
.product__meta {
  grid-column: 4;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
}
.product__link {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 1px;
}
.product__link:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.product__link::after {
  content: " →";
}
.pill {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pill::before {
  content: "· ";
}
.pill--open {
  color: var(--ok);
}
@media (max-width: 980px) {
  .tool,
  .product {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.4rem 0.9rem;
    padding: 1.3rem 0;
  }
  .tool__hd,
  .product__hd,
  .tool > p,
  .product p,
  .tool > p.fine,
  .product > p.fine,
  .product__meta,
  .tool .btn {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }
  .product__meta {
    align-items: flex-start;
  }
  .tool::before,
  .product::before {
    grid-row: 1 / span 4;
  }
  .tool .btn {
    margin-top: 0.3rem;
  }
}

/* feature grid (kept for other pages) */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.feature {
  padding-top: 1rem;
  border-top: 1px solid var(--line-2);
}
.feature:nth-child(2) {
  border-top-color: var(--accent);
}
.feature h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.feature p {
  font-size: 0.9rem;
  color: var(--ink-2);
}
.feature__num {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 1.2rem;
}

/* ---------- how it works ---------- */
.diagram {
  margin: 0 0 2.5rem;
}
.diagram svg {
  width: 100%;
  height: auto;
}
.diagram .node {
  fill: var(--surface);
  stroke: var(--line-2);
  stroke-width: 1;
}
.diagram .node--accent {
  fill: var(--accent-soft);
  stroke: var(--accent-line);
}
.diagram .wire {
  stroke: var(--line-2);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.diagram .label {
  fill: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
}
.diagram .sub {
  fill: var(--ink-3);
  font-family: var(--mono);
  font-size: 9.5px;
}
.diagram text {
  pointer-events: none;
}

.flow {
  list-style: none;
  counter-reset: f;
  display: grid;
  gap: 0;
  margin: 0 0 2.5rem;
  padding: 0;
  border-top: 1px solid var(--line-2);
}
.flow > li {
  counter-increment: f;
  display: grid;
  grid-template-columns: 2.6rem 10rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.flow > li::before {
  content: counter(f, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.flow b {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.flow span {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.6;
}
@media (max-width: 680px) {
  .flow > li {
    grid-template-columns: 2rem 1fr;
    gap: 0.3rem 0.7rem;
    padding: 1rem 0;
  }
  .flow > li::before {
    grid-row: 1 / span 2;
  }
  .flow b,
  .flow span {
    grid-column: 2;
  }
}
@supports selector(:has(*)) {
  .flow:has(> .step) {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
    gap: 1.25rem;
    border-top: 0;
  }
}
.flow > .step {
  padding: 1rem 0 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 0;
}
.flow > .step:hover {
  border-top-color: var(--accent);
}
.flow > .step b {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.flow > .step h4 {
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}
.flow > .step p {
  font-size: 0.88rem;
  color: var(--ink-2);
}

.ben {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.ben > div {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line-2);
}
.ben b {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.ben p {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ---------- use cases ---------- */
.usecases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.usecase {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-2);
}
.usecase h3 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
}
.usecase p {
  font-size: 0.88rem;
  color: var(--ink-2);
  margin-bottom: 0.7rem;
}
.usecase a {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.usecase a::after {
  content: " →";
}

/* ---------- technical credibility ---------- */
.cred {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) {
  .cred {
    grid-template-columns: 1fr;
  }
}
.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.spec caption {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 0.6rem;
}
.spec th,
.spec td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}
.spec th {
  width: 42%;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-right: 1rem;
}
.spec td {
  color: var(--ink-2);
}
.spec tr:last-child th,
.spec tr:last-child td {
  border-bottom: 1px solid var(--line);
}

.proofbox {
  border-left: 2px solid var(--accent);
  padding: 0.2rem 0 0.2rem 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.proofbox h3 {
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
}
.proofbox p + p {
  margin-top: 0.65rem;
}
.proofbox .fine {
  margin-top: 0.75rem;
}

.doclinks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}
.doclinks a {
  display: block;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line-2);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.doclinks a:hover {
  color: var(--accent);
}
.doclinks span {
  display: block;
  font-size: 0.6rem;
  color: var(--ink-3);
  margin-top: 0.2rem;
}

/* ---------- problem / pains ---------- */
.pains {
  display: block;
  margin-bottom: 2.5rem;
  counter-reset: pain;
  border-top: 1px solid var(--line-2);
}
.pain {
  counter-increment: pain;
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0 1rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}
.pain::before {
  content: counter(pain, decimal-leading-zero);
  grid-row: 1 / span 2;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding-top: 0.2rem;
}
.pain h3 {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}
.pain p {
  font-size: 0.9rem;
  color: var(--ink-2);
  max-width: 68ch;
}
@media (max-width: 600px) {
  .pain {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0 0.6rem;
  }
}

.anchor {
  border-left: 2px solid var(--accent);
  padding: 0.2rem 0 0.2rem 1.25rem;
  margin-bottom: 2rem;
}
.anchor p:first-child {
  margin-bottom: 0.5rem;
  font-size: var(--fs-md);
}
.anchor .fine {
  max-width: 68ch;
}

/* ---------- input / output ---------- */
.io {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-bottom: 1.75rem;
}
@media (max-width: 640px) {
  .io {
    grid-template-columns: 1fr;
  }
}
.io__b {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line-2);
}
.io__b h4 {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.5rem;
}
.io__b p {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.62;
}

.juris {
  margin-top: 1.6rem;
  padding: 0.9rem 1.2rem;
  border-left: 2px solid var(--line-2);
  font-size: 0.88rem;
  color: var(--ink-2);
  max-width: 80ch;
}

/* ---------- findings ---------- */
.finding {
  border: 1px solid var(--line);
  border-left: 2px solid var(--high);
  margin-bottom: 2rem;
}
.finding__hd {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  padding: 0.7rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.finding__hd code {
  font-size: 0.78rem;
  color: var(--ink-2);
}
.sev {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.4rem;
}
.sev--high {
  background: var(--high-soft);
  color: var(--high);
}
.finding__msg {
  padding: 0.95rem 1.2rem 0.2rem;
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--ink);
}
.kv {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.kv th,
.kv td {
  padding: 0.6rem 1.2rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}
.kv th {
  width: 130px;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.kv td {
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.78rem;
}
@media (max-width: 560px) {
  .kv th {
    width: 92px;
  }
}

/* ---------- metrics ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr));
  gap: clamp(1rem, 2vw, 2rem);
  margin-bottom: 1.5rem;
}
.stat {
  padding-top: 0.8rem;
  border-top: 1px solid var(--line-2);
  text-align: left;
}
.stat b {
  display: block;
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.stat span {
  display: block;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 0.4rem;
  line-height: 1.5;
}

/* ---------- before / after ---------- */
.after {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: stretch;
  margin-bottom: 2.5rem;
}
@media (max-width: 760px) {
  .after {
    grid-template-columns: 1fr;
  }
  .after__arrow {
    display: none;
  }
}
.after__c {
  border-top: 1px solid var(--line-2);
  padding-top: 0.85rem;
}
.after__c h3 {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
  color: var(--ink-3);
}
.after__c:last-of-type h3 {
  color: var(--accent);
}
.after__c p {
  font-size: 0.9rem;
  color: var(--ink-2);
  margin-bottom: 0.5rem;
  max-width: 46ch;
}
.after__c p:last-child {
  margin-bottom: 0;
}
.after__arrow {
  width: 1px;
  background: var(--line-2);
  font-size: 0;
  color: transparent;
  overflow: hidden;
}

.verify {
  font-size: 0.85rem;
  color: var(--ink-2);
  max-width: 82ch;
  padding: 0.85rem 0 0.85rem 1.2rem;
  border-left: 2px solid var(--line-2);
}

/* ---------- expandable check list ---------- */
.ex {
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.6rem;
}
.ex summary {
  padding: 0.85rem 0;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.ex summary::-webkit-details-marker {
  display: none;
}
.ex summary::after {
  content: "+";
  margin-left: auto;
  color: var(--accent);
  font-size: 0.95rem;
}
.ex[open] summary::after {
  content: "−";
}
.ex summary:hover {
  color: var(--accent);
}
.ex > ul,
.ex > p {
  padding: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--ink-2);
}
.ex > ul {
  margin-bottom: 0.3rem;
  list-style: none;
}
.ex > ul li {
  margin-bottom: 0.45rem;
  position: relative;
  line-height: 1.6;
  padding-left: 1.1rem;
}
.ex > ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 1px;
  background: var(--accent);
}
.ex > p:last-child {
  padding-bottom: 1rem;
}

/* ---------- pricing ---------- */
.svc {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line-2);
}
.svc h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.svc p {
  font-size: 0.88rem;
  color: var(--ink-2);
  max-width: 80ch;
  margin-bottom: 0.5rem;
}
.svc code {
  background: var(--surface);
  padding: 0.08rem 0.28rem;
}
.svc .fine {
  margin-bottom: 0;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-bottom: 1.6rem;
  align-items: start;
}
.tier {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-2);
  padding: 0.9rem 0 0;
}
.tier:hover {
  border-top-color: var(--ink-3);
}
.tier--mid {
  border-top: 2px solid var(--accent);
  padding-top: calc(0.9rem - 1px);
}
.tier--mid::after {
  content: none;
}
.tier--no-badge {
  border-top-color: var(--line-2);
}
.tier h3 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.7rem;
}
.tier--mid h3 {
  color: var(--accent);
}
.tier__p {
  margin-bottom: 0.6rem;
}
.tier__p b {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.tier > p:not(.tier__p) {
  font-size: 0.86rem;
  color: var(--ink-2);
  line-height: 1.6;
  flex: 1;
  max-width: 40ch;
}
.tier .btn {
  margin-top: 1rem;
  align-self: flex-start;
}

/* ---------- about / faq ---------- */
.plain {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-2);
}
.plain li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-2);
}
.plain b {
  color: var(--ink);
}
#faq details {
  border-bottom: 1px solid var(--line);
}
#faq details:first-of-type {
  border-top: 1px solid var(--line-2);
}
#faq summary {
  padding: 0.95rem 2rem 0.95rem 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  position: relative;
}
#faq summary::-webkit-details-marker {
  display: none;
}
#faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.95rem;
}
#faq details[open] summary::after {
  content: "−";
}
#faq summary:hover {
  color: var(--accent);
}
#faq details p {
  padding: 0 0 1.05rem;
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 70ch;
}
#faq .mono {
  background: var(--surface);
  padding: 0.05rem 0.25rem;
}

/* ---------- contact / links ---------- */
#contact .btn {
  margin: 0.6rem 0 1.9rem;
}
.links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 1.25rem;
  margin-bottom: 1.6rem;
}
.links > div {
  padding-top: 0.7rem;
  border-top: 1px solid var(--line-2);
}
.links b {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-bottom: 0.25rem;
}
.links a {
  font-size: 0.8rem;
  font-family: var(--mono);
  word-break: break-word;
}

/* CTA band */
.band {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
}
.band > * {
  min-width: 0;
}
.band h2 {
  color: var(--bg);
  font-size: var(--fs-xl);
  margin-bottom: 0.45rem;
  max-width: 24ch;
}
.band p {
  color: color-mix(in srgb, var(--bg) 72%, transparent);
  font-size: 0.9rem;
  max-width: 52ch;
}
.band .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.band .btn--p {
  background: var(--accent);
  color: var(--on-accent);
}
.band .btn--s {
  border-color: color-mix(in srgb, var(--bg) 40%, transparent);
  color: var(--bg);
}
.band .btn--s:hover {
  background: color-mix(in srgb, var(--bg) 12%, transparent);
  color: var(--bg);
  border-color: var(--bg);
}
@media (max-width: 760px) {
  .band {
    grid-template-columns: 1fr;
  }
}

/* ---------- downloads ---------- */
.dl-os {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}
.dl-os .btn {
  padding: 0.3rem 0.6rem;
  font-size: 0.6rem;
}
.dl-os .na {
  font-family: var(--mono);
  font-size: 0.6rem;
  padding: 0.3rem 0.5rem;
  border: 1px dashed var(--line-2);
  color: var(--ink-3);
}
.dl-meta {
  font-family: var(--mono);
  font-size: 0.62rem;
  line-height: 1.6;
  color: var(--ink-3);
  word-break: break-all;
  margin-top: 0.3rem;
}
.zipbox {
  font-size: 0.84rem;
  line-height: 1.6;
}
.zipbox code {
  white-space: nowrap;
}

/* ---------- footer ---------- */
.ftr {
  border-top: 1px solid var(--line-2);
  padding: clamp(2.25rem, 4.5vw, 3.25rem) 0 1.5rem;
}
.ftr__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 2.25rem;
}
@media (max-width: 860px) {
  .ftr__top {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .ftr__top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
.ftr__brand p {
  font-size: 0.82rem;
  color: var(--ink-3);
  margin-top: 0.75rem;
  max-width: 34ch;
  line-height: 1.65;
}
.ftr__col h2 {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.75rem;
}
.ftr__col ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.ftr__col a {
  font-size: 0.82rem;
  color: var(--ink-2);
  text-decoration: none;
}
.ftr__col a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.ftr__bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.ftr__bottom p {
  max-width: 70ch;
}
.ftr__in {
  text-align: center;
}
.ftr__in p {
  font-size: 0.82rem;
  color: var(--ink-3);
}
.ftr__in .fine {
  margin-top: 0.3rem;
  max-width: 62ch;
  margin-inline: auto;
}
.ftr .logo {
  justify-content: center;
  margin-bottom: 0.6rem;
}

/* ---------- pipeline diagram ---------- */
.machine {
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.1rem, 2.5vw, 1.8rem) 0;
  margin-bottom: 2rem;
}
.machine__lane {
  display: grid;
  grid-template-columns: 1fr auto 1.25fr auto 1fr;
  align-items: stretch;
  gap: clamp(0.5rem, 1.5vw, 1rem);
}
.machine__node,
.machine__core {
  border: 1px solid var(--line-2);
  padding: 0.8rem 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-height: 78px;
}
.machine__core {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.machine__node b,
.machine__core b {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
}
.machine__node span,
.machine__core span {
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--ink-3);
}
.machine__arrow {
  align-self: center;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink-3);
}
.machine__foot {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  max-width: none;
}
@media (max-width: 860px) {
  .machine__lane {
    grid-template-columns: 1fr;
  }
  .machine__arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
  .machine__node,
  .machine__core {
    min-height: 0;
  }
}

/* ---------- reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Photography sections
   ========================================================================== */
.hero--field {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(720px, calc(100vh - var(--hdr-h)));
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  background: #070908;
  color: #efebe0;
}
.hero__media,
.hero__veil {
  position: absolute;
  inset: 0;
}
.hero__media {
  z-index: -2;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
  filter: saturate(0.45) contrast(1.05) brightness(0.75);
}
.hero__veil {
  z-index: -1;
  background: linear-gradient(
      90deg,
      rgba(7, 9, 8, 0.96) 0%,
      rgba(7, 9, 8, 0.86) 38%,
      rgba(7, 9, 8, 0.42) 70%,
      rgba(7, 9, 8, 0.62) 100%
    ),
    linear-gradient(180deg, rgba(7, 9, 8, 0.7) 0%, rgba(7, 9, 8, 0) 35%, rgba(7, 9, 8, 0.6) 100%);
}
.hero--field .wrap {
  position: relative;
  z-index: 1;
}
.hero--field .hero__in {
  align-items: center;
}
.hero--field .eyebrow {
  color: #e8b64a;
}
.hero--field .eyebrow::before {
  content: "";
}
.hero--field h1 {
  color: #efebe0;
  max-width: 15ch;
}
.hero--field h1 em {
  color: #e8b64a;
}
.hero--field .lede {
  color: rgba(239, 235, 224, 0.82);
}
.hero--field .proof {
  border-top-color: rgba(239, 235, 224, 0.22);
  color: rgba(239, 235, 224, 0.62);
}
.hero--field .proof li::before {
  background: #e8b64a;
}
.hero--field .btn--p {
  background: #e8b64a;
  color: #0a0b0a;
}
.hero--field .btn--p:hover {
  background: #f7cf7c;
  color: #0a0b0a;
}
.hero--field .btn--s {
  border-color: rgba(239, 235, 224, 0.34);
  color: #efebe0;
}
.hero--field .btn--s:hover {
  border-color: #e8b64a;
  color: #e8b64a;
}
.hero--field .hero__panel {
  --ink: #efebe0;
  --ink-2: #a9a89e;
  --ink-3: #76766c;
  --surface: #0f110f;
  --line: #242723;
  --accent: #e8b64a;
  --ok: #7ede9f;
  --med: #e8b64a;
  --high: #ff8f7d;
  background: #0f110f;
  border-color: #383d35;
}
.hero__credit {
  position: absolute;
  right: max(1rem, calc((100vw - var(--wrap)) / 2));
  bottom: 0.8rem;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(239, 235, 224, 0.42);
}

/* ---------- field imagery ---------- */
.field {
  background: var(--bg);
}
.field__hd {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.field__hd h2 {
  max-width: 18ch;
  margin-bottom: 0;
}
.field__hd .lede {
  margin: 0;
  max-width: 52ch;
}
.field__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 2px;
}
.field__card {
  position: relative;
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  background: #070908;
}
.field__card--lg {
  grid-row: span 2;
  min-height: 540px;
}
.field__card picture {
  position: absolute;
  inset: 0;
  display: block;
}
.field__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.5) contrast(1.05) brightness(0.8);
  transition: transform 0.7s var(--ease), filter 0.4s var(--ease);
}
.field__card--lg img {
  object-position: center 55%;
}
.field__card:hover img {
  transform: scale(1.02);
  filter: saturate(0.75) contrast(1.05) brightness(0.85);
}
.field__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 7, 6, 0) 30%, rgba(4, 7, 6, 0.9) 100%);
  pointer-events: none;
}
.field__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: clamp(1rem, 2.2vw, 1.5rem);
  color: #efebe0;
}
.field__num {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e8b64a;
  margin-bottom: 0.4rem;
}
.field__cap b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 0.3rem;
}
.field__cap p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(239, 235, 224, 0.72);
  max-width: 38ch;
}
.field__note {
  margin-top: 0.8rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 90ch;
}

/* ---------- field band ---------- */
.field-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #070908;
  color: #efebe0;
  padding: clamp(3rem, 6vw, 4.75rem) 0;
  border-top: 1px solid var(--line);
}
.field-band__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.field-band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 50%;
  filter: saturate(0.35) contrast(1.05) brightness(0.6);
}
.field-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      270deg,
      rgba(7, 9, 8, 0.94) 0%,
      rgba(7, 9, 8, 0.78) 45%,
      rgba(7, 9, 8, 0.3) 100%
    ),
    linear-gradient(180deg, rgba(7, 9, 8, 0.4) 0%, rgba(7, 9, 8, 0.1) 45%, rgba(7, 9, 8, 0.45) 100%);
}
.field-band__in {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 2rem;
  align-items: end;
}
.field-band__copy {
  grid-column: 2;
  max-width: 60ch;
}
.field-band .eyebrow {
  color: #e8b64a;
}
.field-band blockquote {
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 24ch;
  color: #efebe0;
  text-wrap: balance;
}
.field-band blockquote em {
  font-style: normal;
  color: #e8b64a;
}
.field-band__copy > p:not(.eyebrow):not(.field-band__meta) {
  color: rgba(239, 235, 224, 0.72);
  max-width: 48ch;
  font-size: 0.94rem;
}
.field-band__meta {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(239, 235, 224, 0.45);
}
@media (max-width: 920px) {
  .hero--field {
    min-height: 0;
  }
  .hero__media img {
    object-position: center 58%;
  }
  .hero__veil {
    background: linear-gradient(180deg, rgba(7, 9, 8, 0.78) 0%, rgba(7, 9, 8, 0.66) 42%, rgba(7, 9, 8, 0.95) 100%);
  }
  .field__hd {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .field__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .field__card,
  .field__card--lg {
    min-height: 290px;
    grid-row: auto;
  }
  .field-band__in {
    grid-template-columns: 1fr;
  }
  .field-band__copy {
    grid-column: 1;
  }
}
@media (max-width: 640px) {
  .hero--field {
    padding: 2.75rem 0 3rem;
  }
  .hero--field h1 {
    max-width: 16ch;
  }
  .hero__credit {
    display: none;
  }
  .field__cap {
    padding: 0.9rem;
  }
  .field__cap p {
    font-size: 0.78rem;
  }
  .field-band {
    padding: 2.75rem 0;
  }
}

/* ---------- image credits page ---------- */
.credits-page h1 {
  font-size: var(--fs-2xl);
  margin-bottom: 1rem;
  max-width: 20ch;
}
.credits {
  display: grid;
  gap: 0;
  margin-top: 2rem;
  border-top: 1px solid var(--line-2);
}
.credit {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.credit img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  filter: saturate(0.5) contrast(1.05);
}
.credit h2 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.credit p {
  font-size: 0.84rem;
  color: var(--ink-2);
  margin-bottom: 0.3rem;
  max-width: 60ch;
}
.credit .credit__meta {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--ink-3);
  line-height: 1.6;
}
@media (max-width: 640px) {
  .credit {
    grid-template-columns: 1fr;
  }
  .credit img {
    height: 170px;
  }
}

/* ---------- print ---------- */
@media print {
  .hdr,
  .nav,
  .burger,
  .cta,
  .band,
  .ftr {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }
  .sec {
    border: 0;
    padding: 1rem 0;
  }
  .sec--alt,
  .hero,
  .hero--field {
    background: #fff;
    color: #000;
    min-height: 0;
  }
  .hero--field .hero__media,
  .hero--field .hero__veil,
  .hero__credit,
  .field-band,
  .field__card img {
    display: none !important;
  }
  .hero--field h1,
  .hero--field .lede,
  .hero--field .eyebrow,
  .hero--field .proof {
    color: #000;
  }
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
