/* ==========================================================================
   Método Mercado — design system
   ========================================================================== */
:root {
  --paper: #f3f1ea;
  --paper-2: #e8e5da;
  --paper-3: #dcd8ca;
  --ink: #0d0d0b;
  --ink-2: #2b2b27;
  --muted: #76746a;
  --line: rgba(13, 13, 11, 0.12);
  --line-strong: rgba(13, 13, 11, 0.24);
  --cobalt: #2f45ff;
  --cobalt-soft: #dfe3ff;
  --lime: #d4ff3a;
  --coral: #ff6a3d;

  --f-sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --r-xl: 44px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --fs-hero: clamp(3.1rem, 10.4vw, 11.5rem);
  --fs-h2: clamp(2.3rem, 6vw, 6rem);
  --fs-h3: clamp(1.4rem, 2.2vw, 2rem);
  --fs-lead: clamp(1.05rem, 1.35vw, 1.3rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked {
  overflow: hidden;
}
img,
svg,
canvas {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
::selection {
  background: var(--lime);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 999px;
  transition: top 0.3s var(--ease);
}
.skip:focus {
  top: 12px;
}

/* ---------- layout primitives ---------- */
.shell {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.block {
  padding: clamp(88px, 13vw, 200px) 0;
  position: relative;
}
.block--tight {
  padding: clamp(64px, 8vw, 120px) 0;
}
.dark {
  background: var(--ink);
  color: var(--paper);
  --line: rgba(243, 241, 234, 0.14);
  --line-strong: rgba(243, 241, 234, 0.28);
  --muted: #a3a197;
}

/* ---------- type ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--cobalt);
}
.dark .tag::before {
  background: var(--lime);
}
.h2 {
  font-size: var(--fs-h2);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.h3 {
  font-size: var(--fs-h3);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
}
.dark .lead {
  color: #cfccc1;
}
.muted {
  color: var(--muted);
}
.head {
  display: grid;
  gap: 28px;
  margin-bottom: clamp(48px, 7vw, 104px);
}
.head--split {
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) {
  .head--split {
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
  }
}

/* split text */
.ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.ln > span {
  display: inline-block;
  will-change: transform;
}
.wd {
  display: inline-block;
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 10px 0 26px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease);
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lime);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.6s var(--ease);
  z-index: -1;
}
.btn:hover::before {
  transform: translateY(0);
}
.btn:hover {
  color: var(--ink);
}
.btn__ico {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--ink);
  transition: transform 0.6s var(--ease), background 0.4s;
}
.btn:hover .btn__ico {
  transform: rotate(-45deg);
  background: var(--ink);
  color: var(--lime);
}
.btn__ico svg {
  width: 16px;
  height: 16px;
}
.btn--light {
  --bg: var(--paper);
  --fg: var(--ink);
}
.btn--light .btn__ico {
  background: var(--ink);
  color: var(--paper);
}
.btn--ghost {
  --bg: transparent;
  --fg: var(--ink);
  border: 1px solid var(--line-strong);
  padding: 0 26px;
}
.dark .btn--ghost {
  --fg: var(--paper);
}
.btn--ghost::before {
  background: var(--ink);
}
.dark .btn--ghost::before {
  background: var(--paper);
}
.btn--ghost:hover {
  color: var(--paper);
}
.dark .btn--ghost:hover {
  color: var(--ink);
}
.btn--full {
  width: 100%;
  justify-content: space-between;
}
.link-u {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.link-u::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.5s var(--ease);
}
.link-u:hover::after {
  transform-origin: left;
  transform: scaleX(1);
}

/* ==========================================================================
   Preloader
   ========================================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--gutter);
  pointer-events: none;
}
.no-js .loader,
.no-motion .loader {
  display: none;
}
.loader__top {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a3a197;
}
.loader__num {
  font-size: clamp(5rem, 22vw, 20rem);
  line-height: 0.8;
  letter-spacing: -0.06em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.loader__bar {
  height: 2px;
  background: rgba(243, 241, 234, 0.14);
  margin-top: 24px;
  overflow: hidden;
}
.loader__bar i {
  display: block;
  height: 100%;
  background: var(--lime);
  transform-origin: left;
  transform: scaleX(0);
}

/* ==========================================================================
   Cursor
   ========================================================================== */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  z-index: 250;
  mix-blend-mode: difference;
  filter: invert(1);
  transition: width 0.4s var(--ease), height 0.4s var(--ease),
    margin 0.4s var(--ease), opacity 0.3s;
  opacity: 0;
  display: grid;
  place-items: center;
}
.cursor.is-on {
  opacity: 1;
}
.cursor.is-big {
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
}
@media (hover: none), (pointer: coarse) {
  .cursor {
    display: none;
  }
}

