/* =============================================================
   KEUL Wärmepumpentechnik — Design System
   Editorial catalogue layout · heat-line motif · sharp corners
   Motion follows Emil Kowalski's design-engineering principles.
   ============================================================= */

/* ---- Fonts (self-hosted, variable) -------------------------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---- Design tokens ------------------------------------------ */
:root {
  /* Brand */
  --primary: #90112c;
  --primary-deep: #730e23;
  --primary-bright: #b3203c;
  --primary-wash: rgba(144, 17, 44, 0.07);
  --secondary: #777777;

  /* Surface / ink */
  --paper: #f6f2ee;
  --paper-2: #efe8e1;
  --ink: #1a1416;
  --ink-2: #463d41;
  --on-dark: #f1ebe6;
  --on-dark-dim: #b6a9a2;

  /* Lines */
  --line: rgba(26, 20, 22, 0.16);
  --line-soft: rgba(26, 20, 22, 0.09);
  --line-strong: rgba(26, 20, 22, 0.34);
  --line-on-dark: rgba(241, 235, 230, 0.18);

  /* Type families */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Fluid type scale */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.75vw, 2rem);
  --step-3: clamp(1.85rem, 1.55rem + 1.5vw, 2.95rem);
  --step-4: clamp(2.4rem, 1.85rem + 2.75vw, 4.3rem);
  --step-5: clamp(3rem, 2rem + 5vw, 6.5rem);

  /* Spacing */
  --gap: clamp(1.2rem, 0.9rem + 1.5vw, 2rem);
  --section-y: clamp(3.5rem, 2.2rem + 5vw, 7rem);
  --container: 80rem;
  --measure: 38rem;

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ---- Reset / base ------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01", "cv05", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
::selection {
  background: var(--primary);
  color: #fff;
}

/* ---- Typography --------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}
p {
  text-wrap: pretty;
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-5);
  line-height: 0.99;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}
.h-xl {
  font-size: var(--step-4);
  line-height: 1.01;
  letter-spacing: -0.018em;
}
.h-lg {
  font-size: var(--step-3);
}
.h-md {
  font-size: var(--step-2);
}
.h-sm {
  font-size: var(--step-1);
  letter-spacing: -0.01em;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--ink-2);
  font-weight: 400;
  max-width: 34rem;
}
.measure {
  max-width: var(--measure);
}
.measure-wide {
  max-width: 46rem;
}

.eyebrow {
  font-family: var(--font-text);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 1.8em;
  height: 2px;
  background: var(--primary);
  display: inline-block;
}
.eyebrow--plain::before {
  display: none;
}

.text-primary {
  color: var(--primary);
}
.muted {
  color: var(--secondary);
}
.dim {
  color: var(--ink-2);
}

strong,
b {
  font-weight: 600;
}

/* Body content blocks */
.prose p {
  max-width: var(--measure);
  margin-block: 1em 0;
}
.prose p:first-child {
  margin-top: 0;
}
.prose h3 {
  font-size: var(--step-2);
  margin-top: 2.2em;
  margin-bottom: 0.2em;
}
.prose h4 {
  font-size: var(--step-1);
  margin-top: 1.8em;
  margin-bottom: 0.1em;
}
.prose ul {
  list-style: none;
  padding: 0;
  margin-top: 1.1em;
  max-width: var(--measure);
}
.prose li {
  position: relative;
  padding-left: 1.6em;
  margin-block: 0.55em;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.65em;
  height: 2px;
  background: var(--primary);
}

/* ---- Layout primitives -------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 0.5rem + 3vw, 3.5rem);
}
.section {
  padding-block: var(--section-y);
}
.section--tight {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}
.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  width: 100%;
}
.stack > * + * {
  margin-top: var(--flow, 1.2rem);
}

/* Editorial split: label margin + content */
.editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
}
@media (min-width: 56rem) {
  .editorial {
    grid-template-columns: 14rem minmax(0, 1fr);
  }
  .editorial--wide-aside {
    grid-template-columns: 22rem minmax(0, 1fr);
  }
}
.editorial__aside {
  position: relative;
}
@media (min-width: 56rem) {
  .editorial__aside--sticky {
    position: sticky;
    top: 6.5rem;
    align-self: start;
  }
}

