/* ════════════════════════════════════════════════════════════
   AEROCHEF X5 — design system v2
   Bright, editorial, product-first. Outfit display / Inter body.
   Motion: Lenis smooth scroll + GSAP ScrollTrigger + rAF canvas.
   ════════════════════════════════════════════════════════════ */

:root {
  --bg:        #f5f5f7;
  --bg-deep:   #e9e9ee;
  --panel:     #ffffff;
  --ink:       #101014;
  --ink-2:     #3c3c44;
  --mut:       rgba(16, 16, 20, 0.55);
  --mut-2:     rgba(16, 16, 20, 0.38);
  --line:      rgba(16, 16, 20, 0.08);
  --heat:      #ff5c1f;
  --heat-2:    #ff8a00;
  --grad-heat: linear-gradient(120deg, #ff8a00, #ff3d00);
  --dark:      #0c0c10;
  --dark-2:    #16161c;
  --radius:    22px;
  --font-d:    'Outfit', sans-serif;
  --font-b:    'Inter', sans-serif;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-lg: 0 30px 80px -20px rgba(16, 16, 20, 0.25);
  --shadow-md: 0 12px 40px -12px rgba(16, 16, 20, 0.18);
  --wrap:      1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

html, body {
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--heat); color: #fff; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* ─────────────────────────── Preloader ─────────────────────────── */

.loader {
  position: fixed; inset: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
}
.loader__curtain {
  position: absolute; inset: 0;
  background: var(--bg);
  transform-origin: top;
  z-index: -1;
}
.loader.done .loader__curtain {
  transition: transform 0.9s var(--ease-out) 0.15s;
  transform: scaleY(0);
  transform-origin: top;
}
.loader.done { pointer-events: none; }
.loader.done .loader__inner {
  opacity: 0;
  transform: translateY(-18px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease);
}
.loader.gone { display: none; }

.loader__inner { width: min(320px, 80vw); text-align: center; }

.loader__mark { display: flex; justify-content: center; margin-bottom: 18px; color: var(--ink); }
.loader__led { animation: led-blink 1.1s steps(2, start) infinite; }
@keyframes led-blink { 0% { opacity: 1; } 50% { opacity: 0.25; } 100% { opacity: 1; } }

.loader__title {
  font-family: var(--font-d);
  font-weight: 900; font-size: 17px; letter-spacing: 0.3em;
}
.loader__title span { color: var(--heat); }

.loader__sub {
  font-size: 10px; font-weight: 700; letter-spacing: 0.32em;
  color: var(--mut-2); margin: 8px 0 26px;
}

.loader__track {
  height: 2px; width: 100%;
  background: rgba(16, 16, 20, 0.1);
  overflow: hidden; border-radius: 2px;
}
.loader__bar {
  height: 100%; width: 0%;
  background: var(--ink);
  transition: width 0.2s ease-out;
}
.loader__pct {
  margin-top: 12px;
  font-size: 11px; font-family: var(--font-d); font-weight: 600;
  letter-spacing: 0.1em; color: var(--mut);
  font-variant-numeric: tabular-nums;
}

/* ─────────────────────────── Global chrome ─────────────────────────── */

.pageline {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 60; pointer-events: none;
}
#pageline-bar { height: 100%; width: 0%; background: var(--grad-heat); }

/* filmic grain */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  z-index: 80;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-1.2%, 0.8%); }
  50%  { transform: translate(0.9%, -1.1%); }
  75%  { transform: translate(-0.7%, -0.6%); }
  100% { transform: translate(0, 0); }
}

/* custom cursor (fine pointers only) */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 1.5px solid rgba(16, 16, 20, 0.35);
  border-radius: 50%;
  z-index: 95;
  pointer-events: none;
  display: none;
  align-items: center; justify-content: center;
  transition: width 0.3s var(--ease), height 0.3s var(--ease),
              margin 0.3s var(--ease), background 0.3s ease,
              border-color 0.3s ease, opacity 0.3s ease;
}
.cursor span {
  font-family: var(--font-d); font-weight: 700;
  font-size: 9px; letter-spacing: 0.18em;
  color: #fff; opacity: 0;
  transition: opacity 0.25s ease;
  user-select: none;
}
.cursor.on { display: flex; }
.cursor.hidden { opacity: 0; }
.cursor.label {
  width: 68px; height: 68px; margin: -34px 0 0 -34px;
  background: rgba(16, 16, 20, 0.88);
  border-color: transparent;
}
.cursor.label span { opacity: 1; }
.cursor.press { transform: scale(0.85); }
@media (pointer: coarse) { .cursor { display: none !important; } }

