/* =========================================================
   Alpha Drive — style.css
   Palette: light / saturated / silver / chrome / mint / green / deep green
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --shade-abyss: #051d16;
  --shade-pine: #0a2c22;
  --shade-forest: #10442f;
  --shade-moss: #16624a;
  --tone-jade: #12a66c;
  --tone-jade-lit: #17c283;
  --tone-mint: #9fefcb;
  --tone-mint-soft: #d9f7e9;
  --tone-mint-veil: #eefaf4;
  --metal-silver: #c2ccce;
  --metal-ash: #93a4a6;
  --metal-fog: #e4eaea;
  --paper-lit: #f8fbfa;
  --paper-pure: #ffffff;
  --ink-strong: #08211a;
  --ink-body: #334742;
  --ink-mute: #647873;

  --chrome-bar: linear-gradient(90deg, #b9c5c7 0%, #ffffff 22%, #9fefcb 48%, #ffffff 74%, #a9b6b8 100%);
  --chrome-plate: linear-gradient(135deg, #ffffff 0%, #e6edec 32%, #cdd8d8 55%, #f4f8f7 78%, #dfe7e6 100%);
  --glow-jade: radial-gradient(circle at 30% 25%, rgba(23, 194, 131, .28), rgba(5, 29, 22, 0) 62%);

  --edge-hair: 1px solid rgba(8, 33, 26, .09);
  --edge-hair-lit: 1px solid rgba(255, 255, 255, .14);

  --lift-low: 0 2px 6px rgba(8, 33, 26, .05);
  --lift-mid: 0 14px 34px -18px rgba(8, 33, 26, .28);
  --lift-high: 0 30px 70px -32px rgba(8, 33, 26, .42);

  --bend-s: 10px;
  --bend-m: 18px;
  --bend-l: 28px;
  --bend-xl: 40px;

  --pace: 340ms cubic-bezier(.22, .68, .32, 1);
  --pace-fast: 180ms cubic-bezier(.3, .7, .3, 1);

  --gutter: clamp(1.15rem, 4vw, 3.25rem);
  --measure: 1220px;
  --rhythm: clamp(4rem, 9vw, 7.75rem);

  --type-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --type-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper-lit);
  color: var(--ink-body);
  font-family: var(--type-sans);
  font-size: clamp(1rem, .96rem + .18vw, 1.08rem);
  line-height: 1.68;
  letter-spacing: .002em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0 0 .55em;
  color: var(--ink-strong);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.022em;
}

h1 { font-size: clamp(2.35rem, 1.35rem + 4.3vw, 4.5rem); }
h2 { font-size: clamp(1.85rem, 1.15rem + 2.7vw, 3.05rem); }
h3 { font-size: clamp(1.2rem, 1.02rem + .72vw, 1.55rem); line-height: 1.24; }
h4 { font-size: 1.06rem; line-height: 1.3; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: var(--shade-moss); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--tone-jade); }

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

ul, ol { margin: 0 0 1.05em; padding-left: 1.15rem; }
li { margin-bottom: .45em; }

strong { color: var(--ink-strong); font-weight: 650; }

:focus-visible {
  outline: 3px solid var(--tone-jade);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-rail {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 999;
  padding: .8rem 1.35rem;
  background: var(--shade-abyss);
  color: var(--tone-mint);
  border-radius: 0 0 var(--bend-s) var(--bend-s);
  font-weight: 650;
  text-decoration: none;
  transition: top var(--pace-fast);
}
.skip-rail:focus { top: 0; color: var(--tone-mint); }

.hidden-note {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 3. Layout primitives ---------- */
.spread {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.spread--slim { max-width: 880px; }

.strata { padding-block: var(--rhythm); position: relative; }
.strata--tight { padding-block: clamp(2.75rem, 6vw, 4.5rem); }

.strata--dark {
  background: linear-gradient(168deg, var(--shade-abyss) 0%, var(--shade-pine) 58%, var(--shade-forest) 100%);
  color: rgba(232, 244, 240, .82);
}
.strata--dark h2,
.strata--dark h3,
.strata--dark h4 { color: var(--paper-pure); }

.strata--mint { background: linear-gradient(180deg, var(--tone-mint-veil) 0%, var(--paper-lit) 100%); }
.strata--silver { background: linear-gradient(180deg, var(--paper-pure) 0%, var(--metal-fog) 100%); }

.rule-chrome {
  height: 2px;
  border: 0;
  margin: 0;
  background: var(--chrome-bar);
  opacity: .75;
}

.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.15rem;
  color: var(--shade-moss);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.eyebrow-tag::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--chrome-bar);
}
.strata--dark .eyebrow-tag { color: var(--tone-mint); }