.cols-2 {
  display: grid;
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
}
@media (min-width: 48rem) {
  .cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Header / navigation ------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 220ms var(--ease-out), border-color 200ms var(--ease-out);
}
.site-header[data-scrolled="true"] {
  border-bottom-color: var(--line-strong);
  box-shadow: 0 12px 28px -22px rgba(26, 20, 22, 0.55);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: clamp(4rem, 3.4rem + 1.5vw, 5rem);
}
.nav__right {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 0.2rem + 1vw, 1.6rem);
}
.nav__end {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-shrink: 0;
}
.brand__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.brand__mark .dot {
  color: var(--primary);
}
.brand__sub {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
@media (max-width: 30rem) {
  .brand__sub {
    display: none;
  }
}

.nav__links {
  display: none;
  align-items: center;
  gap: clamp(0.5rem, 0.1rem + 0.9vw, 1.15rem);
  list-style: none;
}
@media (min-width: 72rem) {
  .nav__links {
    display: flex;
  }
}
.nav__link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.4rem 0.1rem;
  transition: color 180ms var(--ease-out);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.1rem;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
.nav__link:hover {
  color: var(--ink);
}
.nav__link[aria-current="page"] {
  color: var(--ink);
}
.nav__link[aria-current="page"]::after,
.nav__link:hover::after {
  transform: scaleX(1);
}
.nav__cta {
  display: none;
}
@media (min-width: 72rem) {
  .nav__cta {
    display: inline-flex;
  }
}

/* Leistungen dropdown */
.nav__item {
  position: relative;
  display: flex;
  align-items: center;
}
.nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__caret {
  font-size: 0.7em;
  transition: transform 220ms var(--ease-out);
}
.nav__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) scale(0.97);
  transform-origin: top center;
  min-width: 14rem;
  display: flex;
  flex-direction: column;
  padding: 0.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 22px 46px -26px rgba(26, 20, 22, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out),
    visibility 0s linear 180ms;
  z-index: 70;
}
.nav__item[data-open="true"] .nav__menu,
.nav__item:focus-within .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.nav__item[data-open="true"] .nav__caret {
  transform: rotate(180deg);
}
.nav__menu-link {
  padding: 0.62rem 0.8rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out);
}
.nav__menu-link:hover,
.nav__menu-link[aria-current="page"] {
  background: var(--primary-wash);
  color: var(--primary);
}
.nav__link.is-active {
  color: var(--ink);
}
.nav__link.is-active::after {
  transform: scaleX(1);
}
@media (hover: hover) and (pointer: fine) {
  .nav__item:hover .nav__menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
    transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
  }
  .nav__item:hover .nav__caret {
    transform: rotate(180deg);
  }
}

/* Burger */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), border-color 180ms var(--ease-out);
}
.burger:active {
  transform: scale(0.94);
}
@media (min-width: 72rem) {
  .burger {
    display: none;
  }
}
.burger span {
  width: 1.15rem;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform 240ms var(--ease-out), opacity 160ms var(--ease-out);
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(86vw, 23rem);
  z-index: 80;
  background: var(--ink);
  color: var(--on-dark);
  padding: clamp(1.5rem, 1rem + 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 380ms var(--ease-drawer), visibility 0s linear 380ms;
}
.drawer[data-open="true"] {
  transform: translateX(0);
  visibility: visible;
  transition: transform 420ms var(--ease-drawer);
}
.drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.drawer__close {
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line-on-dark);
  background: transparent;
  color: var(--on-dark);
  cursor: pointer;
  font-size: 1.2rem;
  transition: transform 160ms var(--ease-out), background-color 180ms var(--ease-out);
}
.drawer__close:active {
  transform: scale(0.94);
}
.drawer__close:hover {
  background: rgba(255, 255, 255, 0.06);
}
.drawer__nav {
  display: flex;
  flex-direction: column;
}
.drawer__group {
  margin: 1.5rem 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
}
.drawer__link {
  display: flex;
  align-items: center;
  padding: 0.62rem 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--on-dark);
  border-bottom: 1px solid var(--line-on-dark);
  transition: color 160ms var(--ease-out), padding-left 220ms var(--ease-out);
}
.drawer__link--top {
  font-size: 1.4rem;
}
.drawer__link:hover {
  color: #fff;
  padding-left: 0.4rem;
}
.drawer__link[aria-current="page"] {
  color: var(--primary-bright);
  padding-left: 0.4rem;
}
.drawer__foot {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.9rem;
  color: var(--on-dark-dim);
}
.drawer__foot a {
  color: var(--on-dark);
}
.scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(10, 7, 8, 0.5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 320ms var(--ease-out), visibility 0s linear 320ms;
}
.scrim[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transition: opacity 320ms var(--ease-out);
}
body[data-locked="true"] {
  overflow: hidden;
}

