/* ==========================================================================
   kivathesalesguy.com - design system
   Palette and type are lifted from Kiva's own keynote deck and offer-page
   designs (ink / gold / cream, Oswald over Public Sans) so the site, the
   slides and the collateral read as one brand.
   ========================================================================== */

/* --- Webfonts ------------------------------------------------------------
   Self-hosted, latin-subset, static instances cut from the Google Fonts
   variable originals (SIL OFL). See tools/build-fonts.py. */

@font-face {
  font-family: 'Oswald';
  src: url('fonts/oswald-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Oswald';
  src: url('fonts/oswald-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Oswald';
  src: url('fonts/oswald-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('fonts/public-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('fonts/public-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('fonts/public-sans-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens --------------------------------------------------------------- */

:root {
  --ink: #111316;
  --ink-2: #16191F;
  --ink-3: #1D2128;
  --ink-4: #262B33;
  --gold: #F2B544;
  --gold-hi: #FFD27A;
  --gold-dim: #9A7328;
  --rust: #8A4F12;
  --cream: #F7F3EA;
  --cream-2: #BDB6A8;
  --cream-3: #8A8F98;
  --bone: #F4F1EA;
  --bone-2: #E6E1D6;

  --line: rgba(247, 243, 234, 0.13);
  --line-strong: rgba(247, 243, 234, 0.26);
  --line-ink: rgba(17, 19, 22, 0.14);

  --display: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 9vw, 136px);
  --radius: 14px;
  --radius-sm: 8px;

  /* Type scale. clamp() so the display sizes track the viewport without a
     pile of breakpoints. */
  --t-hero: clamp(3rem, 1.2rem + 7.6vw, 7.5rem);
  --t-h2: clamp(2.1rem, 1.1rem + 4vw, 4.25rem);
  --t-h3: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  --t-h4: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  --t-lead: clamp(1.1rem, 1rem + 0.7vw, 1.5rem);
  --t-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --t-small: 0.9375rem;
  --t-eyebrow: clamp(0.72rem, 0.68rem + 0.2vw, 0.84rem);
  /* A full-width h2 size set in a half-width column runs to six lines, so
     headings inside .split get their own step. */
  --t-h2-col: clamp(1.9rem, 1.1rem + 2.5vw, 3.3rem);
}

/* --- Base ----------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.04;
  letter-spacing: 0.005em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: var(--ink);
  padding: 12px 20px;
  font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

/* --- Layout --------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 860px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--light { background: var(--bone); color: var(--ink); }
.section--raised { background: var(--ink-2); }
.section--gold { background: var(--gold); color: var(--ink); }

.section--light a { color: var(--rust); }
.section--light a:hover { color: #6E3E0E; }

.eyebrow {
  font-family: var(--body);
  font-size: var(--t-eyebrow);
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}
.section--gold .eyebrow { color: var(--ink); opacity: 0.72; }
.section--light .eyebrow { color: var(--rust); }

.lead {
  font-size: var(--t-lead);
  line-height: 1.45;
  color: var(--cream-2);
  max-width: 62ch;
}
.section--light .lead { color: #4A4F57; }
.section--gold .lead { color: rgba(17, 19, 22, 0.78); }

.muted { color: var(--cream-3); }
.section--light .muted { color: #6B7079; }

.fine {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--cream-3);
}
.section--light .fine { color: #6B7079; }

.section-head { max-width: 72ch; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: var(--t-h2); }
.section-head .lead { margin-top: 22px; }

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--primary:hover { background: var(--gold-hi); border-color: var(--gold-hi); color: var(--ink); }

.btn--ghost { border-color: var(--line-strong); color: var(--cream); background: transparent; }
.btn--ghost:hover { border-color: var(--cream); color: var(--cream); background: rgba(247, 243, 234, 0.07); }

.btn--ink { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn--ink:hover { background: #000; border-color: #000; color: var(--cream); }

.btn--on-light { border-color: var(--line-ink); color: var(--ink); background: transparent; }
.btn--on-light:hover { border-color: var(--ink); background: rgba(17, 19, 22, 0.06); color: var(--ink); }

.btn--block { width: 100%; }
.btn--lg { padding: 19px 38px; font-size: 1rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 19, 22, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--cream);
  text-decoration: none;
  margin-right: auto;
}
.brand svg { height: 40px; width: auto; }
.brand:hover { color: var(--cream); }
.brand:hover .brand__rule { background: var(--gold-hi); }

.site-nav { display: none; }

@media (min-width: 1000px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.2vw, 34px);
  }
  .site-nav a {
    color: var(--cream);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding-block: 6px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
  }
  .site-nav a:hover,
  .site-nav a[aria-current='page'] { color: var(--gold); border-bottom-color: var(--gold); }
}

.site-header .btn { padding: 12px 22px; font-size: 0.8125rem; }
.site-header__cta { display: none; }
@media (min-width: 1000px) { .site-header__cta { display: inline-flex; } }

/* Mobile menu: a checkbox toggle so the nav works with JS disabled.
   #nav-toggle is a direct child of .site-header so that `:checked ~ .mobile-nav`
   below has a sibling to match. Keep it there. */
.nav-toggle__box { position: absolute; opacity: 0; pointer-events: none; }

.nav-toggle__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font: 700 0.8125rem var(--body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle__btn:hover { border-color: var(--cream); }

.nav-toggle__bars { width: 16px; height: 10px; position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding-block: 10px 24px;
}
.nav-toggle__box:checked ~ .mobile-nav { display: block; }

/* Above the breakpoint the real nav is back, so hide the button and make sure
   a menu left open before a resize can't linger. */
@media (min-width: 1000px) {
  .nav-toggle__btn { display: none; }
  .mobile-nav,
  .nav-toggle__box:checked ~ .mobile-nav { display: none; }
}

.mobile-nav a {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--cream);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav .btn { margin-top: 22px; }

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(92vh, 860px);
  padding-block: clamp(80px, 14vw, 150px);
  overflow: hidden;
  background: var(--ink);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Narrow viewports crop horizontally, so favour the side Kiva is on. */
  object-position: 72% 38%;
}

/* Two stacked washes: a vertical one so the headline sits on near-black, and
   a horizontal one so the right-hand side of the photo stays readable. */
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 19, 22, 0.82) 0%, rgba(17, 19, 22, 0.56) 38%, rgba(17, 19, 22, 0.95) 100%),
    linear-gradient(90deg, rgba(17, 19, 22, 0.93) 0%, rgba(17, 19, 22, 0.6) 46%, rgba(17, 19, 22, 0.25) 100%);
}

.hero__inner { position: relative; z-index: 1; width: 100%; }

.hero h1 {
  font-size: var(--t-hero);
  font-weight: 700;
  max-width: 14ch;
  margin-bottom: 20px;
}

.hero__sub {
  font-family: var(--display);
  font-size: clamp(1.3rem, 0.9rem + 1.8vw, 2.3rem);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 30px;
}

.hero .lead { margin-bottom: 36px; }
.hero__note { margin-top: 26px; }

/* --- Logo strip ----------------------------------------------------------- */

.logos {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3.4vw, 46px);
  align-items: center;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.logos li {
  font-family: var(--display);
  font-size: clamp(1rem, 0.8rem + 0.7vw, 1.4rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cream);
  opacity: 0.68;
}

/* --- Stat / pull-quote ---------------------------------------------------- */

.stat { text-align: center; }
.stat__figure {
  font-family: var(--display);
  font-size: clamp(5rem, 2rem + 14vw, 15rem);
  font-weight: 700;
  line-height: 0.88;
  color: var(--gold);
  letter-spacing: -0.01em;
}
.stat__label {
  font-family: var(--display);
  font-size: clamp(1.6rem, 0.9rem + 3.2vw, 4rem);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.05;
  margin-top: 12px;
}
.stat__note { margin-top: 22px; }

.pull {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.08;
  font-size: clamp(2rem, 0.9rem + 5vw, 5.25rem);
}
.pull strong { display: block; font-weight: 700; color: var(--rust); }
.section--gold .pull strong { color: var(--ink); }

/* --- Generic grids -------------------------------------------------------- */

.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 680px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 940px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Image beside text */
.split {
  display: grid;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--media-right > :first-child { order: -1; }
}
.split__media img { border-radius: var(--radius); width: 100%; }

/* --- Cards ---------------------------------------------------------------- */

.card {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.section--light .card {
  background: #fff;
  border-color: var(--line-ink);
}
.card h3 { font-size: var(--t-h4); }
.card .card__num {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}
.section--light .card .card__num { color: var(--rust); }
.card p { color: var(--cream-2); }
.section--light .card p { color: #4A4F57; }
.card__foot { margin-top: auto; padding-top: 10px; }

/* Programme card with a photo */
.promo {
  display: flex;
  flex-direction: column;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.promo__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-4); }
.promo__media img { width: 100%; height: 100%; object-fit: cover; }
/* For a portrait source in a 16:9 well, centring lands on the subject's chest.
   Pull the crop up to keep the face in frame. */
.promo__media--face img { object-position: 50% 12%; }
.promo__body {
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.promo__tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 6px 12px;
  border-radius: 999px;
}
.promo__tag--quiet { background: transparent; color: var(--cream-3); border: 1px solid var(--line-strong); }
.promo h3 { font-size: var(--t-h3); }
.promo p { color: var(--cream-2); }
.promo .promo__meta {
  font-size: var(--t-small);
  color: var(--cream-3);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: auto;
}

/* --- The three doors ------------------------------------------------------ */

.doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(20px, 3vw, 44px);
  max-width: 900px;
  margin-inline: auto;
}
.door {
  aspect-ratio: 9 / 11;
  background: var(--ink-3);
  border: 3px solid var(--gold);
  border-radius: 50% 50% 10px 10px / 32% 32% 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
}
.door .door__name {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1rem + 2vw, 2.6rem);
  font-weight: 600;
  text-transform: uppercase;
}
.door p { font-size: var(--t-small); color: var(--cream-2); max-width: 22ch; }

