/* ==========================================================================
   Byte Flow — site.css
   1. Tokens   2. Base   3. Layout & type   4. Buttons & links   5. Navigation
   6. Hero & facts   7. Product visuals   8. Sections   9. Sub-pages
   10. Footer   11. Motion
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */
:root {
  /* Colour */
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --faint: #86868b;
  --bg: #ffffff;
  --tile: #f5f5f7;
  --line: #d2d2d7;
  --line-soft: rgba(0, 0, 0, .08);

  --night: #0b0b0c;
  --night-2: #161617;
  --night-3: #232325;
  --on-night: #f5f5f7;
  --on-night-muted: #a1a1a6;

  --accent: #0b6e4f;
  --accent-hover: #095a41;
  --accent-night: #7ccfab;

  /* Card materials (product visuals only) */
  --gold: linear-gradient(140deg, #f1e7d3 0%, #dcc9a2 48%, #c3a771 100%);
  --silver: linear-gradient(140deg, #fbfbfc 0%, #dedee2 55%, #c6c6cc 100%);
  --graphite: linear-gradient(140deg, #3c3c40 0%, #1d1d1f 55%, #0e0e0f 100%);

  /* Type */
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Space & shape */
  --wrap: 1080px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(80px, 10.5vw, 152px);
  --gap: clamp(12px, 1.8vw, 20px);
  --tile-pad: clamp(26px, 4.4vw, 56px);
  --r-tile: clamp(22px, 2.6vw, 30px);
  --r-card: 18px;
  --nav-h: 52px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Elevation */
  --shadow-card: 0 1px 1px rgba(0, 0, 0, .04), 0 10px 30px -12px rgba(0, 0, 0, .16);
  --shadow-device: 0 2px 4px rgba(0, 0, 0, .1), 0 36px 60px -28px rgba(0, 0, 0, .45);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* clip, not hidden: hidden would make body a scroll box and unstick the nav when the menu locks the page */
  overflow-x: hidden;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
address { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-night :focus-visible { outline-color: var(--accent-night); }

::selection { background: rgba(11, 110, 79, .18); }

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
}
.skip:focus { top: 10px; }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 3. Layout & type -------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tile { background: var(--tile); }
.section--night { background: var(--night); color: var(--on-night); }
.section--flush-top { padding-top: 0; }

.display,
.h-section,
.h-tile,
.h-item {
  font-family: var(--font-display);
  font-weight: 600;
  text-wrap: balance;
}

.display {
  font-size: clamp(40px, 7.6vw, 84px);
  line-height: 1.03;
  letter-spacing: -.035em;
}

.h-section {
  font-size: clamp(32px, 5.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -.03em;
}

.h-tile {
  font-size: clamp(26px, 3.1vw, 36px);
  line-height: 1.1;
  letter-spacing: -.025em;
}

.h-item {
  font-size: clamp(20px, 2.1vw, 24px);
  line-height: 1.17;
  letter-spacing: -.02em;
}

.eyebrow {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--muted);
}
.section--night .eyebrow, .tile--night .eyebrow { color: var(--on-night-muted); }

.lede {
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.4;
  letter-spacing: -.017em;
  color: var(--muted);
  text-wrap: pretty;
}
.section--night .lede { color: var(--on-night-muted); }

.body { color: var(--muted); text-wrap: pretty; }
.tile--night .body, .section--night .body { color: var(--on-night-muted); }

.head {
  max-width: 800px;
  margin-bottom: clamp(36px, 5.6vw, 68px);
}
.head .eyebrow { margin-bottom: 14px; }
.head .lede { margin-top: 18px; max-width: 600px; }

.note { font-size: 13px; line-height: 1.4; color: var(--faint); text-align: center; text-wrap: balance; }

/* 4. Buttons & links ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.012em;
  text-align: center;
  cursor: pointer;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { border-radius: 999px; }
.btn--small { min-height: 30px; padding: 0 14px; font-size: 13px; }

.link {
  color: var(--accent);
  font-weight: 500;
}
.link::after {
  content: "";
  display: inline-block;
  width: .42em;
  height: .42em;
  margin-left: .38em;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  transform: translateY(-.12em) rotate(45deg);
  transition: transform .25s var(--ease);
}
.link:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.link:hover::after { transform: translate(.2em, -.12em) rotate(45deg); }

.prose a,
.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(11, 110, 79, .35);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.prose a:hover, .inline-link:hover { text-decoration-color: currentColor; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}
.actions--center { justify-content: center; }

/* 5. Navigation ----------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.nav.is-scrolled, .nav.is-open { border-bottom-color: var(--line-soft); }
.nav.is-open { background: #fff; }

.nav__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  flex: none;
}
.brand__mark { width: 22px; height: 22px; }
.brand__mark path, .brand__mark circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 13;
  stroke-linecap: round;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.025em;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 28px);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 28px);
}
.nav__links a, .nav__lang {
  font-size: 13px;
  letter-spacing: -.005em;
  color: var(--ink);
  opacity: .8;
  transition: opacity .2s;
}
.nav__links a:hover, .nav__lang:hover,
.nav__links a[aria-current="page"] { opacity: 1; }
.nav__links a[aria-current="page"] { font-weight: 600; }
.nav__lang {
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12px;
  font-weight: 500;
}

.nav__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -12px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav__toggle span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease);
}
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 25px; }
.nav.is-open .nav__toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    padding: 8px var(--gutter) 32px;
    background: #fff;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
  }
  /* Animate only once the visitor has used the menu (no flash when resizing). */
  .nav.is-anim .nav__menu { transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
  .nav.is-open .nav__menu {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .nav.is-anim.is-open .nav__menu { transition-delay: 0s; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -.025em;
    opacity: 1;
  }
  .nav__lang {
    align-self: flex-start;
    margin-top: 24px;
    padding: 7px 14px;
    font-size: 14px;
    opacity: 1;
  }
  .nav__menu .btn { margin-top: 20px; min-height: 48px; font-size: 17px; }
}

/* 6. Hero & facts --------------------------------------------------------- */
.hero {
  padding-top: clamp(52px, 7.6vw, 100px);
  text-align: center;
  overflow: hidden;
}
.hero .eyebrow { margin-bottom: 18px; }
.hero .lede { max-width: 600px; margin: 22px auto 0; }
.hero .actions { margin-top: 30px; }

.hero__visual {
  position: relative;
  margin-top: clamp(44px, 6.4vw, 80px);
  padding-bottom: clamp(36px, 5vw, 56px);
}
.hero__visual::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 24%;
  bottom: 0;
  width: 100vw;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(245, 245, 247, 0) 0%, var(--tile) 42%);
}
.lineup {
  --pw: clamp(216px, 58vw, 300px);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 3.2vw, 40px);
}
@media (min-width: 600px) { .lineup { --pw: clamp(200px, 33vw, 300px); } }
.lineup .phone--side { width: calc(var(--pw) * .84); }
.hero__visual .note { position: relative; margin-top: clamp(28px, 4vw, 44px); }

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 32px;
  padding-block: clamp(44px, 6vw, 76px);
  border-bottom: 1px solid var(--line-soft);
}
.fact__value {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.8vw, 56px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.035em;
}
.fact__label {
  margin-top: 10px;
  max-width: 230px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
}
@media (max-width: 860px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
}

/* 7. Product visuals ------------------------------------------------------ */

/* Phone: every measure is relative to the phone's own width (cqw),
   so the same frame works at any size. px values are the fallback. */
.phone {
  flex: none;
  width: var(--pw, 300px);
  container-type: inline-size;
}
.phone__frame {
  padding: 9px;
  padding: 3cqw;
  border-radius: 50px;
  border-radius: 16.6cqw;
  background: linear-gradient(145deg, #55555a 0%, #1b1b1d 20%, #0d0d0e 60%, #37373b 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .18),
    var(--shadow-device);
}
.phone__screen {
  position: relative;
  border-radius: 41px;
  border-radius: 13.7cqw;
  background: #080f0b;
  overflow: hidden;
  box-shadow: 0 0 0 1.5px #000;
}
.phone__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
  height: 12cqw;
  padding: 3px 21px 0 25px;
  padding: 1cqw 7cqw 0 8.4cqw;
  color: #fff;
  font-size: 12px;
  font-size: 4cqw;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}
.phone__status svg { height: .92em; width: auto; }
.phone__island {
  position: absolute;
  left: 50%;
  top: 9px;
  top: 3cqw;
  width: 28%;
  height: 24px;
  height: 8cqw;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}
.phone__screen img { width: 100%; height: auto; }

/* Wallet passes */
.passes {
  width: 100%;
  max-width: 310px;
  margin-inline: auto;
}
.pass {
  position: relative;
  padding: 16px 18px 18px;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 -8px 24px rgba(0, 0, 0, .35);
  text-align: left;
}
.pass + .pass { margin-top: -62px; }
.pass--silver { background: var(--silver); color: #1d1d1f; height: 112px; }
.pass--gold { background: var(--gold); color: #2a2213; height: 112px; }
.pass--graphite { background: linear-gradient(160deg, #343437 0%, #1f1f21 60%, #18181a 100%); color: #f5f5f7; }
.pass__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.pass__brand { display: flex; align-items: center; gap: 8px; }
.pass__brand i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; opacity: .85; }
.pass__fields {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 12px;
  margin-top: 26px;
}
.pass__field span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #a1a1a6;
}
.pass__field b {
  display: block;
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.pass__field--right { text-align: right; }
.pass__field--wide { grid-column: 1 / -1; }
.pass__field--wide b { font-size: 17px; font-family: var(--font-text); font-weight: 500; letter-spacing: 0; }
.pass__code {
  margin: 24px auto 0;
  border-radius: 10px;
  background: #fff;
}
/* The Wallet card carries the member number as a barcode (Code 128), not a QR code. */
.pass__code--bar { width: 78%; padding: 10px 12px 8px; display: grid; gap: 6px; justify-items: center; }
.pass__code--bar svg { width: 100%; height: 40px; }
.pass__code--bar span { font-size: 11px; letter-spacing: .12em; color: #1d1d1f; font-variant-numeric: tabular-nums; }
.pass__sync {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 11px;
  color: #a1a1a6;
}
.pass__sync i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-night); }

/* Console */
.console {
  width: 100%;
  padding: 20px 20px 10px;
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: var(--shadow-card);
  text-align: left;
}
.console__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.console__label { font-size: 12px; font-weight: 600; color: var(--faint); letter-spacing: .02em; text-transform: uppercase; }
.console__value { margin-top: 2px; font-family: var(--font-display); font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.console__range { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--tile); font-size: 11px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.console__range span { padding: 3px 9px; border-radius: 999px; }
.console__range .is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.console__chart { margin-top: 12px; }
.console__chart svg { width: 100%; height: auto; overflow: visible; }
.console__rows { margin-top: 10px; }
.console__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
}
.console__row span:first-child { color: var(--ink-2); }
.console__row span:last-child { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; white-space: nowrap; }
.console__row i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* Integrations */
.flows { display: grid; gap: 10px; width: 100%; }
.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: var(--shadow-card);
  text-align: left;
}
.flow__src { font-size: 12px; font-weight: 600; color: var(--faint); letter-spacing: .02em; text-transform: uppercase; }
.flow__event { margin-top: 2px; font-size: 15px; font-weight: 500; line-height: 1.35; letter-spacing: -.012em; }
.flow__pts {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 110, 79, .09);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 440px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .flow__pts { justify-self: start; }
}

/* 8. Sections ------------------------------------------------------------- */

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}
.tile {
  display: flex;
  flex-direction: column;
  grid-column: span 12;
  min-width: 0;
  padding: var(--tile-pad);
  border-radius: var(--r-tile);
  background: var(--tile);
  overflow: hidden;
}
.bento + .note { margin-top: 28px; }
.tile--night { background: var(--night); color: var(--on-night); }
.tile .eyebrow { margin-bottom: 10px; }
.tile .body { margin-top: 14px; max-width: 460px; }
.tile__visual { margin-top: auto; padding-top: clamp(32px, 4vw, 48px); }

