/* ============================================================
   Jensen Interceptor MKIII — Silver microsite
   ============================================================ */

:root {
  --bg: #08090b;
  --bg-2: #10131a;
  --steel: #39414d;
  --chrome-dim: #9aa3b0;
  --chrome: #d6dde8;
  --brass: #cdb287;
  --bone: #eceff2;
  --muted: #8f939b;
  --line: rgba(205, 178, 135, 0.14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--chrome-dim); color: #0b0d10; }

img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- fixed WebGL canvas + grain ---------- */
#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: -6%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.05;
  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'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(3%, -5%); }
  40% { transform: translate(-4%, 4%); }
  60% { transform: translate(5%, 2%); }
  80% { transform: translate(-3%, -3%); }
}

main { position: relative; z-index: 1; }

/* ---------- loader (shown only when JS is running) ---------- */
html:not(.js) .loader { display: none; }
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__mark {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  color: var(--brass);
  border: 1px solid var(--line);
  padding: 0.7rem 1rem;
}
.loader__bar {
  width: min(300px, 60vw);
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.loader__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--chrome);
  transition: width 0.3s ease-out;
}
.loader__pct {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--muted);
}

/* ---------- header ---------- */
.site-head {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  transition: background 0.5s, backdrop-filter 0.5s, box-shadow 0.5s, transform 0.45s var(--ease);
}
.site-head.is-scrolled {
  background: rgba(8, 9, 11, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-head.is-hidden { transform: translateY(-110%); }
.site-head__mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.site-head__mark span { color: var(--chrome); }
.site-head__nav { display: flex; gap: 1.8rem; }
.site-head__nav a {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.3s;
}
.site-head__nav a:hover { color: var(--bone); }
.site-head__right { display: flex; align-items: center; gap: 1.2rem; }
.lang {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.lang a { display: block; line-height: 0; border-radius: 3px; }
.lang svg {
  width: 26px;
  height: 13px;
  display: block;
  border-radius: 2px;
  opacity: 0.4;
  filter: saturate(0.85);
  box-shadow: 0 0 0 1px var(--line);
  transition: opacity 0.3s, box-shadow 0.3s;
}
.lang a:hover svg { opacity: 0.85; }
.lang a[aria-current="page"] svg {
  opacity: 1;
  filter: none;
  box-shadow: 0 0 0 1px rgba(205, 178, 135, 0.7);
}
.lang a:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.site-head__cta {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brass);
  border: 1px solid rgba(205, 178, 135, 0.35);
  padding: 0.6rem 1.1rem;
  border-radius: 2rem;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.site-head__cta:hover { background: var(--brass); color: var(--bg); border-color: var(--brass); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero__inner { padding: 0 1rem; }
.hero__kicker {
  font-size: clamp(0.62rem, 1.4vw, 0.78rem);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  /* 11 letters — much smaller per-letter than the DB9's three */
  font-size: clamp(2.6rem, 12.5vw, 10.5rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  display: flex;
  justify-content: center;
}
.hero__letter { display: inline-block; }
.js .hero__letter {
  opacity: 0;
  transform: translateY(0.35em) rotate(4deg);
  filter: blur(12px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
}
.hero__letter--accent { color: var(--chrome); }
body.is-loaded .hero__letter { opacity: 1; transform: none; filter: blur(0); }
body.is-loaded .hero__letter[data-d="1"] { transition-delay: 0.15s; }
body.is-loaded .hero__letter[data-d="2"] { transition-delay: 0.28s; }
body.is-loaded .hero__letter[data-d="3"] { transition-delay: 0.41s; }
.hero__sub {
  font-size: clamp(0.68rem, 1.6vw, 0.85rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.4rem;
}
.hero__scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.hero__scroll span {
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(var(--brass), transparent);
  animation: scrollcue 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollcue {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.hero__scroll p {
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
}

/* hero entrance for kicker/sub handled via .reveal below */

/* ---------- marquee ---------- */
.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.05rem 0;
  background: rgba(8, 9, 11, 0.45);
}
.marquee__track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 36s linear infinite;
}
.marquee__track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- chapters ---------- */
.chapter {
  position: relative;
  padding: clamp(6rem, 12vw, 11rem) clamp(1.2rem, 5vw, 4rem);
  max-width: 1280px;
  margin: 0 auto;
  scroll-margin-top: 4.5rem;
}
.chapter--full { max-width: none; padding-left: 0; padding-right: 0; }
.chapter__head { margin-bottom: clamp(2.5rem, 6vw, 5rem); max-width: 780px; }
.chapter__head--pad { padding: 0 clamp(1.2rem, 5vw, 4rem); }
.chapter__no {
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--chrome);
  margin-bottom: 1.1rem;
}
.chapter h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
}
.chapter h2 em {
  font-style: italic;
  color: var(--brass);
}
.chapter__intro {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  max-width: 56ch;
}

/* ---------- story ---------- */
.story {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.story__media { position: sticky; top: 14vh; }
figure figcaption {
  margin-top: 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-2);
  aspect-ratio: 1200 / 798;
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame img {
  width: 100%;
  filter: saturate(0.92) contrast(1.05);
  transition: transform 1.2s var(--ease);
}
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 90px rgba(8, 9, 11, 0.55);
  pointer-events: none;
}
figure:hover .frame img { transform: scale(1.04); }
.story__lede {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.35;
  color: var(--bone);
  margin-bottom: 1.6rem;
}
.story__text p:not(.story__lede) { color: var(--muted); margin-bottom: 1.2rem; max-width: 52ch; }
.story__chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; }
.chip {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid var(--line);
  padding: 0.55rem 0.95rem;
  border-radius: 2rem;
}

/* ---------- v12 ---------- */
.chapter--v12 { max-width: none; overflow: hidden; }
.chapter--v12 > .chapter__head,
.chapter--v12 > .stats { max-width: 1280px; margin-left: auto; margin-right: auto; }
.chapter--v12 > .chapter__head { margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.v12bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}
.v12bg span {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(20rem, 55vw, 46rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(205, 178, 135, 0.07);
  transform: translateY(calc(var(--scroll-v12, 0) * -6rem));
}
.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat {
  background: rgba(8, 9, 11, 0.88);
  padding: clamp(1.6rem, 3.5vw, 3rem) clamp(1.2rem, 2.5vw, 2.4rem);
  display: flex;
  flex-direction: column;
}
.stat__num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.stat__unit {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--chrome);
  margin-top: 0.5rem;
}
.stat__label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 0.9rem;
}

/* ---------- collage (interieur) ---------- */
.collage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2.4vw, 2rem);
}
.collage__item { will-change: transform; }
.collage__item--a { grid-column: 1 / 8; }
.collage__item--b { grid-column: 8 / 13; margin-top: clamp(2rem, 6vw, 5rem); }
.collage__item--c { grid-column: 1 / 6; margin-top: clamp(-2rem, -1vw, -1rem); }
.collage__item--d { grid-column: 6 / 10; margin-top: clamp(1.5rem, 4vw, 3.5rem); }
.collage__item--e { grid-column: 10 / 13; margin-top: clamp(0.5rem, 2vw, 1.5rem); }

/* ---------- duo (exterieur) ---------- */
.duo {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2.4vw, 2rem);
}
.duo__item { grid-column: span 5; will-change: transform; }
.duo__item--tall { grid-column: span 7; }
.duo__item--wide { grid-column: span 7; margin-top: clamp(-1rem, 1vw, 2rem); }
.duo__item:nth-child(3) { grid-column: span 5; }

