/* Custom Creative · marketing site
   Lava palette from apps/studio/ui/src/styles/tokens.css. Outfit 400/500/600.
   10px corners everywhere. No hover or button scaling. Accent (Lava) marks the
   active thing only; never a large fill. */

@font-face { font-family: "Outfit"; src: url("../fonts/Outfit-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/Outfit-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/Outfit-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  /* Lava */
  --void: #151419;      /* Dark Void, page ground  */
  --gluon: #1B1B1E;     /* panels                  */
  --slate: #262626;     /* cards, inputs           */
  --snow: #FBFBFB;      /* text, selected, primary */
  --lava: #F56E0F;      /* accent                  */
  --lava-glow: #FFA25C;
  --lava-soft: rgba(245, 110, 15, .16);
  --muted: #A3A2A8;
  --ink-2: #CFCFD2;
  --line: rgba(251, 251, 251, .08);
  --line-2: rgba(251, 251, 251, .18);
  --well: #0E0E10;
  --err: #FF5C6A;
  --radius: 10px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --bar-h: 72px;

  /* scrollcraft roles */
  --sc-canvas: var(--void);
  --sc-surface: var(--gluon);
  --sc-ink: var(--snow);
  --sc-ink-soft: var(--muted);
  --sc-accent: var(--lava);
  --sc-accent-ink: var(--void);
  --sc-font-display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sc-font-text: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sc-r-sm: var(--radius); --sc-r-md: var(--radius); --sc-r-lg: var(--radius);
  --sc-track-tight: -0.045em;
  --sc-shadow-color: 250 10% 3%;
}

body { font-weight: 400; letter-spacing: 0; }
.sc-display { font-weight: 500; }
.sc-body { color: var(--muted); font-size: clamp(1rem, .95rem + .3vw, 1.2rem); line-height: 1.55; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--snow); color: var(--void); padding: 10px 14px; border-radius: var(--radius); text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- chrome */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--sc-gutter);
  background: linear-gradient(to bottom, rgba(21,20,25,.82), rgba(21,20,25,0));
}
.bar__mark img { height: 22px; width: auto; }
.bar__nav { display: flex; align-items: center; gap: 10px; }
.bar__lang {
  height: 40px; min-width: 44px; padding: 0 12px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: rgba(21,20,25,.5); color: var(--snow);
  font-weight: 500; font-size: 13px; letter-spacing: .04em; cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.bar__lang:hover { border-color: var(--lava); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 18px; border-radius: var(--radius);
  font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn--snow { background: var(--snow); color: var(--void); }
.btn--snow:hover { background: #fff; box-shadow: 0 0 0 1px var(--lava), 0 10px 30px -12px rgba(245,110,15,.6); }
.btn--ghost { background: rgba(21,20,25,.45); color: var(--snow); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--lava); }
.btn--wide { width: 100%; height: 52px; font-size: 16px; }
.btn__meta { color: var(--muted); font-size: 13px; padding-left: 10px; border-left: 1px solid var(--line-2); }
.ico { width: 16px; height: 16px; color: var(--lava); }

.tag {
  position: absolute; z-index: 21; margin: 0;
  font-size: 12px; font-weight: 500; letter-spacing: .01em; color: var(--ink-2);
  padding: 6px 10px; border-radius: var(--radius);
  background: rgba(14,14,16,.62); border: 1px solid var(--line);
  backdrop-filter: none;
}
.tag::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lava); margin-right: 8px; vertical-align: 1px; }

/* ------------------------------------------------------------------ hero */
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform-origin: 62% 58%;
  transform: scale(calc(1.02 + var(--sc-p, 0) * .14));
  will-change: transform;
}
.act-hero { --sc-p: 0; }
.hero__copy { bottom: clamp(5rem, 13vh, 8rem); max-width: min(40rem, 86vw); }
.hero__title { font-size: clamp(3rem, 1.4rem + 4.4vw, 5.6rem); line-height: .94; letter-spacing: -0.05em; text-shadow: 0 2px 24px rgba(10,10,12,.55); }
.hero__body { max-width: 34ch; margin: 26px 0 30px; font-size: clamp(1.02rem, .95rem + .35vw, 1.25rem); color: var(--ink-2); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__tag { right: var(--sc-gutter); bottom: clamp(1.5rem, 4vh, 2.5rem); }
.act-hero .sc-scrim--lead {
  background:
    linear-gradient(90deg, rgba(21,20,25,.92) 0%, rgba(21,20,25,.78) 30%, rgba(21,20,25,.3) 48%, transparent 62%),
    linear-gradient(to top, rgba(21,20,25,.7) 0%, transparent 40%),
    linear-gradient(to bottom, rgba(21,20,25,.55), transparent 22%);
}

/* ------------------------------------------------------------------ pain */
.pain { display: grid; align-items: center; }
.pain__bg { position: absolute; inset: 0; }
.pain__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .62;
  transform: scale(calc(1.08 - var(--sc-p, 0) * .06)); }
