/* ==========================================================================
   Berry International College — immersive home (v6)
   Loaded after style.css on index.html only.
   --------------------------------------------------------------------------
    1. Tokens & dark header      5. Journey (pinned scroll story)
    2. 3D hero stage
    3. Ticker                    7. Course card video preview
    4. Expanding world film      8. Reduced motion & responsive
   ========================================================================== */

/* 1. Tokens & dark header ------------------------------------------------- */
.page-immersive {
  --ink: #050B1A;
  --ink-2: #0A1530;
  --gold: #D9A866;
  --gold-deep: #B07A40;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-line: rgba(255, 255, 255, 0.12);
}
/* On the home page the header stays dark glass after scrolling so it sits well over the dark scenes */
.page-immersive .site-header.is-scrolled { background: rgba(5, 11, 26, 0.72); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08); }
@supports (backdrop-filter: blur(8px)) { .page-immersive .site-header.is-scrolled { background: rgba(5, 11, 26, 0.6); backdrop-filter: saturate(1.3) blur(18px); } }
.page-immersive .site-header.is-scrolled .brand__light { opacity: 1; }
.page-immersive .site-header.is-scrolled .brand__dark { opacity: 0; }
.page-immersive .site-header.is-scrolled .brand__name { color: var(--white); }
.page-immersive .site-header.is-scrolled .brand__place { color: var(--on-navy-muted); }
.page-immersive .site-header.is-scrolled .nav__link { color: var(--on-navy); }
.page-immersive .site-header.is-scrolled .nav__link:hover,
.page-immersive .site-header.is-scrolled .nav__link[aria-current="page"] { color: var(--white); }
.page-immersive .site-header.is-scrolled .nav__link::after { background: var(--berry-light); }
.page-immersive .site-header.is-scrolled .nav__toggle { color: var(--on-navy-muted); }
.page-immersive .site-header.is-scrolled .burger { border-color: rgba(255, 255, 255, 0.3); color: var(--white); }
/* backdrop-filter would trap the fixed slide-in menu inside the header on small screens */
@media (max-width: 1120px) { .page-immersive .site-header.is-scrolled { background: rgba(5, 11, 26, 0.96); backdrop-filter: none; -webkit-backdrop-filter: none; } }

.x-clip { opacity: 0; transition: opacity 0.9s var(--ease); }
.x-clip.is-playing { opacity: 1; }

/* 2. 3D hero stage ---------------------------------------------------------- */
.hero--3d { align-items: center; min-height: max(640px, min(100svh, 980px)); padding-bottom: var(--sp-9); background: var(--ink); }
.hero3d__bg { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero3d__glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; }
.hero3d__glow--a { width: 60vw; height: 60vw; right: -12vw; top: -18vw; background: radial-gradient(circle, rgba(46, 84, 180, 0.65), rgba(46, 84, 180, 0) 70%); animation: drift 18s ease-in-out infinite alternate; }
.hero3d__glow--b { width: 42vw; height: 42vw; left: 30vw; bottom: -22vw; background: radial-gradient(circle, rgba(58, 107, 176, 0.55), rgba(58, 107, 176, 0) 70%); animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate3d(-6vw, 4vw, 0) scale(1.12); } }
.hero3d__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(80% 70% at 70% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(80% 70% at 70% 40%, #000 20%, transparent 75%); }

.hero3d__stage-wrap { position: absolute; z-index: -2; top: var(--header-h); bottom: 0; right: -6vw; width: min(58vw, 1000px); perspective: 1700px; perspective-origin: 30% 40%; overflow: hidden;
  -webkit-mask-image: radial-gradient(120% 90% at 75% 50%, #000 45%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 75% 50%, #000 45%, transparent 78%); }
.hero--3d::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 11, 26, 0.92) 0%, rgba(5, 11, 26, 0.75) 36%, rgba(5, 11, 26, 0) 60%), linear-gradient(0deg, rgba(5, 11, 26, 0.9) 0%, rgba(5, 11, 26, 0) 22%); }
.hero3d__stage { --rx: 0deg; --ry: 0deg; position: absolute; inset: -18% -6% -18% 6%; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.4vw, 24px);
  transform: rotateX(calc(16deg + var(--rx))) rotateY(calc(-24deg + var(--ry))) rotateZ(8deg) translateZ(0);
  transform-style: preserve-3d; transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hero3d__col { position: relative; overflow: visible; transform-style: preserve-3d; }
.hero3d__col:nth-child(2) { transform: translateZ(60px); }
.hero3d__col:nth-child(3) { transform: translateZ(120px); }
.hero3d__track { display: grid; gap: clamp(14px, 1.4vw, 24px); animation: col-up 38s linear infinite; will-change: transform; }
.hero3d__col[data-dir="down"] .hero3d__track { animation-name: col-down; animation-duration: 44s; }
.hero3d__col:nth-child(3) .hero3d__track { animation-duration: 50s; }
@keyframes col-up { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -50%, 0); } }
@keyframes col-down { from { transform: translate3d(0, -50%, 0); } to { transform: translate3d(0, 0, 0); } }
.h3card { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: var(--ink-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08) inset; }
.h3card--video { aspect-ratio: 4 / 4.6; }
.h3card img, .h3card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h3card img { filter: saturate(0.9) brightness(0.86); }
.h3card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 11, 26, 0) 50%, rgba(5, 11, 26, 0.85) 100%); pointer-events: none; }
.h3card figcaption { position: absolute; left: 16px; bottom: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; color: var(--white); }
.h3card__dot, .pulse-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(217, 168, 102, 0.7); animation: pulse 2s infinite; }
.pulse-dot { margin-right: 10px; vertical-align: middle; background: var(--berry-light); box-shadow: 0 0 0 0 rgba(141, 185, 234, 0.7); }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(217, 168, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 168, 102, 0); } }

