/* =========================================================
   KP & Asociados — Estudio contable
   Brand: petrol #0C2C3C (original logo) + warm paper + lime accent
   ========================================================= */

:root {
  --ink: #0C2C3C;
  --ink-deep: #071E29;
  --ink-soft: #133A4C;
  --paper: #FDFDFC;
  --paper-card: #F3F6F7;
  --lime: #D7F26B;

  --muted: #4F636C;
  --muted-light: rgba(253, 253, 252, .68);
  --line: rgba(12, 44, 60, .14);
  --line-faint: rgba(12, 44, 60, .055);
  --line-strong: rgba(12, 44, 60, .32);
  --line-light: rgba(253, 253, 252, .16);

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --nav-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
@supports (overflow: clip) { body, main { overflow-x: clip; } }

img, svg { 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 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px;
  transition: top .3s;
}
.skip:focus { top: 16px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

.section--dark { background: var(--ink); color: var(--paper); }

/* ---------- Type helpers ---------- */
.kicker {
  display: flex; align-items: center; gap: .7em;
  font-family: var(--f-mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1.4em;
}
.kicker > span { color: var(--ink); }
.kicker--light { color: var(--muted-light); }
.kicker--light > span { color: var(--lime); }

.h2 {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 5.4vw, 5.2rem);
  font-weight: 380;
  line-height: 1;
  letter-spacing: -.035em;
  font-variation-settings: "opsz" 144;
  margin: 0 0 .45em;
  text-wrap: balance;
}
.h2 em, .hero__title em, .contact__title em { font-style: italic; font-weight: 300; }

/* split text helpers (created by JS) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .1em 0; margin: 0 -.04em -.1em 0; }
.w > span { display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  --fill: var(--lime);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: .65em;
  height: 56px; padding: 0 1.6em; border-radius: 999px;
  font-weight: 600; font-size: .98rem; letter-spacing: -.005em; white-space: nowrap;
  transition: color .45s var(--ease-out), border-color .45s;
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: var(--fill);
  transform: translateY(102%);
  transition: transform .55s var(--ease-out);
}
.btn:hover::before { transform: none; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { color: var(--ink); }
.btn--ghost { border: 1px solid var(--line-strong); --fill: var(--ink); }
.btn--ghost:hover { color: var(--paper); border-color: var(--ink); }
.btn--lime { background: var(--lime); color: var(--ink); --fill: var(--paper); }
.btn--sm { height: 44px; padding: 0 1.2em; font-size: .9rem; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  transition: background-color .3s, border-color .3s, color .3s;
}
.icon-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.icon-btn svg, .contact__ig svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.fill { fill: currentColor; stroke: none; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); transition: background-color .4s; }
.on-dark .progress span { background: var(--lime); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--gutter);
  color: var(--ink);
  transition: transform .6s var(--ease-out), color .4s;
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(253, 253, 252, .74);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .4s, background-color .4s, border-color .4s;
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-105%); }
.on-dark .nav { color: var(--paper); }
.on-dark .nav::before { background: rgba(12, 44, 60, .74); border-color: var(--line-light); }

.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark { width: 42px; height: 33px; fill: currentColor; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--f-display); font-size: 1.15rem; font-weight: 500; letter-spacing: -.01em; }
.brand__tag { font-family: var(--f-mono); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; opacity: .65; margin-top: 5px; }

.nav__links { display: flex; gap: 2px; }
.nav__links a {
  position: relative; padding: .55em 1em; border-radius: 999px;
  font-size: .92rem; font-weight: 500;
  transition: background-color .3s;
}
.nav__links a:hover, .nav__links a.is-current { background: rgba(12, 44, 60, .07); }
.on-dark .nav__links a:hover, .on-dark .nav__links a.is-current { background: rgba(253, 253, 252, .1); }
.nav__links a.is-current::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: currentColor;
}

.nav__actions { display: flex; align-items: center; gap: 10px; }
.on-dark .nav .icon-btn { border-color: var(--line-light); }
.on-dark .nav .icon-btn:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.on-dark .nav__cta { background: var(--lime); color: var(--ink); --fill: var(--paper); }

.burger { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); flex: none; transition: background-color .4s; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.8px; background: var(--paper); border-radius: 2px; transition: transform .5s var(--ease-out), background-color .4s; }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 24px; }
.on-dark .burger, .menu-open .burger { background: var(--lime); }
.on-dark .burger span, .menu-open .burger span { background: var(--ink); }
.menu-open .burger span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3px) rotate(-45deg); }

.menu-open .nav { color: var(--paper); transform: none; }
.menu-open .nav::before { opacity: 0; }

@media (max-width: 980px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
}

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 32px) var(--gutter) 36px;
  background: var(--ink); color: var(--paper);
  clip-path: circle(0% at calc(100% - var(--gutter) - 22px) calc(var(--nav-h) / 2));
  visibility: hidden;
  transition: clip-path .8s var(--ease-out), visibility 0s .8s;
}
.menu.is-open { clip-path: circle(150% at calc(100% - var(--gutter) - 22px) calc(var(--nav-h) / 2)); visibility: visible; transition: clip-path .8s var(--ease-out); }
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--f-display); font-size: clamp(2.3rem, 10vw, 4rem); line-height: 1.15; letter-spacing: -.03em;
  padding: .12em 0; border-bottom: 1px solid var(--line-light);
  opacity: 0; transform: translateY(30px);
  transition: opacity .5s, transform .7s var(--ease-out);
}
.menu__links a span { font-family: var(--f-mono); font-size: .75rem; color: var(--lime); letter-spacing: .1em; }
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(1) { transition-delay: .15s; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .2s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .25s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: .3s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: .35s; }
.menu__foot { display: flex; flex-direction: column; gap: 8px; color: var(--muted-light); font-size: .95rem; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 620px;
  overflow: hidden;
  background: var(--paper);
}

/* ledger grid: Debe / Haber / Saldo */
.hero__grid {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-inline: var(--gutter);
  pointer-events: none;
}
.hero__grid::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 63px, var(--line-faint) 63px 64px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}
.hero__grid .col { position: relative; border-left: 1px solid var(--line); transform-origin: top; }
.hero__grid .col:last-child { border-right: 1px solid var(--line); }
.hero__grid em {
  position: absolute; top: calc(var(--nav-h) + 14px); left: 12px;
  font-family: var(--f-mono); font-style: normal; font-size: .64rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted); opacity: .75;
}