.pain__bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(21,20,25,.96) 0%, rgba(21,20,25,.86) 38%, rgba(21,20,25,.25) 72%, rgba(21,20,25,.1) 100%); }
.pain__col { position: relative; z-index: 2; padding-inline: var(--sc-gutter); max-width: 46rem; }
.pain__title { margin: 0 0 28px; }
.pain__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pain__list li {
  position: relative; width: fit-content;
  font-size: clamp(1.25rem, 1rem + 1.1vw, 2rem); font-weight: 400; line-height: 1.32; color: var(--snow);
  /* Each item is struck through once it has had a moment on screen. */
  --strike: clamp(0, (var(--sc-p, 0) - .1 - var(--i) * .08) * 9, 1);
}
.pain__list li span {
  color: color-mix(in oklab, var(--snow) calc(100% - var(--strike) * 55%), var(--void));
  /* The strike is a background on the inline text, so a wrapped item gets one line per row, each through its own words. */
  background: linear-gradient(var(--lava), var(--lava)) no-repeat 0 58% / calc(var(--strike) * 100%) 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 3px; margin: 0 -3px;
}
.pain__end { margin: 34px 0 0; font-size: clamp(1.1rem, 1rem + .5vw, 1.45rem); color: var(--lava-glow); font-weight: 500; max-width: 30ch; }

/* ------------------------------------------------------------------ turn */
.turn { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding: calc(var(--bar-h) + 12px) var(--sc-gutter) 40px; }
.turn__media { position: relative; aspect-ratio: 2048 / 1143; border-radius: var(--radius); overflow: hidden; box-shadow: var(--sc-e3); }
.turn__fig { position: absolute; inset: 0; margin: 0; }
.turn__fig img { width: 100%; height: 100%; object-fit: cover; }
.turn__fig .tag { left: 14px; bottom: 14px; }
.turn__fig--over .tag { left: auto; right: 14px; }
.turn__copy { max-width: 30rem; }
.turn__copy h2 { margin: 0 0 18px; }

/* --------------------------------------------------------------- process */
.proc { display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 18px 44px; padding: calc(var(--bar-h) + 18px) var(--sc-gutter) 34px; }
.proc__rail { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; }
.proc__steps { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 3vw, 44px); }
.proc__steps li { display: flex; align-items: baseline; gap: 10px; color: var(--muted); font-weight: 500; font-size: 14px; transition: color .35s var(--ease); white-space: nowrap; }
.proc__steps b { font-weight: 600; font-variant-numeric: tabular-nums; color: rgba(251,251,251,.3); transition: color .35s var(--ease); }
.proc[data-step="1"] .proc__steps [data-n="1"], .proc[data-step="2"] .proc__steps [data-n="2"], .proc[data-step="3"] .proc__steps [data-n="3"] { color: var(--snow); }
.proc[data-step="1"] .proc__steps [data-n="1"] b, .proc[data-step="2"] .proc__steps [data-n="2"] b, .proc[data-step="3"] .proc__steps [data-n="3"] b { color: var(--lava); }
.proc__track { flex: 1; height: 2px; background: rgba(251,251,251,.1); border-radius: 2px; overflow: hidden; }
.proc__track i { display: block; height: 100%; background: linear-gradient(90deg, var(--lava), var(--lava-glow)); transform-origin: left; transform: scaleX(var(--sc-p, 0)); }
.proc__copy { position: relative; align-self: center; min-height: 15rem; }
.proc__txt { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity .55s var(--ease), transform .7s var(--ease), filter .55s var(--ease); }
.proc__txt h2 { margin: 0 0 16px; }
.proc[data-step="1"] .proc__txt[data-n="1"], .proc[data-step="2"] .proc__txt[data-n="2"], .proc[data-step="3"] .proc__txt[data-n="3"] { opacity: 1; transform: none; filter: none; }

