/* ============================================================
   Vashti Group — site design (2026 redesign)
   One system: tokens, layout, components, pages, motion.
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --bg: #f4f3ef;
  --surface: #ffffff;
  --surface-2: #ebeae5;
  --ink: #131313;
  --ink-2: #2a2a2a;
  --muted: #5d5d58;
  --line: rgba(19, 19, 19, 0.1);
  --line-strong: rgba(19, 19, 19, 0.22);
  --dark: #111112;
  --dark-2: #1c1c1e;
  --on-dark: #f4f3ef;
  --on-dark-muted: rgba(244, 243, 239, 0.66);
  --red: #e3243b;
  --red-ink: #c01a2f;
  --red-soft: #fbe3e6;
  --sun: #ff8a3d;

  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.05), 0 8px 24px -16px rgba(0, 0, 0, 0.3);
  --shadow-2: 0 1px 2px rgba(0, 0, 0, 0.06), 0 24px 48px -28px rgba(0, 0, 0, 0.45);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-enter: cubic-bezier(0.22, 1, 0.36, 1);
  --t-in: 160ms;
  --t-out: 130ms;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--red); color: #fff; }

.skip-link {
  position: fixed; left: 1rem; top: -100px; z-index: 300;
  padding: 0.8rem 1.1rem; border-radius: 999px;
  background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--dark); color: var(--on-dark); }

.kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-head); font-size: 0.92rem; font-weight: 600;
  letter-spacing: 0; color: var(--red-ink);
}
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.section--dark .kicker { color: #ff6b7c; }
.kicker--light { color: #fff; }
.kicker--light::before { background: var(--red); box-shadow: 0 0 0 4px rgba(227, 36, 59, 0.3); }

.display { font-size: clamp(2.6rem, 7.4vw, 6.4rem); line-height: 0.98; letter-spacing: -0.045em; font-weight: 600; }
.h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); letter-spacing: -0.04em; }
.h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); letter-spacing: -0.02em; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--muted); max-width: 40rem; }
.section--dark .lead { color: var(--on-dark-muted); }
.muted { color: var(--muted); }
.red { color: var(--red); }

.head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); max-width: 48rem; }
.head--split {
  max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end; gap: 1.2rem 3rem;
}
.head--split .lead { justify-self: end; }
.head--split > .head { margin-bottom: 0; }

/* ---------- Buttons & links ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0.85rem 1.5rem; border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-head); font-size: 0.95rem; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: background-color var(--t-out) var(--ease), color var(--t-out) var(--ease),
              border-color var(--t-out) var(--ease), box-shadow var(--t-out) var(--ease), transform 90ms var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 200ms var(--ease); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px -12px rgba(227, 36, 59, 0.8); }
.btn--primary:hover { background: var(--red-ink); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #333; }
.btn--line { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--ink); background: rgba(19, 19, 19, 0.04); }
.btn--glass { border-color: rgba(255, 255, 255, 0.4); color: #fff; background: rgba(255, 255, 255, 0.12); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.18); border-color: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--bg); }
.btn--sm { min-height: 44px; padding: 0.6rem 1.1rem; font-size: 0.88rem; }
.btn--block { width: 100%; }
.btn:active { transform: translateY(1px) scale(0.985); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); transition-duration: var(--t-in); }
  .btn:active { transform: translateY(1px) scale(0.985); }
  .btn:hover svg { transform: translateX(3px); }
}

.link {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; color: var(--ink);
}
.link span {
  background: linear-gradient(currentColor, currentColor) no-repeat right bottom / 0% 1.5px;
  transition: background-size 280ms var(--ease);
  padding-bottom: 2px;
}
.link svg { width: 17px; height: 17px; transition: transform 200ms var(--ease); }
.link:hover span, .link:focus-visible span { background-size: 100% 1.5px; background-position: left bottom; }
.link:hover svg { transform: translateX(4px); }
.link--red { color: var(--red-ink); }

.prose a:not(.btn), .text-link {
  color: var(--red-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}

/* ---------- Header (floating bar) ---------- */
.header {
  position: fixed; inset: 14px 0 auto; z-index: 100;
  pointer-events: none;
  transition: transform 450ms var(--ease);
  view-transition-name: site-header;
}
.header.is-hidden { transform: translateY(calc(-100% - 20px)); }
.header__bar {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 64px; padding: 0 0.55rem 0 1.2rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(19, 19, 20, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.55);
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.header--over:not(.is-stuck) .header__bar {
  background: rgba(20, 20, 22, 0.3);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; flex: none; min-height: 44px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 0.2rem; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 0.95rem; border-radius: 999px;
  font-family: var(--font-head); font-size: 0.93rem; font-weight: 500; color: rgba(255, 255, 255, 0.82);
  transition: background-color var(--t-out) var(--ease), color var(--t-out) var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: #fff; }
.nav__link:hover { background: rgba(255, 255, 255, 0.1); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 7px; width: 5px; height: 5px;
  margin-left: -2.5px; border-radius: 50%; background: var(--red);
}
.header__actions { display: flex; align-items: center; gap: 0.4rem; }
.header__phone {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 0.9rem;
  font-family: var(--font-head); font-size: 0.9rem; font-weight: 600; border-radius: 999px; color: #fff;
}
.header__phone svg { width: 17px; height: 17px; color: #ff6b7c; }
.header__phone:hover { background: rgba(255, 255, 255, 0.1); }
.menu-btn {
  display: none; width: 48px; height: 48px; border-radius: 50%;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  background: #fff; color: var(--ink);
}
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 300ms var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Phone menu sheet */
.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2rem;
  padding: 110px var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background: var(--dark); color: var(--on-dark);
  visibility: hidden; opacity: 0;
  transition: opacity 250ms var(--ease), visibility 0s linear 250ms;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity 250ms var(--ease); }
.menu__links { display: grid; }
.menu__links a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-head); font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 600; letter-spacing: -0.03em;
  opacity: 0; transform: translateY(16px);
  transition: opacity 350ms var(--ease), transform 450ms var(--ease-enter);
}
.menu__links a svg { width: 26px; height: 26px; color: #ff6b7c; }
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: 50ms; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: 100ms; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: 150ms; }
.menu__foot { display: grid; gap: 0.7rem; }
.menu__foot .btn { width: 100%; }
body.menu-open { overflow: hidden; }