/* --- "Too much" word wall ------------------------------------------------- */

/* Two columns, not four: each trait has to sit on one line to land, and
   "Too analytical." does not fit a quarter of the measure at display size. */
.traits {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(10px, 1.6vw, 22px) clamp(24px, 4vw, 64px);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 700px) { .traits { grid-template-columns: repeat(2, 1fr); } }
.traits li {
  font-family: var(--display);
  font-size: clamp(1.8rem, 1rem + 3.4vw, 3.6rem);
  font-weight: 500;
  color: #4A4F57;
  line-height: 1.1;
}
.traits li:last-child { color: var(--rust); font-weight: 600; }

/* --- Checklists ----------------------------------------------------------- */

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li {
  position: relative;
  padding-left: 34px;
  color: var(--cream-2);
}
.section--light .ticks li { color: #4A4F57; }
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.44em;
  width: 15px;
  height: 9px;
  border-left: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  transform: rotate(-45deg);
}
.ticks--cross li::before {
  border: 0;
  top: 0.52em;
  left: 2px;
  width: 14px;
  height: 14px;
  transform: none;
  background:
    linear-gradient(45deg, transparent 44%, currentColor 44%, currentColor 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, currentColor 44%, currentColor 56%, transparent 56%);
  color: var(--cream-3);
}