.hero3d__inner { position: relative; width: 100%; }
.hero3d__content { max-width: 640px; }
.hero3d__title { font-size: clamp(3rem, 1.6rem + 5.4vw, 6.6rem); line-height: 0.95; letter-spacing: -0.035em; text-wrap: balance; }
.hero3d__title .line { display: inline-block; }
.hero3d__title em { background: linear-gradient(100deg, #A9CBF0 0%, var(--gold) 55%, #A9CBF0 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; padding-right: 0.06em; }
@keyframes shine { to { background-position: -200% 0; } }
.hero--3d .hero__lede { max-width: 46ch; text-shadow: 0 2px 20px rgba(5, 11, 26, 0.8); }
.btn--glow { position: relative; box-shadow: 0 0 0 0 rgba(58, 107, 176, 0.6), 0 18px 40px -14px rgba(58, 107, 176, 0.9); }
.btn--glow::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; background: conic-gradient(from var(--a, 0deg), transparent 0 70%, var(--gold) 80%, transparent 90%); z-index: -1; animation: spin-a 3.5s linear infinite; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin-a { to { --a: 360deg; } }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(255, 255, 255, 0.45); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--white); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* Finder sits on the dark band under the hero */
.page-immersive .finder-wrap { background: var(--ink); }

/* 3. Ticker ------------------------------------------------------------------ */
.ticker { overflow: hidden; background: var(--ink); border-block: 1px solid rgba(255, 255, 255, 0.08); padding: var(--sp-5) 0; }
.ticker__track { display: flex; align-items: center; gap: var(--sp-6); width: max-content; animation: tick 40s linear infinite; }
.ticker span { font-family: var(--font-serif); font-size: clamp(1.1rem, 0.9rem + 0.9vw, 1.7rem); color: rgba(255, 255, 255, 0.82); white-space: nowrap; }
.ticker i { width: 9px; height: 9px; transform: rotate(45deg); background: var(--berry-light); flex: none; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* 4. Expanding world film ---------------------------------------------------- */
.xpand { --p: 0; position: relative; height: 260vh; background: var(--ink); color: var(--white); }
.xpand__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.xpand__head { position: absolute; top: calc(var(--header-h) + 3vh); left: 0; right: 0; text-align: center; opacity: calc(1 - var(--p) * 1.8); z-index: 2; pointer-events: none; }
.xpand__head .eyebrow { color: var(--gold); }
.xpand__title { font-size: clamp(2.2rem, 1.2rem + 4vw, 5.2rem); line-height: 1; letter-spacing: -0.03em; color: var(--white); font-weight: 400; }
.xpand__title span { display: inline-block; transition: none; }
.xpand__title [data-xpand-left] { transform: translateX(calc(var(--p) * -30vw)); }
.xpand__title [data-xpand-right] { transform: translateX(calc(var(--p) * 30vw)); }
.xpand__title em { color: var(--gold); }
.xpand__card { position: relative; width: calc(58vw + var(--p) * 42vw); height: calc(52vh + var(--p) * 48vh); margin-top: calc((1 - var(--p)) * 14vh); border-radius: calc(28px * (1 - var(--p))); overflow: hidden; background: #040a18;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 120px -30px rgba(70, 110, 230, 0.55); will-change: width, height; }
.xpand__card img, .xpand__card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.18 - var(--p) * 0.18)); }
.xpand__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 11, 26, calc(var(--p) * 0.85)) 0%, rgba(5, 11, 26, 0) 60%); }
.xpand__caption { position: absolute; left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); bottom: 12vh; max-width: 520px; opacity: clamp(0, calc((var(--p) - 0.7) * 4), 1); transform: translateY(calc((1 - clamp(0, (var(--p) - 0.7) * 4, 1)) * 30px)); }
.xpand__caption .eyebrow { color: var(--gold); }
.xpand__big { font-family: var(--font-serif); font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.4rem); line-height: 1.2; color: var(--white); margin-bottom: var(--sp-5); }
.xpand__chip { position: absolute; right: 18px; top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: 0.75rem; font-weight: 600; color: var(--white); background: rgba(5, 11, 26, 0.55); border: 1px solid var(--glass-line); border-radius: 999px; backdrop-filter: blur(8px); opacity: calc(1 - var(--p)); }

/* 5. Journey — pinned scroll story ----------------------------------------- */
.journey { --steps: 5; position: relative; height: calc(var(--steps) * 85vh + 100vh); background: var(--ink); color: var(--on-navy); }
.journey__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.journey__media { position: absolute; inset: 0; }
.journey__clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1s var(--ease), transform 6s linear; }
.journey__clip.is-active { opacity: 1; transform: scale(1); }
.journey__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 11, 26, 0.94) 0%, rgba(5, 11, 26, 0.72) 38%, rgba(5, 11, 26, 0.12) 75%), linear-gradient(0deg, rgba(5, 11, 26, 0.8), rgba(5, 11, 26, 0) 40%); }
.journey__inner { position: relative; height: 100%; display: grid; grid-template-columns: minmax(0, 560px) 1fr auto; grid-template-rows: auto 1fr; gap: var(--sp-5) var(--sp-7); padding-top: calc(var(--header-h) + 5vh); padding-bottom: 8vh; }
.journey__head { grid-column: 1 / 3; }
.journey__head .eyebrow { color: var(--gold); }
.journey__head h2 { color: var(--white); font-size: clamp(2rem, 1.3rem + 2.6vw, 3.7rem); line-height: 1.05; letter-spacing: -0.025em; max-width: 16ch; }
.journey__head h2 em { color: var(--gold); }
.journey__steps { list-style: none; position: relative; grid-column: 1; align-self: end; min-height: 260px; }
.journey__step { position: absolute; inset: auto 0 0 0; opacity: 0; transform: translateY(40px); filter: blur(6px); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease), filter 0.6s; pointer-events: none; }
.journey__step.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.journey__step.is-past { transform: translateY(-40px); }
.journey__num { display: inline-block; margin-bottom: var(--sp-3); padding: 5px 12px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(217, 168, 102, 0.4); border-radius: 999px; }
.journey__step h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem); color: var(--white); margin-bottom: var(--sp-3); }
.journey__step p { font-size: var(--fs-md); line-height: 1.6; max-width: 46ch; margin-bottom: var(--sp-5); }
.journey .link-arrow { color: var(--white); border-color: var(--gold); }
.journey .link-arrow svg { color: var(--gold); }
.journey__rail { grid-column: 3; grid-row: 1 / 3; align-self: center; display: grid; gap: var(--sp-2); }
.journey__rail button { display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-3); min-height: 44px; padding: 0; font: 600 0.85rem var(--font-sans); color: rgba(255, 255, 255, 0.5); background: none; border: 0; cursor: pointer; transition: color 0.3s; }
.journey__rail button::after { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; transition: width 0.4s var(--ease), background-color 0.3s; }
.journey__rail button:hover { color: var(--white); }
.journey__rail button[aria-current] { color: var(--white); }
.journey__rail button[aria-current]::after { width: 54px; background: var(--gold); }
.journey__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.08); }
.journey__bar span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--berry), var(--gold)); }

/* 7. Course card video preview -------------------------------------------- */
.course-card__media .x-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.course-card__media .course-card__code { z-index: 2; }
.course-card__peek { position: absolute; z-index: 2; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font-size: 0.72rem; font-weight: 600; color: var(--white); background: rgba(5, 11, 26, 0.6); border-radius: 999px; backdrop-filter: blur(6px); transition: opacity 0.3s; }
.course-card__peek svg { width: 12px; height: 12px; }
.course-card:hover .course-card__peek, .course-card:focus-within .course-card__peek { opacity: 0; }