/* ---------- Home hero ---------- */
.hero { padding: 10px; min-height: 100vh; min-height: 100svh; display: flex; }
.hero__frame {
  position: relative; isolation: isolate; overflow: hidden; flex: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: var(--r-xl); background: var(--dark); color: #fff;
  padding: calc(var(--header-h) + 3rem) clamp(1.2rem, 4vw, 3.5rem) clamp(1.2rem, 3vw, 2.5rem);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.hero__frame::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0.55) 0%, rgba(10, 10, 12, 0) 28%),
    linear-gradient(0deg, rgba(10, 10, 12, 0.92) 0%, rgba(10, 10, 12, 0.5) 42%, rgba(10, 10, 12, 0.05) 70%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: end; }
.hero__copy { display: grid; gap: 1.4rem; max-width: 52rem; }
.hero h1.display { font-size: clamp(2.4rem, 5.4vw, 5rem); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero h1 .line > span { display: block; }
.hero h1 em { font-style: normal; color: #ff6b7c; }
.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: rgba(255, 255, 255, 0.82); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 0.4rem;
  font-family: var(--font-head); font-size: 0.86rem; font-weight: 500; color: rgba(255, 255, 255, 0.78);
  list-style: none;
}
.hero__facts li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__facts svg { width: 16px; height: 16px; color: #ff6b7c; }

.hero__rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.rail-card {
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  border-radius: var(--r); background: rgba(255, 255, 255, 0.96); color: var(--ink);
  transition: transform 180ms var(--ease), box-shadow 220ms var(--ease);
}
.rail-card__img { aspect-ratio: 1; background: #fff; display: grid; place-items: center; overflow: hidden; }
.rail-card__img img { width: 82%; height: 82%; object-fit: contain; transition: transform 600ms var(--ease); }
.rail-card__body { padding: 0.7rem 0.85rem 0.85rem; border-top: 1px solid var(--line); }
.rail-card__tag { font-size: 0.78rem; font-family: var(--font-head); font-weight: 600; color: var(--red-ink); }
.rail-card__name { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; }
.rail-card__name svg { width: 16px; height: 16px; flex: none; transition: transform 200ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .rail-card:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -20px rgba(0, 0, 0, 0.6); }
  .rail-card:hover .rail-card__img img { transform: scale(1.04); }
  .rail-card:hover .rail-card__name svg { transform: translateX(3px); }
}

/* ---------- Range (editorial list with photo preview) ---------- */
.range { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.range__list { list-style: none; border-top: 1px solid var(--line-strong); counter-reset: range; }
.range__item a {
  position: relative; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; align-items: center; gap: 1rem;
  padding: clamp(1.1rem, 2.4vw, 1.6rem) 0.4rem; border-bottom: 1px solid var(--line-strong);
  transition: padding 260ms var(--ease), color 200ms var(--ease);
}
.range__num { font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.range__title { display: grid; gap: 0.2rem; }
.range__title strong { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.45rem, 3.2vw, 2.4rem); letter-spacing: -0.035em; line-height: 1.1; }
.range__title span { font-size: 0.95rem; color: var(--muted); max-width: 36rem; }
.range__meta em { font-style: normal; }
.range__meta { display: flex; align-items: center; gap: 1rem; font-family: var(--font-head); font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.range__arrow {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--ink);
  transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease), transform 200ms var(--ease);
}
.range__arrow svg { width: 18px; height: 18px; }
.range__thumb { display: none; }
@media (hover: hover) and (pointer: fine) {
  .range__item a:hover { padding-left: 1rem; }
  .range__item a:hover .range__arrow { background: var(--red); border-color: var(--red); color: #fff; transform: rotate(-45deg); }
}
.range__item a:focus-visible .range__arrow { background: var(--red); border-color: var(--red); color: #fff; }
.range__item.is-active .range__title strong { color: var(--red-ink); }
.range__preview {
  position: sticky; top: 110px;
  aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-2);
}
.range__preview figure { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; opacity: 0; transform: scale(1.04); transition: opacity 420ms var(--ease), transform 700ms var(--ease); }
.range__preview figure.is-active { opacity: 1; transform: none; }
.range__preview img { width: 78%; height: 78%; object-fit: contain; }

/* ---------- System flow ---------- */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.8rem, 2vw, 1.4rem); position: relative; counter-reset: flow; }
.flow__step {
  position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
}
.flow__img { aspect-ratio: 1; display: grid; place-items: center; background: #fff; border-bottom: 1px solid var(--line); }
.flow__img img { width: 74%; height: 74%; object-fit: contain; }
.flow__img--photo img { width: 100%; height: 100%; object-fit: cover; }
.flow__body { padding: 1.2rem 1.25rem 1.4rem; display: grid; gap: 0.45rem; align-content: start; }
.flow__body .num { font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; color: var(--red-ink); }
.flow__body p { font-size: 0.95rem; color: var(--muted); }
.flow__line { position: absolute; left: 8%; right: 8%; top: calc(25% - 1px); height: 2px; z-index: 2; pointer-events: none; overflow: hidden; }
.flow__line::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, var(--red) 0 10px, transparent 10px 20px);
  opacity: 0.55;
  animation: flow-run 1.2s linear infinite;
}
@keyframes flow-run { to { transform: translateX(20px); } }
.flow__dot {
  position: absolute; top: calc(25% - 7px); z-index: 3; width: 14px; height: 14px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 5px rgba(227, 36, 59, 0.18);
}