.proc__stage { position: relative; align-self: center; justify-self: end; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100svh - var(--bar-h) - 110px); max-width: calc((100svh - var(--bar-h) - 110px) * 16 / 9); min-height: 0; border-radius: var(--radius); overflow: hidden; background: var(--well); box-shadow: var(--sc-e3); border: 1px solid var(--line); }
.pv { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; }
.proc[data-step="1"] .pv[data-n="1"], .proc[data-step="2"] .pv[data-n="2"], .proc[data-step="3"] .pv[data-n="3"] { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.pv__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* step 1 · scan */
.pv--scan { --scan: 0; background: #0b0b0e; }
.pv__img--ghost { filter: grayscale(1) contrast(1.9) brightness(.42) sepia(.3) hue-rotate(-12deg); opacity: .9; }
.pv__img--live { clip-path: inset(0 0 calc((1 - var(--scan)) * 100%) 0); }
.pv__grid { position: absolute; inset: 0; opacity: calc(.7 - var(--scan) * .55);
  background-image: linear-gradient(rgba(245,110,15,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(245,110,15,.16) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(to bottom, transparent calc(var(--scan) * 100% - 2%), #000 calc(var(--scan) * 100% + 6%)); }
/* The scan line is a light source by design (David asked for flashy motion), hence its glow. It moves by transform only. */
.pv__beam { position: absolute; inset: 0; pointer-events: none; transform: translateY(calc(var(--scan) * 100%)); opacity: calc(1 - var(--scan) * var(--scan) * var(--scan)); }
.pv__beam::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--lava-glow);
  box-shadow: 0 0 18px 4px rgba(245,110,15,.75), 0 0 80px 20px rgba(245,110,15,.25); }
.pin { position: absolute; display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .35s var(--ease), transform .45s cubic-bezier(.3,1.5,.5,1); }
.pin.is-on { opacity: 1; transform: none; }
.pin i { width: 10px; height: 10px; border-radius: 50%; background: var(--lava); box-shadow: 0 0 0 4px var(--lava-soft), 0 0 14px 2px rgba(245,110,15,.6); }
.pin em { font-style: normal; font-size: 12.5px; font-weight: 500; padding: 6px 10px; border-radius: var(--radius); background: rgba(14,14,16,.82); border: 1px solid var(--line-2); white-space: nowrap; }
.pin--a { left: 8%; top: 18%; } .pin--b { left: 46%; top: 30%; } .pin--c { left: 26%; top: 74%; } .pin--d { left: 62%; top: 52%; }
.pv__status { position: absolute; right: 14px; bottom: 14px; font-size: 12px; color: var(--muted); padding: 6px 10px; border-radius: var(--radius); background: rgba(14,14,16,.8); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.pv__status { display: flex; align-items: center; gap: 8px; }
.pv__status i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.pv__status.is-ready i { background: var(--lava); }
.pv__status [data-i18n="proc.loaded"], .pv__status.is-ready [data-i18n="proc.loading"] { display: none; }
.pv__status.is-ready [data-i18n="proc.loaded"] { display: inline; color: var(--snow); }

/* step 2 · control barrage */
.cut img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .18s linear, transform .9s cubic-bezier(.16,1,.3,1); }
.cut img.is-on { opacity: 1; transform: scale(1); }
.cut img.is-contain { object-fit: contain; background: #0b0b0e; }
.pv--ctrl.is-dim .cut img.is-on { opacity: .28; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; mix-blend-mode: soft-light; }
.flash.is-go { animation: flash .38s ease-out; }
@keyframes flash { 0% { opacity: .85; } 100% { opacity: 0; } }
.chips { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: var(--radius); background: rgba(14,14,16,.78); border: 1px solid var(--line-2); color: var(--muted); font-size: 13px;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease); }
.chip i { font-style: normal; width: 18px; text-align: center; }
.chip b { font-weight: 500; }
.chip em { font-style: normal; color: var(--snow); font-variant-numeric: tabular-nums; min-width: 0; }
.chip em:empty { display: none; }
.chip.is-done { color: var(--ink-2); border-color: rgba(245,110,15,.4); }
.chip.is-on { background: var(--snow); color: var(--void); border-color: var(--snow); box-shadow: 0 0 0 1px var(--lava), 0 12px 30px -10px rgba(245,110,15,.7); }
.chip.is-on em { color: var(--lava); font-weight: 600; }
.chip.is-on i { color: var(--lava); }
.gauge { position: absolute; right: 18px; top: 18px; bottom: 70px; width: 54px; opacity: 0; transition: opacity .3s var(--ease); }
.pv--ctrl[data-chip="1"] .gauge { opacity: 1; }
.gauge__scale { position: absolute; inset: 0 0 0 auto; width: 2px; background: rgba(251,251,251,.25); display: flex; flex-direction: column; justify-content: space-between; }
.gauge__scale i { position: relative; right: 10px; translate: -100% -50%; font-style: normal; font-size: 11px; color: var(--ink-2); white-space: nowrap; text-shadow: 0 1px 6px #000; }
.gauge__scale i:last-child { translate: -100% 50%; }
.gauge__cam { position: absolute; right: -15px; top: 0; translate: 0 -50%; transform: translateY(calc(var(--h, 1) * var(--gh, 100px))); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--lava); color: var(--void); transition: transform .45s cubic-bezier(.3,1.5,.5,1); box-shadow: 0 0 0 4px var(--lava-soft); }
.gauge__cam svg { width: 18px; height: 18px; }

/* step 3 · shutter */
.pv--shot .pv__img { transform: scale(1.04); transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
.pv--shot.is-shot .pv__img { transform: scale(1); }
.iris { position: absolute; left: 50%; top: 50%; width: 140%; aspect-ratio: 1; translate: -50% -50%; pointer-events: none; opacity: 0; }
.iris path { fill: #0b0b0e; stroke: rgba(245,110,15,.5); stroke-width: .25; }
.pv--shot.is-shot .iris { animation: iris .62s cubic-bezier(.7,0,.3,1); }
@keyframes iris { 0% { opacity: 1; transform: rotate(-40deg) scale(1.6); } 45% { opacity: 1; transform: rotate(0) scale(.22); } 100% { opacity: 0; transform: rotate(30deg) scale(1.8); } }
.flash--shot { mix-blend-mode: normal; }
.pv--shot.is-shot .flash--shot { animation: flash .5s ease-out .24s backwards; }
.focus { position: absolute; left: 30%; top: 26%; width: 48%; height: 56%; pointer-events: none; }
.focus i { position: absolute; width: 22px; height: 22px; border: 2px solid var(--lava); opacity: 0; transition: transform .5s cubic-bezier(.3,1.6,.5,1) .5s, opacity .2s .5s; }
.focus i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; transform: translate(-30px,-30px); }
.focus i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; transform: translate(30px,-30px); }
.focus i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; transform: translate(-30px,30px); }
.focus i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; transform: translate(30px,30px); }
.pv--shot.is-shot .focus i { opacity: 1; transform: none; }
.exif { position: absolute; left: 14px; top: 14px; margin: 0; font-size: 12.5px; font-weight: 500; letter-spacing: .02em; padding: 7px 11px; border-radius: var(--radius); background: rgba(14,14,16,.82); border: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.loupes { position: absolute; right: 14px; top: 14px; display: flex; gap: 12px; }
.loupe { margin: 0; width: clamp(92px, 9vw, 136px); opacity: 0; transform: translateY(24px) scale(.9); transition: opacity .4s var(--ease), transform .6s cubic-bezier(.3,1.5,.5,1); }
.loupe--final { transition-delay: .12s; }
.pv--shot.is-loupe .loupe { opacity: 1; transform: none; }
.loupe img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 2px solid var(--line-2); box-shadow: 0 18px 40px -12px rgba(0,0,0,.9); }
.loupe--final img { border-color: var(--lava); box-shadow: 0 0 0 4px var(--lava-soft), 0 18px 40px -12px rgba(0,0,0,.9); }
.loupe figcaption { margin-top: 8px; text-align: center; font-size: 12px; font-weight: 500; color: var(--muted); }
.loupe--final figcaption { color: var(--snow); }

/* ------------------------------------------------------------------- how */
.how { display: flex; align-items: center; padding-top: var(--bar-h); }
.rail { gap: clamp(16px, 2vw, 28px); padding-inline: var(--sc-gutter); align-items: center; }
.rail__lead { flex: 0 0 min(30rem, 78vw); padding-right: 2vw; }
.rail__lead h2 { margin: 0 0 16px; }
.rail__end { flex: 0 0 min(20rem, 70vw); font-size: clamp(1.15rem, 1rem + .6vw, 1.6rem); color: var(--ink-2); margin: 0; padding-left: 16px; border-left: 2px solid var(--lava); }
.shot { flex: 0 0 min(54rem, 84vw, calc((100svh - var(--bar-h) - 150px) * 1.6)); }
.shot__frame {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden;
  background: var(--gluon); border: 1px solid var(--line); box-shadow: var(--sc-e3);
}
.shot__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1.7)); transform-origin: var(--o, 0 0); }
.shot__frame.is-missing img { display: none; }
.shot h3 { margin: 18px 0 6px; font-size: 1.15rem; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.shot h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lava); }
.shot p { margin: 0; color: var(--muted); max-width: 36ch; }
@media (prefers-reduced-motion: no-preference) {
  .act-how .shot { --k: clamp(0, (var(--sc-p, 0) * 7) - var(--n, 0), 1); opacity: calc(.55 + var(--k) * .45); }
}

