/* Scrollhaus: main stylesheet. Tokens first, everything else reads them. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2-variations"),
       url("../fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2-variations"),
       url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* palette: a lime-washed Spanish house */
  --cal: #F4EADD;          /* ground */
  --cal-2: #FBF6EF;        /* lifted surface (browser frames, inputs) */
  --arena: #E9DAC6;        /* sand surface */
  --arena-2: #DFCBB1;      /* deeper sand: hover, selected */
  --peach: #F2BC9E;        /* warm glow */
  --barro: #A8492B;        /* fired clay: primary action only */
  --barro-2: #8F3B20;
  --cacao: #3B2A21;        /* deep fields */
  --cacao-2: #4A372C;
  --tinta: #2E211B;        /* ink */
  --muted: #6B574B;        /* secondary text on light, 5.6:1 on --cal */
  --on-dark: #F4EADD;
  --on-dark-muted: #CDB9A6;/* 7:1 on --cacao */
  --danger: #9E2B1E;
  --ok: #4E6B3A;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-text: "Newsreader", "Iowan Old Style", Georgia, serif;

  --fs-hero: clamp(2.6rem, 6vw, 6.25rem);
  --fs-h2: clamp(2.1rem, 4.4vw, 4.25rem);
  --fs-h3: clamp(1.35rem, 1.9vw, 1.75rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --section: clamp(80px, 9vw, 150px);
  --nav-h: 68px;
  --bar-h: 60px;
  --radius-lg: 22px;
  --radius-md: 14px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.45, .05, .25, 1);
  --dur: .6s;

  --shadow-float: 0 30px 60px -28px rgba(59, 42, 33, .45), 0 10px 22px -12px rgba(59, 42, 33, .25);

  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden; overflow-x: clip;
  background: var(--cal);
  color: var(--tinta);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--peach); color: var(--tinta); }
:focus-visible { outline: 3px solid var(--barro); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; 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: 12px; top: -60px; z-index: 100; background: var(--tinta); color: var(--cal); padding: 10px 16px; border-radius: 999px; font-family: var(--font-display); text-decoration: none; transition: top .2s var(--ease-out); }
.skip:focus { top: 12px; }
main:focus { outline: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.lead { font-size: clamp(1.125rem, 1.35vw, 1.3125rem); line-height: 1.5; max-width: 52ch; }
.muted { color: var(--muted); }
.placeholder-note { background: #FFE3C7; color: var(--tinta); padding: 0 .3em; border-radius: 4px; font-family: var(--font-display); font-size: .85em; white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 1.5em;
  border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--font-display); font-weight: 500; font-size: 1rem; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.btn--primary { background: var(--barro); color: #FBF4EC; }
.btn--primary:hover { background: var(--barro-2); }
.btn--sand { background: var(--arena); color: var(--tinta); }
.btn--sand:hover { background: var(--arena-2); }
.btn--light { background: var(--cal); color: var(--tinta); }
.btn--light:hover { background: #fff8ef; }
.btn--quiet { background: transparent; color: var(--tinta); padding-inline: .4em; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.btn--quiet:hover { text-decoration-color: var(--barro); }
.btn:active { transform: translate3d(var(--mx), var(--my), 0) scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }

.textlink { font-family: var(--font-display); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; display: inline-flex; align-items: center; gap: .4em; }
.textlink:hover { text-decoration-color: var(--barro); }
.textlink svg { width: 16px; height: 16px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.nav.is-solid { background: var(--cal); box-shadow: 0 1px 0 rgba(46, 33, 27, .06); } /* taste-skill-ignore: sticky bar edge */
.nav__inner { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 650; font-size: 1.3rem; letter-spacing: -0.035em; }
.brand svg { width: 30px; height: 30px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav__links a { position: relative; font-family: var(--font-display); font-size: .98rem; text-decoration: none; padding: 8px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--barro); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav__links a:hover::after, .nav__links a:focus-visible::after { transform: scaleX(1); }
.lang { display: inline-flex; background: var(--arena); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: transparent; border-radius: 999px; padding: 6px 11px; font-family: var(--font-display); font-size: .85rem; font-weight: 500; cursor: pointer; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--cal); color: var(--tinta); }
.nav__cta { margin-left: 4px; min-height: 42px; padding-inline: 1.2em; }
.nav__menu { display: none; }

/* ---------- hero ----------
   Static by default: the finished-site still with the main headline. main.js adds html.hero-scrub
   only when the scroll-scrubbed film should run (it re-checks on every resize, rotation and
   reduced-motion change), so phones, portrait tablets, short landscape phones, reduced motion,
   slow connections and no-JS visitors all get this composed still. */
.hero { position: relative; background: var(--arena); }
.hero__stage { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 24px) 0 clamp(40px, 7vh, 80px); } /* taste-skill-ignore: svh follows as the real value */
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hero__poster { background: var(--arena) var(--hero-still, none) 72% 50% / cover no-repeat; animation: float 16s var(--ease-soft) infinite alternate -4s; }
.hero__video, .hero__ring, .hero__cue, .band--1, .band--2 { display: none; }
.hero__veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(244, 234, 221, .92) 0%, rgba(244, 234, 221, .7) 30%, rgba(244, 234, 221, 0) 55%); } /* taste-skill-ignore: scrim over the hero image */
.hero__bands { position: relative; }
.band { position: relative; margin-inline: var(--gutter); max-width: min(560px, 44vw); }
.band__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.5rem, 4.4vw, 5.25rem); line-height: .98; letter-spacing: -0.04em; text-wrap: balance; }
.band--2 .band__title { font-size: clamp(2.1rem, 3.3vw, 3.9rem); }
.band h1.band__title { margin: 0; }
.band__sub { margin-top: 26px; font-size: clamp(1.15rem, 1.45vw, 1.4rem); line-height: 1.45; max-width: 32ch; color: var(--tinta); }
.band__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.band .w { display: inline-block; white-space: nowrap; }
.band .c { display: inline-block; }
@keyframes float { from { transform: scale(1.03) translateY(0); } to { transform: scale(1.07) translateY(-1.2%); } }

