/* ============================================================
   ROUVE — Template 09 · Maison de Couture
   "Gallery Noir" — the site behaves like a runway.
   Playfair Display (display serif) + Manrope (grotesk).
   Porcelain / Noir themes, one Klein-blue accent.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/playfair-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/playfair.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --serif: 'Playfair Display', 'Georgia', serif;
  --sans: 'Manrope', 'Helvetica Neue', Arial, sans-serif;

  --bg: #f5f2ec;
  --bg-2: #edeae2;
  --card: #fbf9f4;
  --ink: #141313;
  --ink-soft: rgba(20, 19, 19, 0.64);
  --ink-faint: rgba(20, 19, 19, 0.38);
  --line: rgba(20, 19, 19, 0.16);
  --line-soft: rgba(20, 19, 19, 0.09);
  --accent: #2b3cf0;
  --accent-ink: #1f2cc4;
  --accent-soft: rgba(43, 60, 240, 0.09);
  --scrim: linear-gradient(to top, rgba(10, 10, 12, 0.62), rgba(10, 10, 12, 0.12) 46%, rgba(10, 10, 12, 0.28));
  --shadow: 0 24px 70px -30px rgba(20, 19, 19, 0.35);
  --header-h: 76px;
  --ease: cubic-bezier(0.62, 0.02, 0.16, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
:root[data-theme='dark'] {
  --bg: #0d0d10;
  --bg-2: #121218;
  --card: #17171e;
  --ink: #f0ede5;
  --ink-soft: rgba(240, 237, 229, 0.62);
  --ink-faint: rgba(240, 237, 229, 0.38);
  --line: rgba(240, 237, 229, 0.17);
  --line-soft: rgba(240, 237, 229, 0.09);
  --accent: #6272ff;
  --accent-ink: #8d9aff;
  --accent-soft: rgba(98, 114, 255, 0.13);
  --scrim: linear-gradient(to top, rgba(8, 8, 11, 0.72), rgba(8, 8, 11, 0.2) 46%, rgba(8, 8, 11, 0.34));
  --shadow: 0 24px 70px -28px rgba(0, 0, 0, 0.8);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.reduced-motion { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  transition: background-color 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
}
body.menu-open, body.pre-lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.04; letter-spacing: -0.01em; }
h1 em, h2 em, h3 em, .disp em { font-style: italic; font-weight: 480; color: var(--accent); }
p { margin: 0 0 1rem; }
::selection { background: var(--accent); color: #fff; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 300;
  background: var(--ink); color: var(--bg); padding: 0.6rem 1.1rem;
  font-size: 0.8rem; text-decoration: none;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: min(1280px, 92vw); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 11vh, 8.5rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 7vh, 5rem); }

/* ---------- Type utilities ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--ink-soft); margin: 0 0 1.1rem;
}
.kicker::before { content: ''; width: 34px; height: 1px; background: var(--accent); flex: none; }
.kicker--bare::before { display: none; }
.kicker b { color: var(--accent); font-weight: 700; }

.disp-xl { font-size: clamp(3rem, 9.5vw, 8.4rem); }
.disp-lg { font-size: clamp(2.2rem, 5.4vw, 4.6rem); }
.disp-md { font-size: clamp(1.7rem, 3.4vw, 2.8rem); }
.lede { font-size: clamp(1.02rem, 1.5vw, 1.22rem); line-height: 1.75; color: var(--ink-soft); max-width: 56ch; }
.small { font-size: 0.82rem; color: var(--ink-soft); }
.num-rom { font-family: var(--serif); font-style: italic; color: var(--accent); }

/* Per-char kinetic reveal (JS splits [data-chars]) */
.char-line { display: block; overflow: hidden; }
.char-line .word { display: inline-block; white-space: nowrap; }
.char { display: inline-block; }
.js .char { transform: translateY(115%) rotate(4deg); transform-origin: 0 100%; }
.js .chars-in .char { transform: none; transition: transform 0.9s var(--ease-out); }
html.reduced-motion .char, html.reduced-motion .js .char { transform: none !important; transition: none !important; }