/* 8. Reduced motion & responsive ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero3d__track, .ticker__track, .hero3d__glow, .btn--glow::before, .hero3d__title em, .h3card__dot, .pulse-dot, .scroll-cue span { animation: none !important; }
  .xpand { height: auto; --p: 1; }
  .xpand__sticky { position: relative; height: auto; min-height: 80vh; padding: var(--sp-9) 0; }
  .xpand__head { position: relative; top: 0; opacity: 1; margin-bottom: var(--sp-6); }
  .xpand__title span { transform: none !important; }
  .xpand__card { width: min(1240px, 92vw); height: 60vh; margin: 0 auto; border-radius: 20px; }
  .journey { height: auto; }
  .journey__sticky { position: relative; height: auto; }
  .journey__media { position: absolute; }
  .journey__inner { height: auto; padding-block: var(--sp-9); }
  .journey__steps { display: grid; gap: var(--sp-6); min-height: 0; }
  .journey__step { position: relative; opacity: 1; transform: none; filter: none; pointer-events: auto; }
  .journey__rail, .journey__bar { display: none; }
}

@media (max-width: 1024px) {
  .hero3d__stage-wrap { width: 100vw; right: -30vw; opacity: 0.55; }
  .journey__inner { grid-template-columns: 1fr auto; }
  .journey__head { grid-column: 1 / 2; }
  .journey__rail { grid-column: 2; }
}
@media (max-width: 767px) {
  .hero--3d { min-height: auto; padding-top: calc(var(--header-h) + var(--sp-7)); padding-bottom: var(--sp-9); }
  .hero3d__stage-wrap { right: -48vw; width: 130vw; opacity: 0.38; }
  .hero3d__title { font-size: clamp(2.6rem, 11vw, 3.6rem); }
  .hero__film { margin-left: 0; }
  .scroll-cue { display: none; }
  .xpand { height: 200vh; }
  .xpand__card { width: calc(86vw + var(--p) * 14vw); height: calc(46vh + var(--p) * 54vh); }
  .xpand__title [data-xpand-left] { transform: translateX(calc(var(--p) * -60vw)); }
  .xpand__title [data-xpand-right] { transform: translateX(calc(var(--p) * 60vw)); }
  .xpand__caption { right: var(--gutter); bottom: 9vh; }
  .xpand__shade { background: linear-gradient(0deg, rgba(5, 11, 26, calc(var(--p) * 0.9)) 0%, rgba(5, 11, 26, 0) 70%); }
  .journey { height: calc(var(--steps) * 75vh + 100vh); }
  .journey__inner { grid-template-columns: 1fr; padding-top: calc(var(--header-h) + 2vh); padding-bottom: 7vh; }
  .journey__rail { display: none; }
  .journey__shade { background: linear-gradient(0deg, rgba(5, 11, 26, 0.96) 0%, rgba(5, 11, 26, 0.7) 55%, rgba(5, 11, 26, 0.35) 100%); }
  .journey__steps { min-height: 300px; }
}

/* ==========================================================================
   v6.1 — Meet Berry film, and the immersive theme on every page
   ========================================================================== */

/* 9. Meet Berry — self-playing explainer film ----------------------------- */
.meet { position: relative; padding: var(--section-y) 0; background: radial-gradient(70% 60% at 50% 0%, #11265a 0%, var(--ink) 65%); color: var(--on-navy); overflow: hidden; }
.meet::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(60% 50% at 50% 40%, #000, transparent 75%); mask-image: radial-gradient(60% 50% at 50% 40%, #000, transparent 75%); pointer-events: none; }
.meet .container { position: relative; }
.meet__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: var(--sp-6) var(--split-gap); align-items: end; margin-bottom: var(--head-gap); }
.meet .eyebrow { color: var(--gold); }
.meet h2 { color: var(--white); max-width: 18ch; }
.meet h2 em { color: var(--gold); }
.meet__intro { font-size: var(--fs-md); line-height: 1.6; color: var(--on-navy); }
.meet__frame { --rx: 0deg; --ry: 0deg; position: relative; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; background: #050b1a;
  transform: perspective(1800px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 50px 120px -40px rgba(70, 110, 230, 0.6), 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.meet__frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 30%); }
.meet__poster, .meet__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.meet__video { opacity: 0; transition: opacity 0.8s var(--ease); }
.meet__video.is-playing { opacity: 1; }
.meet__now { position: absolute; left: 18px; top: 16px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; font-size: 0.8rem; font-weight: 600; color: var(--white); background: rgba(5, 11, 26, 0.6); border: 1px solid var(--glass-line); border-radius: 999px; backdrop-filter: blur(8px); }
.meet__chapters { display: grid; grid-template-columns: 6fr 7fr 9fr 8fr 7fr 8fr 7fr; gap: 6px; margin-top: var(--sp-5); }
.meet__chapters button { display: grid; gap: 10px; padding: 8px 0; text-align: left; font: 600 0.85rem var(--font-sans); color: var(--on-navy-muted); background: none; border: 0; cursor: pointer; transition: color 0.25s; }
.meet__chapters button:hover, .meet__chapters button[aria-current] { color: var(--white); }
.meet__bar { position: relative; display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.meet__bar span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--f, 0)); background: linear-gradient(90deg, var(--berry), var(--gold)); }
.meet__chapters button:hover .meet__bar { background: rgba(255, 255, 255, 0.28); }
.meet__foot { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-5); }
.meet__link { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 20px; font-weight: 600; color: var(--white); text-decoration: none; background: var(--berry); border-radius: 999px; box-shadow: 0 14px 30px -14px rgba(58, 107, 176, 0.9); transition: background-color 0.2s, transform 0.25s var(--ease); }
.meet__link:hover { background: var(--berry-dark); transform: translateY(-2px); }
.meet__link svg { width: 18px; height: 18px; }
.meet__link.is-swapping span { animation: swap 0.5s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.meet__transcript { max-width: 640px; color: var(--on-navy); }
.meet__transcript summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-weight: 600; color: var(--on-navy); }
.meet__transcript summary:hover { color: var(--white); }
.meet__transcript ol { margin: var(--sp-2) 0 0 1.2em; display: grid; gap: var(--sp-2); font-size: var(--fs-sm); line-height: 1.55; }
.meet__transcript strong { color: var(--white); }