.hero__inner {
  position: relative; height: 100%;
  max-width: 1640px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center; gap: clamp(24px, 4vw, 72px);
  padding: calc(var(--nav-h) + 48px) var(--gutter) 84px;
}
.hero__content { position: relative; z-index: 2; }

.hero__h1 { margin: 0; font-weight: 400; }
.hero__title {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(3.1rem, min(8.6vw, 13vh), 9.4rem);
  font-weight: 380;
  line-height: .9;
  letter-spacing: -.05em;
  font-variation-settings: "opsz" 144;
  margin: 0 0 .28em;
}
.hero__title .line { display: block; overflow: hidden; padding: 0 .04em .09em 0; margin-bottom: -.09em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { padding-right: .04em; }

.hero__for {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .32em;
  font-family: var(--f-display); font-size: clamp(1.45rem, 2.5vw, 2.4rem); line-height: 1.15; letter-spacing: -.02em;
  margin: 0 0 .9em;
}
.rot { position: relative; isolation: isolate; }
.rot__word { position: relative; font-style: italic; }
.rot__word::before {
  content: ""; position: absolute; z-index: -1;
  left: -.1em; right: -.1em; bottom: .1em; height: .42em;
  background: var(--lime); border-radius: 3px;
  transform-origin: 0 50%; transform: scaleX(var(--mark, 1));
}
/* static fallback reads "empresas, instituciones y particulares"; the separators hide while words rotate */
.rot__sep { font-style: normal; }
.motion .rot { display: inline-grid; overflow: hidden; padding: 0 .14em; margin: 0 -.14em; vertical-align: bottom; }
.motion .rot__word { grid-area: 1 / 1; justify-self: start; opacity: 0; }
.motion .rot__word.is-active { opacity: 1; }
.motion .rot__sep { display: none; }

.hero__lead { max-width: 36ch; color: var(--muted); font-size: clamp(1rem, 1.15vw, 1.15rem); margin: 0 0 2em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; }
.hero__mark { width: min(100%, 640px); aspect-ratio: 803 / 634; }
.hero__mark svg { width: 100%; height: 100%; overflow: visible; fill: var(--ink); }

.hero__meta {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 22px; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue { display: flex; align-items: center; gap: 12px; }
.scroll-cue i { position: relative; width: 1px; height: 38px; background: var(--line-strong); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--ink); animation: cue 1.9s var(--ease-out) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

@media (min-width: 901px) and (max-height: 820px) {
  .hero__inner { padding-bottom: 76px; }
  .hero__lead { margin-bottom: 1.5em; }
  .hero__meta > span:first-child { display: none; }
  .hero__meta { justify-content: flex-end; }
}

/* initial states while JS boots (only when motion is on) */
.motion .hero__title,
.motion .hero__mark,
.motion .hero__grid,
.motion [data-hero-anim],
.motion [data-reveal],
.motion [data-split],
.motion [data-chars] { visibility: hidden; }

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr; align-content: safe center; gap: clamp(18px, 3.4vh, 30px);
    padding-top: calc(var(--nav-h) + 12px); padding-bottom: 72px;
  }
  .hero__visual { order: -1; justify-content: flex-start; }
  .hero__mark { width: min(36vw, 200px); }
  .hero__title { font-size: clamp(3rem, 14vw, 5.4rem); }
  .hero__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__grid .col:nth-child(n + 3) { display: none; }
  .hero__grid .col:nth-child(2) { border-right: 1px solid var(--line); }
  .hero__grid em { display: none; }
  .hero__meta > span:first-child { display: none; }
  .hero__meta { justify-content: flex-end; }
}
@media (max-width: 900px) and (max-height: 700px) {
  .hero__mark { width: min(30vw, 160px); }
  .hero__lead { margin-bottom: 1.4em; }
}