/* ---------- gallery rail ---------- */
.rail__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: inherit;
  -webkit-user-drag: none;
}
.rail__btn:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 4px;
  border-radius: 4px;
}

.rail {
  display: flex;
  gap: clamp(1rem, 2vw, 1.8rem);
  overflow-x: auto;
  padding: 0.5rem clamp(1.2rem, 5vw, 4rem) 2rem;
  scroll-snap-type: x proximity;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: var(--chrome-dim) transparent;
}
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail::-webkit-scrollbar { height: 3px; }
.rail::-webkit-scrollbar-thumb { background: var(--chrome-dim); }
.rail figure {
  flex: 0 0 auto;
  width: clamp(240px, 34vw, 460px);
  scroll-snap-align: center;
}
.rail .frame { aspect-ratio: 3 / 2; }
.rail .frame img { width: 100%; height: 100%; object-fit: cover; }
.rail figure figcaption { display: flex; justify-content: space-between; }
.rail figure figcaption i { font-style: normal; color: var(--chrome); }

/* ---------- dossier ---------- */
.dossier {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.checks { list-style: none; }
.checks li {
  padding: 1.3rem 0 1.3rem 2.2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.75rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--chrome);
  box-shadow: 0 0 12px rgba(214, 221, 232, 0.6);
}
.checks strong {
  display: block;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.checks span { color: var(--muted); font-size: 0.86rem; }
.spec-tables details {
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-bottom: 0.9rem;
  background: rgba(16, 19, 26, 0.5);
  overflow: hidden;
}
.spec-tables summary {
  cursor: pointer;
  padding: 1rem 1.3rem;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  list-style: none;
  position: relative;
}
.spec-tables summary::-webkit-details-marker { display: none; }
.spec-tables summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--muted);
  transition: transform 0.3s;
}
.spec-tables details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.spec-tables table { width: 100%; border-collapse: collapse; }
.spec-tables td {
  padding: 0.7rem 1.3rem;
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}
.spec-tables td:first-child { color: var(--muted); width: 46%; }