/* ---- Buttons & links ---------------------------------------- */
.btn {
  --btn-bg: var(--primary);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.005em;
  border: 1px solid var(--btn-bg);
  cursor: pointer;
  box-shadow: 0 16px 30px -18px rgba(144, 17, 44, 0.85);
  transition: transform 160ms var(--ease-out), background-color 200ms var(--ease-out),
    border-color 200ms var(--ease-out), color 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out);
}
.btn--ghost,
.btn--ghost-dark {
  box-shadow: none;
}
.btn .arrow {
  transition: transform 220ms var(--ease-out);
}
.btn:active {
  transform: scale(0.97);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    background: var(--primary-deep);
    border-color: var(--primary-deep);
  }
  .btn:hover .arrow {
    transform: translateX(4px);
  }
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
  }
}
.btn--on-dark {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  border-color: var(--paper);
}
@media (hover: hover) and (pointer: fine) {
  .btn--on-dark:hover {
    background: #fff;
    border-color: #fff;
  }
}
.btn--ghost-dark {
  --btn-bg: transparent;
  --btn-fg: var(--on-dark);
  border-color: var(--line-on-dark);
}
@media (hover: hover) and (pointer: fine) {
  .btn--ghost-dark:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--on-dark);
  }
}

/* Editorial inline link with underline-wipe */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--ink);
  background-image: linear-gradient(var(--primary), var(--primary));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  padding-bottom: 2px;
  transition: background-size 260ms var(--ease-out), color 180ms var(--ease-out);
}
.link-arrow .arrow {
  color: var(--primary);
  transition: transform 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover {
    background-size: 100% 2px;
    color: var(--primary);
  }
  .link-arrow:hover .arrow {
    transform: translateX(4px);
  }
}
.link-arrow--on-dark {
  color: var(--on-dark);
}
@media (hover: hover) and (pointer: fine) {
  .link-arrow--on-dark:hover {
    color: #fff;
  }
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

/* ---- Index rows (catalogue list, replaces card grid) -------- */
.index-list {
  border-top: 1px solid var(--line);
}
.index-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(0.8rem, 0.3rem + 2vw, 2.5rem);
  padding: clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  isolation: isolate;
}
.index-row::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(1.15rem, 0.5rem + 3vw, 3.5rem));
  right: calc(-1 * clamp(1.15rem, 0.5rem + 3vw, 3.5rem));
  top: 0;
  bottom: 0;
  background: var(--primary-wash);
  opacity: 0;
  z-index: -1;
  transition: opacity 240ms var(--ease-out);
}
.index-row__num {
  font-family: var(--font-text);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--secondary);
  align-self: start;
  padding-top: 0.45em;
  transition: color 220ms var(--ease-out);
}
.index-row__body {
  min-width: 0;
}
.index-row__title {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  transition: transform 320ms var(--ease-out), color 220ms var(--ease-out);
}
.index-row__desc {
  display: block;
  margin-top: 0.65rem;
  color: var(--ink-2);
  max-width: 46rem;
  font-size: var(--step-0);
  line-height: 1.55;
}
.index-row__arrow {
  font-size: 1.6rem;
  color: var(--secondary);
  transition: transform 320ms var(--ease-out), color 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .index-row:hover::before {
    opacity: 1;
  }
  .index-row:hover .index-row__title {
    color: var(--primary);
    transform: translateX(0.5rem);
  }
  .index-row:hover .index-row__arrow {
    color: var(--primary);
    transform: translate(0.4rem, -0.1rem) rotate(-2deg);
  }
  .index-row:hover .index-row__num {
    color: var(--primary);
  }
}

