/* Opening: the name behind the model */
.stage {
  position: relative;
  height: calc(100svh - 128px);
  min-height: 520px;
  overflow: hidden;
  background: var(--ink);
}
.stage__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  background: var(--field);
}
/* Only the showing slide, and the one it replaces while the new one fades in, are rendered. */
.stage__slide:not(.is-active):not(.is-leaving) { display: none; }
.stage__slide.is-leaving { z-index: 1; }
.stage__slide.is-active { z-index: 2; }
.stage__slide.is-active.is-arriving { animation: slide-in 0.9s ease both; }
@keyframes slide-in { from { opacity: 0; } to { opacity: 1; } }
.stage__back { position: absolute; inset: 0; z-index: 0; }
.stage__back picture { height: 100%; }
.stage__back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal, 50% 12%);
}
.stage__word {
  position: absolute;
  z-index: 1;
  inset: 0;
  margin: 0;
  padding: var(--word-top, 10svh) var(--margin) 0;
  display: flex;
  align-items: flex-start;
  color: var(--word);
  font: 500 calc((100vw - 2 * var(--margin)) / var(--wordmark-ratio))/0.8 var(--font-display);
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.stage__word span { display: inline-block; transform-origin: 50% 0; }
/* The name is cut away where the model stands: its mask shares the photograph's box and framing. */
.stage__word--masked {
  -webkit-mask-image: var(--mask-lg);
  mask-image: var(--mask-lg);
  mask-mode: luminance;
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-position: var(--focal, 50% 12%);
  mask-position: var(--focal, 50% 12%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
@media (max-width: 767px) {
  .stage__word--masked { -webkit-mask-image: var(--mask-sm); mask-image: var(--mask-sm); }
}
/* Without luminance masks the name would cross the model: fall back to the band. */
@supports not (mask-mode: luminance) {
  .stage__word--masked { -webkit-mask-image: none; mask-image: none; }
  .stage__slide:not(.stage--band) .stage__back { bottom: 36%; }
  .stage__slide:not(.stage--band) .stage__word { top: auto; bottom: 7%; color: var(--field-ink); }
}
.stage__caption {
  position: absolute;
  z-index: 3;
  right: var(--margin);
  bottom: 24px;
  padding: 6px 12px;
  background: var(--field);
  color: var(--field-ink);
  font-size: var(--size-small);
}
.stage__pause {
  position: absolute;
  z-index: 3;
  left: var(--margin);
  bottom: 18px;
  min-height: 44px;
  padding: 0 16px;
  background: var(--ivory);
  color: var(--ink);
  font-size: var(--size-small);
}

/* No usable cut-out: the photograph above, the name in a band of the look's colour below. */
.stage--band .stage__back { bottom: 36%; }
.stage--band .stage__word { top: auto; padding-top: 0; align-items: flex-end; padding-bottom: 7%; color: var(--field-ink); }
.stage--band .stage__caption { bottom: auto; top: calc(64% - 48px); }

.opening__intro {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 128px;
  padding: 16px var(--margin);
}
.opening__intro h1 {
  grid-column: 1 / span 6;
  font: 500 var(--size-title)/1.05 var(--font-display);
  letter-spacing: -0.02em;
}
.opening__intro p { grid-column: 7 / span 3; }
.opening__intro .button { grid-column: 10 / span 3; justify-self: end; }

@media (min-width: 768px) and (max-width: 1023px) {
  .opening__intro p { grid-column: 7 / span 4; }
  .opening__intro .button { grid-column: 11 / span 2; }
}
@media (max-width: 767px) {
  .stage { height: 72svh; min-height: 460px; }
  .stage__word {
    padding-top: 13svh;
    display: block;
    font-size: calc((100vw - 2 * var(--margin)) / var(--wordmark-ratio-stacked));
    line-height: 0.82;
  }
  .stage__word span { display: block; }
  .stage--band .stage__back { bottom: 44%; }
  /* Beside the title on a phone the look's name would read as a label over it: keep it for screen readers only. */
  .stage__caption { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .stage--band .stage__caption { top: calc(56% - 48px); }
  .opening__intro { grid-template-columns: 1fr; gap: 12px; min-height: 0; padding: 20px var(--margin) 32px; }
  .opening__intro h1, .opening__intro p, .opening__intro .button { grid-column: 1; justify-self: start; }
}

/* The house */
.house { padding: var(--gap-section) var(--margin) clamp(56px, 6vw, 96px); }
.house__head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: end;
}
.house__title {
  grid-column: 1 / span 8;
  font: 500 var(--size-title)/1.08 var(--font-display);
  letter-spacing: -0.02em;
}
.pill {
  display: inline-block;
  height: 0.7em;
  aspect-ratio: 2 / 1;
  border-radius: 999px;
  overflow: hidden;
  vertical-align: -0.05em;
}
.pill img { width: 100%; height: 100%; object-fit: cover; }
.house__note { grid-column: 10 / span 3; max-width: 34ch; }
.house__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-top: 120px;
}
.house__facts dt { font: 500 var(--size-title)/1 var(--font-display); letter-spacing: -0.02em; }
.house__facts dd { margin-top: 12px; font-size: var(--size-small); }

@media (max-width: 1023px) {
  .house__title { grid-column: 1 / -1; }
  .house__note { grid-column: 1 / span 8; max-width: 52ch; }
}
@media (max-width: 767px) {
  .house__head { grid-template-columns: 1fr; }
  .house__title, .house__note { grid-column: 1; }
  .house__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 16px; margin-top: 64px; }
}

/* The lookbook: one spread per look, on the look's own colour */
.lookbook { position: relative; background: var(--field); color: var(--field-ink); }
.spread {
  display: grid;
  grid-template-columns: 2fr 3fr;
  min-height: 100svh;
  background: var(--field);
  color: var(--field-ink);
}
.spread--panel-right { grid-template-columns: 3fr 2fr; }
.spread--panel-right .spread__panel { order: 2; }
.spread__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 120px clamp(24px, 4.5vw, 72px) 96px;
}
.spread__title { margin-bottom: 8px; font-size: clamp(36px, 3.6vw, 60px); }
/* A long word fits the panel: tracked capitals run under 0.95em a letter. */
.spread__panel:has(.title-long) { container-type: inline-size; }
.spread__title.title-long { font-size: min(clamp(36px, 3.6vw, 60px), 100cqi / (var(--letters) * 0.95)); }
.spread__stage { font: 400 var(--size-heading)/1.1 var(--font-display); }
.spread__lead { font: 500 var(--size-heading)/1.15 var(--font-display); }
.spread__body { max-width: 40ch; }
.spread__material { font-size: var(--size-small); }
.spread__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 12px; }
.spread__media { position: relative; min-height: 100svh; overflow: hidden; }
.spread__media picture { position: absolute; inset: 0; }
.spread__media img { width: 100%; height: 100%; object-fit: cover; }