/* =========================================================
   EL ESTUDIO
   ========================================================= */
.estudio { position: relative; padding: clamp(110px, 14vw, 200px) 0 clamp(130px, 15vw, 210px); }

.estudio__statement {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 4.5vw, 4.4rem);
  font-weight: 340;
  line-height: 1.1;
  letter-spacing: -.03em;
  max-width: 1150px;
  margin: 0;
  text-wrap: pretty;
}
.estudio__statement em { font-style: italic; color: var(--lime); }
.estudio__statement strong { font-weight: 500; }

.horizons { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); margin-top: clamp(64px, 9vw, 130px); }
.horizon { border-top: 1px solid var(--line-light); padding-top: 22px; }
.horizon__when { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.horizon h3 { font-family: var(--f-display); font-size: clamp(1.5rem, 2.2vw, 2.05rem); letter-spacing: -.02em; line-height: 1.1; margin: .55em 0 .45em; }
.horizon p { color: var(--muted-light); margin: 0; }

.quote {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; gap: 16px clamp(20px, 4vw, 56px);
  margin: clamp(70px, 9vw, 130px) 0 0;
  padding: clamp(28px, 4.4vw, 60px);
  border-radius: 32px;
  background: var(--ink-soft);
}
.quote::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 242, 107, .16), transparent 65%);
  pointer-events: none;
}
.quote__mark { width: clamp(44px, 6vw, 76px); fill: var(--lime); }
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-family: var(--f-display); font-style: italic; font-weight: 300;
  font-size: clamp(1.35rem, 2.5vw, 2.2rem); line-height: 1.28; letter-spacing: -.012em;
  margin: 0; max-width: 34ch;
}
.quote figcaption { grid-column: 2; display: flex; align-items: center; gap: 14px; margin-top: 12px; font-size: .92rem; line-height: 1.35; color: var(--muted-light); }
.quote figcaption strong { color: var(--paper); font-weight: 600; }
.quote__badge { width: 50px; height: 50px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; flex: none; }
.quote__badge svg { width: 27px; height: 21px; fill: var(--ink); }

.estudio__note { max-width: 62ch; margin: 52px 0 0; color: var(--muted-light); font-size: 1.05rem; }
.estudio__note strong { color: var(--paper); font-weight: 600; }

@media (max-width: 800px) {
  .horizons { grid-template-columns: 1fr; gap: 34px; }
  .quote { grid-template-columns: 1fr; }
  .quote figcaption { grid-column: auto; }
}

/* =========================================================
   MARQUEES
   ========================================================= */
.marquee { display: flex; overflow: hidden; white-space: nowrap; user-select: none; }
.marquee__track { display: flex; flex: none; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex: none; font-size: clamp(1.6rem, 3.5vw, 3.1rem); }
.marquee span { font-family: var(--f-display); font-style: italic; letter-spacing: -.02em; line-height: 1.15; padding: 0 .5em; }
.star { width: .42em; height: .42em; flex: none; background: currentColor; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }

.band {
  position: relative; z-index: 5;
  width: 106%; margin: -38px -3%;
  padding: 16px 0;
  background: var(--lime); color: var(--ink);
  transform: rotate(-2.2deg);
  box-shadow: 0 24px 50px -24px rgba(7, 30, 41, .45);
}