/* ---------- Numbers band ---------- */
.numbers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.numbers__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, 0.14); }
.number { padding: 1.6rem 1.2rem 1.6rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.number:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, 0.14); }
.number:nth-child(even) { padding-left: 1.6rem; }
.number strong { display: block; font-family: var(--font-head); font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.number strong small { font-size: 0.42em; letter-spacing: -0.01em; color: #ff6b7c; margin-left: 0.15em; }
.number > span { display: block; margin-top: 0.6rem; font-size: 0.95rem; color: var(--on-dark-muted); max-width: 18rem; }

/* ---------- Projects mosaic ---------- */
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 17vw, 230px); gap: clamp(0.5rem, 1.2vw, 0.9rem); }
.mosaic__item { margin: 0; overflow: hidden; border-radius: var(--r); background: var(--surface-2); }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.mosaic__item:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.mosaic__item:nth-child(2) { grid-column: span 5; }
.mosaic__item:nth-child(3) { grid-column: span 5; }
.mosaic__item:nth-child(4) { grid-column: span 4; }
.mosaic__item:nth-child(5) { grid-column: span 4; }
.mosaic__item:nth-child(6) { grid-column: span 4; }
@media (hover: hover) and (pointer: fine) {
  .mosaic__item:hover img { transform: scale(1.03); }
}

