:root {
  --stories-ink: #061f2a;
  --stories-ink-2: #0c3340;
  --stories-muted: #5f737b;
  --stories-line: #dbe5e8;
  --stories-soft: #f4f8f9;
  --stories-soft-2: #eef4f6;
  --stories-magenta: #910048;
  --stories-teal: #6cc6d0;
  --stories-gold: #d8a52d;
  --stories-shadow: 0 22px 66px rgba(6, 31, 42, .14);
  --stories-radius: 28px;
}

.student-stories-page {
  color: var(--stories-ink);
  background:
    radial-gradient(circle at 10% 4%, rgba(216, 165, 45, .13), transparent 26rem),
    radial-gradient(circle at 90% 2%, rgba(145, 0, 72, .12), transparent 26rem),
    linear-gradient(180deg, #fff 0%, #f7fbfc 42%, #fff 100%);
}

.student-videos-subnav .programme-label span {
  color: rgba(95, 115, 123, .92);
}

.stories-hero {
  position: relative;
  min-height: calc(100svh - var(--topbar, 110px));
  display: grid;
  align-items: stretch;
  overflow: hidden;
  color: #fff;
  background: var(--stories-ink);
  border-bottom: 1px solid rgba(219, 229, 232, .82);
}

.stories-hero-video,
.stories-hero-video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.025);
  background: #061f2a;
}

.stories-hero-video-fallback {
  opacity: 0;
}

.stories-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 15% 20%, rgba(216, 165, 45, .26), transparent 23rem),
    radial-gradient(circle at 88% 14%, rgba(145, 0, 72, .34), transparent 24rem),
    linear-gradient(105deg, rgba(6, 31, 42, .88) 0%, rgba(6, 31, 42, .66) 42%, rgba(6, 31, 42, .22) 100%);
}

.stories-hero::after {
  content: "";
  position: absolute;
  inset: auto -10vw -18vw 34vw;
  z-index: 1;
  height: 32vw;
  min-height: 240px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, rgba(216, 165, 45, .24), rgba(145, 0, 72, .18), rgba(108, 198, 208, .16));
  filter: blur(1px);
  pointer-events: none;
}

.stories-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.stories-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(320px, .62fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: end;
  padding: clamp(34px, 5svh, 58px) 0 clamp(42px, 7svh, 76px);
}

.stories-kicker,
.stories-section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.stories-kicker {
  color: #fff;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(12px);
}

.stories-hero h1 {
  margin: 18px 0 0;
  max-width: 900px;
  font-size: clamp(3.2rem, 8.4vw, 8.9rem);
  line-height: .91;
  letter-spacing: -.075em;
}

.stories-hero h1 span {
  color: var(--stories-gold);
}

.stories-lede {
  margin: clamp(18px, 3vw, 28px) 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(1.08rem, 1.8vw, 1.46rem);
  line-height: 1.5;
}

.stories-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.stories-actions .btn,
.stories-card-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 16px;
  text-decoration: none;
  font-weight: 900;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.stories-actions .btn:hover,
.stories-card-actions a:hover {
  transform: translateY(-2px);
}

.stories-actions .btn-primary {
  background: #fff;
  color: var(--stories-ink);
}

.stories-actions .btn-ink {
  background: var(--stories-magenta);
  color: #fff;
}

.stories-actions .btn-soft {
  background: rgba(255, 255, 255, .15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .24);
}

.stories-hero-panel {
  display: grid;
  gap: 14px;
}

.stories-hero-note {
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .20);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 58px rgba(0, 0, 0, .18);
}

.stories-hero-note strong {
  display: block;
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  line-height: 1.02;
  letter-spacing: -.05em;
}

.stories-hero-note span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, .78);
  line-height: 1.45;
}

.stories-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.stories-hero-tags span {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .20);
  color: rgba(255, 255, 255, .88);
  font-weight: 850;
  font-size: .82rem;
}

.stories-section {
  padding: clamp(38px, 5.2vw, 72px) 0;
  border-top: 1px solid rgba(219, 229, 232, .86);
}