/* ─────────────────────────── Navigation ─────────────────────────── */

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease,
              backdrop-filter 0.4s ease, transform 0.45s var(--ease);
}
.nav.scrolled {
  background: rgba(245, 245, 247, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 28px;
}
.nav.hide { transform: translateY(-110%); }

.nav__logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-d); font-weight: 900;
  letter-spacing: 0.22em; font-size: 14px;
  color: var(--ink);
}
.nav__logo span { color: var(--heat); }

.nav__links { display: flex; gap: 26px; }
.nav__links a {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em;
  color: var(--mut);
  transition: color 0.25s ease;
  position: relative;
  padding: 4px 0;
}
.nav__links a::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; border-radius: 2px;
  background: var(--grad-heat);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); }
.nav__links a.active { color: var(--ink); }

.nav__cta {
  background: var(--ink); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em;
  padding: 11px 22px; border-radius: 999px;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.nav__cta:hover {
  background: #000;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.35);
}

/* ─────────────────────────── Buttons ─────────────────────────── */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em;
  padding: 17px 34px; border-radius: 999px;
  border: none; cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
/* shine sweep */
.btn::after {
  content: '';
  position: absolute; top: 0; bottom: 0; left: -80%;
  width: 50%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease);
  pointer-events: none;
}
.btn:hover::after { left: 130%; }

.btn--dark {
  background: var(--ink); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}
.btn--dark:hover { background: #000; box-shadow: 0 18px 44px -12px rgba(0, 0, 0, 0.5); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  border: 1px solid rgba(16, 16, 20, 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost::after { background: linear-gradient(105deg, transparent, rgba(16, 16, 20, 0.06), transparent); }

.btn--heat {
  background: var(--grad-heat); color: #fff;
  box-shadow: 0 14px 40px -10px rgba(255, 92, 31, 0.55);
}
.btn--heat:hover { box-shadow: 0 22px 54px -10px rgba(255, 92, 31, 0.7); }

.btn--ghost-light {
  background: transparent; color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn--ghost-light:hover { border-color: #fff; color: #fff; }

/* ─────────────────────────── Cinema (scroll film) ─────────────────────────── */

.cinema { height: 780vh; position: relative; }

.cinema__stage {
  position: sticky; top: 0;
  height: 100vh; width: 100%;
  overflow: hidden;
  background: var(--bg-deep);
}

#cine-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}

.cinema__vignette {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 60%, rgba(16, 16, 20, 0.07) 100%);
  mix-blend-mode: multiply;
}

.cinema__scrim {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg,
    rgba(245, 245, 247, 0.93) 0%,
    rgba(245, 245, 247, 0.52) 38%,
    rgba(245, 245, 247, 0) 66%);
}
.cinema__scrim.flip {
  background: linear-gradient(270deg,
    rgba(245, 245, 247, 0.93) 0%,
    rgba(245, 245, 247, 0.52) 38%,
    rgba(245, 245, 247, 0) 66%);
}

/* chapters */
.chapters { position: absolute; inset: 0; pointer-events: none; }

.chapter {
  position: absolute;
  max-width: 500px;
  opacity: 0;
  visibility: hidden;
  will-change: opacity;
}

.chapter--left  { top: 50%; left: 6.5%;  translate: 0 -50%; text-align: left; }
.chapter--right { top: 50%; right: 6.5%; translate: 0 -50%; text-align: right; }
.chapter--right .chapter__actions { justify-content: flex-end; }
.chapter--cta { bottom: 9%; left: 6.5%; top: auto; translate: 0 0; max-width: 640px; text-align: left; }

.chapter__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.3em;
  color: var(--mut);
  margin-bottom: 18px;
}
.chapter__eyebrow i {
  width: 26px; height: 2px; border-radius: 2px;
  background: var(--ink);
  opacity: 0.5;
}
.chapter--right .chapter__eyebrow { flex-direction: row-reverse; }
.chapter--heat .chapter__eyebrow { color: var(--heat); }
.chapter--heat .chapter__eyebrow i { background: var(--grad-heat); opacity: 1; }