/* ==========================================================================
   Header
   ========================================================================== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: transform 0.6s var(--ease);
}
.topbar.is-hidden {
  transform: translateY(-110%);
}
.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
  padding: 0 8px 0 20px;
  border-radius: 999px;
  background: rgba(243, 241, 234, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.brand__mark {
  width: 30px;
  height: 30px;
}
.brand__mark .m-a {
  transform-origin: 50% 50%;
  transition: transform 0.8s var(--ease);
}
.brand:hover .brand__mark .m-a {
  transform: rotate(90deg);
}
.menu {
  display: none;
  gap: 4px;
}
.menu a {
  position: relative;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  transition: background 0.35s, color 0.35s;
}
.menu a:hover {
  background: var(--ink);
  color: var(--paper);
}
.topbar__cta {
  display: none;
}
.topbar__cta.btn {
  height: 44px;
  padding: 0 6px 0 18px;
  font-size: 14px;
}
.topbar__cta .btn__ico {
  width: 32px;
  height: 32px;
}
.burger {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  display: grid;
  place-items: center;
}
.burger span {
  position: relative;
  width: 16px;
  height: 8px;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--paper);
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.burger span::before {
  top: 0;
}
.burger span::after {
  top: 6.5px;
}
.menu-open .burger span::before {
  top: 3.25px;
  transform: rotate(45deg);
}
.menu-open .burger span::after {
  top: 3.25px;
  transform: rotate(-45deg);
}
@media (min-width: 1060px) {
  .menu {
    display: flex;
  }
  .topbar__cta {
    display: inline-flex;
  }
  .burger {
    display: none;
  }
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  color: var(--paper);
  padding: 110px var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s var(--ease-io);
  visibility: hidden;
}
.menu-open .drawer {
  clip-path: inset(0 0 0 0);
  visibility: visible;
}
.drawer__list a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: clamp(2.2rem, 9vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  padding: 4px 0;
  border-bottom: 1px solid rgba(243, 241, 234, 0.12);
}
.drawer__list a small {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--lime);
  letter-spacing: 0;
}
.drawer__foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #a3a197;
}
.menu-open .topbar__in {
  background: rgba(243, 241, 234, 0.95);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  padding: clamp(96px, 13vh, 130px) 0 clamp(20px, 4vh, 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__stage canvas {
  width: 100% !important;
  height: 100% !important;
}
.hero__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(240px 90px at calc(100% - 140px) 140px, rgba(243, 241, 234, 0.95), rgba(243, 241, 234, 0) 100%),
    radial-gradient(70px 160px at calc(100% - 64px) 50%, rgba(243, 241, 234, 0.95), rgba(243, 241, 234, 0) 100%),
    linear-gradient(90deg, rgba(243, 241, 234, 0.96) 0%, rgba(243, 241, 234, 0.9) 30%, rgba(243, 241, 234, 0.45) 52%, rgba(243, 241, 234, 0) 70%),
    linear-gradient(0deg, rgba(243, 241, 234, 0.92) 0%, rgba(243, 241, 234, 0.6) 22%, rgba(243, 241, 234, 0) 42%),
    linear-gradient(180deg, rgba(243, 241, 234, 0.7) 0%, rgba(243, 241, 234, 0) 18%);
}
@media (max-width: 899px) {
  .hero__stage::before {
    background:
      linear-gradient(180deg, rgba(243, 241, 234, 0.75) 0%, rgba(243, 241, 234, 0.82) 45%, rgba(243, 241, 234, 0.95) 100%);
  }
}
.hero__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0.9;
}
.has-webgl .hero__fallback {
  display: none;
}
.hero .shell {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  pointer-events: none;
}
.hero .shell a,
.hero .shell button {
  pointer-events: auto;
}
.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(243, 241, 234, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 13px;
}
.pill b {
  font-weight: 500;
  background: var(--lime);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}
.live i {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cobalt);
}
.live i::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1.5px solid var(--cobalt);
  animation: ring 2s var(--ease) infinite;
}
@keyframes ring {
  from {
    transform: scale(1);
    opacity: 0.8;
  }
  to {
    transform: scale(3);
    opacity: 0;
  }
}
.hero__title {
  font-size: clamp(2.8rem, min(10.4vw, 15.5vh), 11.5rem);
  line-height: 0.86;
  letter-spacing: -0.06em;
  font-weight: 500;
  max-width: 11ch;
}
.hero__title .serif {
  letter-spacing: -0.03em;
  color: var(--cobalt);
}
.hero__bottom {
  display: grid;
  gap: 28px;
  align-items: end;
}
@media (min-width: 960px) {
  .hero__bottom {
    grid-template-columns: 1.1fr 1fr auto;
    gap: 48px;
  }
}
@media (max-width: 599px) {
  .hero__title {
    font-size: min(14vw, 9.5vh);
  }
  .hero .live,
  .hero__note,
  .hero .btn--ghost {
    display: none;
  }
  .hero .shell {
    gap: 20px;
  }
  .hero__bottom {
    gap: 20px;
  }
}
@media (max-height: 760px) and (min-width: 960px) {
  .hero__note {
    display: none;
  }
}
.hero__lead {
  font-size: var(--fs-lead);
  max-width: 30em;
  color: var(--ink-2);
}
.hero__note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  max-width: 34em;
}
.hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.stats {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
}
.stat__n {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.stat__l {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.scroll-hint {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;

  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  writing-mode: vertical-rl;
  pointer-events: none;
}
.scroll-hint i {
  width: 1px;
  height: 56px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.scroll-hint i::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1px;
  height: 20px;
  background: var(--ink);
  animation: drip 2.2s var(--ease-io) infinite;
}
@keyframes drip {
  from {
    top: -20px;
  }
  to {
    top: 56px;
  }
}
@media (min-width: 1200px) {
  .scroll-hint {
    display: flex;
  }
}

/* ==========================================================================
   Manifest
   ========================================================================== */