/* ---------- cta ---------- */
.cta {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: clamp(6rem, 10vw, 9rem) 1.5rem;
}
.cta__bg { position: absolute; inset: 0; }
.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(0.85) contrast(1.08);
  transform: scale(calc(1.05 + var(--scroll-cta, 0) * 0.08));
}
.cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, var(--bg) 82%),
    linear-gradient(rgba(10,5,7,0.6), rgba(10,5,7,0.25) 40%, rgba(10,5,7,0.7));
}
.cta__inner { position: relative; max-width: 760px; }
.cta h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 1.02;
}
.cta h2 em { font-style: italic; color: var(--brass); }
.cta__price {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  color: var(--bone);
  margin-top: 2rem;
  line-height: 1;
}
.cta__price span {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.8rem;
}
.cta__note {
  color: var(--muted);
  max-width: 52ch;
  margin: 1.6rem auto 0;
  font-size: 0.95rem;
}
.cta__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.4rem;
}
.btn {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 2rem;
  border-radius: 3rem;
  transition: transform 0.35s var(--ease), background 0.35s, color 0.35s, box-shadow 0.35s;
}
.btn--primary {
  background: var(--chrome);
  color: #0b0d10;
  box-shadow: 0 8px 34px rgba(214, 221, 232, 0.3);
}
.btn--primary:hover { transform: translateY(-2px); background: #f2f5fa; box-shadow: 0 12px 44px rgba(214, 221, 232, 0.42); }
.btn--ghost { border: 1px solid rgba(236, 239, 242, 0.35); color: var(--bone); }
.btn--ghost:hover { background: var(--bone); color: var(--bg); transform: translateY(-2px); }
.btn--sm { padding: 0.7rem 1.3rem; font-size: 0.68rem; }
.cta__meta {
  margin-top: 2.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- footer ---------- */
.foot {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 2rem clamp(1.2rem, 4vw, 3rem) 5.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
}
.foot a { color: var(--brass); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---------- engine start button ---------- */
.startup {
  position: fixed;
  z-index: 45;
  left: calc(1.3rem + env(safe-area-inset-left, 0px));
  bottom: calc(1.3rem + env(safe-area-inset-bottom, 0px));
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid rgba(205, 178, 135, 0.4);
  background: rgba(16, 19, 26, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--brass);
  font-family: var(--sans);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.startup:hover { border-color: var(--brass); transform: scale(1.05); }
.startup:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
.startup {
  touch-action: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.startup__ring {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--chrome);
  opacity: 0;
  pointer-events: none;
}
/* press-and-hold: ring charges up while priming */
.startup.is-priming {
  transform: scale(0.96);
  border-color: rgba(214, 221, 232, 0.6);
  box-shadow: 0 0 26px rgba(214, 221, 232, 0.3);
}
.startup.is-priming .startup__ring { animation: prime 0.7s linear forwards; }
@keyframes prime {
  0% { opacity: 0; transform: scale(1.45); }
  100% { opacity: 1; transform: scale(1); }
}
/* fully charged: release to fire */
.startup.is-armed {
  color: var(--chrome);
  border-color: var(--chrome);
  box-shadow: 0 0 34px rgba(214, 221, 232, 0.45);
  transform: scale(1.04);
}
.startup.is-armed .startup__ring { animation: armed 0.5s ease-in-out infinite alternate; }
@keyframes armed {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0.55; transform: scale(1.12); }
}
.startup.is-playing { color: var(--chrome); border-color: rgba(214, 221, 232, 0.6); }
.startup.is-playing .startup__ring { animation: rev 1.1s ease-out infinite; }
@keyframes rev {
  0% { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.55); }
}
.startup__label { position: relative; display: block; }

@media (max-width: 900px) {
  .startup {
    width: 62px;
    height: 62px;
    font-size: 0.5rem;
    bottom: calc(5.4rem + env(safe-area-inset-bottom, 0px)); /* clear the sticky bar */
  }
}

/* ---------- sticky bar ---------- */
.stickybar {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 200%);
  visibility: hidden;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  max-width: calc(100vw - 1.2rem);
  padding: 0.55rem 0.6rem 0.55rem 1.4rem;
  background: rgba(16, 19, 26, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 3rem;
  transition: transform 0.6s var(--ease), visibility 0.6s;
  white-space: nowrap;
}
.stickybar.is-visible { transform: translate(-50%, 0); visibility: visible; }
.stickybar__title { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.stickybar__price { font-family: var(--serif); font-size: 1.15rem; color: var(--brass); }

/* ---------- lightbox ---------- */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 6, 8, 0.94);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 84vh;
  border-radius: 4px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: none;
  border: 1px solid var(--line);
  color: var(--bone);
  font-size: 1.5rem;
  line-height: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--bone); color: var(--bg); }
