/* ==========================================================================
   The SL Scene: homepage (editorial redesign, 2026-10)
   Loaded on index.html only. Builds on tokens.css and site.css.
   Brand rules: square corners, no shadows, headlines never bold, no em dashes.
   ========================================================================== */

.page-home {
  --lx-gutter: clamp(24px, 5vw, 72px);
  --lx-max: 1320px;
  --lx-section: clamp(96px, 12vw, 176px);
  --lx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lx-cormorant: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
  --lx-veil: 28, 25, 21;
}

.lx-wrap { width: 100%; max-width: var(--lx-max); margin: 0 auto; padding: 0 var(--lx-gutter); }
.lx-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type system ---------- */
.lx-label {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--sl-champagne);
}
.lx-label--quiet { color: var(--sl-taupe); }
.lx-label--light { color: rgba(253, 252, 249, 0.82); }

.lx-display {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--sl-ink);
}
.lx-display em,
.lx-heading em {
  font-family: var(--lx-cormorant);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
}
.lx-display--light { color: var(--sl-paper); }

.lx-heading {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 3.8vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--sl-ink);
}
.lx-heading em { display: inline-block; margin-top: 0.12em; font-size: 1.04em; line-height: 1.12; color: var(--sl-ink-soft); }

.lx-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(26px, 2.2vw, 32px);
  line-height: 1.2;
  color: var(--sl-ink);
}

.lx-lead {
  margin: 0;
  font-family: var(--lx-cormorant);
  font-weight: 400;
  font-size: clamp(20px, 1.65vw, 24px);
  line-height: 1.6;
  color: var(--sl-ink-soft);
}
.lx-lead--light { color: rgba(253, 252, 249, 0.9); }

.lx-text {
  margin: 0;
  font-family: var(--lx-cormorant);
  font-weight: 400;
  font-size: clamp(19px, 1.35vw, 21px);
  line-height: 1.6;
  color: var(--sl-ink-soft);
}

.lx-quote-line {
  margin: 0;
  font-family: var(--lx-cormorant);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.3;
  color: var(--sl-ink);
}

.lx-numeral {
  margin: 0;
  font-family: var(--lx-cormorant);
  font-style: italic;
  font-weight: 300;
  font-size: 30px;
  line-height: 1;
  color: var(--sl-champagne);
}

/* Text link with a hairline that draws on hover */
.lx-link {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sl-ink);
  text-decoration: none;
}
.lx-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform 700ms var(--lx-ease);
}
.lx-link:hover::after { transform: scaleX(0.35); }
.lx-link--light { color: var(--sl-paper); }

/* Buttons: square, hairline, slow fill */
.lx-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 40px;
  border: 1px solid var(--sl-ink);
  background: transparent;
  color: var(--sl-ink);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 600ms var(--lx-ease), color 600ms var(--lx-ease), border-color 600ms var(--lx-ease);
}
.lx-button:hover { background: var(--sl-ink); color: var(--sl-paper); }
.lx-button--light { border-color: rgba(253, 252, 249, 0.85); color: var(--sl-paper); }
.lx-button--light:hover { background: var(--sl-paper); color: var(--sl-ink); border-color: var(--sl-paper); }

/* Image frames: fixed aspect, slow zoom on hover */
.lx-frame { position: relative; margin: 0; overflow: hidden; background: var(--sl-linen); }
.lx-frame--34 { aspect-ratio: 3 / 4; }
.lx-frame--45 { aspect-ratio: 4 / 5; }
@property --lx-zoom { syntax: '<number>'; inherits: false; initial-value: 1.1; }
.lx-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, var(--py, 0px), 0) scale(var(--lx-zoom));
  transition: --lx-zoom 1600ms var(--lx-ease);
  will-change: transform;
}
a:hover .lx-frame img,
.lx-offer__item:hover .lx-frame img { --lx-zoom: 1.14; }

.lx-quote-line, .lx-offer__close, .lx-heading, .lx-lead, .lx-word__quote, .lx-text { text-wrap: pretty; }
.lx-quote-line, .lx-offer__close, .lx-heading { text-wrap: balance; }

