/* RIIM Pune · PGDM + SAP landing page, Final Design 3
   Built from pen.dev "Home · Final Design 3" (frame hUArH). Tokens follow riim-design-pattern.md section 2. */

:root {
  --navy-900: #0F2E4D;
  --navy-700: #1A4670;
  --navy-600: #205587;
  --navy-300: #8FB0CF;
  --navy-100: #E6EEF6;
  --navy-50: #F3F7FB;
  --yellow-500: #FFCC00;
  --yellow-600: #E6B800;
  --yellow-100: #FFF6CC;
  --ink: #1B1F24;
  --text-2: #5B6470;
  --line: #E3E8EE;
  --surface: #F8FAF9;
  --white: #FFFFFF;
  --error: #C2410C;
  --success: #1F8A5B;

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-photo: 20px;
  --r-card: 28px;
  --r-pill: 999px;
  --shadow-card: 0 10px 30px rgba(15, 46, 77, .08);
  --shadow-float: 0 16px 36px rgba(15, 46, 77, .22);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 250ms;

  --gutter: 24px;
  --utility-h: 36px;
  --header-h: 88px;
  --container: clamp(1200px, 75vw, 1560px);
  --section-y: clamp(64px, 3.048vw + 52.1px, 96px);
  --t-h1: min(clamp(34px, 2.6vw + 24px, 76px), max(7.4svh, 36px));
  --t-h2: clamp(28px, 1.143vw + 23.5px, 40px);
  --t-lead: clamp(16px, .19vw + 15.26px, 18px);
  --page-x: max(var(--gutter), calc((100% - var(--container)) / 2));
}
@media (min-width: 1441px) {
  :root { --t-h2: clamp(40px, 1.667vw + 16px, 48px); --section-y: clamp(96px, 3.333vw + 48px, 112px); }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; overflow-x: clip; font: 400 16px/1.6 var(--font-body); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 20px; height: 20px; flex: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--navy-600); outline-offset: 2px; border-radius: 6px; }
.utility :focus-visible, .drawer :focus-visible, .footer :focus-visible, .glimpses :focus-visible { outline-color: var(--yellow-500); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 12px 18px; background: var(--yellow-500); color: var(--navy-700); font-weight: 600; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.bg-white { background: var(--white); }
.bg-surface { background: var(--surface); }
.bg-navy-50 { background: var(--navy-50); }
.muted { color: var(--text-2); }

/* ---------- type ---------- */
.eyebrow { display: inline-flex; flex-direction: column; gap: 8px; font: 600 12px/1.4 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--navy-600); }
.eyebrow::after { content: ""; width: 24px; height: 3px; border-radius: 2px; background: var(--yellow-500); }
.h2 { font: 600 var(--t-h2)/1.2 var(--font-head); color: var(--navy-600); }
.lead { font-size: var(--t-lead); color: var(--text-2); max-width: 62ch; }
.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; }
.head-row .section-head { max-width: 680px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: var(--r-pill); font: 500 15px/1 var(--font-head); white-space: nowrap; transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform 150ms var(--ease), color var(--dur); }
.btn .i { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
@media (hover: hover) { .btn:hover .i-arrow { transform: translateX(4px); } }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--yellow-500); color: var(--navy-700); }
@media (hover: hover) { .btn-primary:hover { background: var(--yellow-600); box-shadow: 0 8px 24px rgba(15, 46, 77, .16); } }
.btn-secondary { background: var(--navy-600); color: var(--white); }
@media (hover: hover) { .btn-secondary:hover { background: var(--navy-700); } }
.btn-outline { box-shadow: inset 0 0 0 1.5px var(--white); color: var(--white); }
@media (hover: hover) { .btn-outline:hover { background: rgba(255, 255, 255, .1); } }
.btn-ghost { height: auto; min-height: 44px; padding: 4px 0; color: var(--navy-600); }
.btn-ghost span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size var(--dur) var(--ease); padding-bottom: 2px; }
@media (hover: hover) { .btn-ghost:hover span { background-size: 100% 1.5px; } }
.btn-block { width: 100%; }

/* ---------- utility bar & header ---------- */
.utility { background: var(--navy-900); color: var(--white); font-size: 13px; height: var(--utility-h); }
.utility .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.utility a { display: inline-flex; align-items: center; gap: 8px; }
@media (hover: hover) { .utility a:hover { text-decoration: underline; } }
.utility .i { width: 14px; height: 14px; color: var(--navy-300); }
.utility-contacts { display: flex; gap: 24px; }

.site-header { position: absolute; top: var(--utility-h); left: 0; right: 0; z-index: 50; height: var(--header-h); background: var(--white); border-bottom: 1px solid var(--line); transition: height var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.site-header.is-fixed { position: fixed; top: 0; }
.site-header.is-scrolled { height: 64px; box-shadow: 0 1px 3px rgba(15, 46, 77, .12); border-bottom-color: transparent; }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 48px; height: 56px; object-fit: contain; transition: height var(--dur), width var(--dur); }
.is-scrolled .brand img { width: 38px; height: 44px; }
.brand-name { display: block; font: 600 18px/1.2 var(--font-head); color: var(--navy-600); }
.brand-full { display: block; font-size: 11px; line-height: 1.3; color: var(--text-2); }
.drawer .brand-name { color: var(--white); }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.2vw, 32px); }
.nav > a, .nav-more > button { position: relative; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font: 500 15px/1 var(--font-body); }
.nav > a::after, .nav-more > button::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 6px; height: 2px; border-radius: 1px; background: var(--yellow-500); transition: left var(--dur) var(--ease), right var(--dur) var(--ease); }
.nav > a[aria-current="true"]::after { left: 0; right: 0; }
@media (hover: hover) { .nav > a:hover::after, .nav-more > button:hover::after { left: 0; right: 0; } }
.nav > a[aria-current="true"] { color: var(--navy-600); }
@media (hover: hover) { .nav > a:hover, .nav-more > button:hover { color: var(--navy-600); } }
.nav-more { position: relative; }
.nav-more .i { width: 14px; height: 14px; transition: transform var(--dur); }
.nav-more[data-open] .i { transform: rotate(180deg); }
.nav-menu { position: absolute; top: calc(100% + 6px); right: -16px; min-width: 220px; padding: 8px; background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow-float); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity var(--dur), transform var(--dur), visibility var(--dur); }
.nav-more[data-open] .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu a { display: block; padding: 12px 14px; border-radius: var(--r-sm); font-size: 15px; }
@media (hover: hover) { .nav-menu a:hover { background: var(--navy-50); color: var(--navy-600); } }
.lbl-short { display: none; }
.menu-toggle, .menu-close { display: none; flex: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--r-md); }
.menu-close { display: inline-flex; }
.menu-toggle .i, .menu-close .i { width: 24px; height: 24px; }

