/* INNA MAMBO — SS26 Lookbook
 * Swiss modular grid · analog/digital rhythm · architectural typography
 * ------------------------------------------------------------------ */

:root {
  /* ── Color anchoring palette (mapped from campaign reference) ── */
  --lb-midnight: #12182a;
  --lb-midnight-soft: #1e2640;
  --lb-forest: #2d4a3e;
  --lb-forest-muted: #3d5c4f;
  --lb-lavender: #c4b8c8;
  --lb-lavender-wash: #ddd4e0;
  --lb-dusty-pink: #d4c0c8;
  --lb-terracotta: #c45c2a;
  --lb-terracotta-bright: #d4613a;
  --lb-offwhite: #f5f3ef;
  --lb-paper: #eceae4;
  --lb-grey: #b8b4ac;
  --lb-ink: #0a0a0a;
  --lb-ink-soft: #2a2824;

  /* Semantic roles */
  --lb-bg: var(--lb-offwhite);
  --lb-bg-dark: var(--lb-midnight);
  --lb-text: var(--lb-ink);
  --lb-text-muted: var(--lb-ink-soft);
  --lb-accent: var(--lb-terracotta);
  --lb-accent-alt: var(--lb-forest);

  /* ── Typographic system ──
   * Display: Space Grotesk — grotesque, architectural, bold numerals
   * Utility:  IBM Plex Sans — clean, editorial, Swiss utilitarian
   * Scale:    Major third (1.25) anchored at 16px body
   */
  --lb-font-display: "Space Grotesk", "Helvetica Neue", system-ui, sans-serif;
  --lb-font-body: "IBM Plex Sans", "Helvetica Neue", system-ui, sans-serif;

  --lb-type-micro: 0.625rem;    /* 10px — credits, page numbers */
  --lb-type-caption: 0.75rem;   /* 12px — labels, metadata */
  --lb-type-small: 0.875rem;    /* 14px — secondary body */
  --lb-type-body: 1rem;         /* 16px — manifesto, descriptions */
  --lb-type-lead: 1.125rem;     /* 18px — intro pull quotes */
  --lb-type-heading: 1.25rem;   /* 20px — section labels */
  --lb-type-subhead: 1.5625rem; /* 25px — spread titles */
  --lb-type-display: clamp(2rem, 5vw, 3.125rem);   /* 50px cap */
  --lb-type-hero: clamp(3.5rem, 10vw, 6.25rem);    /* 100px cap — cover numerals */

  --lb-lh-tight: 1.05;
  --lb-lh-snug: 1.25;
  --lb-lh-body: 1.55;
  --lb-track-tight: -0.03em;
  --lb-track-wide: 0.12em;
  --lb-track-ultra: 0.2em;

  /* ── Swiss modular grid (12 col · 8px base · 24px gutter) ── */
  --lb-unit: 8px;
  --lb-gutter: calc(var(--lb-unit) * 3);
  --lb-margin: clamp(1.5rem, 5vw, 3rem);
  --lb-cols: 12;
  --lb-col: calc((100% - (var(--lb-cols) - 1) * var(--lb-gutter)) / var(--lb-cols));
  --lb-spread-max: 1400px;
  --lb-page-ratio: 3 / 4;

  /* Motion */
  --lb-ease: cubic-bezier(0.33, 1, 0.68, 1);
  --lb-duration: 0.45s;
}

/* ── Base ── */
.lookbook-body {
  margin: 0;
  background: var(--lb-midnight);
  color: var(--lb-text);
  font-family: var(--lb-font-body);
  font-size: var(--lb-type-body);
  line-height: var(--lb-lh-body);
  -webkit-font-smoothing: antialiased;
}

.lookbook-body .skip-link:focus {
  position: fixed;
  left: var(--lb-margin);
  top: var(--lb-margin);
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--lb-offwhite);
  color: var(--lb-ink);
  text-decoration: none;
  font-size: var(--lb-type-caption);
  letter-spacing: var(--lb-track-wide);
  text-transform: uppercase;
}

.lookbook-body *,
.lookbook-body *::before,
.lookbook-body *::after {
  box-sizing: border-box;
}

/* ── Chrome (nav bar) ── */
.lookbook-chrome {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--lb-margin);
  pointer-events: none;
}

.lookbook-chrome > * {
  pointer-events: auto;
}

.lookbook-chrome__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--lb-font-body);
  font-size: var(--lb-type-caption);
  font-weight: 500;
  letter-spacing: var(--lb-track-wide);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--lb-offwhite);
  background: rgba(18, 24, 42, 0.72);
  backdrop-filter: blur(8px);
  padding: 0.6rem 1rem;
  border: 1px solid rgba(245, 243, 239, 0.15);
  transition: background var(--lb-duration) var(--lb-ease);
}

.lookbook-chrome__back:hover {
  background: rgba(18, 24, 42, 0.92);
  color: var(--lb-terracotta-bright);
}