.tile--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.tile--split .tile__visual { margin: 0; padding: 0; min-width: 0; }

.ticks { margin-top: 24px; display: grid; gap: 10px; }
.ticks li {
  position: relative;
  padding-left: 26px;
  font-size: 16px;
  color: var(--ink-2);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .42em;
  width: 11px;
  height: 6px;
  border: solid var(--accent);
  border-width: 0 0 1.75px 1.75px;
  transform: rotate(-45deg);
}

/* Screens strip (member app tile) */
.strip {
  display: flex;
  gap: clamp(14px, 2vw, 24px);
}
.strip .phone { flex: 1 1 0; width: auto; max-width: 236px; min-width: 0; }
.strip .phone:first-child { margin-left: auto; }
.strip .phone:last-child { margin-right: auto; }
.strip .phone:nth-child(even) { margin-top: 56px; }

/* Front-desk capabilities (text only) */
.caps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.cap {
  padding: 20px 20px 22px;
  border-radius: var(--r-card);
  background: #fff;
}
.cap svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cap h4 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.cap p { margin-top: 4px; font-size: 15px; line-height: 1.4; color: var(--muted); }
@media (max-width: 480px) {
  .caps { grid-template-columns: minmax(0, 1fr); }
  .cap { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 0 14px; padding: 16px 18px; }
  .cap svg { grid-row: span 2; margin-top: 1px; }
  .cap h4 { margin-top: 0; }
}

