/* AIMVALUE — main stylesheet
   Dark premium theme. Motion lives in main.js (GSAP); this file only sets
   resting states, so the site reads correctly with JavaScript disabled. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-500-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-variable.woff2") format("woff2-variations"),
       url("../fonts/manrope-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --surface: #17171a;
  --surface-2: #1f1f23;
  --line: rgba(242, 238, 230, 0.12);
  --line-strong: rgba(242, 238, 230, 0.24);
  --text: #f2eee6;
  --muted: #a7a296;
  --faint: #8a857c;
  --accent: #c9a46a;
  --accent-soft: rgba(201, 164, 106, 0.16);
  --studio: #efede8;
  --studio-ink: #141416;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-hero: clamp(3.2rem, 7.6vw, 8rem);
  --fs-h1: clamp(3rem, 7.4vw, 7.2rem);
  --fs-h2: clamp(2.5rem, 5.6vw, 5.4rem);
  --fs-h3: clamp(1.75rem, 2.8vw, 2.6rem);
  --fs-lead: clamp(1.05rem, 1.25vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.8125rem;
  --fs-micro: 0.6875rem;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1480px;
  --radius: 18px;
  --radius-sm: 10px;
  --header-h: 72px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"], .list-reset { list-style: none; padding: 0; }
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

html {
  background: var(--bg);
  scroll-behavior: auto;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: var(--accent); color: var(--bg); }

/* Film grain: one static layer, never repainted */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("../img/grain.webp");
  background-size: 180px;
}

/* Pictures inside fixed-ratio frames fill the frame */
.col-card-media picture, .scene-media .parallax picture, .scene-inset picture,
.p-hero-media picture, .p-next-media picture, .p-slide picture, .p-thumbs picture,
.studio-stage picture, .hero-media picture {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.col-card-media picture img, .scene-media .parallax picture img, .scene-inset picture img,
.p-hero-media picture img, .p-next-media picture img, .p-slide picture img, .p-thumbs picture img,
.hero-media picture img {
  width: 100%; height: 100%; object-fit: cover;
}
img[style*="--ph"] { background-color: var(--ph); }
picture.is-studio img { background-color: transparent; }

/* ---------- Typography ---------- */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 0.95;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.05; }
em, .italic { font-style: italic; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 1.9em;
  height: 1em;
  flex: none;
  background: currentColor;
  -webkit-mask: url("../img/spark.svg") center / contain no-repeat;
  mask: url("../img/spark.svg") center / contain no-repeat;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--muted);
  max-width: 34em;
}
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(96px, 14vw, 200px); position: relative; }
.section-head { display: grid; gap: clamp(16px, 2vw, 28px); margin-bottom: clamp(40px, 6vw, 88px); }
.section-head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.3fr 1fr; gap: 48px; }
  .section-head--split .lead { justify-self: end; }
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font-size: var(--fs-small); font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  min-height: 52px;
  padding: 0 1.6em;
  border-radius: 999px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease-out), border-color 0.45s var(--ease-out), background-color 0.45s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.55s var(--ease-out);
}
.btn .btn-arrow { width: 1.1em; height: 1.1em; flex: none; transition: transform 0.45s var(--ease-out); }
.btn--primary { --btn-bg: var(--text); --btn-fg: var(--bg); --btn-bd: var(--text); }
.btn--ghost { --btn-bg: rgba(10, 10, 11, 0.2); }
@media (hover: hover) {
  .btn:hover { --btn-fg: var(--bg); --btn-bd: var(--accent); }
  .btn:hover::before { transform: translateY(0); }
  .btn:hover .btn-arrow { transform: translate(3px, -3px); }
}
.btn:active { transform: scale(0.98); }
.btn--sm { min-height: 42px; padding: 0 1.15em; font-size: var(--fs-small); }
.btn--block { width: 100%; }