.lookbook-chrome__meta {
  font-size: var(--lb-type-caption);
  letter-spacing: var(--lb-track-wide);
  text-transform: uppercase;
  color: var(--lb-offwhite);
  background: rgba(18, 24, 42, 0.72);
  backdrop-filter: blur(8px);
  padding: 0.6rem 1rem;
  border: 1px solid rgba(245, 243, 239, 0.15);
}

/* ── Main scroll container ── */
.lookbook {
  scroll-snap-type: y mandatory;
  overflow-y: auto;
  height: 100dvh;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  .lookbook {
    scroll-behavior: auto;
  }
}

/* ── Spread shell ── */
.lookbook-spread {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: 100dvh;
  /* Mobile override lives at the 768px breakpoint below: once the two pages
     stack, a spread grows taller than the scrollport, and a mandatory snap area
     you cannot rest inside makes its lower page unreachable. */
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--lb-spread-max);
  margin: 0 auto;
  background: var(--lb-bg);
  position: relative;
  box-shadow: 0 0 0 1px rgba(10, 10, 10, 0.04);
}

@media (min-width: 769px) {
  .lookbook-spread:not(.lookbook-spread--solo):not(.lookbook-spread--grid):not(.lookbook-spread--full) {
    gap: 0;
  }
}

.lookbook-spread--solo {
  grid-template-columns: 1fr;
}

.lookbook-spread--centerfold {
  grid-template-columns: 1fr;
}

.lookbook-spread--full {
  grid-template-columns: 1fr;
}

.lookbook-spread--full .lookbook-page {
  min-height: 100dvh;
}

.lookbook-spread--full::after {
  display: none;
}


@media (max-width: 768px) {
  .lookbook-spread:not(.lookbook-spread--centerfold) {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  /* Once the pages stack, a two-page spread is taller than the scrollport. A
     `mandatory` snap area you cannot come to rest inside pins the reader to its
     top, so the lower page — a photo on the Form, Golden Hour and Contrast
     spreads — was unreachable on a phone. `proximity` still snaps to a spread
     when you land near one, but never traps you above its second half. */
  .lookbook {
    scroll-snap-type: y proximity;
  }

  .lookbook-spread {
    scroll-snap-stop: normal;
  }
}

/* Gutter line between pages */
.lookbook-spread:not(.lookbook-spread--solo):not(.lookbook-spread--centerfold):not(.lookbook-spread--grid):not(.lookbook-spread--full)::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(10, 10, 10, 0.08);
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 768px) {
  .lookbook-spread:not(.lookbook-spread--centerfold)::after {
    display: none;
  }
}

/* ── Page (single leaf) ── */
.lookbook-page {
  position: relative;
  aspect-ratio: var(--lb-page-ratio);
  min-height: 50dvh;
  overflow: hidden;
  background: var(--lb-bg);
}

@media (max-width: 768px) {
  .lookbook-page {
    aspect-ratio: auto;
    min-height: 70dvh;
  }
}

.lookbook-spread--solo .lookbook-page,
.lookbook-spread--centerfold .lookbook-page {
  aspect-ratio: auto;
  min-height: 100dvh;
}

