/* Our Story opening: two truthful places, one continuous family story. */
.story-page .story-opening {
  --story-reveal: 52%;
  position: relative;
  display: block;
  min-height: auto;
  padding: 9rem var(--gutter) 5rem;
  overflow: visible;
  color: #f7f3e9;
  background: #03070d;
}

.story-opening-copy {
  position: relative;
  z-index: 2;
  max-width: 55rem;
  margin-bottom: 4rem;
}

.story-opening-kicker {
  margin: 0 0 1.5rem;
  color: #78e0ff;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.5;
  text-transform: uppercase;
}

.story-page .story-opening h1 {
  max-width: 13ch;
  margin: 0 0 1.6rem;
  color: #f7f3e9;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: clamp(3.8rem, 7vw, 7.4rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-transform: none;
}

.story-page .story-opening h1 span {
  color: #78e0ff;
}

.story-opening-copy > p:last-child {
  max-width: 38rem;
  margin: 0;
  color: #becbd7;
  font-size: clamp(0.92rem, 1.15vw, 1.08rem);
  line-height: 1.8;
}

.story-opening-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.story-era {
  position: relative;
  min-width: 0;
  margin: 0;
  background: #07101a;
}

.story-era img {
  width: 100%;
  height: 100%;
  min-height: 30rem;
  object-fit: cover;
}

.story-era figcaption {
  position: absolute;
  right: 1.4rem;
  bottom: 1.4rem;
  left: 1.4rem;
  display: grid;
  width: fit-content;
  padding: 0.85rem 1rem;
  color: #f7f3e9;
  background: rgba(3, 7, 13, 0.82);
}

.story-era figcaption strong {
  color: #ffc76b;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.story-era figcaption span {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.story-era figcaption small {
  margin-top: 0.2rem;
  color: #aebbc8;
  font-size: 0.58rem;
}

.story-opening-divider,
.story-opening-controls {
  display: none;
}

.story-opening-follow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 48px;
  margin-top: 2rem;
  color: #f7f3e9;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.story-opening-follow i {
  color: #78e0ff;
  font-size: 1rem;
  font-style: normal;
}

.has-js .story-page .story-opening {
  min-height: max(46rem, 100svh);
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}

.has-js .story-opening::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 7, 13, 0.9) 0%, rgba(3, 7, 13, 0.67) 30%, transparent 62%),
    linear-gradient(180deg, rgba(3, 7, 13, 0.65) 0%, transparent 27%, transparent 58%, rgba(3, 7, 13, 0.86) 100%);
}

.has-js .story-opening-copy {
  position: absolute;
  z-index: 4;
  top: clamp(7.6rem, 14vh, 10rem);
  left: var(--gutter);
  width: min(47rem, 58vw);
  margin: 0;
}

.has-js .story-page .story-opening h1 {
  max-width: 13ch;
  font-size: clamp(3.6rem, 5.7vw, 6.4rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-transform: none;
}

.has-js .story-opening-copy > p:last-child {
  max-width: 32rem;
  color: rgba(247, 243, 233, 0.72);
}

.has-js .story-opening-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  background: #03070d;
}

.has-js .story-era {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.has-js .story-era img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  filter: brightness(0.76) saturate(0.9) contrast(1.05);
}

.has-js .story-era-home img {
  object-position: 50% 58%;
  transform: scale(1.02);
}

.has-js .story-era-rapids {
  z-index: 1;
  clip-path: inset(0 calc(100% - var(--story-reveal)) 0 0);
  will-change: clip-path;
}

.has-js .story-era-rapids img {
  object-position: 50% 53%;
}

.has-js .story-era figcaption {
  display: none;
}

.has-js .story-era-home figcaption {
  right: var(--gutter);
  left: auto;
  text-align: right;
}

.has-js .story-era figcaption strong {
  font-size: 0.7rem;
}

.has-js .story-era figcaption span {
  font-size: clamp(0.9rem, 1.25vw, 1.2rem);
}

.has-js .story-era figcaption small {
  color: rgba(247, 243, 233, 0.7);
}

.has-js .story-opening-divider {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: var(--story-reveal);
  display: block;
  width: 1px;
  background: rgba(247, 243, 233, 0.82);
  box-shadow: 0 0 2rem rgba(117, 225, 255, 0.45);
  pointer-events: none;
  will-change: left;
}

.has-js .story-opening-divider i {
  position: absolute;
  top: 52%;
  left: 50%;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgba(247, 243, 233, 0.8);
  border-radius: 50%;
  background: rgba(3, 7, 13, 0.72);
  box-shadow: 0 0 2.5rem rgba(117, 225, 255, 0.3);
  transform: translate(-50%, -50%);
}

.has-js .story-opening-divider i::before,
.has-js .story-opening-divider i::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 0.24rem solid transparent;
  border-bottom: 0.24rem solid transparent;
}

.has-js .story-opening-divider i::before {
  margin-left: -0.6rem;
  border-right: 0.35rem solid #f7f3e9;
}

.has-js .story-opening-divider i::after {
  position: absolute;
  margin-left: 0.6rem;
  border-left: 0.35rem solid #f7f3e9;
}

.has-js .story-opening-controls {
  position: absolute;
  z-index: 5;
  right: var(--gutter);
  bottom: clamp(2rem, 4.5vh, 3.5rem);
  left: var(--gutter);
  display: grid;
  grid-template-columns: minmax(12rem, 0.44fr) minmax(20rem, 1.2fr);
  align-items: end;
  gap: 1.5rem 3rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(247, 243, 233, 0.36);
}

.story-slider-heading {
  display: grid;
  gap: 0.35rem;
}