.link-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
  padding-block: 6px;
}
.link-line::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(0.35);
  opacity: 0.6;
  transition: transform 0.5s var(--ease-out), opacity 0.5s;
}
.link-line svg { width: 0.95em; height: 0.95em; flex: none; }
.link-line { white-space: nowrap; }
@media (hover: hover) {
  .link-line:hover::after { transform: scaleX(1); transform-origin: left; opacity: 1; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: transform 0.6s var(--ease-out), background-color 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(10, 10, 11, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header:not(.is-solid) {
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.62) 0%, rgba(10, 10, 11, 0) 100%);
}
.site-header:not(.is-solid) .nav a,
.site-header:not(.is-solid) .lang-switch { color: var(--text); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55); }
.site-header:not(.is-solid) .lang-switch {
  background: rgba(10, 10, 11, 0.32);
  border-color: rgba(242, 238, 230, 0.28);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand-mark { width: 38px; height: auto; }
.brand-word { width: 124px; height: auto; }
.nav { display: none; }
.nav ul { display: flex; gap: clamp(20px, 2.4vw, 40px); }
.nav a {
  position: relative;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: color 0.3s;
  padding-block: 8px;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 2px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line);
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.14em;
  color: var(--muted);
  transition: color 0.3s, border-color 0.3s;
}
.lang-switch:hover { color: var(--text); border-color: var(--line-strong); }
.header-cta { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line);
}
.menu-toggle span {
  position: relative; display: block; width: 18px; height: 1.5px; background: var(--text);
  transition: background-color 0.3s;
}
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 100%; background: var(--text);
  transition: transform 0.45s var(--ease-out);
}
.menu-toggle span::before { transform: translateY(-6px); }
.menu-toggle span::after { transform: translateY(6px); }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: rotate(45deg); }
.menu-open .menu-toggle span::after { transform: rotate(-45deg); }

@media (min-width: 1000px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
  .header-cta { display: inline-flex; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  padding: calc(var(--header-h) + 32px) var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-in-out), visibility 0s linear 0.7s;
}
.menu-open .mobile-menu {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 0.7s var(--ease-in-out), visibility 0s;
}
.mobile-menu ul { display: grid; gap: 4px; }
.mobile-menu li { overflow: hidden; }
.mobile-menu a.mm-link {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 11vw, 4rem);
  line-height: 1.12;
  transform: translateY(110%);
  transition: transform 0.8s var(--ease-out);
}
.mobile-menu a.mm-link small {
  font-family: var(--font-body); font-size: var(--fs-micro);
  letter-spacing: 0.2em; color: var(--accent);
}
.menu-open .mobile-menu a.mm-link { transform: none; }
.menu-open .mobile-menu li:nth-child(2) a.mm-link { transition-delay: 0.06s; }
.menu-open .mobile-menu li:nth-child(3) a.mm-link { transition-delay: 0.12s; }
.menu-open .mobile-menu li:nth-child(4) a.mm-link { transition-delay: 0.18s; }
.mobile-menu-foot { display: grid; gap: 16px; justify-items: start; opacity: 0; transition: opacity 0.6s 0.3s; }
.menu-open .mobile-menu-foot { opacity: 1; }
@media (min-width: 1000px) { .mobile-menu { display: none; } }