/* ── Grid overlay (Swiss alignment aid — visible on text pages) ── */
.lookbook-page--grid::before {
  content: "";
  position: absolute;
  inset: var(--lb-margin);
  background-image:
    repeating-linear-gradient(
      to right,
      transparent,
      transparent calc(var(--lb-col) - 1px),
      rgba(10, 10, 10, 0.04) calc(var(--lb-col) - 1px),
      rgba(10, 10, 10, 0.04) var(--lb-col)
    );
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

/* ── Images ── */
.lookbook-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lookbook-img-wrap {
  position: absolute;
  inset: 0;
}

.lookbook-img-wrap--inset {
  inset: var(--lb-margin);
}

.lookbook-img-wrap--offset {
  inset: var(--lb-margin) var(--lb-margin) calc(var(--lb-margin) * 2) calc(var(--lb-margin) * 0.5);
}

/* Analog treatment */
.lookbook-img--analog {
  filter: contrast(1.08) saturate(0.82) sepia(0.12);
}

.lookbook-img-wrap--analog::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  opacity: 0.18;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Digital treatment — crisp with subtle grain bridge */
.lookbook-img--digital {
  filter: contrast(1.02) saturate(0.96);
}

.lookbook-img-wrap--digital::after,
.lookbook-media--digital::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.2'/%3E%3C/svg%3E");
  opacity: 0.06;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* Native format — skip CSS grading when already graded in post */
.lookbook-img--native-analog { filter: none; }
.lookbook-img--native-digital { filter: none; }
.lookbook-img-wrap--native-analog::after,
.lookbook-img-wrap--native-digital::after,
.lookbook-media--native-analog::after,
.lookbook-media--native-digital::after { display: none; }


/* ── Typography blocks ── */
.lookbook-type {
  position: relative;
  z-index: 2;
  padding: var(--lb-margin);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.lookbook-type--center {
  justify-content: center;
}

.lookbook-type--bottom {
  justify-content: flex-end;
}

.lookbook-type--top-right {
  align-items: flex-end;
  text-align: right;
}

.lookbook-kicker {
  font-size: var(--lb-type-caption);
  font-weight: 500;
  letter-spacing: var(--lb-track-ultra);
  text-transform: uppercase;
  color: var(--lb-accent);
  margin: 0 0 calc(var(--lb-unit) * 2);
}

.lookbook-kicker--muted {
  color: var(--lb-text-muted);
}

.lookbook-display {
  font-family: var(--lb-font-display);
  font-size: var(--lb-type-display);
  font-weight: 700;
  line-height: var(--lb-lh-tight);
  letter-spacing: var(--lb-track-tight);
  margin: 0;
}

.lookbook-display--hero {
  font-size: var(--lb-type-hero);
}

.lookbook-heading {
  font-family: var(--lb-font-display);
  font-size: var(--lb-type-heading);
  font-weight: 600;
  letter-spacing: var(--lb-track-wide);
  text-transform: uppercase;
  margin: 0 0 calc(var(--lb-unit) * 2);
}

.lookbook-lead {
  font-size: var(--lb-type-lead);
  line-height: var(--lb-lh-snug);
  max-width: 28ch;
  margin: 0;
  color: var(--lb-text-muted);
}

.lookbook-body-text {
  font-size: var(--lb-type-small);
  max-width: 36ch;
  margin: 0;
  color: var(--lb-text-muted);
}

.lookbook-caption {
  font-size: var(--lb-type-caption);
  letter-spacing: var(--lb-track-wide);
  text-transform: uppercase;
  color: var(--lb-grey);
  margin: 0;
}

.lookbook-micro {
  font-size: var(--lb-type-micro);
  letter-spacing: var(--lb-track-wide);
  text-transform: uppercase;
  color: var(--lb-grey);
}

/* ── Page folios ── */
.lookbook-folio {
  position: absolute;
  bottom: calc(var(--lb-unit) * 2);
  left: var(--lb-margin);
  z-index: 4;
  font-family: var(--lb-font-display);
  font-size: var(--lb-type-micro);
  font-weight: 600;
  letter-spacing: var(--lb-track-wide);
  color: var(--lb-grey);
  pointer-events: none;
}

.lookbook-folio--cover,
.lookbook-folio--centerfold {
  color: rgba(245, 243, 239, 0.75);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.lookbook-folio--spread {
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--lb-unit) * 3);
}

.lookbook-folio--back {
  color: var(--lb-grey);
}

.lookbook-spread-label {
  font-size: var(--lb-type-micro);
  letter-spacing: var(--lb-track-ultra);
  text-transform: uppercase;
  color: var(--lb-grey);
  margin: 0 0 calc(var(--lb-unit) * 2);
}

.lookbook-type__footer {
  margin-top: auto;
  padding-top: calc(var(--lb-unit) * 4);
}

/* ── Cover (professional lockup) ── */
.lookbook-cover-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(18, 24, 42, 0.15) 0%,
    transparent 35%,
    transparent 55%,
    rgba(245, 243, 239, 0.55) 100%
  );
  pointer-events: none;
}

.lookbook-cover-lockup {
  position: absolute;
  z-index: 3;
  left: var(--lb-margin);
  right: var(--lb-margin);
  bottom: calc(var(--lb-margin) * 1.5);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(var(--lb-unit) * 2);
}

.lookbook-cover-num {
  font-family: var(--lb-font-display);
  font-size: var(--lb-type-hero);
  font-weight: 700;
  line-height: var(--lb-lh-tight);
  color: var(--lb-ink);
  letter-spacing: var(--lb-track-tight);
  margin: 0;
}

.lookbook-cover-badge {
  display: inline-block;
  background: var(--lb-paper);
  color: var(--lb-accent);
  font-family: var(--lb-font-display);
  font-size: var(--lb-type-subhead);
  font-weight: 700;
  letter-spacing: var(--lb-track-tight);
  padding: calc(var(--lb-unit) * 1.5) calc(var(--lb-unit) * 3);
  margin: 0;
}

.lookbook-cover-meta {
  margin: 0;
  font-size: var(--lb-type-caption);
  letter-spacing: var(--lb-track-wide);
  text-transform: uppercase;
  color: var(--lb-ink-soft);
}

.lookbook-media--vignette::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(18, 24, 42, 0.28) 100%);
}

.lookbook-display--index {
  font-size: var(--lb-type-subhead);
}

.lookbook-index__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--lb-gutter) * 2);
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .lookbook-index__grid {
    grid-template-columns: 1fr;
  }
}

