/* Our Founders — "Our Story": wide card + separate photo strip (no overlap) */
.lmyc-founders-origin-section {
  background:
    linear-gradient(180deg, rgb(var(--color-background)) 0%, rgba(253, 248, 243, 0.96) 42%, rgba(245, 238, 228, 0.92) 100%);
}

.lmyc-founders-origin-padding {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(1.75rem, 3vw, 2.5rem);
  padding-left: var(--lmyc-gutter, clamp(1.75rem, calc(0.5rem + 2.8vw), 4rem));
  padding-right: var(--lmyc-gutter, clamp(1.75rem, calc(0.5rem + 2.8vw), 4rem));
}

body.lmyc-about-page #main-content .lmyc-founders-origin-padding {
  max-width: none;
  width: 100%;
}

.lmyc-story {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2vw, 1.75rem);
}

/* Photo strip — always its own row, never overlaps the card */
.lmyc-story__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.5vw, 1.15rem);
  width: 100%;
}

.lmyc-story__photo {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  margin: 0;
  animation: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.lmyc-story__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.lmyc-story__photo:nth-child(1) {
  transform: rotate(-2deg);
  --lmyc-story-photo-rotate: -2deg;
}

.lmyc-story__photo:nth-child(2) {
  transform: rotate(1.5deg);
  --lmyc-story-photo-rotate: 1.5deg;
}

.lmyc-story__photo:nth-child(3) {
  transform: rotate(-1.5deg);
  --lmyc-story-photo-rotate: -1.5deg;
}

.lmyc-story__photo:nth-child(4) {
  transform: rotate(2deg);
  --lmyc-story-photo-rotate: 2deg;
}

.lmyc-story__photo:nth-child(4) img {
  object-position: center 18%;
}

.lmyc-story__photo:hover {
  transform: translateY(-4px) rotate(var(--lmyc-story-photo-rotate, 0deg));
  box-shadow:
    0 18px 38px rgba(20, 12, 6, 0.22),
    0 6px 14px rgba(20, 12, 6, 0.1);
}

/* Story card — wide, compact height */
.lmyc-story__card,
.lmyc-founders-origin-card {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(1.5rem, 2.2vw, 2rem) clamp(1.5rem, 3vw, 3rem) clamp(1.35rem, 2vw, 1.75rem);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(66, 89, 54, 0.12);
  border-radius: 1.35rem;
  box-shadow:
    0 1.4rem 3.6rem rgba(66, 89, 54, 0.08),
    0 0.35rem 1rem rgba(66, 89, 54, 0.04);
  overflow: hidden;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lmyc-founders-origin-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.35rem;
  background: linear-gradient(90deg, #425936 0%, #303D1C 50%, #425936 100%);
}

.lmyc-founders-origin-card__header {
  text-align: center;
}

.lmyc-founders-origin-eyebrow {
  margin-inline: auto;
  margin-bottom: 0;
  text-align: center;
  max-width: max-content;
  width: auto;
}

.lmyc-founders-origin-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0.65rem auto 1rem;
  max-width: 24rem;
}

.lmyc-founders-origin-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(66, 89, 54, 0.28), transparent);
}

.lmyc-founders-origin-divider svg {
  width: 1.4rem;
  height: 1.4rem;
  color: #425936;
  flex-shrink: 0;
}

.lmyc-founders-origin-card__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 1.8vw, 1.35rem);
  max-width: none;
  margin: 0;
  text-align: center;
  font-size: clamp(1.2rem, 1.05vw, 1.38rem);
  line-height: 1.65;
}

.lmyc-founders-origin-card__body > * + * {
  margin-top: 0;
}

.lmyc-founders-origin-card__body p {
  margin: 0;
}

.lmyc-founders-origin-timeline {
  position: relative;
  margin-top: clamp(0.85rem, 1.5vw, 1.15rem);
  padding-top: clamp(0.85rem, 1.5vw, 1.1rem);
  border-top: 1px solid rgba(66, 89, 54, 0.1);
}