.lightbox__close { top: 1.4rem; right: 1.4rem; }
.lightbox__nav--prev { left: 1.4rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1.4rem; top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  color: var(--muted);
}

/* ---------- reveal animations (hidden state only when JS is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.in-view[data-d="4"] { transition-delay: 0.55s; }
.reveal.in-view[data-d="6"] { transition-delay: 0.9s; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .site-head__nav { display: none; }
  .story { grid-template-columns: 1fr; }
  .story__media { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .collage { grid-template-columns: 1fr 1fr; }
  .collage__item { grid-column: auto !important; margin-top: 0 !important; }
  .collage__item--a { grid-column: 1 / -1 !important; }
  .duo { grid-template-columns: 1fr 1fr; }
  .duo__item { grid-column: auto !important; margin-top: 0 !important; }
  .duo__item:nth-child(3) { grid-column: 1 / -1 !important; }
  .duo__item--wide { grid-column: 1 / -1 !important; }
  .dossier { grid-template-columns: 1fr; }
  .stickybar__title { display: none; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .site-head { padding-left: 1rem; padding-right: 1rem; }
  .site-head__mark { font-size: 1.15rem; }
  .site-head__right { gap: 0.7rem; }
  .lang { gap: 0.4rem; }
  .lang svg { width: 22px; height: 11px; }
  .site-head__cta { font-size: 0.62rem; padding: 0.5rem 0.8rem; }
  /* keep the pill readable next to three flags: drop the price prefix */
  .site-head__cta-price { display: none; }
  .rail figure { width: 78vw; }
  .cta__actions .btn {
    width: 100%;
    max-width: 340px;
    padding: 0.95rem 1.2rem;
    letter-spacing: 0.12em;
    line-height: 1.5;
  }
}

@media (max-width: 420px) {
  .stickybar { gap: 0.7rem; padding: 0.5rem 0.5rem 0.5rem 1rem; }
  .stickybar__price { font-size: 1rem; }
  .stickybar .btn--sm { padding: 0.65rem 1rem; letter-spacing: 0.08em; }
}

/* ---------- print ---------- */
@media print {
  body { background: #fff; color: #000; }
  .js .reveal, .js .hero__letter { opacity: 1 !important; transform: none !important; filter: none !important; }
  .loader, .grain, #gl, .site-head, .stickybar, .lightbox, .marquee, .hero__scroll, .startup { display: none !important; }
  .chapter h2, .chapter h2 em, .cta h2, .cta__price, .checks strong, .stat__num { color: #000; }
  .chapter__intro, .checks span, .story__text p, .cta__note { color: #333; }
  .spec-tables details { display: block; }
  .spec-tables details > table { display: table; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero__letter { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .marquee__track { animation: none; }
  .grain { animation: none; }
  .hero__scroll span { animation: none; }
  .startup.is-playing .startup__ring,
  .startup.is-priming .startup__ring,
  .startup.is-armed .startup__ring { animation: none; opacity: 0.7; }
  #gl { display: none; }
  body { background: var(--bg-2); }
}