/* Generic reveals */
.js [data-reveal] { opacity: 0; transform: translateY(26px); }
.js [data-reveal].is-inview { opacity: 1; transform: none; transition: opacity 0.9s ease, transform 0.9s var(--ease-out); }
html.reduced-motion [data-reveal] { opacity: 1 !important; transform: none !important; }

/* Curtain image reveal — panel slides up off the image, image settles from scale */
.media { position: relative; overflow: hidden; background: var(--bg-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.js .media[data-reveal-media]::after {
  content: ''; position: absolute; inset: 0; background: var(--bg-2); z-index: 2;
  transform: none; transition: transform 1.05s var(--ease);
}
.js .media[data-reveal-media] img { transform: scale(1.14); transition: transform 1.4s var(--ease); }
.js .media[data-reveal-media].is-inview::after { transform: translateY(-101%); }
.js .media[data-reveal-media].is-inview img { transform: scale(1); }
html.reduced-motion .media[data-reveal-media]::after { display: none; }
html.reduced-motion .media[data-reveal-media] img { transform: none !important; }

/* ---------- Preloader ---------- */
.pre {
  position: fixed; inset: 0; z-index: 260; display: grid; place-items: center;
  background: #0d0d10; color: #f0ede5;
  transition: clip-path 0.9s var(--ease); clip-path: inset(0 0 0 0);
}
.pre.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.pre-word {
  font-family: var(--serif); font-size: clamp(2.6rem, 8vw, 5.2rem);
  letter-spacing: 0.42em; text-indent: 0.42em; overflow: hidden;
}
.pre-word span { display: inline-block; transform: translateY(120%); animation: preRise 0.8s var(--ease-out) forwards; }
@keyframes preRise { to { transform: none; } }
.pre-sub {
  position: absolute; bottom: 9vh; left: 50%; transform: translateX(-50%);
  font-size: 0.64rem; letter-spacing: 0.4em; text-transform: uppercase; color: rgba(240, 237, 229, 0.5);
}
html.reduced-motion .pre { display: none; }

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 250; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin: -3px 0 0 -3px; }
.cursor-ring {
  width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%;
  border: 1px solid var(--ink); opacity: 0.55;
  display: grid; place-items: center;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), margin 0.35s var(--ease-out),
              background-color 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
}
.cursor-ring .cursor-tag {
  font-size: 0.56rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase;
  color: #fff; opacity: 0; transition: opacity 0.25s ease; font-family: var(--sans);
}
.cursor-ring.is-view, .cursor-ring.is-drag {
  width: 84px; height: 84px; margin: -42px 0 0 -42px;
  background: var(--accent); border-color: var(--accent); opacity: 1;
}
.cursor-ring.is-view .cursor-tag, .cursor-ring.is-drag .cursor-tag { opacity: 1; }
.cursor-ring.is-press { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }
html.reduced-motion .cursor-dot, html.reduced-motion .cursor-ring { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color 0.45s ease, box-shadow 0.45s ease, transform 0.45s ease;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line-soft); }
body.menu-open .site-header { z-index: 90; }

