:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-hero: clamp(2.75rem, 12.6vw, 11rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  /* Monochrome palette: ink, paper and the greys between */
  --ink: oklch(0.16 0 0);
  --paper: oklch(0.99 0 0);
  --grey-900: oklch(0.24 0 0);
  --grey-600: oklch(0.46 0 0);
  --grey-500: oklch(0.6 0 0);
  --grey-400: oklch(0.7 0 0);
  --grey-200: oklch(0.9 0 0);
  --grey-100: oklch(0.955 0 0);

  --color-bg: var(--paper);
  --color-text: var(--ink);
  --color-text-muted: var(--grey-600);
  --color-text-soft: var(--grey-500);
  --color-rule: oklch(0.16 0 0 / 0.16);
  --color-rule-strong: var(--ink);

  --radius-sm: 2px;
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-wide: 1240px;
  --gutter: clamp(var(--space-5), 4vw, var(--space-12));

  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Switzer', 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); }
.section--tight { padding-block: clamp(var(--space-12), 6vw, var(--space-24)); }

.section--grey { background: var(--grey-100); }

.section--ink {
  background: var(--ink);
  color: var(--paper);
  --color-text: var(--paper);
  --color-bg: var(--ink);
  --color-text-muted: oklch(0.76 0 0);
  --color-text-soft: oklch(0.62 0 0);
  --color-rule: oklch(1 0 0 / 0.2);
  --color-rule-strong: var(--paper);
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Two-sentence headline: the first sentence recedes, the second lands. */
.h-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-2xl);
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.h-display .soft { color: var(--color-text-soft); display: block; }
.h-display .hard { display: block; }

.lead {
  font-size: var(--text-lg);
  line-height: 1.4;
  color: var(--color-text);
  max-width: 34ch;
}
.muted { color: var(--color-text-muted); }

.section-head {
  display: grid;
  gap: var(--space-6);
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}
.section-head .eyebrow { margin-bottom: calc(-1 * var(--space-2)); }
@media (min-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: var(--space-16);
    align-items: end;
  }
  .section-head .eyebrow { grid-column: 1 / -1; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--color-text);
  border-radius: var(--radius-sm);
  background: var(--color-text);
  color: var(--color-bg);
}
.btn:hover { background: transparent; color: var(--color-text); }
.btn:active { opacity: 0.7; }

.link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  text-decoration-color: var(--color-text-soft);
}
.link:hover { text-decoration-color: currentColor; }
.hero__actions .link { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Header ---------- */
.skip {
  position: absolute; left: var(--space-4); top: var(--space-4); z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--ink); color: var(--paper);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: oklch(0.99 0 0 / 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-rule);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-6);
  min-height: 68px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.22em;
  min-height: 44px;
}
.wordmark .soft { color: var(--color-text-soft); }
.nav { display: flex; align-items: center; gap: var(--space-8); }
.nav__links { display: none; gap: var(--space-8); }
.nav__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding-block: var(--space-3);
}
.nav__links a:hover { color: var(--color-text); }
.nav .btn { min-height: 44px; padding: var(--space-2) var(--space-5); }
@media (min-width: 860px) { .nav__links { display: flex; } }
@media (max-width: 420px) {
  .wordmark { font-size: 1.125rem; }
  .nav .btn { padding-inline: var(--space-4); }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(var(--space-12), 7vw, var(--space-24)) clamp(var(--space-16), 8vw, var(--space-24)); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-hero);
  letter-spacing: -0.05em;
  line-height: 0.86;
  margin-left: -0.04em;
}
.hero__title .soft { display: block; color: var(--grey-400); }
.hero__title .hard { display: block; }

.hero__body {
  display: grid;
  gap: var(--space-12);
  margin-top: clamp(var(--space-10), 5vw, var(--space-20));
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-rule-strong);
}
.hero__lead {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero__copy { margin-top: var(--space-4); color: var(--color-text-muted); max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); margin-top: var(--space-8); }

.index { display: grid; align-content: start; }
.index li { max-width: none; border-bottom: 1px solid var(--color-rule); }
.index li:first-child { border-top: 1px solid var(--color-rule); }
.index a {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--space-3);
  padding-block: var(--space-4);
  min-height: 56px;
  color: inherit;
  text-decoration: none;
}
.index__num { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.index__name { font-weight: 600; }
.index__line { color: var(--color-text-muted); font-size: var(--text-sm); text-align: right; }
.index a:hover .index__name { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
@media (min-width: 900px) {
  .hero__body { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--space-20); }
}

/* ---------- Level meter (three squares) ---------- */
.meter { display: inline-flex; gap: 3px; vertical-align: middle; }
.meter i { width: 10px; height: 10px; border: 1px solid currentColor; }
.meter i.on { background: currentColor; }

/* ---------- Levels ladder ---------- */
.ladder { border: 1px solid var(--color-rule-strong); }
.level {
  display: grid;
  gap: var(--space-8);
  padding: clamp(var(--space-6), 4vw, var(--space-16));
}
.level--1 { background: var(--paper); }
.level--2 { background: var(--grey-200); }
.level--3 {
  background: var(--ink); color: var(--paper);
  --color-text: var(--paper);
  --color-text-muted: oklch(0.78 0 0);
  --color-rule: oklch(1 0 0 / 0.22);
}
.level__meta { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.level__meta .eyebrow { color: inherit; }
.level--2 { --color-text-muted: oklch(0.36 0 0); --color-rule: oklch(0.16 0 0 / 0.24); }
.level__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-2xl);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: var(--space-5);
}
.level__say { margin-top: var(--space-4); font-size: var(--text-lg); line-height: 1.35; max-width: 26ch; }
.level__say strong { font-weight: 600; display: block; }
.level__say span { color: var(--color-text-muted); }
.level__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  max-width: 26ch;
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-rule);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.level__price strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}
.level__list li {
  max-width: none;
  padding-block: var(--space-4);
  border-top: 1px solid var(--color-rule);
}
.level__list li:last-child { padding-bottom: 0; }
@media (min-width: 900px) {
  .level { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--space-16); align-items: start; }
  .level__list li:first-child { padding-top: var(--space-2); border-top: 0; }
}
.level:target { animation: flash 1.6s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes flash {
  0% { box-shadow: inset 0 0 0 6px var(--grey-500); }
  100% { box-shadow: inset 0 0 0 6px transparent; }
}

/* ---------- Controls ---------- */
.controls { margin-top: clamp(var(--space-12), 6vw, var(--space-20)); }
.controls__head { display: grid; gap: var(--space-3); margin-bottom: var(--space-8); }
.controls__title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); letter-spacing: -0.02em; }
.cols3 { display: grid; gap: 0; }
.cols3 > * { padding-block: var(--space-5); border-top: 1px solid var(--color-rule-strong); }
.cols3 h4 { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-base); font-weight: 600; margin-bottom: var(--space-2); line-height: 1.3; }
.cols3 p { color: var(--color-text-muted); max-width: 34ch; }
@media (min-width: 760px) {
  .cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-10); }
}