/* 10. Inner pages — 3D hero ---------------------------------------------- */
.page-inner .site-header:not(.is-scrolled) { background: var(--ink); }
.page-immersive .page-hero { background: var(--ink); }
.page-immersive .page-hero::before { display: none; }
.page-immersive .page-hero .eyebrow { color: var(--gold); }
.page-immersive .page-hero h1 em { color: var(--gold); }
.page-hero--3d { padding: var(--sp-6) 0 var(--sp-9); min-height: 560px; }
.page-hero--3d h1 { font-size: clamp(2.5rem, 1.6rem + 3.2vw, 4.6rem); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
.page-hero .hero3d__bg { z-index: -2; }
.page-hero--3d .page-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); }
.page-hero--video .hero3d__bg { z-index: -1; opacity: 0.6; }

.stack3d { --rx: 0deg; --ry: 0deg; position: relative; aspect-ratio: 1 / 1.05; width: 100%; max-width: 460px; justify-self: end; perspective: 1400px; }
.stack3d__inner { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(calc(8deg + var(--rx))) rotateY(calc(-16deg + var(--ry))); transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.stack3d__card { position: absolute; margin: 0; border-radius: 22px; overflow: hidden; background: var(--ink-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.12); }
.stack3d__card img, .stack3d__card video, .stack3d__card picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stack3d__card--main { left: 4%; top: 6%; width: 66%; height: 74%; transform: translateZ(40px); }
.stack3d__card--video { right: 0; bottom: 0; width: 58%; height: 46%; transform: translateZ(110px); }
.stack3d__card--back { right: 2%; top: 0; width: 44%; height: 40%; transform: translateZ(-60px); opacity: 0.75; }
.stack3d__card--video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5, 11, 26, 0.85)); }
.stack3d__card figcaption { position: absolute; left: 14px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 600; color: var(--white); }
.js .stack3d__card { animation: card-in 1.1s var(--ease) both; }
.js .stack3d__card--back { animation-delay: 0.1s; }
.js .stack3d__card--main { animation-delay: 0.25s; }
.js .stack3d__card--video { animation-delay: 0.45s; }
@keyframes card-in { from { opacity: 0; translate: 0 40px; } }
.stack3d__card--video { animation-name: card-in, bob; animation-duration: 1.1s, 6s; animation-delay: 0.45s, 1.6s; animation-iteration-count: 1, infinite; animation-direction: normal, alternate; animation-timing-function: var(--ease), ease-in-out; }
@keyframes bob { to { translate: 0 -12px; } }