.chapter__title {
  font-family: var(--font-d);
  font-weight: 900; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 0.92;
  font-size: clamp(42px, 6vw, 84px);
  margin-bottom: 22px;
}
.chapter__title .tick { font-style: normal; color: var(--heat); }

/* split-line machinery: outer clips, inner rises */
.line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line__in {
  display: block;
  transform: translateY(115%);
  will-change: transform;
}

.chapter__sub {
  font-size: 15.5px; font-weight: 500; line-height: 1.65;
  color: var(--ink-2);
  max-width: 420px;
}
.chapter--right .chapter__sub { margin-left: auto; }

.chapter__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.chapter__actions .btn { pointer-events: auto; }

.chapter__hint {
  display: flex; align-items: center; gap: 12px;
  margin-top: 38px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.28em;
  color: var(--mut-2);
}
.mouse {
  width: 22px; height: 34px;
  border: 1.5px solid var(--mut-2); border-radius: 12px;
  display: inline-flex; justify-content: center; padding-top: 6px;
}
.mouse__wheel {
  width: 3px; height: 7px; border-radius: 3px;
  background: var(--mut);
  animation: wheel 1.6s var(--ease) infinite;
}
@keyframes wheel {
  0%   { transform: translateY(0);   opacity: 1; }
  70%  { transform: translateY(9px); opacity: 0; }
  100% { transform: translateY(0);   opacity: 0; }
}

/* film progress rail */
.filmbar {
  position: absolute; right: 26px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  z-index: 5;
}
.filmbar__label {
  writing-mode: vertical-rl;
  font-size: 9px; font-weight: 700; letter-spacing: 0.26em;
  color: var(--mut-2);
  transition: opacity 0.3s ease;
}
.filmbar__dots { display: flex; flex-direction: column; gap: 10px; }
.filmbar__dots button {
  width: 8px; height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(16, 16, 20, 0.3);
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}
.filmbar__dots button:hover { transform: scale(1.35); border-color: var(--ink); }
.filmbar__dots button.on {
  background: var(--heat);
  border-color: var(--heat);
  transform: scale(1.2);
}
.filmbar__track {
  width: 2px; height: 92px;
  background: rgba(16, 16, 20, 0.12);
  border-radius: 2px; overflow: hidden;
}
#filmbar-fill { width: 100%; height: 0%; background: var(--ink); }
.filmbar__counter {
  font-family: var(--font-d); font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; color: var(--mut);
  font-variant-numeric: tabular-nums;
}

/* ─────────────────────────── Marquee ─────────────────────────── */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  padding: 20px 0;
  position: relative;
  z-index: 2;
}
.marquee--dark {
  background: var(--dark);
  border-color: rgba(255, 255, 255, 0.07);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marq 30s linear infinite;
  will-change: transform;
}
.marquee__track--rev { animation-direction: reverse; }
.marquee__track span {
  display: flex; align-items: center;
  font-family: var(--font-d); font-weight: 800;
  font-size: 15px; letter-spacing: 0.24em;
  color: var(--ink);
  white-space: nowrap;
}
.marquee--dark .marquee__track span { color: rgba(255, 255, 255, 0.85); }
.marquee__track i {
  font-style: normal;
  color: var(--heat);
  margin: 0 22px;
  font-size: 12px;
}
@keyframes marq { to { transform: translateX(-50%); } }

/* ─────────────────────────── Section scaffolding ─────────────────────────── */

section { position: relative; }

.section-head { max-width: 720px; margin-bottom: clamp(44px, 6vw, 72px); }

.section-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.3em;
  color: var(--heat);
  margin-bottom: 16px;
}
.section-eyebrow--light { color: var(--heat-2); }

.section-title {
  font-family: var(--font-d);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.04;
  font-size: clamp(34px, 4.6vw, 58px);
}
/* split words (JS wraps; GSAP owns the transform — no CSS transform here) */
.section-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.section-title .w__in { display: inline-block; will-change: transform; }

.section-sub {
  margin-top: 18px;
  font-size: 16px; line-height: 1.7; color: var(--mut);
  max-width: 560px;
}
.section-sub--light { color: rgba(255, 255, 255, 0.62); }