/* Over the dark runway hero, the header runs light until scrolled */
body:has(main > .hero) .site-header:not(.is-scrolled) { color: #f2efe8; }
body:has(main > .hero) .site-header:not(.is-scrolled) .wordmark .sub,
body:has(main > .hero) .site-header:not(.is-scrolled) .header-mid { color: rgba(242, 239, 232, 0.62); }
body:has(main > .hero) .site-header:not(.is-scrolled) .theme-toggle { color: #f2efe8; border-color: rgba(242, 239, 232, 0.38); }

.wordmark {
  font-family: var(--serif); font-weight: 600; font-size: 1.28rem;
  letter-spacing: 0.5em; text-indent: 0.5em; text-decoration: none; line-height: 1;
  display: flex; flex-direction: column; gap: 0.18rem;
}
.wordmark .sub {
  font-family: var(--sans); font-weight: 600; font-size: 0.5rem;
  letter-spacing: 0.46em; text-transform: uppercase; color: var(--ink-faint);
}
.header-mid { font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 760px) { .header-mid { display: none; } }

.header-tools { display: flex; align-items: center; gap: 0.9rem; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--ink); cursor: pointer;
  display: grid; place-items: center; transition: border-color 0.3s ease, transform 0.3s ease;
}
.theme-toggle:hover { border-color: var(--ink); transform: rotate(15deg); }
.theme-toggle svg { width: 16px; height: 16px; }
:root[data-theme='light'] .icon-sun { display: none; }
:root[data-theme='dark'] .icon-moon { display: none; }

.menu-btn {
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
  font-family: var(--sans); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.65rem; padding: 0.5rem 0;
}
.menu-btn .lines { display: inline-flex; flex-direction: column; gap: 5px; width: 26px; }
.menu-btn .lines i { height: 1px; background: currentColor; transition: transform 0.4s var(--ease), width 0.4s var(--ease); }
.menu-btn:hover .lines i:nth-child(2) { width: 60%; align-self: flex-end; }

/* ---------- Full-screen menu ---------- */
.veil {
  position: fixed; inset: 0; z-index: 200; background: #0d0d10; color: #f0ede5;
  clip-path: inset(0 0 100% 0); transition: clip-path 0.75s var(--ease);
  visibility: hidden;
}
body.menu-open .veil { clip-path: inset(0 0 0 0); visibility: visible; }
.veil-inner { height: 100%; display: flex; flex-direction: column; width: min(1280px, 92vw); margin-inline: auto; padding-block: 1.6rem 2.2rem; }
.veil-head { display: flex; align-items: center; justify-content: space-between; }
.veil-head .wordmark { color: #f0ede5; }
.veil-head .wordmark .sub { color: rgba(240, 237, 229, 0.45); }
.veil-close {
  border: 1px solid rgba(240, 237, 229, 0.3); background: transparent; color: #f0ede5;
  border-radius: 999px; padding: 0.65rem 1.5rem; cursor: pointer;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.28em; text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.veil-close:hover { background: #f0ede5; color: #0d0d10; border-color: #f0ede5; }
.veil-body { flex: 1; display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 3rem; min-height: 0; }
.veil-nav { display: flex; flex-direction: column; }
.veil-link {
  font-family: var(--serif); font-style: italic; font-weight: 480;
  font-size: clamp(2rem, 5.6vh, 3.6rem); line-height: 1.28;
  color: #f0ede5; text-decoration: none;
  display: flex; align-items: baseline; gap: 1.2rem;
  border-bottom: 1px solid rgba(240, 237, 229, 0.12);
  padding-block: 0.35rem;
  transition: color 0.3s ease, padding-left 0.45s var(--ease-out);
  overflow: hidden;
}
.veil-link .no { font-family: var(--sans); font-style: normal; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.28em; color: rgba(240, 237, 229, 0.42); }
.veil-link:hover, .veil-link[aria-current='page'] { color: #8d9aff; padding-left: 1.4rem; }
.veil-link span.w { display: inline-block; transform: translateY(110%); transition: transform 0.7s var(--ease-out); }
body.menu-open .veil-link span.w { transform: none; }
body.menu-open .veil-link:nth-child(1) span.w { transition-delay: 0.16s; }
body.menu-open .veil-link:nth-child(2) span.w { transition-delay: 0.22s; }
body.menu-open .veil-link:nth-child(3) span.w { transition-delay: 0.28s; }
body.menu-open .veil-link:nth-child(4) span.w { transition-delay: 0.34s; }
body.menu-open .veil-link:nth-child(5) span.w { transition-delay: 0.4s; }
body.menu-open .veil-link:nth-child(6) span.w { transition-delay: 0.46s; }
.veil-aside { display: flex; flex-direction: column; gap: 1.2rem; font-size: 0.85rem; color: rgba(240, 237, 229, 0.6); }
.veil-aside .media { aspect-ratio: 4 / 5; max-width: 300px; }
.veil-aside a { color: #f0ede5; }
.veil-foot { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(240, 237, 229, 0.45); }
@media (max-width: 860px) {
  .veil-body { grid-template-columns: 1fr; align-content: start; overflow: auto; }
  .veil-aside .media { display: none; }
  .veil-link { font-size: clamp(1.7rem, 4.6vh, 2.6rem); }
}

/* ---------- HERO · runway ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-content: end;
  color: #f2efe8; overflow: hidden;
  background: #0d0d10;
}
.hero-stage, .hero-stage .look { position: absolute; inset: 0; }
.hero-stage .look { opacity: 0; visibility: hidden; }
.hero-stage .look img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero-stage .look.is-active {
  opacity: 1; visibility: visible; z-index: 2;
  clip-path: inset(0 0 0 0);
  animation: lookWipe 1.15s var(--ease) both;
}
.hero-stage .look.is-active img { transform: scale(1); transition: transform 5.4s linear; }
.hero-stage .look.is-leaving { opacity: 1; visibility: visible; z-index: 1; }
@keyframes lookWipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.hero-scrim { position: absolute; inset: 0; z-index: 3; background: var(--scrim); pointer-events: none; }
.hero-frame {
  position: absolute; inset: clamp(12px, 2vw, 22px); z-index: 5;
  border: 1px solid rgba(242, 239, 232, 0.28); pointer-events: none;
}
html.reduced-motion .hero-stage .look.is-active { animation: none; }
html.reduced-motion .hero-stage .look.is-active img { transform: none; transition: none; }

.hero-content { position: relative; z-index: 6; padding-bottom: clamp(3rem, 8vh, 5.5rem); }
.hero-kicker { color: rgba(242, 239, 232, 0.78); }
.hero-kicker::before { background: #fff; }
.hero h1 { font-size: clamp(2.7rem, 7.6vw, 7.2rem); font-weight: 480; color: #f2efe8; }
.hero h1 em { color: #aab4ff; }
.hero-under {
  margin-top: clamp(1.6rem, 4vh, 2.6rem);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.hero-lede { color: rgba(242, 239, 232, 0.82); max-width: 46ch; margin: 0; }

/* Look counter */
.look-meter { display: flex; flex-direction: column; gap: 0.55rem; min-width: 240px; }
.look-meter .row { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; }
.look-name { font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.look-count { font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(242, 239, 232, 0.66); }
.look-bar { height: 1px; background: rgba(242, 239, 232, 0.3); position: relative; overflow: hidden; }
.look-bar i { position: absolute; inset: 0; background: #fff; transform-origin: 0 0; transform: scaleX(0); }
.look-bar.is-run i { animation: lookBar 5.6s linear forwards; }
@keyframes lookBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
html.reduced-motion .look-bar { display: none; }

.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  border-top: 1px solid rgba(242, 239, 232, 0.22);
  background: rgba(10, 10, 13, 0.28); backdrop-filter: blur(6px);
}
.hero-foot .container { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.85rem; font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(242, 239, 232, 0.72); flex-wrap: wrap; }

/* Inner-page hero */
.page-head { padding-top: calc(var(--header-h) + clamp(3rem, 9vh, 6rem)); padding-bottom: clamp(2.5rem, 6vh, 4rem); }
.page-head .crumb { font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1.4rem; display: flex; gap: 0.8rem; align-items: center; }
.page-head .crumb a { text-decoration: none; color: inherit; }
.page-head .crumb a:hover { color: var(--accent); }
.page-head h1 { font-size: clamp(2.6rem, 7vw, 6rem); font-weight: 480; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--bg);
  position: relative; display: inline-flex; align-items: center; gap: 0.8rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--sans); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.26em; text-transform: uppercase;
  padding: 1.05rem 2.1rem; border-radius: 999px; border: 1px solid var(--btn-bg);
  text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color 0.35s ease, border-color 0.35s ease;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--accent); border-radius: inherit;
  transform: translateY(102%); transition: transform 0.45s var(--ease);
}
.btn:hover::before { transform: none; }
.btn:hover { color: #fff; border-color: var(--accent); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); }
.btn--light { --btn-bg: #f2efe8; --btn-fg: #141313; }
.link-rule {
  display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink);
  padding-bottom: 0.45rem; border-bottom: 1px solid var(--line); transition: border-color 0.3s ease, color 0.3s ease;
}
.link-rule:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- House-code intro ---------- */
.code-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.statement {
  font-family: var(--serif); font-weight: 460; font-size: clamp(1.6rem, 3.4vw, 2.9rem);
  line-height: 1.34; max-width: 24em; margin: 0;
}
.statement .hl { font-style: italic; color: var(--accent); }
.house-stats { display: flex; gap: clamp(1.5rem, 5vw, 4.5rem); flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 2rem; }
.house-stats .stat b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.1; }
.house-stats .stat span { font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Collections index (cursor-follow preview) ---------- */
.col-index { border-top: 1px solid var(--line); }
.col-row {
  position: relative; display: grid;
  grid-template-columns: minmax(52px, 90px) 1fr auto;
  align-items: baseline; gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.4rem, 3.4vh, 2.4rem);
  border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
}
.col-row .idx { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--ink-faint); transition: color 0.3s ease; }
.col-row .name {
  font-family: var(--serif); font-weight: 480; font-size: clamp(2rem, 5.6vw, 4.4rem); line-height: 1.05;
  display: inline-block; transition: transform 0.55s var(--ease-out), color 0.3s ease;
}
.col-row .meta { text-align: right; font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft); display: flex; flex-direction: column; gap: 0.3rem; }
.col-row .meta b { color: var(--accent); font-weight: 700; }
.col-row::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 0; transition: transform 0.6s var(--ease);
}
.col-row:hover::after { transform: scaleX(1); }
.col-row:hover .name { transform: translateX(clamp(0.6rem, 2vw, 1.6rem)); font-style: italic; color: var(--accent); }
.col-row:hover .idx { color: var(--accent); }

/* Floating preview window that chases the cursor */
.col-preview {
  position: fixed; top: 0; left: 0; z-index: 80;
  width: clamp(200px, 21vw, 290px); aspect-ratio: 3 / 4;
  pointer-events: none; overflow: hidden;
  opacity: 0; transform: scale(0.85) rotate(3deg);
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out);
  box-shadow: var(--shadow); will-change: transform;
}
.col-preview.is-on { opacity: 1; }
.col-preview img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.35s ease;
}
.col-preview img.is-cur { opacity: 1; }
@media (hover: none), (pointer: coarse) { .col-preview { display: none; } }
html.reduced-motion .col-preview { display: none; }

