/* ============== PAGE WRAPPER ============== */

.story-main {
  min-height: 1px;
}

/* ============== HERO ============== */

.story-hero {
  position: relative;
  padding: 4.2rem 0 3.6rem;
  overflow: hidden;
  color: var(--text);
}

/* background ribbon */
.story-hero-bg {
  position: absolute;
  inset: -26% -15% 35% -15%;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 200, 150, 0.75) 0, transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(255, 160, 150, 0.75) 0, transparent 60%),
    linear-gradient(180deg, #ffe7d6 0%, #fff0e4 60%);
  z-index: -1;
}

/* soft animated yellow arc */
.story-hero-bg::before {
  content: "";
  position: absolute;
  inset: -40% -40%;
  border-radius: 45%;
  background: radial-gradient(
    circle at 20% 20%,
    rgba(255, 220, 150, 1) 0,
    rgba(255, 185, 90, 0.95) 35%,
    rgba(255, 150, 60, 0.88) 70%,
    transparent 100%
  );
  opacity: 0.95;
  pointer-events: none;
  animation: storyWave 28s ease-in-out infinite alternate;
}

@keyframes storyWave {
  0% {
    transform: translateX(-10%) translateY(-6%) rotate(-12deg);
  }
  50% {
    transform: translateX(5%) translateY(0%) rotate(-8deg);
  }
  100% {
    transform: translateX(14%) translateY(10%) rotate(-6deg);
  }
}

/* MAIN GRID */

.story-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
  align-items: center;

  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;      /* equal left/right padding on desktop */
}
/* Desktop tweak – push hero content closer to the left */
@media (min-width: 961px) {
  .story-hero-inner {
    margin-left: 0;
    margin-right: auto;

    /* MORE space on the left, still some on the right */
    padding-left: 2rem;     /* increase this for bigger gap */
    padding-right: 2.25rem;
  }
}



/* TEXT */

.story-hero-text {
  margin-top: -10px;
  max-width: 640px;
}

.story-hero-text h1 {
  font-size: 2.6rem;
  line-height: 1.14;
  margin: 0.4rem 0 0.9rem;
}

.story-hero-text p,
.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 38rem;
  color: var(--text-muted);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero-badge {
  font-size: 0.95rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(244, 93, 47, 0.18);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
}

/* IMAGE / BOWL */

.story-hero-media {
  display: flex;
  justify-content: flex-end;
  margin-left: 0;   /* nudges bowl slightly right on desktop */
  
}

