:root {
  --bg: #0a0d14;
  --surface: #131824;
  --surface-2: #1b2232;
  --ink: #e9edf3;
  --muted: #a3acbb;
  --accent: #5a9bfc;
  --accent-ink: #0a0d14;

  --m: clamp(20px, 2.4vw, 32px);
  --gap: clamp(120px, 14vw, 200px);

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);

  --display: "Gambarino", "Times New Roman", serif;
  --text: "General Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-body)/1.6 var(--text);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.h2 { font: 400 var(--step-head)/0.95 var(--display); letter-spacing: -0.02em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font: 500 1rem/1 var(--text); text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease), background-color 160ms;
}
.btn:hover { background: #7cb0ff; }
.btn:active { transform: scale(0.97); }
.btn--small { min-height: 42px; padding: 0 20px; font-size: 0.9375rem; }
.btn--ghost { background: var(--surface-2); color: var(--ink); }
.btn--ghost:hover { background: #26304a; }
.link { color: var(--ink); text-underline-offset: 5px; text-decoration-thickness: 1px; transition: color 160ms; }
.link:hover { color: var(--accent); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: flex-end; gap: 32px;
  padding: 20px var(--m);
  transition: background-color 300ms;
}
.nav.is-solid { background: rgb(10 13 20 / 0.92); }
.nav__mark { margin-right: auto; font: 400 1.75rem/1 var(--display); text-decoration: none; letter-spacing: -0.02em; opacity: 0; transition: opacity 300ms; }
.nav.is-solid .nav__mark { opacity: 1; }
.nav__links { display: flex; gap: 28px; font-size: 0.9375rem; }
.nav__links a { text-decoration: none; color: var(--ink); transition: color 160ms; }
.nav__links a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; }
.hero__photo {
  position: absolute; left: 20px; top: 20px; bottom: 20px; width: 47%; margin: 0;
  border-radius: 12px; overflow: hidden; background: var(--surface);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(1.06); animation: settle 2.4s var(--ease) forwards; }
@keyframes settle { to { transform: scale(1); } }
.hero__copy {
  position: absolute; left: calc(47% + 20px); right: 0; top: 24%;
  display: grid; justify-items: start; padding: 0 var(--m) 0 clamp(32px, 6vw, 112px);
}
.hero__lead { margin: 0; max-width: 24ch; font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.3; }
.hero__price { margin: 20px 0 0; color: var(--muted); }
.hero__price span { color: var(--ink); font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px; }
.hero__name {
  position: absolute; right: var(--m); bottom: 28px; z-index: 2; margin: 0;
  font: 400 clamp(96px, min(15vw, 28vh), 260px)/0.8 var(--display); letter-spacing: -0.04em; white-space: nowrap;
  color: var(--ink); transform-origin: 100% 100%;
}

/* ---------- Scroll world ---------- */
.world { position: relative; height: 300vh; }
.world__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.world__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.world__text { position: absolute; z-index: 2; left: var(--m); bottom: var(--m); display: grid; pointer-events: none; }
.world__title, .world__line {
  grid-area: 1 / 1; align-self: end; justify-self: start; margin: 0; max-width: 16ch;
  padding: 20px 28px 24px; border-radius: 12px; background: var(--bg);
  font: 400 clamp(2.25rem, 1.4rem + 4vw, 5.5rem)/0.98 var(--display); letter-spacing: -0.02em;
  opacity: 0; visibility: hidden; transform: translateY(24px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease), visibility 0s 600ms;
}
.world [data-world-line].is-on { visibility: visible; transition-delay: 0s; }
.world__line--big { font-size: clamp(3.5rem, 2rem + 8vw, 10rem); color: var(--ink); }
.world [data-world-line].is-on { opacity: 1; transform: none; }
.world__fallback { display: none; }
.world.is-static { height: auto; }
.world.is-static .world__stage { position: relative; height: auto; padding: var(--gap) var(--m); }
.world.is-static .world__canvas { display: none; }
.world.is-static .world__text { position: static; display: grid; gap: 16px; place-items: start; }
.world.is-static [data-world-line] { padding: 0; background: none; }
.world.is-static [data-world-line] { grid-area: auto; opacity: 1; visibility: visible; transform: none; }
.world.is-static .world__fallback { display: flex; flex-wrap: wrap; gap: 12px 32px; list-style: none; margin: 48px 0 0; padding: 0; font: 400 var(--step-lead)/1.2 var(--display); color: var(--muted); }

/* ---------- Shorts band ---------- */
.shorts { padding-top: var(--gap); }
.shorts__title { margin: 0 var(--m) 64px calc(var(--m) + 16.66%); }
.shorts__band { display: flex; height: 72svh; min-height: 480px; margin: 0 var(--m); border-radius: 12px; overflow: hidden; }
.short {
  position: relative; flex: var(--grow) 1 0; min-width: 0; overflow: hidden; background: var(--surface);
  transition: flex-grow 500ms var(--ease);
}
@media (hover: hover) { .shorts__band:hover .short:hover { flex-grow: 6; } }
.short img, .short video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.short img { animation: drift 14s ease-in-out infinite alternate; filter: brightness(0.85) contrast(1.05); }
@keyframes drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.14) translate(-2%, -1.5%); } }
.short.is-paused img, .short.is-paused .short__subs p { animation-play-state: paused; }
.short__name {
  position: absolute; left: 24px; top: 24px; right: 24px; margin: 0;
  font: 400 1.75rem/1.05 var(--display); letter-spacing: -0.01em;
}
/* neutral scrim under the title on a photograph */
.short::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 45%; z-index: 1; pointer-events: none; background: linear-gradient( /* taste-skill-ignore */rgb(10 13 20 / 0.7), rgb(10 13 20 / 0)); }
.short__name, .short__subs, .short__toggle { z-index: 2; }
.short__subs { position: absolute; left: 24px; right: 24px; bottom: 76px; display: grid; gap: 6px; text-align: left; }
.short__subs p {
  margin: 0; justify-self: start; max-width: 32ch; padding: 6px 12px; border-radius: 6px;
  background: rgb(10 13 20 / 0.78); font-size: 1rem; line-height: 1.35;
  opacity: 0; animation: sub 8s var(--ease) infinite;
}
.short__subs .short__es { color: var(--ink); font-weight: 500; animation-name: sub-es; }
.short__subs .short__orig { color: var(--muted); }
@keyframes sub { 0%, 6% { opacity: 0; transform: translateY(8px); } 12%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
@keyframes sub-es { 0%, 34% { opacity: 0; transform: translateY(8px); } 42%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
.short__toggle {
  position: absolute; right: 16px; bottom: 16px; min-width: 44px; height: 44px; padding: 0 14px;
  border: 0; border-radius: 999px; background: rgb(233 237 243 / 0.9); color: var(--accent-ink);
  font: 500 0.875rem/1 var(--text); cursor: pointer; transition: transform 160ms var(--ease);
}
.short__toggle:active { transform: scale(0.94); }
.shorts__caption { margin: 20px var(--m) 0; color: var(--muted); font-size: 1rem; }

/* ---------- Phrase (live thing) ---------- */
.phrase {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: var(--gap) var(--m) 0;
}
.phrase__lead { max-width: 44ch; margin: 24px 0 32px; }
.phrase__form { display: grid; gap: 24px; }
.phrase__form fieldset { border: 0; margin: 0; padding: 0; }
.phrase__form legend { padding: 0; margin-bottom: 10px; color: var(--muted); font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--surface); cursor: pointer; transition: background-color 160ms, color 160ms, transform 160ms var(--ease);
}
.chips label:hover span { background: var(--surface-2); }
.chips input:checked + span { background: var(--ink); color: var(--accent-ink); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.chips label:active span { transform: scale(0.96); }
.phrase__card {
  min-height: 420px; padding: clamp(32px, 4vw, 56px); border-radius: 12px; background: var(--surface);
  display: grid; align-content: center; justify-items: start; gap: 20px;
}
.phrase__es { margin: 0; color: var(--muted); font-size: var(--step-lead); }
.phrase__out { margin: 0; font: 400 clamp(2rem, 1.3rem + 2.6vw, 3.5rem)/1.05 var(--display); letter-spacing: -0.01em; transition: opacity 240ms; }
.phrase__out.is-swapping { opacity: 0; }
.phrase__note { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---------- Steps (drag row) ---------- */
.steps { padding-top: var(--gap); }
.steps__head { display: flex; justify-content: space-between; align-items: end; padding: 0 var(--m); }
.steps__btns { display: flex; gap: 8px; }
.sq {
  width: 48px; height: 48px; border: 0; border-radius: 0; background: var(--surface-2); color: var(--ink);
  font-size: 1.25rem; cursor: pointer; transition: background-color 160ms, transform 160ms var(--ease);
}
.sq:hover { background: var(--accent); color: var(--accent-ink); }
.sq:active { transform: scale(0.94); }
.steps__bar { height: 6px; margin: 24px var(--m) 40px; background: var(--surface-2); }
.steps__bar span { display: block; height: 100%; width: 20%; background: var(--ink); transform-origin: left; transition: width 200ms; }
.steps__row {
  display: flex; gap: 32px; margin: 0; padding: 0 var(--m) 8px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--m); scrollbar-width: none;
}
.steps__row::-webkit-scrollbar { display: none; }
.steps__row li { flex: 0 0 300px; scroll-snap-align: start; display: flex; flex-direction: column; }
.steps__row h3 { font: 500 1.125rem/1.3 var(--text); }
.steps__row li p { margin: 8px 0 var(--gap); font-size: 1rem; color: var(--muted); min-height: 4.8em; }
.steps__row img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; filter: brightness(0.85) contrast(1.05); }

/* ---------- Specs (name columns) ---------- */
.specs { padding: 20vh var(--m); }
.specs__title { font: 400 1.75rem/1.1 var(--display); margin-bottom: 96px; }
.specs__cols { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.specs__col { grid-column: span 3; }
.specs__col h3 { font: 400 1.0625rem/1.25 var(--text); color: var(--ink); margin-bottom: 1.25em; }
.specs__col ul { list-style: none; margin: 0; padding: 0; }
.specs__col li { font-size: 1.0625rem; line-height: 1.6; color: var(--muted); cursor: default; transition: color 160ms; }
.specs__col li:hover, .specs__col li.is-on { color: var(--ink); }
.specs__desc { grid-column: 10 / 13; margin: 0; align-self: start; font-size: 1.0625rem; line-height: 1.5; }

/* ---------- Price (menu) ---------- */
.price { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: 0 var(--m); }
.price__side { grid-column: 1 / 4; }
.price__side img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-top: 40px; border-radius: 12px; }
.price__list { grid-column: 5 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.price__group h3 { font: 500 1.5rem/1.2 var(--text); margin: 48px 0 24px; }
.price__group:first-child h3, .price__group:nth-child(2) h3 { margin-top: 0; }
.row { display: flex; justify-content: space-between; gap: 16px; font-size: 1.1875rem; font-variant-numeric: tabular-nums; }
.row__desc { margin: 4px 0 22px; max-width: 36ch; font-size: 1rem; color: var(--muted); }
.price__buy { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- FAQ ---------- */
.faq { padding: var(--gap) var(--m) 0; display: grid; gap: 80px; }
.faq__row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: baseline; }
.faq__q { grid-column: 1 / 7; font: 500 clamp(1.5rem, 1rem + 1.6vw, 2.5rem)/1.1 var(--text); letter-spacing: -0.01em; }
.faq__q--head { color: var(--muted); }
.faq__row p { grid-column: 8 / 13; margin: 0; max-width: 42ch; font-size: 1.0625rem; line-height: 1.55; }

/* ---------- CTA ---------- */
.cta { padding: var(--gap) var(--m); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
.cta__copy { grid-column: 1 / 6; }
.cta__img { grid-column: 7 / 13; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; filter: brightness(0.85) contrast(1.05); }
.cta__line { margin: 0; max-width: 34ch; font-size: clamp(1.25rem, 1rem + 0.6vw, 1.5rem); line-height: 1.4; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 24px; }

/* ---------- Footer ---------- */
.foot { position: relative; height: 100svh; min-height: 560px; overflow: hidden; color: var(--ink); }
.foot__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.62); }
.foot__top { position: relative; display: flex; justify-content: space-between; gap: 32px; padding: 32px var(--m); font-size: 1rem; }
.foot__top nav { display: grid; gap: 4px; }
.foot__top a { text-decoration: none; }
.foot__top a:hover { text-decoration: underline; }
.foot__top p { margin: 0; text-align: right; }
.foot__name {
  position: absolute; left: var(--m); right: var(--m); bottom: 72px; margin: 0;
  font: 400 clamp(96px, 24vw, 420px)/0.78 var(--display); letter-spacing: -0.045em; text-align: center; white-space: nowrap;
  transform-origin: 50% 100%;
}
.foot__legal { position: absolute; left: var(--m); right: var(--m); bottom: 24px; margin: 0; font-size: var(--step-small); color: var(--ink); }

/* ---------- Dialog + cookies ---------- */
.notify { width: min(480px, calc(100% - 32px)); padding: 28px; border: 0; border-radius: 12px; background: var(--surface); color: var(--ink); }
.notify::backdrop { background: rgb(0 0 0 / 0.65); }
.notify form { display: grid; gap: 16px; }
.notify p { margin: 0; color: var(--muted); }
.notify__title { font: 400 2rem/1.05 var(--display); }
.field { display: grid; gap: 6px; }
.field input { min-height: 52px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; }
.field input:focus { outline: 2px solid var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--accent); }
.notify__row { display: flex; gap: 10px; flex-wrap: wrap; }
.notify__done { color: var(--ink) !important; }
.cookies { position: fixed; z-index: 40; left: var(--m); bottom: var(--m); max-width: 420px; padding: 18px 20px; border-radius: 12px; background: var(--surface-2); box-shadow: 0 12px 40px rgb(0 0 0 / 0.5); } /* taste-skill-ignore: floating banner */
.cookies[hidden] { display: none; }
.cookies p { margin: 0 0 12px; font-size: 0.9375rem; }
.cookies__row { display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- Entrances ---------- */
.js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-rise].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
  .hero__photo img, .short img, .short__subs p { animation: none; transform: none; }
  .short__subs p { opacity: 1; }
  .world__title, .world__line { transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .specs__col { grid-column: span 4; }
  .specs__desc { grid-column: 1 / -1; margin-top: 40px; }
  .price__side { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
  .price__side img { margin-top: 0; }
  .price__list { grid-column: 1 / -1; margin-top: 56px; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .nav { padding: 14px 20px; }
  .nav .btn--small { min-height: 40px; padding: 0 16px; }
  .hero { height: auto; min-height: 0; padding-bottom: 48px; }
  .hero__photo { position: relative; left: auto; top: auto; bottom: auto; width: auto; height: 58svh; margin: 12px; }
  .hero__name { position: relative; right: auto; bottom: auto; display: block; margin: -3vw 20px 0; font-size: 21vw; text-align: left; }
  .hero__copy { position: static; padding: 24px 20px 0; }
  .hero__lead { font-size: 1.1875rem; }
  .hero { display: flex; flex-direction: column; }
  .hero__photo { order: 0; } .hero__name { order: 1; } .hero__copy { order: 2; }
  .world { height: 360vh; }
  .shorts__title { margin: 0 20px 32px; font-size: 1.75rem; }
  .shorts__band { display: grid; grid-template-columns: 64fr 36fr; grid-template-rows: 1fr 1fr; height: 96svh; }
  .short:nth-child(3) { grid-column: 1; } .short:nth-child(4) { grid-column: 2; grid-row: 2; }
  .shorts__band { grid-template-areas: "a b" "c d"; }
  .short:nth-child(1) { grid-area: a; } .short:nth-child(2) { grid-area: b; } .short:nth-child(3) { grid-area: c; } .short:nth-child(4) { grid-area: d; }
  .short__name { font-size: 1.25rem; left: 16px; top: 16px; }
  .short__subs { left: 12px; right: 12px; bottom: 68px; }
  .short__subs p { font-size: 0.875rem; }
  .phrase { grid-template-columns: 1fr; }
  .phrase__card { min-height: 300px; }
  .steps__btns { display: none; }
  .steps__row li { flex-basis: 72vw; }
  .steps__row { gap: 16px; }
  .steps__row li p { margin-bottom: calc(var(--gap) / 2.5); }
  .specs { padding: 120px 20px; }
  .specs__title { font-size: 1.5rem; margin-bottom: 48px; }
  .specs__cols { display: grid; grid-template-columns: 1fr; gap: 40px; }
  .specs__col { grid-column: auto; }
  .specs__col li { font-size: 1.125rem; line-height: 1.4; }
  .specs__desc { display: none; }
  .price__side { grid-template-columns: 1fr; }
  .price__side img { width: 60%; }
  .price__list { grid-template-columns: 1fr; gap: 16px; }
  .price__group h3 { margin-top: 40px !important; font-size: 1.25rem; }
  .row { font-size: 1.0625rem; }
  .faq { gap: 56px; }
  .faq__row { display: block; }
  .faq__q { font-size: 1.5rem; }
  .faq__row p { margin-top: 12px; }
  .cta { padding: 96px 20px; display: grid; grid-template-columns: 1fr; row-gap: 40px; }
  .cta__copy, .cta__img { grid-column: 1; }
  .cta__line { font-size: 1.125rem; }
  .foot { height: 88svh; }
  .foot__top { flex-direction: column; padding: 24px 20px; }
  .foot__top p { text-align: left; }
  .foot__name { font-size: 26vw; left: 12px; right: 12px; bottom: 112px; }
  .foot__legal { font-size: 0.8125rem; left: 20px; right: 20px; }
  .cookies { right: var(--m); }
}
