/* =========================
   OUR STORY
========================= */

.story-page{
  background: #000;
  color: #fff;
}

/* Shared short gold rule, the anniversary badge gold */
.story-rule{
  display: block;
  width: 56px;
  height: 2px;
  margin: 0 auto 34px;
  background: #c7ab5b;
}

/* =========================
   HERO
========================= */

.story-hero{
  position: relative;
  background: #000;
  border-bottom: 2px solid #fff;
}

.story-hero__inner{
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 40px 24px;
  box-sizing: border-box;
  text-align: left;
}

.story-hero__title{
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: .95;
  color: #fff;
}

/* Short gold rule under the title, the same accent used on Meet the Team */
.story-hero__title::after{
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 6px;
  background: #c7ab5b;
}

/* =========================
   LEAD
========================= */

.story-lead{
  background: #fff;
  color: #000;
}

.story-lead__inner{
  max-width: 1000px;
  margin: 0 auto;
  padding: 120px 24px;
  text-align: center;
}

.story-lead__text{
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.32;
  color: #000;
}

/* =========================
   INTRO: HEADER + LEAD FILL THE VIEWPORT
   Same idea as the home page hero. svh keeps it from jumping when the mobile
   browser bar shows and hides.
========================= */

.story-intro{
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.story-intro .story-lead{
  flex: 1;
  display: flex;
  align-items: center;
}

.story-intro .story-lead__inner{
  width: 100%;
  padding: 64px 24px 48px;
  box-sizing: border-box;
}

@media (max-width: 991px){
  .story-narrative__inner{
    padding: 72px 22px 80px;
  }

  .story-timeline__inner{
    padding: 80px 22px 88px;
  }

  .story-timeline__header{
    margin-bottom: 52px;
    padding-left: 44px;
  }

    .story-actions{
    margin-top: 52px;
    padding-left: 44px;
  }

  /* Rail moves to the left edge, the year sits above the copy */
  .story-tl__entry{
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 16px;
  }

  .story-tl__year{
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    margin-bottom: 12px;
  }

  .story-tl__marker{
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .story-tl__body{
    grid-column: 2;
    grid-row: 2;
  }

  .story-tl__entry + .story-tl__entry{
    margin-top: 52px;
  }

  .story-tl__entry + .story-tl__entry .story-tl__marker::after{
    top: -52px;
    height: 52px;
  }
}

@media (max-width: 991px){
  .story-intro .story-lead__inner{
    padding: 48px 22px 36px;
  }
}

@media (max-width: 640px){
  .story-hero__title::after{
    width: 44px;
    margin-top: 5px;
  }

  .story-intro .story-lead__inner{
    padding: 36px 18px 28px;
  }
}

/* Scroll cue under the anniversary paragraph */
.story-scroll{
  display: flex;
  width: 44px;
  height: 44px;
  margin: 40px auto 0;
  align-items: center;
  justify-content: center;
  color: #000;
  border: 1.5px solid rgba(0,0,0,.28);
  border-radius: 50%;
  box-sizing: border-box;
  transition: border-color 220ms ease, background 220ms ease, color 220ms ease;
}

.story-scroll svg{
  width: 22px;
  height: 22px;
  animation: story-scroll-nudge 2.2s ease-in-out infinite;
}

@media (hover: hover){
  .story-scroll:hover{
    background: #000;
    border-color: #000;
    color: #fff;
  }
}

.story-scroll:focus-visible{
  outline: 2px solid #c7ab5b;
  outline-offset: 3px;
}

@keyframes story-scroll-nudge{
  0%, 100%{ transform: translateY(-2px); }
  50%{ transform: translateY(3px); }
}

@media (prefers-reduced-motion: reduce){
  .story-scroll svg{
    animation: none;
  }
}

@media (max-width: 640px){
  .story-scroll{
    width: 40px;
    height: 40px;
    margin-top: 28px;
  }
}

html{
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce){
  html{
    scroll-behavior: auto;
  }
}

/* =========================
   NARRATIVE
========================= */

.story-narrative{
  background: #fff;
  color: #000;
  border-top: 1px solid rgba(0,0,0,.1);
}

.story-narrative__inner{
  max-width: 820px;
  margin: 0 auto;
  padding: 96px 24px 104px;
}

.story-narrative__inner p{
  margin: 0 0 26px;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.9;
  color: rgba(0,0,0,.76);
}

.story-narrative__inner p:last-child{
  margin-bottom: 0;
}

.story-narrative__inner a{
  color: #000;
  text-decoration: underline;
  text-decoration-color: #c7ab5b;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color 200ms ease;
}

.story-narrative__inner a:hover{
  color: #86692a;
}

/* =========================
   TIMELINE
========================= */

.story-timeline{
  background: #000;
  color: #fff;
}

.story-timeline__inner{
  max-width: 1060px;
  margin: 0 auto;
  padding: 104px 24px 112px;
}

.story-timeline__header{
  margin: 0 0 72px;
  padding-left: 264px;
}

.story-timeline__title{
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.04;
  color: #fff;
}

.story-rule--left{
  margin: 10px 0 0;
}

/* Entries sit on a continuous rail: year column, rail with a gold diamond,
   then the copy. Matches the rail graphic in the client's own timeline. */
.story-tl{
  list-style: none;
  margin: 0;
  padding: 0;
}

.story-tl__entry{
  position: relative;
  display: grid;
  grid-template-columns: 220px 44px minmax(0, 1fr);
  align-items: start;
}

.story-tl__entry + .story-tl__entry{
  margin-top: 64px;
}

.story-tl__year{
  margin: 0;
  padding-top: 2px;
  text-align: right;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: #c7ab5b;
  white-space: nowrap;
  padding-right: 14px;
}

/* The rail is drawn on the marker column so it connects entry to entry and
   stops cleanly at the last one */
.story-tl__marker{
  position: relative;
  align-self: stretch;
  justify-self: center;
  width: 1px;
  background: rgba(255,255,255,.22);
}

.story-tl__entry:first-child .story-tl__marker{
  background: linear-gradient(to bottom, transparent 0, transparent 14px, rgba(255,255,255,.22) 14px);
}

.story-tl__entry:last-child .story-tl__marker{
  background: linear-gradient(to bottom, rgba(255,255,255,.22) 0, rgba(255,255,255,.22) 14px, transparent 14px);
}

.story-tl__marker::before{
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 13px;
  height: 13px;
  transform: translateX(-50%) rotate(45deg);
  background: #000;
  border: 1.5px solid #c7ab5b;
  box-sizing: border-box;
}

/* The rail continues past the copy into the gap before the next entry */
.story-tl__entry + .story-tl__entry .story-tl__marker::after{
  content: "";
  position: absolute;
  top: -64px;
  left: 50%;
  width: 1px;
  height: 64px;
  transform: translateX(-50%);
  background: rgba(255,255,255,.22);
}

.story-tl__body{
  padding-bottom: 4px;
}

.story-tl__block + .story-tl__block{
  margin-top: 26px;
}

.story-tl__heading{
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.18;
  color: #fff;
}

.story-tl__text{
  margin: 0;
  max-width: 620px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,.8);
}

/* =========================
   ANNIVERSARY BADGE
   Copied from the home page hero badge so the two match exactly
========================= */

.story-badge{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 40px;
  padding: 0 14px;
  background: rgba(0, 0, 0, 0.85);
  border-top: 3px solid #c7ab5b;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  text-align: left;
}

.story-badge__logo{
  display: block;
  height: 135px;
  width: auto;
  padding-right: 12px;
  margin-right: 2px;
  border-right: 1px solid rgba(255,255,255,0.22);
}

.story-badge__text{
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
  gap: 0;
  transform: translateY(-5px);
}

.story-badge__number{
  font-family: var(--font-serif);
  font-size: 80px;
  color: #c7ab5b;
  margin: 0;
  letter-spacing: -0.05em;
}

.story-badge__line{
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: .95;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #c7ab5b;
  margin: 0;
}

.story-badge__line + .story-badge__line{
  margin-top: 2px;
}

/* Compact version, shown below 992px like the home page */
.story-badge-mobile{
  display: none;
  align-items: center;
  margin: 0 0 30px;
  padding: 8px 12px;
  background: rgba(0,0,0,.85);
  border-top: 3px solid #c7ab5b;
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
  text-align: left;
}

.story-badge-mobile__side{
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-sans);
  font-size: 6px;
  line-height: 1;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #c7ab5b;
  margin-right: 6px;
}