.drawer { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; padding: 16px var(--gutter) 32px; overflow-y: auto; background: var(--navy-900); color: var(--white); transform: translateX(100%); visibility: hidden; transition: transform var(--dur) var(--ease), visibility 0s linear var(--dur); }
.drawer[data-open] { transform: none; visibility: visible; transition: transform var(--dur) var(--ease), visibility 0s; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; height: 56px; margin-bottom: 16px; }
.drawer .brand img { width: 38px; height: 44px; }
.drawer nav a { display: block; padding: 14px 0; font: 500 19px/1.3 var(--font-head); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.drawer .btn { margin-top: 24px; flex: none; }
.drawer-contact { display: grid; gap: 4px; margin-top: 20px; font-size: 15px; color: var(--navy-100); }
.drawer-contact a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }

/* ---------- hero: photo skyline ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(clamp(150px, 30svh, 480px), 1fr); min-height: clamp(540px, calc(100svh - var(--utility-h)), 1040px); padding-top: var(--header-h); background: var(--white); overflow: hidden; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, clamp(460px, 40%, 600px)); gap: clamp(32px, 3.9vw, 72px); align-items: start; padding-block: clamp(20px, 4.4svh, 44px) clamp(16px, 3.1svh, 32px); }
.hero-headline { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(12px, 2svh, 18px); }
.hero h1 { font: 600 var(--t-h1)/1.1 var(--font-head); letter-spacing: -.01em; color: var(--navy-600); text-wrap: balance; }

.enquiry { display: flex; flex-direction: column; gap: 10px; }
.enquiry-sub { color: var(--text-2); line-height: 1.55; }
.form-context { padding: 6px 12px; border-radius: var(--r-sm); background: var(--navy-50); color: var(--navy-600); font-size: 14px; font-weight: 500; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-size: 14px; font-weight: 500; }
.field input { width: 100%; height: 48px; padding: 0 14px; font-size: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); outline: 0; transition: border-color var(--dur), box-shadow var(--dur); }
.field input::placeholder { color: var(--text-2); }
.field input:focus { border-color: var(--navy-600); box-shadow: 0 0 0 3px var(--navy-100); }
.phone-wrap { position: relative; }
.phone-wrap span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-2); }
.phone-wrap input { padding-left: 48px; text-overflow: ellipsis; }
.field-error { display: none; align-items: center; gap: 6px; color: var(--error); font-size: 13px; line-height: 1.3; }
.field-error .i { width: 14px; height: 14px; }
.field[data-invalid] input { border-color: var(--error); }
.field[data-invalid] .field-error { display: flex; }
.consent { display: flex; align-items: flex-start; gap: 10px; min-height: 24px; font-size: 13px; line-height: 1.45; color: var(--text-2); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--navy-600); cursor: pointer; }
.consent[data-invalid] + .consent-error { display: flex; }
.form-status { font-size: 14px; line-height: 1.45; }
.form-status:empty { display: none; }
.form-status[data-state="ok"] { color: var(--success); }
.form-status[data-state="error"] { color: var(--error); }
.form-status[data-state="info"] { color: var(--navy-600); }

.skyline { display: flex; align-items: flex-end; gap: 14px; min-height: 0; contain: size; }
.skyline li { flex: 1 1 0; min-width: 0; height: calc(var(--k) * 100%); overflow: hidden; border-radius: var(--r-photo) var(--r-photo) 0 0; background: var(--navy-100); transform-origin: bottom; animation: rise 700ms var(--ease) both; }
.skyline li:nth-child(2) { animation-delay: 60ms; } .skyline li:nth-child(3) { animation-delay: 120ms; } .skyline li:nth-child(4) { animation-delay: 180ms; } .skyline li:nth-child(5) { animation-delay: 240ms; } .skyline li:nth-child(6) { animation-delay: 300ms; }
.skyline img { width: 100%; height: 100%; object-fit: cover; }
@keyframes rise { from { transform: translateY(32px); } to { transform: none; } }

/* ---------- recognition ---------- */
.recognition { padding: 24px 0; background: var(--white); border-bottom: 1px solid var(--line); }
.recognition .wrap { display: flex; align-items: center; gap: 32px; }
.recognition-label { flex: none; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--text-2); }
.badges { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.badge { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface); border-radius: var(--r-md); }
.badge .i { color: var(--navy-600); }
.badge strong { display: block; font: 600 13px/1.3 var(--font-body); }
.badge small { display: block; font-size: 12px; line-height: 1.3; color: var(--text-2); }

/* ---------- PGDM + SAP: heading row, one wide photo, a white panel overlapping its lower edge ---------- */
.sap-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: end; margin-bottom: 40px; }
.sap-head .h2 { text-wrap: balance; }
.sap-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.sap-intro .lead { font-size: 16px; }
.sap-photo { overflow: hidden; border-radius: var(--r-card); background: var(--navy-100); }
.sap-photo img { width: 100%; height: clamp(320px, 30vw, 500px); object-fit: cover; object-position: 50% 12%; }
.sap-panel { position: relative; z-index: 1; margin: -84px clamp(16px, 2.8vw, 40px) 0; overflow: hidden; background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow-float); }
.sap-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sap-tools li { display: flex; flex-direction: column; gap: 12px; padding: 28px 26px; border-left: 1px solid var(--line); }
.sap-tools li:first-child { border-left: 0; }
.sap-tools .i { width: 24px; height: 24px; color: var(--navy-600); }
.sap-tools h3 { margin-bottom: 6px; font: 600 17px/1.3 var(--font-head); color: var(--ink); }
.sap-tools p { font-size: 14px; line-height: 1.55; color: var(--text-2); }
.sap-careers { display: flex; align-items: center; gap: 12px; padding: 16px 26px; background: var(--navy-600); color: var(--navy-100); font-size: 15px; line-height: 1.45; }
.sap-careers .i { color: var(--white); }
.sap-careers strong { font-weight: 600; color: var(--white); }
.icon-circle { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--navy-100); color: var(--navy-600); }