/* ----------------------------------------------------------------- sweep */
/* The quiet before the peak, made to move: a 3D ring of the 14 real GLE
   generations turns with the scroll above the generated light horizon,
   sparks rise off the line, and the front car finally pushes in to hand off
   to the dial. */
.act-sweep { --sc-p: 0; }
.sweep { perspective: 1500px; perspective-origin: 50% 46%; }
.sweep video[data-sc-scrub], .sweep .sc-stage__poster { transform: scale(calc(1 + var(--sc-p) * .12)); transform-origin: 50% 64%; }
.sweep__glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(60% 22% at 50% 64%, rgba(245,110,15,.55), rgba(245,110,15,.12) 45%, transparent 70%);
  opacity: calc(.15 + var(--sc-p) * .85); mix-blend-mode: screen;
}
.sparks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.orbit { position: absolute; inset: 0; z-index: 3; transform-style: preserve-3d; pointer-events: none; }
.orbit__ring { position: absolute; left: 50%; top: 47%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.orbit__card {
  position: absolute; left: calc(var(--cw) / -2); top: calc(var(--cw) * -.28);
  width: var(--cw); aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  backface-visibility: hidden; transform-style: preserve-3d;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(251,251,251,.08);
  -webkit-box-reflect: below 6px linear-gradient(transparent 55%, rgba(255,255,255,.18));
}
.orbit__card img { width: 100%; height: 100%; object-fit: cover; }
.orbit__card::after { content: ""; position: absolute; inset: 0; background: #0f0e12; opacity: var(--dim, .6); }
.orbit__card.is-front { box-shadow: 0 30px 70px -18px rgba(0,0,0,.9), 0 0 0 1.5px var(--lava), 0 0 50px -6px rgba(245,110,15,.55); }
.sweep__copy { position: absolute; z-index: 20; left: 50%; top: calc(var(--bar-h) + 6vh); translate: -50% 0; width: min(60rem, 90vw); text-align: center; }
.sweep__line { margin: 0; font-size: clamp(2rem, 1.2rem + 3.4vw, 4.6rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.02; }
.sweep__sub { margin: 14px 0 0; color: var(--ink-2); font-size: clamp(1rem, .95rem + .3vw, 1.2rem);
  opacity: clamp(0, (var(--sc-p) - .08) * 8, 1); }
.orbit__hud { position: absolute; z-index: 20; left: 50%; bottom: clamp(1.5rem, 6vh, 3.5rem); translate: -50% 0; display: flex; align-items: center; gap: 16px; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); }
.orbit__deg { color: var(--lava); font-weight: 600; font-size: 15px; min-width: 4.5em; text-align: right; }
.orbit__bar { position: relative; width: clamp(140px, 22vw, 320px); height: 2px; border-radius: 2px; background: rgba(251,251,251,.14); overflow: hidden; }
.orbit__bar i { position: absolute; inset: 0; background: var(--lava); transform-origin: left; transform: scaleX(0); }
.orbit__count { min-width: 4.5em; }

/* ------------------------------------------------------------------ dial */
.dial { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 30vw, 420px); gap: 0; padding-top: var(--bar-h); }
.dial__photo { position: relative; overflow: hidden; margin: 12px 0 24px var(--sc-gutter); border-radius: var(--radius); background: var(--well); }
.dial__stack { position: absolute; inset: 0; }
.dial__stack img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .42s var(--ease);
}
.dial__stack img.is-on { opacity: 1; }
.dial__tag { left: 16px; bottom: 16px; }
.dial__panel {
  display: flex; flex-direction: column; gap: 18px; overflow: auto;
  margin: 12px var(--sc-gutter) 24px 16px; padding: 22px; border-radius: var(--radius);
  background: var(--gluon); border: 1px solid var(--line);
}
.dial__intro h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.4rem); }
.dial__body { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.dial__ctrl { padding: 16px; border-radius: var(--radius); background: var(--slate); }
.dial__head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 500; color: var(--muted); }
.dial__deg { color: var(--snow); font-variant-numeric: tabular-nums; }
.dial__ring { position: relative; width: min(100%, 220px); margin: 10px auto 6px; aspect-ratio: 1; border-radius: 50%; cursor: grab; touch-action: none; }
.dial__ring:active { cursor: grabbing; }
.dial__ring:focus-visible { outline: 2px solid var(--lava); outline-offset: 4px; border-radius: 50%; }
.dial__ring svg { width: 100%; height: 100%; overflow: visible; }
.ring__track { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.ring__ticks line { stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.ring__ticks line.is-off { stroke: rgba(251,251,251,.14); }
.ring__ticks line.is-on { stroke: var(--lava); }
.ring__car rect { fill: #3a3a3f; }
.ring__car .ring__glass { fill: #17171a; }
.ring__knob line { stroke: var(--lava); stroke-width: 1.5; stroke-dasharray: 2 4; }
.ring__knob circle { fill: var(--lava); stroke: var(--void); stroke-width: 3; }
.ring__knob { transform-origin: 100px 100px; transform-box: view-box; transition: transform .5s cubic-bezier(.3,1.4,.5,1); }
.dial__ring.is-drag .ring__knob { transition: none; }
.ring__front { position: absolute; left: 50%; top: 50%; translate: -50% -58px; font-size: 9px; color: var(--muted); pointer-events: none; }
.dial__view { margin: 6px 0 12px; text-align: center; font-weight: 500; font-size: 15px; min-height: 2.6em; }
.dial__meta { margin: 0; display: grid; gap: 8px; }
.dial__meta div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding-top: 8px; border-top: 1px solid var(--line); }
.dial__meta dt { color: var(--muted); }
.dial__meta dd { margin: 0; text-align: right; display: flex; align-items: center; gap: 8px; }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--c, #888); }
.dial__hint { margin: 12px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.dial__facts { list-style: none; margin: auto 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dial__facts li { font-size: 12.5px; font-weight: 500; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--line); color: var(--ink-2); }
.dial__facts li::before { content: "✓"; color: var(--lava); margin-right: 8px; }

/* ----------------------------------------------------------------- paint */
.paint__media { position: absolute; inset: 0; }
.paint__fig { position: absolute; inset: 0; margin: 0; }
.paint__fig img { width: 100%; height: 100%; object-fit: cover; }
.paint__fig .tag { top: calc(var(--bar-h) + 8px); left: var(--sc-gutter); }
.paint__fig--over .tag { left: auto; right: var(--sc-gutter); }
.paint__copy { position: absolute; z-index: 20; padding: 18px 20px 18px 0; text-shadow: 0 1px 16px rgba(10,10,12,.7); left: var(--sc-gutter); bottom: clamp(7rem, 18vh, 11rem); max-width: 34rem; }
.paint__copy h2 { margin: 0 0 14px; }
.act-paint .sc-scrim--band { z-index: 19; background: linear-gradient(to top, rgba(21,20,25,.96) 0%, rgba(21,20,25,.86) 30%, rgba(21,20,25,.4) 52%, transparent 66%), linear-gradient(90deg, rgba(21,20,25,.55), transparent 45%); }
.paint__copy .sc-body { color: var(--ink-2); }
.cmd {
  position: absolute; z-index: 22; left: 50%; bottom: clamp(1.25rem, 4vh, 2.5rem); translate: -50% 0;
  width: min(44rem, calc(100vw - 2 * var(--sc-gutter)));
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; border-radius: var(--radius);
  background: rgba(27,27,30,.92); border: 1px solid var(--line-2); box-shadow: var(--sc-e3);
}
.cmd__label { font-size: 12px; font-weight: 500; color: var(--muted); padding-right: 12px; border-right: 1px solid var(--line-2); }
.cmd__text { flex: 1; min-width: 0; font-size: 15px; line-height: 1.35; white-space: normal; text-wrap: pretty; }
.cmd__caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -3px; background: var(--lava); }
.cmd__go { flex: none; height: 38px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: var(--radius); background: var(--slate); color: var(--muted); font-size: 13px; font-weight: 500; transition: background-color .25s var(--ease), color .25s var(--ease); }
.cmd__go.is-live { background: var(--snow); color: var(--void); box-shadow: 0 0 0 1px var(--lava); }
.swatches { position: absolute; z-index: 22; right: var(--sc-gutter); bottom: clamp(5.5rem, 13vh, 7rem); list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.swatches li { display: flex; align-items: center; gap: 8px; font-size: 12px; font-variant-numeric: tabular-nums; padding: 6px 10px 6px 6px; border-radius: var(--radius); background: rgba(14,14,16,.7); border: 1px solid var(--line); color: var(--muted); transition: border-color .3s var(--ease), color .3s var(--ease); }
.swatches li i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); border: 1px solid var(--line-2); }
.swatches li.is-on { border-color: var(--lava); color: var(--snow); }

/* ------------------------------------------------------------------- fmt */
.fmt { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 16px 40px; padding: calc(var(--bar-h) + 16px) var(--sc-gutter) 28px; }
.fmt__copy { align-self: center; }
.fmt__copy h2 { margin: 0 0 14px; }
.fmt__view { position: relative; grid-row: 1 / span 2; grid-column: 2; }
.fmt__img { position: absolute; margin: 0; left: 50%; top: 50%; translate: -50% -50%; opacity: 0; transition: opacity .45s var(--ease); border-radius: var(--radius); overflow: hidden; box-shadow: var(--sc-e3); }
.fmt__img.is-on { opacity: 1; }
.fmt__img img { width: 100%; height: 100%; object-fit: cover; }
.vf { position: absolute; left: 0; top: 0; width: 26px; height: 26px; border: 2px solid var(--lava); pointer-events: none; z-index: 3; transition: transform .5s var(--ease); }
.vf--tl { border-right: 0; border-bottom: 0; border-top-left-radius: var(--radius); }
.vf--tr { border-left: 0; border-bottom: 0; border-top-right-radius: var(--radius); }
.vf--bl { border-right: 0; border-top: 0; border-bottom-left-radius: var(--radius); }
.vf--br { border-left: 0; border-top: 0; border-bottom-right-radius: var(--radius); }
.fmt__legend { align-self: end; }
.fmt__ratios { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 2px; }
.fmt__ratios li { display: grid; grid-template-columns: 4.2rem 1fr; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); color: var(--muted); transition: color .3s var(--ease); }
.fmt__ratios li b { font-weight: 500; font-variant-numeric: tabular-nums; }
.fmt__ratios li.is-on { color: var(--snow); }
.fmt__ratios li.is-on b { color: var(--lava); }
.fmt__res { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 13px; }
.fmt__res b { font-weight: 600; color: var(--snow); padding: 4px 9px; border-radius: var(--radius); border: 1px solid var(--line-2); font-size: 12px; }

/* ------------------------------------------------------------------ save */
.save__head { max-width: 40rem; margin-bottom: clamp(32px, 5vw, 56px); }
.save__head h2 { margin: 0 0 16px; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: clamp(.98rem, .92rem + .3vw, 1.15rem); }
.compare th, .compare td { text-align: left; padding: 18px 20px; border-top: 1px solid var(--line); vertical-align: top; }
.compare thead th { border-top: 0; font-size: 13px; font-weight: 500; color: var(--muted); padding-bottom: 12px; }
.compare thead th:last-child { color: var(--lava); }
.compare tbody th { font-weight: 500; color: var(--muted); width: 18%; font-size: .9em; }
.compare td { color: var(--muted); width: 41%; }
.compare td:last-child { color: var(--snow); background: linear-gradient(90deg, rgba(245,110,15,.06), transparent 70%); border-left: 2px solid var(--lava); }
.compare tbody tr:last-child > * { border-bottom: 1px solid var(--line); }

/* ----------------------------------------------------------------- close */
.close { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.close__lead h2 { margin: 0 0 16px; }
.close__video { position: relative; margin: 32px 0 0; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--well); border: 1px solid var(--line); }
.close__video video { width: 100%; height: 100%; object-fit: cover; }
.close__video .tag { left: 14px; top: 14px; }
.form { display: grid; gap: 16px; padding: clamp(20px, 2.4vw, 32px); border-radius: var(--radius); background: var(--gluon); border: 1px solid var(--line); }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--slate);
  color: var(--snow); padding: 12px 14px; font-size: 15px; transition: border-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lava); box-shadow: 0 0 0 3px var(--lava-soft); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.field__err { margin: 0; min-height: 0; font-size: 12.5px; color: var(--err); }