.fitlists { display: grid; gap: clamp(24px, 3vw, 40px); grid-template-columns: 1fr; }
@media (min-width: 820px) { .fitlists { grid-template-columns: repeat(2, 1fr); } }

/* --- Pricing -------------------------------------------------------------- */

.tier {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tier--feature { border-color: var(--gold); }
.tier__price {
  font-family: var(--display);
  font-size: clamp(3rem, 1.6rem + 5vw, 5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}
.tier__price s { color: var(--cream-3); font-size: 0.42em; font-weight: 500; margin-left: 10px; }
.tier .ticks { margin-top: 4px; }
.tier .btn { margin-top: auto; }

/* --- Facts rail ----------------------------------------------------------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.facts div { background: var(--ink-2); padding: 24px clamp(18px, 2vw, 28px); }
.facts dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.facts dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* --- Accordion (FAQ) ------------------------------------------------------ */

.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.section--light .faq { border-color: var(--line-ink); }

.faq details { border-bottom: 1px solid var(--line); }
.section--light .faq details { border-color: var(--line-ink); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 24px 44px 24px 0;
  position: relative;
  font-family: var(--display);
  font-size: var(--t-h4);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold); }
.section--light .faq summary:hover { color: var(--rust); }

.faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 13px;
  height: 13px;
  margin-top: -9px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.section--light .faq summary::after { border-color: var(--rust); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -4px; }

.faq details > p { padding-bottom: 26px; max-width: 72ch; color: var(--cream-2); }
.section--light .faq details > p { color: #4A4F57; }

/* --- Forms ---------------------------------------------------------------- */

.form {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3.4vw, 44px);
}
.form__grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .form__grid--2 { grid-template-columns: repeat(2, 1fr); } }