/* ---- Media placeholder -------------------------------------- */
.media {
  position: relative;
  background:
    radial-gradient(130% 120% at 100% 0%, rgba(144, 17, 44, 0.08), transparent 55%),
    linear-gradient(158deg, #fbf9f7 0%, var(--paper-2) 70%, #e7ded6 100%);
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 26px 50px -34px rgba(26, 20, 22, 0.5);
}
.media::after {
  content: "";
  position: absolute;
  inset: 0.75rem;
  border: 1px solid var(--line-soft);
  pointer-events: none;
  z-index: 2;
}
.media img,
.media__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media[data-ratio="portrait"] {
  aspect-ratio: 3 / 4;
}
.media[data-ratio="wide"] {
  aspect-ratio: 16 / 9;
}
.media[data-ratio="tall"] {
  aspect-ratio: 2 / 3;
}
.media[data-ratio="square"] {
  aspect-ratio: 1 / 1;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media__ph {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--ink-2);
  padding: 1.5rem;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}
.media__ph svg {
  color: var(--primary);
  opacity: 0.9;
}
.media__ph span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
}
.media__ph small {
  font-size: 0.74rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--secondary);
  max-width: 17rem;
}
.media__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(to top, rgba(22, 18, 20, 0.84), rgba(22, 18, 20, 0));
  color: #fff;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 1.6rem 0.9rem 0.7rem;
}
.media__cap::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  background: var(--primary-bright);
  flex-shrink: 0;
}

/* Clip reveal for media on scroll */
.reveal-clip {
  transition: clip-path 720ms var(--ease-in-out);
  will-change: clip-path;
}
.js .reveal-clip {
  clip-path: inset(0 0 100% 0);
}
.js .reveal-clip.is-in {
  clip-path: inset(0 0 0 0);
}

/* ---- Callout / aside box (sharp, red rule) ------------------ */
.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  padding: clamp(1.2rem, 0.9rem + 1.5vw, 2rem);
  background: linear-gradient(158deg, #fbf9f7, var(--paper-2));
  box-shadow: 0 22px 44px -34px rgba(26, 20, 22, 0.5);
}
.callout .eyebrow {
  margin-bottom: 0.7rem;
}

/* ---- Marker tag (not a pill) -------------------------------- */
.markers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  list-style: none;
  padding: 0;
}
.marker {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
}
.marker::before {
  content: "";
  width: 0.7em;
  height: 0.7em;
  background: var(--primary);
  flex-shrink: 0;
}

/* ---- Stats -------------------------------------------------- */
.stats {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 40rem) {
  .stats {
    grid-template-columns: repeat(var(--cols, 4), 1fr);
  }
}
.stat {
  padding: clamp(1.4rem, 1rem + 2vw, 2.4rem) 0;
}
@media (min-width: 40rem) {
  .stat {
    padding-inline: clamp(1rem, 0.5rem + 1.5vw, 2rem);
    border-left: 1px solid var(--line);
  }
  .stat:first-child {
    padding-left: 0;
    border-left: 0;
  }
}
@media (max-width: 39.99rem) {
  .stat + .stat {
    border-top: 1px solid var(--line);
  }
}
.stat__num {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--primary);
  font-optical-sizing: auto;
}
.stat__label {
  margin-top: 0.7rem;
  font-size: 0.95rem;
  color: var(--ink-2);
  max-width: 16rem;
}

/* ---- Feature blocks (alternating editorial) ----------------- */
.feature {
  display: grid;
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  align-items: center;
}
@media (min-width: 52rem) {
  .feature {
    grid-template-columns: 1fr 1fr;
  }
  .feature--flip .feature__media {
    order: -1;
  }
}
.feature__num {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--primary);
  font-weight: 600;
}

/* ---- Dark band ---------------------------------------------- */
.band-dark {
  background:
    radial-gradient(85% 120% at 100% 0%, rgba(144, 17, 44, 0.2), transparent 52%),
    var(--ink);
  color: var(--on-dark);
}
.band-dark .eyebrow {
  color: var(--on-dark-dim);
}
.band-dark .lede,
.band-dark .dim {
  color: var(--on-dark-dim);
}
.band-dark .rule {
  background: var(--line-on-dark);
}
.band-dark .index-list,
.band-dark .index-row {
  border-color: var(--line-on-dark);
}
.band-dark .index-row__desc {
  color: var(--on-dark-dim);
}
.band-dark .prose li::before {
  background: var(--primary-bright);
}

/* ---- Accordion (downloads / faq) ---------------------------- */
.accordion {
  border-top: 1px solid var(--line);
}
.acc {
  border-bottom: 1px solid var(--line);
}
.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.1rem, 0.8rem + 1vw, 1.6rem) 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.acc__title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.acc__meta {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-left: auto;
  margin-right: 1rem;
}
.acc__sign {
  position: relative;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}