.chapter-card {
  display: grid;
  align-content: end;
  gap: 24px;
  min-height: 100svh;
  padding: 120px var(--margin) 48px;
  background: var(--field);
  color: var(--field-ink);
}
.chapter-card__title {
  /* The tight leading leaves the descenders (the g of Light, the y of Journeys) outside the line box:
     the padding keeps the lead clear of them. */
  padding-bottom: 0.2em;
  font: 500 calc((100vw - 2 * var(--margin)) / var(--fit))/0.85 var(--font-display);
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.chapter-card__lead { max-width: 40ch; }

.lookbook-progress { padding: 32px var(--margin); }
.lookbook-progress ol { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--size-small); }
.lookbook-progress a { text-decoration: none; }
.lookbook-progress a:hover, .lookbook-progress a[aria-current="true"] { text-decoration: underline; }

@media (max-width: 1023px) {
  .spread, .spread--panel-right { grid-template-columns: 1fr; min-height: 0; }
  .spread--panel-right .spread__panel { order: 0; }
  .spread__media { order: -1; min-height: 0; aspect-ratio: 4 / 5; }
  .spread__panel { padding: 40px var(--margin) 56px; }
  .chapter-card { min-height: 0; padding: 120px var(--margin) 64px; }
  /* Not pinned, the list of looks is for thumbs. */
  .lookbook-progress ol { gap: 0 24px; }
  .lookbook-progress a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .spread__media { aspect-ratio: 1; }
}
@media (max-width: 767px) {
  .chapter-card__title {
    font-size: calc((100vw - 2 * var(--margin)) / var(--fit-stacked));
    white-space: normal;
    line-height: 1.1;
  }
  .chapter-card__title span { display: block; }
}