/* phones and portrait tablets: the finished site as a picture on top, the headline below it */
@media (max-width: 820px) {
  .hero__stage { justify-content: flex-start; min-height: 0; padding: calc(var(--nav-h) + 4px) 0 56px; }
  .hero__poster { position: relative; inset: auto; height: auto; aspect-ratio: 900 / 716; background-image: var(--hero-still-m, var(--hero-still)); background-position: center; animation-duration: 18s; }
  .hero__veil { display: none; }
  .band { max-width: none; margin-top: 22px; }
}
@media (max-width: 720px) {
  .band__title { font-size: clamp(2.4rem, 10.5vw, 3.3rem); }
}

/* the scroll-scrubbed film */
.hero-scrub .hero { height: 340vh; }
.hero-scrub .hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; display: block; padding: 0; } /* taste-skill-ignore: svh follows as the real value */
.hero-scrub .hero__poster { animation: none; background-image: var(--hero-poster, none); }
.hero-scrub .hero__video { display: block; opacity: 0; transition: opacity .8s var(--ease-out); will-change: transform; transform: translateZ(0); }
.hero-scrub .hero.video-ready .hero__video { opacity: 1; }
.hero-scrub .hero.video-failed .hero__video { display: none; }
.hero-scrub .hero__veil { background: radial-gradient(ellipse 52% 80% at 10% 52%, rgba(244, 234, 221, .5) 0%, rgba(244, 234, 221, .22) 48%, rgba(244, 234, 221, 0) 78%); } /* taste-skill-ignore: scrim over the hero video */
.hero-scrub .hero__bands { position: absolute; inset: 0; pointer-events: none; }
.hero-scrub .band--1, .hero-scrub .band--2 { display: block; }
.hero-scrub .band { position: absolute; left: var(--gutter); top: 50%; margin: 0; width: min(38vw, 600px); max-width: none; transform: translateY(-50%); opacity: 0; }
.hero-scrub .band--2 { width: min(27vw, 420px); }
.hero-scrub .band--3 { width: min(30vw, 470px); }
.hero-scrub .band.is-on { pointer-events: auto; }
.hero-scrub .band::before { content: ""; position: absolute; inset: -20% -24% -20% -14%; z-index: -1; pointer-events: none; opacity: calc(.25 + .75 * var(--k, 1)); background: radial-gradient(ellipse 70% 62% at 40% 50%, rgba(244, 234, 221, .72) 0%, rgba(244, 234, 221, .46) 50%, rgba(244, 234, 221, 0) 78%); } /* taste-skill-ignore: per-caption scrim over live video */
/* band 1: words rise; band 2: characters gather like the pieces; band 3: words rise, then subline, then actions */
.hero-scrub .band--rise .w { --kc: clamp(0, (var(--k, 0) - var(--th, 0)) * 2.8, 1); opacity: var(--kc); transform: translateY(calc((1 - var(--kc)) * 28px)); }
.hero-scrub .band--gather .c { --kc: clamp(0, (var(--k, 0) - var(--th, 0)) * 2.6, 1); opacity: var(--kc); transform: translate(calc((1 - var(--kc)) * var(--jx, 0px)), calc((1 - var(--kc)) * var(--jy, 0px))) rotate(calc((1 - var(--kc)) * var(--jr, 0deg))); }
.hero-scrub .band--settle .band__sub { --ks: clamp(0, (var(--k, 0) - .62) * 4, 1); opacity: var(--ks); transform: translateY(calc((1 - var(--ks)) * 16px)); }
.hero-scrub .band--settle .band__actions { --kb: clamp(0, (var(--k, 0) - .76) * 5, 1); opacity: var(--kb); transform: translateY(calc((1 - var(--kb)) * 14px)); }
.hero-scrub .hero__ring { display: block; position: absolute; right: var(--gutter); bottom: 28px; width: 44px; height: 44px; color: var(--barro); transition: opacity .5s var(--ease-out); }
.hero-scrub .hero.video-ready .hero__ring, .hero-scrub .hero.video-failed .hero__ring { opacity: 0; }
.hero__ring circle { transition: stroke-dashoffset .12s linear; }
.hero-scrub .hero__cue { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; font-family: var(--font-display); font-size: .9rem; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 6px; transition: opacity .4s; }
.hero-scrub .hero__cue.is-gone { opacity: 0; }
.hero__cue b { font-weight: 500; }
.hero__cue span { width: 2px; height: 34px; background: var(--muted); border-radius: 2px; transform-origin: top; animation: cue 2.4s var(--ease-soft) infinite -1.2s; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-height: 560px) { .hero-scrub .hero__cue { display: none; } }