.story-badge-mobile__main{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  padding-left: 6px;
  border-left: 1px solid rgba(255,255,255,.22);
}

.story-badge-mobile__number{
  font-family: var(--font-serif);
  font-size: 54px;
  line-height: .82;
  letter-spacing: -0.05em;
  color: #c7ab5b;
  margin: 0;
}

.story-badge-mobile__years{
  font-family: var(--font-sans);
  font-size: 8px;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #c7ab5b;
  margin-top: 3px;
}

@media (max-width: 991px){
  .story-badge{
    display: none;
  }

  .story-badge-mobile{
    display: inline-flex;
  }
}

/* =========================
   INTERNAL LINK BUTTONS
========================= */

.story-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 72px;
  padding-left: 264px;
}

.story-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 26px;
  border: 1.5px solid rgba(255,255,255,.85);
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-sizing: border-box;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.story-btn__icon{
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: currentColor;
}

.story-btn:hover{
  background: #fff;
  border-color: #fff;
  color: #000;
  transform: translateY(-2px);
}

.story-btn:focus-visible{
  outline: 2px solid #c7ab5b;
  outline-offset: 3px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991px){
  .story-hero__inner{
    padding: calc(var(--mobile-header-height, 55px) + 20px) 22px 22px;
  }

  .story-lead__inner{
    padding: 88px 22px;
  }

  .story-timeline__inner{
    padding: 88px 22px;
  }

  /* Rail moves to the left edge, years sit above each paragraph */
  .story-timeline__inner::before{
    top: 88px;
    bottom: 88px;
    left: 28px;
  }

}

@media (max-width: 640px){
  .story-actions{
    flex-direction: column;
    align-items: stretch;
    margin-top: 44px;
    padding-left: 40px;
  }

  .story-hero__inner{
    padding: calc(var(--mobile-header-height, 55px) + 16px) 18px 20px;
  }

  .story-lead__inner{
    padding: 64px 18px;
  }

  .story-rule{
    margin-bottom: 26px;
  }

  .story-timeline__inner{
    padding: 64px 18px;
  }

  .story-timeline__inner::before{
    top: 64px;
    bottom: 64px;
    left: 24px;
  }

}

@media (max-width: 640px){
  .story-narrative__inner{
    padding: 56px 18px 64px;
  }

  .story-narrative__inner p{
    font-size: 16px;
  }

  .story-timeline__inner{
    padding: 60px 18px 72px;
  }

  .story-timeline__header{
    padding-left: 40px;
  }

  .story-tl__entry{
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 14px;
  }

  .story-tl__text{
    font-size: 15px;
  }
}