.strata-head { max-width: 660px; margin-bottom: clamp(2.25rem, 4vw, 3.4rem); }
.strata-head--mid { margin-inline: auto; text-align: center; }
.strata-head p { color: var(--ink-mute); font-size: 1.06rem; }
.strata--dark .strata-head p { color: rgba(226, 241, 236, .74); }

/* ---------- 4. Buttons ---------- */
.pill-cta,
.ghost-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  font-size: .98rem;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--pace-fast), box-shadow var(--pace), background var(--pace), color var(--pace);
}

.pill-cta {
  background: linear-gradient(135deg, var(--tone-jade-lit) 0%, var(--shade-moss) 100%);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(18, 166, 108, .85);
}
.pill-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -14px rgba(18, 166, 108, .9);
}
.pill-cta:active { transform: translateY(0); }

.ghost-cta {
  background: transparent;
  border-color: rgba(8, 33, 26, .18);
  color: var(--ink-strong);
}
.ghost-cta:hover {
  border-color: var(--tone-jade);
  color: var(--shade-moss);
  background: rgba(159, 239, 203, .18);
}

.strata--dark .ghost-cta,
.beacon .ghost-cta {
  border-color: rgba(255, 255, 255, .3);
  color: var(--paper-pure);
}
.strata--dark .ghost-cta:hover,
.beacon .ghost-cta:hover {
  background: rgba(159, 239, 203, .14);
  border-color: var(--tone-mint);
  color: var(--tone-mint);
}

/* ---------- 5. Header ---------- */
.helm-bar {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(248, 251, 250, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(8, 33, 26, .07);
  transition: box-shadow var(--pace), background var(--pace);
}
.helm-bar.is-sunken {
  background: rgba(248, 251, 250, .95);
  box-shadow: 0 10px 30px -22px rgba(8, 33, 26, .5);
}

.helm-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.helm-mark {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--ink-strong);
  font-weight: 750;
  font-size: 1.12rem;
  letter-spacing: -.02em;
}
.helm-mark:hover { color: var(--shade-moss); }
.helm-mark span { color: var(--tone-jade); }

.helm-sigil {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--chrome-plate);
  border: 1px solid rgba(8, 33, 26, .12);
  position: relative;
  flex: none;
}
.helm-sigil::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 4px;
  background: linear-gradient(140deg, var(--tone-jade-lit), var(--shade-forest));
}

.helm-routes {
  display: flex;
  align-items: center;
  gap: clamp(.7rem, 1.6vw, 1.55rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.helm-routes .pill-cta { display: none; }
.helm-route {
  color: var(--ink-body);
  font-size: .93rem;
  font-weight: 550;
  text-decoration: none;
  padding: .4rem 0;
  position: relative;
}
.helm-route::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--chrome-bar);
  transition: right var(--pace);
}
.helm-route:hover { color: var(--ink-strong); }
.helm-route:hover::after,
.helm-route[aria-current="page"]::after { right: 0; }
.helm-route[aria-current="page"] { color: var(--shade-moss); font-weight: 650; }

.helm-side { display: flex; align-items: center; gap: .7rem; }
.helm-side .pill-cta { padding: .72rem 1.35rem; font-size: .9rem; }

.helm-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid rgba(8, 33, 26, .14);
  border-radius: 12px;
  background: var(--paper-pure);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.helm-toggle span,
.helm-toggle span::before,
.helm-toggle span::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-strong);
  transform: translateX(-50%);
  transition: transform var(--pace-fast), opacity var(--pace-fast);
}
.helm-toggle span { top: 50%; margin-top: -1px; }
.helm-toggle span::before { content: ""; top: -6px; left: 0; transform: none; }
.helm-toggle span::after { content: ""; top: 6px; left: 0; transform: none; }
.helm-toggle[aria-expanded="true"] span { background: transparent; }
.helm-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.helm-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.beacon {
  position: relative;
  overflow: hidden;
  color: rgba(233, 245, 241, .84);
  background:
    linear-gradient(112deg, rgba(5, 29, 22, .95) 0%, rgba(10, 44, 34, .86) 46%, rgba(16, 68, 47, .62) 100%),
    url("../img/hero.jpg") center / cover no-repeat;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3.5rem, 8vw, 6rem);
}
.beacon::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--chrome-bar);
  opacity: .6;
}