.manifest__text {
  font-size: clamp(1.9rem, 4.6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 500;
  max-width: 20ch;
}
.manifest__text .wd {
  opacity: 0.16;
}
.no-js .manifest__text .wd,
.no-motion .manifest__text .wd {
  opacity: 1;
}
.manifest__text .serif {
  color: var(--lime);
}
.manifest__grid {
  display: grid;
  gap: 56px;
}
@media (min-width: 1000px) {
  .manifest__grid {
    grid-template-columns: 220px 1fr;
  }
}
.manifest__facts {
  display: grid;
  gap: 1px;
  margin-top: clamp(56px, 8vw, 120px);
  background: var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
}
@media (min-width: 760px) {
  .manifest__facts {
    grid-template-columns: repeat(3, 1fr);
  }
}
.fact {
  background: var(--ink);
  padding: 32px 28px;
  display: grid;
  gap: 18px;
}
.fact__ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(243, 241, 234, 0.08);
  color: var(--lime);
}
.fact__ico svg {
  width: 22px;
  height: 22px;
}
.fact p {
  color: #bdbab0;
  font-size: 15px;
}
.fact h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Modules — horizontal
   ========================================================================== */
.modules {
  overflow: hidden;
}
.modules__rail {
  display: grid;
  gap: 16px;
}
.mod {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 40px);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  background: var(--paper-2);
  overflow: hidden;
}
.mod:nth-child(2) {
  background: var(--cobalt);
  color: #fff;
}
.mod:nth-child(3) {
  background: var(--ink);
  color: var(--paper);
}
.mod:nth-child(4) {
  background: var(--lime);
}
.mod__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.mod__n {
  font-family: var(--f-mono);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: 0.8;
}
.mod__art {
  flex: 1;
  position: relative;
  min-height: 210px;
}
.mod__art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.mod h3 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.mod p {
  margin-top: 14px;
  opacity: 0.78;
  max-width: 30em;
}
.mod__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}
.mod__chips span {
  font-size: 12px;
  font-family: var(--f-mono);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}