/* phones and portrait tablets (html.hero-scrub.hero-m): the same film as still frames on a canvas
   (demos/_shared/frames.js), a square picture under the menu that fades into the page, captions below it */
.hero__canvas { display: none; }
.hero-m .hero__poster, .hero-m .hero__canvas { position: absolute; left: 50%; right: auto; top: calc(var(--nav-h) + 6px); bottom: auto; width: min(100%, 50svh); height: auto; aspect-ratio: 1; translate: -50% 0; -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent); mask-image: linear-gradient(to bottom, #000 80%, transparent); }
.hero-m .hero__poster { background-image: var(--hero-poster-m, var(--hero-poster)); background-position: center; background-size: cover; animation: none; }
.hero-m .hero__canvas { display: block; opacity: 0; transition: opacity .6s var(--ease-out); }
.hero-m .hero.video-ready .hero__canvas { opacity: 1; }
html.hero-m .hero__video, html.hero-m .hero__veil { display: none; }
html.hero-scrub.hero-m .band { left: var(--gutter); right: var(--gutter); top: auto; bottom: max(8svh, 56px); width: auto; transform: none; }
html.hero-scrub.hero-m .band::before { display: none; }
html.hero-scrub.hero-m .hero__ring { bottom: 16px; width: 34px; height: 34px; }
html.hero-scrub.hero-m .hero__cue { bottom: 12px; }
@media (max-height: 700px) {
  .hero-m .hero__poster, .hero-m .hero__canvas { width: min(100%, 42svh); -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 44%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 70% at 50% 44%, #000 62%, transparent 100%); }
}

/* ---------- section scaffolding ---------- */
.section { padding-block: var(--section); position: relative; }
.section--sand { background: var(--arena); }
.section--cacao { background: var(--cacao); color: var(--on-dark); }
.section--peach { background: var(--peach); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.1; }

/* ---------- work intro + category bar ---------- */
.work-intro { padding-block: clamp(80px, 9vw, 140px) 40px; }
.work-intro__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px 64px; align-items: end; }
.work-intro .lead { margin-bottom: 26px; }

.catbar { position: sticky; top: var(--nav-h); z-index: 40; background: var(--cal); transition: box-shadow .35s var(--ease-out); }
.catbar.is-stuck { box-shadow: 0 10px 24px -18px rgba(59, 42, 33, .5); } /* taste-skill-ignore: sticky bar lifted over content */
.catbar__inner { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; position: relative; }
.catbar__list { display: flex; gap: 10px; list-style: none; margin: 0; padding: 18px 0; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; transition: padding .35s var(--ease-out); }
.catbar__list::-webkit-scrollbar { display: none; }
.catbar.is-stuck .catbar__list { padding-block: 10px; }
.catbar__list li { flex: none; scroll-snap-align: start; }
.pill {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; background: var(--arena); color: var(--tinta);
  font-family: var(--font-display); font-size: .98rem; font-weight: 500; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), min-height .35s var(--ease-out);
}
.pill:hover { background: var(--arena-2); }
.pill[aria-current="true"] { background: var(--tinta); color: var(--cal); }
.catbar.is-stuck .pill { min-height: 38px; font-size: .92rem; }
.catbar__fade { position: absolute; top: 0; bottom: 0; width: 40px; pointer-events: none; opacity: 0; transition: opacity .3s; }
.catbar__fade--l { left: -1px; background: linear-gradient(90deg, var(--cal), rgba(244, 234, 221, 0)); } /* taste-skill-ignore: scroll fade on the swipeable pill row */
.catbar__fade--r { right: -1px; background: linear-gradient(270deg, var(--cal), rgba(244, 234, 221, 0)); } /* taste-skill-ignore: scroll fade on the swipeable pill row */
.catbar.can-left .catbar__fade--l, .catbar.can-right .catbar__fade--r { opacity: 1; }

/* ---------- showcase ---------- */
.cat { padding-block: clamp(72px, 8vw, 128px); scroll-margin-top: calc(var(--nav-h) + var(--bar-h)); }
.cat:nth-of-type(even) { background: var(--arena); }
.cat__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.cat__head .lead { justify-self: start; }
.cat--flip .cat__head > :first-child { order: 2; text-align: right; }
.cat--flip .cat__head .lead { justify-self: start; }
.rail-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(60vw, 740px);
  gap: clamp(20px, 3vw, 44px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 34px var(--gutter) 46px;
  scrollbar-width: thin; scrollbar-color: var(--arena-2) transparent;
}
.rail:focus-visible { outline-offset: -3px; }
.rail > * { scroll-snap-align: start; }
.rail__nav { display: flex; gap: 10px; justify-content: flex-end; width: min(100% - 2 * var(--gutter), var(--maxw)); margin: 0 auto; }
.rail__btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--arena); color: var(--tinta); display: grid; place-items: center; cursor: pointer; transition: background-color .3s var(--ease-out), opacity .3s; }
.cat:nth-of-type(even) .rail__btn { background: var(--cal); }
.rail__btn:hover { background: var(--arena-2); }
.rail__btn[disabled] { opacity: .35; cursor: default; }
.rail__btn svg { width: 20px; height: 20px; }

