.our-story-page {
  overflow-x: hidden;
}

.our-story-shell {
  width: calc(100% - (var(--page-gutter) * 2));
  max-width: var(--page-container);
  margin-right: auto;
  margin-left: auto;
}

.story-timeline {
  position: relative;
  width: calc(100% - (var(--page-gutter) * 2));
  max-width: 1240px;
  height: 1966px;
  margin: 110px auto var(--section-space-large);
  color: var(--color-secondary-ink);
}

.story-timeline__panel {
  position: absolute;
  inset: 130px 0 0;
  overflow: hidden;
  border-radius: var(--page-radius);
  background: var(--color-secondary-cream);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.02);
}

.story-timeline__vinyl-pattern {
  position: absolute;
  inset: 0 0 auto;
  height: 626px;
  overflow: hidden;
  background-image:
    linear-gradient(to bottom, var(--color-secondary-cream) 0, rgba(238, 236, 229, 0) 269px),
    linear-gradient(to right, var(--color-secondary-cream) 0, rgba(238, 236, 229, 0) 232px),
    linear-gradient(to left, var(--color-secondary-cream) 0, rgba(238, 236, 229, 0) 232px),
    url("../../src/assets/images/our-story/timeline-vinyl-pattern.svg");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

.story-timeline__title {
  position: absolute;
  z-index: var(--z-content);
  top: 130px;
  left: 50%;
  width: calc(100% - (var(--content-gutter) * 2));
  margin: 0;
  transform: translateX(-50%);
  color: var(--color-secondary-ink);
  font-size: var(--font-size-heading-2);
  line-height: var(--line-height-heading-2);
  text-align: center;
}

.story-timeline__record-icon {
  position: absolute;
  z-index: var(--z-record);
  top: 77px;
  left: 50%;
  width: 136px;
  height: 136px;
  transform: translateX(-50%);
}

.story-timeline__canvas {
  position: absolute;
  z-index: var(--z-content);
  top: 241px;
  left: 50%;
  width: 1133px;
  height: 1595px;
  transform: translateX(-50%);
}

.story-timeline__origins {
  position: absolute;
  z-index: var(--z-content);
  inset: 0 0 auto;
  height: 500px;
}

.story-timeline__origin {
  position: absolute;
  width: 305px;
  margin: 0;
  transform-origin: center;
}

.story-timeline__origin--sam {
  top: 77px;
  left: 261px;
  transform: rotate(-10deg) skewX(-1.26deg);
}

.story-timeline__origin--van {
  top: 130px;
  right: 200px;
  transform: rotate(8deg) skewX(-1.26deg);
}

.story-timeline__photo-frame {
  position: relative;
  width: 305px;
  height: 397px;
  overflow: hidden;
  border: 8px solid var(--color-secondary-cream);
  border-radius: 8px;
  background: var(--color-secondary-sage);
  box-shadow: 0 0 20px rgba(26, 26, 26, 0.1);
}

.story-timeline__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-timeline__photo--sam {
  object-position: 50% 16%;
}

.story-timeline__photo--van {
  object-position: 50% 39%;
}

.story-timeline__origin-label {
  position: absolute;
  z-index: var(--z-content);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--color-secondary-cream);
  box-shadow: 0 4px 7px rgba(0, 0, 0, 0.03);
  font-family: var(--font-family-heading);
  font-size: var(--font-size-hoss-24);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-hoss-24);
  white-space: nowrap;
}

.story-timeline__origin-label--sam {
  top: 129px;
  left: -55px;
  width: 132px;
  justify-content: center;
  color: var(--color-primary-orange);
  transform: skewX(1.26deg) rotate(10deg);
}

.story-timeline__origin-label--van {
  top: 200px;
  right: 1px;
  width: 122px;
  justify-content: center;
  transform: skewX(1.26deg) rotate(-8deg);
}

.story-timeline__path {
  position: absolute;
  z-index: var(--z-base);
  overflow: visible;
  color: var(--color-secondary-ink);
  pointer-events: none;
}

.story-timeline__path svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.story-timeline__path path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  will-change: stroke-dashoffset;
}

.story-timeline__path--sam {
  top: 256px;
  left: 174px;
  width: 255px;
  height: 1218px;
  color: var(--color-primary-orange);
}