.grad-heat {
  background: var(--grad-heat);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* reveal-on-scroll (simple elements) */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ─────────────────────────── Stats strip ─────────────────────────── */

.stats {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: clamp(48px, 6vw, 80px) 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
}
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: '';
  position: absolute; left: -14px; top: 50%;
  transform: translateY(-50%);
  height: 42px; width: 1px;
  background: var(--line);
}
.stat__num {
  display: block;
  font-family: var(--font-d); font-weight: 800;
  font-size: clamp(30px, 3.4vw, 46px);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block; margin-top: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--mut);
}

/* ─────────────────────────── Feature bento ─────────────────────────── */

.features { padding: clamp(80px, 10vw, 140px) 0; }

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
  perspective: 1200px;
}

.bento__card {
  grid-column: span 2;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow 0.45s var(--ease);
  transform-style: preserve-3d;
}
.bento__card:hover { box-shadow: var(--shadow-lg); }
.bento__card--wide { grid-column: span 4; }

.bento__media { overflow: hidden; aspect-ratio: 16 / 9; }
.bento__card--wide .bento__media { aspect-ratio: auto; flex: 1; min-height: 260px; }
.bento__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.bento__card:hover .bento__media img { transform: scale(1.05); }

.bento__body { padding: 24px 26px 28px; }
.bento__body h3 {
  font-family: var(--font-d); font-weight: 700;
  font-size: 19px; letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.bento__body p { font-size: 14px; line-height: 1.65; color: var(--mut); }

.bento__card--flat { padding: 30px 26px; background: var(--bg-deep); border-color: transparent; }
.bento__card--flat h3 {
  font-family: var(--font-d); font-weight: 700; font-size: 18px;
  margin: 18px 0 8px;
}
.bento__card--flat p { font-size: 14px; line-height: 1.65; color: var(--mut); }
.bento__icon {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--heat);
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}
.bento__card--flat:hover .bento__icon {
  transform: translateY(-3px) rotate(-4deg);
  box-shadow: 0 10px 22px -8px rgba(255, 92, 31, 0.35);
}
.bento__icon svg { width: 24px; height: 24px; }

/* ─────────────────────────── Oil comparison ─────────────────────────── */