/* ---------- welcome ---------- */
.welcome-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(32px, 5.56vw, 80px); align-items: end; margin-bottom: 48px; }
.welcome-body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; color: var(--text-2); }
.mentor-link { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; color: var(--navy-600); }
.avatars { display: flex; }
.avatars img { width: 40px; height: 40px; margin-left: -12px; object-fit: cover; border: 2px solid var(--white); border-radius: 50%; }
.avatars img:first-child { margin-left: 0; }
.mentor-link-label { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--font-body); }
.mentor-link-label .i { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
@media (hover: hover) { .mentor-link:hover .i { transform: translateY(3px); } }
.welcome-body .btn-ghost { margin-top: -8px; }
.video-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 24px; align-items: stretch; }
.video-feature { position: relative; min-height: 440px; overflow: hidden; border-radius: var(--r-card); background: var(--navy-900); }
.video-feature > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-feature iframe { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; }
.play-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; text-align: left; color: var(--white); background: linear-gradient(180deg, rgba(15, 46, 77, 0) 40%, rgba(15, 46, 77, .86) 100%); border-radius: var(--r-card); }
.play-btn { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--navy-600); transition: transform var(--dur) var(--ease); }
@media (hover: hover) { .play-overlay:hover .play-btn, .playlist button:hover .play-btn { transform: scale(1.06); } }
.video-caption small { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.video-caption strong { display: block; font: 600 clamp(20px, 1.8vw, 26px)/1.25 var(--font-head); }
.video-caption span { display: block; margin-top: 4px; font-size: 14px; color: var(--navy-100); }
.playlist { display: flex; flex-direction: column; gap: 12px; }
.playlist-label { font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--text-2); }
.playlist button { flex: 1; display: flex; align-items: center; gap: 14px; padding: 16px; text-align: left; background: var(--surface); border-radius: var(--r-card); transition: background var(--dur); }
.playlist button[aria-current] { background: var(--navy-100); }
@media (hover: hover) { .playlist button:hover { background: var(--navy-100); } }
.thumb { position: relative; flex: none; width: 128px; height: 80px; overflow: hidden; border-radius: var(--r-md); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .play-btn { position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; }
.thumb .play-btn .i { width: 14px; height: 14px; }
.playlist small { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--text-2); }
.playlist strong { display: block; font: 600 14px/1.35 var(--font-head); }

/* ---------- specialisations ---------- */
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.spec-card { display: flex; flex-direction: column; gap: 10px; padding: 24px 28px; background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow-card); transition: transform var(--dur) var(--ease); }
@media (hover: hover) { .spec-card:hover { transform: translateY(-3px); } }
.spec-card h3 { display: flex; align-items: baseline; gap: 12px; font: 600 20px/1.3 var(--font-head); }
.spec-card h3 span { font-size: 15px; color: var(--navy-300); }
.spec-card > p { flex: 1; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.spec-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chip-sap { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--r-pill); background: var(--navy-100); color: var(--navy-600); font-size: 12px; font-weight: 600; }
.chip-sap .i { width: 14px; height: 14px; }

/* ---------- learning journey ---------- */
.ratio { display: flex; align-items: center; gap: 14px; flex: none; }
.ratio b { font: 600 clamp(32px, 2.8vw, 40px)/1 var(--font-head); color: var(--navy-600); }
.ratio span { font-size: 13px; line-height: 1.4; color: var(--text-2); }
.semesters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.semester { position: relative; padding-top: 34px; }
.semester::before { content: ""; position: absolute; left: 0; right: -24px; top: 6px; height: 2px; background: var(--navy-300); }
.semester:last-child::before { right: 0; }
.sem-dot { position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 2px solid var(--navy-600); }
.semester:first-child .sem-dot { background: var(--navy-600); }
.sem-card { height: 100%; padding: 22px 24px; background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.sem-card h3 { margin-bottom: 12px; font: 600 18px/1.3 var(--font-head); color: var(--navy-600); }
.ticks { display: grid; gap: 10px; }
.ticks li { display: flex; gap: 8px; font-size: 14px; line-height: 1.45; }
.ticks .i { width: 16px; height: 16px; margin-top: 2px; color: var(--navy-600); }
.note-pill { display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; padding: 10px 18px; border-radius: 24px; background: var(--navy-100); color: var(--navy-600); font-size: 14px; font-weight: 500; line-height: 1.45; }

/* ---------- placements ---------- */
.pl-head { margin-bottom: 40px; }
.pl-actions { display: flex; gap: 12px; flex: none; }
.ctc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--navy-600); border-bottom: 1px solid var(--line); }
.ctc > div { display: flex; flex-direction: column; gap: 8px; padding: 36px 40px; border-left: 1px solid var(--line); }
.ctc > div:first-child { padding-left: 0; border-left: 0; }
.ctc dd { display: flex; align-items: baseline; gap: 8px; color: var(--navy-600); }
.ctc b { position: relative; font: 600 clamp(40px, 4.45vw, 64px)/1 var(--font-head); font-variant-numeric: tabular-nums; }
.ctc b[data-shown] { color: transparent; }
.ctc b[data-shown]::after { content: attr(data-shown); position: absolute; left: 0; top: 0; color: var(--navy-600); }
.ctc dd span { font: 600 18px/1 var(--font-head); color: var(--navy-600); opacity: .7; }
.ctc dt { color: var(--text-2); font-size: 15px; }
.roles { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.roles h3 { font: 600 18px/1.35 var(--font-head); color: var(--navy-600); }
.roles ul { columns: 3; column-gap: 48px; }
.roles li { break-inside: avoid; padding-bottom: 12px; font-size: 15px; line-height: 1.4; }
.recruiters { padding-top: 32px; }
.recruiters-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.recruiters-head h3 { font: 400 15px/1.4 var(--font-body); color: var(--text-2); }
.pause-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); background: var(--white); color: var(--navy-600); font-size: 14px; font-weight: 600; transition: background var(--dur); }
@media (hover: hover) { .pause-btn:hover { background: var(--navy-100); } }
.pause-btn .i { width: 16px; height: 16px; }

