:root {
  --experience-ease: cubic-bezier(.22, .61, .36, 1);
  --experience-fade: 180ms;
  --experience-inspect: 260ms;
  --experience-enter: 640ms;
  --experience-lift: 10px;
}

/* The first editorial label enters independently of the film. */
[data-cinematic-threshold].threshold-enter .collection-hero-label .section-label {
  animation: threshold-caption var(--experience-enter) var(--experience-ease) both;
}
@keyframes threshold-caption {
  from { opacity: .78; transform: translateY(var(--experience-lift)); }
  to { opacity: 1; transform: translateY(0); }
}

.studio-assistance {
  position: fixed;
  inset-inline-end: max(62px, calc(env(safe-area-inset-right) + 54px));
  inset-block-end: max(8px, env(safe-area-inset-bottom));
  z-index: 26;
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--theme-text-display);
  font: inherit;
  cursor: pointer;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--experience-fade) var(--experience-ease), visibility var(--experience-fade);
}
.studio-assistance[hidden],
.studio-concierge [hidden],
.experience-story [hidden] {
  display: none;
}
.studio-assistance[data-in-view] {
  opacity: 1;
  visibility: visible;
}
.studio-assistance span {
  padding: .45rem .8rem;
  border: 1px solid var(--theme-border-strong);
  border-radius: 100vw;
  background: var(--theme-surface-elevated);
  font-size: .6875rem;
  letter-spacing: .035em;
}
body.nav-panel-open .studio-assistance,
body.cookie-preferences-open .studio-assistance,
body:has(.cookie-consent.is-visible) .studio-assistance,
body:has(form :is(input, select, textarea):focus) .studio-assistance,
.studio-assistance[data-obstructed] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}

body:has(.studio-concierge[open]) .studio-assistance {
  opacity: 0;
  pointer-events: none;
  transition: none;
}

.studio-concierge {
  position: fixed;
  inset: auto max(16px, env(safe-area-inset-right)) calc(max(16px, env(safe-area-inset-bottom)) + var(--concierge-keyboard-offset, 0px)) auto;
  box-sizing: border-box;
  width: min(25rem, calc(100% - max(32px, env(safe-area-inset-right) + env(safe-area-inset-left) + 16px)));
  max-height: min(85vh, 35rem);
  max-height: min(85dvh, 35rem, var(--concierge-visible-height, 100dvh));
  margin: 0;
  padding: 1.25rem 1.375rem;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 1rem;
  border: 1px solid var(--theme-border-strong);
  border-radius: 3px;
  background: var(--theme-surface-elevated);
  color: var(--theme-text-reading);
  font-size: .875rem;
  line-height: 1.5;
}
.studio-concierge::backdrop {
  background: rgb(0 0 0 / .16);
}
.studio-concierge__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
}
.studio-concierge h2 {
  margin: 0;
  color: var(--theme-text-display);
  font: inherit;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.studio-concierge p {
  margin: .35rem 0 .85rem;
}
.studio-concierge__close,
.studio-concierge__choice,
.experience-gallery-nav button {
  border: 0;
  font: inherit;
  cursor: pointer;
}
.studio-concierge__close {
  flex: 0 0 44px;
  height: 44px;
  margin-inline-end: -.5rem;
  background: transparent;
  color: var(--theme-text-display);
  font-size: 1.3rem;
}
.studio-concierge__choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(8.75rem, 100%), 1fr));
  gap: .5rem;
}
.studio-concierge__choice {
  display: flex;
  min-height: 44px;
  justify-content: center;
  align-items: center;
  padding: .45rem .65rem;
  border-radius: 100vw;
  background: var(--theme-text-display);
  color: var(--theme-surface-elevated);
  font-size: .75rem;
  text-align: center;
  text-decoration: none;
}
.studio-concierge__choice:disabled {
  opacity: .65;
  cursor: wait;
}
.studio-concierge__details {
  margin-top: .7rem;
  color: var(--theme-text-secondary);
  font-size: .75rem;
}
.studio-concierge__details a,
.studio-concierge__privacy {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  color: var(--theme-text-reading);
  overflow-wrap: anywhere;
}
.studio-concierge__details a + a {
  margin-inline-start: .8em;
}
.studio-concierge__ai {
  margin-top: .9rem;
  padding-top: 1rem;
  border-top: 1px solid var(--theme-border);
}
.studio-concierge__ai :is(p, label) {
  display: block;
  font-size: .8125rem;
}
.studio-concierge__ai label {
  margin: .6rem 0 .3rem;
}
.studio-concierge__ai input {
  width: 100%;
  min-height: 44px;
  padding: .55rem .65rem;
  border: 1px solid var(--theme-text-quiet);
  border-radius: 2px;
  background: var(--theme-canvas);
  color: var(--theme-text-reading);
  font: inherit;
  font-size: 1rem;
}
.studio-concierge__ai button {
  margin-top: .5rem;
}
.studio-concierge__links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.studio-concierge__links a {
  display: flex;
  min-height: 32px;
  align-items: center;
  color: var(--theme-text-display);
}
.studio-concierge__links a::after {
  content: "→" / "";
  margin-inline-start: .65rem;
}
.studio-assistance:focus-visible,
.studio-concierge :is(a, button, input):focus-visible,
.experience-gallery-nav button:focus-visible,
.product-gallery__zoom:focus-visible {
  outline: 2px solid var(--theme-text-display);
  outline-offset: 2px;
}

