/* ============================================
   HELIX — Design tokens
   Thesis: the product's whole identity is a temperature axis.
   Every accent decision derives from GLACIER (cooling) <-> EMBER (heating).
   ============================================ */

@font-face {
  font-family: 'Serpentine';
  src: url('assets/serpentine-regular.woff2') format('woff2'),
       url('assets/serpentine-regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #F5F6F7;
  --color-bg-alt: #FFFFFF;
  --color-ink: #14171A;
  --color-ink-soft: #4A5158;
  --color-ink-faint: #8A9199;
  --color-ember: #FF5A36;
  --color-ember-soft: #FFE4DB;
  --color-glacier: #2F9BC7;
  --color-glacier-soft: #DCEEF5;
  --color-chrome: #DBDFE2;
  --color-chrome-soft: #EAECEE;

  --font-display: 'Tinos', 'Times New Roman', Times, serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --gradient-thermal: linear-gradient(90deg, var(--color-glacier) 0%, var(--color-chrome) 50%, var(--color-ember) 100%);

  --container: 1180px;
  --nav-h: 76px;
  --nav-bg: rgba(245, 246, 247, 0.86);
}

[data-theme="dark"] {
  --nav-bg: rgba(14, 17, 19, 0.86);
  --color-bg: #0E1113;
  --color-bg-alt: #16191C;
  --color-ink: #F2F3F4;
  --color-ink-soft: #AEB4B9;
  --color-ink-faint: #6E757B;
  --color-ember: #FF7A57;
  --color-ember-soft: #3A241E;
  --color-glacier: #57B4DA;
  --color-glacier-soft: #1B2E36;
  --color-chrome: #2A2E32;
  --color-chrome-soft: #202327;
}

body, .nav, .cta-band, .btn, .card, .field input, .field select, .field textarea {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-chrome);
  background: var(--color-bg-alt);
  cursor: pointer;
  color: var(--color-ink);
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--color-ink-faint); }
.theme-toggle:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--color-ink);
}

p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}


/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-chrome);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-mark {
  font-family: 'Serpentine', var(--font-display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-mark .wordmark {
  display: inline-block;
  transform: translateY(3px); /* ~2mm on a typical laptop screen (96 CSS px/inch) */
}
.nav-mark .nav-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14px;
  font-weight: 500;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-links a {
  color: var(--color-ink-soft);
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--color-ink); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: #B08A6B;
  border-radius: 2px;
}
[data-theme="dark"] .nav-links a.active::after { background: #C3C8D0; }
/* ---------- Products nav dropdown ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink-soft);
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-dropdown-trigger:hover, .nav-dropdown.open .nav-dropdown-trigger { color: var(--color-ink); }
.nav-dropdown-trigger svg { width: 13px; height: 13px; transition: transform 0.2s ease; }
.nav-dropdown.open .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-chrome);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  padding: 22px;
  width: 460px;
  z-index: 50;
}
.nav-dropdown.open .nav-dropdown-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.nav-dropdown-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-faint);
  display: block;
  margin-bottom: 12px;
}
.nav-dropdown-col a {
  display: block;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-ink);
  padding: 7px 0;
}
.nav-dropdown-col a:hover { color: var(--color-ember); }
.nav-dropdown-col a span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-ink-faint);
  margin-top: 1px;
}
.nav-dropdown-soon {
  display: block;
  font-size: 13px;
  color: var(--color-ink-faint);
  padding: 7px 0;
  font-style: italic;
}
.nav-dropdown-all {
  grid-column: 1 / -1;
  border-top: 1px solid var(--color-chrome);
  margin-top: 4px;
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--color-ink-soft);
}
.nav-dropdown-all:hover { color: var(--color-ink); }
@media (max-width: 900px) {
  .nav-dropdown-trigger { padding: 4px 0; width: 100%; justify-content: space-between; }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    width: auto;
    box-shadow: none;
    border: none;
    padding: 4px 0 4px 14px;
    margin-top: 8px;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: flex; flex-direction: column; gap: 18px; }
  .nav-dropdown-all { grid-column: auto; }
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 26px;
  border-radius: 100px;
  background: var(--color-ink);
  color: var(--color-bg-alt) !important;
}
/* ".nav-links a" sets padding: 4px 0 and has higher specificity than .nav-cta,
   which silently zeroed the button's side padding. This selector wins. */
.nav-links a.nav-cta { padding: 11px 26px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  margin: 5px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 100px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 3px; }
.btn-primary { background: var(--color-ink); color: var(--color-bg-alt); }
.btn-primary:hover { background: #24282c; }
.btn-outline { background: transparent; color: var(--color-ink); border-color: var(--color-chrome); }
.btn-outline:hover { border-color: var(--color-ink); }

/* ---------- Coming Soon — browsable, payment disabled ---------- */
.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B45309;
  background: #FBEBD3;
  border: 1px solid #E8890C;
  border-radius: 100px;
  padding: 5px 13px;
}
.coming-soon-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #E8890C;
}
.btn-disabled {
  cursor: not-allowed;
  opacity: 0.55;
  position: relative;
}
.btn-disabled:hover { transform: none !important; }
.price-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-ink-faint);
  margin-top: 8px;
}