.beacon-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(2rem, 5vw, 4.25rem);
  align-items: center;
}

.beacon-title { color: var(--paper-pure); margin-bottom: .5em; }
.beacon-title em {
  font-family: var(--type-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--tone-mint);
  letter-spacing: -.01em;
}

.beacon-lede {
  max-width: 44ch;
  font-size: clamp(1.02rem, .96rem + .34vw, 1.2rem);
  color: rgba(226, 241, 236, .8);
}

.beacon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
}

.beacon-facts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  margin: 2.75rem 0 0;
  padding: 1.6rem 0 0;
  list-style: none;
  border-top: var(--edge-hair-lit);
}
.beacon-facts li { margin: 0; }
.beacon-facts b {
  display: block;
  font-family: var(--type-serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--tone-mint);
  letter-spacing: -.01em;
}
.beacon-facts span {
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(214, 233, 227, .62);
}

.beacon-frame {
  position: relative;
  border-radius: var(--bend-xl);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: rgba(248, 251, 250, .07);
  border: var(--edge-hair-lit);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
}
.beacon-shot {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  filter: drop-shadow(0 32px 44px rgba(0, 0, 0, .42));
}
.beacon-chip {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  background: var(--chrome-plate);
  color: var(--ink-strong);
  box-shadow: var(--lift-mid);
}
.beacon-chip b { font-family: var(--type-serif); font-size: 1.4rem; font-weight: 600; }
.beacon-chip span { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }

/* ---------- 7. Tenets (brand values) ---------- */
.tenet-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
}
.tenet-card {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: clamp(1.5rem, 2.6vw, 2.15rem);
  border-radius: var(--bend-l);
  background: var(--paper-pure);
  border: var(--edge-hair);
  box-shadow: var(--lift-low);
  transition: transform var(--pace), box-shadow var(--pace), border-color var(--pace);
}
.tenet-card:hover {
  transform: translateY(-6px);
  border-color: rgba(18, 166, 108, .35);
  box-shadow: var(--lift-mid);
}
.tenet-glyph {
  width: 46px; height: 46px;
  flex: none;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--tone-mint) 0%, var(--tone-jade) 100%);
  position: relative;
}
.tenet-glyph::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 5px;
  border: 2px solid rgba(255, 255, 255, .9);
}
.tenet-card h3 { margin: .35rem 0 0; }
.tenet-card p { color: var(--ink-mute); font-size: .97rem; }

/* ---------- 8. Product vitrine ---------- */
.vitrine {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: stretch;
  padding: clamp(1.35rem, 3vw, 2.3rem);
  border-radius: var(--bend-xl);
  background: var(--paper-pure);
  border: var(--edge-hair);
  box-shadow: var(--lift-high);
}

.vitrine-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  border-radius: var(--bend-l);
  background:
    radial-gradient(circle at 50% 22%, rgba(159, 239, 203, .5) 0%, rgba(159, 239, 203, 0) 62%),
    var(--chrome-plate);
  overflow: hidden;
}
.vitrine-stage::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(8, 33, 26, .1);
}
.vitrine-shot {
  position: relative;
  width: 100%;
  max-width: 270px;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  filter: drop-shadow(0 26px 34px rgba(8, 33, 26, .26));
}
.vitrine-ribbon {
  position: absolute;
  top: 1.15rem;
  left: 1.15rem;
  padding: .4rem .85rem;
  border-radius: 999px;
  background: rgba(5, 29, 22, .9);
  color: var(--tone-mint);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.vitrine-detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(.5rem, 2vw, 1.5rem) clamp(.25rem, 2vw, 1.25rem);
}
.vitrine-detail h2 { margin-bottom: .3em; }
.vitrine-sub {
  color: var(--ink-mute);
  font-size: .84rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
}
.vitrine-price {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  margin: 1.35rem 0;
  padding: 1rem 0;
  border-top: var(--edge-hair);
  border-bottom: var(--edge-hair);
}
.vitrine-price b {
  font-family: var(--type-serif);
  font-size: clamp(2rem, 1.4rem + 2vw, 2.85rem);
  font-weight: 600;
  color: var(--ink-strong);
  letter-spacing: -.02em;
}
.vitrine-price span { color: var(--ink-mute); font-size: .92rem; }