.field { display: grid; gap: 7px; }
.field--wide { grid-column: 1 / -1; }

.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-2);
}
.field label .opt { color: var(--cream-3); font-weight: 400; letter-spacing: 0.04em; text-transform: none; }

.field input,
.field select {
  width: 100%;
  padding: 14px 16px;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--cream);
  font: 400 1rem var(--body);
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
                    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 22px) calc(50% + 2px), calc(100% - 16px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}
.field input:focus,
.field select:focus { border-color: var(--gold); outline-offset: 1px; }
.field input::placeholder { color: var(--cream-3); }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--cream-2);
  grid-column: 1 / -1;
}
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--gold); flex: 0 0 auto; }

.form__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 18px;
  font-size: 0.8125rem;
  color: var(--cream-3);
}
.form__foot span { display: inline-flex; align-items: center; gap: 7px; }
.form__foot span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

.form__status { margin-top: 16px; font-size: 0.9375rem; display: none; }
.form__status[data-state='error'] { display: block; color: #FF9E80; }
.form__status[data-state='ok'] { display: block; color: var(--gold); }

/* Honeypot: a real field, hidden from people but visible to naive bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Media / video -------------------------------------------------------- */

.video-link {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-4);
}
.video-link img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.4s ease; }
.video-link:hover img { transform: scale(1.03); }

.video-link__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(17, 19, 22, 0.1), rgba(17, 19, 22, 0.55));
}
.video-link__play span {
  width: clamp(58px, 7vw, 82px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-items: center;
}
.video-link__play span::after {
  content: '';
  border-left: 18px solid var(--ink);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 5px;
}

.video-link__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px clamp(18px, 2.4vw, 28px);
  font-family: var(--display);
  font-size: var(--t-h4);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--cream);
  background: linear-gradient(180deg, transparent, rgba(17, 19, 22, 0.9));
}

.watch-list { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.watch-list a {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--cream);
  text-decoration: none;
}
.watch-list a:hover { color: var(--gold); }
.watch-list a::before { content: '\25B6'; font-size: 0.7em; color: var(--gold); flex: 0 0 auto; }

/* --- Book --------------------------------------------------------------- */