.lookbook-media--native-analog::after {
  display: none;
}

.lookbook-img--native-analog {
  filter: none;
}

/* ── Shoppable spread rails ── */
.lookbook-shop {
  position: absolute;
  left: var(--lb-margin);
  right: var(--lb-margin);
  bottom: calc(var(--lb-unit) * 5);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: calc(var(--lb-unit) * 1.5);
  pointer-events: none;
}

.lookbook-shop__label {
  margin: 0;
  font-size: var(--lb-type-micro);
  letter-spacing: var(--lb-track-ultra);
  text-transform: uppercase;
  color: var(--lb-offwhite);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.lookbook-page--paper .lookbook-shop__label {
  color: var(--lb-text-muted);
  text-shadow: none;
}

.lookbook-shop__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  pointer-events: auto;
}

.lookbook-shop__chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  background: rgba(18, 24, 42, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 243, 239, 0.15);
  border-radius: 999px;
  text-decoration: none;
  color: var(--lb-offwhite);
  transition: background var(--lb-duration) var(--lb-ease), transform var(--lb-duration) var(--lb-ease);
}

.lookbook-page--paper .lookbook-shop__chip {
  background: var(--lb-offwhite);
  border-color: rgba(10, 10, 10, 0.1);
  color: var(--lb-ink);
  box-shadow: var(--shadow-soft, 0 2px 12px rgba(0, 0, 0, 0.06));
}

.lookbook-shop__chip:hover {
  background: rgba(196, 92, 42, 0.92);
  transform: translateY(-1px);
}

.lookbook-page--paper .lookbook-shop__chip:hover {
  background: var(--lb-accent);
  color: var(--lb-offwhite);
}

.lookbook-shop__chip-name {
  font-size: var(--lb-type-caption);
  font-weight: 500;
  letter-spacing: 0.02em;
  max-width: 18ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lookbook-shop__chip-price {
  font-size: var(--lb-type-micro);
  letter-spacing: var(--lb-track-wide);
  text-transform: uppercase;
  opacity: 0.85;
}

.lookbook-spread--cover .lookbook-shop {
  bottom: calc(var(--lb-margin) * 5);
}

.lookbook-folio {
  bottom: calc(var(--lb-unit) * 2);
}

.lookbook-page:has(.lookbook-shop) .lookbook-folio {
  bottom: calc(var(--lb-unit) * 2);
}

@media (max-width: 768px) {
  .lookbook-shop {
    bottom: calc(var(--lb-unit) * 4);
  }

  .lookbook-shop__chip-name {
    max-width: 14ch;
  }
}

.lookbook-shop--grid {
  bottom: calc(var(--lb-unit) * 4);
  left: 50%;
  transform: translateX(-50%);
  right: auto;
  width: min(92%, 640px);
  align-items: center;
}

.lookbook-page--paper {
  background: var(--lb-offwhite);
}

/* ── Scan sequence tags (editorial folio) ── */
.lookbook-scan-tag {
  position: absolute;
  top: calc(var(--lb-unit) * 2);
  right: calc(var(--lb-unit) * 2);
  z-index: 4;
  font-family: var(--lb-font-display);
  font-size: var(--lb-type-micro);
  font-weight: 700;
  letter-spacing: var(--lb-track-wide);
  color: var(--lb-ink);
  background: rgba(245, 243, 239, 0.88);
  padding: 4px 8px;
  border: 1px solid rgba(10, 10, 10, 0.08);
  pointer-events: none;
}

.lookbook-scan-tag--light {
  color: var(--lb-offwhite);
  background: rgba(18, 24, 42, 0.72);
  border-color: rgba(245, 243, 239, 0.15);
}

.lookbook-spread-grid .lookbook-scan-tag {
  top: calc(var(--lb-unit) * 1);
  right: calc(var(--lb-unit) * 1);
}

/* ── Index contact sheet (scans 01–12) ── */
.lookbook-index__contact {
  grid-column: 1 / -1;
  margin-bottom: calc(var(--lb-gutter) * 1.5);
  padding-bottom: calc(var(--lb-gutter) * 1.5);
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
}

.lookbook-index__contact-label {
  margin: 0 0 calc(var(--lb-unit) * 2);
  font-size: var(--lb-type-micro);
  letter-spacing: var(--lb-track-ultra);
  text-transform: uppercase;
  color: var(--lb-grey);
}

.lookbook-index__contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lookbook-index__contact-strip li {
  position: relative;
  flex: 0 0 auto;
}

.lookbook-index__contact-strip li::before {
  content: attr(data-n);
  position: absolute;
  bottom: 2px;
  left: 2px;
  font-size: 8px;
  font-weight: 700;
  color: var(--lb-offwhite);
  background: rgba(18, 24, 42, 0.75);
  padding: 1px 4px;
  line-height: 1;
}

.lookbook-index__contact-strip img {
  display: block;
  width: 48px;
  height: 60px;
  object-fit: cover;
  border: 1px solid rgba(10, 10, 10, 0.1);
  filter: saturate(0.92);
}

.lookbook-index__contact-strip li:nth-child(1)::before { content: '01'; }
.lookbook-index__contact-strip li:nth-child(2)::before { content: '02'; }
.lookbook-index__contact-strip li:nth-child(3)::before { content: '03'; }
.lookbook-index__contact-strip li:nth-child(4)::before { content: '04'; }
.lookbook-index__contact-strip li:nth-child(5)::before { content: '05'; }
.lookbook-index__contact-strip li:nth-child(6)::before { content: '06'; }
.lookbook-index__contact-strip li:nth-child(7)::before { content: '07'; }
.lookbook-index__contact-strip li:nth-child(8)::before { content: '08'; }
.lookbook-index__contact-strip li:nth-child(9)::before { content: '09'; }
.lookbook-index__contact-strip li:nth-child(10)::before { content: '10'; }
.lookbook-index__contact-strip li:nth-child(11)::before { content: '11'; }
.lookbook-index__contact-strip li:nth-child(12)::before { content: '12'; }



/* ── SPREAD 03: Geometric grid (spans both pages) ── */
.lookbook-spread--grid {
  display: block;
  min-height: 100dvh;
  padding: 0;
}

.lookbook-spread--grid::after {
  display: none;
}

.lookbook-spread-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  gap: var(--lb-gutter);
  padding: var(--lb-margin);
  min-height: 100dvh;
  max-width: var(--lb-spread-max);
  margin: 0 auto;
  background: var(--lb-bg);
  position: relative;
}