.story-hero-circle {
  position: relative;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  padding: 0.5rem;
  background: radial-gradient(circle, #ffe9bf 0, #ffffff 60%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.16);
}
@media (min-width: 961px) {
  .story-hero-circle {
    transform: translateX(100px);  /* move bowl right without changing its size */
  }
}

.story-hero-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* little white chips on the bowl */

.hero-circle-chip {
  position: absolute;
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.72rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.hero-circle-chip span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.hero-circle-chip strong {
  font-size: 0.82rem;
}

.hero-circle-chip-top {
  top: -0.3rem;
  right: -0.3rem;
}

.hero-circle-chip-bottom {
  bottom: -0.4rem;
  left: 10%;
}

/* HERO RESPONSIVE */

/* Tablet & small laptop */
@media (max-width: 960px) {
  .story-hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .story-hero-inner {
    grid-template-columns: 1fr;   /* stack */
    gap: 2rem;
    max-width: 100%;
    margin: 0;
    padding: 0 1.6rem;
    
  }

  .story-hero-text {
    order: 1;
    margin-top: 0;
    max-width: 100%;
  }

  .story-hero-media {
    order: 2;
    justify-content: center;
    margin-left: 0;
  }

  .story-hero-circle {
    width: 60vw;
    height: 60vw;
  }
}

/* Narrow phones */
@media (max-width: 560px) {
  .story-hero-inner {
    gap: 1.6rem;
    padding: 0 1.2rem;
  }

  .story-hero-text h1 {
    font-size: 1.9rem;
  }

  .story-hero-text p,
  .hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .story-hero-circle {
    width: 78vw;
    height: 78vw;
  }
}

/* ============== HOW IT STARTED ============== */

.story-start {
  padding: 3.5rem 0 3.7rem;
  background: linear-gradient(180deg, #ffe8d1 0%, #ffe0ba 75%);
}

/* make this section span edge-to-edge (desktop);
   padding is added back on small screens later */
.story-start .container {
  max-width: 1040px;      /* similar width as hero */
  margin: 0 auto;         /* center on the page */
  padding: 0 1.5rem;      /* base left/right padding */
}


.start-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: flex-start;
}

.start-copy h2 {
  margin-bottom: 0.9rem;
  font-size: 2rem;
}

.start-copy p {
  color: var(--text-muted);
  font-size: 1.12rem;
  line-height: 1.85;
  max-width: 40rem;
}

.start-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.start-fact {
  padding: 0.6rem 1rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(244, 93, 47, 0.1);
}

.fact-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.fact-value {
  font-size: 0.9rem;
  font-weight: 600;
}

.start-photo-card {
  background: #ffffff;
  border-radius: 1.6rem;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
  max-width: 540px;
  margin-left: auto;
}

.start-photo-card img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.start-photo-body {
  padding: 1.2rem 1.4rem 1.3rem;
}

.start-photo-body h3 {
  font-size: 1.1rem;
}

.start-photo-body p {
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* ============== TIMELINE ============== */

.story-timeline {
  background: linear-gradient(180deg, #ffb867 0%, #ffa447 100%);
}

.section-header-center {
  text-align: center;
}

.section-header-center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

/* header icons */
.section-header .section-icon svg,
.section-header-center .section-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.section-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.timeline-rail {
  position: relative;
  margin-top: 2rem;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ffd8a0, #f45d2f);
  transform: translateX(-50%);
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.timeline-line:hover {
  opacity: 0.9;
}

/* rows */

.timeline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 3rem;
  align-items: center;
  margin-bottom: 2.5rem;
  position: relative;
}

/* left-row → text on left, image on right */
.timeline-row-left .timeline-card--text {
  justify-self: flex-start;
}
.timeline-row-left .timeline-card--visual {
  justify-self: flex-end;
}

/* right-row → image on left, text on right */
.timeline-row-right .timeline-card--visual {
  justify-self: flex-start;
}
.timeline-row-right .timeline-card--text {
  justify-self: flex-end;
}

/* base card */

.timeline-card {
  position: relative;
  max-width: 480px;
  padding: 1.1rem 1.4rem 1.15rem;
  border-radius: 1.4rem;
  background: #ffe5d2;
  border: 1px solid rgba(244, 93, 47, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

/* Make ONLY the text cards wider */
.timeline-card--text {
  width: 100%;
  max-width: 520px;
  padding: 1.3rem 1.7rem 1.35rem;
}

.timeline-card--visual {
  max-width: 480px;
  padding: 0.75rem;
  border-radius: 1.4rem;
  background: #ffe5d2;
  border: 1px solid rgba(244, 93, 47, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

/* text */

.timeline-year {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.timeline-card h3 {
  margin: 0 0 0.3rem;
}

.timeline-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* bigger text in text cards */

.timeline-card--text h3 {
  font-size: 1.1rem;
}

.timeline-card--text p {
  font-size: 0.98rem;
  line-height: 1.7;
}

/* image */

.timeline-card--visual img {
  width: 100%;
  height: 220px;
  border-radius: 1.1rem;
  object-fit: cover;
  transition: transform 0.35s ease;
}

/* timeline dots */

.timeline-dot {
  position: absolute;
  top: 1.1rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #f45d2f;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* left row → text card on left, dot on right edge */
.timeline-row-left .timeline-card--text .timeline-dot {
  right: -28px;
}

/* right row → text card on right, dot on left edge */
.timeline-row-right .timeline-card--text .timeline-dot {
  left: -28px;
}

/* timeline hovers */

.timeline-card:hover {
  transform: translateY(-8px);
  background: #fff7f1;
  border-color: rgba(244, 93, 47, 0.32);
  box-shadow: 0 28px 55px rgba(244, 93, 47, 0.28);
}

.timeline-card--visual:hover img {
  transform: scale(1.04);
}

.timeline-card:hover .timeline-dot {
  transform: scale(1.25);
  box-shadow: 0 0 12px rgba(244, 93, 47, 0.8);
}

/* ============== BELIEFS ("What breakfast means to us") ============== */

.story-beliefs {
  position: relative;
  padding: 3.6rem 0 4rem;
  overflow: hidden;
}

.story-beliefs .container {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0 2rem;
}

/* softly patterned background */
.story-beliefs-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 220, 180, 0.55) 0, transparent 55%),
    radial-gradient(circle at 100% 20%, rgba(255, 186, 186, 0.5) 0, transparent 55%),
    linear-gradient(180deg, #fff6e8 0%, #ffe9d1 45%, #fff9f1 100%);
  opacity: 0.92;
  z-index: -2;
}

/* subtle white mist */
.story-beliefs::before {
  content: "";
  position: absolute;
  inset: 10% 5% auto 5%;
  height: 60%;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.32);
  filter: blur(30px);
  z-index: -1;
}

/* header */

.beliefs-header {
  text-align: center;
}

.beliefs-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.story-beliefs .beliefs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 1.8rem;
}

/* cards */

.belief-card {
  position: relative;
  border-radius: 1.4rem;
  padding: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(245, 133, 68, 0.18);
  border: 1px solid rgba(244, 93, 47, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
              background 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.belief-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, #f45d2f, #ffc94b);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.belief-card-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  padding: 1rem 1.2rem 0.9rem;
  align-items: flex-start;
}

.belief-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0%, #ffc94b, #f45d2f);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
  flex-shrink: 0;
  transform-origin: center;
}

.belief-icon-wrap svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.belief-copy h3 {
  margin: 0 0 0.25rem;
}

.belief-copy p {
  margin: 0 0 0.45rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.belief-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: rgba(255, 201, 75, 0.16);
  border: 1px solid rgba(244, 93, 47, 0.2);
}

/* card hover */

.belief-card:hover,
.belief-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 26px 55px rgba(228, 106, 47, 0.32);
  background: #ffffff;
  border-color: rgba(244, 93, 47, 0.3);
}

.belief-card:hover::after,
.belief-card:focus-within::after {
  opacity: 1;
  transform: translateY(0);
}

/* belief icon animations (if motion allowed) */
@media (prefers-reduced-motion: no-preference) {
  .belief-icon-wrap {
    animation: beliefFloat 4.8s ease-in-out infinite;
  }

  .belief-icon-wrap svg {
    transform-origin: center;
    transition: transform 0.28s ease;
  }

  .belief-card:hover .belief-icon-wrap {
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  }

  .belief-card:hover .belief-icon-wrap svg {
    animation: beliefWiggle 0.55s ease-out;
  }

  @keyframes beliefFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
  }

  @keyframes beliefWiggle {
    0% { transform: rotate(0deg) scale(1); }
    30% { transform: rotate(-6deg) scale(1.07); }
    60% { transform: rotate(4deg) scale(1.04); }
    100% { transform: rotate(0deg) scale(1); }
  }
}

/* ============== TEAM ============== */

.story-team {
  position: relative;
  padding: 3.6rem 0 3.9rem;
  overflow: hidden;
}

/* background */
.story-team-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ffb867 0%, #ffa447 100%);
  z-index: -2;
}

.team-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 4rem;
  align-items: flex-start;
}

.team-kicker {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.team-copy p {
  color: var(--text-muted);
}

.team-list {
  margin-top: 1rem;
  padding-left: 0;
  list-style: none;
}

.team-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}

.team-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d35400 !important;
  box-shadow: 0 0 4px rgba(0,0,0,0.25);
}

.team-meta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.team-chip {
  font-size: 0.8rem;
  padding: 0.32rem 0.95rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(244, 93, 47, 0.18);
}

/* badge stack beside copy */

.team-badges {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.team-badges::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd18c, #f45d2f);
  opacity: 0.35;
}

.team-badge {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1rem 0.7rem 1.5rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
              border-color 0.25s ease, background 0.25s ease;
}

.team-badge::before {
  content: "";
  position: absolute;
  left: 18px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  background: linear-gradient(135deg, #f45d2f, #ffc94b);
  box-shadow: 0 0 0 3px rgba(244, 93, 47, 0.26);
}

.team-badge:hover,
.team-badge.is-highlight {
  transform: translateY(-4px);
  box-shadow: 0 24px 54px rgba(228, 106, 47, 0.32);
  border-color: rgba(244, 93, 47, 0.32);
  background: #ffffff;
}

.team-initials {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
  background: linear-gradient(135deg, #f45d2f, #ffc94b);
  flex-shrink: 0;
}

.team-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.team-role {
  margin: 0;
  font-weight: 600;
}

.team-note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* headline & text sizes */

.team-copy h2 {
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
}

.team-copy p {
  font-size: 1.02rem;
  line-height: 1.8;
  max-width: 40rem;
}

/* TEAM GRID – people behind the bowls */

.team-grid {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
  justify-items: center;
  padding: 1rem 0;
    margin-left: 15rem;
}

.team-member {
  width: 100%;
  max-width: 230px;
  text-align: center;
  background: #ffffff;
  padding: 3.4rem 1.4rem 1.7rem;
  border-radius: 2rem;
  border: 1px solid rgba(244, 93, 47, 0.18);
  box-shadow: 0 20px 45px rgba(245, 133, 68, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-member:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(244, 93, 47, 0.32);
}

/* Avatar circle frame */

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: -3.4rem auto 1.1rem;
  background: linear-gradient(135deg, #f45d2f, #ffc94b);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(244, 93, 47, 0.25);
}

.avatar img,
.avatar svg {
  width: 88%;
  height: 88%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Name + Role */

.team-member h3 {
  margin: 0.6rem 0 0.2rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.team-member .role {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* TEAM micro-animations */

@media (prefers-reduced-motion: no-preference) {
  .team-chip {
    position: relative;
    overflow: hidden;
  }

  .team-chip::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      120deg,
      transparent 0%,
      rgba(255, 255, 255, 0.9) 40%,
      transparent 80%
    );
    transform: translateX(-110%);
    opacity: 0;
  }

  .team-chip:hover::after,
  .team-chip:focus-visible::after {
    animation: chipShimmer 0.9s ease-out;
    opacity: 1;
  }

  @keyframes chipShimmer {
    0%   { transform: translateX(-110%); opacity: 0; }
    30%  { opacity: 1; }
    100% { transform: translateX(110%); opacity: 0; }
  }

  .team-badge {
    transition:
      transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1),
      box-shadow 0.22s ease,
      border-color 0.22s ease,
      background 0.22s ease;
  }

  .team-badge:hover,
  .team-badge.is-highlight:hover {
    transform: translateY(-6px) scale(1.01);
  }
}

/* ============== CLOSING ============== */

.story-closing {
  position: relative;
 
  padding: 12rem 0 6rem; /* increase top & bottom space so card centers nicely */
  overflow: hidden;
}

/* warm ribbon background */
.story-closing-bg {
  position: absolute;
  inset: auto 0 0;
  height: 80%;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 214, 163, 0.6) 0, transparent 55%),
    radial-gradient(circle at 90% 20%, rgba(255, 185, 166, 0.55) 0, transparent 50%),
    linear-gradient(180deg, #fff6ea 0%, #ffe4c5 45%, #ffeedd 100%);
  z-index: -2;
}

.closing-card {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.7rem 2rem 1.6rem;
  border-radius: 1.9rem;
  background: rgba(255, 255, 255, 0.97);
  text-align: center;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(244, 93, 47, 0.16);
  position: relative;
  overflow: hidden;
}

.closing-card::after {
  content: "";
  position: absolute;
  inset: auto 20% 0;
  height: 5px;
  background: linear-gradient(90deg, #f45d2f, #ffc94b);
  opacity: 0.95;
  border-radius: 999px;
}

.closing-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2px;
  margin-bottom: 0.8rem;
  
}

.closing-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0%, #ffc94b, #f45d2f);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.closing-icon-wrap svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

.closing-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin: 0;
}

.closing-quote {
  font-size: 1.05rem;
  margin: 0 0 0.6rem;
}

.closing-sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* closing icon float */

@media (prefers-reduced-motion: no-preference) {
  .closing-icon-wrap {
    animation: closingFloat 4.4s ease-in-out infinite;
  }

  @keyframes closingFloat {
    0% {
      transform: translateY(0);
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    }
    50% {
      transform: translateY(-4px);
      box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
    }
    100% {
      transform: translateY(0);
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    }
  }
}

/* ============== REVEAL ANIMATION ============== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease,
              transform 0.65s cubic-bezier(.25,.8,.25,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============== GLOBAL RESPONSIVE TWEAKS ============== */

@media (max-width: 960px) {
  .start-layout {
    grid-template-columns: 1fr;
  }

  .timeline-line {
    width: 3px;
    background: linear-gradient(180deg, #f8a947, #e55b2e);
    opacity: 0.65;
  }

  .timeline-row {
    align-items: flex-start;
  }

  .timeline-row-left .timeline-card--text,
  .timeline-row-right .timeline-card--text,
  .timeline-row-left .timeline-card--visual,
  .timeline-row-right .timeline-card--visual {
    justify-self: stretch;
    max-width: 100%;
    margin-left: 1.8rem;
  }

  .timeline-row + .timeline-row {
    margin-top: 0.6rem;
  }

  .timeline-row-left .timeline-card--text .timeline-dot,
  .timeline-row-right .timeline-card--text .timeline-dot {
    left: -23px;
    right: auto;
  }

  .story-beliefs .beliefs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-inner {
    grid-template-columns: 1fr;
  }

  .team-badges::before {
    left: 18px;
  }

  /* add padding to edge-to-edge containers on medium screens */
  .story-start .container {
    margin-left: 0;       /* pushed slightly towards left */
    margin-right: auto;
    padding-left: 2rem;   /* increase/decrease for more/less left gap */
    padding-right: 2.25rem;
  }

  .story-beliefs .container {
    padding-left: 1.6rem;
    padding-right: 1.6rem;
  }

  .story-team .container,
  .team-inner {
    padding-left: 1.6rem;
    padding-right: 1.6rem;
  }

  .closing-card {
    padding: 1.5rem 1.4rem 1.4rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .story-beliefs .beliefs-grid {
    grid-template-columns: 1fr;
  }

  .belief-card-inner {
    padding: 1.1rem 1.3rem 1rem;
  }

  .story-timeline {
    padding: 2.4rem 0 3rem;
  }

  .timeline-row {
    margin-bottom: 1.6rem;
  }

  .timeline-card,
  .timeline-card--visual {
    max-width: 92%;
    padding: 0.95rem 1.1rem 1rem;
    border-radius: 1.2rem;
    margin-left: 1.9rem;
  }

  .timeline-card--visual img {
    height: 180px;
  }

  .timeline-card p {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .timeline-card--text {
    max-width: 96%;
    padding: 1.05rem 1.25rem 1.1rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .story-start .container,
  .story-beliefs .container,
  .story-team .container,
  .team-inner {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
}

/* Optional extra padding for team inner on tablets */
@media (max-width: 768px) {
  .team-inner {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
}
/* ---------- TEAM CARDS: nicer fixed sizing & avatar fix ---------- */

.story-team .container {
  max-width: 1040px;      
  margin-left: 0;         
  margin-right: auto;     
  padding-left: 2rem;     
  padding-right: 2.25rem; 
}

/* card grid: fixed comfortable card widths so icons & avatars aren't squashed */
.team-grid {
  margin-top: 2.2rem;
  display: grid;
  /* allow 3 cards per row when space permits, each between 180px and 240px */
  grid-template-columns: repeat(3, minmax(180px, 240px));
  gap: 1.25rem;         /* slightly tighter gap */
  justify-content: center;   /* center the grid inside the container */
  align-items: start;        /* keep cards top-aligned */
  padding: 1rem 0;
}

/* card: not too tall, comfortable padding */
.team-member {
  width: 100%;
  max-width: 240px;         /* wider than before so avatar fits */
  text-align: center;
  background: #ffffff;
  padding: 2rem 1rem 1.35rem; /* smaller top & bottom padding than original */
  border-radius: 1.6rem;     /* softer corners */
  border: 1px solid rgba(244, 93, 47, 0.12);
  box-shadow: 0 14px 36px rgba(245, 133, 68, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.6rem;
  min-height: 220px;        /* keep cards visually consistent height */
}

/* hover effect—gentle */
.team-member:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(244, 93, 47, 0.24);
}

/* avatar: smaller but visually bold; overlap reduced & consistent */
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: -36px auto 8px;     /* pulls avatar up to overlap card top, but not too far */
  background: linear-gradient(135deg, #f45d2f, #ffc94b);
  padding: 6px;               /* white inner ring */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(244, 93, 47, 0.16);
  flex-shrink: 0;
}

/* avatar image/icon sizing */
.avatar img,
.avatar svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* card title & role spacing / font */
.team-member h3 {
  margin: 0.25rem 0 0.15rem;
  font-size: 1.05rem;     /* increase title size slightly */
  font-weight: 700;
  line-height: 1.1;
}

/* supporting role text */
.team-member .role {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* adjust smaller screens: stack to 1/2 columns and shrink avatars slightly */
@media (max-width: 960px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 1rem;
  }

  .team-member {
    min-height: auto;
    max-width: 100%;
    padding: 1.6rem 1rem 1rem;
  }

  .avatar {
    width: 64px;
    height: 64px;
    margin: -28px auto 8px;
  }
}

@media (max-width: 560px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .avatar {
    width: 60px;
    height: 60px;
    margin: -26px auto 8px;
   
  }

  .team-member h3 {
    font-size: 1rem;
  }
}
/* ---------- Responsive fixes & sensible container behavior ---------- */

/* make sizing predictable */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Responsive container behaviour for the hero */
.story-hero-inner {
  max-width: 1040px;      /* keep max width on large screens */
  width: 100%;            /* allow it to shrink on small screens */
  margin-left: auto;      /* center by default */
  margin-right: auto;
  padding-left: 1.5rem;   /* comfortable gutter on both sides */
  padding-right: 1.5rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
}

/* Prevent the bowl from being shifted way off-screen on small widths */
.story-hero-circle {
  transform: none;
}

/* keep a small, controlled nudge on larger screens only */
@media (min-width: 1200px) {
  .story-hero-inner {
    padding-left: 2rem;
    padding-right: 2.25rem;
  }
  .story-hero-circle {
    transform: translateX(80px); /* smaller and only on wide screens */
  }
}

/* Stack columns and remove offsets on medium / small screens */
@media (max-width: 960px) {
  .story-hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;      /* allow more space when stacked */
    padding-left: 1.6rem;  /* slightly larger touch-friendly gutters */
    padding-right: 1.6rem;
    margin-left: 0;
    margin-right: 0;
  }

  .story-hero-circle {
    transform: none;       /* don't push the circle right */
    width: 60vw;
    height: 60vw;
  }

  .story-hero-text {
    margin-top: 0;
  }
}

/* Narrow phones */
@media (max-width: 560px) {
  .story-hero-inner {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    gap: 1.6rem;
  }
  .story-hero-text h1 {
    font-size: 1.9rem;
  }
  .story-hero-circle {
    width: 78vw;
    height: 78vw;
  }
}

/* Remove the hard left offset for team cards which caused big left gutters */
.team-grid {
  margin-left: 0;       /* remove the 15rem that breaks mobile */
  justify-content: center; /* keep cards centered inside container */
  padding: 1rem 0;
}

/* If you do want the team grid to be left-aligned on large screens, do it with a container width */
/* Example: on very large screens, give it a slight left alignment while preserving responsiveness */
@media (min-width: 1300px) {
  .team-grid {
    justify-content: start;
    gap: 1.8rem;
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2.25rem;
  }
}

/* Minor: ensure timeline cards don't get forced outside on mobile */
.timeline-card,
.timeline-card--visual,
.timeline-card--text {
  max-width: 100%;
  box-sizing: border-box;
}
/* Allow the avatar to overlap card without being clipped */
.team-member {
  overflow: visible;        /* allow overlap to show */
  position: relative;       /* keep stacking context for avatar */
  z-index: 1;
}

/* make avatar overlap nicely and sit outside the top border */
.team-member .avatar {
  margin-top: 1px;        /* controls how much it overlaps — adjust ±8-12px */
  z-index: 3;               /* keep above card */
  box-shadow: 0 8px 20px rgba(244, 93, 47, 0.16);
}

/* tighten up on small screens so it doesn't push content */
@media (max-width: 560px) {
  .team-member .avatar {
    margin-top: -10px;
    width: 60px;
    height: 60px;
  }
}
@media (min-width: 961px) {
  /* nudge hero text slightly left on desktop without breaking layout */
  .story-hero-text {
    /* choose one of these — uncomment the one you prefer */

    /* gentle nudge (recommended) */
    transform: translateX(-80px);

    /* stronger nudge */
    /* transform: translateX(-80px); */

    /* alternative using margin if you prefer box-model change */
    /* margin-left: -2.5rem; */

    /* keep smoothness when animating/resizing */
    transition: transform 220ms ease;
  }
}
/* ensure the container for closing matches other sections */
.story-closing .container {
  max-width: 1040px;      /* same width as hero / other sections */
  margin: 0 auto;
  padding-left: 1.5rem;   /* same gutter as the page */
  padding-right: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* center the card and allow an optional slight overlap with the section above */
.story-closing .closing-card {
  margin: -48px auto 2.6rem;    /* negative top margin if you want the card to overlap above */
  max-width: 720px;             /* card width — tweak to taste */
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 2;                   /* keep it above the background */
  padding: 1.7rem 2rem 1.6rem;  /* existing padding preserved */
}

/* responsive: reduce overlap on small screens */
@media (max-width: 960px) {
  .story-closing .closing-card {
    margin-top: 0;          /* remove overlap on small screens */
    max-width: 92%;
    padding: 1.3rem 1.4rem;
  }

  .story-closing .container {
    padding-left: 1.6rem;
    padding-right: 1.6rem;
  }
}
/* ---------- Closing section: ensure container sits inside the pink gradient ---------- */
.section.story-closing,
.story-closing {
  position: relative;
  padding: 3.2rem 0 4rem; /* adjust vertical spacing to taste */
  overflow: visible;
}

/* full-bleed pink gradient that lives behind the container */
.story-closing-bg {
  position: absolute;
  inset: 0;               /* cover the whole section area */
  height: 100%;
  z-index: -2;            /* behind everything in the section */
  background:
    radial-gradient(circle at 10% 0%, rgba(255,214,163,0.62) 0, transparent 55%),
    radial-gradient(circle at 90% 20%, rgba(255,185,166,0.56) 0, transparent 50%),
    linear-gradient(180deg, #fff6ea 0%, #ffe4c5 45%, #ffeedd 100%);
}

/* container inside the pink area — match other sections' max-width & gutters */
.story-closing .container {
  max-width: 1040px;     /* same container width used across site */
  width: 100%;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
  position: relative;
  z-index: 1;            /* keep above the background */
}

/* the white card — centered and optionally overlapping the section above */
.story-closing .closing-card {
  max-width: 760px;      /* tweak to taste */
  width: 100%;
  margin: -48px auto 0;  /* negative top margin = gentle overlap with the section above */
  background: rgba(255,255,255,0.98);
  border-radius: 1.6rem;
  padding: 1.8rem 2rem;
  box-shadow: 0 22px 60px rgba(0,0,0,0.12);
  border: 1px solid rgba(244,93,47,0.12);
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

/* small visual tweak for the inner icon row that you have */
.story-closing .closing-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

/* responsive: remove overlap and tighten padding on smaller screens */
@media (max-width: 960px) {
  .story-closing {
    padding-top: 2.6rem;
    padding-bottom: 2.6rem;
  }

  .story-closing .closing-card {
    margin: 0 auto;     /* no overlap on tablet/phone */
    max-width: 92%;
    padding: 1.3rem 1.6rem;
  }

  .story-closing .container {
    padding-left: 1.6rem;
    padding-right: 1.6rem;
  }
}

/* extra small phones */
@media (max-width: 560px) {
  .story-closing .closing-card {
    padding: 1rem 1.2rem;
    margin: 0.6rem auto;
    border-radius: 1.2rem;
  }

  .story-closing .closing-top {
    gap: 0.45rem;
  }
}
/* ---------- Force closing card lower and centered (override other rules) ---------- */
/* make the closing section a simple vertical container */
.section.story-closing,
.story-closing {
  position: relative;
  display: block;                     /* keep normal flow */
  padding: 10rem 0 6rem !important;   /* increase top space — adjust 14rem to taste */
  box-sizing: border-box;
  overflow: visible;
}

/* ensure background covers the full section */
.story-closing-bg {
  position: absolute;
  inset: 0;
  height: 100%;
  z-index: -2;
}

/* make the container use the normal page grid but force it above the bg */
.story-closing > .container {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

/* strong override to position the closing card exactly where we want */
.story-closing .closing-card {
  width: 100%;
  max-width: 760px !important;        /* card width */
  margin: 2.2rem auto 0 !important;   /* top margin pushes it down inside the pink area */
  padding: 1.8rem 2rem !important;
  box-sizing: border-box;
  position: relative;
  z-index: 3 !important;
  transform: none !important;         /* cancel any translate from .reveal or JS */
}

/* stop any animated reveal from moving it unexpectedly (if JS adds translate) */
.story-closing .closing-card.reveal,
.story-closing .closing-card.reveal.visible {
  transform: none !important;
  opacity: 1 !important;
}

/* responsive: bring spacing back down on smaller screens */
@media (max-width: 960px) {
  .story-closing {
    padding: 8rem 0 4rem !important;
  }
  .story-closing .closing-card {
    margin: 1.2rem auto 0 !important;
    max-width: 92% !important;
    padding: 1.2rem 1.4rem !important;
  }
}
/* Reset the section padding to a normal value so the section doesn't grow */
.section.story-closing,
.story-closing {
  padding: 6rem 0 6rem; /* sensible default — adjust smaller/larger if needed */
  position: relative;
  overflow: visible;
}

/* Visually push the card down without changing section height */
.story-closing .closing-card {
  /* remove any previous forced margins/transforms */
  margin: 0 auto !important;
  transform: translateY(72px);   /* <-- increase/decrease this number to move card down/up */
  transition: transform 240ms ease; /* smooth movement if other changes happen */
  z-index: 3 !important;
  position: relative;            /* keep stacking context */
}

/* cancel any reveal JS that sets translate values */
.story-closing .closing-card.reveal,
.story-closing .closing-card.reveal.visible {
  transform: translateY(72px) !important;
  opacity: 1 !important;
}

/* responsive: remove the visual shift on smaller screens so it doesn't overlap */
@media (max-width: 960px) {
  .story-closing {
    padding: 3.2rem 0 3.2rem;
  }
  .story-closing .closing-card {
    transform: translateY(0) !important;
    margin: 1.2rem auto !important;
    max-width: 92% !important;
  }
}
/* === Fix: restore normal section height but keep card visually lower === */
.story-closing,
.section.story-closing {
  /* sensible default height — adjust only if you want slightly taller/shorter */
  padding: 3.2rem 0 3.2rem !important;
  position: relative;
  box-sizing: border-box;
  overflow: visible;
}

/* ensure background covers section (no change to height) */
.story-closing-bg {
  position: absolute;
  inset: 0;
  height: 100%;
  z-index: -2;
}

/* Controlled visual offset variable (change this to move card only visually) */
.story-closing {
  --closing-offset: 72px; /* increase = card moves down visually, does NOT change section height */
}

/* card layout: no negative margins, centered, visually moved by transform only */
.story-closing .closing-card {
  margin: 0 auto !important;                 /* remove negative top margin */
  max-width: 760px !important;
  width: 100%;
  padding: 1.8rem 2rem !important;
  transform: translateY(var(--closing-offset)) !important;
  transition: transform 220ms ease !important;
  position: relative !important;
  z-index: 3 !important;
  box-sizing: border-box;
}

/* make sure any reveal JS doesn't reintroduce other transforms or invisible state */
.story-closing .closing-card.reveal,
.story-closing .closing-card.reveal.visible {
  transform: translateY(var(--closing-offset)) !important;
  opacity: 1 !important;
}

/* responsive: remove visual offset on small screens so card flows naturally */
@media (max-width: 960px) {
  .story-closing {
    --closing-offset: 0px;
    padding: 2.2rem 0 2.2rem !important;
  }

  .story-closing .closing-card {
    transform: translateY(0) !important;
    margin: 1rem auto !important;
    max-width: 92% !important;
    padding: 1.2rem 1.4rem !important;
  }
}
/* ---------- Center container inside the pink story-closing section ---------- */

/* Make the section a stable box with a predictable height (tweak min-height as needed) */
.story-closing,
.section.story-closing {
  position: relative;
  padding: 0;                 /* remove extra vertical padding because we'll center inside the box */
  box-sizing: border-box;
  overflow: visible;
  min-height: 200px;         /* <-- tweak this value to increase/decrease the pink area's height */
}

/* Keep the background full-bleed */
.story-closing-bg {
  position: absolute;
  inset: 0;
  height: 100%;
  z-index: -2;
}

/* Absolute-center the site's container inside the section.
   This visually centers the content without affecting document flow. */
.story-closing > .container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%); /* perfect center */
  width: 100%;
  max-width: 1040px;         /* match your site container */
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
  z-index: 2;
  pointer-events: none;      /* let internal elements be the only interactive parts */
}

/* Make the card interactive (undo pointer-events for children) */
.story-closing > .container .closing-card {
  pointer-events: auto;
  margin: 0 auto;            /* center inside the container */
  transform: none !important; /* we want the container to place it, not a transform */
  position: relative;
  z-index: 3;
}

/* Cancel any reveal JS transform and keep the card centered */
.story-closing .closing-card.reveal,
.story-closing .closing-card.reveal.visible {
  transform: none !important;
  opacity: 1 !important;
}

/* Responsive: on smaller screens we switch back to normal flow so content stacks nicely */
@media (max-width: 960px) {
  .story-closing,
  .section.story-closing {
    min-height: auto;
    padding: 2.2rem 0;       /* restore padding for mobile flow */
  }

  .story-closing > .container {
    position: relative;      /* back to normal flow so it becomes part of document flow */
    transform: none;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 100%;
    padding-left: 1.6rem;
    padding-right: 1.6rem;
  }

  .story-closing .closing-card {
    margin: 1rem auto;
    max-width: 92%;
    transform: none !important;
  }
  /* ===== Mobile timeline: force text -> image order and left timeline ===== */
@media (max-width: 960px) {
  /* stack each timeline row vertically */
  .timeline-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1.25rem; /* space between rows */
  }
   .avatar{
    margin-top: 10px;
   }
  /* ensure text card always comes first, image second */
  .timeline-row .timeline-card--text { order: 1; margin-top: 24px;}
  .timeline-row .timeline-card--visual { order: 2; margin-top: 24px;}

  /* make cards full width inside the container */
  .timeline-row .timeline-card,
  .timeline-row .timeline-card--visual,
  .timeline-row .timeline-card--text {
    max-width: 100%;
    width: 100%;
    margin-left: 0;      /* remove any desktop left offsets */
    margin-right: 0;
    box-sizing: border-box;
  }

  /* position the vertical rail on the left edge of the stacked content */
  .timeline-rail { position: relative; }
  .timeline-line {
    left: 24px;            /* position the vertical line slightly inside the container */
    transform: none;
    width: 3px;
    top: 0;
    bottom: 0;
    opacity: 0.55;
  }

  /* leave space on the left for the line/dots by nudging the cards */
  .timeline-card {
    padding-left: 36px;    /* creates visual gutter for the vertical line and dots */
  }

  /* place the dot so it sits on the line (override desktop left/right styles) */
  .timeline-card .timeline-dot {
    left: 12px !important;
    right: auto !important;
    top: 18px;
    transform: none;
  }

  /* make visual images flow nicely in the stack */
  .timeline-card--visual img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.8rem;
    margin-top: 6px;
  }

  /* slightly reduce card shadow/padding on smaller screens if needed */
  .timeline-card {
    padding: 0.9rem 1rem 0.95rem; /* slightly smaller padding on mobile */
    border-radius: 1rem;
  }

  /* tighten vertical spacing between stacked content & image */
  .timeline-card--text + .timeline-card--visual {
    margin-top: 0.6rem;
  }
}

}
/* -----------------------
   Replace team section background
   (make the team bg match the purple→peach look)
   ----------------------- */
.story-team-bg {
  /* keep position/inset/z-index as in your file */
  position: absolute;
  inset: 0;
  z-index: -2;

  /* new layered gradient: soft purple on the left → peach on the right */
  background:
    radial-gradient(circle at 0% 0%, rgba(200, 170, 255, 0.56) 0, transparent 55%),
    radial-gradient(circle at 100% 20%, rgba(255, 200, 180, 0.55) 0, transparent 55%),
    linear-gradient(90deg, #f3e6ff 0%, #ffd9c9 100%) !important;
}
/* ---------------------------
   Timeline — improved mobile layout
   Paste at the end of story.css (replace older mobile fixes)
   --------------------------- */

@media (max-width: 640px) {
  /* make the whole timeline live in a centered column */
  .timeline-rail {
    position: relative;
    max-width: 560px;      /* width of the centered column (tweak if you want wider) */
    margin: 0 auto;        /* center the timeline block */
    padding-left: 56px;    /* left gutter reserved for line + dots */
    padding-right: 16px;
    box-sizing: border-box;
  }

  /* put the vertical line inside that left gutter */
  .timeline-line {
    position: absolute;
    left: 28px;            /* center of the left gutter */
    top: 0;
    bottom: 0;
    width: 3px;
    transform: none;
    background: linear-gradient(180deg, #ffd8a0, #f45d2f);
    opacity: 0.45;
    z-index: 0;
  }

  /* stack rows vertically and avoid the two-column grid layout */
  .timeline-row {
    display: block;
    margin: 0 0 1.25rem 0;
    padding: 0;
  }

  /* cards become full-width within the centered column and sit to the right of the gutter */
  .timeline-card,
  .timeline-card--visual,
  .timeline-card--text {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 0 0 56px;    /* place the card to the right of the rail/gutter */
    box-sizing: border-box;
    z-index: 2;            /* keep cards above the line */
    padding: 0.9rem 1rem;
    border-radius: 1.1rem;
  }

  /* visual cards (images) get consistent padding & sizing */
  .timeline-card--visual {
    padding: 0.6rem;
  }

  .timeline-card--visual img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.9rem;
    object-fit: cover;
  }

  /* align the dot to sit on top of the vertical line (left gutter center) */
  .timeline-card .timeline-dot {
    position: absolute;
    left: -28px;           /* negative relative to card margin to place on the rail center */
    top: 1.1rem;
    right: auto;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #f45d2f;
    z-index: 3;
    transform: none;
  }

  /* small typographic padding so text doesn't touch the edge */
  .timeline-card h3,
  .timeline-card p {
    padding-left: 0.1rem;
  }

  /* reduce spacing slightly for very narrow devices */
  @media (max-width: 420px) {
    .timeline-rail {
      max-width: calc(100% - 16px);
      padding-left: 48px;
      padding-right: 12px;
    }
    .timeline-line { left: 24px; }
    .timeline-card,
    .timeline-card--visual,
    .timeline-card--text { margin-left: 48px; }
    .timeline-card .timeline-dot { left: -24px; }
  }
}

/* End timeline mobile fixes */
/* MOBILE: remove extra gap above "Our Story" in hero (narrow phones) */
@media (max-width: 560px) {
  /* reduce the hero's top padding so content sits closer to the header */
  .story-hero {
    padding-top: 0.9rem !important;
    padding-bottom: 1.6rem !important;
  }

  /* remove any extra inner container top padding/gap */
  .story-hero-inner {
    padding-top: 0 !important;
    gap: 1.2rem !important;
  }

  /* ensure the hero text block doesn't push itself down */
  .story-hero-text {
    margin-top: 0 !important;
  }

  /* tighten eyebrow / small kicker spacing if present */
  .story-hero-text .eyebrow,
  .story-hero-text .section-eyebrow {
    margin-top: 0 !important;
    margin-bottom: 0.35rem !important;
    font-size: 0.78rem;
  }

  /* slightly reduce the hero circle size so it doesn't force extra space */
  .story-hero-circle {
    width: 70vw !important;
    height: 70vw !important;
  }

  /* if the background band is large on mobile, pull it up a bit */
  .story-hero-bg {
    inset: -18% -15% 28% -15% !important;
  }
}
/* =========================================
   MAKE ALL TIMELINE CARDS SAME SIZE
   ========================================= */

.timeline-card,
.timeline-card--text,
.timeline-card--visual {
  width: 100% !important;
  max-width: 520px !important;   /* final equal width */
  min-height: 220px !important;  /* ensures equal height */
  padding: 1.3rem 1.6rem !important;
  border-radius: 1.4rem !important;
  box-sizing: border-box !important;
  background: #ffe5d2 !important;
}

/* Make image cards match size of text cards */
.timeline-card--visual {
  padding: 2rem !important;
}

.timeline-card--visual img {
  height: 160px !important;      /* fixed height so cards align */
  object-fit: cover !important;
  border-radius: 1rem !important;
}

/* Fix different text margins */
.timeline-card--text h3,
.timeline-card--text p {
  margin-left: 0 !important;
}

/* Ensure dots stay aligned */
.timeline-card .timeline-dot {
  top: 1.1rem !important;
}