.oil {
  background: var(--dark);
  color: #fff;
  padding: clamp(80px, 10vw, 140px) 0;
  overflow: hidden;
}
.oil::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(255, 92, 31, 0.12), transparent 60%),
    radial-gradient(50% 70% at 10% 90%, rgba(255, 138, 0, 0.07), transparent 60%);
  pointer-events: none;
}
.oil .section-title { color: #fff; }

.oil__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.oil__list { list-style: none; margin-top: 28px; display: grid; gap: 12px; }
.oil__list li {
  position: relative; padding-left: 30px;
  font-size: 15px; color: rgba(255, 255, 255, 0.78); line-height: 1.6;
}
.oil__list li b { color: #fff; }
.oil__list li::before {
  content: '';
  position: absolute; left: 0; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--grad-heat);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.oil__chart {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 44px);
  display: grid; gap: 26px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.oilbar__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
}
.oilbar__head span {
  font-size: 13px; font-weight: 600; letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.65);
}
.oilbar__head b {
  font-family: var(--font-d); font-size: 15px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.oilbar__head u { text-decoration: none; }
.oilbar--hero .oilbar__head span { color: #fff; }
.oilbar--hero .oilbar__head b { color: var(--heat-2); }

.oilbar__track {
  height: 14px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.oilbar__fill {
  height: 100%; width: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
  transition: width 1.5s var(--ease-out) 0.25s;
}
.oilbar__fill--heat {
  background: var(--grad-heat);
  box-shadow: 0 0 18px rgba(255, 92, 31, 0.5);
}
.in .oilbar__fill, .oil__chart.in .oilbar__fill { width: var(--w); }

.oil__note {
  font-size: 11.5px; color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
}

/* ─────────────────────────── Presets ─────────────────────────── */

.presets { padding: clamp(80px, 10vw, 140px) 0; }

.preset-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.preset {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 12px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s ease, background 0.3s ease;
}
.preset svg {
  width: 30px; height: 30px;
  fill: none; stroke: var(--ink); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 8px;
  transition: stroke 0.3s ease, transform 0.35s var(--ease);
}
.preset span {
  font-family: var(--font-d); font-weight: 700; font-size: 14px;
}
.preset em {
  font-style: normal; font-size: 11px; color: var(--mut-2);
  font-variant-numeric: tabular-nums;
}
.preset:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.preset:hover svg { transform: scale(1.14) rotate(-3deg); }
.preset:active { transform: translateY(-1px) scale(0.97); }
.preset.active {
  background: var(--ink); border-color: var(--ink);
  box-shadow: var(--shadow-md);
}
.preset.active svg { stroke: var(--heat-2); }
.preset.active span { color: #fff; }
.preset.active em { color: rgba(255, 255, 255, 0.55); }

/* LED display mock */
.display {
  margin-top: clamp(40px, 5vw, 64px);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.display__screen {
  display: flex; align-items: center; gap: clamp(26px, 5vw, 60px);
  background: #0a0a0e;
  border-radius: 20px;
  padding: clamp(22px, 3.4vw, 34px) clamp(30px, 5vw, 60px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 24px 60px -20px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}
.display__screen::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), transparent 40%);
  pointer-events: none;
}
.display__label {
  font-family: var(--font-d); font-weight: 700;
  font-size: 13px; letter-spacing: 0.3em;
  color: var(--heat-2);
}
.display__digits {
  font-family: var(--font-d); font-weight: 600;
  font-size: clamp(38px, 5vw, 56px);
  letter-spacing: 0.04em;
  color: #eef0ff;
  text-shadow: 0 0 18px rgba(160, 190, 255, 0.35);
  font-variant-numeric: tabular-nums;
}
.display__digits small {
  font-size: 0.38em; font-weight: 600; letter-spacing: 0.1em;
  color: rgba(238, 240, 255, 0.55);
  margin-left: 6px;
}
.display__digits--dim { color: rgba(238, 240, 255, 0.8); }
.display__hint { font-size: 12.5px; color: var(--mut-2); }

/* ─────────────────────────── Steps ─────────────────────────── */

.steps {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(80px, 10vw, 130px) 0;
}
.steps__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(26px, 4vw, 54px);
}
.step { position: relative; padding-top: 26px; }
.step::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 44px; height: 3px; border-radius: 3px;
  background: var(--grad-heat);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.9s var(--ease-out) 0.25s;
}
.step.in::before { transform: scaleX(1); }
.step__num {
  font-family: var(--font-d); font-weight: 800;
  font-size: 15px; letter-spacing: 0.18em;
  color: var(--mut-2);
}
.step h3 {
  font-family: var(--font-d); font-weight: 700;
  font-size: 22px; margin: 12px 0 10px;
}
.step p { font-size: 14.5px; line-height: 1.7; color: var(--mut); }

/* ─────────────────────────── Specs ─────────────────────────── */

.specs { padding: clamp(80px, 10vw, 140px) 0; }

.specs__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.specs__intro { position: sticky; top: 110px; }
.specs__imgwrap {
  margin-top: 34px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.specs__img { width: 100%; }

.specs__table dl { display: grid; }
.specs__table dl > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 17px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease, padding 0.25s ease;
}
.specs__table dl > div:hover { background: rgba(16, 16, 20, 0.025); padding-left: 10px; }
.specs__table dl > div:first-child { border-top: 1px solid var(--line); }
.specs__table dt {
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--mut);
  text-transform: uppercase;
  padding-top: 2px;
}
.specs__table dd { font-size: 15px; font-weight: 500; color: var(--ink-2); }

/* ─────────────────────────── Gallery ─────────────────────────── */

.gallery { padding: clamp(80px, 10vw, 140px) 0 0; background: var(--bg); }
.gallery .section-head { margin-bottom: clamp(30px, 4vw, 50px); }

.gallery__rail {
  display: flex; gap: 22px;
  overflow-x: auto;
  padding: 6px max(28px, calc((100vw - var(--wrap)) / 2 + 28px)) 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}
.gallery__rail::-webkit-scrollbar { display: none; }
.gallery__rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery__rail.dragging img { pointer-events: none; }

.gallery__rail figure {
  flex: 0 0 min(560px, 78vw);
  scroll-snap-align: center;
}
.gallery__rail .imgbox { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.gallery__rail img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  -webkit-user-drag: none;
}
.gallery__rail figcaption {
  margin-top: 14px;
  font-size: 13px; font-weight: 600; color: var(--mut);
  letter-spacing: 0.02em;
}

.gallery__progress {
  height: 2px;
  background: rgba(16, 16, 20, 0.09);
  border-radius: 2px;
  margin: 10px 0 clamp(80px, 10vw, 140px);
  overflow: hidden;
}
#gallery-progress-fill {
  height: 100%; width: 0%;
  background: var(--ink);
  border-radius: 2px;
}