.stories-section-head {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(280px, .56fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: end;
  margin-bottom: 28px;
}

.stories-section-kicker {
  margin-bottom: 12px;
  color: var(--stories-magenta);
  background: rgba(145, 0, 72, .07);
  border: 1px solid rgba(145, 0, 72, .12);
}

.stories-section-head h2,
.stories-cta h2 {
  margin: 0;
  font-size: clamp(2.35rem, 5.2vw, 5.8rem);
  line-height: .96;
  letter-spacing: -.06em;
}

.stories-section-head h2 span,
.stories-cta h2 span {
  color: var(--stories-magenta);
}

.stories-section-head p {
  margin: 0;
  color: var(--stories-muted);
  font-size: clamp(1rem, 1.28vw, 1.15rem);
  line-height: 1.6;
}

.stories-video-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 18px;
  align-items: stretch;
}

.stories-video-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(219, 229, 232, .92);
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--stories-shadow);
}

.stories-video-card.featured {
  grid-row: span 2;
}

.stories-video-card .dsti-video-poster {
  aspect-ratio: 16 / 9;
}

.stories-video-card.portrait-video .dsti-video-poster {
  aspect-ratio: 4 / 5;
}

.stories-video-card-body {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 2.4vw, 28px);
}

.stories-video-card-body h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2.3rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.stories-video-card-body p {
  margin: 0;
  color: var(--stories-muted);
  line-height: 1.55;
}

.stories-chip-row,
.stories-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.stories-chip-row span {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--stories-soft-2);
  color: var(--stories-ink-2);
  font-size: .8rem;
  font-weight: 850;
}

.stories-mosaic {
  display: grid;
  grid-template-columns: 1.15fr .85fr 1fr;
  grid-template-rows: 260px 230px;
  gap: 16px;
}

.stories-photo-tile {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--stories-ink);
  box-shadow: var(--stories-shadow);
  border: 1px solid rgba(219, 229, 232, .88);
}

.stories-photo-tile:nth-child(1) {
  grid-row: span 2;
}

.stories-photo-tile:nth-child(4) {
  grid-column: span 2;
}

.stories-photo-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.stories-photo-tile:hover img {
  transform: scale(1.035);
}

.stories-photo-tile figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 4px;
  color: #fff;
  z-index: 2;
}

.stories-photo-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 31, 42, .05), rgba(6, 31, 42, .72));
}

.stories-photo-tile strong {
  position: relative;
  z-index: 2;
  font-size: 1.16rem;
  letter-spacing: -.035em;
}

.stories-photo-tile span {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, .82);
  font-size: .9rem;
}

.stories-places-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.stories-place-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border-radius: 32px;
  border: 1px solid rgba(219, 229, 232, .92);
  background: var(--stories-ink);
  color: #fff;
  box-shadow: var(--stories-shadow);
}

.stories-place-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
}

.stories-place-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(216, 165, 45, .18), transparent 20rem),
    linear-gradient(180deg, rgba(6, 31, 42, .08), rgba(6, 31, 42, .82));
}

.stories-place-content {
  position: relative;
  z-index: 2;
  min-height: 430px;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: clamp(22px, 3vw, 34px);
}

.stories-place-content h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: .92;
  letter-spacing: -.065em;
}

.stories-place-content p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, .82);
  line-height: 1.5;
}

.stories-card-actions a {
  background: #fff;
  color: var(--stories-ink);
}

.stories-voices-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stories-voice-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 22px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--stories-line);
  box-shadow: 0 18px 44px rgba(6, 31, 42, .10);
  display: grid;
  align-content: space-between;
  gap: 18px;
}

.stories-voice-card::after {
  content: "";
  position: absolute;
  inset: auto -48px -68px auto;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(145, 0, 72, .07);
}

.stories-voice-card strong,
.stories-voice-card span {
  position: relative;
  z-index: 1;
  display: block;
}

