/**
 * Lookbook layer - cinematic homepage treatment.
 * Loaded after main.css.
 */

:root {
  --bb-ink: #0c0b0a;
  --bb-paper: #f7f6f3;
  --bb-wine: #4a1c24;
}

body.is-front {
  background: #0c0b0a;
}

body.is-front .site-main {
  background: var(--bb-paper);
}

/* Overlay header on home */
.site-header--overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 0;
  transition: background 0.35s var(--bb-ease), backdrop-filter 0.35s, border-color 0.35s;
}

/*
 * Reserve a fixed logo slot matching the solid-state wordmark width so
 * nav links do not shift when swapping monogram <-> wordmark on scroll.
 */
.site-header--overlay .site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: min(200px, 42vw);
  min-width: min(200px, 42vw);
  flex: 0 0 min(200px, 42vw);
}

/* At top of landing: monogram only (hero already has full wordmark) */
.site-header--overlay .site-logo img {
  display: none;
}

.site-header--overlay:not(.is-solid) .site-logo img.logo-mono.logo-white {
  display: block;
  height: 2.65rem;
  width: auto;
  max-width: 3.4rem;
}

/* After scroll: full wordmark on solid bar */
.site-header--overlay.is-solid .site-logo img.logo-wordmark.logo-ink {
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: 100%;
}

.site-header--overlay .primary-nav a,
.site-header--overlay .nav-toggle span {
  color: #fff;
  background: #fff;
}

.site-header--overlay .primary-nav a {
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
}

.site-header--overlay .nav-toggle span {
  background: #fff;
}

.site-header--overlay .btn--primary {
  background: #fff;
  color: var(--bb-ink) !important;
}

.site-header--overlay.is-solid {
  background: rgba(247, 246, 243, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bb-line);
}

.site-header--overlay.is-solid .primary-nav a {
  color: var(--bb-ink);
}

.site-header--overlay.is-solid .nav-toggle span {
  background: var(--bb-ink);
}

.site-header--overlay.is-solid .btn--primary {
  background: #3b3939;
  color: #fff !important;
}

@media (max-width: 959px) {
  .site-header--overlay .primary-nav {
    background: rgba(12, 11, 10, 0.96);
    border-bottom: 0;
  }
  .site-header--overlay.is-solid .primary-nav {
    background: var(--bb-paper);
  }
}

.btn--ink {
  background: var(--bb-ink);
  color: #fff !important;
  border-color: var(--bb-ink);
}
.btn--ink:hover {
  background: #000;
  color: #fff !important;
}

/* ---------- Hero: brand as the statement ---------- */
.home-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-top: 5.5rem;
}

.home-hero__slide.is-active {
  animation: bb-ken 16s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bb-ken {
  from { transform: scale(1.03); }
  to { transform: scale(1); }
}

.home-hero__veil {
  background:
    linear-gradient(180deg, rgba(12, 11, 10, 0.28) 0%, rgba(12, 11, 10, 0.08) 42%, rgba(12, 11, 10, 0.62) 100%);
}

.home-hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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)'/%3E%3C/svg%3E");
}

.home-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem 2rem;
  width: min(100%, 920px);
  margin: 0 auto;
  animation: bb-rise 1.1s var(--bb-ease) both;
}

@keyframes bb-rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

.home-hero__place {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.home-hero__brand {
  width: min(420px, 78vw);
  margin: 0 auto 1.5rem;
  height: auto;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.45)) drop-shadow(0 12px 36px rgba(0, 0, 0, 0.55));
}

.home-hero__lede {
  font-family: var(--bb-font-serif);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  line-height: 1.4;
  max-width: 28ch;
  margin: 0 auto 1.75rem;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  opacity: 1;
}

.home-hero__actions .btn--ink {
  background: #fff;
  color: #0c0b0a !important;
  border-color: #fff;
}

.home-hero__actions .btn--light {
  background: #fff !important;
  color: #0c0b0a !important;
  border-color: #fff !important;
}

.home-hero__actions .btn--light:hover {
  background: rgba(255, 255, 255, 0.88);
  color: #0c0b0a !important;
}

.home-hero__actions .btn--ghost-light {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.9);
}

.home-hero__actions .btn--ghost-light:hover {
  background: #fff;
  color: #0c0b0a !important;
}

.home-hero__actions {
  justify-content: center;
}

.home-hero__footer {
  position: relative;
  z-index: 2;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--bb-wide));
  margin: 0 auto 1.25rem;
}

.home-hero__scroll {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.home-hero__scroll::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 2rem;
  margin-left: 0.75rem;
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.45);
  animation: bb-scroll-line 1.6s var(--bb-ease) infinite;
}

@keyframes bb-scroll-line {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

.home-hero__controls {
  position: static;
  right: auto;
  bottom: auto;
}

/* ---------- Marquee manifesto ---------- */
.manifesto {
  overflow: hidden;
  background: var(--bb-ink);
  color: #fff;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.55rem 0;
}

.manifesto__track {
  display: flex;
  width: max-content;
  animation: bb-marquee 48s linear infinite;
}

.manifesto__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
}

.manifesto__line {
  margin: 0;
  font-family: var(--bb-font-display);
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@keyframes bb-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .manifesto__track { animation: none; }
  .home-hero__content { animation: none; }
  .home-hero__scroll::after { animation: none; }
}

/* ---------- Lookbook asymmetric ---------- */
.lookbook {
  display: grid;
  gap: 0;
  background: var(--bb-paper);
}