.mod:nth-child(1) .mod__chips span,
.mod:nth-child(4) .mod__chips span {
  background: rgba(13, 13, 11, 0.07);
}
@media (min-width: 900px) {
  .modules__rail {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1100px) {
  .has-hscroll .modules__rail {
    display: flex;
    width: max-content;
    gap: 20px;
  }
  .has-hscroll .mod {
    width: min(42vw, 600px);
    min-height: min(68vh, 640px);
  }
}

/* ==========================================================================
   Roadmap
   ========================================================================== */
.road {
  position: relative;
  display: grid;
  gap: 0;
}
.road__line {
  position: absolute;
  left: 23px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.road__line i {
  position: absolute;
  inset: 0;
  background: var(--cobalt);
  transform-origin: top;
  transform: scaleY(0);
}
.no-js .road__line i,
.no-motion .road__line i {
  transform: none;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px 24px;
  padding: 0 0 clamp(56px, 7vw, 96px);
}
.step:last-child {
  padding-bottom: 0;
}
.step__dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 12px;
  position: relative;
  z-index: 1;
  transition: background 0.5s, border-color 0.5s, color 0.5s;
}
.step.is-on .step__dot {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
}
.step__body {
  display: grid;
  gap: 18px;
}
.step__range {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--cobalt);
}
.step__title {
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 500;
}
.step__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.step__list li {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 14px;
}
@media (min-width: 1000px) {
  .road__line {
    left: calc(28% + 32px + 23px);
  }
  .step {
    grid-template-columns: 28% 48px 1fr;
    gap: 0 32px;
  }
  .step__aside {
    padding-top: 10px;
  }
}
.step__aside {
  display: none;
}
@media (min-width: 1000px) {
  .step__aside {
    display: block;
  }
}
.step__aside strong {
  display: block;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 500;
}
.step__aside span {
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ==========================================================================
   Flow (bento)
   ========================================================================== */
.bento {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(260px, auto);
  }
  .bento__a {
    grid-column: span 4;
  }
  .bento__b {
    grid-column: span 2;
  }
  .bento__c {
    grid-column: span 6;
  }
}
.tile {
  position: relative;
  border-radius: var(--r-l);
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  background: var(--paper);
  transition: border-color 0.4s;
}
.tile:hover {
  border-color: var(--line-strong);
}
.tile h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  letter-spacing: -0.04em;
  font-weight: 500;
  line-height: 1.05;
}
.tile p {
  color: var(--ink-2);
  max-width: 32em;
  margin-top: 10px;
}
.tile__k {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tile--cobalt {
  background: var(--cobalt);
  color: #fff;
  border-color: transparent;
}
.tile--cobalt p,
.tile--cobalt .tile__k {
  color: rgba(255, 255, 255, 0.78);
}
.tile--paper2 {
  background: var(--paper-2);
  border-color: transparent;
}
.dash {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.dash__card {
  border-radius: 16px;
  background: var(--paper-2);
  padding: 16px;
  display: grid;
  gap: 10px;
}
.dash__card small {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
}
.dash__card b {
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.dash__prog {
  height: 6px;
  border-radius: 6px;
  background: var(--paper-3);
  overflow: hidden;
}
.dash__prog i {
  display: block;
  height: 100%;
  background: var(--cobalt);
  border-radius: 6px;
  transform-origin: left;
}
.spark {
  width: 100%;
  height: 46px;
}
.avatars {
  display: flex;
}
.avatars span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid var(--cobalt);
  margin-right: -14px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.weeks {
  display: grid;
  gap: 14px;
}
.weeks__bars {
  height: 120px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
}
.weeks__bars i {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  transform-origin: bottom;
}
.weeks .p1 {
  background: var(--ink);
}
.weeks .p2 {
  background: var(--cobalt);
}
.weeks .p3 {
  background: var(--lime);
  outline: 1px solid rgba(13, 13, 11, 0.25);
  outline-offset: -1px;
}
.weeks__legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
}
.weeks__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.weeks__legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
/* ==========================================================================
   Certificate
   ========================================================================== */
.cert__grid {
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1000px) {
  .cert__grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}
.exam {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}
.exam__item {
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
}
.exam__badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--lime);
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 13px;
}
.exam__item h3 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.exam__item small {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt);
}
.exam__item p {
  color: var(--ink-2);
  font-size: 15px;
  margin-top: 6px;
}
.cert3d {
  perspective: 1400px;
  display: grid;
  place-items: center;
  padding: 20px 0;
}
.cert3d__card {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1.414;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
  will-change: transform;
}
.cert3d__face {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: #fbfaf6;
  border: 1px solid var(--line-strong);
  padding: clamp(18px, 3.5vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  backface-visibility: hidden;
}
.cert3d__layer {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: var(--cobalt);
}
.cert3d__layer--1 {
  transform: translateZ(-26px);
}
.cert3d__layer--2 {
  transform: translateZ(-52px);
  background: var(--lime);
}
.cert3d__face > * {
  position: relative;
}
.cert3d__guilloche {
  position: absolute !important;
  inset: 0;
  opacity: 0.55;
}
.cert3d__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cert3d__name {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  transform: translateZ(40px);
}
.cert3d__sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.cert3d__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 12px;
}
.cert3d__seal {
  width: clamp(56px, 10vw, 84px);
  height: clamp(56px, 10vw, 84px);
  animation: spin 18s linear infinite;
}