.story-slider-heading label {
  color: #f7f3e9;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-slider-heading output {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.story-opening-controls input[type="range"] {
  width: 100%;
  height: 44px;
  margin: 0;
  accent-color: #78e0ff;
  cursor: ew-resize;
}

.story-opening-controls input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(90deg, #ffc76b, #78e0ff);
}

.story-opening-controls input[type="range"]::-webkit-slider-thumb {
  width: 1.65rem;
  height: 1.65rem;
  margin-top: -0.78rem;
  border: 2px solid #03070d;
  border-radius: 50%;
  background: #f7f3e9;
  box-shadow: 0 0 0 1px rgba(247, 243, 233, 0.68), 0 0 1.8rem rgba(117, 225, 255, 0.42);
  appearance: none;
  -webkit-appearance: none;
}

.story-opening-controls input[type="range"]::-moz-range-track {
  height: 2px;
  background: linear-gradient(90deg, #ffc76b, #78e0ff);
}

.story-opening-controls input[type="range"]::-moz-range-thumb {
  width: 1.65rem;
  height: 1.65rem;
  border: 2px solid #03070d;
  border-radius: 50%;
  background: #f7f3e9;
  box-shadow: 0 0 0 1px rgba(247, 243, 233, 0.68), 0 0 1.8rem rgba(117, 225, 255, 0.42);
}

.story-slider-years {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  margin-top: -1rem;
  color: rgba(247, 243, 233, 0.62);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.has-js .story-opening-follow {
  position: absolute;
  z-index: 5;
  right: var(--gutter);
  top: clamp(7.6rem, 14vh, 10rem);
  margin: 0;
}

.has-js .story-opening-follow i {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border: 1px solid rgba(247, 243, 233, 0.52);
  border-radius: 50%;
}

@media (max-width: 900px) {
  .has-js .story-opening-copy {
    width: min(39rem, 72vw);
  }

  .has-js .story-opening-follow span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .has-js .story-opening-controls {
    grid-template-columns: minmax(10rem, 0.38fr) minmax(18rem, 1fr);
    gap: 1.25rem 2rem;
  }
}

@media (max-width: 760px) {
  .story-page .story-opening {
    padding: 7rem var(--gutter) 4rem;
  }

  .story-page .story-opening h1 {
    max-width: 16ch;
    font-size: clamp(2.5rem, 9vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 0.98;
    text-transform: none;
  }

  .story-opening-media {
    grid-template-columns: 1fr;
  }

  .story-era img {
    min-height: 22rem;
  }

  .has-js .story-page .story-opening {
    min-height: max(49rem, 100svh);
    padding: 0;
  }

  .has-js .story-opening::before {
    background:
      linear-gradient(180deg, rgba(3, 7, 13, 0.9) 0%, rgba(3, 7, 13, 0.68) 27%, rgba(3, 7, 13, 0.1) 52%, rgba(3, 7, 13, 0.94) 100%),
      linear-gradient(90deg, rgba(3, 7, 13, 0.44), transparent 70%);
  }

  .has-js .story-opening-copy {
    top: 5.9rem;
    right: var(--gutter);
    left: var(--gutter);
    width: auto;
  }

  .has-js .story-page .story-opening h1 {
    max-width: 16ch;
    margin-bottom: 0.75rem;
    font-size: clamp(2.5rem, 9vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 0.98;
    text-transform: none;
  }

  .has-js .story-opening-kicker {
    margin-bottom: 0.7rem;
    font-size: 0.55rem;
  }

  .has-js .story-opening-copy > p:last-child {
    max-width: 31rem;
    font-size: 0.73rem;
    line-height: 1.5;
  }

  .has-js .story-opening-media {
    top: clamp(19.5rem, 46vw, 22rem);
    bottom: 8rem;
    height: auto;
    background: #02060b;
  }

  .has-js .story-era {
    background: #02060b;
  }

  .has-js .story-era img,
  .has-js .story-era-home img,
  .has-js .story-era-rapids img {
    object-fit: contain;
    object-position: center;
    transform: none;
    filter: brightness(0.88) saturate(0.94) contrast(1.03);
  }

  .has-js .story-opening-divider i {
    top: 57%;
  }

  .has-js .story-opening-controls {
    right: var(--gutter);
    bottom: 1.3rem;
    left: var(--gutter);
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding-top: 0.8rem;
  }

  .story-slider-heading {
    grid-template-columns: 1fr auto;
    align-items: baseline;
  }

  .story-slider-heading label {
    font-size: 0.62rem;
  }

  .story-slider-heading output {
    font-size: 0.52rem;
  }

  .story-slider-years {
    grid-column: 1;
    margin-top: -0.45rem;
    font-size: 0.5rem;
    letter-spacing: 0.04em;
  }

  .has-js .story-opening-follow {
    top: 5.9rem;
  }
}

@media (max-width: 420px) {
  .has-js .story-opening-copy > p:last-child {
    max-width: 21rem;
  }

  .story-slider-heading output {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .has-js .story-era-rapids,
  .has-js .story-opening-divider {
    will-change: auto;
  }
}

/* The visible divider and the native slider both control the same reveal. */
.has-js .story-opening-divider { width:44px;transform:translateX(-50%);background:transparent;box-shadow:none;pointer-events:auto;touch-action:pan-y;cursor:ew-resize; }
.has-js .story-opening-divider::before { content:"";position:absolute;top:0;bottom:0;left:50%;width:1px;background:#f7f3e9b8; }
.story-opening-controls input[type="range"] { appearance:none;-webkit-appearance:none;background:transparent; }