@media (min-width: 900px) {
  .tile--7 { grid-column: span 7; }
  .tile--5 { grid-column: span 5; }
}
@media (max-width: 899px) {
  .tile--split { grid-template-columns: minmax(0, 1fr); }
  .strip {
    margin: -8px calc(-1 * var(--tile-pad)) -36px;
    padding: 8px var(--tile-pad) 64px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .strip::-webkit-scrollbar { display: none; }
  .strip .phone { flex: none; width: clamp(196px, 30vw, 236px); scroll-snap-align: center; }
  .strip .phone:nth-child(even) { margin-top: 0; }
}

/* Rules */
.rules {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--gap);
}
.rule {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(26px, 3.2vw, 40px);
  border-radius: var(--r-tile);
  background: var(--night-2);
}
.rule--wide { grid-column: span 3; }
.rule__label { font-size: 14px; font-weight: 600; color: var(--accent-night); }
.rule .h-item { margin-top: 10px; }
.rule .body { margin-top: 10px; font-size: 16px; }
.rule__figure {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 .28em;
  margin-top: auto;
  padding-top: 36px;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.035em;
}
.rule__figure small { font-size: .42em; font-weight: 500; letter-spacing: -.01em; color: var(--on-night-muted); }
.tiers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 36px; }
.tiers span {
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.tiers span:nth-child(1) { background: var(--night-3); color: var(--on-night); }
.tiers span:nth-child(2) { background: var(--silver); color: #1d1d1f; }
.tiers span:nth-child(3) { background: var(--gold); color: #2a2213; }
.tiers span:nth-child(4) { background: var(--graphite); color: #f5f5f7; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
@media (max-width: 899px) {
  .rule, .rule--wide { grid-column: span 3; }
  .rule:last-child { grid-column: span 6; }
}
@media (max-width: 620px) {
  .rule, .rule--wide, .rule:last-child { grid-column: span 6; }
}

/* Journey */
.journey {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  counter-reset: step;
}
.journey li {
  position: relative;
  padding: 34px 24px 0 0;
  counter-increment: step;
}
.journey li::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 5px;
  height: 1px;
  background: var(--line);
}
.journey li::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.journey li:last-child::after { background: var(--accent); box-shadow: none; }
.journey__n { font-size: 13px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.journey__n::before { content: "0" counter(step); }
.journey .h-item { margin-top: 6px; }
.journey p:last-child { margin-top: 8px; font-size: 16px; line-height: 1.45; color: var(--muted); }
@media (max-width: 899px) {
  .journey { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .journey li { padding: 0 0 32px 34px; }
  .journey li:last-child { padding-bottom: 0; }
  .journey li::before { left: 5px; right: auto; top: 6px; bottom: -6px; width: 1px; height: auto; }
  .journey li:last-child::before { display: none; }
  .journey li::after { top: 5px; }
}

/* Method */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}
.step {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(24px, 2.6vw, 32px);
  border-radius: var(--r-tile);
  background: #fff;
}
.step__n {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--line);
}
.step .h-item { margin-top: 40px; }
.step p:last-child { margin-top: 10px; font-size: 16px; line-height: 1.45; color: var(--muted); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step .h-item { margin-top: 22px; }
}

/* Contact */
.contact { text-align: center; }
.contact .lede { max-width: 540px; margin: 20px auto 0; }
.contact .actions { margin-top: 30px; }
.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(52px, 7vw, 88px);
  border-top: 1px solid var(--line-soft);
  text-align: left;
}
.contact__item { padding: 26px 24px 0 0; min-width: 0; }
.contact__item dt { font-size: 14px; font-weight: 600; color: var(--muted); }
.contact__item dd {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 600;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.contact__item a { transition: color .2s; }
.contact__item a:hover { color: var(--accent); }
@media (max-width: 760px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .contact__item { padding: 20px 0 0; }
  .contact__item + .contact__item { margin-top: 20px; border-top: 1px solid var(--line-soft); }
}

/* 9. Sub-pages ------------------------------------------------------------ */
.page-head { padding-block: clamp(56px, 8.4vw, 112px) clamp(36px, 5.6vw, 64px); }
.page-head .display { font-size: clamp(38px, 6.6vw, 72px); }
.page-head .lede { margin-top: 18px; max-width: 620px; }
.page-head .eyebrow { margin-bottom: 14px; }

.narrow { max-width: 760px; }

.cards { display: grid; gap: var(--gap); }
.card {
  padding: var(--tile-pad);
  border-radius: var(--r-tile);
  background: var(--tile);
  min-width: 0;
}
.card .eyebrow { margin-bottom: 8px; }
.card--night { background: var(--night); color: var(--on-night); }
.card--night .eyebrow { color: var(--on-night-muted); }

.prose { color: var(--ink-2); font-size: 17px; line-height: 1.58; }
.prose > * + * { margin-top: 16px; }
.prose h2 {
  margin-top: 52px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--ink);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; font-size: 17px; font-weight: 600; color: var(--ink); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose ul { display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--faint);
}
.prose ol { counter-reset: n; display: grid; gap: 10px; }
.prose ol li { position: relative; padding-left: 30px; counter-increment: n; }
.prose ol li::before {
  content: counter(n);
  position: absolute;
  left: 0;
  top: .2em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}
.card .prose { margin-top: 18px; }
.prose a.btn { margin-top: 8px; color: #fff; text-decoration: none; }
.prose address p + p { margin-top: 16px; }
.updated { margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--faint); }

/* Definition rows (legal notice) */
.spec { border-top: 1px solid var(--line-soft); }
.spec > div {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 4px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.spec dt { font-size: 15px; color: var(--muted); }
.spec dd { color: var(--ink); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .spec > div { grid-template-columns: minmax(0, 1fr); } }

.coords { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; margin-top: 28px; }
.coords dt { font-size: 14px; font-weight: 600; color: var(--on-night-muted); }
.coords dd { margin-top: 4px; font-size: 18px; font-weight: 500; letter-spacing: -.015em; overflow-wrap: anywhere; }
.coords a { transition: color .2s; }
.coords a:hover { color: var(--accent-night); }
.coords .inline-link { color: inherit; text-decoration-color: rgba(255, 255, 255, .4); }
@media (max-width: 640px) { .coords { grid-template-columns: minmax(0, 1fr); } }

/* Not found */
.lost {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--nav-h) - 180px);
  padding-block: clamp(72px, 10vw, 140px);
  text-align: center;
}
.lost__code {
  font-family: var(--font-display);
  font-size: clamp(88px, 18vw, 180px);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.05em;
  color: var(--tile);
  -webkit-text-stroke: 1px var(--line);
}
.lost .display { margin-top: 20px; font-size: clamp(34px, 5.4vw, 56px); }
.lost .lede { margin: 16px auto 0; max-width: 480px; }
.lost .actions { margin-top: 30px; }

/* 10. Footer -------------------------------------------------------------- */
.footer {
  padding-block: 36px 44px;
  background: var(--tile);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.section--tile + .footer, .footer--ruled { border-top: 1px solid var(--line); }
.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.footer .brand__mark { width: 20px; height: 20px; }
.footer .brand__name { font-size: 16px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a { display: inline-block; padding: 4px 0; color: var(--ink-2); }
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.footer__legal { padding-top: 18px; display: grid; gap: 6px; overflow-wrap: anywhere; }
.footer__legal a { color: var(--ink-2); }

/* 11. Motion -------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

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

@media print {
  .nav, .skip { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