/* ==========================================================================
   Mentors
   ========================================================================== */
.team {
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) {
  .team {
    grid-template-columns: repeat(3, 1fr);
  }
}
.mentor {
  border-radius: var(--r-l);
  background: var(--paper-2);
  padding: clamp(22px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background 0.4s;
}
.mentor:hover {
  background: var(--paper-3);
}
.mentor__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}
.mentor__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 24px;
}
.mentor__head h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.mentor__head p {
  font-size: 14px;
  color: var(--muted);
}
.person__yrs {
  font-family: var(--f-mono);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--paper);
  white-space: nowrap;
}
.mentor__viz {
  border-radius: var(--r-m);
  background: var(--paper);
  padding: 18px 16px 12px;
}
.mentor__viz svg {
  width: 100%;
  height: auto;
}
.mentor__bio {
  color: var(--ink-2);
  font-size: 15px;
  flex: 1;
}
.mentor__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mentor__tags li {
  font-family: var(--f-mono);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
}

/* ==========================================================================
   Audience
   ========================================================================== */
.aud {
  border-top: 1px solid var(--line);
}
.aud__row {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: clamp(28px, 4vw, 48px) 0;
  position: relative;
  overflow: hidden;
}
.aud__row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lime);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.7s var(--ease);
  z-index: 0;
}
.aud__row:hover::before {
  transform: scaleY(1);
}
.aud__row > * {
  position: relative;
  z-index: 1;
}
.aud__n {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--muted);
}
.aud__t {
  font-size: clamp(2.2rem, 6vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 500;
  transition: transform 0.7s var(--ease);
}
.aud__row:hover .aud__t {
  transform: translateX(14px);
}
.aud__p {
  color: var(--ink-2);
  max-width: 28em;
}
@media (min-width: 900px) {
  .aud__row {
    grid-template-columns: 80px 1.3fr 1fr;
    align-items: center;
    gap: 32px;
  }
}

/* ==========================================================================
   Library
   ========================================================================== */
.lib {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .lib {
    grid-template-columns: 1.3fr 1fr;
  }
}
.post {
  border-radius: var(--r-l);
  border: 1px solid var(--line);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  transition: background 0.4s, border-color 0.4s;
  position: relative;
}
.post:hover {
  background: var(--paper-2);
  border-color: transparent;
}
.post--big {
  padding: 0;
  overflow: hidden;
}
.post--big .post__body {
  padding: 26px 28px 30px;
  display: grid;
  gap: 14px;
}
.post__cover {
  aspect-ratio: 16 / 9;
  background: var(--cobalt);
  overflow: hidden;
}
.post__cover svg {
  width: 100%;
  height: 100%;
}
.post__meta {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.post__meta b {
  font-weight: 400;
  color: var(--cobalt);
}
.post h3 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  letter-spacing: -0.035em;
  font-weight: 500;
  line-height: 1.12;
}
.post--big h3 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}
.post p {
  color: var(--ink-2);
}
.post__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  transition: transform 0.6s var(--ease), background 0.4s, color 0.4s;
  flex-shrink: 0;
}
.post:hover .post__arrow {
  background: var(--ink);
  color: var(--lime);
  transform: rotate(-45deg);
}
.post__arrow svg {
  width: 16px;
  height: 16px;
}
.post__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.lib__side {
  display: grid;
  gap: 16px;
}