/* ---------- Teaser pages ---------- */
.teaser-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--color-chrome);
  text-align: center;
}
.teaser-hero .container { max-width: 720px; }
.teaser-hero h1 { font-size: clamp(32px, 4.6vw, 52px); margin-top: 16px; }
.teaser-hero .lede { font-size: 17px; color: var(--color-ink-soft); margin: 18px auto 0; max-width: 56ch; }
.teaser-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}
.teaser-gallery img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--color-chrome);
  display: block;
}
.teaser-gallery.single { grid-template-columns: 1fr; max-width: 640px; margin-left: auto; margin-right: auto; }
.price-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}
.price-block .price { font-family: var(--font-mono); font-size: 32px; color: var(--color-ink); }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--color-chrome);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.04;
  margin-top: 20px;
}
.hero .lede {
  font-size: 19px;
  color: var(--color-ink-soft);
  max-width: 46ch;
  margin-top: 22px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
}

/* Thermal dial — signature element */
.thermal-dial {
  position: relative;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-chrome);
  border-radius: 24px;
  padding: 36px;
}
.thermal-dial-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-ink-faint);
  letter-spacing: 0.06em;
}
.thermal-track {
  position: relative;
  height: 10px;
  border-radius: 100px;
  background: var(--gradient-thermal);
  margin: 22px 0 14px;
}
.thermal-puck {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  border: 3px solid var(--color-ink);
  transform: translate(-50%, -50%);
  transition: left 0.25s ease;
  cursor: grab;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.thermal-readout {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 22px;
}
.thermal-readout .value {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 500;
}
.thermal-readout .mode {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-faint);
}
.thermal-hint {
  font-size: 12px;
  color: var(--color-ink-faint);
  margin-top: 18px;
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--color-bg-alt); border-top: 1px solid var(--color-chrome); border-bottom: 1px solid var(--color-chrome); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 14px; }
.section-head p { color: var(--color-ink-soft); font-size: 17px; margin-top: 16px; }

/* Feature grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-chrome);
  border-radius: 18px;
  padding: 30px;
}
.card h3 { font-size: 20px; margin-top: 0; }
.card p { color: var(--color-ink-soft); margin-top: 10px; font-size: 15px; }

.card-cool { border-top: 3px solid var(--color-glacier); }
.card-hot { border-top: 3px solid var(--color-ember); }

/* Product cards (Products/Shop page) */
.product-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.product-card .product-price {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
  color: var(--color-ink);
}
.product-card stripe-buy-button {
  display: block;
  margin-top: 6px;
}
.product-card .product-note {
  font-size: 12px;
  color: var(--color-ink-faint);
  font-family: var(--font-mono);
}

/* Split with visual */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse .split-visual { order: 2; }

/* Cross-section illustration */
.helmet-diagram {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-chrome);
  border-radius: 20px;
  padding: 40px;
}