.stories-voice-card strong {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.stories-voice-card span {
  color: var(--stories-muted);
  line-height: 1.45;
}

.stories-voice-card.highlight {
  background:
    radial-gradient(circle at 92% 12%, rgba(216, 165, 45, .16), transparent 20rem),
    linear-gradient(135deg, #fff, #fbfdfe);
}

.stories-cta {
  margin: clamp(28px, 4.8vw, 54px) auto clamp(54px, 8vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, .42fr);
  gap: 22px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 34px;
  border: 1px solid rgba(145, 0, 72, .16);
  background:
    radial-gradient(circle at 8% 16%, rgba(216, 165, 45, .20), transparent 24rem),
    radial-gradient(circle at 88% 12%, rgba(145, 0, 72, .16), transparent 25rem),
    linear-gradient(135deg, #fff, #f7fbfc);
  box-shadow: var(--stories-shadow);
}

.stories-cta p {
  margin: 16px 0 0;
  max-width: 780px;
  color: var(--stories-muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.stories-cta-actions {
  display: grid;
  gap: 10px;
  width: min(100%, 340px);
  justify-self: end;
  padding: 16px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .80);
  border: 1px solid rgba(219, 229, 232, .9);
}

.stories-cta-actions a {
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 900;
  text-decoration: none;
}

.stories-cta-actions a:first-child {
  background: var(--stories-ink);
  color: #fff;
}

.stories-cta-actions a:last-child {
  background: var(--stories-magenta);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .stories-hero-video {
    display: none;
  }

  .stories-hero-video-fallback {
    opacity: 1;
  }
}

@media (max-width: 1080px) {
  .stories-hero-inner,
  .stories-section-head,
  .stories-video-showcase,
  .stories-cta {
    grid-template-columns: 1fr;
  }

  .stories-cta-actions {
    justify-self: start;
    width: 100%;
  }

  .stories-hero-inner {
    align-items: end;
  }

  .stories-video-card.featured {
    grid-row: auto;
  }

  .stories-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 240px 240px 220px;
  }

  .stories-photo-tile:nth-child(1),
  .stories-photo-tile:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }

  .stories-photo-tile:nth-child(1) {
    grid-row: span 2;
  }

  .stories-voices-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .stories-shell {
    width: min(100% - 28px, 1180px);
  }

  .stories-hero {
    min-height: calc(92svh - var(--header-height, 72px));
  }

  .stories-hero-inner {
    padding: 78px 0 38px;
  }

  .stories-hero h1 {
    font-size: clamp(3rem, 17vw, 5.4rem);
  }

  .stories-places-grid,
  .stories-voices-grid,
  .stories-mosaic {
    grid-template-columns: 1fr;
  }

  .stories-mosaic {
    grid-template-rows: repeat(4, 245px);
  }

  .stories-photo-tile:nth-child(1) {
    grid-row: auto;
  }

  .stories-place-card,
  .stories-place-content {
    min-height: 360px;
  }

  .stories-voice-card.highlight {
    grid-column: auto;
  }
}


/* V88 — Student stories refinement: align hero and section spacing with lifestyle pages,
   restore shared page navigation controls, and keep local video chips compact. */
.student-stories-page .stories-hero {
  margin-top: 0;
}

.student-stories-page .stories-hero-video,
.student-stories-page .stories-hero-video-fallback {
  top: 0;
}

.student-stories-page .stories-video-card-body .stories-chip-row {
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
}

.student-stories-page .stories-video-card-body .stories-chip-row span {
  flex: 0 0 auto;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100%;
  height: auto !important;
  min-height: 0 !important;
  border-radius: 999px;
  padding: 7px 11px;
  line-height: 1;
  white-space: nowrap;
  background: rgba(145, 0, 72, .07);
  border: 1px solid rgba(145, 0, 72, .12);
  color: var(--stories-ink-2);
}

.student-stories-page .stories-voice-card.highlight {
  border-color: rgba(145, 0, 72, .22);
}

@media (max-width: 1080px) {
  .student-stories-page .stories-hero-inner {
    padding-top: clamp(30px, 5svh, 50px);
  }
}

@media (max-width: 760px) {
  .student-stories-page .stories-hero {
    min-height: calc(88svh - var(--topbar, 110px));
  }

  .student-stories-page .stories-hero-inner {
    padding: 44px 0 34px;
  }
}

/* V89 — Student stories section 01 card proportions only.
   Scoped to this page so the reusable lifestyle-video partials on Life pages stay untouched. */
.student-stories-page #watch .stories-video-showcase {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.student-stories-page #watch .stories-video-card,
.student-stories-page #watch .stories-video-card.featured,
.student-stories-page #watch .stories-video-card.portrait-video {
  grid-row: auto;
  align-self: start;
  min-height: 0;
}

.student-stories-page #watch .stories-video-card .dsti-video-poster,
.student-stories-page #watch .stories-video-card.portrait-video .dsti-video-poster {
  aspect-ratio: 16 / 9;
}