/* ==========================================================================
   Pricing
   ========================================================================== */
.plans {
  display: grid;
  gap: 16px;
}
@media (min-width: 1000px) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}
.plan {
  --mx: 50%;
  --my: 0%;
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(26px, 3vw, 38px);
  background: #181816;
  border: 1px solid rgba(243, 241, 234, 0.08);
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow: hidden;
  isolation: isolate;
}
.plan::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx) var(--my),
    rgba(212, 255, 58, 0.14),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
}
.plan:hover::before {
  opacity: 1;
}
.plan--hot {
  background: var(--lime);
  color: var(--ink);
  border-color: transparent;
}
.plan--hot::before {
  background: radial-gradient(
    420px circle at var(--mx) var(--my),
    rgba(255, 255, 255, 0.5),
    transparent 60%
  );
}
.plan__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.plan__name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.plan__badge {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--ink);
  color: var(--lime);
  padding: 6px 10px;
  border-radius: 999px;
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.plan__price b {
  font-size: clamp(3rem, 4.4vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.9;
}
.plan__price span {
  display: block;
  width: 100%;
  font-size: 14px;
  color: #a3a197;
}
.plan--hot .plan__price span {
  color: rgba(13, 13, 11, 0.6);
}
.plan__desc {
  font-size: 15px;
  color: #bdbab0;
  margin-top: -12px;
}
.plan--hot .plan__desc {
  color: rgba(13, 13, 11, 0.7);
}
.plan__list {
  display: grid;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(243, 241, 234, 0.12);
  flex: 1;
}
.plan--hot .plan__list {
  border-color: rgba(13, 13, 11, 0.15);
}
.plan__list li {
  display: flex;
  gap: 12px;
  font-size: 15px;
}
.plan__list li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--lime)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d0d0b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}
.plan--hot .plan__list li::before {
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4ff3a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.plans__note {
  margin-top: 32px;
  font-size: 14px;
  color: #a3a197;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Principles + Sources
   ========================================================================== */
.princ {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
}
@media (min-width: 700px) {
  .princ {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .princ {
    grid-template-columns: repeat(4, 1fr);
  }
}
.princ__item {
  position: relative;
  background: var(--paper);
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  isolation: isolate;
  overflow: hidden;
  transition: color 0.5s var(--ease);
}
.princ__item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.7s var(--ease);
}
.princ__item:hover::before {
  transform: translateY(0);
}
.princ__item:hover {
  color: var(--paper);
}
.princ__n {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
}
.princ__stat {
  margin-bottom: 8px;
}
.princ__stat b {
  display: block;
  font-size: clamp(3.6rem, 6vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: color 0.5s;
}
.princ__item:nth-child(odd) .princ__stat b {
  color: var(--cobalt);
}
.princ__item:hover .princ__stat b {
  color: var(--lime);
}
.princ__stat small {
  display: block;
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.princ__item h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.princ__item p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-2);
  transition: color 0.5s;
}
.princ__item:hover p {
  color: #bdbab0;
}
.sources {
  margin-top: clamp(64px, 9vw, 130px);
  display: grid;
  gap: 32px;
}
@media (min-width: 1000px) {
  .sources {
    grid-template-columns: 1fr 2fr;
    gap: 64px;
  }
}
.sources__list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.sources__list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 700px) {
  .sources__list li {
    grid-template-columns: 220px 1fr;
    gap: 32px;
  }
}
.sources__list b {
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.sources__list p {
  color: var(--ink-2);
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.band {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--cobalt);
  color: #fff;
  padding: clamp(40px, 7vw, 100px) clamp(24px, 5vw, 72px);
  overflow: hidden;
  display: grid;
  gap: 32px;
  align-items: end;
}
@media (min-width: 900px) {
  .band {
    grid-template-columns: 1.6fr auto;
  }
}
.band h2 {
  font-size: clamp(2.2rem, 5.4vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 500;
  position: relative;
}
.band h2 .serif {
  color: var(--lime);
}
.band__art {
  position: absolute;
  right: -6%;
  top: -30%;
  width: 60%;
  opacity: 0.35;
  pointer-events: none;
}
.band .btn {
  position: relative;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__grid {
  display: grid;
  gap: 48px;
}
@media (min-width: 1000px) {
  .faq__grid {
    grid-template-columns: 1fr 1.6fr;
    gap: 80px;
  }
  .faq__grid .head {
    position: sticky;
    top: 120px;
    align-self: start;
  }
}
.qa {
  border-top: 1px solid var(--line);
}
.qa__item {
  border-bottom: 1px solid var(--line);
}
.qa__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  text-align: left;
  padding: 28px 0;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  letter-spacing: -0.025em;
  font-weight: 500;
}
.qa__plus {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  position: relative;
  transition: background 0.4s, border-color 0.4s, transform 0.6s var(--ease);
}
.qa__plus::before,
.qa__plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  margin: -0.75px 0 0 -7px;
  background: currentColor;
  transition: transform 0.6s var(--ease);
}
.qa__plus::after {
  transform: rotate(90deg);
}
.qa__item.is-open .qa__plus {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--lime);
  transform: rotate(180deg);
}
.qa__item.is-open .qa__plus::after {
  transform: rotate(0deg);
}
.qa__a {
  height: 0;
  overflow: hidden;
  transition: height 0.6s var(--ease);
}
.qa__a > div {
  padding: 0 64px 30px 0;
  color: var(--ink-2);
  max-width: 44em;
}
.qa__a a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact__grid {
  display: grid;
  gap: 56px;
}
@media (min-width: 1000px) {
  .contact__grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
  }
}
.contact__lines {
  display: grid;
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.contact__lines a,
.contact__lines div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  letter-spacing: -0.02em;
}
.contact__lines small {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.form {
  border-radius: var(--r-xl);
  background: #181816;
  border: 1px solid rgba(243, 241, 234, 0.08);
  padding: clamp(24px, 3.5vw, 44px);
  display: grid;
  gap: 18px;
  position: relative;
}
.form__row {
  display: grid;
  gap: 18px;
}
@media (min-width: 640px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  position: relative;
  display: grid;
  gap: 8px;
}
.field label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a3a197;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(243, 241, 234, 0.2);
  padding: 10px 0 12px;
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a197' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    right center / 18px no-repeat;
}
.field select option {
  color: var(--ink);
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #6c6a62;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--lime);
}
.field.is-bad input,
.field.is-bad textarea {
  border-color: var(--coral);
}
.field__err {
  font-size: 12px;
  color: var(--coral);
  min-height: 0;
  display: none;
}
.field.is-bad .field__err {
  display: block;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: #a3a197;
  cursor: pointer;
}
.check input {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border-radius: 6px;
  border: 1px solid rgba(243, 241, 234, 0.3);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
.check input:checked {
  background: var(--lime)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d0d0b' stroke-width='3'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 13px no-repeat;
  border-color: var(--lime);
}
.check.is-bad input {
  border-color: var(--coral);
}
.check a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form__done {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease),
    visibility 0.6s;
}
.form.is-sent .form__done {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.form__done svg {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
}
.form__done h3 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
  font-weight: 500;
  line-height: 1;
}
.form__done p {
  margin-top: 12px;
  color: rgba(13, 13, 11, 0.7);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.foot {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(72px, 10vw, 140px) 0 28px;
  overflow: hidden;
  --line: rgba(243, 241, 234, 0.14);
}
.foot__top {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .foot__top {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}
.foot__about p {
  color: #a3a197;
  max-width: 26em;
  margin-top: 18px;
  font-size: 15px;
}
.foot h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #76746a;
  font-weight: 400;
  margin-bottom: 18px;
}
.foot ul {
  display: grid;
  gap: 10px;
}
.foot ul a,
.foot ul li {
  color: #d9d6cc;
  font-size: 15px;
}
.foot ul a:hover {
  color: var(--lime);
}
.foot__legal {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  font-size: 13px;
  color: #8d8b82;
}
@media (min-width: 900px) {
  .foot__legal {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
.foot__legal strong {
  color: #d9d6cc;
  font-weight: 500;
}
.foot__base {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #76746a;
}
.foot__base button {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Cookie consent
   ========================================================================== */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 150;
  max-width: 460px;
  border-radius: var(--r-l);
  background: var(--ink);
  color: var(--paper);
  padding: 24px;
  border: 1px solid rgba(243, 241, 234, 0.1);
  transform: translateY(calc(100% + 40px));
  transition: transform 0.8s var(--ease);
}
.consent.is-shown {
  transform: none;
}
.consent h2 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.consent p {
  font-size: 14px;
  color: #bdbab0;
  margin-top: 10px;
}
.consent p a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.consent__prefs {
  display: none;
  gap: 10px;
  margin-top: 16px;
}
.consent.is-config .consent__prefs {
  display: grid;
}
.toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(243, 241, 234, 0.06);
  font-size: 14px;
}
.toggle small {
  display: block;
  color: #8d8b82;
  font-size: 12px;
}
.toggle input {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(243, 241, 234, 0.2);
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}
.toggle input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  transition: transform 0.4s var(--ease);
}
.toggle input:checked {
  background: var(--lime);
}
.toggle input:checked::after {
  transform: translateX(18px);
  background: var(--ink);
}
.toggle input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.consent__btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}
.consent__btns button {
  height: 46px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(243, 241, 234, 0.2);
  transition: background 0.3s, color 0.3s;
}
.consent__btns button:hover {
  background: var(--paper);
  color: var(--ink);
}
.consent__btns .is-primary {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}
.consent__btns .is-wide {
  grid-column: 1 / -1;
  border: 0;
  height: auto;
  padding: 6px;
  font-weight: 400;
  color: #a3a197;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.consent__btns .is-wide:hover {
  background: none;
  color: var(--paper);
}