/* ---------- Film ---------- */
.film { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--dark); aspect-ratio: 21 / 9; color: #fff; }
.film > img, .film > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 10, 12, 0.75), rgba(10, 10, 12, 0.05) 55%); pointer-events: none; transition: opacity 300ms var(--ease); }
.film__content { position: absolute; z-index: 2; inset: auto clamp(1.2rem, 4vw, 3rem) clamp(1.2rem, 4vw, 3rem); display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; }
.film__content h2 { max-width: 30rem; }
.play {
  flex: none; display: grid; place-items: center; width: clamp(68px, 8vw, 96px); aspect-ratio: 1; border-radius: 50%;
  background: #fff; color: var(--ink); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.7);
  transition: transform 200ms var(--ease), background-color 200ms var(--ease), color 200ms var(--ease);
}
.play svg { width: 28px; height: 28px; margin-left: 4px; }
.play:hover { transform: scale(1.06); background: var(--red); color: #fff; }
.film.is-playing::after, .film.is-playing .film__content { opacity: 0; pointer-events: none; }
.film.is-playing > video { z-index: 3; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); list-style: none; counter-reset: step; }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { counter-increment: step; padding-top: 1.4rem; border-top: 2px solid var(--ink); display: grid; gap: 0.6rem; align-content: start; }
.step::before { content: "0" counter(step); font-family: var(--font-head); font-weight: 600; font-size: clamp(2.4rem, 4vw, 3.4rem); letter-spacing: -0.05em; line-height: 1; color: var(--red); }
.step p { color: var(--muted); font-size: 0.98rem; }
.section--dark .step { border-top-color: rgba(255, 255, 255, 0.5); }
.section--dark .step p { color: var(--on-dark-muted); }

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.8rem, 1.6vw, 1.2rem); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  display: grid; gap: 0.7rem; align-content: start;
  padding: clamp(1.4rem, 2.6vw, 2rem); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--red-soft); color: var(--red-ink); margin-bottom: 0.4rem; }
.card__icon svg { width: 24px; height: 24px; }
.card p { color: var(--muted); font-size: 0.97rem; }
.section--dark .card { background: var(--dark-2); border-color: rgba(255, 255, 255, 0.08); }
.section--dark .card p { color: var(--on-dark-muted); }
.section--dark .card__icon { background: rgba(227, 36, 59, 0.16); color: #ff6b7c; }

/* ---------- Split (text + picture) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.split--wide-media { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.split__copy { display: grid; gap: 1.2rem; align-content: center; }
.split__copy .prose { display: grid; gap: 1rem; color: var(--muted); }
.split__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.6rem; }
.photo-pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0.8rem; align-items: end; }
.photo-pair figure { margin: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--surface-2); }
.photo-pair figure:first-child { aspect-ratio: 4 / 5; }
.photo-pair figure:last-child { aspect-ratio: 3 / 4; margin-bottom: 12%; }
.photo-pair img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .photo-pair figure:hover img { transform: scale(1.03); }
}

/* ---------- Big call to action ---------- */
.cta { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--red); color: #fff; padding: clamp(2.4rem, 7vw, 6rem) clamp(1.4rem, 5vw, 4.5rem); }
.cta::before {
  content: ""; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 170, 120, 0.55), transparent 65%);
  pointer-events: none;
}
.cta__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: end; }
.cta h2 { font-size: clamp(2.2rem, 5.6vw, 4.6rem); letter-spacing: -0.045em; line-height: 1; }
.cta p { color: rgba(255, 255, 255, 0.88); max-width: 30rem; }
.cta__actions { display: grid; gap: 0.7rem; justify-items: stretch; }
.cta .btn--white { color: var(--red-ink); }

/* ---------- Page hero (inner pages) ---------- */
.page-top { padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem)); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.5rem; margin-bottom: 1.6rem; font-size: 0.88rem; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.page-top__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 2rem 4rem; align-items: end; }
.page-top h1 { font-size: clamp(2.6rem, 6.6vw, 5.6rem); letter-spacing: -0.045em; line-height: 1; margin-top: 1rem; }
.page-top .lead { margin-top: 1.4rem; }
.page-top__side { display: grid; gap: 0.8rem; justify-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 38px; padding: 0.4rem 0.9rem;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-family: var(--font-head); font-size: 0.84rem; font-weight: 500;
}
.chip svg { width: 15px; height: 15px; color: var(--red); }
a.chip:hover { border-color: var(--ink); }

/* Category banner photo */
.banner { margin-top: clamp(2rem, 5vw, 3.5rem); border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 21 / 8; background: var(--surface-2); }
.banner img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Product grid ---------- */
.catalog-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.6rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line-strong); }
.catalog-bar p { font-family: var(--font-head); font-weight: 600; }
.catalog-bar span { color: var(--muted); font-weight: 500; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.8rem, 1.8vw, 1.3rem); }
.product {
  position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  transition: transform 180ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}
.product__img { position: relative; aspect-ratio: 1; background: #fff; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.product__img img { width: 80%; height: 80%; object-fit: contain; transition: transform 600ms var(--ease); }
.product__tag { position: absolute; left: 1rem; top: 1rem; padding: 0.3rem 0.65rem; border-radius: 999px; background: var(--bg); font-family: var(--font-head); font-size: 0.8rem; font-weight: 600; color: var(--red-ink); }
.product__body { display: grid; grid-template-rows: auto 1fr auto; gap: 0.5rem; padding: 1.2rem 1.3rem 1.3rem; }
.product__body h3 { font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.2; }
.product__body p { font-size: 0.93rem; color: var(--muted); }
.product__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.4rem; }
.product__foot .link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.product:has(.link:focus-visible) { outline: 3px solid var(--red); outline-offset: 3px; }
.product .link:focus-visible { outline: none; }
@media (hover: hover) and (pointer: fine) {
  .product:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
  .product:hover .product__img img { transform: scale(1.03); }
  .product:hover .link span { background-size: 100% 1.5px; background-position: left bottom; }
  .product:hover .link svg { transform: translateX(4px); }
}