/* Inline thumbs for touch/small screens */
.col-row .thumb { display: none; }
@media (hover: none), (pointer: coarse), (max-width: 760px) {
  .col-row { grid-template-columns: 1fr auto; grid-template-areas: 'thumb thumb' 'name meta'; row-gap: 1rem; }
  .col-row .idx { display: none; }
  .col-row .thumb { display: block; grid-area: thumb; aspect-ratio: 16 / 10; }
  .col-row .name { grid-area: name; } .col-row .meta { grid-area: meta; align-self: center; }
}

/* ---------- The Walk — drag gallery ---------- */
.walk-wrap { overflow: hidden; cursor: grab; }
.walk-wrap.is-down { cursor: grabbing; }
.walk {
  display: flex; gap: clamp(1rem, 2.4vw, 2rem);
  padding-inline: max(4vw, calc((100vw - 1280px) / 2));
  will-change: transform; width: max-content;
}
.walk-card { flex: none; width: clamp(240px, 26vw, 380px); text-decoration: none; color: var(--ink); }
.walk-card .media { aspect-ratio: 3 / 4; }
.walk-card .media img { transition: transform 0.8s var(--ease); }
.walk-card:hover .media img { transform: scale(1.05); }
.walk-card figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-top: 0.8rem; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }
.walk-card figcaption b { color: var(--ink); font-weight: 700; }
.walk-hint { display: flex; align-items: center; gap: 1rem; font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-faint); }
.walk-hint::after { content: ''; flex: 1; height: 1px; background: var(--line); }
html.reduced-motion .walk-wrap { overflow-x: auto; cursor: auto; }