/* ---------- Intro (first visit) ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  place-items: center;
  background: var(--bg);
}
.js.has-intro .intro { display: grid; animation: intro-fallback 0.01s linear 7s forwards; }
@keyframes intro-fallback { to { visibility: hidden; opacity: 0; } }
.intro-inner { display: grid; justify-items: center; gap: 28px; width: min(56vw, 300px); }
.intro-mark { width: 100%; overflow: visible; }
.intro-word { width: 100%; opacity: 0; }
.intro-counter {
  position: absolute; left: var(--gutter); bottom: 28px;
  font-size: var(--fs-micro); letter-spacing: 0.2em; color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--bg);
}
.hero-media {
  position: absolute;
  inset: 0;
  will-change: transform, clip-path;
}
.hero-media video, .hero-media img, .hero-media picture {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 42% 50%;
}
.hero-video { opacity: 0; }
@media (max-width: 759px), (orientation: portrait) {
  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(10,10,11,0.5) 0%, rgba(10,10,11,0) 20%),
      linear-gradient(0deg, rgba(10,10,11,0.97) 0%, rgba(10,10,11,0.82) 38%, rgba(10,10,11,0.35) 58%, rgba(10,10,11,0) 72%) !important;
  }
}
/* Landscape screens: push the watch right so the headline sits on the deck, not the dial */
@media (min-width: 760px) and (orientation: landscape) {
  .hero-media video, .hero-media .hero-poster, .hero-media .hero-poster img { left: 0; right: auto; width: 150%; }
  .hero-media .hero-poster img { object-position: 50% 50%; }
}
/* Portrait: lift the watch so the copy sits below the dial */
@media (max-width: 759px), (orientation: portrait) {
  .hero-media video, .hero-media .hero-poster { top: -16%; height: 116%; }
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0) 22%),
    linear-gradient(0deg, rgba(10,10,11,0.92) 0%, rgba(10,10,11,0.35) 38%, rgba(10,10,11,0) 62%),
    linear-gradient(90deg, rgba(10,10,11,0.8) 0%, rgba(10,10,11,0.45) 40%, rgba(10,10,11,0) 70%);
}
.hero .container { max-width: none; }
.hero .eyebrow { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(32px, 7vh, 88px);
}
.hero-title {
  text-shadow: 0 2px 40px rgba(10, 10, 11, 0.35);
  font-size: var(--fs-hero);
  line-height: 0.88;
  letter-spacing: -0.02em;
  margin: 18px 0 clamp(18px, 3vh, 32px);
  max-width: 8ch;
}
.hero .lead { color: rgba(242, 238, 230, 0.78); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 4vh, 40px); }
.hero-foot {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: clamp(32px, 7vh, 88px);
  display: inline-flex;
  align-items: center;
  gap: 24px;
  font-size: var(--fs-micro);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-spark { width: 54px; height: 28px; overflow: visible; }
.scroll-spark path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-scroll { display: none; align-items: center; gap: 14px; }
@media (min-width: 760px) { .hero-scroll { display: inline-flex; } }
@media (max-width: 759px) { .hero-foot { top: calc(var(--header-h) + 12px); bottom: auto; } }
.motion-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(242, 238, 230, 0.28);
  background: rgba(10, 10, 11, 0.35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--text); font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.motion-toggle svg { width: 14px; height: 14px; }
.motion-toggle path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.motion-toggle .i-play { display: none; fill: currentColor; stroke: none; }
.motion-toggle[aria-pressed="true"] .i-play { display: block; }
.motion-toggle[aria-pressed="true"] .i-pause { display: none; }
@media (max-width: 599px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: clamp(18px, 2.4vw, 30px);
  background: var(--bg);
}
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee-item {
  display: inline-flex; align-items: center; gap: clamp(20px, 3vw, 48px);
  padding-right: clamp(20px, 3vw, 48px);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.4vw, 4rem);
  line-height: 1;
  white-space: nowrap;
  color: var(--text);
}
.marquee-item:nth-child(even) { font-style: italic; color: var(--muted); }
.marquee-item svg { width: clamp(26px, 3vw, 44px); height: auto; color: var(--accent); flex: none; }