/* ─────────────────────────── Reviews ─────────────────────────── */

.reviews {
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: clamp(80px, 10vw, 140px) 0;
}
.reviews__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.review {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 18px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review__stars { color: var(--heat); font-size: 15px; letter-spacing: 3px; }
.review__stars .half { opacity: 0.35; }
.review blockquote { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.review figcaption { display: flex; flex-direction: column; gap: 2px; }
.review figcaption b { font-size: 14px; }
.review figcaption span { font-size: 12.5px; color: var(--mut-2); }

/* ─────────────────────────── FAQ ─────────────────────────── */

.faq { padding: clamp(80px, 10vw, 140px) 0; }
.faq__wrap {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.faq__wrap .section-head { position: sticky; top: 110px; margin: 0; }

.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }

.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: none;
  cursor: pointer;
  text-align: left;
  padding: 22px 4px;
  font-family: var(--font-d); font-weight: 600; font-size: 17px;
  color: var(--ink);
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.faq__q:hover { color: var(--heat); padding-left: 10px; }
.faq__item.open .faq__q { color: var(--heat); }

.faq__chev {
  flex: 0 0 auto;
  width: 12px; height: 12px;
  border-right: 2px solid var(--mut); border-bottom: 2px solid var(--mut);
  transform: rotate(45deg);
  transition: transform 0.4s var(--ease);
  margin-right: 6px;
}
.faq__item.open .faq__chev { transform: rotate(225deg); border-color: var(--heat); }

.faq__a { overflow: hidden; height: 0; }
.faq__a p {
  padding: 0 44px 24px 4px;
  font-size: 14.5px; line-height: 1.7; color: var(--mut);
}

/* ─────────────────────────── Buy / CTA ─────────────────────────── */

.buy {
  background: var(--dark);
  color: #fff;
  padding: clamp(90px, 11vw, 160px) 0;
  overflow: hidden;
}
.buy__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 70% at 28% 60%, rgba(255, 92, 31, 0.16), transparent 65%),
    radial-gradient(40% 55% at 80% 15%, rgba(255, 138, 0, 0.08), transparent 60%);
  pointer-events: none;
}
.buy .section-title { color: #fff; }

.buy__grid {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.buy__media { position: relative; display: flex; justify-content: center; }
.buy__media img {
  width: min(460px, 84%);
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55));
  animation: hover-float 7s ease-in-out infinite;
}
@keyframes hover-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}
.buy__shadow {
  position: absolute; bottom: -8px; left: 50%;
  width: 55%; height: 34px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.55), transparent 70%);
  filter: blur(6px);
  animation: shadow-pulse 7s ease-in-out infinite;
}
@keyframes shadow-pulse {
  0%, 100% { transform: translateX(-50%) scaleX(1);    opacity: 0.9; }
  50%      { transform: translateX(-50%) scaleX(0.86); opacity: 0.6; }
}

.buy__price {
  display: flex; align-items: baseline; gap: 16px;
  margin: 26px 0 26px;
}
.buy__price b {
  font-family: var(--font-d); font-weight: 800;
  font-size: clamp(44px, 5vw, 62px); letter-spacing: -0.02em;
}
.buy__price s { font-size: 22px; color: rgba(255, 255, 255, 0.38); }
.buy__badge {
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em;
  color: #fff;
  background: var(--grad-heat);
  border-radius: 999px;
  padding: 7px 14px;
  transform: translateY(-6px);
  animation: badge-pulse 2.6s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 92, 31, 0.45); }
  50%      { box-shadow: 0 0 0 9px rgba(255, 92, 31, 0); }
}

.buy__perks { list-style: none; display: grid; gap: 11px; margin-bottom: 34px; }
.buy__perks li {
  position: relative; padding-left: 30px;
  font-size: 15px; color: rgba(255, 255, 255, 0.78);
}
.buy__perks li::before {
  content: '';
  position: absolute; left: 0; top: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--grad-heat);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.buy__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.buy__fine {
  margin-top: 20px;
  font-size: 12px; color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.03em;
}

/* ─────────────────────────── Footer ─────────────────────────── */