.marquee--org .marquee__group { font-size: clamp(2.2rem, 5.6vw, 5.2rem); }
.marquee--org span { font-style: normal; font-weight: 380; letter-spacing: -.035em; padding: 0 .45em; color: var(--paper); }
.marquee--org small { font-family: var(--f-mono); font-size: .24em; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); vertical-align: middle; margin-left: .3em; }
.marquee--org .star { color: var(--lime); width: .3em; height: .3em; }

/* =========================================================
   SERVICIOS — horizontal scroll
   ========================================================= */
.services { position: relative; background: var(--paper); padding-top: clamp(40px, 5vw, 70px); }
.services__pin { position: relative; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.services__track { display: flex; align-items: stretch; gap: 20px; width: max-content; padding: 0 var(--gutter); }

.services__intro { flex: 0 0 clamp(330px, 34vw, 540px); display: flex; flex-direction: column; justify-content: center; padding-right: clamp(16px, 4vw, 64px); }
.services__lead { color: var(--muted); max-width: 40ch; }
.services__hint { display: flex; align-items: center; gap: 10px; margin: 24px 0 0; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.services__hint svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.6s var(--ease-out) infinite; }
.hint-mobile { display: none; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateX(6px); } }

.card {
  --mx: 50%; --my: 0%;
  position: relative; flex: 0 0 clamp(300px, 25vw, 384px);
  height: min(560px, 68vh); min-height: 450px;
  border: 1px solid var(--line); border-radius: 28px;
  background: var(--paper-card); color: var(--ink);
  overflow: hidden; cursor: pointer;
  transition: background-color .55s var(--ease-out), color .55s var(--ease-out), border-color .55s;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(460px circle at var(--mx) var(--my), rgba(215, 242, 107, .22), transparent 46%);
  opacity: 0; transition: opacity .45s;
}
.card:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.card:hover::before { opacity: 1; }
.card__body { position: relative; height: 100%; display: flex; flex-direction: column; padding: 28px; transition: translate .6s var(--ease-out); }
.card:hover .card__body { translate: 0 -4px; }

.card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card__num { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .1em; }
.card__num small { display: block; margin-top: 6px; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; opacity: .55; }
.card__icon { width: 64px; height: 64px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.card__icon * { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.card:hover .card__icon { stroke: var(--lime); }
.card:hover .card__icon * { animation: draw 1.2s var(--ease-out) both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.card__title { font-family: var(--f-display); font-size: clamp(1.6rem, 2.05vw, 2.1rem); line-height: 1.04; letter-spacing: -.025em; margin: auto 0 .5em; text-wrap: balance; }
.card__text { font-size: .94rem; line-height: 1.55; color: var(--muted); margin: 0 0 22px; transition: color .5s; }
.card:hover .card__text { color: var(--muted-light); }

.card__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); transition: border-color .5s; }
.card:hover .card__foot { border-color: var(--line-light); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; transition: border-color .5s; }
.card:hover .tags li { border-color: var(--line-light); }

.card__open { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .86rem; white-space: nowrap; }
.card__open i { position: relative; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--ink); transition: background-color .45s, transform .6s var(--ease-out); }
.card__open i::before, .card__open i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.7px; margin: -.85px 0 0 -6px; background: var(--paper); border-radius: 2px; transition: background-color .45s; }
.card__open i::after { transform: rotate(90deg); }
.card:hover .card__open i { background: var(--lime); transform: rotate(90deg); }
.card:hover .card__open i::before, .card:hover .card__open i::after { background: var(--ink); }

.card--cta { display: flex; flex-direction: column; justify-content: space-between; padding: 28px; background: var(--lime); border-color: var(--lime); }
.card--cta__label { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.card--cta__title { font-family: var(--f-display); font-size: clamp(2.4rem, 3.4vw, 3.4rem); line-height: .95; letter-spacing: -.04em; margin-top: auto; margin-bottom: 28px; }
.card--cta__arrow { width: 76px; height: 76px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; transition: transform .6s var(--ease-out), background-color .45s, color .45s; }
.card--cta__arrow svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card--cta:hover .card--cta__arrow { background: var(--lime); color: var(--ink); transform: rotate(45deg); }

.services__ui { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(18px, 4.5vh, 44px); display: flex; align-items: center; gap: 20px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; color: var(--muted); }
.services__count b { color: var(--ink); font-weight: 500; }
.services__bar { position: relative; flex: 0 0 min(320px, 40vw); height: 2px; background: var(--line); overflow: hidden; }
.services__bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; }