/* ---------- Add-ons ---------- */
.addons { display: grid; gap: var(--space-12); }
.addon { border-top: 1px solid var(--color-rule-strong); padding-top: var(--space-6); }
.addon__plus {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-2xl);
  line-height: 0.7;
  display: block;
  margin-bottom: var(--space-6);
}
.addon__name { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); letter-spacing: -0.02em; margin-top: var(--space-2); }
.addon__say { margin-top: var(--space-3); font-size: var(--text-lg); line-height: 1.35; color: var(--color-text-muted); max-width: 30ch; }
.addon__list { margin-top: var(--space-8); }
.addon__list li { max-width: none; padding-block: var(--space-4); border-top: 1px solid var(--color-rule); }
@media (min-width: 860px) {
  .addons { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-16); }
}

/* ---------- Which level ---------- */
.picks { display: grid; border: 1px solid var(--color-rule-strong); }
.pick {
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-10);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  color: inherit; text-decoration: none;
  border-top: 1px solid var(--color-rule-strong);
  min-height: 100%;
}
.pick:first-child { border-top: 0; }
.pick__quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
  line-height: 1.12;
  max-width: 18ch;
}
.pick__to { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); font-size: var(--text-sm); font-weight: 600; }
.pick__to > span:first-child { display: inline-flex; align-items: center; gap: var(--space-3); }
.pick__arrow { transition: transform var(--transition-interactive); }
.pick:hover, .pick:focus-visible { background: var(--ink); color: var(--paper); }
.pick:hover .pick__arrow { transform: translateY(3px); }
.pick:active { opacity: 0.8; }
@media (min-width: 860px) {
  .picks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pick { border-top: 0; border-left: 1px solid var(--color-rule-strong); }
  .pick:first-child { border-left: 0; }
}

.scope {
  display: grid; gap: var(--space-4);
  margin-top: clamp(var(--space-12), 6vw, var(--space-20));
}
.scope__title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); letter-spacing: -0.02em; max-width: 20ch; }
.scope p { color: var(--color-text-muted); max-width: 52ch; }
@media (min-width: 900px) {
  .scope { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--space-16); align-items: start; }
}

/* ---------- About ---------- */
.about__copy { display: grid; gap: var(--space-8); margin-bottom: clamp(var(--space-12), 6vw, var(--space-20)); }
.about__copy p { color: var(--color-text-muted); max-width: 52ch; }
.about__copy strong { color: var(--color-text); font-weight: 600; }
@media (min-width: 860px) {
  .about__copy { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-16); }
}

.team { display: grid; gap: var(--space-12); }
.member img {
  width: 100%;
  aspect-ratio: 681 / 534;
  object-fit: cover;
  background: var(--grey-900);
  filter: grayscale(1);
}
.member__name { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); letter-spacing: -0.02em; margin-top: var(--space-5); }
.member__role { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted); margin-top: var(--space-2); }
.member__bio { margin-top: var(--space-4); color: var(--color-text-muted); }
@media (min-width: 760px) {
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-8); }
}

.values { margin-top: clamp(var(--space-12), 6vw, var(--space-20)); }

/* ---------- Contact ---------- */
.contact { display: grid; gap: var(--space-10); }
.contact .h-display { font-size: var(--text-2xl); }
.contact__side p { color: var(--color-text-muted); max-width: 44ch; }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5) var(--space-6); margin-top: var(--space-8); }
.contact__email { font-weight: 600; user-select: all; }
@media (min-width: 900px) {
  .contact { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--space-16); align-items: end; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--color-rule-strong); padding-block: var(--space-8) var(--space-10); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-4) var(--space-8); }
.footer p { font-size: var(--text-xs); color: var(--color-text-muted); }

/* ---------- Motion ---------- */
@keyframes rise { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -10% 0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.hero__title .soft { animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero__title .hard { animation: rise 0.9s 0.18s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero__body { animation: fade 0.8s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: fade linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__title .soft, .hero__title .hard, .hero__body, .level:target { animation: none; }
}