.story-timeline__path--van {
  top: 367px;
  right: 177px;
  width: 238px;
  height: 1112px;
  transform: scaleX(-1);
}

.story-timeline__mobile-line,
.story-timeline__mobile-right-line {
  display: none;
}

.story-timeline__entries {
  position: absolute;
  inset: 0;
  z-index: var(--z-content);
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-timeline__entry {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 354px;
  margin: 0;
  padding: 15px 16px;
  border-radius: 8px;
  background: var(--color-secondary-cream);
  box-shadow: 0 4px 7px rgba(0, 0, 0, 0.03);
  text-align: center;
  transform-origin: center;
  isolation: isolate;
  will-change: transform, opacity;
}

.story-timeline__entry--sam {
  left: 0;
}

.story-timeline__entry--van {
  right: 0;
}

.story-timeline__entry--start {
  top: 508px;
}

.story-timeline__entry--seventies {
  top: 612px;
}

.story-timeline__entry--save {
  top: 719px;
}

.story-timeline__entry--bunbury {
  top: 822px;
}

.story-timeline__entry--leap {
  top: 930px;
}

.story-timeline__entry--sisters {
  top: 1032px;
}

.story-timeline__entry--now {
  top: 1155px;
}

.story-timeline__entry--sam-arrives {
  top: 1242px;
}

.story-timeline__entry-title {
  margin: 0;
  font-family: var(--font-family-heading);
  font-size: var(--font-size-heading-6);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-heading-6);
}

.story-timeline__entry--sam .story-timeline__entry-title {
  color: var(--color-primary-orange);
}

.story-timeline__entry p {
  margin: 0;
  font-size: var(--font-size-body-16);
  line-height: var(--line-height-body-16);
}

.story-timeline__convergence {
  position: absolute;
  z-index: var(--z-content);
  top: 1406px;
  left: 50%;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 452px;
  margin: 0;
  padding: 28px 30px;
  border-radius: 8px;
  background: var(--color-secondary-ink);
  box-shadow: 0 4px 7px rgba(0, 0, 0, 0.03);
  color: var(--color-secondary-cream);
  text-align: center;
  transform: translateX(-50%);
  transform-origin: center;
  will-change: transform, opacity;
}

.story-timeline__convergence h3 {
  margin: 0;
  color: var(--color-primary-orange);
  font-family: var(--font-family-heading);
  font-size: var(--font-size-heading-5);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading-5);
}

.story-timeline__convergence p {
  margin: 0;
  font-size: var(--font-size-body-16);
  line-height: var(--line-height-body-16);
}

.story-timeline__record {
  position: absolute;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translateX(-50%);
  transform-origin: center;
  pointer-events: none;
  will-change: transform;
}

.story-timeline__record--opening {
  z-index: var(--z-base);
  top: 0;
}

.story-timeline__record--closing {
  z-index: var(--z-base);
  top: 1318px;
  width: 198px;
  height: 198px;
}