/* ---------- Header: transparent over the hero, paper once scrolled ---------- */
.page-home .slds-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  background: transparent;
  border-bottom-color: transparent;
}
.page-home .slds-header.is-scrolled,
.page-home.nav-open .slds-header {
  background: rgba(253, 252, 249, 0.94);
  border-bottom-color: var(--line-hair);
  box-shadow: none;
}
.page-home .slds-header:not(.is-scrolled) .slds-header__word,
.page-home .slds-header:not(.is-scrolled) .slds-header__link { color: var(--sl-paper); }
.page-home .slds-header:not(.is-scrolled) .slds-header__link:hover { border-bottom-color: rgba(253, 252, 249, 0.6); }
.page-home .slds-header:not(.is-scrolled) .slds-btn--primary {
  background: transparent;
  border-color: rgba(253, 252, 249, 0.8);
  color: var(--sl-paper);
}
.page-home .slds-header:not(.is-scrolled) .slds-btn--primary:hover { background: var(--sl-paper); color: var(--sl-ink); }
.page-home .slds-header:not(.is-scrolled) .slds-nav-toggle__bar { background: var(--sl-paper); }
.page-home.nav-open .slds-header .slds-header__word { color: var(--sl-ink); }
.page-home.nav-open .slds-header .slds-nav-toggle__bar { background: var(--sl-ink); }

/* ---------- Hero ---------- */
.lx-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--sl-ink);
}
.lx-hero__stage { position: absolute; inset: 0; min-height: 0; background: var(--sl-ink); }
.lx-hero .sl-hero-media__slide { display: block; }
.lx-hero .sl-hero-media__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 9000ms cubic-bezier(0.2, 0.6, 0.3, 1);
}
.lx-hero .sl-hero-media__slide.is-active img { transform: scale(1); }
.lx-hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 42% 34% at 50% 50%, rgba(var(--lx-veil), 0.42) 0%, rgba(var(--lx-veil), 0) 100%),
    linear-gradient(to bottom, rgba(var(--lx-veil), 0.5) 0%, rgba(var(--lx-veil), 0.14) 26%, rgba(var(--lx-veil), 0.14) 58%, rgba(var(--lx-veil), 0.62) 100%);
  pointer-events: none;
}
.lx-hero__center {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 88px 24px 0;
}
.lx-hero .lx-hero__card {
  margin: 0;
  width: clamp(300px, 34vw, 500px);
  padding: 0;
  background: none;
  border: 0;
  outline: 0;
}
.lx-hero__line {
  margin: 0;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(253, 252, 249, 0.88);
}
.lx-hero__cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  width: 24px;
  height: 64px;
  margin-left: -12px;
  display: flex;
  justify-content: center;
}
.lx-hero__cue-line {
  display: block;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, rgba(253, 252, 249, 0) 0%, rgba(253, 252, 249, 0.85) 50%, rgba(253, 252, 249, 0) 100%);
  background-size: 1px 200%;
  animation: lx-cue 2.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes lx-cue { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

/* ---------- Manifesto ---------- */
.lx-manifesto { padding: var(--lx-section) 0 calc(var(--lx-section) * 0.8); background: var(--sl-paper); }
.lx-manifesto__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: end;
}
.lx-manifesto__head { display: grid; gap: 32px; }
@media (min-width: 761px) { .lx-lines .lx-line { white-space: nowrap; } }
.lx-manifesto__head .lx-display em { display: inline-block; color: var(--sl-ink-soft); font-size: 1.06em; }
.lx-manifesto__body { display: grid; gap: 24px; padding-bottom: 10px; }
.lx-sign {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line-hair);
}
.lx-sign__name {
  font-family: var(--lx-cormorant);
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  color: var(--sl-ink);
}

.lx-lead--big { font-size: clamp(24px, 2.1vw, 30px); line-height: 1.35; color: var(--sl-ink); }

/* Rounded, elegant calls to action (Nick's call: pills here, not square outlines) */
.lx-actions { display: grid; grid-template-columns: minmax(0, 300px); gap: 12px; margin-top: 18px; }
.lx-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 600ms var(--lx-ease), color 600ms var(--lx-ease), transform 600ms var(--lx-ease);
}
.lx-pill--solid { background: var(--sl-ink); color: var(--sl-paper); }
.lx-pill--solid:hover { background: #2E2A24; }
.lx-pill--soft { background: var(--sl-linen); color: var(--sl-ink); }
.lx-pill--soft:hover { background: #DDD4C5; }
.lx-pill__arrow { width: 22px; height: 10px; transition: transform 600ms var(--lx-ease); }
.lx-pill:hover .lx-pill__arrow { transform: translateX(5px); }
.lx-pill:focus-visible { outline: 1px solid var(--sl-ink); outline-offset: 4px; }

/* ---------- Ways to work together ---------- */
.lx-offer { padding: 0 0 var(--lx-section); background: var(--sl-paper); }
.lx-offer__intro {
  display: grid;
  gap: 22px;
  justify-items: center;
  max-width: 760px;
  margin: 0 auto clamp(56px, 6vw, 88px);
  text-align: center;
}
.lx-offer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}
.lx-offer__item { display: grid; gap: 14px; align-content: start; }
.lx-offer__item:nth-child(2) { margin-top: clamp(40px, 6vw, 96px); }
.lx-offer__item .lx-frame { margin-bottom: 14px; }
.lx-offer__close {
  margin: clamp(64px, 7vw, 104px) auto 0;
  max-width: 720px;
  text-align: center;
  font-family: var(--lx-cormorant);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 1.9vw, 27px);
  line-height: 1.45;
  color: var(--sl-ink);
}

