/* =================================================================
   THE HOUSE OF MINDS - TESTIMONIALS PAGE
   ================================================================= */

:root {
  --deep-forest: #1e2719;
  --dark-olive: #2f4637;
  --muted-sage: #a8b5a2;

  --warm-ivory: #f4e8dc;
  --soft-beige: #e8e1d6;
  --sand: #dccfbc;

  --soft-gold: #c5a76a;
  --warm-brown: #7d6654;

  --dark-charcoal: #2d2d2d;
  --muted-grey: #707070;
  --white: #ffffff;
  --font-display: "Cormorant Garamond", serif;
  --font-body: "Inter", sans-serif;
  --shadow-soft: 0 20px 50px -20px rgba(15, 35, 24, 0.35);
  --shadow-deep: 0 30px 70px -25px rgba(15, 35, 24, 0.55);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
html,
body {
    width: 100%;
    overflow-x: hidden;
}

main {
    overflow-x: hidden;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 50px;
  margin-top: 10px;
}
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 10px;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

button {
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.section-head {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto -10px;
  padding: 0 24px;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gold);
  margin: 0 0 14px;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.15;
  color: var(--deep-forest);
  margin-bottom: 3%;
}

.testimonial-section-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  /* opacity: 0.12; */
  /* transform: scale(1.04); */
}

.testimonial-section-overlay {
  position: absolute;
  inset: 0;
  /* background:
    linear-gradient(180deg, rgba(250, 247, 242, 0.92), rgba(246, 241, 235, 0.95)),
    radial-gradient(circle at top right, rgba(200, 162, 106, 0.2), transparent 45%); */
}

/* .testimonial-section-overlay--light {
  background:
    linear-gradient(180deg, rgba(246, 241, 235, 0.92), rgba(250, 247, 242, 0.96)),
    radial-gradient(circle at top left, rgba(200, 162, 106, 0.16), transparent 48%);
} */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
    150deg,
    var(--deep-green),
    var(--forest-green) 60%,
    var(--dark-green)
  );
  padding: 120px 24px 90px;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  /* opacity: 0.22; */
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* background:
    linear-gradient(180deg, rgba(15, 35, 24, 0.76), rgba(15, 35, 24, 0.72)),
    radial-gradient(circle at 30% 20%, rgba(200, 162, 106, 0.14), transparent 55%); */
}

.hero-content {
  position: relative;
  max-width: 760px;
}

.hero .eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-ivory);
  margin: 0 0 18px;
}

.hero h1 {
  color: var(--warm-ivory);
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.1;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 17px;
  line-height: 1.6;
  margin: 22px auto 0;
  max-width: 560px;
}

.hero-stats {
  position: relative;
  margin: 48px auto 0;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card {
  text-align: center;
  padding: 26px 16px;
  border-radius: var(--radius-md);
  background: #1e2719;
  border: 1px solid rgba(227, 192, 140, 0.18);
  backdrop-filter: blur(6px);
  transition:
    transform 0.5s var(--ease),
    border-color 0.5s var(--ease);
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(227, 192, 140, 0.4);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 36px);
  color: var(--warm-ivory);
  margin: 0 0 6px;
}

.stat-label {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--warm-ivory);
}

.stories-section,
.email-section {
  position: relative;
  overflow: hidden;
}

.stories-section {
  min-height: 100vh;
  min-height: 100svh;
  padding: 88px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stories-shell,
.email-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
  margin-top: 2%;
}

.stories-desktop-shell {
  display: block;
}

.stories-mobile-shell {
  display: none;
}

.carousel-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  --card-width: 520px;
  --card-gap: 10px;
}