.field__err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { margin: 0; font-size: 14px; color: var(--ink-2); }
.form__status:empty { display: none; }
.form__status.is-warn { color: var(--lava-glow); }

.foot { margin-top: clamp(64px, 9vw, 120px); padding: 32px var(--sc-gutter) 40px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; color: var(--muted); font-size: 13px; }
.foot img { height: 18px; width: auto; }
.foot p { margin: 0; max-width: 70ch; }

/* ----------------------------------------------------------------- modal */
.vmodal { width: min(1100px, 92vw); padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--well); color: var(--snow); overflow: hidden; }
.vmodal::backdrop { background: rgba(8,8,10,.82); }
.vmodal video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.vmodal__close { position: absolute; z-index: 2; right: 10px; top: 10px; width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid var(--line-2); background: rgba(21,20,25,.7); color: var(--snow); cursor: pointer; display: grid; place-items: center; }
.vmodal__close svg { width: 18px; height: 18px; }
.vmodal__pending { margin: 0; padding: 16px 20px; color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- mobile */
@media (max-width: 860px) {
  :root { --bar-h: 60px; }
  .bar__mark img { height: 18px; }
  .bar .btn { height: 40px; padding: 0 12px; font-size: 14px; }
  .hero__copy { bottom: 5.5rem; }
  .hero__title { font-size: clamp(2.6rem, 11vw, 3.6rem); }
  .hero__body { margin: 18px 0 22px; }
  .hero__tag { left: var(--sc-gutter); right: auto; bottom: 1.25rem; }
  .hero__img { object-position: 70% 50%; transform-origin: 70% 45%; }
  .compare tbody th { color: var(--snow); font-size: .95em; padding-bottom: 6px; }
  .act-hero .sc-scrim--lead { background: linear-gradient(to top, rgba(21,20,25,.96) 0%, rgba(21,20,25,.8) 40%, rgba(21,20,25,.2) 68%, transparent 80%); }
  .pain__bg::after { background: linear-gradient(to top, rgba(21,20,25,.96) 0%, rgba(21,20,25,.86) 55%, rgba(21,20,25,.45) 100%); }
  .pain { align-items: end; padding-bottom: 12vh; }
  .turn { grid-template-columns: 1fr; align-content: center; gap: 22px; }
  .turn__copy h2 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .turn__copy .sc-body { font-size: 15px; }
      .dial { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .dial__photo { margin: 8px var(--sc-gutter) 10px; }
  .dial__panel { margin: 0 var(--sc-gutter) 14px; padding: 14px; gap: 10px; overflow: visible; }
  .dial__intro, .dial__facts, .dial__hint { display: none; }
  .dial__ctrl { display: grid; grid-template-columns: 112px 1fr; grid-template-areas: "ring head" "ring view" "meta meta"; column-gap: 14px; padding: 12px; }
  .dial__ring { grid-area: ring; width: 112px; margin: 0; }
  .ring__front { translate: -50% -30px; }
  .dial__head { grid-area: head; align-self: end; }
  .dial__view { grid-area: view; text-align: left; margin: 4px 0 0; font-size: 14px; }
  .dial__meta { grid-area: meta; margin-top: 8px; }
  .paint__copy { bottom: 9.5rem; right: var(--sc-gutter); }
  .paint__copy .sc-body { font-size: 15px; }
  .swatches { display: none; }
  .cmd__label { display: none; }
  .cmd__text { font-size: 14px; }
  .fmt { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; }
  .fmt__view { grid-row: 2; grid-column: 1; }
  .fmt__copy .sc-body { font-size: 15px; }
  .fmt__ratios { grid-template-columns: repeat(5, auto); gap: 0; margin-bottom: 10px; }
  .fmt__ratios li { grid-template-columns: 1fr; padding: 8px 6px 0 0; font-size: 12px; }
  .fmt__ratios li span { display: none; }
  .fmt__res span { display: none; }
  .proc { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; gap: 14px; align-content: start; }
  .proc__copy { align-self: start; }
  .proc__steps li span { display: none; }
  .proc__stage { grid-row: 2; justify-self: stretch; max-height: none; max-width: none; }
  .proc__copy { grid-row: 3; min-height: 9.5rem; }
  .proc__copy h2 { font-size: clamp(1.6rem, 7vw, 2.1rem); margin-bottom: 8px; }
  .proc__copy .sc-body { font-size: 14.5px; }
  .chip { height: 32px; padding: 0 9px; font-size: 12px; }
  .chip b { display: none; }
  .chip.is-on b { display: inline; }
  .loupe { width: 64px; } .loupe figcaption { font-size: 10px; margin-top: 4px; } .loupes { gap: 8px; right: 8px; top: 40px; } .exif { font-size: 10.5px; left: 8px; top: 8px; }
  .pin em { font-size: 11px; padding: 4px 7px; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tr { padding: 14px 0; border-top: 1px solid var(--line); }
  .compare th, .compare td { border: 0; padding: 4px 0; }
  .compare td::before { content: attr(data-col); display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
  .compare td:last-child::before { color: var(--lava); }
  .compare td:last-child { padding: 8px 12px; margin-top: 6px; border-radius: var(--radius); border-left: 2px solid var(--lava); }
  .compare tbody tr:last-child > * { border-bottom: 0; }
  .close { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; gap: 12px; }
}

/* ------------------------------------------- touch: softer image changes */
.is-touch .dial__stack img { transition-duration: .75s; }
.is-touch .cut img { transition: opacity .55s var(--ease), transform 1.2s cubic-bezier(.16,1,.3,1); }
.is-touch .fmt__img { transition-duration: .7s; }
.is-touch .vf { transition-duration: .8s; }
.is-touch .proc__txt { transition-duration: .7s, .9s, .7s; }

/* -------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero__img, .pain__bg img { transform: none; }
  .dial__stack img, .fmt__img, .vf { transition: none; }
  .sweep video[data-sc-scrub], .sweep .sc-stage__poster { transform: none; }
  .sparks { display: none; }
  .pain__list li { --strike: 1; }
  .proc__txt, .pv, .cut img, .pin, .loupe, .focus i, .pv--shot .pv__img { transition: none !important; }
  .iris, .flash { display: none; }
}