.demo { perspective: 1400px; }
.demo__media { --rx: 0deg; --ry: 0deg; position: relative; padding: 0 9% 9% 0; transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; }
.browser { --px: 0px; --py: 0px; position: relative; background: var(--cal-2); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-float); transform: translate3d(var(--px), var(--py), 0); } /* taste-skill-ignore: the browser frame floats over the page */
.browser__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 16px; background: var(--cal); }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #C8704F; }
.browser__url { flex: 1; max-width: 340px; margin-inline: auto; height: 26px; border-radius: 999px; background: var(--cal-2); font-family: var(--font-display); font-size: .82rem; color: var(--muted); display: flex; align-items: center; justify-content: center; letter-spacing: 0; }
.browser__screen { aspect-ratio: 16 / 10; background: var(--arena); position: relative; }
.phone { --px: 0px; --py: 0px; position: absolute; right: 0; bottom: 0; width: 24%; aspect-ratio: 9 / 19.5; padding: 6px; border-radius: 30px; background: var(--tinta); box-shadow: var(--shadow-float); transform: translate3d(var(--px), var(--py), 40px); } /* taste-skill-ignore: the phone floats over the browser frame */
.phone__screen { width: 100%; height: 100%; border-radius: 24px; overflow: hidden; background: var(--arena); position: relative; }
.media-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* temporary cover for cards whose demo is not recorded yet */
.demo__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 8%; background: color-mix(in srgb, var(--brand) 84%, transparent); color: var(--brand-2); }
.demo__ph b { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 3.2rem); letter-spacing: -0.035em; line-height: 1; }
.demo__ph small { font-family: var(--font-display); font-size: .85rem; opacity: .85; }
.demo__ph--sm b { font-size: clamp(.8rem, 1.2vw, 1.05rem); letter-spacing: -0.02em; }
.rail { min-height: 300px; }
.demo__info { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: baseline; margin-top: 22px; padding-right: 9%; }
.demo__name { font-size: var(--fs-h3); letter-spacing: -0.025em; line-height: 1.1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--arena); font-family: var(--font-display); font-size: .84rem; font-weight: 500; letter-spacing: 0; color: var(--tinta); }
.cat:nth-of-type(even) .tag { background: var(--cal); }
.tag.tag--film, .cat:nth-of-type(even) .tag.tag--film { background: var(--peach); }
.demo__desc { grid-column: 1 / -1; color: var(--tinta); max-width: 56ch; }
.demo__link { grid-row: 1; grid-column: 2; }

/* ---------- others (the open door) ---------- */
.others { scroll-margin-top: calc(var(--nav-h) + var(--bar-h)); }
.others__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px clamp(40px, 7vw, 120px); align-items: center; }
.door { --px: 0px; --py: 0px; position: relative; aspect-ratio: 5 / 7; max-width: 340px; width: 100%; margin-bottom: 70px; justify-self: center; transform: translate3d(var(--px), var(--py), 0); }
.door__arch { position: absolute; inset: 0; border-radius: 999px 999px 14px 14px; background: var(--cacao-2); overflow: hidden; }
.door__light { position: absolute; inset: 8% 11% 0; border-radius: 999px 999px 0 0; background: var(--peach); }
.door__leaf { position: absolute; inset: 8% 11% 0; border-radius: 999px 999px 0 0; background: #6B4A38; transform-origin: 0 50%; transform: perspective(700px) rotateY(-74deg); transition: transform 1.6s var(--ease-out) .2s; }
.door.is-closed .door__leaf { transform: perspective(700px) rotateY(0deg); }
.door__floor { position: absolute; left: -12%; right: -12%; top: 100%; height: 56px; background: var(--peach); opacity: .13; clip-path: polygon(19% 0, 81% 0, 100% 100%, 0 100%); transition: opacity 1.6s var(--ease-out) .2s; }
.door.is-closed .door__floor { opacity: 0; }
.others .lead { color: var(--on-dark-muted); margin: 22px 0 34px; }
.others .h2 { color: var(--on-dark); }

/* ---------- how it works ---------- */
.how__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px clamp(40px, 7vw, 120px); }
.how__intro { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }
.how__intro .lead { margin-top: 24px; }
.guarantee { margin-top: 32px; padding: 22px 24px; background: var(--arena); border-radius: var(--radius-md); font-family: var(--font-display); font-size: 1.1rem; line-height: 1.35; letter-spacing: -0.01em; max-width: 30ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(40px, 5vw, 72px); counter-reset: none; }
.step { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 28px; align-items: start; }
.step__arch { width: 96px; aspect-ratio: 3 / 4; border-radius: 999px 999px 10px 10px; background: var(--arena); position: relative; overflow: hidden; }
.step__arch::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 100%; background: var(--peach); transform-origin: bottom; transform: scaleY(0); transition: transform 1.4s var(--ease-out) .25s; }
.step.in .step__arch::after, .no-js .step__arch::after { transform: scaleY(var(--fill, .25)); }
.step:nth-child(1) .step__arch { --fill: .25; }
.step:nth-child(2) .step__arch { --fill: .5; }
.step:nth-child(3) .step__arch { --fill: .75; }
.step:nth-child(4) .step__arch { --fill: 1; }
.step h3 { font-size: clamp(1.9rem, 3vw, 2.75rem); }
.step p { margin-top: 12px; max-width: 46ch; }
.included { margin-top: clamp(80px, 9vw, 140px); }
.included { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.included .h3 { font-size: clamp(1.9rem, 3vw, 2.75rem); letter-spacing: -0.03em; }
.included__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 56px; }
.included__list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px 16px; align-items: baseline; align-content: start; }
.included__list li::before { content: ""; width: 14px; height: 18px; border-radius: 999px 999px 3px 3px; background: var(--barro); grid-row: span 2; align-self: start; margin-top: 4px; }
.included__list strong { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.2; }
.included__list span { color: var(--tinta); grid-column: 2; }