.story-timeline__record-layer {
  position: absolute;
  display: block;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.story-timeline__record-layer--outer {
  width: 100%;
  height: 100%;
}

.story-timeline__record-layer--grooves,
.story-timeline__record-layer--rings {
  width: 97%;
  height: 97%;
}

.story-timeline__record-layer--inner {
  width: 44.33%;
  height: 44.33%;
}

.story-timeline__record-layer--label-ring {
  width: 34.1%;
  height: 34.1%;
}

.story-timeline__record-layer--center {
  width: 22.17%;
  height: 22.17%;
}

/* Percentage values preserve the paired-track proportions while the 1240px Figma canvas narrows. */
@media (max-width: 1266px) and (min-width: 1167px) {
  .story-timeline__canvas {
    width: calc(100% - 107px);
  }

  .story-timeline__origin--sam {
    left: 23.04%;
  }

  .story-timeline__origin--van {
    right: 17.65%;
  }

  .story-timeline__path--sam {
    left: 15.36%;
  }

  .story-timeline__path--van {
    right: 15.62%;
  }
}

@media (max-width: 1166.98px) {
  .story-timeline {
    height: auto;
    margin-top: var(--section-space-medium);
  }

  .story-timeline__panel {
    position: relative;
    inset: auto;
    padding: 174px var(--content-gutter) var(--section-space-large);
  }

  .story-timeline__vinyl-pattern {
    height: 520px;
  }

  .story-timeline__record--opening {
    top: -34px;
    width: 248px;
    height: 248px;
  }

  .story-timeline__record-icon {
    top: 34px;
    width: 112px;
    height: 112px;
  }

  .story-timeline__title {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    transform: none;
  }

  .story-timeline__canvas {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    margin-top: var(--section-space-medium);
    transform: none;
  }

  .story-timeline__origins {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: 430px;
  }

  .story-timeline__origin {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 278px;
  }

  .story-timeline__origin--sam {
    top: auto;
    left: auto;
    margin-right: -18px;
  }

  .story-timeline__origin--van {
    top: auto;
    right: auto;
    margin-top: 72px;
    margin-left: -18px;
  }

  .story-timeline__origin-label--sam {
    top: 207px;
    left: -33px;
    width: auto;
  }

  .story-timeline__origin-label--van {
    top: 212px;
    right: -27px;
    width: auto;
  }

  .story-timeline__photo-frame {
    width: 278px;
    height: 360px;
  }

  .story-timeline__path {
    display: none;
  }

  .story-timeline__mobile-line {
    position: absolute;
    z-index: var(--z-base);
    top: 430px;
    bottom: 186px;
    left: 50%;
    display: block;
    width: 2px;
    border-radius: 2px;
    overflow: hidden;
    background: rgba(26, 26, 26, 0.14);
    transform: translateX(-50%);
  }

  .story-timeline__mobile-stroke {
    position: absolute;
    inset: 0;
    display: block;
    border-radius: inherit;
    background: linear-gradient(to bottom, var(--color-primary-orange) 0 50%, var(--color-secondary-ink) 50% 100%);
    transform: scaleY(0);
    transform-origin: top;
    will-change: transform;
  }

  .story-timeline__entries {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 76px;
    inset: auto;
    margin-top: 30px;
  }

  .story-timeline__entry {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
    padding: 18px 16px;
  }

  .story-timeline__entry--sam {
    grid-column: 1;
  }

  .story-timeline__entry--van {
    grid-column: 2;
  }

  .story-timeline__entry--start,
  .story-timeline__entry--seventies {
    grid-row: 1;
  }

  .story-timeline__entry--save,
  .story-timeline__entry--bunbury {
    grid-row: 2;
  }

  .story-timeline__entry--leap,
  .story-timeline__entry--sisters {
    grid-row: 3;
  }

  .story-timeline__entry--now,
  .story-timeline__entry--sam-arrives {
    grid-row: 4;
  }

  .story-timeline__record--closing {
    top: auto;
    bottom: 98px;
    width: 174px;
    height: 174px;
  }

  .story-timeline__convergence {
    position: relative;
    top: auto;
    left: auto;
    width: 452px;
    max-width: 100%;
    margin: 70px auto 0;
    transform: none;
  }
}

@media (max-width: 768px) {
  .story-timeline__panel {
    padding-top: 154px;
  }

  .story-timeline__record--opening {
    top: -26px;
    width: 220px;
    height: 220px;
  }

  .story-timeline__record-icon {
    top: 34px;
    width: 100px;
    height: 100px;
  }

  .story-timeline__origins {
    height: 380px;
  }

  .story-timeline__origin {
    width: 232px;
  }

  .story-timeline__origin--sam {
    margin-right: -26px;
  }

  .story-timeline__origin--van {
    margin-top: 58px;
    margin-left: -26px;
  }

  .story-timeline__photo-frame {
    width: 232px;
    height: 310px;
    border-width: 6px;
  }

  .story-timeline__origin-label--sam {
    top: 165px;
  }

  .story-timeline__origin-label--van {
    top: 166px;
  }

  /*
   * Mobile keeps the original paired timeline treatment: the orange progress
   * track on the left and the dark story track on the right. Both use identical
   * top/bottom geometry so they remain parallel at every responsive size.
   */
  .story-timeline__mobile-line {
    top: 390px;
    right: auto;
    bottom: 184px;
    left: 13px;
    width: 2px;
    overflow: hidden;
    border: 0;
    border-radius: 2px;
    background: rgba(255, 102, 32, 0.18);
    transform: none;
  }

  .story-timeline__mobile-stroke {
    z-index: 1;
    inset: 0;
    border: 0;
    border-radius: inherit;
    background: var(--color-primary-orange);
    transform-origin: center top;
  }

  .story-timeline__mobile-right-line {
    position: absolute;
    z-index: var(--z-base);
    top: 390px;
    right: 13px;
    bottom: 184px;
    display: block;
    width: 2px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(26, 26, 26, 0.18);
    pointer-events: none;
  }

  .story-timeline__mobile-right-stroke {
    position: absolute;
    inset: 0;
    display: block;
    border-radius: inherit;
    background: var(--color-secondary-ink);
    transform: scaleY(0);
    transform-origin: center top;
    will-change: transform;
  }

  .story-timeline__entries {
    display: flex;
    flex-direction: column;
    gap: var(--component-gap);
    margin-top: 18px;
    padding-right: 34px;
    padding-left: 34px;
  }

  .story-timeline__entry {
    grid-column: auto;
    grid-row: auto;
    text-align: left;
  }

  .story-timeline__entry::before {
    position: absolute;
    top: 29px;
    /*
     * The marker’s 18px outer diameter is centred on the left progress track.
     */
    left: -26px;
    width: 12px;
    height: 12px;
    border: 3px solid var(--color-secondary-cream);
    border-radius: 50%;
    background: var(--color-primary-orange);
    content: "";
  }

  .story-timeline__entry--van::before {
    /*
     * This marker is centred on the matching right-hand dark progress track.
     */
    right: -26px;
    left: auto;
    background: var(--color-secondary-ink);
  }

  .story-timeline__entry--van .story-timeline__entry-title {
    color: var(--color-secondary-ink);
  }

  .story-timeline__convergence {
    margin-top: var(--section-space-medium);
    padding: 24px 22px;
  }
}

@media (max-width: 480px) {
  .story-timeline {
    width: calc(100% - (var(--page-gutter) * 2));
    margin-top: var(--section-space-small);
  }

  .story-timeline__panel {
    padding: 176px var(--content-gutter) var(--section-space-medium);
    border-radius: 12px;
  }

  .story-timeline__vinyl-pattern {
    height: 400px;
  }

  .story-timeline__record--opening {
    z-index: var(--z-content);
    top: 16px;
    width: 136px;
    height: 136px;
  }

  .story-timeline__record-icon {
    top: 41px;
    width: 86px;
    height: 86px;
  }

  .story-timeline__canvas {
    margin-top: var(--section-space-small);
  }

  .story-timeline__origins {
    height: 298px;
  }

  .story-timeline__origin {
    width: 164px;
  }

  .story-timeline__origin--sam {
    margin-right: -22px;
  }

  .story-timeline__origin--van {
    margin-top: 48px;
    margin-left: -22px;
  }

  .story-timeline__photo-frame {
    width: 164px;
    height: 232px;
    border-width: 5px;
  }

  .story-timeline__origin-label {
    padding: 8px 12px;
  }

  .story-timeline__origin-label--sam {
    top: 127px;
    left: -18px;
  }

  .story-timeline__origin-label--van {
    top: 129px;
    right: -18px;
  }

  .story-timeline__mobile-line {
    top: 306px;
    bottom: 170px;
  }

  .story-timeline__mobile-right-line {
    top: 306px;
    bottom: 170px;
  }

  .story-timeline__record--closing {
    bottom: 84px;
    width: 144px;
    height: 144px;
  }
}

@media (max-width: 360px) {
  .story-timeline__panel {
    padding-right: 14px;
    padding-left: 14px;
  }

  .story-timeline__origin {
    width: 150px;
  }

  .story-timeline__photo-frame {
    width: 150px;
    height: 218px;
  }

  .story-timeline__origin-label--sam {
    left: -12px;
  }

  .story-timeline__origin-label--van {
    right: -12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-timeline__path path {
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
  }

  .story-timeline__mobile-stroke,
  .story-timeline__mobile-right-stroke {
    transform: scaleY(1) !important;
  }

  .story-timeline__origin,
  .story-timeline__entry,
  .story-timeline__convergence,
  .story-timeline__record {
    opacity: 1 !important;
  }
}

.before-rhythm {
  width: calc(100% - (var(--page-gutter) * 2));
  max-width: var(--page-container);
  margin: 0 auto var(--section-space-large);
  overflow-x: clip;
  color: var(--color-secondary-ink);
}

.before-rhythm__title {
  margin: 0 0 32px;
  color: var(--color-secondary-ink);
  font-family: var(--font-family-heading);
  font-size: var(--font-size-heading-2);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading-2);
  text-align: center;
}

.before-rhythm__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.before-rhythm__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 23px;
  padding: 37px 70px;
  border-radius: 12px;
  background: var(--color-secondary-sand);
}