/* ---------- Cinematic band ---------- */
.lx-band { position: relative; height: clamp(440px, 72vh, 820px); overflow: hidden; background: var(--sl-ink); }
.lx-band__img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; object-position: 50% 55%; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.lx-band__veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(var(--lx-veil), 0.7) 0%, rgba(var(--lx-veil), 0.08) 55%); }
.lx-band__caption {
  position: absolute;
  left: var(--lx-gutter);
  bottom: clamp(36px, 6vw, 72px);
  display: grid;
  gap: 16px;
  justify-items: start;
  text-decoration: none;
}
.lx-band__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.05;
  color: var(--sl-paper);
}

/* ---------- Selected scenes ---------- */
.lx-scenes { padding: var(--lx-section) 0; background: var(--sl-paper); }
.lx-scenes__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 20px 40px;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.lx-scenes__head .lx-label { grid-column: 1 / -1; }
.lx-scenes__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3.4fr) minmax(0, 3.4fr);
  gap: clamp(20px, 2.6vw, 40px);
  align-items: start;
}
.lx-scene { display: grid; gap: 12px; text-decoration: none; color: inherit; }
.lx-scene .lx-frame { margin-bottom: 10px; }
.lx-scene--b { margin-top: clamp(56px, 9vw, 160px); }
.lx-scene--c { margin-top: clamp(20px, 3vw, 48px); }
.lx-scene__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.2;
  color: var(--sl-ink);
  transition: color 600ms var(--lx-ease);
}
.lx-scene:hover .lx-scene__title { color: var(--sl-ink-soft); }

/* ---------- Meet Stacy ---------- */
.lx-stacy { padding: var(--lx-section) 0; background: var(--sl-alabaster); }
.lx-stacy__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(48px, 8vw, 140px);
  align-items: center;
}
.lx-stacy__text { display: grid; gap: 30px; justify-items: start; }
.lx-stacy__text .lx-lead { max-width: 520px; }
.lx-stacy__portrait { position: relative; margin: 0; }
.lx-stacy__portrait::before {
  content: '';
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--sl-champagne);
  pointer-events: none;
}

/* ---------- Kind words ---------- */
.lx-words { padding: var(--lx-section) 0; background: var(--sl-ivory); color: var(--sl-ink); }
.lx-words__inner { display: grid; justify-items: center; gap: 40px; text-align: center; }
.lx-words__stage { display: grid; width: 100%; max-width: 980px; }
.lx-word {
  grid-area: 1 / 1;
  margin: 0;
  display: grid;
  gap: 32px;
  justify-items: center;
  align-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 450ms ease, transform 450ms ease, visibility 0s linear 450ms;
}
.lx-word.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 900ms var(--lx-ease) 450ms, transform 900ms var(--lx-ease) 450ms, visibility 0s linear 0s;
}
.lx-word__quote {
  margin: 0;
  font-family: var(--lx-cormorant);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.38;
  color: var(--sl-ink);
}
.lx-word__quote::before {
  content: '\201C';
  display: block;
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 64px;
  line-height: 0.6;
  margin-bottom: 18px;
  color: var(--sl-champagne);
}
.lx-word__quote--long { font-size: clamp(21px, 2vw, 29px); }
.lx-words__nav { display: flex; gap: 28px; }
.lx-words__dot {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  cursor: pointer;
  font-family: var(--lx-cormorant);
  font-style: italic;
  font-size: 18px;
  color: var(--sl-stone);
  transition: color 500ms var(--lx-ease), border-color 500ms var(--lx-ease);
}
.lx-words__dot.is-active,
.lx-words__dot:hover { color: var(--sl-ink); border-bottom-color: var(--sl-champagne); }