/* ---------- Story (the mark) ---------- */
.story { position: relative; }
.story-scroller { position: relative; }
.motion .story-scroller { height: 420vh; }
.story-sticky {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: center;
  overflow: hidden;
  padding-block: clamp(96px, 10vw, 140px);
}
.motion .story-sticky { position: sticky; top: 0; height: 100svh; padding-block: calc(var(--header-h) + 24px) 32px; }
.story-grid {
  display: grid;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
@media (min-width: 900px) {
  .story-grid { grid-template-columns: 1.15fr 1fr; }
}
.story-figure { position: relative; width: 100%; max-width: 640px; margin-inline: auto; }
.story-svg { width: 100%; height: auto; overflow: visible; }
.story-svg .ghost { fill: rgba(242, 238, 230, 0.06); }
.story-svg .ink { fill: var(--text); }
.story-svg .counter { fill: var(--accent); opacity: 0; }
.story-svg .peak-glow { opacity: 0; }
.story-svg .axis { stroke: var(--line); stroke-width: 1.5; }
.story-svg .tick { fill: var(--faint); font-family: var(--font-body); font-size: 15px; letter-spacing: 0.12em; }
.story-svg .chart { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }
.story-svg .node { fill: var(--bg); stroke: var(--accent); stroke-width: 2.5; opacity: 0; }
html:not(.motion) .story-svg .counter, html:not(.motion) .story-svg .node { opacity: 1; }

.story-copy { position: relative; }
.story-copy h2 { font-size: clamp(2.1rem, 4.4vw, 4.2rem); margin: 18px 0 clamp(20px, 3vw, 40px); }
.story-steps { position: relative; display: grid; gap: 28px; }
.motion .story-steps { overflow: clip; overflow-clip-margin: 8px; }
.motion .story-steps { display: grid; gap: 0; }
.motion .story-steps > li { grid-area: 1 / 1; }
.story-step { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; max-width: 30em; }
.story-step .k {
  grid-row: span 2;
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.2em; color: var(--accent);
  padding-top: 0.55em;
}
.story-step h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.story-step p { color: var(--muted); }
.story-progress {
  display: flex; gap: 8px; margin-top: clamp(24px, 4vw, 48px);
}
.story-progress span {
  height: 2px; flex: 1; max-width: 64px; background: var(--line);
  position: relative; overflow: hidden;
}
.story-progress span i {
  position: absolute; inset: 0; background: var(--accent);
  transform-origin: left; transform: scaleX(0);
}
html:not(.motion) .story-progress { display: none; }
@media (max-width: 899px) {
  .motion .story-sticky { align-content: center; }
  .story-figure { max-width: min(86vw, 520px, 46svh); }
  .story-svg .tick { font-size: 30px; }
  .story-copy h2 { font-size: clamp(1.9rem, 7.4vw, 2.6rem); margin-block: 12px 18px; }
}
@media (max-height: 700px) and (max-width: 899px) {
  .story-figure { max-width: min(56vw, 300px); }
}

/* ---------- Collections ---------- */
.collections { overflow: clip; }
.col-scroller { position: relative; }
.col-track {
  display: flex;
  gap: clamp(14px, 1.6vw, 24px);
  padding-block: 8px;
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.col-track::-webkit-scrollbar { display: none; }
.col-card {
  position: relative;
  flex: none;
  width: min(82vw, 420px);
  scroll-snap-align: start;
  display: grid;
  grid-template-rows: auto auto;
  gap: 18px;
  color: var(--text);
}
.col-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  isolation: isolate;
}
.col-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.2s var(--ease-out);
}
.col-card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,10,11,0.75) 0%, rgba(10,10,11,0) 45%);
  transition: opacity 0.6s;
}
.col-card-index {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(10, 10, 11, 0.5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.2em;
  color: var(--text);
}
.col-card-swatches {
  position: absolute; left: 20px; bottom: 20px; z-index: 1;
  display: flex; gap: 6px; align-items: center;
}
.swatch-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22), 0 0 0 1px rgba(0,0,0,0.25);
  position: relative;
}
.swatch-dot[data-stitch]::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%;
  border: 1.5px dashed var(--s);
}
.col-card-go {
  position: absolute; right: 18px; bottom: 18px; z-index: 1;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--text); color: var(--bg);
  transform: scale(0.8) rotate(-45deg); opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.4s;
}
.col-card-go svg { width: 18px; height: 18px; }
.col-card-body { display: grid; gap: 4px; padding-inline: 4px; }
.col-card-body h3 { font-size: clamp(1.9rem, 2.6vw, 2.5rem); }
.col-card-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: var(--fs-small); }
@media (hover: hover) {
  .col-card:hover .col-card-media img { transform: scale(1); }
  .col-card:hover .col-card-go { transform: none; opacity: 1; }
}
.col-card:focus-visible { outline: none; }
.col-card:focus-visible .col-card-media { outline: 2px solid var(--accent); outline-offset: 4px; }
.col-progress {
  margin: clamp(20px, 3vw, 40px) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 0;
  display: flex; align-items: center; gap: 18px;
  color: var(--muted); font-size: var(--fs-micro); letter-spacing: 0.2em; text-transform: uppercase;
}
.col-progress-bar { flex: 1; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.col-progress-bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0.14); }
.col-progress-count { font-variant-numeric: tabular-nums; }
.col-nav { display: inline-flex; gap: 8px; }
.col-nav button {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--text);
  transition: background-color 0.3s, opacity 0.3s;
}
.col-nav button:hover { background: var(--surface); }
.col-nav button[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.col-nav svg { width: 18px; height: 18px; }
@media (hover: none) { .col-nav { display: none; } }
.is-pinned .col-nav, .is-pinned .col-progress-hint ~ .col-nav { display: none; }

/* Desktop: vertical scroll drives the horizontal track */
@media (min-width: 900px) and (hover: hover) {
  .js .col-scroller.is-pinned { height: var(--pin-h, 300vh); }
  .js .col-scroller.is-pinned .col-sticky {
    position: sticky; top: 0; height: 100svh;
    display: flex; flex-direction: column; justify-content: center;
    padding-top: var(--header-h);
  }
  .js .col-scroller.is-pinned .col-track { overflow: visible; scroll-snap-type: none; will-change: transform; }
  .col-card { width: clamp(260px, min(30vw, (100svh - 500px) * 0.8), 460px); }
  .js .col-scroller.is-pinned .col-progress { margin-top: clamp(14px, 2.4vh, 28px); }
  .js .col-scroller.is-pinned .section-head { margin-bottom: clamp(28px, 4vh, 56px); }
}

/* ---------- Configurator ---------- */
.config-grid { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (min-width: 900px) { .config-grid { grid-template-columns: 1.2fr 1fr; } }
.studio {
  position: relative;
  touch-action: pan-y;
  aspect-ratio: 1 / 1;
  border-radius: calc(var(--radius) + 6px);
  background: var(--studio);
  overflow: hidden;
  isolation: isolate;
}
.studio::before {
  content: ""; position: absolute; inset: -20%;
  background: radial-gradient(closest-side, var(--tint, transparent), transparent 70%);
  opacity: 0.35;
  transition: background 0.8s;
  z-index: -1;
}
.studio-stage { position: absolute; inset: 0; }
.studio-stage picture, .studio-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  padding: 6%;
}
.studio-stage picture { padding: 0; }
.studio-stage .is-leaving { z-index: 1; }
.studio-label {
  position: absolute; left: 16px; bottom: 16px; z-index: 3;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: rgba(239, 237, 232, 0.88);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--studio-ink); font-size: var(--fs-small); font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.studio-label .swatch-dot { box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15); }