.lookbook__visual {
  margin: 0;
  overflow: hidden;
  min-height: 70vw;
  max-height: 92vh;
}

.lookbook__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.2s var(--bb-ease);
}

.lookbook.is-in .lookbook__visual img {
  transform: scale(1);
}

.lookbook__copy {
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bb-paper);
}

.lookbook__index {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--bb-muted);
}

.lookbook__title {
  margin: 0 0 1rem;
  font-family: var(--bb-font-display);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.lookbook__text {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  font-size: 1.08rem;
  color: var(--bb-ink-soft);
}

@media (min-width: 900px) {
  .lookbook {
    grid-template-columns: 1.35fr 0.9fr;
    min-height: 92vh;
  }
  .lookbook__visual {
    min-height: 100%;
    max-height: none;
  }
  .lookbook--flip {
    grid-template-columns: 0.9fr 1.35fr;
  }
  .lookbook--flip .lookbook__visual {
    order: 2;
  }
  .lookbook--flip .lookbook__copy {
    order: 1;
  }
}

/* Middle band: soft stone panel so staggered rows don't read as one flat slab */
.lookbook--ink {
  background: var(--bb-wine);
  color: #fff;
}

.lookbook--ink .lookbook__copy {
  background: var(--bb-wine);
}

.lookbook--ink .lookbook__index {
  color: rgba(255, 255, 255, 0.5);
}

.lookbook--ink .lookbook__title {
  color: #fff;
}

.lookbook--ink .lookbook__text {
  color: rgba(255, 255, 255, 0.82);
}

.lookbook--ink .btn--ink {
  background: #fff;
  color: var(--bb-wine) !important;
  border-color: #fff;
}

.lookbook--ink .btn--ink:hover {
  background: var(--bb-paper);
  color: var(--bb-wine-deep) !important;
}

.lookbook--ink .btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff !important;
}

.lookbook--ink .btn--ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--bb-wine) !important;
}

.lookbook--flip {
  background: #e7e4df;
  color: var(--bb-ink);
}

.lookbook--flip .lookbook__copy {
  background: #e7e4df;
}

.lookbook--flip .lookbook__index {
  color: var(--bb-muted, rgba(12, 11, 10, 0.5));
}

.lookbook--flip .lookbook__title {
  color: var(--bb-ink);
}

.lookbook--flip .lookbook__text {
  color: var(--bb-muted, rgba(12, 11, 10, 0.72));
}

.lookbook--flip .btn--ink {
  background: var(--bb-ink);
  color: #fff !important;
  border-color: var(--bb-ink);
}

.lookbook--flip .btn--ink:hover {
  background: #000;
  color: #fff !important;
}

.lookbook--flip .btn--ghost {
  background: transparent;
  border-color: rgba(12, 11, 10, 0.35);
  color: var(--bb-ink) !important;
}

.lookbook--flip .btn--ghost:hover {
  background: var(--bb-ink);
  border-color: var(--bb-ink);
  color: #fff !important;
}

/* ---------- Full-bleed stages ---------- */
.stage {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.stage__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  transform: none;
  transition: none;
}

.stage.is-in .stage__media {
  transform: none;
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 11, 10, 0.72) 0%, rgba(12, 11, 10, 0.25) 55%, rgba(12, 11, 10, 0.15) 100%);
  pointer-events: none;
}

.stage--end::after {
  background: linear-gradient(270deg, rgba(12, 11, 10, 0.72) 0%, rgba(12, 11, 10, 0.25) 55%, rgba(12, 11, 10, 0.15) 100%);
}

.stage__panel {
  position: relative;
  z-index: 1;
  padding: clamp(2.5rem, 8vw, 5rem);
  max-width: 34rem;
}

.stage--end .stage__panel {
  justify-self: end;
  text-align: right;
}

.stage--end .cta-row {
  justify-content: flex-end;
}

.stage--end .lookbook__index {
  color: rgba(255, 255, 255, 0.55);
}

.stage .lookbook__index {
  color: rgba(255, 255, 255, 0.55);
}

.stage__title {
  margin: 0 0 0.85rem;
  font-family: var(--bb-font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.stage__text {
  margin: 0 0 1.5rem;
  font-size: 1.08rem;
  line-height: 1.55;
  opacity: 0.9;
  max-width: 32ch;
}

.stage--end .stage__text {
  margin-left: auto;
}

/* ---------- Horizontal runway ---------- */
.runway {
  background: #0c0b0a;
  color: #fff;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 8vw, 5rem);
}

.runway__head {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
}

.runway__title {
  margin: 0;
  font-family: var(--bb-font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.runway__lede {
  margin: 0.75rem 0 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.runway__rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(1.25rem, calc((100vw - var(--bb-wide)) / 2 + 1.25rem));
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.runway__rail::-webkit-scrollbar {
  display: none;
}

.runway__rail::before,
.runway__rail::after {
  content: "";
  flex: 0 0 max(1.25rem, calc((100vw - var(--bb-wide)) / 2 + 1.25rem));
}

.runway__rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.runway__card {
  margin: 0;
  flex: 0 0 min(78vw, 460px);
  scroll-snap-align: start;
}

.runway__card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.05) contrast(1.03);
}

.runway__cta {
  margin-top: 2rem;
}

.runway .btn--ink {
  background: #fff;
  color: #0c0b0a !important;
  border-color: #fff;
}

.runway .btn--ink:hover {
  background: rgba(255, 255, 255, 0.88);
}

@media (min-width: 900px) {
  .runway__card {
    flex-basis: 420px;
  }
}