/* 11. Inner pages — dark bands and closing banner --------------------------- */
.page-immersive .section--navy { background: radial-gradient(70% 90% at 90% 0%, #14295c 0%, var(--ink) 60%); }
.cta-band--immersive { background: transparent; }
.cta-band--immersive .cta { background: var(--ink); min-height: 320px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 100px -40px rgba(70, 110, 230, 0.55); }
.cta-band--immersive .cta::before, .cta-band--immersive .cta::after { display: none; }
.cta__video { position: absolute; z-index: -1; top: 0; right: 0; width: 70%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
.cta__poster { position: absolute; z-index: -2; top: 0; right: 0; width: 70%; height: 100%; object-fit: cover; opacity: 0.6; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
.cta-band--immersive .cta h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); }
.cta-band--immersive .cta h2 em { color: var(--gold); }
.cta-band--immersive .eyebrow { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .stack3d__card, .stack3d__card--video { animation: none !important; }
}
@media (max-width: 1024px) {
  .meet__head { grid-template-columns: 1fr; }
  .page-hero--3d .page-hero__grid { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 860px) {
  .page-hero--3d .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero .stack3d { display: block; max-width: 420px; justify-self: center; margin-top: var(--sp-5); }
  .page-hero--3d { min-height: 0; }
  .cta__video, .cta__poster { width: 100%; opacity: 0.35; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 767px) {
  .meet__frame { border-radius: 16px; }
  .meet__chapters { grid-template-columns: repeat(7, minmax(64px, 1fr)); overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .meet__chapters button { font-size: 0.75rem; }
  .meet__now { font-size: 0.72rem; left: 10px; top: 10px; }
  .page-hero .stack3d { max-width: 340px; }
}

/* fixes v6.1 */
.page-inner .ticker + .quick-facts { margin-top: 0; padding-top: var(--sp-6); }
.page-immersive .site-header.is-scrolled { background: rgba(5, 11, 26, 0.86); }
@supports (backdrop-filter: blur(8px)) { .page-immersive .site-header.is-scrolled { background: rgba(5, 11, 26, 0.8); } }
@media (max-width: 1120px) { .page-immersive .site-header.is-scrolled { background: rgba(5, 11, 26, 0.96); } }
.cta-band--immersive .cta__video, .cta-band--immersive .cta__poster { width: 56%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%); }
@media (max-width: 860px) { .cta-band--immersive .cta__video, .cta-band--immersive .cta__poster { width: 100%; -webkit-mask-image: none; mask-image: none; opacity: 0.3; } }

/* ==========================================================================
   v7 — Berry brand (logo colours), premium polish
   ========================================================================== */
.page-immersive { --gold: #D9A866; --gold-deep: #B07A40; --sky: #8DB9EA; --royal: #3A6BB0; }
.brand__mark { width: 60px; height: 45px; }
.footer__logo { display: inline-block; margin-bottom: var(--sp-5); }
.footer__logo img { width: 190px; height: auto; display: block; }
@media (max-width: 1240px) { .brand__mark { width: 52px; height: 39px; } }

/* 12. Premium polish: calmer motion, hairlines, grain, warm light sections ---- */
.hero3d__glow { animation: none !important; }
.hero3d__track { animation-duration: 80s; }
.hero3d__col[data-dir="down"] .hero3d__track { animation-duration: 92s; }
.hero3d__col:nth-child(3) .hero3d__track { animation-duration: 104s; }
.ticker__track { animation-duration: 80s; }
.stack3d__card--video { animation: card-in 1.1s var(--ease) 0.45s both !important; }
.btn--glow::before { display: none; }
.btn--glow { box-shadow: 0 18px 40px -16px rgba(58, 107, 176, 0.9); }
.hero3d__title em { background: linear-gradient(100deg, #A9CBF0 0%, #D9A866 100%); -webkit-background-clip: text; background-clip: text; color: transparent; animation: none; }
/* thin bronze hairline under every dark band */
.hero--3d, .page-hero, .ticker, .xpand, .journey, .meet, .section--navy, .explore3d {
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(217, 168, 102, 0.55), transparent) 1;
}
/* film grain over the whole page, very subtle */
.page-immersive::after { content: ""; position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.cta-band, .cta-band--mist { background: transparent; }
.page-immersive .section--mist { background: linear-gradient(180deg, var(--mist) 0%, var(--paper) 100%); }
/* light section that follows a dark band starts with a soft shadow of it */
.page-immersive :is(.ticker, .xpand, .journey, .meet, .section--navy, .explore3d) + .section { box-shadow: inset 0 24px 40px -36px rgba(7, 20, 48, 0.35); }

/* page transitions between pages (browsers that support it) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.28s ease both; }
::view-transition-new(root) { animation: vt-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* headline word reveal */
.words .w { display: inline-block; opacity: 0; transform: translateY(0.45em); filter: blur(6px); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease), filter 0.7s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.words.is-in .w { opacity: 1; transform: none; filter: none; }
.btn { transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.3s var(--ease), transform 0.25s var(--ease), translate 0.35s var(--ease); }

/* 13. Course match quiz -------------------------------------------------------- */
.quiz-sec { padding: var(--section-y) 0; }
.quiz { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--split-gap); align-items: center; padding: clamp(28px, 2rem + 2vw, 64px); border-radius: 28px;
  background: radial-gradient(90% 120% at 100% 0%, #E9F1FA 0%, var(--white) 55%); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.quiz h2 em { color: var(--bronze); }
.quiz__intro > p:not(.eyebrow) { color: var(--muted); font-size: var(--fs-md); }
.quiz__dots { display: flex; gap: 8px; list-style: none; margin-top: var(--sp-5); }
.quiz__dots li { width: 34px; height: 5px; border-radius: 5px; background: var(--line); transition: background-color 0.4s; }
.quiz__dots li.is-on { background: var(--berry); }
.quiz__stage { position: relative; min-height: 320px; }
.quiz__q { border: 0; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.quiz__q.is-active { animation: q-in 0.5s var(--ease) both; }
@keyframes q-in { from { opacity: 0; transform: translateX(24px); } }
.quiz__q legend { display: block; margin-bottom: var(--sp-4); font-family: var(--font-serif); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); color: var(--navy); }
.quiz__q legend span { display: block; margin-bottom: 6px; font: 700 0.75rem var(--font-sans); letter-spacing: 0.14em; color: var(--bronze-text); }
.quiz__q button { display: grid; gap: 2px; width: 100%; padding: 16px 20px; text-align: left; font: inherit; color: var(--navy); background: var(--white); border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s var(--ease), background-color 0.2s; }
.quiz__q button b { font-weight: 650; }
.quiz__q button small { color: var(--muted); font-size: var(--fs-sm); }
.quiz__q button:hover { border-color: var(--berry); transform: translateX(4px); box-shadow: 0 12px 30px -18px rgba(58, 107, 176, 0.7); }
.quiz__q button.is-picked { background: var(--berry); border-color: var(--berry); color: var(--white); }
.quiz__q button.is-picked small { color: rgba(255, 255, 255, 0.8); }
.quiz__result.is-in { animation: q-in 0.6s var(--ease) both; }
.quiz__match { font: 700 0.75rem var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze-text); margin-bottom: var(--sp-2); }
.quiz__result h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); color: var(--navy); margin-bottom: var(--sp-2); outline: none; }
.quiz__code { font-weight: 600; color: var(--berry); margin-bottom: var(--sp-3); }
.quiz__result > p:not(.quiz__match):not(.quiz__code):not(.quiz__note) { color: var(--muted); margin-bottom: var(--sp-5); }
.quiz__again { min-height: 44px; padding: 0 var(--sp-3); font: 600 var(--fs-sm) var(--font-sans); color: var(--muted); background: none; border: 0; cursor: pointer; text-decoration: underline; }
.quiz__note { margin-top: var(--sp-4); font-size: var(--fs-xs); color: var(--muted); }

/* 14. 3D ring explorer --------------------------------------------------------- */
.explore3d { position: relative; padding: var(--section-y) 0; overflow: hidden; color: var(--on-navy); background: radial-gradient(60% 80% at 75% 55%, #13285a 0%, var(--ink) 70%); }
.explore3d__inner { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--split-gap); align-items: center; }
.explore3d h2 { color: var(--white); }
.explore3d h2 em { color: var(--gold); }
.explore3d .eyebrow { color: var(--gold); }
.explore3d__copy > p { color: var(--on-navy); font-size: var(--fs-md); margin-bottom: var(--sp-5); }
.explore3d__panel { position: relative; padding: var(--sp-5); padding-left: 84px; min-height: 150px; border-radius: 20px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)); border: 1px solid var(--glass-line); }
.explore3d__icon { position: absolute; left: var(--sp-5); top: var(--sp-5); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--royal); color: var(--white); }
.explore3d__icon svg { width: 24px; height: 24px; }
.explore3d__panel h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 6px; }
.explore3d__panel p { margin: 0; }
.explore3d__in { margin-top: var(--sp-3) !important; font-size: var(--fs-sm); color: var(--gold); font-weight: 600; }
.explore3d__nav { display: flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-5); }
.explore3d__count { font-variant-numeric: tabular-nums; color: var(--on-navy-muted); min-width: 4ch; text-align: center; }
.explore3d__arrow { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: currentColor; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.2); cursor: pointer; transition: background-color 0.2s, border-color 0.2s, transform 0.2s; }
.explore3d__arrow:hover { background: var(--royal); border-color: var(--royal); transform: scale(1.05); }
.explore3d__arrow svg { width: 20px; height: 20px; }
.explore3d__stage { position: relative; height: 440px; perspective: 1100px; perspective-origin: 50% 30%; cursor: grab; touch-action: pan-y; user-select: none; }
.explore3d__stage:active { cursor: grabbing; }
.explore3d__ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.explore3d__ring.is-dragging { transition: none; }
.explore3d__card { position: absolute; left: -90px; top: -110px; width: 180px; height: 220px; display: grid; align-content: center; justify-items: center; gap: var(--sp-4); padding: var(--sp-4); text-align: center;
  font: 600 1rem var(--font-sans); color: var(--white); border-radius: 22px; cursor: pointer; backface-visibility: hidden;
  background: linear-gradient(170deg, rgba(141, 185, 234, 0.18), rgba(7, 20, 48, 0.85)); border: 1px solid rgba(141, 185, 234, 0.3); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); transition: border-color 0.3s, box-shadow 0.3s, background 0.3s; }
.explore3d__card.is-active { border-color: var(--gold); background: linear-gradient(170deg, rgba(217, 168, 102, 0.3), rgba(7, 20, 48, 0.9)); box-shadow: 0 0 50px -10px rgba(217, 168, 102, 0.55), 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.explore3d__cicon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: rgba(255, 255, 255, 0.08); color: var(--sky); }
.explore3d__card.is-active .explore3d__cicon { color: var(--gold); }
.explore3d__cicon svg { width: 34px; height: 34px; }
.explore3d__floor { position: absolute; left: 10%; right: 10%; bottom: 10px; height: 60px; border-radius: 50%; background: radial-gradient(closest-side, rgba(91, 151, 230, 0.35), transparent); filter: blur(10px); }