.carousel-viewport {
  flex: 0 1 calc((var(--card-width) * 2) + var(--card-gap));
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.carousel-track {
  display: flex;
  gap: var(--card-gap);
  transition: transform 0.45s var(--ease);
  will-change: transform;
}

.carousel-arrow {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--deep-forest);
  color: var(--warm-ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  transition:
    background 0.35s var(--ease),
    transform 0.3s var(--ease);
  z-index: 2;
}

.carousel-arrow:hover {
  background: var(--deep-forest);
  transform: scale(1.06);
}

.story-card {
  flex: 0 0 var(--card-width);
  width: var(--card-width);
  background: var(--warm-ivory);
  border: 1px solid rgba(28, 58, 41, 0.08);
  border-radius: var(--radius-lg);
  padding: 1px;
  /* box-shadow: var(--shadow-soft); */
  /* backdrop-filter: blur(6px); */
  display: grid;
  grid-template-columns: minmax(190px, 28%) 1fr;
  gap: 14px;
  min-height: 240px;
}

.story-portrait {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark-green);
  box-shadow: var(--shadow-deep);
  min-height: 100%;
}

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

.story-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  /* background: linear-gradient(to top, rgba(15, 35, 24, 0.88), transparent 45%); */
}

.story-identity {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
  color: var(--soft-beige);
}

.story-name {
  font-family: var(--font-display);
  font-size: 22px;
}

.story-designation,
.story-company {
  margin-top: 4px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warm-ivory);
}

.story-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.story-body {
  flex: 1;
  padding: 20px 15px 20px;
  background: var(--deep-forest);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-kicker {
  color: var(--warm-ivory);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.story-heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  color: var(--warm-ivory);
  margin: 0 0 10px;
  line-height: 1.3;
}

.story-text {
  color: rgba(246, 241, 235, 0.82);
  font-size: 13.5px;
  line-height: 1.6;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.carousel-dots button,
.email-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(28, 58, 41, 0.25);
  transition: all 0.35s var(--ease);
}

.carousel-dots button.active {
  width: 26px;
  border-radius: 5px;
  background: var(--soft-gold);
}

.stories-mobile-viewport {
  overflow: hidden;
  width: 100%;
}

.stories-mobile-track {
  display: flex;
  gap: 22px;
  width: max-content;
  will-change: transform;
  padding-inline: 16px;
}

.story-card--mobile {
  width: min(calc(100vw - 32px), 420px);
  flex: 0 0 auto;
}

.email-section {
  min-height: auto;
  padding: 100px 24px 110px;
}

.email-viewer {
  max-width: 920px;
  margin: 0 auto;
}

.email-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(28, 58, 41, 0.08);
  overflow: hidden;
  animation: emailFadeIn 0.6s var(--ease);
  min-height: 430px;
  height: 430px;
  display: flex;
  flex-direction: column;
}

@keyframes emailFadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.email-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  border-bottom: 1px solid rgba(28, 58, 41, 0.08);
  background: var(--deep-forest);
}

.email-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--warm-ivory);
  flex-shrink: 0;
}

.email-from {
  flex: 1;
  min-width: 0;
}

.email-name {
  color: var(--soft-gold);
  font-weight: 600;
  font-size: 15px;
}

.email-role {
  color: var(--warm-ivory);
  font-size: 12.5px;
  margin-top: 2px;
}

.email-time {
  color: rgba(246, 241, 235, 0.55);
  font-size: 12.5px;
  white-space: nowrap;
}

.email-subject {
  padding: 20px 20px 0;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--deep-green);
  min-height: 64px;
  flex: 0 0 auto;
}

.email-body {
  flex: 1 1 auto;
  padding: 18px 28px 30px;
  max-height: none;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dark);
}

.email-body p {
  margin: 0 0 16px;
}
.email-body p:last-child {
  margin-bottom: 0;
}
.email-body::-webkit-scrollbar {
  width: 6px;
}
.email-body::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}

.email-nav {
  width: min(100%, 520px);
  margin: 32px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.email-nav-btn {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--deep-green);
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(28, 58, 41, 0.2);
  transition: all 0.35s var(--ease);
}

.email-nav-btn:hover {
  background: var(--deep-green);
  color: var(--soft-gold);
  border-color: var(--deep-green);
}

.email-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.email-dots button.active {
  background: var(--soft-gold);
  transform: scale(1.3);
}

.memories-wall {
  background: var(--deep-green);
  padding: 70px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.marquee-row {
  overflow: hidden;
  width: 100%;
  height: 220px;
}

.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  height: 100%;
  will-change: transform;
}

.marquee-row--left .marquee-track {
  animation: scrollLeft 40s linear infinite;
}

