/* ═══════════════════════════════════════════════
   VESTIGE — Ghost Archive FW26
   off-black #111 · bone #e8e3da · oxblood #5e1a1a
   Bodoni Moda (display) · Archivo (body)
   ═══════════════════════════════════════════════ */

:root {
  --ink: #111111;
  --ink-soft: #1a1917;
  --bone: #e8e3da;
  --bone-dim: rgba(232, 227, 218, 0.62);
  --bone-faint: rgba(232, 227, 218, 0.46);
  --ox: #5e1a1a;
  --ox-bright: #8a2f2c;
  --hair: rgba(232, 227, 218, 0.16);
  --display: "Bodoni Moda", "Didot", Georgia, serif;
  --grotesk: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

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

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

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--grotesk);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--ox); color: var(--bone); }

/* film grain over everything */
.grain {
  position: fixed;
  inset: -8%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.14'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* ───────── header ───────── */
.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.4rem var(--gutter);
  mix-blend-mode: difference;
  color: #e8e3da;
}
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.42em;
  text-decoration: none;
}
.site-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.4rem);
}
.site-nav a {
  position: relative;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0.24em; bottom: -0.45em;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.site-nav a:hover { opacity: 1; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }

/* ───────── section labels ───────── */
.sec-label {
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.sec-label i {
  font-family: var(--display);
  font-style: italic;
  color: var(--ox-bright);
  letter-spacing: 0.05em;
  margin-right: 0.5em;
  font-size: 0.9rem;
}
.sec-label--right { text-align: right; }

/* ───────── hero ───────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02);
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(17,17,17,0.52) 0%, rgba(17,17,17,0.08) 34%, rgba(17,17,17,0.0) 55%, rgba(17,17,17,0.66) 100%);
}
@media (max-width: 640px) {
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(17,17,17,0.8) 0%, rgba(17,17,17,0.32) 34%, rgba(17,17,17,0.34) 62%, rgba(17,17,17,0.74) 100%);
  }
}
.hero-type {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
}
.hero-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: clamp(1rem, 2.5vh, 2rem);
}
.hero-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(4.4rem, 17vw, 15.5rem);
  line-height: 0.84;
  letter-spacing: -0.015em;
  color: var(--bone);
  mix-blend-mode: exclusion;
  text-transform: uppercase;
}
.ht-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.ht-word { display: inline-block; }
.ht-line--indent { margin-left: clamp(2rem, 12vw, 14rem); }
.ht-word--italic { font-style: italic; font-weight: 600; text-transform: none; letter-spacing: 0; }
.hero-dek {
  margin-top: clamp(1.2rem, 3vh, 2.4rem);
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  color: var(--bone);
  max-width: 30ch;
}
.reveal-line { overflow: hidden; display: block; }
.reveal-line > span { display: inline-block; }

.hero-foot {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem var(--gutter);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
  border-top: 1px solid var(--hair);
}
.hf-scroll { display: inline-flex; align-items: center; gap: 0.7em; color: var(--bone); }
.hf-rule {
  width: 3.4rem; height: 1px;
  background: var(--ox-bright);
  display: inline-block;
  transform-origin: left;
  animation: ruleBreathe 2.6s ease-in-out infinite;
}
@keyframes ruleBreathe {
  0%, 100% { transform: scaleX(0.35); }
  50% { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hf-rule { animation: none; }
}

/* ───────── notes ───────── */
.notes {
  padding: clamp(6rem, 14vh, 11rem) var(--gutter) clamp(5rem, 12vh, 9rem);
  position: relative;
}
.notes::before {
  content: "";
  position: absolute;
  top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px; background: var(--hair);
}
.notes-head, .at-head, .st-head, .lb-head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(3rem, 8vh, 6rem);
}
.notes-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr) minmax(0, 2.4fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.notes-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 3.7vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.notes-title em, .at-title em, .st-title em, .lbp-title em {
  font-style: italic;
  color: var(--ox-bright);
}
.notes-essay p + p { margin-top: 1.4em; }
.notes-essay .lede {
  font-size: 1.08rem;
  line-height: 1.75;
}
.dropcap {
  font-family: var(--display);
  font-weight: 900;
  font-size: 3.6em;
  float: left;
  line-height: 0.78;
  padding: 0.06em 0.14em 0 0;
  color: var(--ox-bright);
}
.notes-essay { color: var(--bone-dim); max-width: 46ch; }
.notes-essay em { color: var(--bone); font-style: italic; }
.essay-sig {
  font-family: var(--display);
  font-style: italic;
  color: var(--bone);
  font-size: 1.05rem;
}
.notes-margin {
  border-left: 1px solid var(--hair);
  padding-left: clamp(1.2rem, 2vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 2.6rem;
  margin-top: 0.4rem;
}
.margin-item { display: flex; flex-direction: column; gap: 0.5rem; }
.mi-num {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 1;
  color: var(--bone);
}
.mi-label {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-faint);
  line-height: 1.7;
}

/* ───────── interstitial ───────── */
.interstitial {
  position: relative;
  padding: clamp(2rem, 6vh, 5rem) 0;
}
.inter-media {
  position: relative;
  width: min(62vw, 720px);
  margin-left: auto;
  margin-right: var(--gutter);
  aspect-ratio: 3 / 4.05;
  overflow: hidden;
}
.inter-media img {
  width: 100%; height: 116%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02);
}
.inter-word {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(5rem, 19vw, 18rem);
  line-height: 1;
  color: var(--bone);
  mix-blend-mode: difference;
  white-space: nowrap;
  pointer-events: none;
  padding-left: var(--gutter);
}
.iw-track { display: inline-block; }
.inter-caption {
  margin: 1.4rem var(--gutter) 0 auto;
  width: min(62vw, 720px);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.cap-no { color: var(--ox-bright); }

/* ───────── clip reveal ───────── */
.clip-reveal { clip-path: inset(0 0 0 0); }
.js .clip-reveal { clip-path: inset(12% 6% 12% 6%); }
.js.reduced-motion .clip-reveal { clip-path: inset(0 0 0 0); }

/* ───────── lookbook ───────── */
.lookbook { position: relative; }
.lb-pin {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(4rem, 9vh, 7rem) 0 clamp(3rem, 7vh, 5rem);
}
.lb-head {
  align-items: center;
  padding: 0 var(--gutter);
  margin-bottom: clamp(2rem, 5vh, 4rem);
}
.lb-progress {
  flex: 1;
  max-width: 380px;
  height: 1px;
  background: var(--hair);
  position: relative;
  margin: 0 2rem;
}
.lb-progress-bar {
  position: absolute; inset: 0;
  background: var(--ox-bright);
  transform-origin: left;
  transform: scaleX(0);
}
.lb-track {
  display: flex;
  align-items: stretch;
  gap: clamp(2.5rem, 6vw, 7rem);
  padding: 0 var(--gutter);
  width: max-content;
}
.lb-panel {
  display: flex;
  gap: clamp(1.4rem, 2.5vw, 2.6rem);
  align-items: flex-end;
  width: max-content;
}
.lb-fig {
  width: clamp(300px, 36vw, 480px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--ink-soft);
}
.lb-fig img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.lb-panel:hover .lb-fig img { transform: scale(1.035); }
.lb-meta {
  width: clamp(220px, 22vw, 300px);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-bottom: 0.4rem;
}
.lb-no {
  font-family: var(--display);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--ox-bright);
  line-height: 1;
}
.lb-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.lb-desc {
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--bone-dim);
}
.lb-fabric {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-faint);
  border-top: 1px solid var(--hair);
  padding-top: 0.8rem;
}
.lb-panel--intro, .lb-panel--outro {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: clamp(260px, 30vw, 420px);
  gap: 1.6rem;
}
.lbp-index {
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ox-bright);
}
.lbp-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.4vw, 4.2rem);
  line-height: 1.02;
  text-transform: uppercase;
}
.lbp-title em { text-transform: none; font-weight: 400; }
.lbp-note {
  font-size: 0.86rem;
  color: var(--bone-dim);
  max-width: 30ch;
}
.lbp-arrow {
  font-size: 1.6rem;
  color: var(--ox-bright);
}
.lbp-link {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--ox-bright);
  padding-bottom: 0.45em;
  transition: color 0.3s;
}
.lbp-link:hover { color: var(--ox-bright); }