.lmyc-founders-origin-timeline__track {
  display: none;
}

.lmyc-founders-origin-timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  position: relative;
}

.lmyc-founders-origin-timeline__list::before {
  display: none;
}

.lmyc-founders-origin-timeline__item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lmyc-founders-origin-timeline__dot {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-bottom: 0.65rem;
  border-radius: 50%;
  background: #425936;
  border: 2px solid #fffef4;
  box-shadow: 0 0 0 2px rgba(66, 89, 54, 0.22);
}

.lmyc-founders-origin-timeline__item--now .lmyc-founders-origin-timeline__dot {
  width: 1.3rem;
  height: 1.3rem;
  margin-top: -0.08rem;
  margin-bottom: 0.68rem;
  background: #D18E95;
  box-shadow:
    0 0 0 3px rgba(209, 142, 149, 0.28),
    0 0 0 6px rgba(209, 142, 149, 0.1);
  animation: lmyc-timeline-pulse 2.4s ease-in-out infinite;
}

@keyframes lmyc-timeline-pulse {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(209, 142, 149, 0.28), 0 0 0 6px rgba(209, 142, 149, 0.1);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(209, 142, 149, 0.35), 0 0 0 10px rgba(209, 142, 149, 0.08);
  }
}

.lmyc-founders-origin-timeline__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  min-height: 0;
  padding: 0.65rem 0.55rem 0.75rem;
  border-radius: 0.85rem;
  background: rgba(66, 89, 54, 0.05);
  border: 1px solid rgba(66, 89, 54, 0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.lmyc-founders-origin-timeline__item:hover .lmyc-founders-origin-timeline__card,
.lmyc-founders-origin-timeline__item:focus-within .lmyc-founders-origin-timeline__card {
  transform: translateY(-2px);
  box-shadow: 0 0.75rem 1.8rem rgba(66, 89, 54, 0.09);
  border-color: rgba(66, 89, 54, 0.18);
}

.lmyc-founders-origin-timeline__item--now .lmyc-founders-origin-timeline__card {
  background: linear-gradient(165deg, rgba(66, 89, 54, 0.11) 0%, rgba(209, 142, 149, 0.13) 100%);
  border-color: rgba(209, 142, 149, 0.32);
}

.lmyc-founders-origin-timeline__year {
  font-family: var(--font-heading-family);
  font-size: clamp(1.2rem, 1.15vw, 1.45rem);
  line-height: 1.15;
  color: #425936;
}

.lmyc-founders-origin-timeline__item--now .lmyc-founders-origin-timeline__year {
  font-size: clamp(1.45rem, 1.35vw, 1.75rem);
  color: #D18E95;
}

.lmyc-founders-origin-timeline__label {
  font-size: clamp(0.88rem, 0.82vw, 0.98rem);
  line-height: 1.32;
  letter-spacing: 0.01em;
  color: rgba(44, 36, 25, 0.75);
  max-width: 14rem;
}

.lmyc-founders-origin-timeline__item--now .lmyc-founders-origin-timeline__label {
  color: #425936;
  font-weight: 500;
}

@media screen and (min-width: 768px) {
  .lmyc-story__gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.75rem, 1.2vw, 1.1rem);
  }

  .lmyc-story__photo:nth-child(1) {
    transform: rotate(-4deg);
    --lmyc-story-photo-rotate: -4deg;
  }

  .lmyc-story__photo:nth-child(2) {
    transform: rotate(3deg);
    --lmyc-story-photo-rotate: 3deg;
  }

  .lmyc-story__photo:nth-child(3) {
    transform: rotate(-3deg);
    --lmyc-story-photo-rotate: -3deg;
  }

  .lmyc-story__photo:nth-child(4) {
    transform: rotate(4deg);
    --lmyc-story-photo-rotate: 4deg;
  }

  .lmyc-founders-origin-card__body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    text-align: left;
    gap: clamp(1rem, 2vw, 2.25rem);
    font-size: clamp(0.98rem, 0.88rem + 0.14vw, 1.08rem);
    line-height: 1.58;
  }

  .lmyc-founders-origin-card__body.main-description,
  .lmyc-founders-origin-card__body.main-description p {
    font-size: clamp(0.98rem, 0.88rem + 0.14vw, 1.08rem) !important;
    line-height: 1.58 !important;
  }

  .lmyc-founders-origin-timeline__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.55rem, 1vw, 0.85rem);
  }

  .lmyc-founders-origin-timeline__list::before {
    content: "";
    display: block;
    position: absolute;
    top: 0.95rem;
    left: 8%;
    right: 8%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #425936 0%, #C2B08D 45%, #D18E95 75%, #425936 100%);
  }

  .lmyc-founders-origin-divider {
    margin-bottom: 0.85rem;
  }
}