.acc__sign::before,
.acc__sign::after {
  content: "";
  position: absolute;
  background: var(--primary);
  transition: transform 280ms var(--ease-out), opacity 200ms var(--ease-out);
}
.acc__sign::before {
  inset: 50% 0 auto 0;
  height: 2px;
  transform: translateY(-50%);
}
.acc__sign::after {
  inset: 0 50% auto 50%;
  width: 2px;
  transform: translateX(-50%);
}
.acc[data-open="true"] .acc__sign::after {
  transform: translateX(-50%) scaleY(0);
  opacity: 0;
}
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 360ms var(--ease-in-out);
}
.acc[data-open="true"] .acc__panel {
  grid-template-rows: 1fr;
}
.acc__inner {
  overflow: hidden;
}
.acc__pad {
  padding-bottom: 1.6rem;
}

/* Download items */
.dl-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.dl-item {
  background: var(--paper);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  transition: background-color 180ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .dl-item:hover {
    background: var(--paper-2);
  }
}
.dl-item__icon {
  flex-shrink: 0;
  color: var(--primary);
}
.dl-item__body {
  min-width: 0;
}
.dl-item__name {
  font-weight: 600;
  display: block;
}
.dl-item__meta {
  font-size: 0.82rem;
  color: var(--secondary);
}
.dl-item__get {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}
.dl-item__get .arrow {
  transition: transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .dl-item:hover .dl-item__get .arrow {
    transform: translateY(2px);
  }
}
.is-placeholder .dl-item__get {
  color: var(--secondary);
}

/* ---- Form (underline fields, no pills) ---------------------- */
.form {
  display: grid;
  gap: 1.6rem;
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
}
.field input,
.field textarea {
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  padding: 0.6rem 0.1rem;
  font-size: 1.05rem;
  transition: border-color 200ms var(--ease-out);
}
.field textarea {
  resize: vertical;
  min-height: 6rem;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--primary);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--secondary);
  opacity: 0.7;
}
.form__note {
  font-size: 0.85rem;
  color: var(--secondary);
}

/* contact data list */
.contact-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.4rem;
}
.contact-list dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}
.contact-list dd {
  margin: 0;
  font-size: var(--step-1);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.contact-list dd a {
  background-image: linear-gradient(var(--primary), var(--primary));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 260ms var(--ease-out), color 180ms var(--ease-out);
  padding-bottom: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .contact-list dd a:hover {
    background-size: 100% 2px;
    color: var(--primary);
  }
}

/* ---- Heat-line motif ---------------------------------------- */
.heatline {
  width: 100%;
  height: auto;
  overflow: visible;
}
.heatline path {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
}
.heatline .track {
  stroke: var(--line);
  stroke-width: 2;
}
.heatline .draw {
  stroke-dasharray: var(--len, 1200);
  transition: stroke-dashoffset 1600ms var(--ease-in-out);
}
.js .heatline .draw {
  stroke-dashoffset: var(--len, 1200);
}
.js .heatline.is-in .draw {
  stroke-dashoffset: 0;
}

/* ---- Scroll reveal ------------------------------------------ */
.reveal {
  transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---- Dark hero ---------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(95% 130% at 88% -10%, rgba(144, 17, 44, 0.34), transparent 55%),
    radial-gradient(70% 120% at -10% 110%, rgba(144, 17, 44, 0.12), transparent 50%),
    var(--ink);
  color: var(--on-dark);
  overflow: hidden;
}
.hero .eyebrow {
  color: var(--on-dark-dim);
}
.hero__grid {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  padding-block: clamp(3rem, 1.8rem + 6vw, 6.5rem);
}
@media (min-width: 56rem) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }
}
.hero__title {
  margin-top: clamp(1rem, 0.6rem + 1.5vw, 1.6rem);
  max-width: 14ch;
  font-size: clamp(2.7rem, 1.55rem + 4.7vw, 5rem);
  line-height: 0.99;
  letter-spacing: -0.022em;
  color: #fff;
}
.hero__title em {
  font-style: normal;
  color: var(--primary-bright);
}
.hero__lede {
  margin-top: clamp(1.1rem, 0.7rem + 1.5vw, 1.8rem);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--on-dark-dim);
  max-width: 38rem;
}
.hero__actions {
  margin-top: clamp(1.6rem, 1rem + 2vw, 2.4rem);
}
.hero__art {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line-on-dark);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.28));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero__art::after {
  content: "";
  position: absolute;
  inset: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  pointer-events: none;
}
.hero__coil {
  width: 84%;
  height: auto;
}
.hero__coil .flow {
  stroke-dasharray: 2300;
  stroke-dashoffset: 2300;
  animation: heroFlow 2.6s var(--ease-in-out) 0.25s forwards;
}
@keyframes heroFlow {
  to {
    stroke-dashoffset: 0;
  }
}
.hero__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
}
.markers--on-dark .marker {
  color: var(--on-dark-dim);
}