.before-rhythm__legacy-mark {
  position: relative;
  width: 249px;
  height: 136px;
  overflow: hidden;
  mix-blend-mode: multiply;
}

.before-rhythm__legacy-mark img {
  position: absolute;
  top: -42.48%;
  left: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 183.19%;
  object-fit: cover;
}

.before-rhythm__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  max-width: 501px;
}

.before-rhythm__content p {
  margin: 0;
  color: var(--color-secondary-ink);
  font-size: var(--font-size-body-16);
  line-height: var(--line-height-body-16);
}

.before-rhythm__button {
  flex: none;
  font-family: var(--font-family-body);
  font-size: var(--font-size-body-16);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-body-16-medium);
  cursor: pointer;
}

.before-rhythm__gallery {
  display: grid;
  grid-template-columns: repeat(3, 150px);
  gap: 16px;
}

.before-rhythm__gallery img {
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 6px;
  object-fit: cover;
}

.before-rhythm__card--restoration {
  padding: 40px 46px 39px;
}

.before-rhythm__profiles {
  display: grid;
  grid-template-areas:
    "founder-copy founder-media"
    "van-media van-copy";
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 12px;
  margin-top: 30px;
}

.before-rhythm__profile {
  min-width: 0;
  margin: 0;
  border-radius: 12px;
}