/* One piece, four ways */
.lotus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 88svh;
  background: var(--ivory);
}
.lotus__plate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-content: center;
  padding: 120px 40px;
}
.lotus__panel { margin: 0; }
.lotus__panel img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.lotus__caption { margin-top: 8px; font-size: var(--size-small); }
/* With the script the four wearings share one square and the tabs choose between them. */
.has-tabs .lotus__plate { grid-template-columns: 1fr; }
.has-tabs .lotus__panel { grid-area: 1 / 1; }
.has-tabs .lotus__panel[hidden] { display: none; }
.has-tabs .lotus__panel.is-active { animation: lotus-wipe 0.45s var(--ease-out); }
.has-tabs .lotus__caption { display: none; }
@keyframes lotus-wipe {
  from { clip-path: inset(0 0 0 100%); }
  to { clip-path: inset(0); }
}
.lotus__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: 120px var(--margin) 120px 40px;
}
.lotus__tabs { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.lotus__tabs [role="tab"] {
  min-height: 44px;
  font: 400 18px/1 var(--font-text);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.4em;
  transition: text-decoration-color 0.25s ease;
}
.lotus__tabs [role="tab"]:hover { text-decoration-color: currentColor; }
.lotus__tabs [aria-selected="true"] { font-weight: 500; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.lotus__copy { display: grid; gap: 24px; max-width: 36ch; }
.lotus__title { font: 500 var(--size-title)/1 var(--font-display); letter-spacing: -0.02em; }
.lotus__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

@media (max-width: 767px) {
  .lotus { grid-template-columns: 1fr; min-height: 0; }
  .lotus__plate { padding: 80px var(--margin) 0; }
  .lotus__text { padding: 32px var(--margin) 80px; gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .has-tabs .lotus__panel.is-active { animation: none; }
}
.reduced .has-tabs .lotus__panel.is-active { animation: none; }

/* Bespoke: one statement with a piece set in like a drop capital */
.bespoke { padding: 160px var(--margin); background: var(--ivory-step); }
.bespoke__body { display: grid; gap: 40px; justify-items: start; margin-left: calc(100% / 6); max-width: 38em; }
.bespoke__text { font: 400 var(--size-heading)/1.3 var(--font-display); }
.bespoke__cap { float: left; width: 3.9em; height: 3.9em; margin: 0.25em 0.5em 0 0; }
.bespoke__cap img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 767px) {
  .bespoke__body { margin-left: 0; }
  .bespoke__text { font-size: 24px; }
  .bespoke__cap { float: none; display: block; margin: 0 0 16px; }
}

/* Visit: the address set as display rows */
.visit__rows li {
  padding: 28px var(--margin);
  font: 500 var(--size-title)/1 var(--font-display);
  letter-spacing: -0.02em;
}
.visit__rows li:nth-child(odd) { background: var(--ivory); }
.visit__rows li:nth-child(even) { background: var(--ivory-step); }
.visit__rows a { text-decoration: none; }
.visit__rows a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.visit__greeting { display: flex; align-items: center; gap: 24px; }
.visit__go {
  display: inline-grid;
  place-items: center;
  width: 0.9em;
  height: 0.9em;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  transition: transform 0.35s var(--ease-out);
}
.visit__go svg { width: 45%; height: 45%; }
.visit__go:hover { transform: translateX(6px); }

@media (max-width: 767px) {
  .visit__rows li { padding: 20px var(--margin); }
  .visit__rows .visit__greeting { justify-content: space-between; background: var(--gold); }
  .visit__rows .visit__greeting .visit__go { background: var(--ink); color: var(--gold); }
}

/* Pinned lookbook (1024px and wider, with motion): the looks stack in one screen and scroll steps through them. */
.lookbook.is-pinned .lookbook__track { position: relative; height: 100svh; }
.lookbook.is-pinned .lookbook__track > .spread,
.lookbook.is-pinned .lookbook__track > .chapter-card { position: absolute; inset: 0; }
.lookbook.is-pinned .lookbook-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40%;
  z-index: 5;
  padding: 16px var(--margin);
  background: var(--field);
  color: var(--field-ink);
  transition: background-color 0.4s ease, color 0.4s ease;
}
.lookbook.is-pinned .spread__media,
.lookbook.is-pinned .chapter-card { min-height: 0; }
/* The progress list follows the panel side of the spread on screen. */
.lookbook.is-pinned[data-side="right"] .lookbook-progress { left: auto; right: 0; }
/* Pinned, the list names only the looks of the collection on screen (js/motion.js marks them). */
.lookbook.is-pinned .lookbook-progress li:not(.is-here) { display: none; }
/* Keep the panel's and chapter card's words clear of the progress list at its foot. */
.lookbook.is-pinned .spread__panel,
.lookbook.is-pinned .chapter-card { padding-bottom: 120px; }

/* The dissolve canvas sits over the media column of the current spread. */
.lookbook__canvas {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  display: none;
  width: 60%;
  height: 100%;
  pointer-events: none;
}
.lookbook__canvas[data-side="left"] { left: 0; right: auto; }
.lookbook__canvas.is-on { display: block; }