/* ---------- Atelier split (sticky) ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split-media { position: sticky; top: calc(var(--header-h) + 2rem); }
.split-media .media { aspect-ratio: 3 / 4; }
.metier { border-top: 1px solid var(--line); padding-block: clamp(1.6rem, 4vh, 2.6rem); display: grid; grid-template-columns: 64px 1fr; gap: 1.4rem; }
.metier .no { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--accent); }
.metier h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin-bottom: 0.6rem; }
.metier p { color: var(--ink-soft); margin: 0; max-width: 46ch; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-media { position: static; } }

/* ---------- Press / quotes ---------- */
.press { background: var(--bg-2); }
.press-quote {
  font-family: var(--serif); font-style: italic; font-weight: 460;
  font-size: clamp(1.6rem, 4vw, 3.2rem); line-height: 1.3; max-width: 22em; margin: 0 0 1.6rem;
}
.press-quote::before { content: '“'; color: var(--accent); }
.press-quote::after { content: '”'; color: var(--accent); }
.press-src { font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft); }
.press-row { display: flex; gap: clamp(1.5rem, 5vw, 4rem); flex-wrap: wrap; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink-faint); }

/* ---------- Cards (journal / stories) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(1.2rem, 2.6vw, 2.2rem); }
.j-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.j-card .media { aspect-ratio: 4 / 3; }
.j-card .media img { transition: transform 0.8s var(--ease); }
.j-card:hover .media img { transform: scale(1.05); }
.j-card .body { padding-top: 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.j-card .tagline { font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.j-card h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); transition: color 0.3s ease; }
.j-card:hover h3 { color: var(--accent); font-style: italic; }
.j-card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }
.j-card .foot { margin-top: auto; padding-top: 0.9rem; font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- Service (atelier) offer blocks ---------- */
.offer { border-top: 1px solid var(--line); padding-block: clamp(2rem, 5vh, 3.4rem); display: grid; grid-template-columns: minmax(52px, 90px) 1.1fr 1fr; gap: clamp(1.2rem, 3vw, 3rem); align-items: start; }
.offer .idx { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.3rem; }
.offer h3 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin-bottom: 0.8rem; }
.offer h3 a { text-decoration: none; color: inherit; }
.offer h3 a:hover { color: var(--accent); font-style: italic; }
.offer .desc { color: var(--ink-soft); max-width: 52ch; }
.offer .facts { display: flex; flex-direction: column; gap: 0.7rem; font-size: 0.85rem; color: var(--ink-soft); border-left: 1px solid var(--line); padding-left: 1.6rem; }
.offer .facts b { color: var(--ink); font-weight: 700; }
@media (max-width: 860px) { .offer { grid-template-columns: 1fr; } .offer .facts { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1rem; } }