/* ---------- Product detail ---------- */
.detail { padding-top: calc(var(--header-h) + clamp(2.4rem, 5vw, 3.5rem)); padding-bottom: var(--section); }
.detail__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.detail__media { position: sticky; top: 100px; aspect-ratio: 1; border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.detail__media img { width: 82%; height: 82%; object-fit: contain; }
.detail__info { display: grid; gap: 1.3rem; padding-top: 0.5rem; }
.detail__info h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); letter-spacing: -0.04em; line-height: 1.04; }
.detail__desc { font-size: 1.12rem; color: var(--muted); }
.detail__body { display: grid; gap: 0.9rem; color: var(--muted); }
.keyspecs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.keyspec { padding: 0.9rem 1rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.keyspec span { display: block; font-size: 0.78rem; color: var(--muted); }
.keyspec strong { display: block; margin-top: 0.15rem; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; line-height: 1.3; }
.ticks { display: grid; gap: 0.6rem; list-style: none; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 0.7rem; align-items: start; font-size: 0.98rem; }
.ticks svg { width: 20px; height: 20px; margin-top: 0.15rem; color: var(--red); }
.detail__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.helpbox { display: grid; gap: 0.4rem; padding: 1.3rem 1.4rem; border-radius: var(--r-lg); background: var(--dark); color: var(--on-dark); }
.helpbox p { color: var(--on-dark-muted); font-size: 0.95rem; }
.helpbox .link { color: #fff; }
.specs { margin-top: clamp(3rem, 7vw, 5.5rem); display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 2rem 4rem; align-items: start; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.spec-table th, .spec-table td { padding: 1rem 0; border-bottom: 1px solid var(--line-strong); text-align: left; vertical-align: top; }
.spec-table th { width: 42%; padding-right: 1.5rem; font-family: var(--font-head); font-weight: 500; color: var(--muted); }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 1px solid var(--line-strong); }
.related { margin-top: clamp(3rem, 7vw, 5.5rem); }

/* ---------- Values / about ---------- */
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); list-style: none; }
.value { padding: 1.6rem 1.4rem 1.6rem 0; display: grid; gap: 0.7rem; align-content: start; }
.value + .value { padding-left: 1.4rem; border-left: 1px solid var(--line-strong); }
.value .num { font-family: var(--font-head); font-weight: 600; color: var(--red); font-size: 0.85rem; letter-spacing: 0.1em; }
.value p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.contact__list { display: grid; gap: 0.7rem; list-style: none; }
.contact-item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 1rem; padding: 1.2rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.contact-item__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--red-soft); color: var(--red-ink); }
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.contact-item p { color: var(--muted); font-size: 0.95rem; overflow-wrap: anywhere; }
.contact-item a { color: var(--ink); font-weight: 600; }
.contact-item a:hover { color: var(--red-ink); text-decoration: underline; text-underline-offset: 3px; }
.form-panel { padding: clamp(1.4rem, 4vw, 2.6rem); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.form-panel h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.form-panel > p { margin: 0.6rem 0 1.6rem; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.field { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-size: 0.88rem; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 0.8rem 1rem; border-radius: 14px;
  border: 1px solid var(--line-strong); background: var(--bg); font-size: 1rem;
  transition: border-color var(--t-out) var(--ease), box-shadow var(--t-out) var(--ease), background-color var(--t-out) var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input:hover, .field textarea:hover { border-color: rgba(19, 19, 19, 0.4); }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 0 0 5px rgba(227, 36, 59, 0.15); }
.form-note { margin-top: 1rem; font-size: 0.85rem; color: var(--muted); }
.form-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.g-recaptcha { margin: 0.4rem 0 1rem; min-height: 78px; }
.map { margin-top: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: clamp(300px, 42vw, 460px); border: 0; filter: grayscale(0.35); }
.map__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; padding: 1rem 1.4rem; }
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 200; max-width: min(92vw, 30rem);
  padding: 1rem 1.3rem; border-radius: 16px; color: #fff; background: var(--ink); box-shadow: var(--shadow-2);
  transform: translate(-50%, 140%); transition: transform 350ms var(--ease-enter);
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast.is-success { background: #1f7a4d; }
.toast.is-error { background: #b3261e; }

/* ---------- 404 ---------- */
.lost { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; padding-block: calc(var(--header-h) + 3rem) 4rem; }
.lost__code { font-family: var(--font-head); font-weight: 700; font-size: clamp(6rem, 22vw, 16rem); line-height: 0.85; letter-spacing: -0.07em; color: var(--red); }
.lost__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin-top: 2.5rem; }
.lost__links a { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 1.2rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-family: var(--font-head); font-weight: 600; transition: border-color 200ms var(--ease); }
.lost__links a:hover { border-color: var(--ink); }
.lost__links svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.footer { margin-top: var(--section); background: var(--dark); color: var(--on-dark); padding-top: clamp(3.5rem, 8vw, 6rem); overflow: hidden; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.footer__lead h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -0.04em; max-width: 22rem; }
.footer__lead .btn { margin-top: 1.6rem; }
.footer h3 { font-family: var(--font-head); font-size: 0.95rem; font-weight: 600; color: var(--on-dark-muted); margin-bottom: 0.8rem; }
.footer ul { list-style: none; display: grid; }
.footer ul a { display: inline-flex; align-items: center; min-height: 40px; color: var(--on-dark); transition: color 150ms var(--ease); }
.footer ul a:hover { color: #ff6b7c; }
.footer address { font-style: normal; color: var(--on-dark-muted); font-size: 0.95rem; line-height: 1.7; }
.socials { display: flex; gap: 0.5rem; margin-top: 1rem; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); transition: background-color 200ms var(--ease), border-color 200ms var(--ease); }
.socials a:hover { background: var(--red); border-color: var(--red); }
.socials svg { width: 18px; height: 18px; }
.footer__word {
  margin-top: clamp(3rem, 7vw, 5rem);
  font-family: var(--font-head); font-weight: 700; font-size: clamp(5rem, 24vw, 22rem); line-height: 0.78; letter-spacing: -0.07em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.18);
  user-select: none; white-space: nowrap; text-align: center;
}
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 1.5rem; padding: 1.4rem 0 1.8rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.88rem; color: var(--on-dark-muted); }
.footer__bottom a:hover { color: #fff; }

/* WhatsApp quick button (phones) */
.wa-fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 80;
  display: none; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #1fa855; color: #fff; box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.6);
}
.wa-fab svg { width: 26px; height: 26px; }