.footer {
  background: #08080b;
  color: rgba(255, 255, 255, 0.6);
  padding: clamp(60px, 7vw, 90px) 0 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav__logo--footer { color: #fff; }
.footer__brand p {
  margin-top: 18px;
  font-size: 13.5px; line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
}
.footer__col { display: grid; gap: 12px; align-content: start; }
.footer__col h4 {
  font-family: var(--font-d); font-weight: 700;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 6px;
}
.footer__col a {
  font-size: 14px; color: rgba(255, 255, 255, 0.72);
  transition: color 0.25s ease, transform 0.25s var(--ease);
  width: fit-content;
}
.footer__col a:hover { color: var(--heat-2); transform: translateX(4px); }

/* the CMS can add columns (pages, blog, contact) — reflow instead of wrapping */
.footer__grid:has(> :nth-child(5)) { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer__grid:has(> :nth-child(5)) .footer__brand { grid-column: span 2; min-width: 240px; }

.footer__social { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px; font-weight: 600;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.footer__social a:hover { color: var(--heat-2); border-color: var(--heat-2); }
.footer__social svg { width: 17px; height: 17px; fill: currentColor; }

.footer__base {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 28px;
  font-size: 12px; color: rgba(255, 255, 255, 0.35);
}

/* ─────────────────────────── Back to top ─────────────────────────── */

.totop {
  position: fixed; right: 24px; bottom: 24px;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  z-index: 45;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease), visibility 0.35s,
              box-shadow 0.3s ease;
  box-shadow: var(--shadow-md);
}
.totop.show { opacity: 1; visibility: visible; transform: translateY(0); }
.totop:hover { box-shadow: var(--shadow-lg); }

/* ─────────────────────────── Reduced motion ─────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .line__in, .section-title .w__in { transform: none !important; }
  .chapter { visibility: visible; }
  .buy__media img, .buy__shadow, .mouse__wheel, .loader__led,
  .marquee__track, .grain, .buy__badge { animation: none; }
  .grain { display: none; }
  .cursor { display: none !important; }
}

/* ─────────────────────────── Responsive ─────────────────────────── */

@media (max-width: 1080px) {
  .stats__grid { grid-template-columns: repeat(3, 1fr); gap: 34px 20px; }
  .stat:nth-child(4)::before { display: none; }
  .bento__card { grid-column: span 3; }
  .bento__card--wide { grid-column: span 6; }
  .preset-grid { grid-template-columns: repeat(4, 1fr); }
  .reviews__grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .oil__grid, .buy__grid, .specs__grid, .faq__wrap { grid-template-columns: 1fr; }
  .specs__intro, .faq__wrap .section-head { position: static; }
  .specs__imgwrap { max-width: 480px; }
  .steps__grid { grid-template-columns: 1fr; gap: 40px; }
  .buy__media { order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .cinema { height: 640vh; }

  .filmbar { display: none; }

  .chapter,
  .chapter--left, .chapter--right {
    top: auto; bottom: 8%;
    left: 24px; right: 24px;
    translate: 0 0;
    max-width: none;
    text-align: center;
  }
  .chapter__sub { margin: 0 auto; max-width: 420px; font-size: 14.5px; }
  .chapter--right .chapter__sub { margin: 0 auto; }
  .chapter__title { font-size: clamp(34px, 10vw, 46px); }
  .chapter__eyebrow i { display: none; }
  .chapter__actions { justify-content: center; }
  .chapter--right .chapter__actions { justify-content: center; }
  .chapter__hint { justify-content: center; margin-top: 26px; }
  .chapter--cta { bottom: 8%; }

  .cinema__scrim,
  .cinema__scrim.flip {
    background: linear-gradient(0deg,
      rgba(245, 245, 247, 0.92) 0%,
      rgba(245, 245, 247, 0.55) 38%,
      rgba(245, 245, 247, 0) 62%);
  }

  .marquee { padding: 15px 0; }
  .marquee__track span { font-size: 12.5px; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n+1)::before { display: none; }
  .preset-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .preset { padding: 18px 8px 14px; }
  .display__screen { width: 100%; justify-content: center; gap: 22px; }

  .specs__table dl > div { grid-template-columns: 1fr; gap: 4px; padding: 14px 2px; }

  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__base { flex-direction: column; }

  .buy__actions .btn { width: 100%; }

  .grain { display: none; }
}

@media (max-width: 420px) {
  .preset-grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { gap: 26px 14px; }
}