/* marquee: one endless row (logos, mentors). JS doubles the row and adds .is-live; without it the row simply scrolls by hand */
.marquee { overflow-x: auto; scrollbar-width: thin; }
.marquee:focus-visible { outline-offset: -3px; }
.marquee-track { display: flex; width: max-content; }
.marquee.is-live { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee.is-live .marquee-track { animation: marquee var(--marquee-s, 60s) linear infinite; will-change: transform; }
.marquee.is-held .marquee-track, .marquee.is-paused .marquee-track, .marquee.is-off .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
.logos { align-items: center; height: 64px; }
.logo { flex: none; padding-right: 56px; }
.logo img { max-width: none; }

/* ---------- why RIIM ---------- */
.why { padding-bottom: var(--section-y); }
.why-head { max-width: 680px; margin-bottom: 40px; }
.why-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.why-ch { position: relative; overflow: hidden; border-radius: var(--r-card); background: var(--navy-50); }
.why-ch img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.why-card { padding: 20px 24px 24px; }
.why-count { font-size: 13px; color: var(--text-2); }
.why-card h3 { margin: 4px 0 6px; font: 600 20px/1.3 var(--font-head); }
.why-card p:last-child { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.why-index { display: none; }

.why.is-live .why-track { height: calc(100svh + 165svh); }
.why.is-live .why-sticky { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 16px; height: calc(100svh - 96px); }
.why.is-live .why-stage { position: relative; display: block; flex: 1; min-height: 0; overflow: hidden; border-radius: var(--r-card); }
.why.is-live .why-ch { position: absolute; inset: 0; border-radius: 0; clip-path: inset(var(--wipe, 100%) 0 0 0); }
.why.is-live .why-ch:first-child { clip-path: none; }
.why.is-live .why-ch img { height: 100%; aspect-ratio: auto; }
.why.is-live .why-card { position: absolute; left: 24px; bottom: 24px; width: min(420px, calc(100% - 48px)); background: var(--white); border-radius: 24px; box-shadow: var(--shadow-float); }
.why.is-live .why-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; flex: none; }
.why-index button { position: relative; width: 100%; min-height: 44px; padding-top: 10px; text-align: left; font-size: 14px; color: var(--text-2); border-top: 2px solid var(--line); transition: color var(--dur), border-color var(--dur); }
.why-index button span { margin-right: 4px; }
@media (hover: hover) { .why-index button:hover { color: var(--navy-600); } }
.why-index button[aria-current] { color: var(--navy-600); font-weight: 600; border-top-color: var(--navy-600); }

/* ---------- glimpses: photo collage ---------- */
.glimpses { position: relative; overflow: hidden; background: var(--navy-600); color: var(--white); }
.glimpses-grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 40px; align-items: center; padding: clamp(64px, 7.2vw, 104px) 0 clamp(64px, 7.2vw, 104px) var(--page-x); }
.glimpses-text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.glimpses .eyebrow { color: var(--navy-100); }
.glimpses h2 { font: 600 clamp(32px, 3.06vw, 52px)/1.15 var(--font-head); }
.glimpses-sub { color: var(--navy-100); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filters button { min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .1); font-size: 14px; font-weight: 500; transition: background var(--dur), color var(--dur); }
@media (hover: hover) { .filters button:hover { background: rgba(255, 255, 255, .2); } }
.filters button[aria-pressed="true"] { background: var(--white); color: var(--navy-600); }
.collage { position: relative; aspect-ratio: 840 / 600; }
.ring { position: absolute; left: 50%; top: 50%; aspect-ratio: 1; border: 1.5px solid rgba(255, 255, 255, .18); border-radius: 50%; transform: translate(-50%, -50%); }
.ring-1 { width: 114%; } .ring-2 { width: 86%; } .ring-3 { width: 57%; }
.print { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); padding: clamp(5px, .7vw, 10px); background: var(--white); box-shadow: 0 16px 36px rgba(0, 0, 0, .3); transform: rotate(var(--r)); transform-origin: top left; transition: opacity 180ms var(--ease), transform var(--dur) var(--ease); }
@media (hover: hover) { .print:hover { z-index: 5; transform: rotate(var(--r)) scale(1.03); } }
.print img { width: 100%; height: 100%; object-fit: cover; }
.collage.is-swapping .print { opacity: 0; }
.print:nth-of-type(1) { --x: 1.2%; --y: 8.3%; --w: 35.7%; --h: 36.7%; --r: -4deg; }
.print:nth-of-type(2) { --x: 33.3%; --y: 1%; --w: 41.7%; --h: 41.7%; --r: 3deg; }
.print:nth-of-type(3) { --x: 72.6%; --y: 9.3%; --w: 38.1%; --h: 38.3%; --r: -3deg; }
.print:nth-of-type(4) { --x: 4.8%; --y: 53%; --w: 39.3%; --h: 40%; --r: 2.5deg; }
.print:nth-of-type(5) { --x: 44.3%; --y: 54.3%; --w: 40.5%; --h: 40%; --r: -2.5deg; }
.print:nth-of-type(6) { --x: 82.1%; --y: 57.3%; --w: 34.5%; --h: 35%; --r: 3deg; }