/* ---------- configurator ---------- */
.config { scroll-margin-top: var(--nav-h); }
.config__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: 56px; }
.config__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px clamp(32px, 5vw, 80px); align-items: start; }
.config__preview { position: sticky; top: calc(var(--nav-h) + 32px); }
.fs { border: 0; padding: 0; margin: 0 0 44px; min-width: 0; }
.fs legend { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 6px; padding: 0; }
.fs__hint { color: var(--muted); font-size: var(--fs-small); margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--cal); font-family: var(--font-display); font-size: .95rem; font-weight: 500; transition: background-color .25s var(--ease-out), color .25s var(--ease-out); user-select: none; }
.chip span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--arena-2); transition: background-color .25s, box-shadow .25s; flex: none; }
.chip input[type="checkbox"] + span::before { border-radius: 4px; }
.chip input:hover + span { background: #fff8ef; }
.chip input:checked + span { background: var(--tinta); color: var(--cal); }
.chip input:checked + span::before { background: var(--peach); box-shadow: inset 0 0 0 3px var(--tinta); } /* taste-skill-ignore: selected state ring */
.chip input:focus-visible + span { outline: 3px solid var(--barro); outline-offset: 3px; }
.styles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.style-card { position: relative; }
.style-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.style-card__body { display: block; border-radius: var(--radius-md); background: var(--cal); padding: 12px 12px 14px; transition: background-color .25s, box-shadow .25s; }
.style-card input:checked + .style-card__body { box-shadow: 0 0 0 3px var(--tinta); background: #fff8ef; } /* taste-skill-ignore: selected state ring */
.style-card input:focus-visible + .style-card__body { outline: 3px solid var(--barro); outline-offset: 4px; }
.style-card__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 9px; background: var(--arena); transition: transform .5s var(--ease-out); }
.style-card:hover .style-card__img { transform: scale(1.02); }
.style-card__name { display: block; margin-top: 10px; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; }
.style-card__desc { display: block; color: var(--muted); font-size: .88rem; line-height: 1.35; margin-top: 2px; }
.mini { display: block; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; position: relative; background: var(--s-bg); }
.mini > span { display: block; }
.mini__nav { position: absolute; left: 8%; right: 8%; top: 9%; height: 6%; display: flex; gap: 5%; align-items: center; }
.mini__nav i { height: 100%; flex: 0 0 12%; border-radius: 99px; background: var(--s-ink); opacity: .35; }
.mini__nav i:first-child { flex-basis: 18%; opacity: 1; }
.mini__title { position: absolute; left: 8%; top: 30%; width: 46%; height: 13%; border-radius: var(--s-r, 3px); background: var(--s-ink); }
.mini__title + .mini__title { top: 47%; width: 34%; }
.mini__btn { position: absolute; left: 8%; top: 68%; width: 20%; height: 11%; border-radius: var(--s-btn-r, 99px); background: var(--s-accent); }
.mini__pic { position: absolute; right: 8%; top: 26%; width: 34%; height: 56%; border-radius: var(--s-pic-r, 8px); background: var(--s-pic); }
.s-warm { --s-bg: #EFE3D2; --s-ink: #4A3426; --s-accent: #B4552F; --s-pic: #C9A27C; --s-pic-r: 999px 999px 6px 6px; --s-hero-r: 46px 46px 8px 8px; }
.s-bold { --s-bg: #2B2724; --s-ink: #F3EDE4; --s-accent: #E8833A; --s-pic: #6E5B4C; --s-r: 0; --s-btn-r: 0; --s-pic-r: 0; --s-hero-r: 0; }
.s-elegant { --s-bg: #F7F3EE; --s-ink: #3A322C; --s-accent: #8C7A68; --s-pic: #D8CDBF; --s-r: 1px; --s-pic-r: 2px; --s-hero-r: 2px; }
.s-playful { --s-bg: #FCE3CF; --s-ink: #2F4A4A; --s-accent: #E0644A; --s-pic: #86B6A8; --s-r: 99px; --s-pic-r: 28px; --s-hero-r: 26px; }

.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.field label { font-family: var(--font-display); font-weight: 500; font-size: .95rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 2px solid transparent; border-radius: 12px; background: var(--cal);
  font-family: var(--font-text); font-size: 1.0625rem; color: var(--tinta);
  transition: border-color .25s var(--ease-out), background-color .25s var(--ease-out);
}
.section--sand .field input, .section--sand .field textarea { background: var(--cal); }
.dialog .field input, .dialog .field textarea, .dialog .field select { background: var(--cal-2); border-color: rgba(107, 87, 75, .45); }
.field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #8A766A; }
.field input:hover, .field textarea:hover { background: #fff8ef; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--tinta); background: #fffaf3; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-family: var(--font-display); font-size: .88rem; min-height: 0; }
.err:empty { display: none; }
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; margin: 8px 0 22px; font-size: var(--fs-small); }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--tinta); }
.consent a { text-underline-offset: 3px; }
.form-status { margin-top: 18px; font-family: var(--font-display); }
.form-status[data-state="error"] { color: var(--danger); }
.success { background: var(--cal); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); }
.success h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.success p { margin-top: 14px; max-width: 46ch; }
[hidden] { display: none !important; }

/* live preview */
.pv { background: var(--cal); border-radius: var(--radius-lg); padding: 18px; }
.pv__label { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.015em; margin: 0 4px 12px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.pv__label span { font-weight: 400; font-size: .9rem; color: var(--muted); }
.pv__frame { background: var(--cal-2); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-float); } /* taste-skill-ignore: the preview frame floats */
.pv__frame .browser__bar { height: 32px; background: var(--arena); }
.pv__frame .dots i { width: 7px; height: 7px; }
.pv__site { --s-bg: #EFE3D2; --s-ink: #4A3426; --s-accent: #B4552F; --s-pic: #C9A27C; background: var(--s-bg); color: var(--s-ink); padding: 14px 16px 18px; min-height: 330px; transition: background-color .5s var(--ease-out), color .5s var(--ease-out); }
.pv__nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--font-display); font-size: .82rem; }
.pv__logo { font-weight: 700; font-size: .95rem; margin-right: auto; letter-spacing: -0.02em; }
.pv__nav b { font-weight: 500; opacity: .75; }
.pv__lang { padding: 1px 6px; border-radius: 99px; background: var(--s-ink); color: var(--s-bg); font-weight: 600; }
.pv__hero { margin-top: 14px; position: relative; border-radius: var(--s-hero-r, 10px); background: var(--s-pic); height: 120px; overflow: hidden; display: flex; align-items: flex-end; padding: 12px; transition: border-radius .4s var(--ease-out), background-color .5s; }
.pv__hero i { display: block; height: 10px; width: 55%; background: var(--s-bg); border-radius: var(--s-r, 3px); opacity: .9; }
.pv__play { position: absolute; right: 12px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--s-bg); display: grid; place-items: center; }
.pv__play::after { content: ""; border-left: 8px solid var(--s-ink); border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.pv__blocks { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pv__block { border-radius: 8px; background: color-mix(in srgb, var(--s-ink) 8%, var(--s-bg)); padding: 10px; font-family: var(--font-display); font-size: .82rem; font-weight: 600; min-height: 64px; display: flex; flex-direction: column; gap: 6px; animation: pop .5s var(--ease-out); }
.pv__block .bars { display: grid; gap: 4px; }
.pv__block .bars i { height: 4px; border-radius: 3px; background: currentColor; opacity: .25; }
.pv__block .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; flex: 1; }
.pv__block .grid i { background: var(--s-pic); border-radius: 3px; min-height: 12px; }
.pv__extras { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.pv__extras span { font-family: var(--font-display); font-size: .82rem; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: var(--s-accent); color: #fff; animation: pop .4s var(--ease-out); }
.pv__empty { font-family: var(--font-display); font-size: .85rem; opacity: .6; margin-top: 12px; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
.pv__note { margin: 12px 4px 0; font-size: .88rem; color: var(--muted); }

/* ---------- consultation ---------- */
.consult__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 32px 64px; align-items: end; }
.consult .h2 { max-width: 15ch; }
.consult .lead { margin-top: 24px; }
.consult__actions { display: grid; gap: 12px; }
.consult__actions .btn { justify-content: space-between; min-height: 60px; font-size: 1.05rem; padding-inline: 1.4em 1.2em; }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 48px clamp(40px, 6vw, 100px); align-items: center; }
.about__text p + p { margin-top: 18px; }

/* before / after slider: two small websites drawn at one fixed design size, scaled with the stage */
.compare { margin: 0; --pos: 50%; }
.compare__stage { position: relative; aspect-ratio: 16 / 10.4; border-radius: var(--radius-lg); overflow: hidden; container-type: inline-size; cursor: ew-resize; touch-action: pan-y; user-select: none; box-shadow: var(--shadow-float); } /* taste-skill-ignore: the comparison window floats */
.compare figcaption { margin-top: 16px; color: var(--muted); font-size: var(--fs-small); }
.compare .compare__range { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; clip-path: inset(50%); overflow: hidden; pointer-events: none; }
.cmp-site { position: absolute; inset: 0; font-size: 1.6cqw; line-height: 1.35; }
.cmp-old { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-tag { position: absolute; top: 1.1em; z-index: 2; font-family: var(--font-display); font-size: .95em; font-weight: 600; padding: .35em .8em; border-radius: 99px; }
.cmp-tag--old { left: 1.1em; background: #4b5563; color: #f3f4f6; top: auto; bottom: 3.2em; }
.cmp-tag--new { right: 1.1em; background: var(--barro); color: #FBF4EC; top: auto; bottom: 1.1em; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--cal); z-index: 3; pointer-events: none; }
.compare__handle span { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--barro); color: #FBF4EC; display: grid; place-items: center; box-shadow: 0 6px 18px -6px rgba(46, 33, 27, .6); transition: transform .3s var(--ease-out); } /* taste-skill-ignore: the drag handle floats */
.compare__handle svg { width: 22px; height: 22px; }
.compare.is-dragging .compare__handle span { transform: scale(1.1); }
.compare.is-focus .compare__handle span { outline: 3px solid var(--tinta); outline-offset: 3px; }

/* the old site: cold, grey, dated on purpose */
.cmp-old { background: #dfe3e8; color: #222; font-family: "Times New Roman", Times, serif; }
.cmp-old__top { background: #1d3a64; color: #fff; font: 700 2em/1 Arial, sans-serif; letter-spacing: .1em; padding: .55em .7em; text-shadow: 2px 2px 0 #000; } /* taste-skill-ignore: dated on purpose */
.cmp-old__nav { background: #b8c0c9; padding: .4em .9em; font: 1em Arial, sans-serif; color: #0000ee; text-decoration: underline; }
.cmp-old__body { display: grid; grid-template-columns: 24% 1fr; gap: 1em; padding: 1em; }
.cmp-old__side { background: #f2f2f2; border: 1px solid #999; padding: .7em; font-size: .95em; }
.cmp-old__side b { font-family: Arial, sans-serif; color: #b00; }
.cmp-old__side p { margin-top: .5em; }
.cmp-old__counter { font-family: "Courier New", monospace; background: #111; color: #4f4; padding: 0 .35em; } /* taste-skill-ignore: dated on purpose */
.cmp-old__h { font: 700 1.9em/1.1 "Comic Sans MS", "Trebuchet MS", sans-serif; color: #0033cc; margin-bottom: .45em; }
.cmp-old__img { height: 8.5em; margin-bottom: .6em; background: #c6ccd3; border: 1px solid #8a9099; display: grid; place-items: center; color: #5b6470; font: .95em Arial, sans-serif; }
.cmp-old__main > p:last-child { font-size: 1.05em; max-width: 34em; }
.cmp-old__foot { position: absolute; left: 0; right: 0; bottom: 0; background: #1d3a64; color: #c9d2dd; font: .85em Arial, sans-serif; text-align: center; padding: .5em; }

/* the same restaurant, redone */
.cmp-new { background: var(--cal); color: var(--tinta); font-family: var(--font-text); }
.cmp-new__nav { display: flex; align-items: center; gap: 1.6em; padding: 1.1em 1.8em; font-family: var(--font-display); font-size: 1.05em; }
.cmp-new__nav b { font-size: 1.35em; letter-spacing: -0.03em; margin-right: auto; }
.cmp-new__nav i, .cmp-new__btn { font-style: normal; background: var(--barro); color: #FBF4EC; border-radius: 99px; padding: .55em 1.15em; font-family: var(--font-display); font-weight: 500; }
.cmp-new__hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.8em; align-items: center; padding: .8em 1.8em 0; }
.cmp-new__h { font-family: var(--font-display); font-weight: 600; font-size: 3.4em; line-height: .98; letter-spacing: -0.045em; }
.cmp-new__p { font-size: 1.2em; margin: .8em 0 1.2em; max-width: 20em; }
.cmp-new__btn { display: inline-block; }
.cmp-new__pic { aspect-ratio: 1 / .92; border-radius: 999px 999px 1em 1em; background: var(--arena) var(--cmp-img, none) center / cover no-repeat; }
.cmp-new__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9em; padding: 1.3em 1.8em; }
.cmp-new__cards span { background: var(--arena); border-radius: .9em; padding: .8em 1em; display: flex; justify-content: space-between; gap: .6em; font-family: var(--font-display); font-size: 1.05em; }
.cmp-new__cards em { font-style: normal; color: var(--barro); font-weight: 600; }
.about__text .h2 { margin-bottom: 30px; }
.about__text p { max-width: 58ch; font-size: 1.15rem; }

/* ---------- faq ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px clamp(40px, 7vw, 120px); align-items: start; }
.faq__intro { position: sticky; top: calc(var(--nav-h) + 40px); }
.faq__intro .lead { margin-top: 22px; }
.qa { background: var(--cal); border-radius: var(--radius-md); margin-bottom: 10px; transition: background-color .3s; }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.015em; line-height: 1.25; border-radius: var(--radius-md); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { background: #fff8ef; }
.qa__icon { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--arena); position: relative; transition: transform .45s var(--ease-out), background-color .3s; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--tinta); border-radius: 2px; }
.qa__icon::after { transform: rotate(90deg); transition: transform .45s var(--ease-out); }
.qa[open] .qa__icon { background: var(--peach); }
.qa[open] .qa__icon::after { transform: rotate(0deg); }
.qa__a { padding: 0 24px 24px; max-width: 62ch; }
.qa__a p + p { margin-top: 10px; }

/* ---------- footer ---------- */
.footer { background: var(--cacao); color: var(--on-dark); padding: clamp(80px, 9vw, 140px) 0 36px; }
.footer__cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 28px; }
.footer__cta .h2 { max-width: 14ch; color: var(--on-dark); }
.footer__cols { margin-top: clamp(64px, 7vw, 110px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; color: var(--on-dark); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--on-dark-muted); text-decoration: none; }
.footer a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 4px; }
.footer address { font-style: normal; color: var(--on-dark-muted); display: grid; gap: 8px; }
.footer__word { margin-top: clamp(64px, 8vw, 120px); margin-left: -0.04em; font-family: var(--font-display); font-weight: 650; letter-spacing: -0.06em; line-height: .8; font-size: clamp(3.5rem, 23vw, 20.75rem); color: var(--cacao-2); user-select: none; white-space: nowrap; }
.footer__legal { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; color: var(--on-dark-muted); font-size: var(--fs-small); }
.footer__legal p { max-width: 70ch; }

/* ---------- dialog ---------- */
.dialog { width: min(720px, 100% - 24px); max-height: min(92svh, 920px); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--cal); color: var(--tinta); box-shadow: 0 40px 80px -30px rgba(46, 33, 27, .6); } /* taste-skill-ignore: dialog overlay */
.dialog::backdrop { background: rgba(46, 33, 27, .55); }
.dialog[open] { animation: dlg .45s var(--ease-out); }
@keyframes dlg { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.dialog__inner { padding: clamp(24px, 4vw, 44px); }
.dialog__head { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 26px; }
.dialog__head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.dialog__head p { margin-top: 10px; color: var(--muted); }
.dialog__close { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--arena); cursor: pointer; display: grid; place-items: center; }
.dialog__close svg { width: 18px; height: 18px; }

/* ---------- cursor glow (signature: a candle carried through the house) ---------- */
.glow { position: fixed; left: 0; top: 0; width: 380px; height: 380px; margin: -190px 0 0 -190px; border-radius: 50%; pointer-events: none; z-index: 1; background: radial-gradient(circle, rgba(232, 140, 98, .5) 0%, rgba(236, 156, 116, .26) 34%, rgba(242, 188, 158, 0) 68%); mix-blend-mode: multiply; opacity: 0; transition: opacity .6s var(--ease-out); will-change: transform; } /* taste-skill-ignore: cursor candle glow requested in the brief */
.glow.is-on { opacity: 1; }
.section--cacao .glow, .glow.on-dark { mix-blend-mode: screen; }

/* ---------- entrances ---------- */
.reveal > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in > * { opacity: 1; transform: none; }
.reveal.in > :nth-child(2) { transition-delay: .08s; }
.reveal.in > :nth-child(3) { transition-delay: .16s; }
.reveal.in > :nth-child(4) { transition-delay: .24s; }
.reveal.in.done > *, .reveal.in.done > :nth-child(n) { transition-delay: 0s; }
.no-js .reveal > * { opacity: 1; transform: none; }

body.paused *, body.paused *::before, body.paused *::after { animation-play-state: paused !important; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__menu { display: inline-flex; margin-left: auto; }
  .nav.menu-open .nav__links { display: grid; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--cal); padding: 12px var(--gutter) 24px; gap: 4px; box-shadow: 0 20px 30px -24px rgba(46, 33, 27, .5); } /* taste-skill-ignore: open menu overlay */
  .nav.menu-open .nav__links a { font-size: 1.2rem; padding: 10px 0; }
  .config__grid { grid-template-columns: minmax(0, 1fr); }
  .config__preview { position: relative; top: 0; order: -1; }
  .how__grid, .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .how__intro, .faq__intro { position: relative; top: 0; }
  .included__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .work-intro__grid, .cat__head, .config__head, .consult__grid, .others__grid, .about__grid, .included { grid-template-columns: minmax(0, 1fr); }
  .cat__head .lead, .cat--flip .cat__head .lead { justify-self: start; }
  .cat--flip .cat__head > :first-child { order: 0; text-align: left; }
  .rail { grid-auto-columns: 86vw; padding-top: 18px; }
  .demo__info { grid-template-columns: minmax(0, 1fr); padding-right: 0; }
  .demo__link { grid-row: auto; grid-column: auto; }
  .footer__cols { grid-template-columns: minmax(0, 1fr); }
  .door { max-width: 220px; margin-inline: auto; }
  .compare__stage { aspect-ratio: 16 / 11.5; }
  .pv__site { min-height: 0; }
  .pv__hero { height: 84px; }
  .pv__note { display: none; }
}
@media (max-width: 560px) {
  :root { --nav-h: 60px; }
  .nav__cta { display: none; }
  .field-row, .styles, .included__list { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: 64px minmax(0, 1fr); gap: 8px 18px; }
  .step__arch { width: 56px; }
  .catbar__list { padding-block: 12px; }
  .phone { width: 27%; border-radius: 22px; padding: 4px; }
  .phone__screen { border-radius: 18px; }
}
@media (pointer: coarse) {
  .btn, .pill, .chip span { min-height: 48px; }
}
@media (max-height: 560px) and (min-width: 721px) { .hero__cue { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .reveal > * { opacity: 1; transform: none; }
  .glow { display: none; }
  .demo__media, .browser, .phone { transform: none !important; }
  .hero__poster { animation: none; }
}