.student-stories-page #watch .stories-video-card-body {
  min-height: 0;
  align-content: start;
  gap: 12px;
}

.student-stories-page #watch .stories-video-card-body h3 {
  font-size: clamp(1.5rem, 2vw, 2.05rem);
}

@media (max-width: 860px) {
  .student-stories-page #watch .stories-video-showcase {
    grid-template-columns: 1fr;
  }
}

/* V90 — Student stories hero rim and containment refinement.
   Keep the video flush with the page menu across desktop/tablet/mobile. */
.student-stories-page {
  overflow-x: clip;
}

.student-stories-page .stories-hero {
  margin-top: -1px;
  min-height: calc(100svh - var(--topbar, 110px) + 1px);
}

.student-stories-page .stories-hero-video,
.student-stories-page .stories-hero-video-fallback {
  inset: 0;
  object-position: center top;
  transform: scale(1.035);
}

.student-stories-page .stories-hero-inner {
  padding-top: clamp(18px, 3svh, 42px);
}

@media (max-width: 760px) {
  .student-stories-page .stories-hero {
    margin-top: -1px;
    min-height: calc(88svh - var(--topbar, 110px) + 1px);
  }

  .student-stories-page .stories-hero-inner {
    padding-top: clamp(18px, 5vw, 32px);
  }
}

/* V91 — Student stories hero seam final fix.
   Force this page's video hero to occupy the very first pixel below the page menu. */
.student-stories-page .topbar + main,
.student-stories-page .topbar ~ main {
  margin-top: 0;
}

.student-stories-page main#top {
  padding-top: 0;
}

.student-stories-page main#top > .stories-hero:first-child {
  margin-top: calc(-1 * var(--hero-menu-seam-overlap, 2px));
  border-top: 0;
}

.student-stories-page main#top > .stories-hero:first-child .stories-hero-video,
.student-stories-page main#top > .stories-hero:first-child .stories-hero-video-fallback {
  top: 0;
  height: calc(100% + var(--hero-menu-seam-overlap, 2px));
}

.student-stories-page main#top > .stories-hero:first-child::before {
  top: 0;
}


/* V92 — decisive Student stories hero video seam/crop fix.
   The previous seam rules removed the section margin, but the first visible
   video frames still read as a dark gutter under the page menu. Crop the
   background video upward inside this page only, so moving image reaches the
   page-menu rim without affecting Life on the French Riviera or Life in Paris. */
.student-stories-page main#top > .stories-hero:first-child {
  --stories-hero-video-bleed: clamp(96px, 13svh, 172px);
  margin-top: calc(-1 * var(--hero-menu-seam-overlap, 2px)) !important;
  padding-top: 0 !important;
  overflow: hidden;
}

.student-stories-page main#top > .stories-hero:first-child .stories-hero-video,
.student-stories-page main#top > .stories-hero:first-child .stories-hero-video-fallback {
  top: calc(-1 * var(--stories-hero-video-bleed)) !important;
  bottom: auto !important;
  height: calc(100% + var(--stories-hero-video-bleed) + var(--hero-menu-seam-overlap, 2px)) !important;
  object-position: center 58% !important;
  transform: scale(1.18) !important;
  transform-origin: center 60% !important;
}

.student-stories-page main#top > .stories-hero:first-child::before {
  background:
    radial-gradient(circle at 15% 14%, rgba(216, 165, 45, .18), transparent 22rem),
    radial-gradient(circle at 88% 10%, rgba(145, 0, 72, .22), transparent 23rem),
    linear-gradient(105deg, rgba(6, 31, 42, .78) 0%, rgba(6, 31, 42, .50) 42%, rgba(6, 31, 42, .16) 100%),
    linear-gradient(180deg, rgba(6, 31, 42, .18) 0%, rgba(6, 31, 42, .08) 32%, rgba(6, 31, 42, .58) 100%);
}

@media (max-width: 760px) {
  .student-stories-page main#top > .stories-hero:first-child {
    --stories-hero-video-bleed: clamp(74px, 11svh, 126px);
  }

  .student-stories-page main#top > .stories-hero:first-child .stories-hero-video,
  .student-stories-page main#top > .stories-hero:first-child .stories-hero-video-fallback {
    object-position: center 56% !important;
    transform: scale(1.14) !important;
  }
}