/* without JS motion the track simply scrolls sideways */
html:not(.motion) .services__pin { height: auto; padding: 60px 0 40px; overflow-x: auto; scroll-snap-type: x proximity; }
html:not(.motion) .card { scroll-snap-align: start; }
html:not(.motion) .services__ui { display: none; }

@media (max-width: 899px) {
  .services { padding-top: 90px; }
  .services__pin { height: auto; display: block; overflow: visible; padding-bottom: 40px; }
  .services__track { flex-direction: column; width: auto; gap: 14px; }
  .services__intro { flex: none; padding: 0 0 22px; }
  .card { flex: none; height: auto; min-height: 0; }
  .card__title { margin-top: 30px; }
  .card--cta { min-height: 260px; }
  .services__ui { display: none; }
  .hint-desktop { display: none; }
  .hint-mobile { display: inline; }
  .services__hint svg { transform: rotate(90deg); animation: none; }
}
@media (min-width: 620px) and (max-width: 899px) {
  .services__track { display: grid; grid-template-columns: 1fr 1fr; }
  .services__intro { grid-column: 1 / -1; }
}

/* =========================================================
   CIFRAS
   ========================================================= */
.figures { padding: clamp(80px, 10vw, 150px) 0 clamp(90px, 11vw, 160px); }
.figures__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.figure { padding: 30px 24px 0; border-right: 1px solid var(--line); }
.figure:first-child { padding-left: 0; }
.figure:last-child { border-right: 0; }
.figure__num {
  display: block;
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(4.4rem, 10vw, 10rem); line-height: .9; letter-spacing: -.055em;
  font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 144;
}
.figure p { max-width: 24ch; margin: 16px 0 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }

@media (max-width: 800px) {
  .figures__grid { grid-template-columns: 1fr 1fr; }
  .figure, .figure:first-child { padding: 22px 16px 28px; border-bottom: 1px solid var(--line); }
  .figure:nth-child(odd) { padding-left: 0; }
  .figure:nth-child(2n) { border-right: 0; }
}

/* =========================================================
   CÓMO TRABAJAMOS
   ========================================================= */
.method { padding: clamp(110px, 13vw, 190px) 0 clamp(50px, 7vw, 100px); }
.method__grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(40px, 7vw, 120px); }
.method__head { position: sticky; top: 20vh; align-self: start; }
.method .h2 em { color: var(--lime); }
.method__lead { color: var(--muted-light); max-width: 40ch; }

.steps { position: relative; list-style: none; margin: 0; padding: 0 0 0 56px; }
.steps__rail { position: absolute; left: 12px; top: 12px; bottom: 12px; width: 1px; background: var(--line-light); }
.steps__rail i { position: absolute; inset: 0; background: var(--lime); transform-origin: 50% 0; }
.step { position: relative; padding-bottom: clamp(70px, 10vw, 130px); }
.step:last-child { padding-bottom: 10px; }
.step::before {
  content: ""; position: absolute; left: -50px; top: .3em; width: 13px; height: 13px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 6px rgba(215, 242, 107, .14);
  transition: background-color .5s, box-shadow .5s;
}
.step__num { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .12em; color: var(--lime); }
.step h3 { font-family: var(--f-display); font-size: clamp(2rem, 3.8vw, 3.6rem); letter-spacing: -.035em; line-height: 1; margin: .2em 0 .35em; }
.step p { color: var(--muted-light); max-width: 42ch; margin: 0; font-size: 1.05rem; }

.motion .step { opacity: .26; transition: opacity .7s var(--ease-out); }
.motion .step.is-active { opacity: 1; }
.motion .step::before { background: var(--ink); box-shadow: 0 0 0 1px var(--line-light); }
.motion .step.is-active::before { background: var(--lime); box-shadow: 0 0 0 6px rgba(215, 242, 107, .14); }

.organismos { margin-top: clamp(50px, 7vw, 100px); padding-top: clamp(40px, 6vw, 70px); border-top: 1px solid var(--line-light); }
.organismos .kicker { margin: 0 auto 18px; }

@media (max-width: 860px) {
  .method__grid { grid-template-columns: 1fr; }
  .method__head { position: static; }
  .steps { padding-left: 44px; }
  .steps__rail { left: 6px; }
  .step::before { left: -44.5px; }
}

/* =========================================================
   PREGUNTAS FRECUENTES
   ========================================================= */