.before-rhythm__profile--copy {
  display: flex;
  align-items: center;
  background: var(--color-secondary-sand);
}

.before-rhythm__profile--founder {
  grid-area: founder-copy;
  padding: 44px 60px 61px 70px;
}

.before-rhythm__profile--founder-media {
  grid-area: founder-media;
}

.before-rhythm__profile--van {
  grid-area: van-copy;
  align-items: flex-start;
  padding: 42px;
}

.before-rhythm__profile--van-media {
  grid-area: van-media;
}

.before-rhythm__profile-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.before-rhythm__eyebrow,
.before-rhythm__profile-title,
.before-rhythm__profile-copy,
.before-rhythm__profile-copy p {
  margin: 0;
}

.before-rhythm__eyebrow {
  color: var(--color-primary-orange);
  transform: rotate(-6.7deg);
  transform-origin: left center;
}

.before-rhythm__profile-title {
  color: var(--color-secondary-ink);
}

.before-rhythm__profile--founder .before-rhythm__profile-title {
  color: var(--color-primary-orange);
}

.before-rhythm__profile-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--color-secondary-ink);
}

.before-rhythm__profile--media {
  aspect-ratio: 684 / 500;
  overflow: hidden;
  background: var(--color-secondary-sand);
}

.before-rhythm__profile--media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Keep media equal to its paired copy card while the profile grid is two columns. */
@media (min-width: 1025px) {
  .before-rhythm__profile--media {
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 1366px) {
  .before-rhythm__card {
    padding-right: 54px;
    padding-left: 54px;
  }

  .before-rhythm__card--restoration {
    padding-right: 40px;
    padding-left: 40px;
  }

  .before-rhythm__gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .before-rhythm__gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .before-rhythm__profile--founder {
    padding-right: 48px;
    padding-left: 54px;
  }

  .before-rhythm__profile--van {
    padding-right: 36px;
    padding-left: 36px;
  }
}

@media (max-width: 1166px) {
  .before-rhythm__card,
  .before-rhythm__card--restoration {
    padding: 34px 36px;
  }

  .before-rhythm__profile--founder,
  .before-rhythm__profile--van {
    padding: 34px 36px;
  }
}

@media (max-width: 1024px) {
  .before-rhythm__grid {
    grid-template-columns: 1fr;
  }

  .before-rhythm__card,
  .before-rhythm__card--restoration {
    padding: var(--section-space-medium) var(--content-gutter);
  }

  .before-rhythm__content {
    max-width: 620px;
  }

  .before-rhythm__gallery {
    max-width: 620px;
  }

  .before-rhythm__profiles {
    grid-template-areas:
      "founder-copy"
      "founder-media"
      "van-copy"
      "van-media";
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .before-rhythm__profile--founder,
  .before-rhythm__profile--van {
    padding: var(--section-space-medium) var(--content-gutter);
  }
}

@media (max-width: 768px) {
  .before-rhythm__title {
    margin-bottom: var(--section-space-small);
  }

  .before-rhythm__card,
  .before-rhythm__card--restoration {
    padding: var(--section-space-medium) var(--content-gutter);
  }

  .before-rhythm__legacy-mark {
    width: 220px;
    height: 120px;
  }

  .before-rhythm__gallery {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .before-rhythm__card,
  .before-rhythm__card--restoration {
    gap: var(--section-space-small);
    padding: var(--section-space-medium) var(--content-gutter);
  }

  .before-rhythm__legacy-mark {
    width: 190px;
    height: 104px;
  }

  .before-rhythm__gallery {
    gap: 8px;
  }

  .before-rhythm__button {
    width: 100%;
  }

  .before-rhythm__profiles {
    margin-top: var(--section-space-small);
  }

  .before-rhythm__profile--founder,
  .before-rhythm__profile--van {
    padding: var(--section-space-medium) var(--content-gutter);
  }
}

@media (prefers-reduced-motion: reduce) {
  .before-rhythm__title,
  .before-rhythm__card,
  .before-rhythm__profile {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* SCF-driven timeline sizing keeps the paired story layout scalable for any entry count. */
@media (min-width: 1167px) {
  .story-timeline {
    height: var(--story-timeline-height, 1966px);
  }

  .story-timeline__canvas {
    height: var(--story-canvas-height, 1595px);
  }

  .story-timeline__entry {
    top: var(--story-entry-top, 508px);
  }

  .story-timeline__path--sam {
    height: var(--story-sam-path-height, 1218px);
  }

  .story-timeline__path--van {
    height: var(--story-van-path-height, 1112px);
  }

  .story-timeline__record--closing {
    top: var(--story-closing-top, 1318px);
  }

  .story-timeline__convergence {
    top: var(--story-convergence-top, 1406px);
  }
}

@media (min-width: 769px) and (max-width: 1166.98px) {
  .story-timeline__entry {
    grid-row: var(--story-entry-row, auto);
  }
}

@media (max-width: 768px) {
  .story-timeline__entry {
    grid-row: auto;
  }
}

/* Keep the opening record composition compact and balanced below the hero on responsive screens. */
@media (max-width: 1266px) and (min-width: 1167px) {
  .story-timeline {
    margin-top: 52px;
  }

  .story-timeline__panel {
    inset: 90px 0 0;
  }

  .story-timeline__record--opening {
    top: 0;
    width: 200px;
    height: 200px;
  }

  .story-timeline__record-icon {
    top: 54px;
    width: 72px;
    height: 72px;
  }

  .story-timeline__title {
    top: 156px;
  }

  .story-timeline__canvas {
    top: 246px;
  }
}

@media (max-width: 1166.98px) {
  .story-timeline {
    margin-top: 115px;
  }

  .story-timeline__panel {
    padding-top: 66px;
  }

  .story-timeline__record--opening {
    top: -64px;
    width: 200px;
    height: 200px;
  }

  .story-timeline__record-icon {
    top: -28px;
    width: 72px;
    height: 72px;
  }

  .story-timeline__canvas {
    margin-top: 44px;
  }
}

@media (max-width: 768px) {
  .story-timeline {
    margin-top: 90px;
  }

  .story-timeline__panel {
    padding-top: 64px;
  }

  .story-timeline__record--opening {
    top: -50px;
    width: 148px;
    height: 148px;
  }

  .story-timeline__record-icon {
    top: -20px;
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 480px) {
  .story-timeline {
    margin-top: 76px;
  }

  .story-timeline__panel {
    padding-top: 60px;
  }

  .story-timeline__record--opening {
    z-index: var(--z-base);
    top: -42px;
    width: 128px;
    height: 128px;
  }

  .story-timeline__record-icon {
    top: -15px;
    width: 58px;
    height: 58px;
  }
}