/* ---- Page intro (opening spread) ---------------------------- */
.opening {
  position: relative;
  padding-block: clamp(3rem, 1.5rem + 7vw, 7rem) clamp(2.5rem, 1.5rem + 4vw, 5rem);
}
.opening__eyebrow {
  margin-bottom: clamp(1.2rem, 0.8rem + 1.5vw, 2.2rem);
}
.opening__title {
  max-width: 15ch;
  font-size: clamp(2.6rem, 1.7rem + 4vw, 4.7rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.opening__title em {
  font-style: normal;
  color: var(--primary);
}
.opening__grid {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  margin-top: clamp(1.8rem, 1rem + 3vw, 3rem);
}
@media (min-width: 52rem) {
  .opening__grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}
.band-soft {
  background: var(--paper-2);
}
.index-list--plain .index-row {
  grid-template-columns: 1fr auto;
}
.index-list--media .index-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
}
.index-row__thumb {
  width: clamp(5.5rem, 3.5rem + 8vw, 10.5rem);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 16px 32px -24px rgba(26, 20, 22, 0.55);
  position: relative;
  align-self: center;
}
.index-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .index-row:hover .index-row__thumb img {
    transform: scale(1.04);
  }
}
@media (max-width: 36rem) {
  .index-list--media .index-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .index-row__thumb {
    display: none;
  }
}
.media[data-ratio="banner"] {
  aspect-ratio: 24 / 8;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 1.2rem;
}
.breadcrumb a {
  color: var(--ink-2);
  transition: color 160ms var(--ease-out);
}
.breadcrumb a:hover {
  color: var(--primary);
}
.breadcrumb__current {
  color: var(--ink);
  font-weight: 600;
}
.opening__lede {
  margin-top: clamp(1.2rem, 0.8rem + 1.5vw, 2rem);
  font-size: var(--step-1);
  color: var(--ink-2);
  max-width: 40rem;
  line-height: 1.5;
}
.opening__actions {
  margin-top: clamp(1.6rem, 1rem + 2vw, 2.6rem);
}

/* page header for inner pages */
.page-head {
  padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(2rem, 1.2rem + 3vw, 3.5rem);
}

/* ---- Footer ------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--on-dark);
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) 2rem;
}
.footer-grid {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 3.5rem);
}
@media (min-width: 52rem) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.footer__brand .brand__mark {
  color: #fff;
  font-size: 2rem;
}
.footer__tagline {
  margin-top: 1.1rem;
  color: var(--on-dark-dim);
  max-width: 26rem;
}
.footer__col h4 {
  font-family: var(--font-text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
  margin-bottom: 1.1rem;
}
.footer__links {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.footer__links a {
  color: var(--on-dark);
  display: inline-block;
  transition: color 160ms var(--ease-out), transform 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .footer__links a:hover {
    color: #fff;
    transform: translateX(3px);
  }
}
.footer__contact {
  font-style: normal;
  color: var(--on-dark-dim);
  line-height: 1.8;
}
.footer__contact a {
  color: var(--on-dark);
}
@media (hover: hover) and (pointer: fine) {
  .footer__contact a:hover {
    color: #fff;
  }
}
.footer__bar {
  margin-top: clamp(2.5rem, 1.5rem + 4vw, 4rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-on-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--on-dark-dim);
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.footer__legal a {
  color: var(--on-dark-dim);
  transition: color 160ms var(--ease-out);
}
.footer__legal a:hover {
  color: #fff;
}

/* ---- Utilities ---------------------------------------------- */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  transform: translateY(-150%);
  transition: transform 200ms var(--ease-out);
}
.skip-link:focus {
  transform: translateY(0);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.full-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.mt-0 { margin-top: 0; }
.center { text-align: center; }

/* ---- Reduced motion ----------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .js .reveal-clip {
    clip-path: none;
  }
  .js .heatline .draw {
    stroke-dashoffset: 0;
  }
  .index-row:hover .index-row__title,
  .footer__links a:hover {
    transform: none;
  }
}

/* ---- Print -------------------------------------------------- */
@media print {
  .site-header,
  .site-footer,
  .burger,
  .drawer,
  .scrim,
  .opening__actions,
  .btn {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