.vitrine-points {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: .6rem;
}
.vitrine-points li {
  position: relative;
  margin: 0;
  padding-left: 1.7rem;
  font-size: .98rem;
}
.vitrine-points li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 9px; height: 9px;
  border-radius: 3px;
  background: linear-gradient(140deg, var(--tone-mint), var(--tone-jade));
}
.vitrine-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.vitrine-fineprint { margin-top: 1.15rem; font-size: .86rem; color: var(--ink-mute); }

/* ---------- 9. Essence (ingredients) ---------- */
.essence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .12);
  border: var(--edge-hair-lit);
  border-radius: var(--bend-l);
  overflow: hidden;
}
.essence-cell {
  padding: clamp(1.5rem, 2.6vw, 2.15rem);
  background: rgba(5, 29, 22, .55);
  transition: background var(--pace);
}
.essence-cell:hover { background: rgba(18, 166, 108, .16); }
.essence-cell h3 { font-size: 1.12rem; margin-bottom: .35em; }
.essence-cell p { font-size: .95rem; color: rgba(222, 239, 233, .74); }
.essence-tag {
  display: block;
  margin-bottom: .9rem;
  font-family: var(--type-serif);
  font-size: 1.1rem;
  color: var(--tone-mint);
}
.essence-note {
  margin-top: 1.6rem;
  font-size: .88rem;
  color: rgba(214, 233, 227, .62);
  max-width: 70ch;
}

/* ---------- 10. Ritual (daily routine) ---------- */
.ritual-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.ritual-figure {
  position: relative;
  border-radius: var(--bend-xl);
  overflow: hidden;
  box-shadow: var(--lift-mid);
}
.ritual-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.ritual-figure figcaption {
  position: absolute;
  left: 1.1rem; right: 1.1rem; bottom: 1.1rem;
  padding: .85rem 1.15rem;
  border-radius: var(--bend-m);
  background: rgba(248, 251, 250, .9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink-strong);
  font-size: .9rem;
  line-height: 1.45;
}

.ritual-line { list-style: none; margin: 0; padding: 0; }
.ritual-node {
  position: relative;
  margin: 0;
  padding: 0 0 1.85rem 2.6rem;
  border-left: 1px solid rgba(8, 33, 26, .12);
}
.ritual-node:last-child { padding-bottom: 0; border-left-color: transparent; }
.ritual-node::before {
  content: "";
  position: absolute;
  left: -7px; top: .35rem;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--paper-lit);
  border: 3px solid var(--tone-jade);
}
.ritual-node h3 { font-size: 1.15rem; margin-bottom: .25em; }
.ritual-node p { color: var(--ink-mute); font-size: .97rem; }
.ritual-hour {
  display: block;
  margin-bottom: .3rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--shade-moss);
}

/* ---------- 11. Forge (manufacturing / quality) ---------- */
.forge-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.forge-figure {
  border-radius: var(--bend-xl);
  overflow: hidden;
  box-shadow: var(--lift-high);
}
.forge-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.forge-checks {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.05rem;
}
.forge-checks li {
  margin: 0;
  padding-left: 2.15rem;
  position: relative;
  font-size: .99rem;
}
.forge-checks li::before {
  content: "";
  position: absolute;
  left: 0; top: .2em;
  width: 22px; height: 22px;
  border-radius: 8px;
  background: rgba(159, 239, 203, .28);
  border: 1px solid rgba(159, 239, 203, .5);
}
.forge-checks li::after {
  content: "";
  position: absolute;
  left: 7px; top: .62em;
  width: 8px; height: 4px;
  border-left: 2px solid var(--tone-mint);
  border-bottom: 2px solid var(--tone-mint);
  transform: rotate(-45deg);
}
.forge-checks b { display: block; color: var(--paper-pure); font-weight: 650; }
.forge-checks span { color: rgba(222, 239, 233, .72); font-size: .94rem; }