.book-cover {
  aspect-ratio: 2 / 3;
  max-width: 330px;
  width: 100%;
  background: linear-gradient(170deg, var(--ink-4) 0%, var(--ink-2) 60%, var(--ink) 100%);
  border: 1px solid var(--line-strong);
  border-left: 7px solid var(--gold);
  border-radius: 4px 12px 12px 4px;
  padding: clamp(24px, 3.2vw, 38px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.5);
}
.book-cover__by {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.book-cover__title {
  font-family: var(--display);
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.1rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.98;
}
.book-cover__sub { font-size: 0.875rem; color: var(--cream-2); line-height: 1.45; }
.book-cover__soon {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-3);
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  padding-block: clamp(52px, 6vw, 84px) 36px;
}
.site-footer__top {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  grid-template-columns: 1fr;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 820px) { .site-footer__top { grid-template-columns: 1.2fr 1fr 1fr; } }

.site-footer svg { height: 62px; width: auto; }
.site-footer h4 {
  font-size: 0.78rem;
  font-family: var(--body);
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.site-footer ul a { color: var(--cream-2); text-decoration: none; font-size: 0.9375rem; }
.site-footer ul a:hover { color: var(--gold); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 0.8125rem;
  color: var(--cream-3);
}
.site-footer__bottom a { color: var(--cream-3); text-decoration: none; }
.site-footer__bottom a:hover { color: var(--gold); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }

/* --- Bits ----------------------------------------------------------------- */

.tba {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  padding: 9px 18px;
}
.tba::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.anchor { scroll-margin-top: 94px; }

.h-col { font-size: var(--t-h2-col) !important; }

/* ==========================================================================
   Utilities
   These exist so the markup carries no style="" attributes, which lets the
   Content-Security-Policy keep `style-src 'self'` with no 'unsafe-inline'.
   Appended last on purpose: each has the same specificity as the component
   rule it overrides, so source order is what decides.
   See tools/inline-styles-to-classes.py for the conversion that created them.
   ========================================================================== */

.mt-xxs  { margin-top: 6px; }
.mt-xs   { margin-top: 16px; }
.mt-sm   { margin-top: 24px; }
.mt-md   { margin-top: 28px; }
.mt-lg   { margin-top: 36px; }
.mt-xl   { margin-top: 46px; }
.mt-2xl  { margin-top: 56px; }
.mt-fluid{ margin-top: clamp(40px, 5vw, 64px); }
.mb-xs   { margin-bottom: 14px; }
.mb-sm   { margin-bottom: 22px; }

.h-hero { font-size: var(--t-hero); font-weight: 700; }
.h-lg   { font-size: var(--t-h2); }
.h-md   { font-size: var(--t-h3); }

.measure-16 { max-width: 16ch; }
.measure-20 { max-width: 20ch; }
.measure-22 { max-width: 22ch; }

.lead-sm    { font-size: 1rem; margin-top: 24px; max-width: 34ch; }
.lead-tight { font-size: var(--t-lead); line-height: 1.45; }

.text-center    { text-align: center; }
.text-left      { text-align: left; }
.center         { margin-inline: auto; }
.flex-center    { display: flex; justify-content: center; }
.justify-center { justify-content: center; }

.text-gold  { color: var(--gold); }
.text-cream { color: var(--cream); }
.fw-600     { font-weight: 600; }

/* A value badge that borrows the .tba pill shape without its gold emphasis. */
.pill-quiet { border-color: var(--line-strong); color: var(--cream-2); }

/* "I'm Kiva, the sales guy." - his sign-off line, set like a display heading. */
.signoff {
  font-family: var(--display);
  font-size: var(--t-h3);
  font-weight: 600;
  color: var(--gold);
  margin-top: 28px;
  text-transform: uppercase;
}

.prose-stack { margin-top: 28px; display: grid; gap: 20px; }
.legal-stack { margin-top: 46px; display: grid; gap: 34px; color: var(--cream-2); }

.page-top       { padding-top: clamp(56px, 7vw, 96px); }
.page-top-legal { padding-top: clamp(48px, 6vw, 80px); }

/* Short pages (thanks, 404) sit their content in the middle of the viewport. */
.center-screen { min-height: 62vh; display: flex; align-items: center; }

.card--accent { border-color: var(--gold); }
