:root {
  --ink: #0c0c0b;
  --graphite: #1d1d1f;
  --paper: #f6f6f4;
  --stone: #e9e8e4;
  --mute: #6e6e73;
  --mute-light: #a1a1a6;
  --accent: #b8925a;
  --line: rgba(0, 0, 0, .08);
  --line-light: rgba(255, 255, 255, .12);

  --display: "Inter Tight", "SF Pro Display", system-ui, sans-serif;
  --text: "Inter", "SF Pro Text", system-ui, sans-serif;

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --gutter: clamp(16px, 4vw, 56px);
  --space-section: clamp(56px, 7vw, 112px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font: 400 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol { margin: 0; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ── Type ─────────────────────────────────────────── */
.display {
  font: 600 clamp(44px, 7.4vw, 112px)/1.02 var(--display);
  letter-spacing: -.035em;
  color: #fff;
}
.display--sm { font-size: clamp(40px, 5.6vw, 80px); }
.title {
  font: 600 clamp(30px, 3.6vw, 52px)/1.08 var(--display);
  letter-spacing: -.028em;
  color: var(--ink);
}
.title--light { color: #f5f5f7; }
.body { color: var(--mute); max-width: 46ch; }
.body--light { color: var(--mute-light); }
.eyebrow {
  font: 500 13px/1 var(--text);
  letter-spacing: .02em;
  color: var(--mute);
  margin-bottom: 18px;
}
.eyebrow--light { color: rgba(255, 255, 255, .86); }
.accent { color: var(--accent); }

.link {
  display: inline-flex; gap: 8px; align-items: center;
  font: 500 15px/1 var(--text);
  text-decoration: none;
  color: var(--ink);
  padding-block: 6px;
  border-bottom: 1px solid currentColor;
}
.link span { transition: transform .3s var(--ease); }
.link:hover span { transform: translateX(4px); }
.link--light { color: #f5f5f7; border-color: var(--line-light); }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px;
  font: 500 15px/1 var(--text);
  text-decoration: none;
  white-space: nowrap;
  gap: 10px;
  transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 38px; padding: 0 18px; font-size: 14px; }
.btn--accent { background: #f5f5f7; color: var(--ink); }
.btn--accent:hover { background: #fff; }
.btn--glass {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid var(--line-light);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.btn--glass:hover { background: rgba(255, 255, 255, .18); }

/* ── Nav ──────────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .35s var(--ease), border-color .35s var(--ease); border-bottom: 1px solid transparent; }
.nav__inner { display: flex; align-items: center; gap: 32px; height: 68px; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.nav__logo { position: relative; display: block; width: 130px; flex: none; }
.nav__logo img { width: 130px; height: auto; transition: opacity .35s var(--ease); }
.nav__logo .logo-dark { position: absolute; inset: 0; opacity: 0; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { color: rgba(255, 255, 255, .82); text-decoration: none; font-size: 14px; transition: color .2s; }
.nav__links a:hover { color: #fff; }
.nav__toggle { display: none; }

.nav.is-solid {
  background: rgba(246, 246, 244, .78);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-color: var(--line);
}
.nav.is-solid .logo-light { opacity: 0; }
.nav.is-solid .logo-dark { opacity: 1; }
.nav.is-solid .nav__links a { color: var(--mute); }
.nav.is-solid .nav__links a:hover { color: var(--ink); }
.nav.is-solid .nav__cta { background: var(--ink); color: #fff; border-color: transparent; }

.menu { display: none; }

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle {
    display: grid; place-items: center;
    margin-left: auto; width: 44px; height: 44px;
    border: 0; background: none; cursor: pointer; color: #fff;
  }
  .nav.is-solid .nav__toggle, .nav.is-open .nav__toggle { color: var(--ink); }
  .nav__bars, .nav__bars::before, .nav__bars::after {
    display: block; width: 20px; height: 1.5px; background: currentColor; border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s;
  }
  .nav__bars { position: relative; }
  .nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
  .nav__bars::before { top: -6px; }
  .nav__bars::after { top: 6px; }
  .nav.is-open .nav__bars { background: transparent; }
  .nav.is-open .nav__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav.is-open .nav__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .nav.is-open { background: var(--paper); border-color: var(--line); }
  .nav.is-open .logo-light { opacity: 0; }
  .nav.is-open .logo-dark { opacity: 1; }
  .menu:not([hidden]) {
    display: flex; flex-direction: column; gap: 4px;
    padding: 8px var(--gutter) 28px;
    background: var(--paper);
    height: calc(100dvh - 68px);
  }
  .menu a:not(.btn) {
    font: 600 32px/1.3 var(--display); letter-spacing: -.02em;
    color: var(--ink); text-decoration: none; padding-block: 6px;
    border-bottom: 1px solid var(--line);
  }
  .menu .btn { margin-top: auto; background: var(--ink); color: #fff; }
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  padding-top: 96px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--ink);
  overflow: hidden;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; scale: 1.06; animation: settle 2.4s var(--ease) forwards; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 12, 11, .5) 0%, rgba(12, 12, 11, 0) 22%),
    linear-gradient(90deg, rgba(12, 12, 11, .74) 0%, rgba(12, 12, 11, .52) 40%, rgba(12, 12, 11, .14) 70%, rgba(12, 12, 11, 0) 100%),
    linear-gradient(0deg, rgba(12, 12, 11, .85) 0%, rgba(12, 12, 11, .45) 35%, rgba(12, 12, 11, 0) 65%);
}
.hero__content { text-shadow: 0 1px 24px rgba(12, 12, 11, .35); }
@media (max-width: 860px) {
  .hero:not(.hero--page) .hero__shade {
    background: linear-gradient(180deg, rgba(12, 12, 11, .55) 0%, rgba(12, 12, 11, .52) 30%, rgba(12, 12, 11, .8) 55%, rgba(12, 12, 11, .9) 100%);
  }
}
.hero__content { padding-bottom: clamp(40px, 7vh, 88px); }
.hero__content .display { max-width: 12ch; }
.hero__lead { color: rgba(255, 255, 255, .78); max-width: 44ch; margin-top: 24px; font-size: clamp(17px, 1.4vw, 19px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__meta {
  display: flex; gap: 28px; justify-content: flex-end;
  padding-bottom: 28px; margin-top: -8px;
  color: rgba(255, 255, 255, .5); font-size: 13px;
  border-top: 1px solid var(--line-light); padding-top: 18px;
}
@keyframes settle { to { scale: 1; } }

.hero__content > * { animation: rise .9s var(--ease) both; }
.hero__content > :nth-child(2) { animation-delay: .08s; }
.hero__content > :nth-child(3) { animation-delay: .16s; }
.hero__content > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

@media (max-width: 640px) {
  .hero__meta { display: none; }
  .hero__content { padding-bottom: 96px; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ── Section rhythm ──────────────────────────────── */
.band { padding-block: var(--space-section); }
.band + .band { padding-top: 0; }

/* ── Services ─────────────────────────────────────── */
.services {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: end;
}
.service__media { display: block; overflow: hidden; border-radius: var(--r-lg); background: var(--stone); }
.service__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s var(--ease); }
.service--side .service__media img { aspect-ratio: 4 / 5; }
.service:hover .service__media img { transform: scale(1.03); }
.service__body { padding-top: 28px; display: grid; gap: 16px; justify-items: start; }
.service--main .service__body { grid-template-columns: 1fr 1fr; column-gap: 40px; align-items: start; }
.service--main .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.service--main .title { grid-row: span 2; }
.service--side .title { font-size: clamp(24px, 2.2vw, 32px); }

@media (max-width: 960px) {
  .services { grid-template-columns: 1fr; gap: 64px; }
  .service--main .service__body { grid-template-columns: 1fr; }
  .service--main .title { grid-row: auto; }
  .service--side .service__media img { aspect-ratio: 4 / 3; }
}

/* ── Materials ────────────────────────────────────── */
.materials {
  background: var(--ink);
  color: #f5f5f7;
  padding-block: var(--space-section);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.materials__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.materials__head .body { justify-self: end; }
.slabs { display: flex; gap: 12px; height: clamp(360px, 46vw, 560px); }
.slab {
  position: relative; flex: 1; min-width: 0;
  padding: 0; border: 1px solid var(--line-light); border-radius: var(--r-md);
  overflow: hidden; cursor: pointer; background: #1a1a19;
  transition: flex-grow .7s var(--ease);
}
.slab.is-open { flex-grow: 4; }
.slab img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .7s var(--ease); filter: saturate(.85) brightness(.8); }
.slab.is-open img { filter: none; }
.slab__name {
  position: absolute; left: 20px; bottom: 18px;
  font: 500 14px/1 var(--text); color: #fff;
  padding: 10px 14px; border-radius: 999px;
  background: rgba(12, 12, 11, .35);
  border: 1px solid var(--line-light);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  white-space: nowrap;
  opacity: 0; transform: translateY(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.slab.is-open .slab__name { opacity: 1; transform: none; }
.materials__links { display: flex; gap: 32px; margin-top: 40px; }

@media (max-width: 860px) {
  .materials__head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 36px; }
  .materials__head .body { justify-self: start; }
  .slabs { flex-direction: column; height: 620px; }
  .slab.is-open { flex-grow: 5; }
}

/* ── Process ──────────────────────────────────────── */
.process__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; }
.steps--six { grid-template-columns: repeat(3, 1fr); row-gap: 48px; column-gap: 40px; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { padding-top: 20px; border-top: 1px solid var(--line); }
.step__n { font: 500 13px/1 var(--text); color: var(--mute); }
.step h3 { font: 600 24px/1.2 var(--display); letter-spacing: -.02em; color: var(--ink); margin: 28px 0 10px; }
.step p { color: var(--mute); font-size: 15px; }
.timeline { position: relative; margin-top: 48px; height: 32px; }
.timeline__bar {
  position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: linear-gradient(90deg, var(--line) 0%, var(--accent) 100%);
  transform-origin: left;
  transition: transform 1.6s var(--ease);
}
.js .timeline__bar { transform: scaleX(0); }
.js .timeline.is-in .timeline__bar { transform: scaleX(1); }
.timeline__label {
  position: absolute; right: 0; top: 50%; translate: 0 -50%;
  padding-left: 16px; background: var(--paper);
  font: 600 22px/1 var(--display); letter-spacing: -.02em; color: var(--accent);
}

@media (max-width: 860px) {
  .steps, .steps--six { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .process__head { flex-direction: column; align-items: start; }
}
@media (max-width: 520px) {
  .steps, .steps--six { grid-template-columns: 1fr; gap: 28px; }
  .step h3 { margin-top: 14px; }
}

/* ── Work ─────────────────────────────────────────── */
.work__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(180px, 19vw, 280px);
  grid-auto-flow: dense;
  gap: 12px;
}
.tile { padding: 0; border: 0; border-radius: var(--r-md); overflow: hidden; cursor: zoom-in; background: var(--stone); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.t-wide { grid-column: span 2; }
.t-tall { grid-row: span 2; }

@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; }
}

/* ── Contact ──────────────────────────────────────── */
.contact { background: var(--ink); color: #f5f5f7; padding-block: var(--space-section); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.contact__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: end; }
.contact .body { margin-top: 24px; }
.info { display: grid; gap: 0; }
.info > div { padding-block: 20px; border-top: 1px solid var(--line-light); }
.info dt { font-size: 13px; color: var(--mute-light); margin-bottom: 6px; }
.info dd { font-size: 17px; }
.info a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.info a:hover { border-color: currentColor; }

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .contact .btn { white-space: normal; text-align: center; }
}

/* ── Footer ───────────────────────────────────────── */
.footer { background: var(--ink); color: var(--mute-light); font-size: 14px; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding-block: 56px 48px; border-top: 1px solid var(--line-light);
}
.footer__brand p { margin-top: 16px; max-width: 30ch; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h2 { font: 500 13px/1 var(--text); color: #f5f5f7; margin: 0 0 8px; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px 40px; border-top: 1px solid var(--line-light); }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-light); color: #f5f5f7;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.footer__social a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); transform: translateY(-2px); }
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: start; padding-bottom: 96px; }
}

/* ── Interior pages ───────────────────────────────── */
.nav__links a[aria-current="page"] { color: #fff; }
.nav.is-solid .nav__links a[aria-current="page"] { color: var(--ink); }
.menu a[aria-current="page"] { color: var(--accent); }

.hero--page { min-height: min(78svh, 760px); }
.hero--plain { min-height: min(62svh, 560px); }
.hero--page .hero__shade {
  background:
    linear-gradient(180deg, rgba(12, 12, 11, .55) 0%, rgba(12, 12, 11, 0) 24%),
    linear-gradient(90deg, rgba(12, 12, 11, .82) 0%, rgba(12, 12, 11, .62) 38%, rgba(12, 12, 11, .2) 68%, rgba(12, 12, 11, 0) 100%),
    linear-gradient(0deg, rgba(12, 12, 11, .7) 0%, rgba(12, 12, 11, 0) 55%);
}
@media (max-width: 860px) {
  .hero--page .hero__shade {
    background:
      linear-gradient(180deg, rgba(12, 12, 11, .62) 0%, rgba(12, 12, 11, .6) 20%, rgba(12, 12, 11, .8) 45%, rgba(12, 12, 11, .92) 100%);
  }
}
.hero--plain .hero__shade { background: radial-gradient(120% 90% at 85% 0%, rgba(184, 146, 90, .16), rgba(12, 12, 11, 0) 60%); }
.display--page { font-size: clamp(44px, 6.4vw, 96px); }
.hero--page .hero__content .display { max-width: 14ch; }

.section-head { margin-bottom: 48px; }
.section-head--split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.section-head--split .body { justify-self: end; }
@media (max-width: 860px) {
  .section-head--split { grid-template-columns: 1fr; gap: 16px; }
  .section-head--split .body { justify-self: start; }
}

/* contact hero: generative stone slab */
.hero--slab {
  background:
    radial-gradient(60% 80% at 80% 30%, rgba(184, 146, 90, .18), transparent 60%),
    radial-gradient(50% 60% at 20% 90%, rgba(184, 146, 90, .08), transparent 60%),
    #0c0c0b;
}
.slab { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; opacity: 0; transition: opacity 1.2s var(--ease); }
.slab.is-ready { opacity: 1; }
.hero--slab .hero__shade {
  background:
    linear-gradient(90deg, rgba(12, 12, 11, .78) 0%, rgba(12, 12, 11, .5) 42%, rgba(12, 12, 11, .06) 78%),
    linear-gradient(0deg, rgba(12, 12, 11, .55) 0%, rgba(12, 12, 11, 0) 45%);
}
.quick { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.quick__item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 22px 12px 12px; border-radius: 20px;
  color: #fff; text-decoration: none;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line-light);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.quick__item:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .24); transform: translateY(-2px); }
.quick__ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: rgba(255, 255, 255, .1); }
.quick__item:first-child .quick__ico { background: var(--accent); color: var(--ink); }
.quick__txt { display: grid; gap: 2px; }
.quick__txt strong { font: 500 15px/1.2 var(--text); }
.quick__txt span { font-size: 13px; color: rgba(255, 255, 255, .72); }
.icon--line { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) {
  .hero--slab .hero__shade {
    background: linear-gradient(180deg, rgba(12, 12, 11, .5) 0%, rgba(12, 12, 11, .35) 30%, rgba(12, 12, 11, .78) 60%, rgba(12, 12, 11, .9) 100%);
  }
  .quick { flex-direction: column; }
  .quick__item { width: 100%; }
}

/* duo: Silestone / Dekton */
.duo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.duo__card { display: grid; gap: 20px; justify-items: start; text-decoration: none; color: inherit; }
.duo__media { display: block; width: 100%; overflow: hidden; border-radius: var(--r-lg); background: var(--stone); }
.duo__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s var(--ease); }
.duo__card:hover .duo__media img { transform: scale(1.03); }
.duo__text { display: grid; gap: 6px; }
.duo__text strong { font: 600 clamp(26px, 2.4vw, 34px)/1.1 var(--display); letter-spacing: -.025em; color: var(--ink); }
.duo__text span { color: var(--mute); max-width: 40ch; }
@media (max-width: 760px) { .duo__grid { grid-template-columns: 1fr; gap: 56px; } }

/* anatomy explorer: part list + isometric diagram stage */
.explorer { display: grid; grid-template-columns: minmax(280px, 1fr) 1.45fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.explorer__list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.explorer__list li { border-top: 1px solid var(--line); }
.explorer__item {
  display: flex; align-items: baseline; gap: 16px; width: 100%;
  padding: 20px 0; border: 0; background: none; cursor: pointer; text-align: left;
  font: 600 clamp(20px, 1.7vw, 24px)/1.2 var(--display); letter-spacing: -.02em; color: var(--mute);
  transition: color .3s var(--ease);
}
.explorer__item:hover, .explorer__item.is-active { color: var(--ink); }
.explorer__n { font: 500 13px/1 var(--text); letter-spacing: 0; color: var(--mute); transition: color .3s var(--ease); }
.explorer__item.is-active .explorer__n { color: var(--accent); }
.explorer__text { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .45s var(--ease); }
.explorer__text > div { overflow: hidden; }
.explorer__text p { color: var(--mute); font-size: 15px; max-width: 46ch; padding: 0 0 22px 33px; }
.js .explorer__item:not(.is-active) + .explorer__text { grid-template-rows: 0fr; }

.explorer__stage {
  position: sticky; top: 96px;
  aspect-ratio: 5 / 4;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 30% 10%, #ffffff 0%, #f1f0ec 100%);
  overflow: hidden;
}
.explorer__fig {
  position: absolute; inset: 0; margin: 0;
  display: grid; place-items: center; padding: clamp(16px, 4%, 40px);
  opacity: 0; transform: scale(.98);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.explorer__fig.is-active { opacity: 1; transform: none; }
.explorer__fig .dg { width: 100%; height: 100%; }

@media (max-width: 860px) {
  .explorer { grid-template-columns: 1fr; gap: 24px; }
  .explorer__stage { position: relative; top: 0; order: -1; aspect-ratio: 4 / 3; }
}

/* isometric diagram tokens */
.dg polygon { stroke: rgba(12, 12, 11, .5); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.dg .n-top { fill: #faf9f6; } .dg .n-r { fill: #e8e6e0; } .dg .n-l { fill: #d9d6cf; }
.dg .s-top { fill: #ffffff; } .dg .s-r { fill: #f1efea; } .dg .s-l { fill: #e3e0d9; }
.dg .h-top { fill: #ead5ab; } .dg .h-r { fill: #caa56b; } .dg .h-l { fill: #b8925a; }
.dg .w-top, .dg .w-r, .dg .w-l { fill: #efeee9; stroke: rgba(12, 12, 11, .12); }
.dg .hole { fill: #2b2a27; stroke: none; }
.dg .hl-line { fill: none; stroke: var(--accent); stroke-width: 2; }
.dg line { vector-effect: non-scaling-stroke; }
.dg .detail { stroke: rgba(12, 12, 11, .28); stroke-width: 1; }
.dg .guide { stroke: rgba(12, 12, 11, .4); stroke-width: 1; stroke-dasharray: 3 4; }
.dg-label line { stroke: var(--accent); stroke-width: 1; }
.dg-label circle { fill: var(--accent); }
.dg-label text { font: 500 13px var(--text); fill: var(--ink); }
.dg-label--mute line { stroke: var(--mute-light); }
.dg-label--mute circle { fill: var(--mute-light); }
.dg-label--mute text { fill: var(--mute); }

/* facts list (Silestone / Dekton) */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 6vw, 96px); margin: 0; }
.fact { display: grid; grid-template-columns: minmax(180px, 1fr) 1.4fr; gap: 24px; padding-block: 24px; border-top: 1px solid var(--line); }
.fact dt { font: 600 20px/1.25 var(--display); letter-spacing: -.015em; color: var(--ink); display: flex; gap: 14px; align-items: baseline; }
.fact__n { font: 500 13px/1 var(--text); color: var(--mute); letter-spacing: 0; }
.fact dd { color: var(--mute); font-size: 15px; margin: 0; }
@media (max-width: 960px) { .facts { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .fact { grid-template-columns: 1fr; gap: 8px; } }

/* CTA band */
.cta { background: var(--ink); color: #f5f5f7; padding-block: var(--space-section); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.cta__inner { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; }
.cta .body { margin-top: 16px; }
.cta .hero__actions { margin-top: 0; }

/* amoblamientos groups */
.groups { display: grid; }
.group { display: grid; grid-template-columns: minmax(220px, 1fr) 2.6fr; gap: 40px; padding-block: 40px; border-top: 1px solid var(--line); }
.group__head h3 { font: 600 28px/1.1 var(--display); letter-spacing: -.02em; color: var(--ink); margin: 14px 0 10px; }
.group__head p { color: var(--mute); font-size: 15px; }
.group__head .group__brands { margin-top: 14px; color: var(--ink); font-weight: 500; }
.group__items { display: grid; gap: 12px; }
.group__items--swatch { grid-template-columns: repeat(5, 1fr); }
.group__items--product { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.swatch, .product { margin: 0; }
.swatch img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.swatch figcaption { font-size: 12px; color: var(--mute); margin-top: 8px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; }
.product img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
@media (max-width: 860px) {
  .group { grid-template-columns: 1fr; gap: 24px; }
  .group__items--swatch, .group__items--product { grid-template-columns: repeat(3, 1fr); }
}

/* trabajos: filters + grid */
.work--page { padding-top: clamp(48px, 6vw, 72px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--graphite);
  font: 500 14px/1 var(--text); cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.chip span { color: var(--mute); font-size: 12px; }
.chip:hover { border-color: rgba(0, 0, 0, .2); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.is-active span { color: var(--mute-light); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.grid .tile { aspect-ratio: 4 / 3; }
.grid .tile[hidden] { display: none; }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr 1fr; gap: 8px; } }

/* contacto */
.contact-page { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.form { display: grid; gap: 20px; }
.form .title { margin-bottom: 8px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: 13px; color: var(--mute); padding: 0; }
.field input, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--text); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 14px 16px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(12, 12, 11, .06); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choices span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; }
.choices input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.choices input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form__error { color: #b3261e; font-size: 14px; }
.form__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form__note { font-size: 13px; color: var(--mute); }
.btn--dark { background: var(--ink); color: #fff; border: 0; cursor: pointer; }
.btn--dark:hover { background: #2a2a28; }
.contact-info { display: grid; gap: 24px; }
.info--dark > div { border-color: var(--line); }
.info--dark dt { color: var(--mute); }
.info--dark dd { color: var(--ink); }
.cotiza-card {
  display: grid; gap: 6px; padding: 28px; border-radius: var(--r-lg);
  background: var(--ink); color: #f5f5f7; text-decoration: none;
}
.cotiza-card .eyebrow { color: var(--mute-light); margin-bottom: 4px; }
.cotiza-card strong { font: 600 26px/1.15 var(--display); letter-spacing: -.02em; }
.cotiza-card .link { color: #f5f5f7; border-color: var(--line-light); justify-self: start; margin-top: 12px; }
@media (max-width: 860px) { .contact-page { grid-template-columns: 1fr; } }

/* ── Cotizador de amoblamientos ──────────────────── */
.hero--cot { min-height: min(46svh, 400px); }

.cotizador { padding-block: clamp(40px, 6vw, 72px) 0; }
.cotizador .wrap { max-width: 920px; }

/* progress */
.cz-progress {
  list-style: none; margin: 0 0 clamp(32px, 5vw, 56px); padding: 0;
  display: flex; gap: 8px; counter-reset: s;
}
.cz-progress__item { flex: 1; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; min-width: 0; }
.cz-progress__item::before { content: ""; height: 3px; width: 100%; border-radius: 3px; background: var(--line); transition: background-color .4s var(--ease); }
.cz-progress__item.is-current::before, .cz-progress__item.is-done::before { background: var(--accent); }
.cz-progress__n {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  font: 500 12px/1 var(--text); color: var(--mute);
  border: 1px solid var(--line);
}
.cz-progress__item.is-current .cz-progress__n { background: var(--ink); color: #fff; border-color: var(--ink); }
.cz-progress__item.is-done .cz-progress__n { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.cz-progress__item[role="button"] { cursor: pointer; }
.cz-progress__label { font: 500 13px/1 var(--text); color: var(--mute); }
.cz-progress__item.is-current .cz-progress__label { color: var(--ink); }
@media (max-width: 620px) {
  .cz-progress__label { display: none; }
  .cz-progress__item.is-current .cz-progress__label { display: block; position: absolute; }
}

.cz-legend { font: 600 clamp(22px, 3vw, 30px)/1.15 var(--display); letter-spacing: -.02em; color: var(--ink); margin: 0 0 24px; }

/* option cards */
.cz-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.cz-cards--compact { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.cz-card {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start; text-align: left;
  padding: 18px; border-radius: var(--r-md); cursor: pointer;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.cz-card:hover { border-color: rgba(0, 0, 0, .22); }
.cz-card.is-selected { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.cz-card.is-selected::after { content: "✓"; position: absolute; top: 12px; right: 14px; color: var(--accent); font-size: 14px; }
.cz-card { position: relative; }
.cz-card__name { font: 600 17px/1.2 var(--display); letter-spacing: -.01em; }
.cz-card__desc { font-size: 13px; color: var(--mute); }

/* toggle */
.cz-toggle { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; margin-bottom: 20px; }
.cz-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.cz-toggle__track { position: relative; width: 46px; height: 26px; border-radius: 999px; background: var(--stone); border: 1px solid var(--line); transition: background-color .25s var(--ease); flex: none; }
.cz-toggle__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.cz-toggle input:checked + .cz-toggle__track { background: var(--ink); border-color: var(--ink); }
.cz-toggle input:checked + .cz-toggle__track::after { transform: translateX(20px); }
.cz-toggle input:focus-visible + .cz-toggle__track { outline: 2px solid var(--accent); outline-offset: 2px; }
.cz-toggle__label { font: 500 15px/1.3 var(--text); color: var(--ink); }

.cz-sub { margin-top: 8px; }
.cz-sub__title { font: 500 13px/1 var(--text); color: var(--mute); margin: 20px 0 10px; }

/* resumen */
.cz-resumen { margin: 0; display: grid; gap: 0; }
.cz-resumen > div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.cz-resumen dt { color: var(--mute); font-size: 14px; margin: 0; }
.cz-resumen dd { margin: 0; font-weight: 500; text-align: right; color: var(--ink); }
.cz-resumen__total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 24px 0 8px; border-top: 2px solid var(--ink); margin-top: 4px; }
.cz-resumen__total span { color: var(--mute); font-size: 14px; }
.cz-resumen__total strong { font: 600 clamp(28px, 4vw, 40px)/1 var(--display); letter-spacing: -.02em; color: var(--ink); }
.cz-note { font-size: 13px; color: var(--mute); margin: 8px 0 24px; }
.cz-wa { gap: 10px; }
.cz-wa svg { flex: none; }

/* sticky action bar */
.cz-bar {
  position: sticky; bottom: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 32px calc(var(--gutter) * -1) 0; padding: 16px var(--gutter);
  background: rgba(246, 246, 244, .85);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
}
body:has(.cotizador) .wa { display: none; }
.cz-bar__total { display: grid; gap: 2px; }
.cz-bar__total span { font-size: 12px; color: var(--mute); }
.cz-bar__total strong { font: 600 22px/1 var(--display); letter-spacing: -.02em; color: var(--ink); }
.cz-bar__nav { display: flex; gap: 10px; }
.cz-prev { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.cz-prev:hover { background: rgba(0, 0, 0, .04); }
.cz-prev:disabled { opacity: .4; cursor: not-allowed; }
.cz-next:disabled { opacity: .4; cursor: not-allowed; }
@media (max-width: 480px) {
  .cz-bar { gap: 12px; }
  .cz-bar__nav { flex: 1; justify-content: flex-end; }
}

/* ── Cotizador: pestañas mesadas/amoblamientos ───── */
.cz-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--stone); border: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 44px); }
.cz-tab { padding: 9px 18px; border-radius: 999px; font: 500 14px/1 var(--text); color: var(--mute); text-decoration: none; transition: background-color .2s var(--ease), color .2s var(--ease); }
.cz-tab:hover { color: var(--ink); }
.cz-tab.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* swatch cards (material) */
.cz-card--swatch { padding: 0; overflow: hidden; }
.cz-card--swatch .cz-card__swatch { display: block; width: 100%; aspect-ratio: 16/9; background-size: cover; background-position: center; }
.cz-card--swatch .cz-card__name { padding: 12px 16px 2px; }
.cz-card--swatch .cz-card__desc { padding: 0 16px 14px; }
.cz-card--swatch.is-selected::after { top: 10px; right: 12px; background: rgba(255,255,255,.9); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; }

/* medidas + 3D */
.cz-panel--3d { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.cz-medidas { display: grid; gap: 18px; }
.cz-medida { display: grid; grid-template-columns: auto 1fr 1fr; gap: 12px; align-items: center; }
.cz-medida__lbl { font: 600 15px/1 var(--display); color: var(--ink); }
.cz-num { position: relative; display: grid; gap: 6px; }
.cz-num > span { font-size: 12px; color: var(--mute); }
.cz-num input { width: 100%; font: 400 16px/1.2 var(--text); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 36px 12px 14px; }
.cz-num input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(12,12,11,.06); }
.cz-num__unit { position: absolute; right: 12px; bottom: 13px; font-size: 13px; color: var(--mute-light); pointer-events: none; }
.cz-term { margin-top: 8px; display: grid; gap: 12px; }
.cz-term .cz-toggle { margin-bottom: 0; }

.cz3d { position: sticky; top: 92px; aspect-ratio: 4/3; border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(120% 90% at 30% 10%, #ffffff 0%, #ebe9e4 100%); border: 1px solid var(--line); }
.cz3d canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.cz3d canvas:active { cursor: grabbing; }
.cz3d__hint { position: absolute; left: 14px; bottom: 12px; margin: 0; font-size: 12px; color: var(--mute); background: rgba(255,255,255,.7); padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(6px); pointer-events: none; }
.cz3d--off { display: grid; place-items: center; aspect-ratio: 4/3; }
.cz3d--off .cz3d__hint { position: static; background: none; }

@media (max-width: 760px) {
  .cz-panel--3d { grid-template-columns: 1fr; }
  .cz3d { order: -1; position: relative; top: 0; aspect-ratio: 16/11; }
  .cz-medida { grid-template-columns: 1fr; gap: 8px; }
  .cz-medida__lbl { margin-top: 6px; }
}

/* ── Cotizador: vista previa y selección ─────────── */
.cz-bar__sel { display: grid; gap: 2px; min-width: 0; }
.cz-bar__sel span { font-size: 12px; color: var(--mute); }
.cz-bar__sel strong { font: 600 16px/1.2 var(--display); letter-spacing: -.01em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 48vw; }

.cz-preview { margin: 0 0 22px; border-radius: var(--r-md); overflow: hidden; background: var(--stone); position: relative; aspect-ratio: 16/9; }
.cz-preview img { width: 100%; height: 100%; object-fit: cover; display: block; animation: cz-fade .4s var(--ease); }
.cz-preview figcaption { position: absolute; left: 14px; bottom: 12px; color: #fff; font: 500 15px/1 var(--text); padding: 7px 14px; border-radius: 999px; background: rgba(12, 12, 11, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cz-preview--empty { display: grid; place-items: center; aspect-ratio: 16/6; }
.cz-preview--empty p { color: var(--mute); font-size: 14px; margin: 0; }
@keyframes cz-fade { from { opacity: 0; } }

.cz-card--photo { padding: 0; overflow: hidden; }
.cz-card--photo .cz-card__photo { display: block; width: 100%; aspect-ratio: 16/10; background-size: cover; background-position: center; }
.cz-card--photo .cz-card__name { padding: 12px 16px 2px; }
.cz-card--photo .cz-card__desc { padding: 0 16px 14px; }
.cz-card--photo.is-selected::after { top: 10px; right: 12px; background: rgba(255, 255, 255, .92); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; }
.cz-panel--resumen .cz-preview { max-width: 520px; }

/* ── Icons ───────────────────────────────────────── */
.icon { flex: none; fill: currentColor; }
.with-icon { display: inline-flex; align-items: center; gap: 8px; }

/* ── Floating WhatsApp ────────────────────────────── */
.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  color: #fff; background: rgba(12, 12, 11, .72);
  border: 1px solid var(--line-light);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(12, 12, 11, .18);
  transition: transform .3s var(--ease);
}
.wa:hover { transform: scale(1.06); }

/* ── Lightbox ─────────────────────────────────────── */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(12, 12, 11, .94);
  backdrop-filter: blur(10px);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: min(92vw, 1600px); max-height: 84dvh; border-radius: var(--r-sm); object-fit: contain; }
.lightbox button {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-light); background: rgba(255, 255, 255, .08);
  color: #fff; font: 400 20px/1 var(--text); cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, .16); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 20px; top: 50%; translate: 0 -50%; }
@media (max-width: 640px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 24px; translate: none; }
}

/* ── Scroll choreography ──────────────────────────────
   Scroll-driven animations as progressive enhancement: browsers without
   animation-timeline keep the static layout and the IntersectionObserver reveals. */
@property --days { syntax: "<integer>"; inherits: false; initial-value: 20; }

.service__media, .duo__media { --r: var(--r-lg); }
.tile { --r: var(--r-md); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* hero: the photo drifts slower than the page, the copy lifts away */
    .hero__img {
      animation: settle 2.4s var(--ease) forwards, hero-drift linear both;
      animation-timeline: auto, scroll(root);
      animation-range: normal, 0 100svh;
    }
    .hero__content, .hero__meta {
      animation: hero-out linear both;
      animation-timeline: scroll(root);
      animation-range: 0 70svh;
    }

    /* photos open like a curtain while the image settles */
    .service__media, .duo__media, .gallery .tile, .grid .tile {
      animation: curtain linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }
    .service__media img, .duo__media img, .gallery .tile img, .grid .tile img {
      animation: settle-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 50%;
    }
    .js .service.reveal, .js .duo__card.reveal { opacity: 1; transform: none; }

    /* dark bands widen from an inset card to full bleed */
    .materials, .contact, .cta {
      animation: band-open linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }

    /* process: each step lights up as it passes the middle of the screen */
    .step {
      view-timeline: --step;
      animation: step-line linear both;
      animation-timeline: --step;
      animation-range: cover 25% cover 40%;
    }
    .step .step__n {
      animation: step-number linear both;
      animation-timeline: --step;
      animation-range: cover 25% cover 40%;
    }

    /* the timeline fills with the scroll and counts the days up to 20 */
    .timeline { view-timeline: --tl; }
    .timeline__bar, .js .timeline__bar, .js .timeline.is-in .timeline__bar {
      transition: none;
      animation: fill linear both;
      animation-timeline: --tl;
      animation-range: entry 0% cover 50%;
    }
    .timeline__count {
      counter-reset: days var(--days);
      font-size: 0;
      animation: count-days linear both;
      animation-timeline: --tl;
      animation-range: entry 0% cover 50%;
    }
    .timeline__count::after {
      content: counter(days);
      display: inline-block; min-width: 2ch; text-align: right;
      font-size: 22px; font-variant-numeric: tabular-nums;
    }
  }
}

@keyframes hero-drift { to { translate: 0 18%; } }
@keyframes hero-out { to { opacity: 0; translate: 0 -6vh; } }
@keyframes curtain {
  from { clip-path: inset(22% 0 0 0 round var(--r)); }
  to { clip-path: inset(0 round var(--r)); }
}
@keyframes settle-in { from { scale: 1.18; } to { scale: 1; } }
@keyframes band-open {
  from { clip-path: inset(0 4vw round var(--r-lg)); }
  to { clip-path: inset(0 0 round var(--r-lg) var(--r-lg) 0 0); }
}
@keyframes step-line { from { border-top-color: var(--line); } to { border-top-color: var(--ink); } }
@keyframes step-number { from { color: var(--mute); } to { color: var(--accent); } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes count-days { from { --days: 0; } to { --days: 20; } }

/* ── Page transitions (cross-document View Transitions) ── */
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
.wa { view-transition-name: wa-button; }
::view-transition-old(root) { animation: vt-out .26s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; scale: .985; } }
@keyframes vt-in { from { opacity: 0; translate: 0 16px; } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* ── Reveal ───────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.steps .reveal:nth-child(2) { transition-delay: .08s; }
.steps .reveal:nth-child(3) { transition-delay: .16s; }
.steps .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__img { scale: 1; }
  .js .timeline__bar { transform: none; }
}