/* Center gutter marker */
.lookbook-spread-grid::before {
  content: "";
  position: absolute;
  left: 50%;
  top: var(--lb-margin);
  bottom: var(--lb-margin);
  width: 1px;
  background: rgba(10, 10, 10, 0.08);
  pointer-events: none;
}

.lookbook-spread-grid__a {
  grid-column: 1 / 7;
  grid-row: 1 / 8;
}

.lookbook-spread-grid__b {
  grid-column: 7 / 13;
  grid-row: 1 / 6;
}

.lookbook-spread-grid__c {
  grid-column: 1 / 4;
  grid-row: 8 / 13;
  background: var(--lb-midnight);
  position: relative;
}

.lookbook-spread-grid__c::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  opacity: 0.18;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.lookbook-spread-grid__d {
  grid-column: 4 / 13;
  grid-row: 6 / 13;
}

.lookbook-spread-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lookbook-spread-grid__c img {
  filter: contrast(1.2) saturate(0.6);
}

@media (max-width: 768px) {
  .lookbook-spread-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: auto;
    gap: var(--lb-unit);
  }

  .lookbook-spread-grid::before {
    display: none;
  }

  .lookbook-spread-grid__a,
  .lookbook-spread-grid__b,
  .lookbook-spread-grid__c,
  .lookbook-spread-grid__d {
    grid-column: auto;
    grid-row: auto;
    min-height: 200px;
  }
}

/* Legacy grid (unused) */
.lookbook-grid-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  gap: var(--lb-gutter);
  padding: var(--lb-margin);
  height: 100%;
  position: relative;
  z-index: 2;
}

.lookbook-grid-layout__a {
  grid-column: 1 / 8;
  grid-row: 1 / 8;
}

.lookbook-grid-layout__b {
  grid-column: 8 / 13;
  grid-row: 1 / 6;
}

.lookbook-grid-layout__c {
  grid-column: 1 / 5;
  grid-row: 8 / 13;
  background: var(--lb-midnight);
}

.lookbook-grid-layout__d {
  grid-column: 5 / 13;
  grid-row: 6 / 13;
}

.lookbook-grid-layout img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lookbook-grid-layout__c img {
  filter: contrast(1.2) saturate(0.6);
}

@media (max-width: 768px) {
  .lookbook-grid-layout {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: var(--lb-unit);
  }

  .lookbook-grid-layout__a,
  .lookbook-grid-layout__b,
  .lookbook-grid-layout__c,
  .lookbook-grid-layout__d {
    grid-column: auto;
    grid-row: auto;
    min-height: 200px;
  }
}

/* ── SPREAD 04: Centerfold ── */
.lookbook-centerfold {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
}

.lookbook-centerfold .lookbook-img-wrap {
  position: absolute;
  inset: 0;
}

.lookbook-centerfold__label {
  position: absolute;
  bottom: var(--lb-margin);
  left: var(--lb-margin);
  z-index: 3;
  color: var(--lb-offwhite);
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.5);
}

.lookbook-centerfold__label .lookbook-kicker {
  color: var(--lb-lavender);
}

.lookbook-centerfold__label .lookbook-heading {
  color: var(--lb-offwhite);
  border: none;
}

