/* The unenhanced and reduced-motion versions use one normal viewport. */
.embroidery-scene {
  height: 100vh;
  height: 100svh;
  background: var(--paper);
}
.embroidery-scene .stage {
  background: #242d25;
  perspective: none;
}
.embroidery-scene .film-shell {
  background: #242d25 url(opening.jpg) center 40% / cover no-repeat;
  border: 0;
  box-shadow: none;
  will-change: auto;
  pointer-events: none;
}
.embroidery-scene .film-shell::after { content: none; }
.embroidery-scene .film-shell video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: none;
  filter: none;
}
.embroidery-scene .film-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, #121d17eb 0%, #19261dc2 25%, #1c291e4a 65%, #1b271b0f),
              linear-gradient(180deg, #121d17a1 0%, transparent 25%, transparent 68%, #162019bd 100%);
}
.embroidery-scene .hero-copy { text-wrap: pretty; }
.embroidery-scene .hero-bottom { bottom: max(42px, 6svh); }
.embroidery-scene .cloth-sheet,
.embroidery-scene .film-scroll-cue { display: none; }
.embroidery-scene .stage-word .stage-heading { color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .embroidery-scene.motion-ready { height: 272vh; height: 272svh; }
  /* Bring Who we are up with the trailing fabric as the sticky scene releases. */
  .embroidery-scene.motion-ready + #company {
    position: relative;
    margin-top: max(-18svh, -155px);
    background: var(--paper);
  }
  .embroidery-scene.motion-ready .film-shell {
    inset: 0 auto auto 50%;
    width: 910px;
    height: 512px;
    transform-origin: center top;
    transform: translate3d(-50%, var(--frame-top), 0) scale(var(--frame-scale));
    will-change: transform;
  }
  .embroidery-scene.motion-ready .film-veil {
    opacity: var(--veil);
    will-change: opacity;
  }
  .embroidery-scene.motion-ready .hero-copy {
    opacity: var(--title-opacity);
    transform: translate3d(0, var(--title-y), 0);
  }
  .embroidery-scene.motion-ready .hero-bottom {
    opacity: var(--footer-opacity);
    pointer-events: none;
  }
  .embroidery-scene.motion-ready .film-scroll-cue {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #f3efe5;
    font-size: .75rem;
    line-height: 1.3;
    letter-spacing: .02em;
    margin-right: 22px;
  }
  .film-scroll-cue i {
    display: block;
    position: relative;
    width: 1px;
    height: 25px;
    background: #e8e4db68;
    overflow: hidden;
  }
  .film-scroll-cue i::after {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 9px;
    background: #f8f5e9;
    animation: stitch-feed 2.4s ease-in-out infinite;
  }
  @keyframes stitch-feed {
    0% { transform: translateY(-10px); }
    75%, 100% { transform: translateY(26px); }
  }
  .motion-ready .cloth-sheet {
    display: block;
    position: absolute;
    z-index: 5;
    inset: 0;
    pointer-events: none;
    background: var(--paper);
    box-shadow: 0 -10px 30px -14px #08130e8c;
    transform: translate3d(0, var(--sheet-y), 0);
    will-change: transform;
  }
  .cloth-sheet .woven-hem {
    height: clamp(48px, 11svh, 104px);
    background: var(--paper) url(woven-border.webp) center / auto 100% repeat-x;
    border-block: 1px solid #7a7f6959;
  }
  .cloth-sheet .stage-word {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, .75fr);
    column-gap: 7vw;
    align-items: end;
    position: relative;
    inset: auto;
    margin: clamp(16px, 4.4svh, 52px) var(--pad) 0;
    text-align: left;
    color: var(--ink);
    opacity: 1;
    transform: none;
    will-change: auto;
  }
  .cloth-sheet .stage-word .eyebrow {
    grid-column: 1 / -1;
    margin: 0 0 clamp(8px, 1.7svh, 20px);
    color: #57644f;
  }
  .cloth-sheet .stage-word .stage-heading {
    font-size: clamp(2.45rem, min(6.25vw, 8.4svh), 6.25rem);
    letter-spacing: -.065em;
    line-height: 1.02;
    margin: 0;
  }
  .cloth-sheet .stage-word p:last-child {
    max-width: 34ch;
    margin: 0 0 .2em;
    color: #4d594c;
    font-size: clamp(.9rem, 1.1vw, 1.1rem);
    line-height: 1.55;
  }
}

@media (max-width: 700px) {
  .embroidery-scene .film-veil {
    background: linear-gradient(90deg, #122017d9 0%, #14211992 55%, #1421193d),
                linear-gradient(180deg, #15231a6b, transparent 20%, #17231a33 65%, #152219ba);
  }
  .embroidery-scene .hero-bottom {
    bottom: calc(104px + env(safe-area-inset-bottom, 0px));
    align-items: end;
    gap: 14px;
  }
}
@media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
  .embroidery-scene.motion-ready { height: 244vh; height: 244svh; }
  .embroidery-scene.motion-ready .film-scroll-cue {
    max-width: 108px;
    flex-shrink: 0;
    margin: 0 clamp(44px, 12vw, 56px) 0 0;
    font-size: .68rem;
    line-height: 1.4;
  }
  .film-scroll-cue i { flex: 0 0 1px; }
  .cloth-sheet .woven-hem { height: clamp(42px, 8.7svh, 80px); }
  .cloth-sheet .stage-word { grid-template-columns: 1fr; margin-top: clamp(13px, 3.2svh, 28px); }
  .cloth-sheet .stage-word .eyebrow { font-size: .66rem; }
  .cloth-sheet .stage-word .stage-heading { font-size: clamp(2.18rem, min(10.4vw, 7.8svh), 3.75rem); }
  .cloth-sheet .stage-word p:last-child { margin-top: clamp(8px, 1.8svh, 17px); font-size: .87rem; }
}
@media (max-width: 420px) {
  body[data-page="home"] main { overflow-x: clip; }
  .embroidery-scene .hero-copy h1 { font-size: clamp(2.12rem, 10.4vw, 2.7rem); }
}
@media (max-width: 360px) and (prefers-reduced-motion: no-preference) {
  .embroidery-scene .hero-bottom { display: grid; gap: 8px; padding-right: 36px; }
  .embroidery-scene.motion-ready .film-scroll-cue { max-width: none; margin: 0; }
  .film-scroll-cue i { height: 15px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .embroidery-scene .hero-copy { top: 16svh; }
  .embroidery-scene .hero-copy .eyebrow { margin-bottom: 10px; }
  .embroidery-scene .hero-copy h1 { font-size: clamp(1.8rem, 9.2svh, 3.1rem); }
  .embroidery-scene .hero-copy .hero-actions { margin-top: 12px; }
  .embroidery-scene .hero-bottom { display: none; }
  .cloth-sheet .stage-word { margin-top: 12px; }
  .cloth-sheet .stage-word .stage-heading { font-size: clamp(1.6rem, 6.9svh, 2.25rem); }
}