.experience-gallery-nav {
  position: absolute;
  z-index: 2;
  inset: 50% .625rem auto;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}
.experience-gallery-nav[hidden] {
  display: none;
}
.experience-gallery-nav button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--theme-border-strong);
  border-radius: 50%;
  background: var(--theme-surface-elevated);
  color: var(--theme-text-display);
  pointer-events: auto;
}
.experience-gallery-nav svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.product-gallery__main[data-gallery-ready] .product-gallery__figure {
  touch-action: pan-y pinch-zoom;
}
.product-gallery__main[data-gallery-ready].is-zoomed .product-gallery__figure {
  touch-action: none;
  cursor: grab;
}
.product-gallery__main[data-gallery-ready] .product-gallery__image {
  transition: transform var(--experience-inspect) var(--experience-ease);
  transform-origin: var(--inspection-x, 50%) var(--inspection-y, 50%);
  user-select: none;
}
.product-gallery__main[data-gallery-ready] .product-gallery__counter {
  padding: .35rem .5rem;
  background: var(--theme-surface-elevated);
  color: var(--theme-text-display);
}
.product-gallery__main:focus {
  scroll-margin-block-start: 5rem;
}

.experience-story {
  box-sizing: border-box;
  width: min(100%, 80rem);
  margin: clamp(2.5rem, 8vw, 7rem) auto;
  padding: 0 clamp(1rem, 4vw, 4rem);
  color: var(--theme-text-reading);
}
.experience-story__heading,
.experience-story__label {
  margin: 0;
  color: var(--theme-text-display);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.experience-story__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 1.25rem clamp(1rem, 4vw, 3rem);
  margin-top: 1rem;
}
.experience-story__frame {
  margin: 0;
  min-width: 0;
}
.experience-story__frame img {
  display: block;
  width: 100%;
  height: auto;
}
.experience-story__frame figcaption {
  padding: .85rem 0 .35rem;
}
.experience-story__frame .editorial-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  color: var(--theme-text-display);
}
.experience-story__frame p {
  margin: .4rem 0 0;
  font-size: .875rem;
  color: var(--theme-text-secondary);
}
.experience-story > .experience-story__grid > .experience-story__frame:only-child {
  max-width: 37rem;
}
.house-craft__companion {
  width: min(100%, 19rem);
  margin-top: 2rem;
}
.house-craft__companion .experience-story__placeholder {
  margin-top: 1rem;
}
@media (min-width: 54rem) {
  .house-craft__inner:has(.house-craft__companion) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 19rem);
    column-gap: clamp(2rem, 6vw, 7rem);
    align-content: center;
    align-items: start;
  }
  .house-craft__inner:has(.house-craft__companion) > :not(.house-craft__companion) {
    grid-column: 1;
  }
  .house-craft__companion {
    grid-area: 1 / 2 / span 3;
    margin-top: 0;
  }
}
.experience-story__placeholder {
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: var(--slot-ratio);
  padding: 1rem;
  border: 1px solid var(--theme-border-strong);
  background: var(--theme-surface);
  text-align: center;
  font-size: .8125rem;
}
.collection-editorial__media .experience-story__label {
  display: block;
  margin-top: .65rem;
}
.collection-editorial .experience-collection-link {
  display: inline-flex;
  margin-top: 1.25rem;
  color: var(--theme-text-display);
}
@media (prefers-reduced-motion: reduce) {
  [data-cinematic-threshold].threshold-enter .collection-hero-label .section-label {
    animation: none;
  }
  .studio-assistance,
  .product-gallery__main[data-gallery-ready] .product-gallery__image {
    transition: none;
  }
}