/* 15. Career pathway ------------------------------------------------------------ */
.pathway { padding: var(--section-y) 0; }
.pathway__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--sp-5); margin-bottom: var(--sp-7); }
.pathway__tabs { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--mist-deep); }
.pathway__tabs button { min-height: 44px; padding: 0 22px; font: 600 var(--fs-sm) var(--font-sans); color: var(--navy); background: none; border: 0; border-radius: 999px; cursor: pointer; transition: background-color 0.25s, color 0.25s; }
.pathway__tabs button.is-on { background: var(--navy); color: var(--white); }
.pathway__track { position: relative; padding-top: 6px; margin-bottom: var(--sp-6); }
.pathway__line { position: absolute; left: 30px; right: 30px; top: 30px; height: 4px; border-radius: 4px; background: var(--line); }
.pathway__line span { position: absolute; inset: 0; border-radius: inherit; transform-origin: left; background: linear-gradient(90deg, var(--berry), var(--bronze)); transition: transform 0.6s var(--ease); }
.pathway__stops { position: relative; display: flex; justify-content: space-between; list-style: none; }
.pathway__stops button { display: grid; justify-items: center; gap: 10px; padding: 0; font: 600 var(--fs-sm) var(--font-sans); color: var(--muted); background: none; border: 0; cursor: pointer; }
.pathway__node { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; font-family: var(--font-serif); font-size: 1.3rem; color: var(--muted); background: var(--white); border: 2px solid var(--line-strong); transition: all 0.4s var(--ease); }
.pathway__stops li.is-on .pathway__node { color: var(--white); background: var(--berry); border-color: var(--berry); }
.pathway__stops li.is-cur .pathway__node { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(58, 107, 176, 0.15); }
.pathway__stops li.is-cur button { color: var(--navy); }
.pathway__range { position: absolute; left: 4px; right: 4px; top: 8px; width: calc(100% - 8px); height: 48px; opacity: 0; cursor: pointer; }
.pathway__range:focus-visible + * , .pathway__range:focus-visible { outline: none; }
.pathway__track:focus-within .pathway__line { box-shadow: 0 0 0 3px rgba(58, 107, 176, 0.35); }
.pathway__card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: var(--sp-6); align-items: center; padding: clamp(24px, 1.2rem + 1.5vw, 40px); border-radius: 24px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pathway__card.is-in { animation: q-in 0.55s var(--ease) both; }
.pathway__kicker { font: 700 0.75rem var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze-text); margin-bottom: 6px; }
.pathway__card h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.8rem); color: var(--navy); margin-bottom: 6px; }
.pathway__card p { color: var(--muted); margin: 0; }
.pathway__roles { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pathway__roles li { padding: 7px 14px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; color: var(--navy); background: var(--berry-tint); }
.pathway__note { margin-top: var(--sp-4); font-size: var(--fs-xs); color: var(--muted); }

/* 16. Language welcome ------------------------------------------------------------ */
.lang-sec { padding: var(--section-y) 0; background: linear-gradient(180deg, var(--paper), var(--cream)); }
.lang { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--split-gap); align-items: center; }
.lang h2 em { color: var(--bronze); }
.lang__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-5); }
.lang__tabs button { min-height: 44px; padding: 0 16px; font: 600 var(--fs-sm) var(--font-sans); color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: all 0.2s; }
.lang__tabs button:hover { border-color: var(--berry); }
.lang__tabs button[aria-selected="true"] { background: var(--berry); border-color: var(--berry); color: var(--white); }
.lang__card { position: relative; padding: clamp(28px, 1.5rem + 2vw, 56px); border-radius: 28px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; min-height: 330px; }
.lang__mark { position: absolute; right: -30px; bottom: -30px; width: 220px; opacity: 0.08; }
.lang__mark img { width: 100%; height: auto; }
.lang__panel.is-active { animation: q-in 0.5s var(--ease) both; }
.lang__panel h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); color: var(--navy); margin-bottom: var(--sp-3); }
.lang__panel p { font-size: var(--fs-md); line-height: 1.7; color: var(--text); margin-bottom: var(--sp-5); }
.lang__note { position: relative; margin-top: var(--sp-5); font-size: var(--fs-xs); color: var(--muted); }