/* ---------- Process (commission steps) ---------- */
.steps { counter-reset: step; }
.step-row { border-top: 1px solid var(--line); padding-block: clamp(1.8rem, 4.5vh, 3rem); display: grid; grid-template-columns: 110px 1fr; gap: clamp(1.2rem, 3.4vw, 3rem); }
.step-row::before {
  counter-increment: step; content: '0' counter(step);
  font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; color: var(--ink-faint);
}
.step-row h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 0.55rem; }
.step-row p { color: var(--ink-soft); max-width: 60ch; margin: 0; }
.step-row .dur { font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); font-weight: 700; display: block; margin-top: 0.8rem; }
@media (max-width: 700px) { .step-row { grid-template-columns: 1fr; gap: 0.6rem; } }

/* ---------- Lookbook grid (project detail) ---------- */
.lookbook { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2.4vw, 2rem); }
.lookbook .lb { grid-column: span 6; }
.lookbook .lb .media { aspect-ratio: 3 / 4; }
.lookbook .lb.wide { grid-column: span 12; }
.lookbook .lb.wide .media { aspect-ratio: 21 / 10; }
.lookbook .lb.third { grid-column: span 4; }
.lookbook figcaption { padding-top: 0.7rem; font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 760px) { .lookbook .lb, .lookbook .lb.third { grid-column: span 12; } }