/* ---------- 12. Gauge deck (comparison) ---------- */
.gauge-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: clamp(1rem, 2.4vw, 1.75rem);
  align-items: stretch;
}
.gauge-slab {
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 2.8vw, 2.3rem);
  border-radius: var(--bend-l);
  background: var(--paper-pure);
  border: var(--edge-hair);
  box-shadow: var(--lift-low);
  transition: transform var(--pace), box-shadow var(--pace);
}
.gauge-slab:hover { transform: translateY(-5px); box-shadow: var(--lift-mid); }
.gauge-slab--lead {
  background: linear-gradient(170deg, var(--shade-pine) 0%, var(--shade-forest) 100%);
  border-color: transparent;
  color: rgba(228, 243, 238, .84);
  box-shadow: var(--lift-high);
}
.gauge-slab--lead h3 { color: var(--paper-pure); }
.gauge-crown {
  align-self: flex-start;
  margin-bottom: 1rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: var(--chrome-bar);
  color: var(--shade-abyss);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.gauge-slab h3 { margin-bottom: .5rem; }
.gauge-lines { list-style: none; margin: 1.15rem 0 0; padding: 0; display: grid; gap: .75rem; }
.gauge-lines li {
  margin: 0;
  padding-top: .75rem;
  border-top: var(--edge-hair);
  font-size: .95rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.gauge-slab--lead .gauge-lines li { border-top-color: rgba(255, 255, 255, .16); }
.gauge-lines b { font-weight: 650; text-align: right; }
.gauge-slab--lead .gauge-lines b { color: var(--tone-mint); }

/* ---------- 13. Voices ---------- */
.voices-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
}
.voices-figure {
  border-radius: var(--bend-xl);
  overflow: hidden;
  box-shadow: var(--lift-mid);
}
.voices-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.voices-rail { display: grid; gap: 1.15rem; }
.voice-note {
  padding: clamp(1.35rem, 2.4vw, 1.9rem);
  border-radius: var(--bend-l);
  background: var(--paper-pure);
  border: var(--edge-hair);
  box-shadow: var(--lift-low);
  transition: transform var(--pace), border-color var(--pace);
}
.voice-note:hover { transform: translateX(5px); border-color: rgba(18, 166, 108, .32); }
.voice-note blockquote {
  margin: 0 0 .95rem;
  font-family: var(--type-serif);
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink-strong);
}
.voice-meta {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .87rem;
  color: var(--ink-mute);
}
.voice-initial {
  width: 34px; height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--tone-mint), var(--tone-jade));
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
}

/* ---------- 14. Ladder (ordering steps) + dispatch ---------- */
.ladder-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: ladder;
}
.ladder-step {
  margin: 0;
  padding: clamp(1.4rem, 2.4vw, 1.95rem);
  border-radius: var(--bend-l);
  background: var(--paper-pure);
  border: var(--edge-hair);
  counter-increment: ladder;
  position: relative;
}
.ladder-step::before {
  content: counter(ladder, decimal-leading-zero);
  display: block;
  margin-bottom: .85rem;
  font-family: var(--type-serif);
  font-size: 1.5rem;
  color: var(--tone-jade);
}
.ladder-step h3 { font-size: 1.08rem; }
.ladder-step p { font-size: .95rem; color: var(--ink-mute); }

.dispatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1px;
  margin-top: clamp(2rem, 4vw, 3rem);
  background: rgba(8, 33, 26, .1);
  border: var(--edge-hair);
  border-radius: var(--bend-l);
  overflow: hidden;
}
.dispatch-cell { padding: clamp(1.35rem, 2.4vw, 1.85rem); background: var(--paper-lit); }
.dispatch-cell dt {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--shade-moss);
  margin-bottom: .5rem;
}
.dispatch-cell dd { margin: 0; font-size: .96rem; color: var(--ink-body); }

/* ---------- 15. Order console (form) ---------- */
.console-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.console-form {
  padding: clamp(1.6rem, 3vw, 2.6rem);
  border-radius: var(--bend-xl);
  background: var(--paper-pure);
  border: var(--edge-hair);
  box-shadow: var(--lift-high);
}
.console-field { margin-bottom: 1.25rem; }
.console-field label {
  display: block;
  margin-bottom: .45rem;
  font-size: .9rem;
  font-weight: 650;
  color: var(--ink-strong);
}
.console-field input {
  width: 100%;
  padding: .95rem 1.1rem;
  border: 1px solid rgba(8, 33, 26, .16);
  border-radius: var(--bend-s);
  background: var(--paper-lit);
  font: inherit;
  color: var(--ink-strong);
  transition: border-color var(--pace-fast), box-shadow var(--pace-fast), background var(--pace-fast);
}
.console-field input::placeholder { color: #9aa9a5; }
.console-field input:hover { border-color: rgba(8, 33, 26, .3); }
.console-field input:focus {
  outline: none;
  background: var(--paper-pure);
  border-color: var(--tone-jade);
  box-shadow: 0 0 0 4px rgba(18, 166, 108, .16);
}
.console-field input[aria-invalid="true"] {
  border-color: #b4442f;
  box-shadow: 0 0 0 4px rgba(180, 68, 47, .12);
}
.console-alert {
  display: block;
  min-height: 1.2rem;
  margin-top: .4rem;
  font-size: .84rem;
  color: #a63b28;
}
.console-form .pill-cta { width: 100%; margin-top: .35rem; }
.console-legal { margin-top: 1.1rem; font-size: .83rem; color: var(--ink-mute); }
.console-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
  padding-bottom: 1.15rem;
  border-bottom: var(--edge-hair);
}
.console-summary strong { display: block; font-size: 1.02rem; }
.console-summary span { font-size: .87rem; color: var(--ink-mute); }
.console-summary b {
  font-family: var(--type-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink-strong);
  white-space: nowrap;
}