/* Stat row */
.stat-row {
  display: flex;
  gap: 0;
  border: 1px solid var(--color-chrome);
  border-radius: 18px;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.stat {
  flex: 1;
  padding: 28px 24px;
  border-right: 1px solid var(--color-chrome);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 500;
}
.stat .label {
  font-size: 13px;
  color: var(--color-ink-soft);
  margin-top: 6px;
}

/* Table */
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-chrome);
}
.spec-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-faint);
  font-weight: 500;
}
.spec-table td.mono { font-family: var(--font-mono); }

/* CTA band */
.cta-band {
  background: var(--color-ink);
  color: var(--color-bg-alt);
  border-radius: 24px;
  padding: 64px;
  text-align: center;
}
.cta-band h2 { color: var(--color-bg-alt); font-size: clamp(26px, 3vw, 36px); }
.cta-band p { color: #B8BEC4; margin-top: 14px; font-size: 16px; }
.cta-band .hero-actions { justify-content: center; margin-top: 30px; }
.cta-band .btn-primary { background: var(--color-bg-alt); color: var(--color-ink); }
.cta-band .btn-outline { border-color: #3A3F44; color: var(--color-bg-alt); }
.cta-band .btn-outline:hover { border-color: var(--color-bg-alt); }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--color-ink-soft); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--color-chrome);
  background: var(--color-bg-alt);
  color: var(--color-ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--color-ink);
  outline-offset: 1px;
}
.field textarea { resize: vertical; min-height: 120px; }

/* Footer */
.footer {
  border-top: 1px solid var(--color-chrome);
  padding: 48px 0;
  margin-top: 40px;
}
.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 14px;
  color: var(--color-ink-soft);
}
.footer-links a:hover { color: var(--color-ink); }
.footer-fine { font-size: 13px; color: var(--color-ink-faint); font-family: var(--font-body); }

/* Page hero (non-home) */
.page-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--color-chrome); }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 52px); margin-top: 16px; }
.page-hero .lede { font-size: 18px; color: var(--color-ink-soft); max-width: 60ch; margin-top: 18px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-visual { order: 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stat-row { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid var(--color-chrome); }
  .stat:last-child { border-bottom: none; }
  .form-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .cta-band { padding: 40px 24px; }
}
@media (max-width: 900px) {
  .nav-links.open {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-chrome);
    padding: 20px 32px;
    gap: 18px;
  }
}
@media (max-width: 420px) {
  .nav-mark { font-size: 15px; letter-spacing: 0.06em; }
}


/* ---------- Spacing now that small section labels are gone ---------- */
.section-head > h2:first-child { margin-top: 0; }
.page-hero .container > h1:first-child,
.teaser-hero .container > h1:first-child,
.hero .container > h1:first-child { margin-top: 0 !important; }