/* ── PAGE 1: Front cover ── */
.lookbook-spread--cover {
  background: var(--lb-midnight);
}

.lookbook-spread--cover .lookbook-page {
  background: var(--lb-midnight);
  min-height: 100dvh;
}

/* ── SPREAD 06: Commercial index ── */
.lookbook-index {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  padding: var(--lb-margin);
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.lookbook-index__header {
  border-bottom: 1px solid rgba(10, 10, 10, 0.12);
  padding-bottom: calc(var(--lb-unit) * 2);
  margin-bottom: calc(var(--lb-unit) * 3);
}

.lookbook-index-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: calc(var(--lb-unit) * 2);
  align-items: start;
  position: relative;
  z-index: 3;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  padding: calc(var(--lb-unit) * 1.5) 0;
  border-bottom: 1px solid rgba(10, 10, 10, 0.06);
  transition: color var(--lb-duration) var(--lb-ease);
}

.lookbook-index-item:hover {
  color: var(--lb-accent);
}

.lookbook-index-item img {
  width: 88px;
  height: 110px;
  object-fit: cover;
  background: var(--lb-paper);
}

.lookbook-index-item__name {
  font-family: var(--lb-font-display);
  font-size: var(--lb-type-small);
  font-weight: 600;
  margin: 0 0 4px;
  line-height: var(--lb-lh-snug);
}

.lookbook-index-item__detail {
  font-size: var(--lb-type-caption);
  color: var(--lb-text-muted);
  margin: 0;
}

.lookbook-index-item__price {
  font-size: var(--lb-type-caption);
  font-weight: 500;
  letter-spacing: var(--lb-track-wide);
  white-space: nowrap;
}

/* ── SPREAD 07: Outro ── */
.lookbook-outro-analog {
  position: absolute;
  right: var(--lb-margin);
  bottom: var(--lb-margin);
  width: min(42%, 220px);
  aspect-ratio: 3 / 4;
  z-index: 2;
}

/* ── PAGE 16: Back cover ── */
.lookbook-spread--back {
  background: var(--lb-offwhite);
}

.lookbook-back {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--lb-margin);
}

.lookbook-back__brand {
  font-family: var(--lb-font-display);
  font-size: var(--lb-type-heading);
  font-weight: 700;
  letter-spacing: var(--lb-track-tight);
  color: var(--lb-accent);
  margin: 0 0 calc(var(--lb-unit) * 2);
}

.lookbook-back__url {
  font-size: var(--lb-type-caption);
  letter-spacing: var(--lb-track-wide);
  text-transform: uppercase;
  margin: 0 0 calc(var(--lb-unit) * 3);
}

.lookbook-back__url a {
  color: var(--lb-text-muted);
  text-decoration: none;
}

.lookbook-back__url a:hover {
  color: var(--lb-accent);
}

.lookbook-back__credits {
  font-size: var(--lb-type-micro);
  letter-spacing: var(--lb-track-wide);
  text-transform: uppercase;
  color: var(--lb-grey);
  line-height: var(--lb-lh-snug);
}

.lookbook-back__credits p {
  margin: 0 0 4px;
}

/* ── Navigation controls ── */
.lookbook-nav {
  position: fixed;
  bottom: var(--lb-margin);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: calc(var(--lb-unit) * 2);
  background: rgba(18, 24, 42, 0.88);
  backdrop-filter: blur(10px);
  padding: calc(var(--lb-unit) * 1.5) calc(var(--lb-unit) * 3);
  border: 1px solid rgba(245, 243, 239, 0.12);
}

.lookbook-nav__btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--lb-offwhite);
  font-family: var(--lb-font-body);
  font-size: var(--lb-type-caption);
  font-weight: 500;
  letter-spacing: var(--lb-track-wide);
  text-transform: uppercase;
  cursor: pointer;
  padding: calc(var(--lb-unit) * 1) calc(var(--lb-unit) * 2);
  transition: color var(--lb-duration) var(--lb-ease);
}

.lookbook-nav__btn:hover:not(:disabled) {
  color: var(--lb-terracotta-bright);
}

.lookbook-nav__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.lookbook-nav__dots {
  display: flex;
  gap: 6px;
  padding: 0 calc(var(--lb-unit) * 2);
}

.lookbook-nav__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  padding: 0;
  /* background-color (not the shorthand) so the mobile hit-strip's
   * background-clip: content-box is not reset back to border-box. */
  background-color: rgba(245, 243, 239, 0.25);
  cursor: pointer;
  transition: background-color var(--lb-duration) var(--lb-ease), transform var(--lb-duration) var(--lb-ease);
}

.lookbook-nav__dot.is-active {
  background-color: var(--lb-terracotta-bright);
  transform: scale(1.25);
}

.lookbook-nav__dot:hover {
  background-color: rgba(245, 243, 239, 0.55);
}