.console-aside h2 { margin-bottom: .5em; }
.console-marks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .85rem; }
.console-marks li {
  margin: 0;
  padding-left: 1.65rem;
  position: relative;
  font-size: .97rem;
  color: rgba(226, 241, 236, .78);
}
.console-marks li::before {
  content: "";
  position: absolute;
  left: 0; top: .58em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--tone-mint);
}

/* ---------- 16. FAQ ---------- */
.query-stack {
  display: grid;
  gap: .85rem;
  max-width: 860px;
  margin-inline: auto;
}
.query-item {
  border-radius: var(--bend-m);
  background: var(--paper-pure);
  border: var(--edge-hair);
  overflow: hidden;
  transition: border-color var(--pace), box-shadow var(--pace);
}
.query-item:hover { border-color: rgba(18, 166, 108, .3); }
.query-item[open] { box-shadow: var(--lift-mid); border-color: rgba(18, 166, 108, .3); }
.query-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 3.25rem 1.25rem 1.5rem;
  font-weight: 650;
  color: var(--ink-strong);
  position: relative;
}
.query-item summary::-webkit-details-marker { display: none; }
.query-item summary::after {
  content: "";
  position: absolute;
  right: 1.5rem; top: 1.55rem;
  width: 10px; height: 10px;
  border-right: 2px solid var(--shade-moss);
  border-bottom: 2px solid var(--shade-moss);
  transform: rotate(45deg);
  transition: transform var(--pace);
}
.query-item[open] summary::after { transform: rotate(-135deg); }
.query-body { padding: 0 1.5rem 1.4rem; color: var(--ink-mute); font-size: .97rem; }

/* ---------- 17. Contact atlas + newsletter ---------- */
.atlas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: clamp(1rem, 2.4vw, 1.75rem);
}
.atlas-card {
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  border-radius: var(--bend-l);
  background: var(--paper-pure);
  border: var(--edge-hair);
  box-shadow: var(--lift-low);
}
.atlas-card h3 { font-size: 1.05rem; margin-bottom: .55rem; }
.atlas-card p, .atlas-card address {
  margin: 0;
  font-style: normal;
  color: var(--ink-mute);
  font-size: .97rem;
  line-height: 1.62;
}
.atlas-card a { font-weight: 600; }

.signal-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--bend-xl);
  background: linear-gradient(140deg, var(--shade-pine) 0%, var(--shade-moss) 100%);
  color: rgba(228, 243, 238, .82);
  box-shadow: var(--lift-high);
}
.signal-strip h2 { color: var(--paper-pure); }
.signal-form { display: flex; flex-wrap: wrap; gap: .7rem; }
.signal-form label { flex: 1 1 220px; }
.signal-form input {
  width: 100%;
  padding: .95rem 1.15rem;
  border-radius: var(--bend-s);
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font: inherit;
}
.signal-form input::placeholder { color: rgba(226, 241, 236, .55); }
.signal-form input:focus {
  outline: none;
  border-color: var(--tone-mint);
  box-shadow: 0 0 0 4px rgba(159, 239, 203, .18);
}
.signal-form .pill-cta { flex: 0 0 auto; }
.signal-note { margin-top: .9rem; font-size: .84rem; color: rgba(214, 233, 227, .62); }
.signal-status { margin-top: .8rem; font-size: .9rem; color: var(--tone-mint); min-height: 1.2rem; }

/* ---------- 18. Footer ---------- */
.baseboard {
  background: var(--shade-abyss);
  color: rgba(214, 233, 227, .66);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: .94rem;
}
.baseboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(155px, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}
.baseboard h4 {
  color: var(--tone-mint);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.baseboard-links { list-style: none; margin: 0; padding: 0; }
.baseboard-links li { margin-bottom: .6rem; }
.baseboard-links a { color: rgba(214, 233, 227, .72); text-decoration: none; }
.baseboard-links a:hover { color: var(--tone-mint); }
.baseboard address { font-style: normal; line-height: 1.7; }
.baseboard-brand .helm-mark { color: var(--paper-pure); margin-bottom: 1rem; }
.baseboard-brand p { max-width: 34ch; }
.baseboard-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.25rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: var(--edge-hair-lit);
  font-size: .86rem;
  color: rgba(196, 219, 212, .5);
}