/* mobile / fallback: native horizontal scroll strip */
@media (max-width: 899px) {
  .lb-pin { min-height: 0; }
  .lb-track {
    width: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter); /* keep the first plate off the viewport edge when snap lands */
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1.5rem;
    scrollbar-width: none;
  }
  .lb-track::-webkit-scrollbar { display: none; }
  .lb-panel { scroll-snap-align: start; flex-direction: column; align-items: flex-start; }
  .lb-fig { width: min(76vw, 380px); }
  .lb-meta { width: min(76vw, 380px); }
  .lb-progress { display: none; }
}

/* ───────── atelier ───────── */
.atelier {
  padding: clamp(6rem, 14vh, 11rem) var(--gutter);
  position: relative;
}
.atelier::before {
  content: "";
  position: absolute;
  top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px; background: var(--hair);
}
.at-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.at-media {
  position: relative;
  aspect-ratio: 16 / 10.4;
  overflow: hidden;
}
.at-media img {
  width: 100%; height: 118%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.03);
}
.at-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.2rem 1.2rem 0.9rem;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  background: linear-gradient(180deg, transparent, rgba(17,17,17,0.82));
}
.at-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  line-height: 1.05;
  margin-bottom: 1.8rem;
}
.at-text p { color: var(--bone-dim); max-width: 48ch; }
.at-text p + p { margin-top: 1.3em; }
.at-text em { color: var(--bone); }
.at-facts {
  list-style: none;
  margin-top: 2.4rem;
  border-top: 1px solid var(--hair);
}
.at-facts li {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--hair);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.at-facts li span:first-child { color: var(--bone-faint); }