/* ---------- fees ---------- */
.fees-head { margin-bottom: 48px; }
.fee-body { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: start; }
.fee-sheet { padding: 40px 44px; background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.fee-total { display: flex; flex-direction: column; gap: 8px; padding-bottom: 28px; }
.fee-label { font-size: 15px; font-weight: 600; color: var(--navy-600); }
.fee-amount { font: 600 clamp(40px, 4.17vw, 60px)/1.1 var(--font-head); color: var(--navy-600); }
.fee-total .muted { font-size: 15px; }
.fee-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; padding: 20px 0; border-top: 1px solid var(--line); }
.fee-line:last-child { padding-bottom: 0; }
.fee-line h3 { font: 500 16px/1.4 var(--font-head); }
.fee-line p { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.fee-line b { flex: none; font: 600 18px/1.4 var(--font-head); color: var(--navy-600); }
.scholarship { display: flex; flex-direction: column; align-items: flex-start; padding-top: 12px; }
.scholar-title { margin: 10px 0 28px; font: 600 clamp(22px, 1.95vw, 28px)/1.3 var(--font-head); }
.terms { width: 100%; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.terms > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.terms dt { font: 600 15px/1.55 var(--font-head); color: var(--navy-600); }
.terms dd { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.disclaimer { margin-top: 40px; font-size: 13px; line-height: 1.5; color: var(--text-2); }

/* ---------- admission steps ---------- */
.eligibility { display: flex; align-items: center; gap: 16px; padding: 22px 28px; margin-bottom: 40px; background: var(--navy-50); border-radius: var(--r-card); }
.eligibility h3 { font: 600 16px/1.3 var(--font-head); color: var(--navy-600); }
.eligibility p { font-size: 15px; line-height: 1.55; }
.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.step { position: relative; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 56px; right: -16px; top: 22px; height: 1px; background: var(--navy-300); }
.step-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--navy-600); color: var(--navy-600); background: var(--white); }
.step:first-child .step-ic { background: var(--navy-600); color: var(--white); }
.step small { display: block; margin-top: 16px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.step h3 { margin: 4px 0 6px; font: 600 16px/1.3 var(--font-head); }
.step p { font-size: 14px; line-height: 1.5; color: var(--text-2); }

/* ---------- blog ---------- */
.blog-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; }
.post-featured { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 8px; min-height: 520px; padding: 32px; overflow: hidden; border-radius: var(--r-card); color: var(--white); }
.post-featured img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.post-featured::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15, 46, 77, 0) 35%, rgba(15, 46, 77, .88) 100%); }
.post-featured > :not(img) { position: relative; z-index: 2; }
@media (hover: hover) { .post-featured:hover img, .post-small:hover img { transform: scale(1.04); } }
.post-featured h3 { font: 600 clamp(22px, 2.2vw, 30px)/1.25 var(--font-head); }
.date-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--r-pill); background: var(--yellow-100); color: var(--navy-700); font-size: 12px; font-weight: 600; }
.date-chip .i { width: 14px; height: 14px; }
.post-col { display: grid; gap: 24px; }
.post-small { display: flex; align-items: stretch; gap: 16px; padding: 16px; overflow: hidden; background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.post-small > img { flex: none; width: 150px; height: 100%; min-height: 180px; object-fit: cover; border-radius: 16px; transition: transform 400ms var(--ease); }
.post-small > div { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; }
.post-small h3 { font: 600 16px/1.35 var(--font-head); }
.read-more { display: inline-flex; align-items: center; gap: 6px; color: var(--navy-600); font: 500 14px/1 var(--font-head); }
.read-more .i { width: 16px; height: 16px; }

/* ---------- mentors ---------- */
.mentors .welcome-head { margin-bottom: 40px; }
.mentors-body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; color: var(--text-2); }
.mentor-track { padding-bottom: 4px; }
.mentor { flex: none; width: 216px; padding-right: 40px; }
.mentor img { width: 176px; height: 176px; object-fit: contain; border-radius: var(--r-photo); background: var(--navy-100); }
.mentor h3 { margin-top: 16px; font: 600 15px/1.35 var(--font-head); color: var(--navy-600); }
.mentor p { margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--text-2); }

/* ---------- FAQ ---------- */
.faq-help { flex: none; display: flex; flex-direction: column; gap: 4px; color: var(--navy-600); }
.faq-help small { font-size: 15px; color: var(--text-2); }
.faq-help strong { display: inline-flex; align-items: center; gap: 10px; font: 600 22px/1.2 var(--font-head); }
@media (hover: hover) { .faq-help:hover strong { text-decoration: underline; } }
.faq-list { border-bottom: 1px solid var(--line); }
.faq-item { display: grid; grid-template-columns: 420px minmax(0, 1fr) 76px; border-top: 1px solid var(--line); }
.faq-item[data-open] { border-top: 2px solid var(--navy-600); }
.faq-item h3 { grid-column: 1 / -1; grid-row: 1; display: grid; }
.faq-q { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; width: 100%; min-height: 84px; padding: 28px 0; text-align: left; font: 500 20px/1.35 var(--font-head); color: var(--ink); transition: color var(--dur); }
.faq-q > span { width: 420px; max-width: calc(100% - 48px); }
.faq-item[data-open] .faq-q { color: var(--navy-600); }
@media (hover: hover) { .faq-q:hover { color: var(--navy-600); } }
.faq-item[data-open] .faq-q { font-weight: 600; }
.faq-q .i { width: 22px; height: 22px; margin-top: 3px; color: var(--navy-600); }
.faq-minus { display: none; }
.faq-item[data-open] .faq-minus { display: block; }
.faq-item[data-open] .faq-plus { display: none; }
.faq-a { grid-column: 2; grid-row: 1; position: relative; z-index: 1; padding: 28px 0 28px 48px; color: var(--text-2); line-height: 1.6; max-width: 68ch; }
.faq-a a { color: var(--navy-600); font-weight: 500; text-decoration: underline; }

/* ---------- footer ---------- */
.footer { padding: 88px 0 36px; background: var(--navy-900); color: var(--white); }
.footer-close { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--navy-700); }
.footer-close h2 { margin-bottom: 14px; font: 600 clamp(28px, 2.5vw, 36px)/1.2 var(--font-head); }
.footer-close p { color: var(--navy-100); }
.footer-actions { display: flex; flex-wrap: wrap; gap: 16px; flex: none; }
.footer-cols { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 280px); gap: 48px; padding: 56px 0; border-bottom: 1px solid var(--navy-700); }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand .brand { gap: 14px; }
.footer-brand .brand img { width: 40px; height: 46px; }
.footer-name { font: 600 15px/1.35 var(--font-head); max-width: 250px; }
.footer-brand p { font-size: 14px; color: var(--navy-300); }
.footer h3 { margin-bottom: 12px; font: 600 15px/1.4 var(--font-head); }
.footer-links { display: grid; gap: 2px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 32px; font-size: 14px; color: var(--navy-300); }
@media (hover: hover) { .footer a:hover { color: var(--white); text-decoration: underline; } }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact h3 { margin-bottom: 4px; }
.footer-phone { font: 600 22px/1.3 var(--font-head); }
.footer-mail { font-size: 14px; color: var(--navy-100); }
.footer-contact p { font-size: 14px; line-height: 1.5; color: var(--navy-300); }
.footer-bottom { display: flex; align-items: center; gap: 32px; padding-top: 28px; font-size: 13px; color: var(--navy-300); }
.footer-bottom nav { flex: 1; display: flex; flex-wrap: wrap; gap: 24px; }
.footer-bottom nav a { display: inline-flex; align-items: center; min-height: 32px; }
.social { display: flex; gap: 4px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; color: var(--navy-100); }
.social .i { width: 18px; height: 18px; }