/* ---------- 19. Cookie consent ---------- */
.consent-dock {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translate(-50%, 130%);
  z-index: 200;
  width: min(760px, calc(100vw - 2rem));
  padding: clamp(1.25rem, 2.6vw, 1.75rem);
  border-radius: var(--bend-l);
  background: rgba(248, 251, 250, .97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(8, 33, 26, .1);
  box-shadow: var(--lift-high);
  transition: transform 420ms cubic-bezier(.2, .7, .3, 1), opacity 320ms;
  opacity: 0;
}
.consent-dock.is-shown { transform: translate(-50%, 0); opacity: 1; }
.consent-dock h2 { font-size: 1.12rem; margin-bottom: .4rem; }
.consent-dock p { font-size: .92rem; color: var(--ink-mute); margin-bottom: 1.15rem; }
.consent-choices { display: flex; flex-wrap: wrap; gap: .65rem; }
.consent-choices .pill-cta,
.consent-choices .ghost-cta { padding: .78rem 1.4rem; font-size: .92rem; }
.consent-plain {
  background: none;
  border: 0;
  padding: .78rem .4rem;
  font: inherit;
  font-size: .92rem;
  color: var(--shade-moss);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.consent-plain:hover { color: var(--tone-jade); }

.consent-veil {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(5, 29, 22, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.consent-veil.is-open { display: grid; }
.consent-panel {
  width: min(560px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--bend-l);
  background: var(--paper-lit);
  box-shadow: var(--lift-high);
}
.consent-panel h2 { font-size: 1.35rem; }
.consent-switch {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1rem 0;
  border-top: var(--edge-hair);
}
.consent-switch input { margin-top: .3rem; width: 20px; height: 20px; accent-color: var(--tone-jade); flex: none; }
.consent-switch strong { display: block; color: var(--ink-strong); }
.consent-switch span { font-size: .9rem; color: var(--ink-mute); }
.consent-panel-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }

/* ---------- 20. Legal + inner pages ---------- */
.crest {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(2.25rem, 5vw, 3.5rem);
  background: linear-gradient(160deg, var(--shade-abyss) 0%, var(--shade-forest) 100%);
  color: rgba(226, 241, 236, .78);
}
.crest h1 { color: var(--paper-pure); max-width: 18ch; }
.crest p { max-width: 60ch; color: rgba(226, 241, 236, .74); }
.crest-stamp {
  margin-top: 1.5rem;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tone-mint);
}

.folio { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.folio h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.72rem);
  margin-top: 2.6rem;
  padding-top: 1.75rem;
  border-top: var(--edge-hair);
}
.folio h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.folio h3 { font-size: 1.1rem; margin-top: 1.7rem; }
.folio ul { padding-left: 1.25rem; }
.folio li::marker { color: var(--tone-jade); }
.folio-lead {
  font-size: 1.08rem;
  color: var(--ink-strong);
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--tone-jade);
  background: var(--tone-mint-veil);
  border-radius: 0 var(--bend-m) var(--bend-m) 0;
  margin-bottom: 2.25rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.75rem;
  font-size: .94rem;
}
.data-table caption {
  text-align: left;
  padding-bottom: .7rem;
  color: var(--ink-mute);
  font-size: .88rem;
}
.data-table th,
.data-table td {
  padding: .85rem 1rem;
  border: 1px solid rgba(8, 33, 26, .12);
  text-align: left;
  vertical-align: top;
}
.data-table th { background: var(--tone-mint-veil); color: var(--ink-strong); font-weight: 650; }
.table-scroll { overflow-x: auto; }