.faq { padding: clamp(110px, 13vw, 180px) 0 clamp(80px, 9vw, 130px); }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 120px); }
.faq__head { position: sticky; top: 20vh; align-self: start; }
.faq__lead { color: var(--muted); max-width: 36ch; }
.faq__lead a { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line-strong); transition: border-color .3s; }
.faq__lead a:hover { border-color: var(--ink); }

.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0; cursor: pointer; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa h3 { font-family: var(--f-display); font-size: clamp(1.25rem, 1.9vw, 1.7rem); line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; transition: color .3s; }
.qa summary:hover h3 { color: var(--ink-soft); }
.qa__icon { position: relative; width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); transition: background-color .4s, border-color .4s, transform .6s var(--ease-out); }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 1.6px; margin: -.8px 0 0 -6.5px; background: var(--ink); border-radius: 2px; transition: background-color .4s; }
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon { background: var(--ink); border-color: var(--ink); transform: rotate(45deg); }
.qa[open] .qa__icon::before, .qa[open] .qa__icon::after { background: var(--lime); }
.qa__a { padding: 0 64px 28px 0; }
.qa__a p { color: var(--muted); margin: 0; max-width: 66ch; }
.qa__a a { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line-strong); }

/* smooth open/close where supported (Chrome 131+); elsewhere it simply snaps */
@supports selector(::details-content) {
  .qa { interpolate-size: allow-keywords; }
  .qa::details-content { block-size: 0; overflow: hidden; transition: block-size .55s var(--ease-out), content-visibility .55s allow-discrete; }
  .qa[open]::details-content { block-size: auto; }
}

@media (max-width: 860px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .qa__a { padding-right: 0; }
}

/* =========================================================
   INSTAGRAM
   ========================================================= */
.insta { border-top: 1px solid var(--line); }
.insta { position: relative; overflow: hidden; padding: clamp(110px, 13vw, 180px) 0; }
.insta__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(50px, 6vw, 100px); }
.insta__lead { color: var(--muted); max-width: 36ch; margin: 0 0 32px; font-size: 1.08rem; }
.insta__copy .btn svg { stroke-width: 1.8; }
.insta__copy .btn:hover svg { transform: none; }

.insta__card {
  position: relative; justify-self: center;
  width: min(100%, 440px); aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 50px 90px -50px rgba(12, 44, 60, .75);
  transform-style: preserve-3d;
}
.insta__ring { position: absolute; inset: 5%; pointer-events: none; }
.insta__ring svg { width: 100%; height: 100%; animation: spin 28s linear infinite; }
.insta__ring text { font-family: var(--f-mono); font-size: 12px; letter-spacing: 2.1px; fill: var(--paper); }
@keyframes spin { to { transform: rotate(360deg); } }
.insta__avatar { width: 32%; aspect-ratio: 1; height: auto; border-radius: 50%; border: 4px solid var(--paper); background: #fff; object-fit: cover; transform: translateZ(30px); }
.insta__handle { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; transform: translateZ(20px); }
.insta__handle strong { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.15rem, 1.8vw, 1.4rem); letter-spacing: -.01em; }
.insta__handle span { font-family: var(--f-mono); font-size: .78rem; color: var(--lime); letter-spacing: .06em; }
.insta__go {
  position: absolute; right: 4%; top: 6%;
  width: clamp(64px, 7vw, 88px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lime); color: var(--ink);
  transform: translateZ(50px);
  transition: rotate .6s var(--ease-out);
}
.insta__go svg { width: 40%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.insta__card:hover .insta__go { rotate: 45deg; }

@media (max-width: 800px) {
  .insta__grid { grid-template-columns: 1fr; }
  .insta__card { width: min(100%, 360px); }
}

/* =========================================================
   CONTACTO
   ========================================================= */
.contact { padding: clamp(110px, 13vw, 180px) 0; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(50px, 6vw, 100px); align-items: start; }
.contact__title {
  font-family: var(--f-display); font-weight: 340;
  font-size: clamp(3.3rem, 7.2vw, 8rem); line-height: .9; letter-spacing: -.055em;
  font-variation-settings: "opsz" 144;
  white-space: nowrap;
  margin: 0 0 .25em;
}
.contact__title em { color: var(--lime); }
.contact__lead { color: var(--muted-light); font-size: 1.15rem; max-width: 34ch; }

.mailbox {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: center;
  margin-top: 40px; padding: 24px 0;
  border-block: 1px solid var(--line-light);
}
.mailbox__label { grid-column: 1 / -1; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-light); }
.mailbox__link {
  font-family: var(--f-display); font-size: clamp(1.25rem, 2.5vw, 2.25rem); letter-spacing: -.02em; line-height: 1.2;
  overflow-wrap: anywhere;
  background: linear-gradient(var(--lime), var(--lime)) 0 100% / 0% 2px no-repeat;
  transition: background-size .7s var(--ease-out), color .3s;
  width: fit-content;
}
.mailbox__link:hover { background-size: 100% 2px; color: var(--lime); }
.mailbox__copy {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-light); font-size: .85rem; font-weight: 600;
  transition: background-color .3s, color .3s, border-color .3s;
}
.mailbox__copy:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.mailbox__copy svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.contact__ig { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--muted-light); transition: color .3s; }
.contact__ig strong { color: var(--paper); font-weight: 600; }
.contact__ig:hover, .contact__ig:hover strong { color: var(--lime); }