/* 17. A day at Berry ---------------------------------------------------------------- */
.day { padding: var(--section-y) 0; overflow: hidden; }
.day__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: var(--sp-6); align-items: end; margin-bottom: var(--sp-7); }
.day__head h2 em { color: var(--bronze); }
.day__head > p { color: var(--muted); font-size: var(--fs-md); }
.day__rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(420px, 82vw); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) 24px; scrollbar-width: none; cursor: grab; }
.day__rail::-webkit-scrollbar { display: none; }
.day__rail.is-grab { cursor: grabbing; scroll-snap-type: none; }
.day__card { scroll-snap-align: start; border-radius: 24px; overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.day__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.day__card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; pointer-events: none; }
.day__card > div { padding: var(--sp-5); }
.day__time { display: inline-block; margin-bottom: var(--sp-2); padding: 4px 12px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bronze-text); background: var(--cream); border-radius: 999px; }
.day__card h3 { font-size: 1.35rem; color: var(--navy); margin-bottom: 6px; }
.day__card p { color: var(--muted); margin: 0; }
.day__foot { display: flex; align-items: center; gap: var(--sp-5); margin-top: var(--sp-4); }
.day__progress { flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.day__progress span { display: block; height: 100%; transform-origin: left; background: linear-gradient(90deg, var(--berry), var(--bronze)); transition: transform 0.2s; }
.day__arrows { display: flex; gap: var(--sp-2); color: var(--navy); }
.day .explore3d__arrow { background: var(--white); border-color: var(--line-strong); }
.day .explore3d__arrow:hover { color: var(--white); }

/* 18. WhatsApp button + mobile action bar ----------------------------------------- */
.wa-fab { position: fixed; left: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 14px; font-weight: 650; color: var(--white); text-decoration: none; background: #1F9D57; border-radius: 999px; box-shadow: 0 14px 34px -12px rgba(31, 157, 87, 0.8);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background-color 0.2s; }
.wa-fab.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.wa-fab:hover { background: #178547; }
.wa-fab svg { width: 26px; height: 26px; }
.action-bar { display: none; }
@media (max-width: 767px) {
  .wa-fab { display: none; }
  .action-bar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 95; display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 6px; padding: 6px; border-radius: 20px; background: rgba(7, 20, 48, 0.94); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.12);
    transform: translateY(120%); transition: transform 0.45s var(--ease); }
  .action-bar.is-shown { transform: none; }
  .action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; font-size: 0.72rem; font-weight: 600; color: var(--white); text-decoration: none; border-radius: 14px; }
  .action-bar a svg { width: 20px; height: 20px; }
  .action-bar a:nth-child(2) svg { color: #3DDC84; }
  .action-bar__apply { flex-direction: row !important; gap: 8px !important; font-size: 0.95rem !important; background: var(--berry); }
  .has-action-bar .to-top { bottom: 84px; }
  .has-action-bar .footer { padding-bottom: 90px; }
}

/* footer register links */
.footer__codes a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.footer__codes a:hover { color: var(--white); text-decoration: underline; }
.footer__codes svg { width: 14px; height: 14px; color: #6FCF97; }

@media (prefers-reduced-motion: reduce) {
  .words .w { opacity: 1; transform: none; filter: none; }
  .explore3d__ring { transition: none; }
  @view-transition { navigation: none; }
}
@media (max-width: 1024px) {
  .quiz, .explore3d__inner, .lang { grid-template-columns: 1fr; }
  .pathway__card { grid-template-columns: 1fr; }
  .explore3d__stage { order: -1; height: 360px; }
  .day__head { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .explore3d__stage { height: 300px; perspective: 800px; }
  .explore3d__card { width: 140px; height: 170px; left: -70px; top: -85px; font-size: 0.85rem; }
  .explore3d__cicon { width: 50px; height: 50px; }
  .pathway__lbl { font-size: 0.75rem; }
  .pathway__node { width: 44px; height: 44px; }
  .pathway__line { top: 26px; left: 22px; right: 22px; }
}
.quiz__q[hidden], .quiz__result[hidden] { display: none !important; }

/* ==========================================================================
   v7.2 — Berry typography (Poppins headings, as on berrycollege.edu.au)
   ========================================================================== */
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root { --font-serif: "Poppins", "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; --font-head: var(--font-serif); }
h1, h2, h3, .h1, .h2 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.02em; }
h1 { letter-spacing: -0.03em; }
h4, .brand__name { font-family: var(--font-head); font-weight: 600; }
.brand__name { letter-spacing: -0.01em; }
/* accent words keep the brand colours but drop the serif italic */
h1 em, h2 em, h3 em, .xpand__title em { font-style: normal; }
.page-hero h1 { font-weight: 600; }
.hero__creds dd, .stats b, .explore3d__count, .pathway__node, .journey__num, .quiz__q legend { font-family: var(--font-head); }
.quiz__q legend { font-weight: 600; letter-spacing: -0.01em; }
.xpand__title, .journey__head h2, .meet h2 { font-weight: 600; }
.xpand__big { font-family: var(--font-sans); font-weight: 500; }

/* home hero: credentials pill + brand-blue name */
.hero-pill { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; max-width: 100%; margin: 0 0 var(--sp-6); padding: 12px 22px; font-size: 0.95rem; line-height: 1.45; color: var(--on-navy);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 22px; backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.hero-pill strong { color: var(--white); font-weight: 700; }
.hero-pill .pulse-dot { margin-right: 4px; background: var(--sky); box-shadow: 0 0 0 0 rgba(141, 185, 234, 0.7); }
.hero-pill__sep { color: var(--gold); }
.hero--3d .hero3d__content { max-width: 720px; }
.hero3d__title { font-size: clamp(2.5rem, 1.3rem + 3.6vw, 4.9rem); line-height: 1.06; letter-spacing: -0.035em; font-weight: 700; text-wrap: balance; }
.hero3d__brand { background: linear-gradient(100deg, #A9CBF0 0%, #6FA3E8 45%, #4F86D1 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero--3d .hero__lede { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem); max-width: 44ch; }
.hero--3d .hero__actions { margin-bottom: 0; }
.hero--3d .btn--lg { min-width: 200px; justify-content: center; font-weight: 600; }
@media (max-width: 767px) {
  .hero-pill { font-size: 0.82rem; padding: 10px 16px; border-radius: 16px; }
  .hero3d__title { font-size: clamp(2.2rem, 9vw, 3rem); }
  .hero--3d .btn--lg { min-width: 0; width: 100%; }
}
@media (max-width: 767px) {
  .hero-pill { display: block; }
  .hero-pill .pulse-dot { display: none; }
  .hero-pill > span.pulse-dot { display: none !important; }
  .hero-pill > span:nth-of-type(2) { display: block; margin-bottom: 4px; }
  .hero-pill > span:nth-of-type(3) { display: none; }
  .hero-pill__sep { margin: 0 6px; }
}

/* ==========================================================================
   v7.3 — The Berry film: interactive "choose your path"
   ========================================================================== */
.bfilm { position: relative; padding: var(--section-y) 0 calc(var(--section-y) + 16px); color: var(--on-navy); overflow: hidden;
  background: radial-gradient(60% 55% at 50% 0%, #15306a 0%, rgba(7, 20, 48, 0) 70%), radial-gradient(40% 40% at 90% 90%, rgba(176, 122, 64, 0.18), transparent 70%), var(--ink); }
.bfilm::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(60% 50% at 50% 35%, #000, transparent 75%); mask-image: radial-gradient(60% 50% at 50% 35%, #000, transparent 75%); }
.bfilm .container { position: relative; }
.bfilm__head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--sp-5) var(--split-gap); align-items: end; margin-bottom: var(--head-gap); }
.bfilm .eyebrow { color: var(--gold); }
.bfilm h2 { color: var(--white); font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.8rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }
.bfilm h2 em { background: linear-gradient(100deg, #A9CBF0, #6FA3E8 50%, #D9A866); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bfilm__intro { font-size: var(--fs-md); line-height: 1.6; color: var(--on-navy); }

.bfilm__frame { --rx: 0deg; --ry: 0deg; position: relative; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: #050b1a; isolation: isolate;
  transform: perspective(2000px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 0 8px rgba(255, 255, 255, 0.03), 0 60px 140px -50px rgba(79, 134, 209, 0.75), 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.bfilm__frame::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; background: linear-gradient(125deg, rgba(255, 255, 255, 0.1), transparent 28%); }
.bfilm__poster, .bfilm__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter 0.6s var(--ease), transform 0.8s var(--ease); }
.bfilm__video { opacity: 0; transition: opacity 0.8s var(--ease), filter 0.6s var(--ease), transform 0.8s var(--ease); }
.bfilm__video.is-playing { opacity: 1; }
.bfilm__vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(5, 11, 26, 0.55), transparent 35%); }
.bfilm__frame.is-choosing .bfilm__video, .bfilm__frame.is-choosing .bfilm__poster { filter: blur(10px) brightness(0.45) saturate(0.9); transform: scale(1.04); }

.bfilm__top { position: absolute; z-index: 2; left: 18px; right: 18px; top: 16px; display: flex; justify-content: space-between; pointer-events: none; }
.bfilm__now, .bfilm__count { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; font-size: 0.8rem; font-weight: 600; color: var(--white); background: rgba(5, 11, 26, 0.55); border: 1px solid var(--glass-line); border-radius: 999px; backdrop-filter: blur(8px); }
.bfilm__count { font-family: var(--font-head); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

.bfilm__hots { position: absolute; z-index: 2; right: 22px; bottom: 22px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.bfilm__hot { display: inline-flex; align-items: center; gap: 12px; padding: 10px 14px 10px 16px; font: 600 0.95rem var(--font-head); letter-spacing: -0.01em; color: var(--white); text-decoration: none;
  background: linear-gradient(160deg, rgba(58, 107, 176, 0.85), rgba(11, 29, 63, 0.85)); border: 1px solid rgba(169, 203, 240, 0.45); border-radius: 16px; backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8); animation: hot-in 0.6s var(--ease) both; transition: transform 0.25s var(--ease), background 0.25s; }
.bfilm__hot small { display: block; font: 700 0.68rem var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase; color: #CFE2F7; }
.bfilm__hot { flex-wrap: wrap; max-width: 260px; }
.bfilm__hot small { width: 100%; margin-bottom: -6px; }
.bfilm__hot svg { width: 18px; height: 18px; margin-left: auto; }
.bfilm__hot:hover { transform: translateX(-4px); background: linear-gradient(160deg, rgba(79, 134, 209, 0.95), rgba(11, 29, 63, 0.9)); }
.bfilm__hot--gold { background: linear-gradient(160deg, rgba(176, 122, 64, 0.92), rgba(60, 38, 18, 0.88)); border-color: rgba(217, 168, 102, 0.6); }
.bfilm__hot--gold small { color: #F3DDBE; }
@keyframes hot-in { from { opacity: 0; transform: translateY(14px) scale(0.96); } }

.bfilm__choose { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 24px; animation: fade-in 0.5s var(--ease) both; }
.bfilm__choose[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; } }
.bfilm__choose-in { width: min(920px, 100%); text-align: center; }
.bfilm__q { margin-bottom: var(--sp-5); font: 700 clamp(1.4rem, 1rem + 1.6vw, 2.4rem) var(--font-head); letter-spacing: -0.03em; color: var(--white); }
.bfilm__opts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.bfilm__opts button { position: relative; display: grid; justify-items: center; gap: 4px; padding: 18px 12px 16px; text-align: center; font: inherit; color: var(--white); cursor: pointer;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 18px; backdrop-filter: blur(12px);
  animation: hot-in 0.6s var(--ease) both; transition: transform 0.3s var(--ease), border-color 0.25s, background 0.25s, box-shadow 0.3s; }
.bfilm__opts button:nth-child(2) { animation-delay: 0.06s; } .bfilm__opts button:nth-child(3) { animation-delay: 0.12s; }
.bfilm__opts button:nth-child(4) { animation-delay: 0.18s; } .bfilm__opts button:nth-child(5) { animation-delay: 0.24s; }
.bfilm__opts button:hover, .bfilm__opts button:focus-visible { transform: translateY(-6px); border-color: var(--gold); background: linear-gradient(170deg, rgba(217, 168, 102, 0.22), rgba(255, 255, 255, 0.04)); box-shadow: 0 20px 40px -20px rgba(217, 168, 102, 0.7); }
.bfilm__opts b { font: 600 1.02rem var(--font-head); letter-spacing: -0.01em; }
.bfilm__opts small { font-size: 0.8rem; color: var(--on-navy); }
.bfilm__oi { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 6px; border-radius: 16px; background: var(--royal); box-shadow: 0 10px 24px -10px rgba(58, 107, 176, 0.9); }
.bfilm__oi svg { width: 26px; height: 26px; }
.bfilm__opts button.is-seen::after { content: "✓ Watched"; position: absolute; top: 8px; right: 10px; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em; color: var(--gold); }
.bfilm__all { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: var(--sp-5); padding: 0 18px 0 8px; font: 600 var(--fs-sm) var(--font-sans); color: var(--on-navy); background: rgba(5, 11, 26, 0.5); border: 1px solid var(--glass-line); border-radius: 999px; cursor: pointer; }
.bfilm__all:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.bfilm__ring { width: 28px; height: 28px; }
.bfilm__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.bfilm__ring circle { fill: none; stroke: var(--gold); stroke-width: 3; stroke-dasharray: 100.5; stroke-dashoffset: 100.5; opacity: 0.35; }
.bfilm__all.is-counting .bfilm__ring circle { opacity: 1; animation: ring 8s linear forwards; }
@keyframes ring { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 100.5; } }
.bfilm__chapters { margin-top: var(--sp-5); }
.bfilm__transcript { margin-top: var(--sp-4); }
.bfilm__transcript a { color: var(--sky); }

@media (max-width: 1024px) {
  .bfilm__head { grid-template-columns: 1fr; }
  .bfilm__opts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .bfilm__frame { border-radius: 18px; }
  .bfilm__frame.is-choosing { aspect-ratio: auto; }
  .bfilm__frame.is-choosing .bfilm__choose { position: relative; padding: 56px 14px 18px; }
  .bfilm__frame.is-choosing .bfilm__hots { display: none; }
  .bfilm__opts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bfilm__opts button { padding: 12px 8px; }
  .bfilm__opts button:last-child { grid-column: 1 / -1; }
  .bfilm__oi { width: 40px; height: 40px; border-radius: 12px; }
  .bfilm__opts small { display: none; }
  .bfilm__q { margin-bottom: var(--sp-3); }
  .bfilm__all { margin-top: var(--sp-3); }
  .bfilm__hots { right: 12px; bottom: 12px; left: 12px; align-items: stretch; }
  .bfilm__hot { max-width: none; }
  .bfilm__now, .bfilm__count { font-size: 0.72rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bfilm__hot, .bfilm__opts button, .bfilm__choose { animation: none; }
}
.bfilm__hot[hidden] { display: none !important; }
@media (max-width: 767px) {
  .bfilm__hots { left: 8px; right: 8px; bottom: 8px; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
  .bfilm__hot { flex-wrap: nowrap; gap: 6px; padding: 7px 10px; font-size: 0.74rem; border-radius: 10px; max-width: none; }
  .bfilm__hot small { display: none; }
  .bfilm__hot svg { width: 14px; height: 14px; margin-left: 0; }
  .bfilm__top { left: 8px; right: 8px; top: 8px; }
}