.studio-count {
  position: absolute; right: 20px; top: 18px; z-index: 3;
  color: rgba(20,20,22,0.75); font-size: var(--fs-micro); letter-spacing: 0.2em; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.config-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 28px 22px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
  font-size: var(--fs-small); font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip[aria-pressed="true"], .chip[aria-selected="true"], .chip[aria-checked="true"] { color: var(--bg); background: var(--text); border-color: var(--text); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  position: relative;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
}
.swatch::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid transparent;
  transition: border-color 0.3s, transform 0.4s var(--ease-out);
}
.swatch .swatch-dot { width: 30px; height: 30px; transition: transform 0.4s var(--ease-out); }
.swatch .swatch-dot[data-stitch]::after { inset: 6px; border-width: 2px; }
.swatch:hover .swatch-dot { transform: scale(1.08); }
.swatch[aria-checked="true"]::before, .swatch[aria-pressed="true"]::before { border-color: var(--text); }
.config-variant { margin-top: 18px; min-height: 1.6em; color: var(--text); font-weight: 600; }
.config-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Scenes ---------- */
.scenes-list { display: grid; gap: clamp(72px, 10vw, 160px); }
.scene { display: grid; gap: clamp(20px, 3vw, 48px); align-items: end; }
@media (min-width: 900px) {
  .scene { grid-template-columns: repeat(12, 1fr); }
  .scene-media { grid-column: 1 / span 8; }
  .scene-body { grid-column: 9 / span 4; padding-bottom: 12px; }
  .scene:nth-child(even) .scene-media { grid-column: 5 / span 8; grid-row: 1; }
  .scene:nth-child(even) .scene-body { grid-column: 1 / span 4; grid-row: 1; }
}
.scene-media {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.scene-media .parallax { position: absolute; inset: -12% 0; }
.scene-media img { width: 100%; height: 100%; object-fit: cover; }
.scene-inset {
  position: absolute; right: clamp(12px, 2vw, 28px); bottom: clamp(12px, 2vw, 28px);
  width: clamp(110px, 22%, 220px); aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.12);
}
.scene-inset img { width: 100%; height: 100%; object-fit: cover; }
.scene-body { display: grid; gap: 16px; }
.scene-num { font-size: var(--fs-micro); letter-spacing: 0.2em; color: var(--accent); font-weight: 700; }
.scene-body h3 { font-size: clamp(2.4rem, 5vw, 4.6rem); }
.scene-body p { color: var(--muted); max-width: 26em; }
.scene-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* ---------- Size guide ---------- */
.sizes-grid { display: grid; gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (min-width: 900px) { .sizes-grid { grid-template-columns: 1fr 1fr; } }
.sizes-visual {
  position: relative;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: clamp(20px, 4vw, 48px);
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
}
.sizes-svg { width: 100%; height: 100%; overflow: visible; }
.sizes-svg .case { fill: none; stroke: var(--text); stroke-width: 2; }
.sizes-svg .case-fill { fill: var(--surface-2); }
.sizes-svg .lug { fill: var(--surface-2); stroke: var(--text); stroke-width: 2; }
.sizes-svg .dial-mark { stroke: var(--faint); stroke-width: 2; stroke-linecap: round; }
.sizes-svg .hand { stroke: var(--text); stroke-width: 3; stroke-linecap: round; }
.sizes-svg .gauge { stroke: var(--accent); stroke-width: 2; fill: none; }
.sizes-svg .gauge-fill { fill: var(--accent-soft); }
.sizes-svg .gauge-label { fill: var(--accent); font-family: var(--font-display); font-size: 44px; }
.sizes-svg .gauge-unit { fill: var(--accent); font-family: var(--font-body); font-size: 14px; letter-spacing: 0.2em; }
.sizes-steps { display: grid; gap: 12px; margin-block: 28px; counter-reset: step; }
.sizes-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; color: var(--muted); counter-increment: step; }
.sizes-steps li::before {
  content: counter(step, decimal-leading-zero);
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.16em; color: var(--accent);
  padding-top: 0.35em;
}
.width-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.width-picker .chip { min-width: 64px; justify-content: center; font-variant-numeric: tabular-nums; }
.sizes-result { margin-top: 28px; display: grid; gap: 12px; }
.sizes-result h3 { font-size: var(--fs-h3); }
.sizes-result ul { display: grid; gap: 8px; }
.sizes-result li a, .sizes-result li span.row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--line);
  transition: border-color 0.3s, background-color 0.3s;
}
.sizes-result li a:hover { border-color: var(--line-strong); background: var(--surface); }
.sizes-result .row-meta { color: var(--muted); font-size: var(--fs-small); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.sizes-result .row-meta svg { flex: none; }
.sizes-result .unknown { color: var(--faint); font-size: var(--fs-small); }
.sizes-result .row-name { display: grid; gap: 2px; }
.sizes-result .row-only { color: var(--accent); font-size: var(--fs-micro); letter-spacing: 0.04em; }

/* ---------- Final CTA ---------- */
.cta-final { position: relative; overflow: hidden; text-align: center; }
.cta-final .container { position: relative; z-index: 1; display: grid; justify-items: center; gap: 24px; }
.cta-final h2 { max-width: 12ch; font-size: clamp(2.8rem, 7.4vw, 7rem); }
.cta-final .lead { margin-inline: auto; }
.cta-chart {
  position: absolute; inset: auto 0 0 0; height: 70%;
  width: 100%; pointer-events: none; opacity: 0.6;
}
.cta-chart path.line { fill: none; stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.cta-chart path.area { fill: url(#ctaGrad); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(56px, 8vw, 96px) 32px;
  background: var(--bg);
}
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand { display: grid; gap: 18px; align-content: start; }
.footer-brand .brand-mark { width: 56px; }
.footer-brand .brand-word { width: 170px; }
.footer-col .footer-title {
  font-family: var(--font-body); line-height: 1.4;
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 0; }
.footer-col a { display: inline-block; padding-block: 5px; color: var(--muted); transition: color 0.3s; font-size: 0.9375rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid; gap: 10px;
  color: var(--faint); font-size: var(--fs-micro); letter-spacing: 0.02em; line-height: 1.7;
}
@media (min-width: 900px) { .footer-bottom { grid-template-columns: 1fr auto; } }
.footer-giant {
  margin-top: clamp(40px, 6vw, 72px);
  color: var(--text);
  opacity: 0.9;
}
.footer-giant svg { width: 100%; height: auto; }

/* ---------- Collection page ---------- */
.p-hero {
  position: relative;
  height: 88svh;
  min-height: 520px;
  overflow: hidden;
}
.p-hero-media { position: absolute; inset: 0; }
.p-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.p-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.7) 0%, rgba(10,10,11,0) 32%),
    linear-gradient(0deg, rgba(10,10,11,0.95) 0%, rgba(10,10,11,0.6) 45%, rgba(10,10,11,0) 75%);
}
@media (max-width: 759px), (orientation: portrait) {
  .p-hero-media picture { top: -14%; height: 114%; }
  .p-hero-media::after {
    background:
      linear-gradient(180deg, rgba(10,10,11,0.7) 0%, rgba(10,10,11,0) 26%),
      linear-gradient(0deg, rgba(10,10,11,0.97) 0%, rgba(10,10,11,0.85) 40%, rgba(10,10,11,0.3) 62%, rgba(10,10,11,0) 76%);
  }
}
.p-hero .lead { color: rgba(242, 238, 230, 0.85); }
.p-hero--plain { height: auto; min-height: 0; padding-top: calc(var(--header-h) + clamp(40px, 8vw, 120px)); }
.p-hero--plain .container { height: auto; padding-bottom: 0; }
.p-hero .container {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(32px, 6vh, 72px);
  gap: 18px;
}
.p-hero h1 { font-size: var(--fs-hero); line-height: 0.88; }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: var(--fs-small); color: rgba(242, 238, 230, 0.85); }
.crumbs a { display: inline-block; padding-block: 10px; }
.crumbs a:hover { color: var(--text); }
.p-hero .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.p-hero .chips span {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: var(--fs-small); color: var(--text);
  background: rgba(10,10,11,0.3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

.p-hero--studio { height: auto; min-height: 0; overflow: visible; padding-top: calc(var(--header-h) + clamp(24px, 5vw, 64px)); }
.p-hero--studio .container.p-hero-split {
  height: auto; padding-bottom: 0;
  display: grid; gap: clamp(28px, 4vw, 64px); align-items: end;
  flex-direction: initial; justify-content: initial;
}
.p-hero-copy { display: grid; gap: 18px; align-content: end; }
@media (min-width: 900px) { .p-hero--studio .p-hero-split { grid-template-columns: 1fr 1fr; align-items: center; } }
.p-hero-studio { aspect-ratio: 4 / 3; }
.p-hero-studio .studio-stage { background: var(--studio); }

.col-card-media:has(picture.is-studio) { background: var(--studio); }
.col-card-media picture.is-studio img { object-fit: contain; mix-blend-mode: multiply; padding: 8%; }
.col-card-media:has(picture.is-studio)::after { opacity: 0.35; }

.p-main { padding-block: clamp(56px, 8vw, 120px); }
.p-grid { display: grid; gap: clamp(28px, 4vw, 72px); align-items: start; }
@media (min-width: 960px) { .p-grid { grid-template-columns: 1.25fr 1fr; } }
.p-gallery { display: grid; gap: 12px; }
@media (min-width: 960px) { .p-gallery { position: sticky; top: calc(var(--header-h) + 16px); } }
.p-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: var(--studio);
  touch-action: pan-y;
}
.p-stage-track { display: flex; height: 100%; will-change: transform; transition: transform 0.7s var(--ease-out); }
.p-slide { position: relative; flex: none; width: 100%; height: 100%; }
.p-slide img { width: 100%; height: 100%; object-fit: cover; }
/* Transformed parents isolate blending, so studio slides carry the panel colour themselves */
.p-slide.is-studio { background: var(--studio); }
.p-slide.is-studio img { object-fit: contain; mix-blend-mode: multiply; padding: 5%; }
.p-stage-nav {
  position: absolute; inset: auto 14px 14px auto; z-index: 2;
  display: flex; gap: 8px;
}
.p-stage-nav button {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10,10,11,0.55); color: var(--text);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color 0.3s, opacity 0.3s;
}
.p-stage-nav button:hover { background: rgba(10,10,11,0.85); }
.p-stage-nav button[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.p-stage.is-single .p-stage-nav, .p-stage.is-single .p-stage-count, .p-thumbs.is-single { display: none; }
.p-stage-track { background: var(--studio); }
.p-stage-nav svg { width: 18px; height: 18px; }
.p-stage-count {
  position: absolute; left: 16px; bottom: 18px; z-index: 2;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(10,10,11,0.75); color: var(--text);
  font-size: var(--fs-micro); letter-spacing: 0.16em; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.p-thumbs {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 6px 6px 8px; margin: -6px -6px 0;
}
.p-thumbs button:focus-visible { opacity: 1; }
.p-thumbs::-webkit-scrollbar { display: none; }
.p-thumbs button {
  position: relative; flex: none;
  width: 76px; aspect-ratio: 1 / 1; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--studio);
  opacity: 0.55; transition: opacity 0.3s;
}
.p-thumbs button::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 1.5px solid transparent; transition: border-color 0.3s;
}
.p-thumbs button[aria-current="true"] { opacity: 1; }
.p-thumbs button[aria-current="true"]::after { border-color: var(--accent); }
.p-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.p-thumbs button.is-studio img { object-fit: contain; mix-blend-mode: multiply; padding: 6%; }