/* Mobile: the bar carries Prev/Next + one dot per spread (15), so at ~390px it
 * used to overflow the screen edges. Shrink the chrome to fit, give Prev/Next a
 * 44px height, and turn each 6px dot into a tall (44px) transparent hit strip
 * via padding + negative margin — the visible dot stays 6px (background-clip). */
@media (max-width: 768px) {
  .lookbook-nav {
    gap: var(--lb-unit);
    padding: calc(var(--lb-unit) * 1.25) calc(var(--lb-unit) * 1.5);
    max-width: calc(100vw - 1rem);
    box-sizing: border-box;
  }

  .lookbook-nav__btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: calc(var(--lb-unit) * 0.5) var(--lb-unit);
  }

  .lookbook-nav__dots {
    flex: 1;
    justify-content: center;
    gap: 2px;
    padding: 0 var(--lb-unit);
  }

  .lookbook-nav__dot {
    box-sizing: content-box;
    width: 6px;
    height: 6px;
    padding: 19px 3px;
    margin: -19px 0;
    background-clip: content-box;
  }
}

/* Progress strip */
.lookbook-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--lb-terracotta-bright);
  z-index: 101;
  transition: width 0.3s var(--lb-ease);
  width: 0;
}

/* Lavender band accent (reference bottom strip) */
.lookbook-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18%;
  background: linear-gradient(180deg, transparent, var(--lb-lavender-wash));
  pointer-events: none;
  z-index: 1;
}

/* ══════════════════════════════════════════════════════════════════
 * MIXED-MEDIA TEMPLATE SYSTEM
 * Classes: lookbook-tpl--{cover|intro|split|grid|interlude|contrast|index|fade|back}
 * Grid:    lb-grid (12-col page) · lb-spread-grid (12-col spread)
 * Media:   lookbook-media + --analog | --digital
 * ══════════════════════════════════════════════════════════════════ */

/* ── Page-level modular grid (Swiss 12-col) ── */
.lb-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--lb-gutter);
  padding: var(--lb-margin);
  height: 100%;
  position: relative;
  z-index: 2;
}

.lb-col-1  { grid-column: span 1; }
.lb-col-2  { grid-column: span 2; }
.lb-col-3  { grid-column: span 3; }
.lb-col-4  { grid-column: span 4; }
.lb-col-5  { grid-column: span 5; }
.lb-col-6  { grid-column: span 6; }
.lb-col-7  { grid-column: span 7; }
.lb-col-8  { grid-column: span 8; }
.lb-col-9  { grid-column: span 9; }
.lb-col-10 { grid-column: span 10; }
.lb-col-11 { grid-column: span 11; }
.lb-col-12 { grid-column: span 12; }

.lb-col-start-1  { grid-column-start: 1; }
.lb-col-start-2  { grid-column-start: 2; }
.lb-col-start-4  { grid-column-start: 4; }
.lb-col-start-5  { grid-column-start: 5; }
.lb-col-start-7  { grid-column-start: 7; }

.lb-row-span-2 { grid-row: span 2; }
.lb-row-span-3 { grid-row: span 3; }

/* Typography safe zone — always align to cols 2–6 or 8–11 */
.lb-type-zone {
  grid-column: 2 / 7;
  align-self: center;
}

.lb-type-zone--right {
  grid-column: 8 / 12;
}

/* ── Media component ── */
.lookbook-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.lookbook-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lookbook-media--bleed {
  position: absolute;
  inset: 0;
}

.lookbook-media--inset {
  position: absolute;
  inset: var(--lb-margin);
}

.lookbook-media--analog::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  opacity: 0.18;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.lookbook-media--offset-tr {
  position: absolute;
  top: var(--lb-margin);
  right: calc(var(--lb-unit) * 2);
  bottom: calc(var(--lb-margin) * 2);
  left: 28%;
}

.lookbook-media--float {
  position: absolute;
  right: var(--lb-margin);
  bottom: var(--lb-margin);
  width: min(42%, 240px);
  aspect-ratio: 3 / 4;
}

.lookbook-media__tag {
  position: absolute;
  z-index: 3;
  font-size: var(--lb-type-caption);
  letter-spacing: var(--lb-track-wide);
  text-transform: uppercase;
  color: var(--lb-grey);
  margin: 0;
}

.lookbook-media__tag--bl { left: var(--lb-margin); bottom: var(--lb-margin); }
.lookbook-media__tag--br { right: var(--lb-margin); bottom: var(--lb-margin); }
.lookbook-media__tag--tl { left: var(--lb-margin); top: var(--lb-margin); }

/* Embrace analog flaws — rough edge frame */
.lookbook-media--artifact {
  box-shadow: inset 0 0 0 1px rgba(10, 10, 10, 0.06);
}

.lookbook-media--artifact img {
  object-fit: contain;
  background: var(--lb-paper);
}