/* ---------- Big CTA ---------- */
.cta { text-align: center; overflow: hidden; }
.cta h2 { font-size: clamp(2.6rem, 8vw, 6.8rem); font-weight: 480; margin-bottom: 2rem; }
.cta .row { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.cta-note { margin-top: 2.4rem; font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- Article prose ---------- */
.prose { max-width: 68ch; margin-inline: auto; font-size: 1.06rem; line-height: 1.85; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 2.6rem 0 1rem; }
.prose p { color: var(--ink-soft); }
.prose p:first-of-type::first-letter {
  font-family: var(--serif); font-size: 3.4em; float: left; line-height: 0.82;
  padding-right: 0.12em; color: var(--accent);
}
.prose blockquote {
  margin: 2.4rem 0; padding-left: 1.6rem; border-left: 2px solid var(--accent);
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.55; color: var(--ink);
}
.prose figure { margin: 2.4rem 0; }
.prose figcaption { font-size: 0.75rem; color: var(--ink-faint); padding-top: 0.6rem; letter-spacing: 0.1em; }

/* ---------- Forms (rendez-vous) ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.6rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 0.7rem 0; font: inherit; color: var(--ink);
  transition: border-color 0.3s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 120px; resize: vertical; }
.form-success { display: none; padding: 2rem; border: 1px solid var(--accent); }
.form-success.is-visible { display: block; }
.form-success h3 { font-style: italic; color: var(--accent); margin-bottom: 0.5rem; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Contact info rail ---------- */
.info-rail { display: flex; flex-direction: column; gap: 1.8rem; }
.info-rail .blk h3 { font-size: 1.1rem; font-style: italic; margin-bottom: 0.4rem; }
.info-rail .blk p { color: var(--ink-soft); margin: 0; font-size: 0.92rem; }
.info-rail a { color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(3rem, 7vh, 5rem); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; padding-bottom: 3rem; }
.footer-grid h4 { font-family: var(--sans); font-size: 0.64rem; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-grid a { text-decoration: none; color: var(--ink-soft); font-size: 0.9rem; transition: color 0.3s ease; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand p { color: var(--ink-soft); font-size: 0.9rem; max-width: 30ch; }
.footer-word {
  display: block; text-align: center; user-select: none; pointer-events: none;
  font-family: var(--serif); font-weight: 600; line-height: 0.78;
  font-size: clamp(5rem, 21vw, 19rem); letter-spacing: 0.06em;
  color: transparent; -webkit-text-stroke: 1px var(--line);
  transform: translateY(18%);
}
.footer-bar { border-top: 1px solid var(--line-soft); padding-block: 1.1rem; display: flex; justify-content: space-between; gap: 1rem; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); flex-wrap: wrap; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Misc ---------- */
.rule-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2rem, 5vh, 3.4rem); flex-wrap: wrap; }
.bg-alt { background: var(--bg-2); }
.mt-2 { margin-top: 2rem; }
.center { text-align: center; }
