/* Mobile V3 presentation. The original desktop sections remain in their own layout. */
.mobile-screen,
.hero-story,
.v3-story,
.mobile-back { display: none; }

@media (max-width: 767px) {
  body { background: #07172b; }
  html { scroll-padding-top: 0; scroll-snap-type: y proximity; }
  .desktop-original-hero, .desktop-original-journey,
  #intro, #technologies, #courses, #curriculum, #customize,
  #why, #environments, #enquire, .opportunity-strip, .site-footer { display: none !important; }
  .announcement { height: 34px; padding: 0 8px; font-size: 8px; white-space: nowrap; overflow: hidden; }
  .site-header {
    position: relative; top: auto; height: 66px;
    background: linear-gradient(110deg, rgba(6, 23, 43, .72), rgba(24, 65, 92, .32));
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border-bottom: 1px solid rgba(255, 255, 255, .18);
  }
  .site-header .nav-links { top: 100%; }
  .site-header .brand { padding: 0; background: none; border: 0; box-shadow: none; }
  .brand-logo { opacity: 1; }
  button, a { -webkit-tap-highlight-color: transparent; }
  button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid #ffae61; outline-offset: 4px;
  }
  .mobile-screen {
    display: flex; align-items: center; min-height: 100svh;
    padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
    background: #071b30; color: #f3f8fc; scroll-snap-align: start;
    position: relative; isolation: isolate;
  }
  .mobile-screen-inner { width: 100%; max-width: 520px; margin: auto; }
  .mobile-eyebrow, .v3-number {
    display: block; color: #ffad60; font-size: 9px; font-weight: 800; letter-spacing: .14em;
  }
  .mobile-screen h2, .v3-heading h2 {
    margin: 7px 0 10px; color: #fff; font: 800 clamp(28px, 8vw, 36px)/1.08 'Manrope', sans-serif;
    letter-spacing: -.04em;
  }
  .mobile-screen h2 em, .v3-heading h2 em { color: #ff932f; font-style: normal; }
  .mobile-screen p { font-size: 13px; line-height: 1.45; color: #dce8f1; margin: 8px 0 12px; }
  .mobile-glass {
    border: 1px solid rgba(206, 232, 249, .24); border-radius: 15px;
    background: rgba(10, 34, 54, .83); box-shadow: 0 12px 26px rgba(0, 9, 22, .18);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .button { min-height: 44px; }

  /* The full composition is visible in the sharp foreground image. */
  .hero.hero-story {
    display: flex; align-items: flex-start; height: auto; max-height: none;
    min-height: calc(100svh - 100px); padding: clamp(119px, calc(37svh - 66px), 284px) 16px 20px;
    position: relative; isolation: isolate; overflow: hidden; background: #07172b;
  }
  .hero-story::before {
    content: ''; position: absolute; inset: 0 0 auto; height: 52svh; z-index: -3;
    background: url('assets/mobile/hero-team-960.webp') center top/cover no-repeat;
    filter: blur(14px); opacity: .42;
  }
  .hero-story::after {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(0deg, #07172b 24%, rgba(7, 23, 43, .97) 50%, rgba(7, 23, 43, .2) 85%);
  }
  .v3-hero-art { position: absolute; top: 0; left: 0; width: 100%; height: 49svh; z-index: -2; }
  .v3-hero-art img { width: 100%; height: auto; display: block; mask-image: linear-gradient(#000 70%, rgba(0,0,0,.7) 90%, transparent); }
  .hero-story .story-wrap { width: 100%; max-width: 520px; margin: 0 auto; position: relative; }
  .hero-story .story-carousel, .hero-story .story-slide { display: block; background: none; border: 0; padding: 0; }
  .story-copy { display: grid; gap: 11px; }
  .story-kicker { font-size: 8px; letter-spacing: .14em; font-weight: 800; color: #ffb16d; }
  .story-copy h1 { font: 800 clamp(38px, 12vw, 52px)/1.03 'Manrope', sans-serif; letter-spacing: -.045em; margin: 0; color: #fff; }
  .story-copy h1 em { color: #ff8b1c; font-style: normal; }
  .story-copy p { margin: 0; color: #eef6fc; font-size: 13px; line-height: 1.4; }
  .v3-hero-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .v3-hero-highlights > div {
    padding: 9px 6px; border-radius: 9px; background: rgba(31, 65, 91, .66);
    border: 1px solid rgba(255, 255, 255, .22);
  }
  .v3-hero-highlights strong { display: block; color: #fff; font-size: 11px; line-height: 1.2; }
  .v3-hero-highlights small { display: block; color: #cdddE9; font-size: 9px; line-height: 1.25; margin-top: 4px; }
  .v3-hero-highlights .v3-hero-career-paths { grid-column: 1 / -1; text-align: center; }
  .v3-hero-career-paths strong { margin-bottom: 6px; }
  .v3-hero-career-paths ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; list-style: none; margin: 0; padding: 0; }
  .v3-hero-career-paths li { color: #e3edf5; font-size: 10px; line-height: 1.25; white-space: nowrap; }
  .story-actions { display: grid; gap: 7px; }
  .story-actions .button { width: 100%; padding: 10px 12px; font-size: 11px; justify-content: space-between; }

  /* Each pinned module advances through document scrolling, without intercepting input. */
  .v3-story { display: block; background: radial-gradient(ellipse at 20% 25%, #1c4b6b, #07182b 76%); color: #fff; }
  .v3-story-frame { padding: 22px 14px; }
  .v3-story-inner { width: 100%; max-width: 520px; margin: auto; }
  .v3-heading h2 { font-size: 29px; }
  .v3-heading p { font-size: 10px; color: #cbdfed; margin: 0 0 10px; }
  .v3-story-layout { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; }
  .v3-state-stack { display: grid; gap: 15px; min-width: 0; }
  .v3-state {
    display: flex; flex-direction: column; gap: 10px; padding: 10px; min-width: 0;
    border: 1px solid rgba(213, 236, 251, .24); border-radius: 17px;
    background: rgba(11, 33, 52, .78); box-shadow: 0 14px 26px rgba(0, 10, 22, .2);
  }
  .v3-scene { border-radius: 11px; overflow: hidden; background: #143b56; }
  .v3-scene img { display: block; width: 100%; height: auto; }
  .v3-scene picture { display: block; }
  .v3-state[data-story-state="4"] .v3-scene img { max-height: 290px; object-fit: contain; }
  .v3-state h3 { font: 800 27px/1.08 'Manrope', sans-serif; letter-spacing: -.03em; color: #fff; margin: 6px 0 8px; }
  .v3-state p { font-size: 13px; line-height: 1.42; color: #eef5fb; margin: 0; }
  .v3-state small { display: block; font-size: 10px; line-height: 1.4; color: #c6d9e7; margin-top: 8px; }
  .v3-stage-tasks { list-style: none; padding: 0; margin: 14px 0 10px; display: grid; gap: 9px; }
  .v3-stage-tasks li { display: grid; grid-template-columns: 25px 1fr; gap: 8px; align-items: start; }
  .v3-stage-tasks li > span { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #ed994a; border-radius: 8px; color: #ffb36b; font-size: 9px; font-weight: 800; }
  .v3-stage-tasks strong { display: block; color: #fff; font-size: 12px; line-height: 1.25; }
  .v3-stage-tasks li p { margin: 3px 0 0; font-size: 11px; line-height: 1.35; color: #c6d9e7; }
  .v3-state .v3-stage-goal { padding: 9px; border-left: 2px solid #ff963d; background: #25465c; border-radius: 0 7px 7px 0; font-size: 11px; line-height: 1.35; }
  .path-careers { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 9px; }
  .path-careers span { font-size: 9px; color: #fff; font-weight: 700; padding: 6px; border: 1px solid #617d93; border-radius: 6px; background: #203c53; }
  .path-careers span:first-child { border-color: #ef8c2b; color: #ffb477; }
  .v3-rail { display: flex; flex-direction: column; justify-content: center; gap: 7px; }
  .v3-rail button { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; min-height: 51px; gap: 3px; padding: 2px 0; background: none; border: 0; color: #adbfcd; cursor: pointer; }
  .v3-rail button > span { display: grid; place-items: center; height: 30px; width: 30px; border-radius: 50%; background: #17374f; border: 1px solid #7b9bb0; font-size: 10px; }
  .v3-rail small { font-size: 8px; line-height: 1.15; }
  .v3-rail button[aria-current=step] { color: #fff; }
  .v3-rail button[aria-current=step] > span { color: #07172b; background: #ff8a19; border-color: #ffb464; box-shadow: 0 0 0 3px rgba(255, 138, 25, .18); }
  .v3-story-footer { display: flex; justify-content: space-between; margin-top: 12px; color: #bdd6e7; font-size: 8px; letter-spacing: .11em; }
  .v3-story.is-pinned { height: calc(var(--state-count) * 100svh); }
  .is-pinned .v3-story-frame { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; }
  .is-pinned .v3-state-stack { position: relative; display: block; }
  .is-pinned .v3-state { position: absolute; top: 0; left: 0; width: 100%; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .28s ease, transform .28s ease, visibility .28s; }
  .is-pinned .v3-state.is-active { position: relative; opacity: 1; visibility: visible; transform: none; }
  .v3-course-photo { border-radius: 11px; overflow: hidden; background: #0d263c; }
  .v3-course-photo picture, .v3-course-photo img { display: block; width: 100%; }
  .v3-course-photo img { height: auto; object-fit: contain; }
  .v3-course-price { display: flex; justify-content: space-between; gap: 7px; align-items: center; }
  .v3-course-price > span { font-size: 10px; color: #d2e5f1; }
  .v3-course-price strong { font: 800 23px/1.1 'Manrope', sans-serif; color: #ffac62; }
  .v3-course-state .button { width: 100%; margin-top: 10px; font-size: 11px; padding: 9px 11px; justify-content: space-between; }
  .v3-skills { display: grid; grid-template-columns: 1fr 1fr; list-style: none; padding: 0; gap: 5px; margin: 0; }
  .v3-skills li { font-size: 10px; line-height: 1.3; color: #f0f7fc; background: #244259; padding: 6px; border-radius: 6px; }

  .v3-why { overflow: hidden; }
  .v3-background { position: absolute; inset: 0; z-index: -2; }
  .v3-background picture, .v3-background img { width: 100%; height: 100%; display: block; object-fit: cover; }
  .v3-why::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6, 24, 43, .95), rgba(6, 24, 43, .62)); }
  .v3-experience { display: flex; gap: 16px; padding: 13px 15px; align-items: center; }
  .v3-experience > strong { color: #fff; font: 800 72px/1 'Manrope', sans-serif; letter-spacing: -.06em; }
  .v3-experience > strong span { color: #ff983b; font-size: 35px; }
  .v3-experience b { display: block; font-size: 15px; line-height: 1.2; }
  .v3-experience small { display: block; font-size: 10px; color: #d2e3ee; line-height: 1.4; margin-top: 7px; }
  .v3-why .v3-why-intro { font-size: 12px; margin: 12px 0; }
  .v3-benefit-panel { padding: 12px; margin-top: 8px; }
  .v3-benefit-panel h3 { font: 800 14px/1.2 'Manrope', sans-serif; color: #fff; margin: 0 0 8px; }
  .v3-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  .v3-benefits > span { display: flex; align-items: center; gap: 7px; font-size: 10px; line-height: 1.2; color: #e8f4fc; }
  .v3-benefits b { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; background: #2c4e67; color: #ffb26f; font-size: 18px; flex: none; }
  .v3-image-note { display: block; color: #bdcfde; font-size: 9px; line-height: 1.4; margin-top: 10px; }

  .mobile-tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .mobile-tech-grid .mobile-tech-card { position: relative; min-width: 0; min-height: 0; height: clamp(88px, 14svh, 128px); aspect-ratio: auto; border: 1px solid #52738e; border-radius: 12px; box-shadow: 0 8px 15px rgba(0, 0, 0, .13); padding: 0; }
  .mobile-tech-card picture, .mobile-tech-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .mobile-tech-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3, 18, 32, .92), transparent 70%); }
  .mobile-tech-card strong { position: absolute; z-index: 1; bottom: 10px; left: 9px; right: 18px; color: #fff; font-size: 11px; line-height: 1.2; }
  .mobile-tech-card > span { position: absolute; bottom: 8px; right: 7px; z-index: 1; color: #ffac5d; font-size: 12px; }
  .mobile-tech-card:nth-child(5) img { object-position: 25% 50%; }

  .v3-environment-feature { border: 1px solid #56748b; border-radius: 15px; background: #102d44; overflow: hidden; }
  .v3-environment-image { height: auto; aspect-ratio: 4 / 3; }
  .v3-environment-image picture, .v3-environment-image img { width: 100%; height: 100%; display: block; object-fit: contain; }
  .v3-environment-copy { padding: 11px 12px; }
  .v3-environment-copy h3 { color: #fff; font: 800 17px/1.2 'Manrope', sans-serif; margin: 0 0 4px; }
  .v3-environment-copy p { font-size: 12px; line-height: 1.4; margin: 0; }
  .v3-environment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 9px; }
  .v3-environment-option { position: relative; height: clamp(66px, 11svh, 100px); background: #1c3c55; border: 1px solid #587b94; border-radius: 10px; overflow: hidden; padding: 0; cursor: pointer; }
  .v3-environment-option[hidden] { display: none; }
  .v3-environment-option picture, .v3-environment-option img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .v3-environment-option::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #061d32, transparent); }
  .v3-environment-option strong { position: absolute; bottom: 8px; left: 9px; color: white; z-index: 1; font-size: 11px; }

  .mobile-customize { background: radial-gradient(ellipse at 0 20%, #1b4d70, #071b30); }
  .v3-plan-steps { list-style: none; position: relative; padding: 0 0 0 29px; margin: 16px 0; display: grid; gap: 9px; }
  .v3-plan-steps::before { content: ''; position: absolute; left: 11px; top: 24px; bottom: 24px; width: 2px; background: #e88a37; }
  .v3-plan-steps li { position: relative; }
  .v3-plan-number { position: absolute; left: -29px; top: calc(50% - 12px); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #ff932f; color: #071b30; font-size: 9px; font-weight: 800; }
  .v3-plan-card { display: grid; grid-template-columns: 34% 1fr; gap: 10px; align-items: center; min-height: 111px; padding: 9px; }
  .v3-plan-card img { width: 100%; height: auto; display: block; border-radius: 8px; }
  .v3-plan-card h3 { color: #fff; font: 800 13px/1.2 'Manrope', sans-serif; margin: 0 0 5px; }
  .v3-plan-card p { font-size: 11px; line-height: 1.35; margin: 0; }
  .v3-plan-steps.is-visible .v3-plan-card { animation: v3-reveal .35s ease both; }
  .v3-plan-steps li:nth-child(2) .v3-plan-card { animation-delay: .08s; }
  .v3-plan-steps li:nth-child(3) .v3-plan-card { animation-delay: .16s; }
  .mobile-customize .button { width: 100%; justify-content: space-between; font-size: 12px; }
  .mobile-customize > div > small { display: block; font-size: 10px; color: #cbdeeb; margin-top: 10px; }

  .mobile-careers { background: radial-gradient(ellipse at 50% 20%, #24516e, #071b30 70%); }
  .v3-career-visual { width: min(75%, 290px); margin: -5px auto 0; }
  .v3-career-visual img { width: 100%; height: auto; max-height: 290px; object-fit: contain; display: block; }
  .v3-career-outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; position: relative; margin-top: 10px; }
  .v3-career-outcomes::before { content: ''; position: absolute; left: 50%; top: -12px; height: 12px; border-left: 2px solid #ec8e3e; }
  .v3-career-card { padding: 11px; }
  .v3-career-card:first-child { border-color: #ee943e; }
  .v3-career-number { color: #ffae61; font-size: 12px; font-weight: 800; }
  .v3-career-card h3 { font: 800 13px/1.2 'Manrope', sans-serif; color: #fff; margin: 5px 0; }
  .v3-career-card p { font-size: 10px; line-height: 1.35; margin: 0; }
  .mobile-careers .mobile-selection-note { font-size: 10px; line-height: 1.4; margin: 10px 0 5px; }
  .v3-career-policy { color: #bad0df; display: block; font-size: 9px; line-height: 1.35; }
  .v3-career-outcomes.is-visible .v3-career-card { animation: v3-reveal .35s ease both; }
  .v3-career-card:nth-child(2) { animation-delay: .08s !important; }
  .v3-career-card:nth-child(3) { animation-delay: .16s !important; }
  .v3-career-card:nth-child(4) { animation-delay: .24s !important; }
  @keyframes v3-reveal { from { opacity: .5; transform: translateY(8px); } to { opacity: 1; transform: none; } }

  .mobile-contact { background: radial-gradient(ellipse at 100% 10%, #235474, #07172b 75%); }
  .mobile-contact-actions { display: grid; gap: 9px; margin: 24px 0 12px; }
  .mobile-contact-actions .button { width: 100%; justify-content: space-between; font-size: 12px; }
  .mobile-enquiry-link { background: none; border: 0; color: #ffb272; font-size: 12px; padding: 8px 0; cursor: pointer; }
  .mobile-contact small { display: block; color: #b9cfdf; font-size: 10px; line-height: 1.5; margin-top: 24px; }
  body.mobile-detail-mode main > section { display: none !important; }
  body.mobile-detail-mode[data-mobile-detail=customize] #customize,
  body.mobile-detail-mode[data-mobile-detail=enquire] #enquire,
  body.mobile-detail-mode[data-mobile-detail=curriculum] #curriculum { display: block !important; padding-top: 110px; min-height: 100svh; }
  body.mobile-detail-mode .mobile-back { display: block; position: fixed; z-index: 1000; top: 8px; right: 10px; border: 0; border-radius: 9px; background: #ff8a19; color: #07172b; padding: 12px; font-weight: 800; cursor: pointer; }
}

@media (max-width: 767px) and (max-height: 700px) {
  .hero.hero-story { padding-top: clamp(145px, calc(68vw - 90px), 175px); padding-bottom: 12px; }
  .v3-hero-art { height: 45svh; }
  .story-copy { gap: 6px; }
  .story-copy h1 { font-size: 30px; }
  .story-copy p { font-size: 12px; }
  .v3-hero-highlights > div { padding: 7px 5px; }
  .v3-hero-highlights strong { font-size: 10px; }
  .v3-hero-highlights small { font-size: 8px; }
  .mobile-screen { padding-top: 15px; padding-bottom: 15px; }
  .mobile-screen h2, .v3-heading h2 { font-size: 26px; margin: 5px 0 7px; }
  .v3-story-frame { padding: 12px 14px; }
  .v3-state { padding: 8px; gap: 7px; }
  .v3-state h3 { font-size: 24px; margin: 4px 0 6px; }
  .v3-state p { font-size: 12px; }
  .v3-state small { font-size: 9px; margin-top: 6px; }
  .v3-stage-tasks { margin: 9px 0 7px; gap: 5px; }
  .v3-stage-tasks li { grid-template-columns: 20px 1fr; gap: 6px; }
  .v3-stage-tasks li > span { width: 20px; height: 20px; font-size: 8px; border-radius: 6px; }
  .v3-stage-tasks strong { font-size: 10px; }
  .v3-stage-tasks li p { font-size: 9px; line-height: 1.25; margin-top: 2px; }
  .v3-state .v3-stage-goal { padding: 6px; font-size: 9px; }
  .v3-scene img { width: 100%; height: 140px; object-fit: contain; }
  .path-careers { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
  .path-careers span { font-size: 8px; padding: 4px; }
  .v3-heading p { font-size: 9px; margin-bottom: 6px; }
  .v3-course-photo img { height: auto; min-height: 0; }
  .v3-skills li { font-size: 9px; padding: 5px; }
  .v3-course-price strong { font-size: 21px; }
  .v3-experience { padding: 10px 12px; }
  .v3-experience > strong { font-size: 59px; }
  .v3-experience b { font-size: 13px; }
  .v3-benefit-panel { padding: 10px; }
  .v3-benefits b { width: 25px; height: 25px; }
  .mobile-tech-grid .mobile-tech-card { height: 14svh; min-height: 83px; }
  .mobile-tech-card strong { font-size: 10px; }
  .v3-environment-image { height: auto; }
  .v3-environment-copy { padding: 8px 10px; }
  .v3-environment-options { gap: 6px; margin-top: 7px; }
  .v3-environment-option { height: 66px; }
  .v3-environment-copy h3 { font-size: 15px; }
  .v3-environment-copy p { font-size: 11px; }
  .v3-plan-steps { margin: 11px 0; gap: 7px; }
  .v3-plan-card { min-height: 97px; padding: 7px; }
  .v3-plan-card h3 { font-size: 12px; }
  .v3-plan-card p { font-size: 10px; }
  .v3-career-visual { width: 200px; }
  .v3-career-visual img { max-height: 200px; }
  .v3-career-card { padding: 8px; }
  .v3-career-card h3 { font-size: 12px; margin: 3px 0; }
  .v3-career-card p { font-size: 9px; }
  .mobile-careers .mobile-selection-note { font-size: 9px; }
  .v3-career-policy { font-size: 8px; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mobile-glass { background: #102c45; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; scroll-snap-type: none !important; }
  .mobile-screen *, .v3-story * { animation: none !important; transition: none !important; }
}