/* ───────── stockists ───────── */
.stockists {
  padding: clamp(6rem, 14vh, 11rem) var(--gutter);
  position: relative;
}
.stockists::before {
  content: "";
  position: absolute;
  top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px; background: var(--hair);
}
.st-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 1.02;
  margin-bottom: clamp(3rem, 7vh, 5.5rem);
}
.st-list { list-style: none; border-top: 1px solid var(--hair); counter-reset: stockist; }
.st-row {
  counter-increment: stockist;
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr);
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--hair);
  transition: padding-left 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.st-row::before {
  content: counter(stockist, decimal-leading-zero);
  font-family: var(--display);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--ox-bright);
}
.st-row:hover { padding-left: 1.2rem; }
.st-city {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  line-height: 1;
}
.st-row:hover .st-city { color: var(--ox-bright); }
.st-store { font-size: 0.88rem; color: var(--bone-dim); }
.st-note {
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-faint);
  text-align: right;
}
.st-foot {
  margin-top: 2.4rem;
  font-size: 0.85rem;
  color: var(--bone-faint);
  max-width: 52ch;
}
.st-foot a { color: var(--bone-dim); text-underline-offset: 4px; }
.st-foot a:hover { color: var(--bone); }

/* ───────── ticker ───────── */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 1.1rem 0;
  background: var(--ink);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 52s linear infinite;
}
.tk-seg {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bone-dim);
  white-space: nowrap;
}
.tk-seg i {
  font-style: normal;
  color: var(--ox-bright);
  padding: 0 1.1em;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ───────── finale ───────── */
.finale {
  position: relative;
  height: 72svh;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fin-media { position: absolute; inset: 0; }
.fin-media img {
  width: 100%; height: 118%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.7) contrast(1.02) brightness(0.8);
}
.fin-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(17,17,17,0.58) 0%,
    rgba(17,17,17,0.18) 32%,
    rgba(17,17,17,0.18) 68%,
    rgba(17,17,17,0.62) 100%);
}
.fin-type {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 3vh, 2rem);
  color: var(--bone);
}
.fin-word {
  mix-blend-mode: exclusion;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3.4rem, 13.5vw, 13rem);
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  line-height: 1;
}
.fin-kicker, .fin-tail {
  font-size: 0.64rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.fin-kicker, .fin-tail {
  color: var(--bone);
  text-shadow: 0 1px 14px rgba(17,17,17,0.85), 0 0 3px rgba(17,17,17,0.6);
}
.fin-tail {
  border-top: 1px solid rgba(232,227,218,0.45);
  padding-top: 1.1rem;
}

/* ───────── footer ───────── */
.site-foot {
  padding: 2.6rem var(--gutter) 2.2rem;
  border-top: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.sf-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.sf-brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.42em;
  color: var(--bone);
}
.sf-row--legal { color: var(--bone-faint); }
.sf-row a { color: var(--bone-dim); text-underline-offset: 4px; }
.sf-row a:hover { color: var(--bone); }
.sf-row strong { font-weight: 500; color: var(--bone-dim); }

/* ───────── split lines util ───────── */
.split-lines .sl-line { display: block; overflow: hidden; }
.split-lines .sl-inner { display: block; }

/* ───────── responsive ───────── */
@media (max-width: 1080px) {
  .notes-grid { grid-template-columns: 1fr 1fr; }
  .notes-margin {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--hair);
    padding: 2rem 0 0;
    flex-direction: row;
    gap: 3rem;
  }
}
@media (max-width: 899px) {
  .at-grid { grid-template-columns: 1fr; }
  .inter-media { width: min(86vw, 560px); }
  .inter-caption { width: min(86vw, 560px); }
}
@media (max-width: 640px) {
  .site-nav a { display: none; }
  .site-nav a[href="#lookbook"], .site-nav a[href="#stockists"] { display: inline; }
  .notes-grid { grid-template-columns: 1fr; }
  .notes-essay { max-width: none; }
  .notes-margin { flex-direction: column; gap: 2rem; }
  .hero-kicker { font-size: 0.58rem; letter-spacing: 0.22em; }
  .hero-foot { justify-content: space-between; }
  .hero-foot .hf-item:last-child { display: none; }
  .hero-foot .hf-item:first-child { max-width: 55%; line-height: 2; }
  .st-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .st-row::before { font-size: 0.7rem; }
  .st-note { text-align: left; }
  .inter-word { font-size: clamp(4rem, 22vw, 7rem); }
  .ht-line--indent { margin-left: 2.2rem; }
  .fin-word { letter-spacing: 0.12em; text-indent: 0.12em; }
}