.marquee-row--right .marquee-track {
  animation: scrollRight 40s linear infinite;
}

@keyframes scrollLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes scrollRight {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.marquee-track img {
  height: 100%;
  width: 300px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}

@media (min-width: 1920px) {
  .hero-stats,
  .stories-shell,
  .email-shell {
    max-width: 1440px;
  }
}

@media (max-width: 1200px) {
  .hero-stats {
    max-width: 760px;
  }
  .stories-shell,
  .email-shell {
    max-width: 900px;
  }
}

@media (max-width: 1024px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .stories-section,
  .email-section {
    padding-inline: 20px;
  }
  .carousel-wrap {
    --card-width: 340px;
  }
  .story-card {
    grid-template-columns: 1fr;
  }
  .story-portrait {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
  .email-card {
    min-height: 420px;
    height: 420px;
  }
  .marquee-row {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 110px 20px 60px;
  }
  .stories-section {
    padding: 72px 0;
    min-height: auto;
    display: block;
  }
  .stories-desktop-shell {
    display: block;
  }
  .stories-mobile-shell {
    display: none;
    position: relative;
    z-index: 1;
  }
  .carousel-wrap {
    --card-width: min(420px, calc(100vw - 104px));
    --card-gap: 14px;
    gap: 12px;
    padding-inline: 10px;
  }
  .carousel-viewport {
    flex-basis: var(--card-width);
  }
  .carousel-arrow {
    width: 40px;
    height: 40px;
  }
  .carousel-dots {
    padding-inline: 16px;
  }
  .story-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .story-card--mobile {
    display: grid;
    grid-template-columns: 1fr;
    width: calc(100vw - 32px);
    max-width: 420px;
  }
  .story-card--mobile .story-portrait {
    aspect-ratio: 4 / 3;
  }
  .story-card--mobile .story-body {
    min-height: 260px;
    padding: 22px 18px 20px;
  }
  .story-card--mobile .story-heading {
    font-size: 18px;
  }
  .story-card--mobile .story-text {
    font-size: 13.5px;
  }

  .email-section {
    padding: 72px 16px 88px;
  }
  .email-card {
    min-height: 400px;
    height: 400px;
  }
  .email-topbar {
    padding: 18px 20px;
    flex-wrap: wrap;
  }
  .email-subject {
    padding: 16px 20px 0;
    font-size: 19px;
  }
  .email-body {
    padding: 14px 20px 24px;
    max-height: 260px;
  }
  .email-nav {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 4px;
  }
  .email-nav-btn {
    width: 100%;
    padding-inline: 14px;
  }
  .email-dots {
    grid-column: 1 / -1;
    order: 3;
  }

  .marquee-row {
    height: 160px;
  }
  .marquee-track img {
    width: 220px;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 32px;
    padding-inline: 4px;
  }
  .stat-card {
    padding: 22px 12px;
  }
  .stat-number {
    font-size: 26px;
  }
  .stat-label {
    font-size: 11.5px;
  }
  .section-head {
    margin-bottom: 40px;
    padding: 0 16px;
  }
  .email-card {
    min-height: 450px;
    height: 390px;
  }
  .email-time {
    display: none;
  }
  .memories-wall {
    padding: 50px 0;
    gap: 14px;
  }
  .marquee-row {
    height: 140px;
  }
  .marquee-track img {
    width: 180px;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 32px;
  }
  .stat-number {
    font-size: 22px;
  }
  .email-avatar {
    width: 40px;
    height: 40px;
  }
  .email-name {
    font-size: 14px;
  }
  .marquee-track img {
    width: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .carousel-track,
  .stories-mobile-track {
    transition: none !important;
  }
  .marquee-track {
    animation: none !important;
  }
}
.leaf-divider {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 1rem 0;
}

.leaf-divider svg {
  width: 16px;
  height: 16px;
}

.leaf-divider path:first-child {
  fill: #cbb89b;
}

.leaf-divider path:last-child {
  stroke: #b49a78;
  stroke-width: 3;
  fill: none;
}
.leaf-divider svg:nth-child(odd) {
  width: 14px;
  height: 14px;
}

.leaf-divider svg:nth-child(even) {
  width: 22px;
  height: 22px;
}

@media (max-width: 768px) {
  .leaf-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 28px;
    margin: 6px 0;
    position: relative;
    z-index: 1;
  }

  .leaf-divider svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
  }

  .leaf-divider svg:nth-child(even) {
    width: 24px;
    height: 24px;
  }

  .leaf-divider path:first-child {
    fill: var(--soft-gold);
  }

  .leaf-divider path:last-child {
    stroke: var(--warm-ivory);
  }
}
@media (max-width: 1024px) {
  .carousel-wrap {
    --card-width: calc(100vw - 120px);
  }

  .story-card {
    min-height: 400px;
  }
}
.story-portrait {
  min-height: 400px;
}
.story-body {
  padding: 40px;
}

.story-name {
  font-size: 32px;
}

.story-heading {
  font-size: 28px;
}

.story-text {
  font-size: 17px;
  line-height: 1.9;
}

.story-kicker {
  font-size: 13px;
}
.carousel-wrap {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;

  --card-width: min(1100px, calc(100vw - 180px));
  --card-gap: 0px;
}

.carousel-viewport {
  flex: 0 1 var(--card-width);
  width: var(--card-width);
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.story-card {
  flex: 0 0 var(--card-width);
  width: var(--card-width);

  background: var(--soft-gold);
  border: 1px solid rgba(28, 58, 41, 0.08);
  border-radius: var(--radius-lg);

  /* padding: 16px; */
  min-height: 430px;

  display: block;
  margin-top: 2%;
}
.story-meta {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(244, 232, 220, 0.15);
}

.story-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--warm-ivory);
  line-height: 1.1;
}