/* ---------- Product index (replaces the product card grids) ---------- */
.product-index {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.pl-group { font-size: 22px; margin: 56px 0 18px; }
.pl-group:first-child { margin-top: 0; }
.product-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-chrome); }
.product-row { border-bottom: 1px solid var(--color-chrome); transition: opacity 0.25s ease; }
.product-list:hover .product-row:not(:hover),
.product-list:focus-within .product-row:not(:focus-within) { opacity: 0.45; }
.product-row > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 28px;
  grid-template-areas:
    "name meta arrow"
    "desc status arrow";
  column-gap: 28px;
  row-gap: 6px;
  align-items: baseline;
  padding: 30px 0;
}
.pr-thumb { display: none; grid-area: thumb; }
.pr-name {
  grid-area: name;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--color-ink);
}
.pr-desc { grid-area: desc; font-size: 15px; color: var(--color-ink-soft); max-width: 46ch; }
.pr-meta, .pr-status {
  justify-self: end;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.pr-meta { grid-area: meta; color: var(--color-ink-faint); }
.pr-status { grid-area: status; color: #B45309; }
[data-theme="dark"] .pr-status { color: #E8890C; }
.pr-arrow {
  grid-area: arrow;
  align-self: center;
  justify-self: end;
  font-size: 20px;
  color: var(--color-ink-faint);
  transition: transform 0.2s ease, color 0.2s ease;
}
.product-row > a:hover .pr-arrow,
.product-row > a:focus-visible .pr-arrow { transform: translateX(4px); color: var(--color-ink); }
.product-row--note .pr-note { display: block; padding: 28px 0; font-size: 15px; color: var(--color-ink-soft); }
.product-row--note .pr-note a { text-decoration: underline; text-underline-offset: 3px; color: var(--color-ink); }
.product-preview {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  aspect-ratio: 4 / 5;
  background: var(--color-panel-dark, var(--color-ink));
  border-radius: 14px;
  overflow: hidden;
}
.pv { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.35s ease; }
.pv.is-active { opacity: 1; }
.pv-icon { width: 46%; aspect-ratio: 1 / 1; }
@media (max-width: 900px) {
  .product-index { grid-template-columns: 1fr; }
  .product-preview { display: none; }
  .product-row > a {
    grid-template-columns: 72px minmax(0, 1fr) 20px;
    grid-template-areas:
      "thumb name arrow"
      "thumb desc arrow"
      "thumb meta arrow"
      "thumb status arrow";
    column-gap: 16px;
    padding: 22px 0;
    align-items: start;
  }
  .pr-thumb {
    display: flex; align-items: center; justify-content: center;
    width: 72px; height: 72px; border-radius: 10px;
    background: var(--color-panel-dark, var(--color-ink));
  }
  .pr-thumb svg { width: 60%; aspect-ratio: 1 / 1; }
  .pr-meta, .pr-status { justify-self: start; text-align: left; }
}


/* ---------- Legal pages ---------- */
.legal { max-width: 720px; }
.legal-updated { font-family: var(--font-mono); font-size: 12.5px; color: var(--color-ink-faint); margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin: 40px 0 10px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--color-ink-soft); font-size: 15.5px; line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0 0; padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--color-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Hero headline with no label above it */
.hero-grid > div > h1:first-child { margin-top: 0; }

/* ---------- Footer: one bar ---------- */
.footer-copy { font-size: 13.5px; color: var(--color-ink-faint); }

/* ---------- Home hero with slideshow ---------- */
.hero-grid.hero-media { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); }
.slideshow {
  position: relative;
  aspect-ratio: 6 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: #0E1013;
  border: 1px solid var(--color-chrome);
}
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ss-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.ss-caption { font-size: 13.5px; color: var(--color-ink-faint); }
.ss-dots { display: flex; gap: 6px; flex-shrink: 0; }
.ss-dot {
  width: 18px; height: 23px; padding: 10px 0;
  border: none; border-radius: 0; cursor: pointer;
  background: var(--color-chrome); background-clip: content-box;
  transition: background-color 0.2s ease, width 0.2s ease;
}
.ss-dot.is-active { background: var(--color-ink); background-clip: content-box; width: 28px; }
@media (max-width: 900px) { .hero-grid.hero-media { grid-template-columns: 1fr; } }

/* ---------- Intro banner (home page, first open) ---------- */
#intro {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  background: var(--intro-bg, #1E2D46);
  color: #F1ECE2;
  touch-action: none;
  overscroll-behavior: contain;
  transition: opacity 0.6s ease;
}
html.has-intro #intro { display: flex; }
html.has-intro, html.has-intro body { overflow: hidden; }
#intro.is-leaving { opacity: 0; pointer-events: none; }
.intro-mark {
  font-family: 'Serpentine', var(--font-display);
  font-size: clamp(30px, 5.2vw, 60px);
  letter-spacing: 0.1em;
  line-height: 1;
  animation: intro-in 0.9s ease both;
}
@keyframes intro-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Honeypot field: invisible to people, tempting to bots */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ============ Logo always on one line; phone layout ============ */
.nav-mark, .nav-mark .wordmark, .intro-mark { white-space: nowrap; }
.nav-mark { flex-shrink: 0; }
.intro-mark { font-size: clamp(22px, 6.4vw, 60px); }
.btn { white-space: nowrap; }
.hero-actions { flex-wrap: wrap; }

@media (max-width: 700px) {
  /* Top bar: the full wordmark at the top of the page, just the H once you scroll */
  .nav .container { padding: 0 20px; }
  .nav-right { gap: 10px; }
  .nav-mark { gap: 10px; transition: gap 0.35s ease; }
  .nav .nav-mark .wordmark { max-width: 14em; overflow: hidden; transition: max-width 0.35s ease, opacity 0.25s ease; }
  .nav.is-scrolled .nav-mark { gap: 0; }
  .nav.is-scrolled .nav-mark .wordmark { max-width: 0; opacity: 0; }

  /* Footer: the H centred above the wordmark, links centred underneath */
  .footer { padding: 40px 0 36px; }
  .footer .container { flex-direction: column; align-items: center; text-align: center; gap: 22px; }
  .footer .nav-mark { flex-direction: column; gap: 14px; font-size: 17px; }
  .footer .nav-mark .nav-logo-img { width: 40px; height: 40px; }
  .footer .nav-mark .wordmark { transform: none; }
  .footer-links { justify-content: center; max-width: 250px; gap: 12px 22px; font-size: 15px; }
  .footer-copy { flex-basis: 100%; text-align: center; margin-top: 8px; }

  /* Tighter headings, buttons that wrap as a whole */
  h1, h2, h3 { line-height: 1.15; }
}
@media (max-width: 360px) { .nav-mark { font-size: 13px; letter-spacing: 0.05em; } }

/* ---------- Cream / navy palette (same as the home page) ---------- */
:root {
  --color-bg: #F3F0E8;
  --color-bg-alt: #FFFFFF;
  --color-ink: #2F4365;
  --color-ink-soft: #52648A;
  --color-ink-faint: #8B96AC;
  --color-glacier: #7C93B5;
  --color-glacier-soft: #E4E9F0;
  --color-ember: #6B4029;
  --color-ember-soft: #E9D9C7;
  --color-chrome: #D7CFBF;
  --color-chrome-soft: #EEE8DB;
  --nav-bg: rgba(243, 240, 232, 0.9);
  --color-panel-dark: #666B75;
  --intro-bg: #1F2C42;
}
[data-theme="dark"] {
  --color-bg: #1F2C42;
  --color-bg-alt: #2B3A55;
  --color-ink: #F1ECE2;
  --color-ink-soft: #B7C0D2;
  --color-ink-faint: #8190AB;
  --color-glacier: #8FA6CC;
  --color-glacier-soft: #2C3C59;
  --color-ember: #B37B4E;
  --color-ember-soft: #33241A;
  --color-chrome: #3D4E6B;
  --color-chrome-soft: #25334B;
  --nav-bg: rgba(31, 44, 66, 0.9);
  --color-panel-dark: #6D727D;
}

/* ---------- Lockdown layout ---------- */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > .footer { margin-top: auto; }
.lock-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 56px 0; }
.lock-main .container { width: 100%; max-width: var(--container); }
.lock-main h1 { font-size: clamp(40px, 5.5vw, 68px); line-height: 1.05; }
.lock-main .lede { font-size: 19px; color: var(--color-ink-soft); max-width: 46ch; margin: 22px 0 0; }
.lock-main .ss-bar { justify-content: flex-end; }
/* top bar: icon on the left, wordmark centred on the page */
.lock-bar .container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.lock-icon { justify-self: start; display: inline-flex; }
.lock-icon .nav-logo-img { width: 28px; height: 28px; object-fit: contain; }
.lock-word { justify-self: center; }
@media (max-width: 700px) { .footer-links { max-width: 340px; } }

/* Info button: small and quiet, opposite the H logo; jumps to the bottom bar */
.lock-info { justify-self: end; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--color-chrome); color: var(--color-ink-faint); transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease; }
.lock-info:hover, .lock-info:focus-visible { color: var(--color-ink); border-color: var(--color-ink-faint); background-color: var(--color-bg-alt); }
.lock-info:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 2px; }
@keyframes info-ping { 0% { background-color: transparent; } 20% { background-color: var(--color-chrome-soft); } 100% { background-color: transparent; } }
#site-info.is-pinged { animation: info-ping 1.8s ease; }