/* ---------- floating Enquire ---------- */
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: var(--r-pill); background: var(--yellow-500); color: var(--navy-700); font: 500 15px/1 var(--font-head); box-shadow: var(--shadow-float); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity var(--dur), transform var(--dur), visibility var(--dur), background var(--dur); }
.fab.is-visible { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .fab:hover { background: var(--yellow-600); } }

/* ---------- one-time entrance ---------- */
.rv-on [data-rv] { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); transition-delay: calc(var(--rv-i, 0) * 80ms); }
.rv-on [data-rv].is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .brand-full { display: none; }
  .badges { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .step:nth-child(3n)::before { display: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .faq-item { grid-template-columns: 320px minmax(0, 1fr) 56px; }
  .faq-q > span { width: 320px; }
  .site-header .btn { padding: 0 18px; }
  .glimpses-grid { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
  .roles ul { columns: 2; }
}
@media (max-width: 991px) {
  :root { --utility-h: 0px; --header-h: 64px; --t-h1: clamp(34px, 5.4vw, 48px); }
  .utility { display: none; }
  .site-header { top: 0; }
  .nav { display: none; }
  .site-header .wrap { gap: 8px; }
  .site-header .btn { margin-left: auto; height: 40px; padding: 0 14px; font-size: 14px; }
  .site-header .btn .i { display: none; }
  .brand img, .is-scrolled .brand img { width: 38px; height: 44px; }
  .menu-toggle { display: inline-flex; }
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
  .hero { min-height: 0; grid-template-rows: auto auto; }
  .hero-copy { grid-template-columns: 1fr; gap: 20px; }
  .skyline { height: clamp(200px, 38vw, 320px); gap: 10px; }
  .sap-head, .welcome-head, .video-grid, .fee-body, .blog-grid { grid-template-columns: minmax(0, 1fr); }
  .sap-head { gap: 20px; align-items: start; margin-bottom: 32px; }
  .sap-tools { grid-template-columns: 1fr 1fr; }
  .sap-tools li:nth-child(odd) { border-left: 0; }
  .sap-tools li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .welcome-head { gap: 20px; align-items: start; }
  .playlist { display: grid; grid-template-columns: 1fr 1fr; }
  .playlist-label { grid-column: 1 / -1; }
  .video-feature { min-height: 0; aspect-ratio: 16 / 9; }
  .semesters { grid-template-columns: 1fr 1fr; }
  .semester:nth-child(2n)::before { right: 0; }
  .roles { grid-template-columns: 1fr; gap: 16px; }
  .glimpses-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-right: var(--gutter); }
  .collage { aspect-ratio: 1 / 1.08; }
  .ring-1 { width: 118%; } .ring-2 { width: 88%; } .ring-3 { width: 58%; }
  .print:nth-of-type(1) { --x: 2%; --y: 2%; --w: 48%; --h: 29%; --r: -2.5deg; }
  .print:nth-of-type(2) { --x: 50%; --y: 3%; --w: 47%; --h: 29%; --r: 2deg; }
  .print:nth-of-type(3) { --x: 1%; --y: 35%; --w: 47%; --h: 29%; --r: 2deg; }
  .print:nth-of-type(4) { --x: 50%; --y: 36%; --w: 48%; --h: 29%; --r: -2deg; }
  .print:nth-of-type(5) { --x: 3%; --y: 69%; --w: 47%; --h: 29%; --r: -2deg; }
  .print:nth-of-type(6) { --x: 50%; --y: 69%; --w: 47%; --h: 29%; --r: 2.5deg; }
  .post-featured { min-height: 400px; }
  .post-col { grid-template-columns: 1fr 1fr; }
  .post-small { flex-direction: column; }
  .post-small > img { width: 100%; height: 160px; min-height: 0; }
  .post-small > div { justify-content: flex-start; }
  .faq-item { grid-template-columns: minmax(0, 1fr); }
  .faq-item h3, .faq-a { grid-column: 1; grid-row: auto; }
  .faq-q { min-height: 64px; padding: 20px 0; font-size: 18px; }
  .faq-q > span { width: auto; }
  .faq-item[data-open] .faq-q { padding-bottom: 8px; }
  .faq-a { padding: 0 40px 20px 0; }
  .footer { padding-top: 64px; }
  .footer-close { flex-direction: column; align-items: flex-start; padding-bottom: 40px; }
  .footer-cols { padding: 40px 0; gap: 32px; }
}
@media (max-width: 767px) {
  :root { --gutter: 16px; }
  .head-row { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
  .welcome-head { margin-bottom: 32px; }
  .brand-name { font-size: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .skyline { height: 190px; gap: 8px; }
  .skyline li:nth-child(n+5) { display: none; }
  .skyline li { border-radius: 14px 14px 0 0; }
  .recognition .wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
  .badges { width: 100%; grid-template-columns: 1fr 1fr; }
  .badge { padding: 10px; }
  .badge:last-child { grid-column: 1 / -1; }
  .spec-grid, .semesters, .why-stage, .post-col { grid-template-columns: minmax(0, 1fr); }
  .sap-intro .btn { width: 100%; }
  .sap-photo img { height: auto; aspect-ratio: 792 / 614; object-position: 50% 0; }
  .sap-panel { margin: -40px 10px 0; border-radius: 22px; }
  .sap-tools { grid-template-columns: minmax(0, 1fr); }
  .sap-tools li { flex-direction: row; gap: 14px; padding: 18px; border-left: 0; }
  .sap-tools li:nth-child(n+2) { border-top: 1px solid var(--line); }
  .sap-tools .i { margin-top: 1px; }
  .sap-careers { align-items: flex-start; padding: 16px 18px; font-size: 14px; }
  .spec-card { padding: 22px; }
  .spec-grid { gap: 16px; }
  .semester { padding: 0 0 0 28px; }
  .semester::before, .semester:nth-child(2n)::before { left: 6px; right: auto; top: 0; bottom: -24px; width: 2px; height: auto; }
  .semester:last-child::before { bottom: 0; }
  .sem-dot { top: 4px; }
  .note-pill { align-items: flex-start; border-radius: var(--r-md); }
  .playlist { grid-template-columns: minmax(0, 1fr); }
  .play-overlay { padding: 16px; }
  .play-btn { width: 48px; height: 48px; }
  .video-feature { aspect-ratio: 4 / 3; }
  .video-caption strong { font-size: 18px; }
  .video-caption span { display: none; }
  .pl-actions { width: 100%; flex-direction: column; }
  .pl-actions .btn, .footer-actions .btn { width: 100%; }
  .footer-actions { width: 100%; }
  .ctc { grid-template-columns: minmax(0, 1fr); }
  .ctc > div { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .ctc > div:first-child { border-top: 0; }
  .ctc b { font-size: 44px; }
  .roles { padding: 24px 0; }
  .roles ul { columns: 1; }
  .fee-sheet { padding: 28px 22px; }
  .fee-line { gap: 16px; }
  .terms > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .eligibility { align-items: flex-start; padding: 20px; }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; padding-bottom: 24px; }
  .step-ic { grid-row: 1 / span 3; }
  .step small { margin-top: 0; }
  .step:not(:last-child)::before, .step:nth-child(3n):not(:last-child)::before { display: block; left: 22px; right: auto; top: 44px; bottom: 0; width: 1px; height: auto; }
  .post-featured { min-height: 340px; padding: 22px; }
  .post-small { flex-direction: row; }
  .post-small > img { width: 112px; height: auto; min-height: 136px; }
  .mentor { width: 176px; padding-right: 24px; }
  .mentor img { width: 152px; height: 152px; }
  .marquee.is-live { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
  .faq-help strong { font-size: 20px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; padding-bottom: 72px; }
  .fab { right: 16px; bottom: 16px; }
}
@media (max-width: 379px) {
  .badges { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
}

/* laptops with a short screen: keep the form and the first photos in view */
@media (min-width: 992px) and (max-height: 760px) {
  .enquiry { gap: 7px; }
  .enquiry-sub { font-size: 14px; line-height: 1.4; }
  .field input { height: 42px; }
  .hero .btn-primary { height: 44px; }
}

/* ---------- phones: same content, shorter page. Desktop and tablet are not affected ---------- */
.rail-meter { display: none; }
@media (max-width: 767px) {
  .site-header .btn { height: 44px; padding: 0 18px; }
  .spec-card:hover { transform: none; }
  #welcome .playlist small { font-size: 12px; }

  /* PGDM + SAP */
  .sap-tools li { padding: 16px; }
  .sap-tools h3 { margin-bottom: 4px; font-size: 16px; }

  /* Specialisations: one list, each row opens the curriculum enquiry */
  .spec-grid { gap: 0; overflow: hidden; background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
  .spec-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 36px; column-gap: 12px; row-gap: 4px; align-items: center; padding: 16px; background: transparent; border-radius: 0; box-shadow: none; }
  .spec-card + .spec-card { border-top: 1px solid var(--line); }
  .spec-card h3 { grid-column: 1; font-size: 17px; }
  .spec-card h3 span, .chip-sap, .spec-foot .btn > span { display: none; }
  .spec-card > p { grid-column: 1; font-size: 14px; line-height: 1.45; }
  .spec-foot { grid-column: 2; grid-row: 1 / span 2; }
  .spec-foot .btn { position: static; justify-content: center; width: 36px; height: 36px; min-height: 0; padding: 0; border-radius: 50%; background: var(--navy-100); }
  .spec-foot .btn::after { content: ""; position: absolute; inset: 0; }

  /* Swipe rows: semesters and Why RIIM */
  .semesters, .why-stage { display: flex; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .semesters::-webkit-scrollbar, .why-stage::-webkit-scrollbar { display: none; }
  .semester { flex: 0 0 min(84%, 320px); padding: 28px 0 0; scroll-snap-align: start; }
  .semester::before, .semester:nth-child(2n)::before { left: 0; right: -12px; top: 6px; bottom: auto; width: auto; height: 2px; }
  .semester:last-child::before { right: 0; bottom: auto; }
  .sem-dot { top: 0; }
  .why-head { margin-bottom: 24px; }
  .why-ch { display: flex; flex: 0 0 min(86%, 340px); flex-direction: column; scroll-snap-align: start; }
  .why-card { flex: 1; padding: 16px 18px 18px; }
  .why-card p:last-child { font-size: 14px; }
  .rail-meter { display: flex; gap: 6px; }
  .rail-meter i { flex: 1; height: 3px; border-radius: 2px; background: var(--line); transition: background var(--dur); }
  .rail-meter i[data-on] { background: var(--navy-600); }

  /* Placements: the numbers first, the buttons after the proof */
  #placements .wrap, #admission .wrap { display: flex; flex-direction: column; }
  #placements .pl-head, #admission .head-row { display: contents; }
  #placements .section-head, #admission .section-head { margin-bottom: 24px; }
  #placements .pl-actions { order: 1; margin-top: 24px; }
  .ctc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ctc > div { padding: 18px 0; }
  .ctc > div:first-child { grid-column: 1 / -1; }
  .ctc > div:nth-child(2) { padding-right: 12px; }
  .ctc > div:nth-child(3) { padding-left: 16px; border-left: 1px solid var(--line); }
  .ctc b { font-size: 34px; }
  .ctc > div:first-child b { font-size: 52px; }
  .ctc dd { gap: 5px; }
  .ctc dd span { font-size: 14px; }
  .ctc dt { font-size: 14px; }
  .roles { gap: 14px; padding: 22px 0; }
  .roles h3 br { display: none; }
  .roles ul { display: flex; flex-wrap: wrap; gap: 8px; columns: auto; }
  .roles li { padding: 7px 11px; font-size: 14px; line-height: 1.3; background: var(--white); border-radius: 8px; }

  /* Fees */
  #fees-title br { display: none; }
  #fees .btn-primary { width: 100%; }

  /* Admission: the steps first, then Apply */
  #admission .btn-primary { order: 1; width: 100%; margin-top: 8px; }
  .eligibility { padding: 16px; }
  .eligibility .icon-circle { display: none; }
  .step { padding-bottom: 18px; }

  /* Blog */
  .post-featured { min-height: 280px; }
  .post-featured::before { background: linear-gradient(180deg, rgba(15, 46, 77, .05) 12%, rgba(15, 46, 77, .92) 68%); }
  .post-col { gap: 12px; }
  .post-small { gap: 14px; padding: 12px; }
  .post-small > img { width: 96px; min-height: 112px; }

  /* Footer: every link is a comfortable tap */
  .footer-cols { column-gap: 16px; row-gap: 24px; }
  .footer-links { gap: 0; }
  .footer-links a { min-height: 48px; padding: 6px 0; line-height: 1.3; }
  .footer-phone, .footer-mail { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-bottom { gap: 4px; padding-bottom: 24px; }
  .footer-bottom nav { flex: none; gap: 0 20px; }
  .footer-bottom nav a { min-height: 44px; }
  .social { margin-left: -13px; }
}
@media (max-width: 379px) {
  .ctc b { font-size: 28px; }
  .ctc > div:nth-child(3) { padding-left: 12px; }
}

/* ---------- touch screens: pressed states, larger targets, swipeable rows ---------- */
html { -webkit-tap-highlight-color: rgba(15, 46, 77, .1); }
a, button, label, input, [tabindex] { touch-action: manipulation; }
.drawer { overscroll-behavior: contain; }
.marquee.is-live.is-touch { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.marquee.is-touch::-webkit-scrollbar { display: none; }
.marquee.is-live.is-touch .marquee-track { animation: none; will-change: auto; }
@media (pointer: coarse) {
  .btn-primary:active, .fab:active { background: var(--yellow-600); }
  .btn-secondary:active { background: var(--navy-700); }
  .btn-outline:active { background: rgba(255, 255, 255, .14); }
  .spec-card:active, .playlist button:active, .pause-btn:active { background: var(--navy-100); }
  .filters button:not([aria-pressed="true"]):active { background: rgba(255, 255, 255, .22); }
  .faq-q:active { color: var(--navy-600); }
  .consent { min-height: 44px; padding-block: 3px; }
  .consent input { width: 24px; height: 24px; }
  .footer-links a { display: flex; width: 100%; min-height: 44px; }
  .footer-bottom nav a { min-height: 44px; }
  .footer-contact p a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; }
}
@media (max-width: 991px) and (pointer: coarse) {
  .site-header .btn { height: 44px; }
}

/* ---------- phones held sideways: headline and form side by side, so Enquire is in view ---------- */
@media (max-width: 991px) and (max-height: 500px) and (orientation: landscape) {
  :root { --header-h: 52px; }
  html { scroll-padding-top: 64px; }
  .site-header, .site-header.is-scrolled { height: 52px; }
  .brand img, .is-scrolled .brand img { width: 30px; height: 35px; }
  .hero-copy { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; align-items: center; padding-block: 10px; }
  .hero h1 { font-size: clamp(24px, 4.2vw, 34px); }
  .enquiry { gap: 6px; }
  .enquiry-sub { font-size: 13px; line-height: 1.35; }
  .field-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .field label { font-size: 13px; }
  .field input { height: 44px; padding-inline: 10px; }
  .phone-wrap span { left: 10px; }
  .phone-wrap input { padding-left: 42px; padding-right: 6px; }
  .consent { min-height: 0; font-size: 12px; line-height: 1.3; }
  .hero .btn-primary { height: 44px; }
  .skyline { height: 150px; }
}

/* ---------- mobile pass: phones and tablets only, desktop is not affected ---------- */
html.is-locked, html.is-locked body { overflow: hidden; }
.fab.is-visible.is-yielding { opacity: 0; visibility: hidden; transition-duration: 120ms; } /* set by JS on phones and touch tablets only */
@media (max-width: 991px) {
  .brand { min-height: 44px; }
  .drawer { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
  .fab { right: calc(var(--gutter) + env(safe-area-inset-right, 0px)); bottom: calc(var(--gutter) + env(safe-area-inset-bottom, 0px)); }

  /* errors have a reserved line, so the form does not jump when they appear */
  .enquiry { gap: 6px; }
  .field { gap: 2px; }
  .field-row { row-gap: 2px; }
  .field-error { display: flex; visibility: hidden; min-height: 18px; }
  .field[data-invalid] .field-error, .consent[data-invalid] + .consent-error { visibility: visible; }
  .hero .btn-primary { margin-top: 2px; }
  .consent { min-height: 44px; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .pl-head { flex-wrap: wrap; }
  .footer-bottom { flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }
  .footer-bottom nav { order: 3; flex: 1 0 100%; }
}
@media (max-width: 767px) {
  :root { --t-h1: 36px; --t-h2: 28px; --section-y: 64px; }
  .glimpses h2 { font-size: 28px; }
}
@media (max-width: 359px) {
  :root { --t-h1: 34px; }
  .hero .eyebrow { letter-spacing: .07em; }
  .consent-error { min-height: 32px; align-items: flex-start; line-height: 1.2; }
  .mentor-link { gap: 10px; }
  .mentor-link-label { white-space: nowrap; }
  .avatars img { width: 36px; height: 36px; margin-left: -10px; }
  .fee-line { flex-direction: column; gap: 4px; }
}
@media (max-width: 359px) and (max-height: 700px) {
  :root { --t-h1: 32px; }
}
/* small phones: name, mobile and Enquire stay on the first screen */
@media (max-width: 767px) and (max-height: 700px) {
  .hero-copy { gap: 10px; padding-block: 12px 14px; }
  .hero-headline { gap: 8px; }
  .enquiry-sub { font-size: 15px; line-height: 1.4; }
  .field input { height: 44px; }
  .hero .btn-primary { height: 46px; }
}
@media (max-width: 991px) and (max-height: 500px) and (orientation: landscape) {
  .field-error { font-size: 12px; }
}
/* touch tablets that still get the desktop header */
@media (max-width: 1199px) and (pointer: coarse) {
  .footer-phone, .footer-mail { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (min-width: 992px) and (max-width: 1199px) and (pointer: coarse) {
  :root { --utility-h: 44px; }
  .utility a { min-height: 44px; }
  .nav > a { min-width: 44px; justify-content: center; }
  .enquiry { gap: 6px; }
  .field { gap: 2px; }
  .field-error { display: flex; visibility: hidden; min-height: 18px; font-size: 12px; }
  .field[data-invalid] .field-error, .consent[data-invalid] + .consent-error { visibility: visible; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