/* ---------- 21. Success page ---------- */
.receipt {
  min-height: 62vh;
  display: grid;
  place-items: center;
  padding-block: clamp(3rem, 8vw, 6rem);
  background:
    radial-gradient(circle at 50% 0%, rgba(159, 239, 203, .35) 0%, rgba(159, 239, 203, 0) 55%),
    var(--paper-lit);
}
.receipt-card {
  width: min(620px, 100%);
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--bend-xl);
  background: var(--paper-pure);
  border: var(--edge-hair);
  box-shadow: var(--lift-high);
}
.receipt-seal {
  width: 76px; height: 76px;
  margin: 0 auto 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--tone-mint) 0%, var(--tone-jade) 100%);
  box-shadow: 0 14px 30px -14px rgba(18, 166, 108, .8);
}
.receipt-seal::after {
  content: "";
  width: 24px; height: 12px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg) translate(2px, -3px);
}
.receipt-card p { color: var(--ink-mute); }
.receipt-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.9rem; }
.receipt-next {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: var(--edge-hair);
  font-size: .9rem;
}

/* ---------- 22. Habits page ---------- */
.habit-hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  color: rgba(233, 245, 241, .84);
  background:
    linear-gradient(120deg, rgba(5, 29, 22, .92) 0%, rgba(16, 68, 47, .74) 100%),
    url("../img/habits.jpg") center / cover no-repeat;
}
.habit-hero h1 { color: var(--paper-pure); max-width: 16ch; }
.habit-hero p { max-width: 52ch; color: rgba(226, 241, 236, .8); font-size: 1.08rem; }

.habit-spot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
  padding: clamp(1.35rem, 3vw, 2.25rem);
  border-radius: var(--bend-xl);
  background: var(--paper-pure);
  border: var(--edge-hair);
  box-shadow: var(--lift-mid);
}
.habit-spot img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--bend-l);
}
.habit-spot-body { padding: clamp(.25rem, 2vw, 1.25rem); }

.habit-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: clamp(1rem, 2.4vw, 1.7rem);
}
.habit-card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  border-radius: var(--bend-l);
  background: var(--paper-pure);
  border: var(--edge-hair);
  box-shadow: var(--lift-low);
  transition: transform var(--pace), box-shadow var(--pace);
}
.habit-card:hover { transform: translateY(-5px); box-shadow: var(--lift-mid); }
.habit-card h3 { font-size: 1.12rem; margin-bottom: 0; }
.habit-card p { font-size: .96rem; color: var(--ink-mute); }
.habit-index {
  font-family: var(--type-serif);
  font-size: 1.05rem;
  color: var(--tone-jade);
  letter-spacing: .06em;
}

/* ---------- 23. Motion ---------- */
.rise {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(.22, .68, .32, 1);
  will-change: opacity, transform;
}
.rise.is-lit { opacity: 1; transform: none; }

/* ---------- 24. Responsive ---------- */
@media (max-width: 1080px) {
  .beacon-grid,
  .vitrine,
  .ritual-split,
  .forge-layout,
  .voices-layout,
  .console-layout,
  .signal-strip,
  .habit-spot { grid-template-columns: minmax(0, 1fr); }

  .vitrine-stage { min-height: 300px; }
  .ritual-figure img { aspect-ratio: 16 / 10; }
  .voices-figure img { aspect-ratio: 16 / 9; }
  .beacon-frame { max-width: 460px; margin-inline: auto; }
  .baseboard-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

@media (max-width: 860px) {
  .helm-toggle { display: block; }
  .helm-side .pill-cta { display: none; }

  .helm-routes {
    position: fixed;
    inset: 74px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gutter) 1.75rem;
    background: var(--paper-pure);
    border-bottom: 1px solid rgba(8, 33, 26, .1);
    box-shadow: var(--lift-mid);
    transform: translateY(-130%);
    transition: transform var(--pace);
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }
  .helm-routes.is-open { transform: translateY(0); }
  .helm-route {
    padding: .95rem .25rem;
    border-bottom: var(--edge-hair);
    font-size: 1.02rem;
  }
  .helm-route::after { display: none; }
  .helm-routes .pill-cta {
    display: inline-flex;
    margin-top: 1.1rem;
  }
}

@media (max-width: 620px) {
  h1 { letter-spacing: -.018em; }
  .beacon-facts { gap: 1.15rem 1.9rem; }
  .console-summary { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .signal-form .pill-cta { width: 100%; }
  .consent-choices .pill-cta,
  .consent-choices .ghost-cta { flex: 1 1 100%; }
  .baseboard-foot { flex-direction: column; }
}

@media (max-width: 380px) {
  :root { --gutter: 1rem; }
  .vitrine-price { flex-direction: column; gap: .15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .rise { opacity: 1; transform: none; }
}

@media print {
  .helm-bar, .consent-dock, .consent-veil, .signal-strip { display: none !important; }
  body { background: #fff; color: #000; }
}