.form {
  display: grid; gap: 14px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line-light); border-radius: 28px;
  background: var(--ink-soft);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; display: block; }
.field input, .field textarea, .field select {
  width: 100%; display: block;
  padding: 25px 16px 9px;
  background: rgba(253, 253, 252, .04);
  border: 1px solid var(--line-light); border-radius: 14px;
  color: var(--paper); font: inherit; font-size: 1rem;
  outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color .3s, background-color .3s;
}
.field textarea { resize: vertical; min-height: 132px; }
.field select {
  cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D7F26B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field select option { color: var(--ink); background: #fff; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--lime); background-color: rgba(253, 253, 252, .07); }
.field > span {
  position: absolute; left: 17px; top: 17px;
  color: var(--muted-light); pointer-events: none;
  transform-origin: 0 0;
  transition: transform .35s var(--ease-out), color .3s;
}
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span,
.field--select > span { transform: translateY(-9px) scale(.74); color: var(--lime); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #FF9F8C; }
.field.is-invalid select { border-color: #FF9F8C; }
.form__submit { justify-self: start; margin-top: 6px; }
.form__submit[disabled] { cursor: progress; opacity: .75; }
.form__note { font-size: .8rem; color: var(--muted-light); margin: 0; }
.form__error { font-size: .9rem; color: #FFB4A3; margin: 0; }
.form__error a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }

/* honeypot: off-screen for people, still in the form for bots */
.form__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.contact__formbox { position: relative; }

/* notices shown only after a no-JavaScript submission (enviar.php redirects to #consulta-enviada / #consulta-error) */
.form__notice { display: none; margin: 0 0 14px; padding: 14px 18px; border-radius: 16px; background: var(--lime); color: var(--ink); font-weight: 600; }
.form__notice:target { display: block; }
.form__notice--error { background: #FFB4A3; }
.form__notice a { text-decoration: underline; }

.form__done {
  display: grid; justify-items: start; gap: 14px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line-light); border-radius: 28px;
  background: var(--ink-soft);
  outline: none;
}
.form__done-icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); }
.form__done-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.form__done h3 { font-family: var(--f-display); font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.05; letter-spacing: -.03em; }
.form__done p { color: var(--muted-light); margin: 0 0 6px; }
.btn--ghost-light { border: 1px solid var(--line-light); color: var(--paper); }
.btn--ghost-light:hover { color: var(--ink); border-color: var(--lime); }

@media (max-width: 1100px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__title { font-size: clamp(3.3rem, 12vw, 8rem); }
}
@media (max-width: 520px) {
  .form__row { grid-template-columns: 1fr; }
  .mailbox { grid-template-columns: 1fr; }
  .mailbox__copy { justify-self: start; }
  .form__submit { width: 100%; justify-content: center; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink-deep); color: var(--paper); padding: clamp(70px, 9vw, 120px) 0 28px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line-light); }
.footer__mark { width: 86px; height: 68px; fill: var(--paper); }
.footer__brand p { color: var(--muted-light); max-width: 34ch; margin: 22px 0 0; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { width: fit-content; color: var(--muted-light); transition: color .3s; overflow-wrap: anywhere; }
.footer__col a:hover { color: var(--lime); }
.footer__label { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; opacity: .5; margin-bottom: 6px; }

.footer__word {
  font-family: var(--f-display); font-weight: 340;
  font-size: clamp(3.2rem, 12.6vw, 15rem); line-height: .95; letter-spacing: -.055em;
  font-variation-settings: "opsz" 144;
  white-space: nowrap; overflow: hidden;
  margin: clamp(30px, 5vw, 64px) 0 clamp(20px, 3vw, 44px);
  padding-bottom: .06em;
}
.footer__word > span { display: inline-block; }
.footer__word .ch { display: inline-block; }
.footer__word .ch.amp { font-style: italic; font-weight: 300; color: var(--lime); }

.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; font-size: .85rem; color: var(--muted-light); }
.footer__credit { color: var(--paper); border-bottom: 1px solid var(--line-light); transition: color .3s, border-color .3s; }
.footer__credit:hover { color: var(--lime); border-color: var(--lime); }

@media (max-width: 800px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
}

/* =========================================================
   DRAWER (detalle de servicio)
   ========================================================= */
.drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 95;
  margin: 0 0 0 auto; padding: 0; border: 0;
  width: min(680px, 100vw); max-width: 100vw;
  height: 100%; max-height: 100%;
  background: transparent; color: var(--ink);
  overflow: visible;
}
.drawer[open] { display: flex; }
.drawer::backdrop {
  background: rgba(7, 30, 41, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity .45s;
}
.drawer.is-closing::backdrop { opacity: 0; }
/* The panel (not the <dialog>) is what animates: transforming the dialog itself made GSAP re-insert it in the DOM, which drops Chrome's modal state and the backdrop. */
.drawer__panel {
  display: flex; flex-direction: column; width: 100%; height: 100%;
  background: #fff;
  border-left: 1px solid var(--line-strong);
  box-shadow: -28px 0 70px -18px rgba(7, 30, 41, .45), -1px 0 0 rgba(7, 30, 41, .06);
  overflow: hidden;
}
.drawer__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px clamp(20px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.drawer__num { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.drawer__close { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); transition: transform .5s var(--ease-out), background-color .3s, color .3s; }
.drawer__close:hover { transform: rotate(90deg); background: var(--lime); color: var(--ink); }
.drawer__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: clamp(26px, 4vw, 46px) clamp(20px, 4vw, 40px) 40px; }
.drawer__body h3 { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1; letter-spacing: -.035em; margin: 0 0 .55em; text-wrap: balance; }
.drawer__body p { color: var(--muted); }
.drawer__body .lead { color: var(--ink); font-size: 1.14rem; line-height: 1.5; }
.drawer__body h4 { display: flex; align-items: center; gap: 12px; margin: 2.2em 0 .6em; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.drawer__body h4::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.drawer__body ul { list-style: none; margin: 0; padding: 0; }
.drawer__body li { position: relative; padding: 12px 0 12px 36px; border-bottom: 1px solid var(--line); font-size: .98rem; line-height: 1.5; }
.drawer__body li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 22px; height: 22px; 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='%230C2C3C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.drawer__body .callout { margin: 28px 0 0; padding: 20px 22px; border-radius: 18px; background: var(--ink); color: var(--paper); }
.drawer__body .callout strong { color: var(--lime); }
.drawer__foot { padding: 16px clamp(20px, 4vw, 40px) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.drawer__cta { width: 100%; justify-content: center; }

@media (max-width: 640px) {
  .drawer { margin: auto 0 0; width: 100%; height: 92dvh; max-height: 92dvh; }
  .drawer__panel { border-left: 0; border-top: 1px solid var(--line-strong); border-radius: 24px 24px 0 0; box-shadow: 0 -24px 60px -18px rgba(7, 30, 41, .45); }
}

/* ---------- Section transition curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  pointer-events: none; visibility: hidden;
}
.curtain::before {
  /* lime leading edge on the side the curtain enters from */
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 6px; background: var(--lime);
}
.curtain.is-reverse::before { left: auto; right: 0; }
.curtain__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 0 var(--gutter); }
.curtain__mark { width: 62px; height: 49px; fill: var(--paper); }
.curtain__num { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .16em; color: var(--lime); min-height: 1em; }
.curtain__label { font-family: var(--f-display); font-weight: 340; font-size: clamp(2.6rem, 7vw, 6.4rem); line-height: 1; letter-spacing: -.045em; font-variation-settings: "opsz" 144; }
[tabindex="-1"]:focus { outline: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 90;
  padding: 12px 20px; border-radius: 999px;
  background: var(--lime); color: var(--ink); font-weight: 600; font-size: .92rem;
  box-shadow: 0 18px 40px -16px rgba(7, 30, 41, .5);
  transform: translate(-50%, calc(100% + 40px));
  visibility: hidden;
  transition: transform .55s var(--ease-out), visibility 0s .55s;
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .55s var(--ease-out); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