/* ---------- Invitation ---------- */
.lx-invite {
  position: relative;
  min-height: clamp(560px, 92vh, 900px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--sl-ink);
}
.lx-invite__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; transform: scale(var(--settle, 1)); will-change: transform; }
.lx-invite__veil { position: absolute; inset: 0; background: rgba(var(--lx-veil), 0.62); }
.lx-invite__content {
  position: relative;
  display: grid;
  gap: 28px;
  justify-items: center;
  max-width: 760px;
  padding: 96px var(--lx-gutter);
  text-align: center;
}
.lx-invite__content .lx-lead { max-width: 520px; }
.lx-invite .lx-display { font-size: clamp(44px, 5.6vw, 84px); }
.lx-invite__content .lx-button { margin-top: 12px; }

/* ---------- Scroll choreography (driven by js/home.js; static when motion is reduced) ---------- */
/* Hero lingers: photo drifts slower than the page, the logo lifts away, the scene dims. */
.lx-hero__stage { transform: translate3d(0, calc(var(--hp, 0) * 24vh), 0) scale(calc(1 + var(--hp, 0) * 0.06)); will-change: transform; }
[data-hero-lift] { transform: translate3d(0, calc(var(--hp, 0) * -110px), 0); opacity: calc(1 - var(--hp, 0) * 1.7); }
.lx-hero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: var(--sl-ink); opacity: calc(var(--hp, 0) * 0.6); pointer-events: none; }
.lx-hero__cue { opacity: calc(1 - var(--hp, 0) * 4); }

/* Headlines rise line by line from behind a mask. */
.lx-line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.lx-line > * { display: inline-block; transition: transform 1400ms var(--lx-ease), opacity 1400ms var(--lx-ease); }
.lx-lines.lx-pre .lx-line > * { transform: translate3d(0, 110%, 0); opacity: 0; }
.lx-lines.lx-pre.is-in .lx-line > * { transform: none; opacity: 1; }
.lx-lines .lx-line:nth-child(2) > * { transition-delay: 140ms; }
.lx-lines .lx-line:nth-child(3) > * { transition-delay: 280ms; }

/* Collections travel at different speeds, like an editorial spread. */
.lx-scene > * { transform: translate3d(0, var(--drift, 0px), 0); }

/* ---------- Image reveal: a slow wipe as each photo enters ---------- */
.lx-frame.lx-wipe { clip-path: inset(0 0 100% 0); transition: clip-path 1400ms var(--lx-ease); }
.lx-frame.lx-wipe.is-in { clip-path: inset(0 0 0 0); }

/* ---------- Responsive ---------- */
/* Tablets: the full menu does not fit beside the wordmark, so use the menu icon up to 1024px. */
@media (max-width: 1024px) {
  .page-home .slds-header { padding: 0 24px; }
  .page-home .slds-header__nav { display: none; }
  .page-home .slds-nav-toggle { display: flex; }
  .page-home .slds-mobile-nav { display: flex; }
}
@media (max-width: 1180px) and (min-width: 1025px) {
  .page-home .slds-header__nav { gap: 26px; }
  .page-home .slds-header .slds-btn { padding-left: 18px; padding-right: 18px; white-space: nowrap; }
}

@media (max-width: 960px) {
  .lx-manifesto__grid,
  .lx-stacy__grid { grid-template-columns: 1fr; }
  .lx-manifesto__grid { align-items: start; }
  .lx-stacy__portrait { max-width: 520px; }
}

@media (max-width: 760px) {
  .lx-offer__list { grid-template-columns: 1fr; gap: 64px; }
  .lx-offer__item:nth-child(2) { margin-top: 0; }
  .lx-scenes__head { grid-template-columns: 1fr; }
  .lx-scenes__grid { grid-template-columns: 1fr; gap: 56px; }
  .lx-scene--b,
  .lx-scene--c { margin-top: 0; }
  .lx-scene > * { transform: none; }
  .lx-stacy__portrait::before { inset: 14px -12px -14px 12px; }
  .lx-hero__center { gap: 24px; }
  .lx-actions { grid-template-columns: 1fr; }
  .lx-pill { min-height: 54px; }
  .lx-hero__line { font-size: 9.5px; letter-spacing: 0.28em; line-height: 2; max-width: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  .lx-hero .sl-hero-media__slide img { transform: none; transition: none; }
  .lx-hero__cue-line { animation: none; }
  .lx-frame.lx-wipe { clip-path: none; transition: none; }
  .lx-lines.lx-pre .lx-line > * { transform: none; opacity: 1; }
  .lx-hero__stage, [data-hero-lift], .lx-scene > * { transform: none; }
  .lx-frame img, .lx-word { transition: none; }
}