.p-info { display: grid; gap: 28px; }
.p-info h2 { font-size: clamp(2.4rem, 4.2vw, 4rem); }
.p-variant-name { font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.1; }
.p-label {
  font-family: var(--font-body); line-height: 1.4;
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 12px;
}
.specs { display: grid; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--faint); font-size: var(--fs-small); }
.specs dd { color: var(--text); font-size: 0.9375rem; }
.size-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.size-table th, .size-table td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.size-table th { color: var(--faint); font-weight: 600; letter-spacing: 0.06em; }
.features { display: grid; gap: 10px; }
.features li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--muted); }
.features li::before {
  content: ""; width: 16px; height: 10px; margin-top: 0.5em;
  background: var(--accent);
  -webkit-mask: url("../img/spark.svg") center / contain no-repeat;
  mask: url("../img/spark.svg") center / contain no-repeat;
}
.buy-box { display: grid; gap: 12px; padding: 22px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.buy-box p { color: var(--faint); font-size: var(--fs-small); }

.p-lifestyle { padding-bottom: clamp(80px, 10vw, 160px); }
.masonry { columns: 1; column-gap: clamp(12px, 1.4vw, 20px); }
@media (min-width: 640px) { .masonry { columns: min(var(--n, 2), 2); } }
@media (min-width: 1100px) { .masonry { columns: var(--n, 3); } }
.masonry figure {
  break-inside: avoid;
  margin-bottom: clamp(12px, 1.4vw, 20px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.masonry img { width: 100%; height: auto; }

.p-next {
  position: relative; display: block; overflow: hidden;
  border-top: 1px solid var(--line);
}
.p-next-media { position: absolute; inset: 0; opacity: 0.35; transition: opacity 0.8s, transform 1.2s var(--ease-out); transform: scale(1.04); }
.p-next-media img { width: 100%; height: 100%; object-fit: cover; }
.p-next .container { position: relative; padding-block: clamp(80px, 12vw, 180px); display: grid; gap: 14px; }
.p-next-title { font-family: var(--font-display); font-size: var(--fs-hero); line-height: 0.9; }
.p-next--studio { background: var(--bg-2); }
.p-next--studio .p-next-media { left: auto; width: min(46%, 560px); opacity: 0.9; background: var(--studio); }
.p-next--studio .p-next-media img { object-fit: contain; mix-blend-mode: multiply; padding: 8%; }
@media (max-width: 759px) { .p-next--studio .p-next-media { opacity: 0.3; width: 100%; } }
@media (hover: hover) {
  .p-next:hover .p-next-media { opacity: 0.6; transform: scale(1); }
}

/* ---------- Simple pages ---------- */
.page-simple { padding-top: calc(var(--header-h) + clamp(56px, 10vw, 140px)); padding-bottom: clamp(80px, 10vw, 160px); min-height: 80svh; }
.page-simple h1 { margin-bottom: 32px; }
.prose { display: grid; gap: 18px; max-width: 42em; color: var(--muted); font-size: 1.0625rem; }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Reveal resting states (JS only) ---------- */
.motion [data-reveal] { opacity: 0; transform: translateY(28px); }
.motion [data-reveal="fade"] { transform: none; }
.motion [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); }

/* Above-the-fold entrance runs in CSS from the first paint, so the headline does not
   wait for JavaScript. Under the first-visit intro it waits, then plays. */
[data-split="hero"] .split-inner {
  animation: av-rise 1.3s var(--ease-out) both;
  animation-delay: calc(0.15s + var(--i, 0) * 0.08s);
}
[data-hero-in] { animation: av-fade-up 1.1s var(--ease-out) both; animation-delay: 0.45s; }
[data-hero-in] ~ [data-hero-in] { animation-delay: 0.55s; }
.has-intro [data-split="hero"] .split-inner, .has-intro [data-hero-in] { animation-play-state: paused; }
@keyframes av-rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes av-fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.split-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.split-inner { display: inline-block; will-change: transform; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .motion [data-reveal] { opacity: 1; transform: none; clip-path: none; }
}

/* ---------- In-page long jumps ---------- */
.jump-veil {
  position: fixed; inset: 0; z-index: 95;
  background: var(--bg);
  opacity: 0; pointer-events: none;
  transition: opacity 0.26s var(--ease-in-out);
}
.jump-veil.is-on { opacity: 1; }

/* ---------- View transitions between pages ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.35s var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in 0.55s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