.story-designation {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--soft-gold);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-company {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(244, 232, 220, 0.7);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .carousel-wrap {
    width: 100%;
    max-width: 100%;
    gap: 14px;
    --card-width: min(720px, calc(100vw - 128px));
  }

  .carousel-viewport {
    min-width: 0;
  }

.story-card {
    min-height: 360px;
  }

  .story-portrait {
    min-height: 0;
  }

  .story-body {
    padding: 28px;
  }

  .story-name {
    font-size: 26px;
  }

  .story-heading {
    font-size: 22px;
  }

  .story-text {
    font-size: 15px;
    line-height: 1.7;
  }
}

@media (max-width: 768px) {
  .stories-mobile-viewport {
    max-width: 100vw;
    margin-top: 10%;
  }

  .stories-mobile-track {
    gap: 16px;
    padding-inline: 16px;
  }

.story-card--mobile {
    width: min(calc(100vw - 32px), 420px);
    max-width: calc(100vw - 32px);
    min-height: 0;
    margin-top: 0;
  }

  .story-card--mobile .story-portrait {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .story-card--mobile .story-body {
    padding: 22px 18px 20px;
    min-height: auto;
  }

  .story-card--mobile .story-name {
    font-size: 24px;
  }
}

@media (max-width: 420px) {
  .stories-mobile-track {
    gap: 12px;
    padding-inline: 12px;
  }

  .story-card--mobile {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }
}

@media (max-width: 768px) {
  .stories-section {
    padding: 0 0 32px;
    min-height: auto;
  }

  .stories-shell {
    margin-top: 0;
  }

  .stories-section .section-head {
    padding-top: 28px;
    margin-bottom: 14px;
  }

  .stories-section .section-head h2 {
    font-size: clamp(1.65rem, 8vw, 2.1rem);
    line-height: 1.08;
  }

  .story-card--mobile {
    width: min(calc(100vw - 72px), 320px);
    max-width: calc(100vw - 72px);
    padding: 8px;
    gap: 8px;
    border-radius: 18px;
    min-height: 400px;
  }

  .story-card--mobile .story-portrait {
    aspect-ratio: 4 /4 ;
    border-radius: 14px;
  }

  .story-card--mobile .story-portrait img {
    object-position: center top;
  }

  .story-card--mobile .story-body {
    padding: 14px;
    border-radius: 14px;
    gap: 8px;
  }

  .story-card--mobile .story-meta {
    margin-bottom: 8px;
    padding-bottom: 8px;
  }

  .story-card--mobile .story-name {
    font-size: 19px;
  }

  .story-card--mobile .story-designation,
  .story-card--mobile .story-company {
    font-size: 9.5px;
    line-height: 1.25;
  }

  .story-card--mobile .story-kicker {
    font-size: 9.5px;
    margin-bottom: 6px;
    letter-spacing: 0.12em;
  }

  .story-card--mobile .story-heading {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .story-card--mobile .story-text {
    font-size: 11.5px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 420px) {
  .stories-section {
    padding: 0 0 28px;
    min-height: auto;
  }

  .story-card--mobile {
    width: min(calc(100vw - 56px), 300px);
    max-width: calc(100vw - 56px);
    min-height: 400px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .stories-section {
    padding: 72px 20px;
  }

  .stories-shell {
    max-width: 920px;
    margin-top: 2%;
  }

  .carousel-wrap {
    gap: 12px;
    --card-width: min(820px, calc(100vw - 152px));
  }

  .carousel-arrow {
    width: 44px;
    height: 44px;
  }

  .story-card {
    min-height: 390px;
    padding: 14px;
  }

  .story-portrait {
    min-height: 100%;
    width: 100%;
    max-width: 100%;
  }

  .story-body {
    padding: 24px;
  }

  .story-name {
    font-size: 24px;
  }

  .story-heading {
    font-size: 20px;
  }

  .story-text {
    font-size: 14.5px;
    line-height: 1.65;
  }
}

@media (min-width: 1025px) and (max-width: 1180px) {
  .carousel-wrap {
    --card-width: min(920px, calc(100vw - 176px));
  }

  .story-card {
    min-height: 390px;
  }

  .story-portrait {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .story-body {
    padding: 28px;
  }
}

.story-card,
.story-card--mobile {
  display: block;
  grid-template-columns: none;
}

.story-card .story-content,
.story-card--mobile .story-content {
  /* height: 100%; */
}

.story-card .story-body,
.story-card--mobile .story-body {
  min-height: 100%;
}

/* ===================================================================
   FIX: fixed-size testimonial cards (desktop button carousel) +
   mobile auto-scrolling / touch-scrolling carousel
   ================================================================= */

/* Cards keep a constant footprint no matter how long the quote is;
   overflowing text scrolls inside the card instead of stretching it. */
.story-card {
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
}

.story-card .story-content {
  height: 100%;
  min-height: 0;
}

.story-card .story-body {
  flex: 1;
  min-height: 0;
  justify-content: flex-start !important;
  overflow: hidden;
}

.story-card .story-text {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 10px;
}

.story-card .story-text::-webkit-scrollbar {
  width: 4px;
}
.story-card .story-text::-webkit-scrollbar-thumb {
  background: rgba(244, 232, 220, 0.35);
  border-radius: 4px;
}

@media (min-width: 1025px) {
  .story-card {
    height: 420px !important;
    min-height: 0 !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .story-card {
    height: 380px !important;
    min-height: 0 !important;
  }
}

@media (max-width: 768px) {
  .story-card {
    height: 340px !important;
    min-height: 0 !important;
  }
}

/* Mobile: show the auto-scrolling / touch-scrolling track instead of
   the button carousel; no arrow buttons on mobile. */
@media (max-width: 768px) {
  .stories-desktop-shell {
    display: none !important;
  }

  .stories-mobile-shell {
    display: block !important;
  }

  .stories-mobile-viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    touch-action: pan-x;
  }

  .stories-mobile-viewport::-webkit-scrollbar {
    display: none;
  }

  .stories-mobile-viewport.is-dragging {
    cursor: grabbing;
    user-select: none;
  }

  .story-card--mobile {
    display: flex !important;
    flex-direction: column;
    height: 340px;
    overflow: hidden;
  }

  .story-card--mobile .story-content {
    height: 100%;
    min-height: 0;
  }

  .story-card--mobile .story-body {
    flex: 1;
    min-height: 0;
    justify-content: flex-start !important;
    overflow: hidden;
  }

  .story-card--mobile .story-text {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }
}