/* Page loader (slow loads only) */
.page-loader { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: var(--bg); opacity: 0; transition: opacity 300ms var(--ease); pointer-events: none; }
.page-loader.is-visible { opacity: 1; pointer-events: auto; }
.page-loader__bar { width: 140px; height: 3px; border-radius: 3px; background: var(--surface-2); overflow: hidden; position: relative; }
.page-loader__bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--red); animation: load 1s var(--ease) infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------- Page transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 200ms var(--ease) both; }
::view-transition-new(root) { animation: vt-in 380ms var(--ease-enter) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

/* Heading lines rise from a mask (js wraps them) */
.rise { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.rise > span { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header__phone span { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__rail { max-width: 640px; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow__line, .flow__dot { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value:nth-child(3) { padding-left: 0; border-left: 0; }
  .value:nth-child(n + 3) { border-top: 1px solid var(--line-strong); }
  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__lead { grid-column: 1 / -1; }
  .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.4rem; }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .header { inset: 10px 0 auto; }
  .header__bar { height: 60px; padding: 0 0.4rem 0 1rem; }
  .nav, .header__actions .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .range { grid-template-columns: 1fr; }
  .range__preview { display: none; }
  .range__item a { grid-template-columns: 76px minmax(0, 1fr) auto; }
  .range__num { display: none; }
  .range__thumb { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 14px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
  .range__thumb img { width: 84%; height: 84%; object-fit: contain; }
  .range__meta em { display: none; }
  .head--split, .numbers, .split, .split--wide-media, .page-top__grid, .cta__inner, .contact, .detail__grid, .specs { grid-template-columns: minmax(0, 1fr); }
  .head--split .lead { justify-self: start; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .detail__media { position: relative; top: 0; }
  .film { aspect-ratio: 4 / 5; }
  .film__content { flex-direction: column; align-items: flex-start; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; }
  .mosaic__item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .mosaic__item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .banner { aspect-ratio: 16 / 10; }
  .wa-fab { display: grid; }
  .lost__links { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero { padding: 6px; }
  .hero__frame { border-radius: 26px; padding-top: calc(var(--header-h) + 2.5rem); }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__rail { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; }
  .rail-card__body { padding: 0.5rem 0.55rem 0.6rem; }
  .rail-card__tag { display: none; }
  .rail-card__name { font-size: 0.8rem; }
  .rail-card__name svg { display: none; }
  .flow, .cards, .cards--2, .products, .values, .keyspecs, .form-grid { grid-template-columns: 1fr; }
  .value, .value + .value { padding-left: 0; border-left: 0; }
  .value + .value { border-top: 1px solid var(--line-strong); }
  .numbers__grid { grid-template-columns: 1fr 1fr; }
  .number:nth-child(even) { padding-left: 1rem; }
  .number strong { font-size: 2.6rem; }
  .footer { border-radius: 26px 26px 0 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__top > div:last-child { grid-column: 1 / -1; }
  .cta, .film, .banner, .map { border-radius: 24px; }
  .split__actions .btn, .detail__actions .btn, .cta__actions .btn { width: 100%; }
  .range__title span { display: none; }
  .range__arrow { width: 44px; height: 44px; }
  .form-panel { padding: 1.2rem; }
  .g-recaptcha { transform: scale(0.86); transform-origin: left top; margin-bottom: 0; height: 68px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .header.is-hidden { transform: none; }
  .btn:hover, .btn:active, .product:hover, .rail-card:hover { transform: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ============================================================
   FX layer (js/fx.js drives it).
   Performance rule: everything that moves, moves by transform or
   opacity only, so the GPU composites it and nothing repaints
   while you scroll. Without JS, or with reduced motion, the page
   reads exactly the same, still.
   ============================================================ */

/* ---------- Intro (home, once per visit) ---------- */
.intro { position: fixed; inset: 0; z-index: 500; cursor: pointer; }
.intro__bars { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.intro__bars i { display: block; background: var(--dark); margin-right: -1px; will-change: transform; }
.intro__center { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 1.6rem; color: #fff; }
.intro__logo { height: 64px; width: auto; }
.intro__count { font-family: var(--font-head); font-weight: 600; font-size: clamp(4rem, 14vw, 10rem); line-height: 1; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.intro__count small { font-size: 0.35em; color: var(--red); margin-left: 0.1em; }
.intro__line { width: min(260px, 60vw); height: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.intro__line span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--sun)); transform-origin: left; transform: scaleX(0); }
.intro__skip { position: absolute; right: 1.5rem; bottom: 1.5rem; font-family: var(--font-head); font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }

/* ---------- Split text ---------- */
.fx-word { display: inline-block; white-space: nowrap; }
.fx-c { display: inline-block; transform-origin: 50% 100%; }
.fx-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.fx-w__i { display: inline-block; }
.hero h1 .line > span { perspective: 1000px; }

/* ---------- Hero: compositor-only layers ---------- */
.hero { transform-origin: 50% 0; }
.hero__media, .hero__rail, .hero__copy { will-change: transform; }
.hero__scrollcue {
  position: absolute; left: 50%; bottom: 1.1rem; z-index: 2; width: 26px; height: 42px; margin-left: -13px;
  border: 1.5px solid rgba(255, 255, 255, 0.5); border-radius: 20px; pointer-events: none;
}
.hero__scrollcue::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff;
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
/* the header is solid enough to read without a live blur (blur is the costliest thing on scroll) */
.header__bar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(17, 17, 18, 0.94); }
.header--over:not(.is-stuck) .header__bar { background: rgba(17, 17, 18, 0.35); }

/* ---------- Marquee band ---------- */
.marquee { overflow: hidden; padding-block: clamp(1.6rem, 4vw, 3rem); background: var(--bg); border-block: 1px solid var(--line); contain: paint; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__track > span {
  display: inline-flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.6rem); padding-right: clamp(1.2rem, 3vw, 2.6rem);
  font-family: var(--font-head); font-weight: 600; font-size: clamp(3rem, 10vw, 9rem); line-height: 1.05; letter-spacing: -0.05em; white-space: nowrap;
}
.marquee__track b { font-weight: 600; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.marquee__track i { display: inline-block; width: 0.42em; height: 0.42em; border-radius: 50%; background: var(--red); }
.marquee--dark { background: var(--dark); color: #fff; border-color: transparent; }
.marquee--dark b { -webkit-text-stroke-color: rgba(255, 255, 255, 0.85); }

/* ---------- Range: one photo slides over the last ---------- */
.range__preview figure { opacity: 1; transform: translateY(100%); transition: transform 750ms cubic-bezier(0.77, 0, 0.18, 1); will-change: transform; }
.range__preview figure img { transform: scale(1.15); transition: transform 1100ms cubic-bezier(0.22, 1, 0.36, 1); }
.range__preview figure.is-active { transform: translateY(0); z-index: 2; }
.range__preview figure.is-active img { transform: scale(1); }
.range__preview figure.is-leaving { transform: translateY(-30%); z-index: 1; }
.range__preview figure.is-leaving img { transform: scale(1.05); }

/* ---------- Spotlight on cards (pointer only, the hovered card only) ---------- */
.fx-spot { position: relative; isolation: isolate; }
.fx-spot::before {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(227, 36, 59, 0.1), transparent 45%);
  opacity: 0; transition: opacity 300ms var(--ease);
}
.fx-spot:hover::before { opacity: 1; }

/* ---------- Flow: the energy path ---------- */
.flow { position: relative; }
.fx-path { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: visible; }
.fx-path__track { fill: none; stroke: transparent; }
.fx-path__line { fill: none; stroke: url(#fx-energy); stroke-width: 3; stroke-linecap: round; }
.fx-path__dot { fill: #fff; stroke: var(--red); stroke-width: 4; }
.fx-path__halo { fill: rgba(227, 36, 59, 0.18); }
.flow__step { transition: border-color 400ms var(--ease), box-shadow 400ms var(--ease); }
.flow__step.is-lit { border-color: rgba(227, 36, 59, 0.55); box-shadow: 0 0 0 4px rgba(227, 36, 59, 0.08); }
.flow__step.is-lit .num { color: var(--red); }
.flow__step .flow__img img { transition: transform 900ms var(--ease-enter); }
.flow__step.is-lit .flow__img img { transform: scale(1.06); }

/* ---------- Dark sections: a slow drifting glow (transform only) ---------- */
.section--dark { position: relative; overflow: hidden; isolation: isolate; }
.fx-orb {
  position: absolute; z-index: -1; left: -10%; top: -20%; width: 70vmax; height: 70vmax; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(227, 36, 59, 0.22), rgba(227, 36, 59, 0.06) 40%, transparent 65%);
  will-change: transform;
  animation: orb-drift 18s ease-in-out infinite alternate;
}
@keyframes orb-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(45%, 25%, 0); } }

/* ---------- Mosaic depth ---------- */
.mosaic__item { overflow: hidden; }
.fx-on .mosaic__item img { transform: scale(1.14); will-change: transform; }

/* ---------- Steps: the top line draws ---------- */
.step { position: relative; }
.fx-on .step { border-top-color: transparent; }
.step .fx-rule { position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: currentColor; transform-origin: left; color: var(--ink); }
.section--dark .step .fx-rule { color: rgba(255, 255, 255, 0.5); }

/* ---------- Footer word ---------- */
.footer__word { display: flex; justify-content: center; overflow: hidden; padding-bottom: 0.05em; }
.footer__word .fx-l { display: inline-block; transition: color 300ms var(--ease), -webkit-text-stroke-color 300ms var(--ease); }
.footer__word .fx-l:hover { color: var(--red); -webkit-text-stroke-color: var(--red); }

/* ---------- Cursor: one moving layer, the ring scales inside it ---------- */
.fx-cursor { position: fixed; left: 0; top: 0; z-index: 600; pointer-events: none; will-change: transform; transition: opacity 200ms var(--ease); }
.fx-cursor__ring {
  position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(227, 36, 59, 0.65);
  display: grid; place-items: center;
  transition: transform 350ms var(--ease-enter), background-color 250ms var(--ease), border-color 250ms var(--ease);
}
.fx-cursor.is-link .fx-cursor__ring { transform: scale(1.6); background: rgba(227, 36, 59, 0.1); border-color: transparent; }
.fx-cursor.is-down .fx-cursor__ring { transform: scale(0.8); }
.fx-cursor-dot { position: fixed; left: -3px; top: -3px; z-index: 601; width: 6px; height: 6px; border-radius: 50%; background: var(--red); pointer-events: none; will-change: transform; transition: opacity 200ms var(--ease); }
.fx-cursor.is-hidden, .fx-cursor-dot.is-hidden { opacity: 0; }

/* ---------- Page transitions: the new page slides up over the old ---------- */
::view-transition-old(root) { animation: vt-old 550ms cubic-bezier(0.77, 0, 0.18, 1) both; }
::view-transition-new(root) { animation: vt-new 650ms cubic-bezier(0.77, 0, 0.18, 1) both; }
@keyframes vt-old { to { transform: scale(0.95); opacity: 0.35; } }
@keyframes vt-new { from { transform: translateY(100%); } to { transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .intro, .fx-cursor, .fx-cursor-dot, .fx-path, .fx-orb { display: none !important; }
  .range__preview figure { transform: none; opacity: 0; transition: none; }
  .range__preview figure.is-active { opacity: 1; }
  .range__preview figure img, .mosaic__item img { transform: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