/* ==========================================================================
   Reveal states (only when JS + motion are active)
   ========================================================================== */
.motion [data-rise] {
  opacity: 0;
  transform: translateY(40px);
}
.motion [data-split] .ln > span {
  transform: translateY(110%);
}

/* ==========================================================================
   Legal pages
   ========================================================================== */
.doc-hero {
  padding: 160px 0 64px;
  border-bottom: 1px solid var(--line);
}
.doc-hero h1 {
  font-size: clamp(2.6rem, 8vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 500;
  margin-top: 24px;
  max-width: 14ch;
}
.doc-hero p {
  margin-top: 24px;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 13px;
}
.doc {
  padding: clamp(56px, 8vw, 110px) 0 clamp(80px, 10vw, 150px);
}
.doc__grid {
  display: grid;
  gap: 48px;
}
.doc__grid > * {
  min-width: 0;
}
@media (min-width: 1000px) {
  .doc__grid {
    grid-template-columns: 280px 1fr;
    gap: 80px;
  }
}
.doc__toc {
  align-self: start;
}
@media (min-width: 1000px) {
  .doc__toc {
    position: sticky;
    top: 120px;
  }
}
.doc__toc h2 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 16px;
}
.doc__toc ol {
  display: grid;
  gap: 2px;
  counter-reset: toc;
}
.doc__toc a {
  display: flex;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink-2);
  transition: background 0.3s;
}
.doc__toc a:hover,
.doc__toc a.is-active {
  background: var(--paper-2);
  color: var(--ink);
}
.doc__toc a::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--cobalt);
  padding-top: 1px;
}
.doc__body {
  max-width: 760px;
}
.doc__body section {
  padding-bottom: 44px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.doc__body section:last-child {
  border-bottom: 0;
}
.doc__body h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.035em;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 18px;
}
.doc__body h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 22px 0 10px;
}
.doc__body p,
.doc__body li {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}
.doc__body p + p {
  margin-top: 14px;
}
.doc__body ul {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.doc__body ul li {
  position: relative;
  padding-left: 22px;
}
.doc__body ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 8px;
  height: 2px;
  background: var(--cobalt);
}
.doc__body a {
  color: var(--cobalt);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.doc__body strong {
  color: var(--ink);
  font-weight: 600;
}
.doc__card {
  border-radius: var(--r-m);
  background: var(--paper-2);
  padding: 22px 24px;
  margin-top: 18px;
  display: grid;
  gap: 6px;
}
.doc__card p {
  margin: 0 !important;
  font-size: 15px;
}
.doc__table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 14px;
}
.doc__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.doc__table th,
.doc__table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.doc__table th {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.doc__alert {
  border-radius: var(--r-m);
  background: var(--ink);
  color: var(--paper);
  padding: 24px;
  margin-top: 18px;
}
.doc__alert p {
  color: #d9d6cc !important;
}
.doc__alert strong {
  color: var(--lime) !important;
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .ticker__track {
    animation: none;
  }
}
