/* Each poster and its sequence share a camera, so the first decoded frame aligns exactly. */
.stage {
  --opening: 1;
  --end: 0;
  height: calc(100svh - var(--mast));
  min-height: 490px;
  display: block;
  padding: 0;
}
.story-media,
.story-media picture,
.story-media img,
#story-frames {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.story-media {
  z-index: 0;
  overflow: hidden;
  background: var(--paper);
}
.story-media img,
#story-frames {
  object-fit: cover;
  object-position: center;
}
.opening-copy,
.study-label,
.story-foot {
  z-index: 2;
}
.opening-copy {
  pointer-events: none;
}
.opening-copy a,
.study-label a {
  pointer-events: auto;
}
.story-foot {
  pointer-events: none;
}
.moving .story {
  height: calc(340svh - var(--mast));
}
.moving .stage {
  height: calc(100svh - var(--mast));
  top: var(--mast);
  position: sticky;
}
.study-label {
  opacity: var(--end);
}
.study-label .cta {
  margin-top: 12px;
}
.study-label[inert],
.opening-copy[inert],
.story-foot[inert] {
  visibility: hidden;
}
@media (min-width: 741px) and (min-height: 561px) {
  .story:not(.custom-work) .story-foot {
    container-type: size;
  }
  .story:not(.custom-work) .plate-label {
    /* The centered, cover-fitted landscape scene can be wider than its stage. */
    --scene-width: max(100cqw, calc(100cqh * 16 / 9));
    --caption-left: calc(50% + var(--art-left, .045) * var(--scene-width));
    left: var(--caption-left);
    top: calc(50% + var(--art-bottom, .15847) * var(--scene-width) + 12px);
    width: min(calc(var(--art-width, .35) * var(--scene-width)), calc(100% - var(--caption-left) - 8px));
  }
}
.brand-symbol {
  display: none;
}
.brand-home {
  display: inline-flex;
  align-items: center;
}
.menu-trigger,
.menu-close {
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: inherit;
  border: 0;
  padding: 0;
}
.menu-trigger {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.menu-trigger span {
  background: currentColor;
  width: 22px;
  height: 1.7px;
}
#mobile-menu {
  position: fixed;
  inset: 0 0 auto;
  margin: 0;
  width: 100%;
  max-width: none;
  max-height: 100dvh;
  padding: env(safe-area-inset-top) max(20px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background: var(--paper);
  color: var(--wine);
  border: 0;
  box-shadow: 0 10px 28px #2d191b26;
}
#mobile-menu::backdrop {
  background: #1c1015aa;
}
.menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.menu-heading .wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.54rem;
}
.menu-close {
  display: grid;
  font-size: 2rem;
}
#mobile-menu nav {
  display: grid;
  margin-top: 4px;
}
#mobile-menu nav a {
  min-height: 48px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 1.14rem;
}
#mobile-menu nav .enquire {
  border: 0;
  padding: 0;
  border-radius: 0;
}
#mobile-menu nav a:focus-visible {
  outline-offset: -2px;
}
.compact-nav {
  --mast: calc(60px + env(safe-area-inset-top));
  scroll-padding-top: calc(var(--mast) + 8px);
}
.compact-nav body {
  padding-top: var(--mast);
}
.compact-nav .mast {
  --mast: calc(60px + env(safe-area-inset-top));
  position: fixed;
  inset: 0 0 auto;
  height: var(--mast);
  z-index: 10;
  flex-direction: row;
  justify-content: space-between;
  gap: 6px;
  padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0
    max(20px, env(safe-area-inset-left));
  background: var(--paper);
  color: var(--wine);
}
.compact-nav .mast nav {
  display: none;
}
.compact-nav .mast .brand-home {
  min-height: 44px;
  gap: 10px;
  max-width: none;
  font-size: clamp(1.23rem, 5.7vw, 1.7rem);
  white-space: nowrap;
  line-height: 1;
}
.compact-nav .mast .brand-home i {
  display: inline;
}
.compact-nav .brand-symbol {
  display: block;
  flex: none;
  width: 31px;
  height: 31px;
  border-radius: 50%;
}
.custom-work .story-media {
  background: var(--paper);
}
.custom-work .story-media img {
  object-fit: contain;
  inset: 12% 5% auto auto;
  width: 45%;
  height: 74%;
}
@media (max-width: 1024px) and (orientation: portrait) {
  .stage,
  .moving .stage {
    display: block;
    height: calc(100svh - var(--mast));
    min-height: 410px;
    padding: 0;
    overflow: hidden;
  }
  .story-media {
    background: #401c28;
  }
  .moving .story {
    height: calc(256svh - var(--mast));
  }
  .story .opening-copy,
  .story .study-label {
    position: absolute;
    inset: 57% max(18px, env(safe-area-inset-right)) auto
      max(18px, env(safe-area-inset-left));
    width: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
    background: none;
    color: var(--paper);
    transform: none;
  }
  .opening-copy .eyebrow,
  .opening-copy .hero-body,
  .study-label .eyebrow,
  .study-label p,
  .story-foot .plate-label {
    display: none;
  }
  .opening-copy h1,
  .study-label h2 {
    font-size: clamp(2.9rem, min(13.8vw, 8.4svh), 5.5rem);
    line-height: 0.9;
    margin: 0;
    letter-spacing: -0.055em;
    color: var(--paper);
  }
  .opening-copy h1 em {
    color: #f6c1be;
  }
  .opening-copy .cta,
  .study-label .cta {
    min-height: 44px;
    margin-top: clamp(12px, 2.2svh, 24px);
    padding: 11px 23px;
    background: var(--paper);
    color: var(--wine);
    font-size: 0.94rem;
    border-radius: 2px;
  }
  .story .study-label {
    inset-block-start: 61%;
    opacity: var(--end);
  }
  .study-label h2 {
    font-style: italic;
  }
  .story-foot {
    display: block;
    position: absolute;
    inset: auto 0 max(9px, env(safe-area-inset-bottom));
    height: auto;
    margin: 0;
    padding: 0;
  }
  .story .scroll-cue {
    position: static;
    display: flex;
    min-height: 44px;
    justify-content: center;
    gap: 8px;
    color: var(--paper);
    pointer-events: auto;
    letter-spacing: 0.04em;
    text-transform: none;
    font-size: 0.83rem;
  }
  .scroll-icon {
    height: 14px;
    width: 1px;
    border: 0;
    background: currentColor;
    border-radius: 0;
  }
  .scroll-icon::after {
    content: "";
    width: 6px;
    height: 6px;
    border: solid currentColor;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
    position: absolute;
    left: -2.5px;
    top: 7px;
    background: none;
  }
  html:not(.moving) .scroll-cue {
    visibility: hidden;
  }
  .custom-work .story-media {
    background: #401c28;
  }
  .custom-work .story-media img {
    inset: 4% 12% auto;
    width: 76%;
    height: 50%;
  }
  .filters button,
  .studio-actions a,
  footer > a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
@media (min-aspect-ratio: 3/4) and (max-width: 1024px) and (orientation: portrait) {
  .story-media img,
  #story-frames {
    object-position: 50% 38%;
  }
  .story .opening-copy,
  .story .study-label {
    inset-block-start: 65%;
  }
}
@media (orientation: landscape) and (max-height: 560px) {
  .stage {
    min-height: 300px;
  }
  .story .opening-copy {
    position: absolute;
    inset: 0 auto 0 var(--edge);
    width: 43%;
    display: flex;
    justify-content: center;
  }
  .opening-copy .eyebrow,
  .opening-copy .hero-body,
  .story-foot {
    display: none;
  }
  .opening-copy h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
  }
}

@media (max-width: 1024px) and (orientation: portrait) {
  .moving #study {
    top: 86svh;
    bottom: auto;
    scroll-margin-top: 0;
  }
}