/* ── TPL: Intro (cinematic opener · manifesto) ── */
.lookbook-page--intro-triptych {
  display: flex;
  flex-direction: column;
  background: var(--lb-paper);
}

.lookbook-intro-triptych {
  flex: 1;
  display: grid;
  grid-template-rows: 1.15fr 0.85fr;
  min-height: 0;
}

.lookbook-intro-triptych__hero {
  min-height: 0;
}

.lookbook-intro-triptych__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}

.lookbook-intro-triptych__pair .lookbook-media {
  min-height: 0;
}

.lookbook-intro-triptych img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .lookbook-intro-triptych {
    grid-template-rows: auto auto;
  }

  .lookbook-intro-triptych__hero {
    aspect-ratio: 4 / 5;
  }

  .lookbook-intro-triptych__pair {
    grid-template-columns: 1fr;
  }

  .lookbook-intro-triptych__pair .lookbook-media {
    aspect-ratio: 4 / 5;
  }
}

/* ── TPL: Split spread (analog left · digital right) ── */
.lookbook-tpl--split .lookbook-page:first-child {
  background: var(--lb-paper);
}

.lookbook-tpl--split .lookbook-page:last-child {
  background: var(--lb-bg);
}

/* ── TPL: Interlude (full spread analog reset) ── */
.lookbook-tpl--interlude {
  background: var(--lb-midnight);
}

/* ── TPL: Contrast (digital still · analog candid) ── */
.lookbook-tpl--contrast .lookbook-page:first-child {
  background: var(--lb-bg);
}

.lookbook-tpl--contrast .lookbook-page:last-child {
  background: var(--lb-paper);
}

/* ── TPL: Index (pure digital — no grain overlay on thumbs) ── */
.lookbook-tpl--index .lookbook-index-item img {
  filter: none;
}

/* ── TPL: Fade (dissolve layout) ── */
.lookbook-tpl--fade .lookbook-page:first-child {
  background: var(--lb-bg);
}

.lookbook-tpl--fade .lookbook-page:last-child {
  background: var(--lb-offwhite);
}

/* ── Rhythm indicator (dev / template page only) ── */
.lookbook-rhythm-key {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: var(--lb-margin);
  background: var(--lb-midnight);
  border-bottom: 1px solid rgba(245, 243, 239, 0.1);
}

.lookbook-rhythm-key__chip {
  font-size: var(--lb-type-micro);
  letter-spacing: var(--lb-track-wide);
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 243, 239, 0.2);
  color: var(--lb-offwhite);
}

.lookbook-rhythm-key__chip--analog {
  border-color: var(--lb-lavender);
  color: var(--lb-lavender);
}

.lookbook-rhythm-key__chip--digital {
  border-color: var(--lb-terracotta-bright);
  color: var(--lb-terracotta-bright);
}

.lookbook-rhythm-key__chip--text {
  border-color: var(--lb-grey);
  color: var(--lb-grey);
}

/* ── Template reference page ── */
.lookbook-templates {
  scroll-snap-type: none;
  height: auto;
  min-height: 100dvh;
  overflow: visible;
  background: var(--lb-midnight);
}

.lookbook-template-block {
  max-width: var(--lb-spread-max);
  margin: 0 auto calc(var(--lb-margin) * 2);
  border: 1px solid rgba(245, 243, 239, 0.12);
}

.lookbook-template-block__head {
  padding: calc(var(--lb-unit) * 3) var(--lb-margin);
  background: rgba(18, 24, 42, 0.95);
  border-bottom: 1px solid rgba(245, 243, 239, 0.08);
}

.lookbook-template-block__head h2 {
  font-family: var(--lb-font-display);
  font-size: var(--lb-type-heading);
  color: var(--lb-offwhite);
  margin: 0 0 8px;
  letter-spacing: var(--lb-track-wide);
  text-transform: uppercase;
}

.lookbook-template-block__head p {
  font-size: var(--lb-type-small);
  color: var(--lb-lavender);
  margin: 0;
  max-width: 60ch;
}

.lookbook-template-block__preview {
  background: var(--lb-bg);
  min-height: 480px;
}

.lookbook-palette {
  display: flex;
  gap: var(--lb-gutter);
  padding: var(--lb-margin);
  flex-wrap: wrap;
  background: var(--lb-midnight);
}

.lookbook-palette__swatch {
  width: 80px;
  text-align: center;
}

.lookbook-palette__chip {
  width: 80px;
  height: 48px;
  border-radius: 4px;
  margin-bottom: 6px;
  border: 1px solid rgba(245, 243, 239, 0.15);
}

.lookbook-palette__label {
  font-size: var(--lb-type-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lb-grey);
  display: block;
}

.lookbook-palette__hex {
  font-size: var(--lb-type-micro);
  color: var(--lb-lavender);
  font-family: monospace;
}

