/* One pinned scene, three text chapters, then the normal product section. */
.story-title {
  margin: 22px 0 0;
  font-size: clamp(48px, 5.2vw, 72px);
  font-weight: 550;
  letter-spacing: -.055em;
  line-height: 1.05;
  color: #1d1d1f;
}
.story-description {
  max-width: 445px;
  margin: 24px 0 0;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -.2px;
  color: #6e6e73;
}
.story-approach .story-title { margin-top: 18px; font-size: clamp(42px, 4.5vw, 60px); }
.story-approach > .story-description { margin-top: 16px; font-size: 15px; }
.story-principles { margin-top: 26px; border-top: 1px solid #dcdfe4; }
.story-principle { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 15px 0; border-bottom: 1px solid #dcdfe4; }
.story-number { padding-top: 3px; font-size: 10px; color: #979ca3; }
.story-principle h3 { font-size: 18px; line-height: 1.25; letter-spacing: -.4px; font-weight: 550; }
.story-principle p { margin-top: 5px; max-width: 440px; font-size: 13px; line-height: 1.5; color: #6e6e73; }

.story-js .hero { height: 360svh; min-height: 0; }
.story-js .hero-sticky {
  position: sticky;
  top: var(--nav-height);
  height: calc(100svh - var(--nav-height));
  min-height: 0;
  overflow: clip;
}
.story-js .hero-main {
  height: 100%;
  min-height: 0;
  padding: 28px 0;
  flex: none;
}
.story-js .story-copy { display: grid; width: 48%; max-width: 590px; }
.story-js .story-panel {
  grid-area: 1 / 1;
  align-self: center;
  width: 100%;
  margin: 0;
  opacity: var(--panel-opacity, 0);
  visibility: hidden;
  pointer-events: none;
  will-change: opacity;
}
.story-js .story-panel[data-visible="true"] { visibility: visible; }
.story-js .story-panel[data-active="true"] { pointer-events: auto; }
/* Canvas starts at 42% of the hero; the copy column spans 48%. */
.story-js .story-approach { width: calc(87.5% - 24px); max-width: 430px; }

/* Progressive enhancement: all three chapters remain readable without JS. */
:root:not(.story-js) .hero-main { display: block; }
:root:not(.story-js) .story-copy { width: 100%; max-width: 670px; }
:root:not(.story-js) .story-panel + .story-panel { margin-top: 90px; }
:root:not(.story-js) .hero-visual { position: relative; left: auto; height: 380px; width: min(600px, 100%); margin: 40px auto 0; }

@media (min-width: 761px) and (max-height: 740px) {
  .story-js .hero-main { padding-block: 18px; }
  .story-approach .story-title { font-size: 38px; margin-top: 14px; }
  .story-approach > .story-description { margin-top: 12px; font-size: 14px; }
  .story-principles { margin-top: 20px; }
  .story-principle { padding-block: 10px; }
  .story-principle h3 { font-size: 16px; }
  .story-principle p { font-size: 12px; line-height: 1.45; }
}
@media (max-width: 760px) {
  .story-js .hero-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto clamp(180px, 30svh, 360px);
    align-content: center;
    align-items: stretch;
    gap: 8px;
    padding: 28px 0 16px;
  }
  .story-js .story-copy { width: 100%; max-width: none; }
  .story-js .story-approach { width: 100%; max-width: none; }
  .story-js .hero-visual {
    position: relative;
    left: auto;
    top: auto;
    width: calc(100% + 32px);
    height: 100%;
    min-height: 0;
    max-height: none;
    margin: 0 0 0 -16px;
  }
  .story-title { margin-top: 18px; font-size: clamp(40px, 9vw, 54px); }
  .story-description { max-width: 490px; margin-top: 20px; font-size: 15px; line-height: 1.55; }
  .story-approach .story-title { font-size: clamp(32px, 8vw, 44px); margin-top: 12px; }
  .story-approach > .story-description { margin-top: 12px; font-size: 13px; }
  .story-principles { margin-top: 18px; }
  .story-principle { grid-template-columns: 18px 1fr; gap: 12px; padding-block: 11px; }
  .story-principle h3 { font-size: 16px; }
  .story-principle p { max-width: none; font-size: 12px; line-height: 1.5; margin-top: 4px; }
}
@media (max-width: 760px) and (max-height: 740px) {
  .story-js .hero-main { grid-template-rows: auto clamp(115px, 24svh, 175px); gap: 0; padding: 12px 0 8px; }
  .story-intro h1 { font-size: 46px; }
  .story-intro .hero-description { margin-top: 16px; font-size: 13px; }
  .story-intro .hero-link { margin-top: 12px; }
  .story-title { font-size: 38px; }
  .story-description { font-size: 13px; margin-top: 16px; }
  .story-panel .section-label { font-size: 9px; gap: 12px; }
  .story-approach .story-title { font-size: 28px; margin-top: 10px; }
  .story-approach .story-title br { display: none; }
  .story-approach > .story-description { margin-top: 10px; font-size: 12px; }
  .story-principles { margin-top: 12px; }
  .story-principle { padding-block: 7px; gap: 10px; }
  .story-principle h3 { font-size: 14px; }
  .story-principle p { font-size: 11px; line-height: 1.35; margin-top: 3px; }
}