@media screen and (min-width: 1200px) {
  body.lmyc-about-page #main-content .lmyc-founders-origin-padding {
    padding-inline: clamp(1.35rem, 2.2vw, 2.85rem);
  }

  .lmyc-story {
    gap: clamp(1rem, 1.5vw, 1.35rem);
  }

  .lmyc-founders-origin-padding {
    padding-top: clamp(1.75rem, 2.5vw, 2.25rem);
    padding-bottom: clamp(1.5rem, 2vw, 2rem);
  }

  .lmyc-story__card,
  .lmyc-founders-origin-card {
    padding:
      clamp(1.1rem, 1.4vw, 1.45rem)
      clamp(2rem, 3.2vw, 3.75rem)
      clamp(1rem, 1.3vw, 1.25rem);
  }

  .lmyc-founders-origin-divider {
    margin: 0.45rem auto 0.7rem;
  }

  .lmyc-founders-origin-timeline {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .lmyc-founders-origin-timeline__card {
    padding: 0.55rem 0.45rem 0.65rem;
  }

  .lmyc-founders-origin-timeline__dot {
    margin-bottom: 0.55rem;
  }

  .lmyc-founders-origin-timeline__item--now .lmyc-founders-origin-timeline__dot {
    margin-bottom: 0.58rem;
  }
}

@media screen and (max-width: 767px) {
  .lmyc-story__card,
  .lmyc-founders-origin-card {
    padding: 1.65rem 1.35rem 1.75rem;
    border-radius: 1.15rem;
  }

  .lmyc-founders-origin-card__body {
    font-size: 1.32rem;
    line-height: 1.62;
  }

  .lmyc-founders-origin-divider {
    margin-bottom: 1.1rem;
  }

  .lmyc-founders-origin-timeline {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
  }

  .lmyc-founders-origin-timeline__list {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 0.35rem;
  }

  .lmyc-founders-origin-timeline__list::before {
    content: "";
    display: block;
    position: absolute;
    top: 0.55rem;
    bottom: 0.55rem;
    left: 0.58rem;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, #425936 0%, #C2B08D 50%, #D18E95 85%, #425936 100%);
  }

  .lmyc-founders-origin-timeline__item {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    padding-bottom: 1.15rem;
  }

  .lmyc-founders-origin-timeline__item:last-child {
    padding-bottom: 0;
  }

  .lmyc-founders-origin-timeline__dot {
    margin: 0.25rem 0 0;
  }

  .lmyc-founders-origin-timeline__item--now .lmyc-founders-origin-timeline__dot {
    margin-top: 0.1rem;
    margin-bottom: 0;
  }

  .lmyc-founders-origin-timeline__card {
    flex: 1;
    align-items: flex-start;
    text-align: left;
    padding: 0.85rem 1rem;
  }

  .lmyc-founders-origin-timeline__label {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lmyc-story__photo {
    transition: none;
  }

  .lmyc-story__photo:hover {
    transform: rotate(var(--lmyc-story-photo-rotate, 0deg));
  }

  .lmyc-founders-origin-timeline__item--now .lmyc-founders-origin-timeline__dot {
    animation: none;
  }

  .lmyc-founders-origin-timeline__item:hover .lmyc-founders-origin-timeline__card {
    transform: none;
  }
}
