/* RIIM Pune · PGDM + SAP landing page
   Built from pen.dev "Home · Final Design 1". 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;
  --success: #1F8A5B;
  --error: #C2410C;

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

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(15,46,77,.06), 0 1px 3px rgba(15,46,77,.08);
  --shadow-2: 0 8px 24px rgba(15,46,77,.10);
  --shadow-3: 0 16px 40px rgba(15,46,77,.14);
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur-fast: 150ms; --dur: 250ms; --dur-slow: 500ms;

  --gutter: 24px;
  --header-h: 88px;
  --utility-h: 36px;

  /* Fluid sizes (Taste skill method): each value runs in a straight line from the phone size at
     390px to the design size at 1440px, then holds. A second line from 1440 to 1920 is set in the
     min-width: 1441px block below. Endpoints come from riim-design-pattern.md (type 52/40, sections 96/64). */
  --container: clamp(1200px, 75vw, 1560px);   /* 1200 up to 1600px wide, 1440 at 1920, 1560 from 2080 */
  --section-y: clamp(64px, 3.048vw + 52.1px, 96px);
  --t-body: 15.2px;
  --t-lead: clamp(15.2px, .18vw + 14.497px, 17.1px);
  --t-h1: clamp(34.2px, 1.448vw + 28.557px, 49.4px);
  --t-h2: clamp(26.6px, 1.086vw + 22.363px, 38px);
  --t-cta: clamp(32.3px, 1.628vw + 25.944px, 49.4px);
  --col-gap: clamp(40px, 5.56vw, 120px);      /* gap beside a side column: 80 at 1440 */
}
@media (min-width: 1441px) {
  :root {
    --section-y: clamp(96px, 3.333vw + 48px, 112px);
    --header-h: clamp(88px, 1.667vw + 64px, 96px);
    --t-body: clamp(15.2px, .198vw + 12.35px, 16.15px);
    --t-lead: clamp(17.1px, .396vw + 11.4px, 19px);
    --t-h1: clamp(49.4px, 2.375vw + 15.2px, 60.8px);
    --t-h2: clamp(38px, 1.584vw + 15.2px, 45.6px);
    --t-cta: clamp(49.4px, 1.188vw + 32.3px, 55.1px);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0; font-family: var(--font-body); font-size: var(--t-body); line-height: 1.6;
  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, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ul, ol, 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; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 24px; height: 24px; }

/* Focus ring: navy-600 on light backgrounds, navy-300 on dark ones (WCAG 1.4.11, 3:1 or more either way) */
:focus-visible { outline: 3px solid var(--focus, var(--navy-600)); outline-offset: 2px; border-radius: 6px; }
.utility, .site-header:not(.is-scrolled), .drawer, .hero, .on-dark, .bg-navy-900, .scholar-card, .footer { --focus: var(--navy-300); }
.enquiry { --focus: var(--navy-600); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200; padding: 12px 18px;
  background: var(--yellow-500); color: var(--navy-600); 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); }
.bg-navy-900 { background: var(--navy-900); color: var(--white); }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; flex-direction: column; gap: 8px;
  font: 600 11.4px/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); }
.on-dark .eyebrow { color: var(--navy-300); }
.h2 { font: 600 var(--t-h2)/1.2 var(--font-head); color: var(--navy-600); }
.on-dark .h2 { color: var(--white); }
.lead { font-size: var(--t-lead); line-height: 1.6; color: var(--text-2); max-width: 64ch; }
.section-head { display: flex; flex-direction: column; 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 14.25px/1 var(--font-head); white-space: nowrap;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur-fast) var(--ease), color var(--dur);
}
.btn .i { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.btn:hover .i-arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--yellow-500); color: var(--navy-600); }
.btn-primary:hover { background: var(--yellow-600); color: var(--navy-900); box-shadow: var(--shadow-2); }   /* navy-900 keeps 4.5:1 on yellow-600 */
.btn-secondary { background: var(--navy-600); color: var(--white); }
.btn-secondary:hover { background: var(--navy-700); }
.btn-outline { box-shadow: inset 0 0 0 1.5px var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-ghost { position: relative; height: auto; padding: 4px 0; color: var(--navy-600); }
.btn-ghost::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }   /* 44px tap area, no layout change */
.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; }
.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: 12.35px; 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; }
.utility .i { width: 14px; height: 14px; color: var(--navy-300); }
.utility-contacts { display: flex; gap: 24px; }
.utility a:hover { text-decoration: underline; }

.site-header {
  position: absolute; top: var(--utility-h); left: 0; right: 0; z-index: 50;
  height: var(--header-h); color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: height var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur);
}
.site-header.is-fixed { position: fixed; top: 0; }
.site-header.is-scrolled { height: 64px; background: var(--white); color: var(--ink); box-shadow: var(--shadow-1); 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 { font: 600 17.1px/1.2 var(--font-head); display: block; }
.brand-full { font-size: 10.45px; line-height: 1.3; color: var(--navy-300); display: block; }
.is-scrolled .brand-name { color: var(--navy-600); }
.is-scrolled .brand-full { color: var(--text-2); }

.nav { display: flex; align-items: center; gap: clamp(28px, .833vw + 16px, 32px); }
.nav > a, .nav-more > button {
  position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 10px 0;
  font: 500 clamp(14.25px, .198vw + 11.4px, 15.2px)/1 var(--font-body);
}
.nav > a::after, .nav-more > button::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 2px; height: 2px; border-radius: 1px;
  background: var(--yellow-500); transition: left var(--dur) var(--ease), right var(--dur) var(--ease);
}
.nav > a:hover::after, .nav > a[aria-current="true"]::after, .nav-more > button:hover::after { left: 0; right: 0; }
.is-scrolled .nav > a:hover, .is-scrolled .nav > a[aria-current="true"] { 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% + 10px); right: -16px; min-width: 220px; padding: 8px;
  background: var(--white); color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-3);
  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: 14.25px; }
.nav-menu a:hover { background: var(--navy-50); color: var(--navy-600); }

.lbl-short { display: none; }
.menu-toggle { display: none; flex: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--r-md); }
.menu-toggle .i { width: 24px; height: 24px; }

.drawer {
  position: fixed; inset: 0; z-index: 100; background: var(--navy-900); color: var(--white);
  display: flex; flex-direction: column; padding: 16px var(--gutter) 32px; overflow-y: auto;
  transform: translateX(100%); transition: transform var(--dur) var(--ease); visibility: hidden;
}
.drawer[data-open] { transform: none; visibility: visible; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; height: 56px; margin-bottom: 16px; }
.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 .drawer-contact { margin-top: 24px; display: grid; gap: 12px; font-size: 14.25px; color: var(--navy-100); }
.drawer .drawer-contact a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.drawer .btn { margin-top: 24px; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: var(--white);
  background:
    linear-gradient(90deg, rgba(15,46,77,.98) 0%, rgba(15,46,77,.92) 55%, rgba(15,46,77,.65) 100%),
    url("../images/hero-convocation.webp") center / cover no-repeat,
    var(--navy-900);
  padding: calc(var(--header-h) + clamp(12px, 6svh - 18px, 36px)) 0 32px; /* 36 under the header at 900 tall, 18 at 600 */
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(400px, 32vw, 500px); gap: var(--col-gap); align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 20px; }
.hero .eyebrow { color: var(--navy-300); }
.hero h1 { font: 600 min(var(--t-h1), max(7.22svh, 28.5px))/1.12 var(--font-head); letter-spacing: -.01em; }
.hero-sub { font-size: var(--t-lead); line-height: 1.6; color: var(--navy-100); max-width: 60ch; }
.points { display: grid; gap: 12px; padding: 4px 0; }
.points li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.tick { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); flex: none; }
.tick .i { width: 14px; height: 14px; color: var(--yellow-500); }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 8px; }
.helpline { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.helpline .i { color: var(--navy-300); }
.helpline small { display: block; font-size: 11.4px; font-weight: 500; color: var(--navy-300); line-height: 1.3; }
.helpline strong { display: block; font: 600 15.2px/1.3 var(--font-head); }
.helpline:hover strong { text-decoration: underline; }

/* enquiry form */
.enquiry {
  background: var(--white); color: var(--ink); border-radius: 20px; padding: 26px 28px;
  box-shadow: 0 24px 56px rgba(0,0,0,.3); display: grid; gap: 12px;
}
.enquiry h2 { font: 600 20.9px/1.3 var(--font-head); }
.enquiry-sub { font-size: 13.3px; line-height: 1.5; color: var(--text-2); }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.3px; font-weight: 500; }
.field input, .field select {
  height: 48px; width: 100%; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--white); font-size: 16px; transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field select { appearance: none; padding-right: 40px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235B6470' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.field input::placeholder { color: var(--text-2); }
.field input:focus, .field select:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px var(--navy-100); }
.field[data-invalid] input, .field[data-invalid] select { border-color: var(--error); }
.field-error { display: none; align-items: center; gap: 6px; font-size: 12.35px; color: var(--error); }
.field-error .i { width: 14px; height: 14px; }
.field[data-invalid] .field-error { display: flex; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.phone-wrap { position: relative; }
.phone-wrap span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-2); font-size: 16px; }
.phone-wrap input { padding-left: 52px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.35px; line-height: 1.45; color: var(--text-2); }
.consent input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--navy-600); }
.consent-wrap { display: grid; gap: 6px; }
.consent-wrap[data-invalid] .consent { color: var(--error); }
.consent-wrap[data-invalid] .field-error { display: flex; }
.form-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 11.4px; font-weight: 500; color: var(--text-2); }
.form-foot a { color: var(--navy-600); font-weight: 600; }
.form-status { font-size: 13.3px; border-radius: var(--r-md); padding: 12px 14px; display: none; }
.form-status[data-state="ok"] { display: block; background: #E8F5EE; color: #176B47; }   /* 5.8:1 */
.form-status[data-state="info"] { display: block; background: var(--navy-50); color: var(--navy-600); }
.form-status[data-state="error"] { display: block; background: #FDF0E9; color: var(--error); }

.fact-bar {
  margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 18px 8px;
  border-radius: var(--r-lg); background: rgba(15,46,77,.6); border: 1px solid rgba(255,255,255,.15);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.fact { display: flex; align-items: center; gap: 14px; padding: 0 24px; }
.fact + .fact { border-left: 1px solid rgba(255,255,255,.15); }
.fact .i { color: var(--navy-300); width: 22px; height: 22px; }
.fact strong { display: block; font: 600 16.15px/1.3 var(--font-head); }
.fact small { display: block; font-size: 12.35px; font-weight: 500; color: var(--navy-300); }

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

/* ---------- PGDM + SAP ---------- */
.sap-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(400px, 36.1vw, 620px); gap: var(--col-gap); align-items: center; }
.sap-text { display: flex; flex-direction: column; gap: 28px; }
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.value { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 12px; align-content: start; }
.icon-circle { width: 44px; height: 44px; border-radius: 50%; background: var(--navy-100); color: var(--navy-600); display: grid; place-items: center; }
.icon-circle .i { width: 22px; height: 22px; }
.value h3 { font: 600 17.1px/1.3 var(--font-head); }
.value p { font-size: 14.25px; line-height: 1.55; color: var(--text-2); }
.sap-careers { display: flex; gap: 12px; align-items: flex-start; font-size: 14.25px; line-height: 1.55; color: var(--text-2); }
.sap-careers .i { color: var(--navy-600); margin-top: 1px; }
.sap-careers strong { color: var(--ink); font-weight: 600; }
.placeholder { outline: 1.5px dashed var(--yellow-600); outline-offset: 4px; }
.sap-photo { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 520 / 600; }
.sap-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- welcome / videos ---------- */
.welcome-head { display: grid; grid-template-columns: minmax(0, 1fr) clamp(400px, 36.1vw, 620px); gap: var(--col-gap); align-items: end; margin-bottom: 48px; }
.welcome-head p { color: var(--text-2); margin-bottom: 16px; }
.video-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(360px, 30.6vw, 480px); gap: 24px; }
.video-feature {
  position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy-900);
  color: var(--white);
}
.video-feature > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,46,77,0) 45%, rgba(15,46,77,.85) 100%); pointer-events: none; }
.video-feature button.play-overlay { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 32px; text-align: left; }
.play-btn { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--navy-600); display: grid; place-items: center; transition: transform var(--dur) var(--ease); }
.play-btn .i { width: 28px; height: 28px; margin-left: 3px; }
.play-overlay:hover .play-btn { transform: scale(1.06); }
.video-caption small { display: block; font-size: 11.4px; font-weight: 600; letter-spacing: .1em; color: var(--navy-100); }
.video-caption strong { display: block; font: 600 26.6px/1.25 var(--font-head); margin: 6px 0; }
.video-caption span { display: block; font-size: 15.2px; color: var(--navy-100); }
.video-feature iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.playlist { display: flex; flex-direction: column; gap: 12px; }
.playlist-label { font-size: 11.4px; font-weight: 600; letter-spacing: .1em; color: var(--text-2); }
.playlist button {
  display: flex; align-items: center; gap: 16px; width: 100%; padding: 12px; text-align: left;
  border-radius: var(--r-lg); background: var(--surface); transition: background var(--dur), transform var(--dur);
}
.playlist button:hover { background: var(--navy-50); transform: translateY(-2px); }
.playlist button[aria-current="true"] { box-shadow: inset 0 0 0 1.5px var(--navy-300); }
.thumb { position: relative; width: 180px; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .play-btn { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; transform: translate(-50%, -50%); }
.thumb .play-btn .i { width: 16px; height: 16px; }
.playlist small { display: block; font-size: 10.45px; font-weight: 600; letter-spacing: .1em; color: var(--text-2); }
.playlist strong { display: block; font: 600 14.25px/1.35 var(--font-head); margin-top: 4px; }

/* ---------- placements ---------- */
.placements { overflow: hidden; }
.placements-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(380px, 38.9vw, 640px); gap: clamp(40px, 3.33vw, 64px); }
.placement-text { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: var(--section-y) 0; }
.kpis { display: grid; grid-template-columns: 1fr auto auto; align-items: end; padding: 28px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.kpi small { display: block; font-size: 11.4px; font-weight: 600; letter-spacing: .12em; color: var(--navy-300); margin-bottom: 4px; }
.kpi-value { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-head); font-weight: 600; }
.kpi-value b { font-size: clamp(53.2px, 3.657vw + 15.77px, 68.4px); line-height: 1; font-weight: 600; }
.kpi-value span { font-size: 22.8px; color: var(--navy-300); }
.kpi-main { padding-right: 32px; border-right: 1px solid rgba(255,255,255,.12); }
.kpi-sm { padding: 0 0 6px 28px; min-width: 170px; }
.kpi-sm .kpi-value b { font-size: clamp(28.5px, 1.368vw + 14.535px, 34.2px); }
.kpi-sm .kpi-value span { font-size: 14.25px; }
.pathways h3 { font: 600 15.2px/1.3 var(--font-head); color: var(--navy-100); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-role { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--r-pill); font-size: 13.3px; font-weight: 500; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.placement-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* contain: size = the logo columns never set the height; the waterfall stretches to the text column beside it */
.waterfall { position: relative; contain: size; min-height: 560px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 140px, #000 calc(100% - 180px), transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 140px, #000 calc(100% - 180px), transparent 100%); }
.waterfall-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; height: 100%; }
.wf-col { display: flex; flex-direction: column; gap: 16px; padding-bottom: 16px; animation: wf-up var(--wf-dur, 48s) linear infinite; will-change: transform; }
.wf-col:nth-child(1) { --wf-dur: 52s; margin-top: -30px; }
.wf-col:nth-child(2) { --wf-dur: 64s; margin-top: -150px; }
.wf-col:nth-child(3) { --wf-dur: 58s; margin-top: -80px; }
.waterfall:hover .wf-col, .waterfall[data-paused] .wf-col { animation-play-state: paused; }
@keyframes wf-up { to { transform: translateY(-50%); } }
.logo-tile { height: 96px; flex: none; border-radius: var(--r-lg); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); display: grid; place-items: center; padding: 0 22px; }
.logo-tile img { max-height: 36px; max-width: 100%; width: auto; opacity: .92; }
.logo-tile img.wide { max-height: 30px; }
.waterfall-label { position: absolute; top: 28px; left: 0; z-index: 2; padding: 8px 14px; border-radius: var(--r-pill); background: rgba(15,46,77,.95); box-shadow: inset 0 0 0 1px var(--navy-700); font-size: 12.35px; font-weight: 600; }
.wf-pause { position: absolute; right: 0; bottom: 24px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); color: var(--white); }
.wf-pause .i { width: 16px; height: 16px; }

/* ---------- specialisations ---------- */
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.spec-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-height: 172px;
  padding: 24px 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.spec-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.spec-title { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.spec-title span { font: 600 13.3px/1 var(--font-head); color: var(--text-2); }
.spec-title h3 { font: 600 19.95px/1.3 var(--font-head); }
.spec-card p { font-size: 14.25px; line-height: 1.55; color: var(--text-2); }
.spec-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.chip-sap { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--r-pill); background: var(--navy-50); color: var(--navy-600); font-size: 11.4px; font-weight: 600; }
.chip-sap .i { width: 14px; height: 14px; }
.spec-link { display: inline-flex; align-items: center; gap: 6px; font: 500 13.3px/1 var(--font-head); color: var(--navy-600); min-height: 44px; }
.spec-link .i { width: 16px; height: 16px; transition: transform var(--dur); }
.spec-card:hover .spec-link .i { transform: translateX(4px); }

/* ---------- learning journey ---------- */
.ratio { display: flex; align-items: center; gap: 16px; }
.ratio b { font: 600 45.6px/1 var(--font-head); color: var(--navy-600); }
.ratio span { font-size: 13.3px; font-weight: 500; color: var(--text-2); line-height: 1.4; }
.semesters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.sem-rail { display: flex; align-items: center; margin-bottom: 16px; }
.sem-rail i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--navy-600); background: var(--white); flex: none; }
.semester:first-child .sem-rail i { background: var(--navy-600); }
.sem-rail b { flex: 1; height: 2px; background: var(--navy-300); }
.semester:last-child .sem-rail b { background: transparent; }
.sem-card { background: var(--surface); border-radius: var(--r-lg); padding: 24px; height: calc(100% - 30px); }
.sem-card h3 { font: 600 19px/1.3 var(--font-head); color: var(--navy-600); margin-bottom: 14px; }
.ticks { display: grid; gap: 14px; }
.ticks li { display: flex; gap: 10px; font-size: 14.25px; line-height: 1.45; }
.ticks .i { width: 16px; height: 16px; color: var(--navy-600); margin-top: 2px; }
.note-pill { display: inline-flex; align-items: center; gap: 12px; margin-top: 32px; padding: 14px 20px; border-radius: var(--r-md); background: var(--navy-100); color: var(--navy-600); font-size: 14.25px; font-weight: 600; }

/* ---------- why riim: the pinned-chapters scroll moment, with card motion ----------
   The moment's script and base CSS live in assets/moments/pinned-chapters (Taste skill kit; one change in
   moment.js: live from 560px of height). Here: its tokens mapped to RIIM's, a square frame at the right,
   and the photographs as a stack of cards instead of a crossfade. */
#why {
  --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px;
  --r-md: var(--r-xl);
  --accent: var(--navy-600);     /* the open chapter's rule */
  --muted: var(--text-2);        /* closed chapter titles */
  --font-text: var(--font-body);
  --nav: 64px;                   /* the sticky header once scrolled */
}
#why .mo-pc__text { gap: 28px; }
#why .mo-pc__steps { gap: 20px; }
#why .mo-pc__step h3 { font: 600 19px/1.3 var(--font-head); }
#why .why-num { font-size: 13.3px; font-weight: 600; color: var(--text-2); margin-right: 4px; }
#why .mo-pc__step p { color: var(--text-2); font-size: 15.2px; line-height: 1.55; }

/* live: the frame is a square at the right, with room above it for the cards behind */
#why.is-live .mo-pc__visuals { aspect-ratio: 1 / 1; width: min(100%, calc(100svh - 160px)); max-height: none;
  justify-self: end; margin-top: clamp(28px, 6svh, 56px); }
/* card motion: the chapter in hand is the front card; the next waits lower, faded; the ones before it step
   back up and shrink, so the last two peek out above the front card like a deck */
#why.is-live .mo-pc__visual { border-radius: var(--r-xl); box-shadow: 0 18px 40px rgba(15,46,77,.18);
  transform-origin: 50% 0; opacity: 0; transform: translateY(12%) scale(.97);
  transition: transform 760ms cubic-bezier(.22,1,.36,1), opacity 420ms ease, filter 600ms ease; }
#why.is-live .mo-pc__visual.is-on { opacity: 1; transform: none; z-index: 3; }
#why.is-live .mo-pc__visual.is-past { opacity: 1; transform: translateY(-5%) scale(.92); filter: brightness(.82); z-index: 2; }
#why.is-live .mo-pc__visual.is-past:has(+ .is-past) { transform: translateY(-9.5%) scale(.85); filter: brightness(.68); }
#why.is-live .mo-pc__visual.is-past:has(+ .is-past + .is-past) { opacity: 0; transform: translateY(-12%) scale(.8); }
@media (prefers-reduced-motion: reduce) { #why .mo-pc__visual { transition: none !important; } }

/* ---------- glimpses ---------- */
.glimpses { overflow: hidden; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.filters button { position: relative; height: 40px; padding: 0 16px; border-radius: var(--r-pill); font-size: 12.35px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); transition: background var(--dur), color var(--dur); }
.filters button::after { content: ""; position: absolute; inset: -2px 0; }   /* 44px tap area, same look */
.filters button[aria-pressed="true"] { background: var(--navy-600); color: var(--white); box-shadow: none; }
.filters button:hover:not([aria-pressed="true"]) { background: var(--navy-50); }
.filmstrip {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 40px max(var(--gutter), calc((100vw - var(--container)) / 2)) 8px; scrollbar-width: none;
}
.filmstrip::-webkit-scrollbar { display: none; }
.filmstrip.is-auto { scroll-snap-type: none; scroll-behavior: auto; }   /* the drift (main.js) sets scrollLeft every frame: no snapping back */
.strip-pause { margin-left: 12px; }   /* beside the arrows, never at the right edge under the floating Enquire button */
.filmstrip figure { flex: none; width: clamp(260px, 22.2vw, 360px); aspect-ratio: 32 / 42; border-radius: 20px; overflow: hidden; scroll-snap-align: start; }
.filmstrip figure[hidden] { display: none; }
.filmstrip img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.filmstrip figure:hover img { transform: scale(1.03); }
.strip-nav { display: flex; gap: 12px; margin-top: 32px; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); color: var(--navy-600); transition: background var(--dur); }
.round-btn:hover { background: var(--navy-50); }

/* ---------- fees & scholarships ---------- */
.fee-grid { display: grid; grid-template-columns: clamp(320px, 29.2vw, 460px) minmax(0, 1fr); gap: 24px; }
.fee-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.fee-card small { font-size: 11.4px; font-weight: 600; letter-spacing: .1em; color: var(--text-2); }
.fee-total { font: 600 clamp(38px, 1.086vw + 33.725px, 49.4px)/1.1 var(--font-head); color: var(--navy-600); margin: 8px 0; }
.fee-card .muted { font-size: 14.25px; color: var(--text-2); }
.fee-acc { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fee-acc strong { display: block; font-size: 14.25px; }
.fee-acc span { display: block; font-size: 12.35px; color: var(--text-2); line-height: 1.45; }
.fee-acc b { font: 600 22.8px/1 var(--font-head); white-space: nowrap; }
.fee-note { display: flex; gap: 10px; font-size: 12.35px; font-weight: 500; color: var(--text-2); line-height: 1.5; }
.fee-note .i { width: 16px; height: 16px; margin-top: 1px; }
.scholar-card { background: var(--navy-600); color: var(--white); border-radius: var(--r-lg); padding: 40px; display: flex; flex-direction: column; gap: 28px; }
.scholar-tag { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; border-radius: var(--r-pill); background: rgba(255,255,255,.12); font-size: 11.4px; font-weight: 600; letter-spacing: .1em; align-self: flex-start; }
.scholar-tag .i { width: 16px; height: 16px; color: var(--yellow-500); }
.scholar-card h3 { font: 600 28.5px/1.25 var(--font-head); margin-top: 12px; }
.criteria { display: grid; grid-template-columns: repeat(3, 1fr); }
.criterion { display: grid; gap: 10px; align-content: start; padding: 0 24px; }
.criterion:first-child { padding-left: 0; }
.criterion + .criterion { border-left: 1px solid rgba(255,255,255,.15); }
.criterion .i { width: 22px; height: 22px; color: var(--navy-300); }
.criterion h4 { margin: 0; font: 600 16.15px/1.3 var(--font-head); }
.criterion p { font-size: 13.3px; line-height: 1.55; color: var(--navy-100); }
.disclaimer { margin-top: 32px; font-size: 12.35px; line-height: 1.55; color: var(--text-2); }

/* ---------- blog ---------- */
.blog-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 29.2vw, 460px); gap: 24px; }
.post-featured { position: relative; min-height: clamp(420px, 36.1vw, 600px); border-radius: 20px; overflow: hidden; color: var(--white); display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 32px; }
.post-featured img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms 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,.9) 100%); }
.post-featured > *:not(img) { position: relative; z-index: 2; }
.post-featured:hover img { transform: scale(1.03); }
.post-featured h3 { font: 600 30.4px/1.2 var(--font-head); max-width: 560px; }
.post-featured p { color: var(--navy-100); max-width: 560px; }
.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-600); font-size: 11.4px; font-weight: 600; align-self: flex-start; }
.date-chip .i { width: 14px; height: 14px; }
.post-col { display: grid; gap: 24px; }
.post-small { display: flex; gap: 20px; align-items: center; padding: 16px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); transition: transform var(--dur), box-shadow var(--dur); }
.post-small:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.post-small img { width: 150px; height: 100%; min-height: 200px; object-fit: cover; border-radius: var(--r-md); flex: none; }
.post-small div { display: grid; gap: 12px; }
.post-small h3 { font: 600 17.1px/1.3 var(--font-head); }
.post-small .btn-ghost { justify-self: start; }

/* ---------- admissions CTA ---------- */
.cta {
  position: relative; color: var(--white); min-height: clamp(480px, 38.9vw, 680px); display: flex; align-items: center;
  background:
    linear-gradient(90deg, rgba(15,46,77,.9) 30%, rgba(15,46,77,0) 60%),
    url("../images/cta-student-pharma.webp") right 20% / cover no-repeat,
    var(--navy-900);
}
.cta-text { max-width: 600px; display: grid; gap: 24px; }
@media (min-width: 992px) and (max-width: 1279px) { .cta-text { max-width: 44vw; } }
.cta h2 { font: 600 var(--t-cta)/1.15 var(--font-head); }
.cta p { font-size: var(--t-lead); color: var(--navy-100); }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.cta-contact { display: flex; gap: 32px; flex-wrap: wrap; padding-top: 8px; }
.cta-contact a { display: inline-flex; align-items: center; gap: 10px; font-size: 14.25px; font-weight: 500; min-height: 44px; }
.cta-contact .i { width: 18px; height: 18px; color: var(--navy-300); }
.cta-contact a:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq .section-head { align-items: center; text-align: center; margin-bottom: 40px; }
.faq .eyebrow { align-items: center; }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border-radius: 28px; background: var(--surface); transition: background var(--dur); }
.faq-item[data-open] { background: var(--navy-50); border-radius: 24px; }
.faq-q { width: 100%; display: flex; align-items: center; gap: 16px; padding: 22px 28px; text-align: left; font: 500 17.1px/1.4 var(--font-head); }
.faq-q span { font: 600 14.25px/1 var(--font-head); color: var(--text-2); }
.faq-q b { flex: 1; font-weight: 500; }
.faq-q .i { color: var(--navy-600); transition: transform var(--dur); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur) var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 28px 22px 64px; color: var(--text-2); }
.faq-item[data-open] .faq-a { grid-template-rows: 1fr; }

/* ---------- footer ---------- */
.footer { background: var(--navy-900); color: var(--white); padding: 80px 0 32px; }
.footer-cols { display: grid; grid-template-columns: clamp(300px, 23.6vw, 380px) repeat(3, 1fr); gap: 48px; }
.footer .brand img { width: 48px; height: 56px; }
.footer-blurb { margin: 20px 0; font-size: 13.3px; line-height: 1.6; color: var(--navy-300); }
.social { display: flex; gap: 10px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--navy-700); transition: background var(--dur); }
.social a:hover { background: var(--navy-700); }
.social .i { width: 18px; height: 18px; }
.footer h3 { font: 600 14.25px/1.3 var(--font-head); margin-bottom: 14px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a, .footer-links li { font-size: 13.3px; line-height: 1.5; color: var(--navy-300); }
.footer-links a { display: inline-block; padding: 3px 0; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--navy-700); font-size: 12.35px; color: var(--navy-300); }
.footer-bottom nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--white); text-decoration: underline; }

/* ---------- floating enquire ---------- */
.fab {
  position: fixed; right: 40px; bottom: 32px; z-index: 40; display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 22px 0 18px; border-radius: var(--r-pill); background: var(--yellow-500); color: var(--navy-600);
  font: 600 14.25px/1 var(--font-head); box-shadow: 0 16px 40px rgba(0,0,0,.24);
  opacity: 0; visibility: hidden; transform: translateY(16px); pointer-events: none; transition: opacity var(--dur), transform var(--dur), background var(--dur), visibility var(--dur);
}
.fab.is-visible { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }   /* visibility: hidden keeps the hidden pill out of the Tab order */
.fab:hover { background: var(--yellow-600); color: var(--navy-900); }

/* ---------- entrance motion ---------- */
.enter { opacity: 0; transform: translateY(16px); animation: enter var(--dur-slow) var(--ease) forwards; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes enter { to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */

/* Breakpoints change the LAYOUT only (columns stack, nav becomes a drawer).
   Type, spacing and column widths are fluid tokens above, so nothing jumps between breakpoints. */

/* Laptops and desktops: the hero is the whole first screen (Taste skill: 100svh), so the next
   section never peeks in on a tall screen. The form and text sit centred, the fact bar docks at the foot. */
@media (min-width: 992px) {
  .hero { min-height: calc(100vh - var(--utility-h)); min-height: calc(100svh - var(--utility-h)); display: flex; flex-direction: column; }
  .hero > .wrap { flex: 1; display: flex; flex-direction: column; }
  .hero-grid { flex: 1; }
}

/* Short laptop screens (1366x768, 1280x720, and 1080p laptops at 125-150% Windows scaling, about
   1265x600): the whole enquiry form, Enquire Now included, stays above the fold. */
@media (min-width: 992px) and (max-height: 820px) {
  .hero-text { gap: 14px; }
  .hero-sub { font-size: 15.2px; }
  .points { gap: 8px; }
  .enquiry { padding: 20px 24px; gap: 10px; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .enquiry > * { grid-column: 1 / -1; }
  .enquiry > .field:has(#f-name), .enquiry > .field:has(#f-mobile) { grid-column: auto; }
  .enquiry h2 { font-size: 19px; }
  .enquiry-sub { display: none; }
  .field { gap: 4px; }
  .field input, .field select { height: 44px; }
  .fact-bar { margin-top: 20px; }
}
/* Too short to show the fact bar whole: drop it rather than leave a sliver under the fold.
   Its four facts are repeated in the hero points and the sections below. */
@media (min-width: 992px) and (max-height: 680px) {
  .fact-bar { display: none; }
}

/* Small laptops (992-1199px): the full institute name crowds the nav, so show "RIIM Pune" only */
@media (min-width: 992px) and (max-width: 1199px) {
  .brand-full { display: none; }
}

@media (max-width: 1199px) {
  .badges { grid-template-columns: repeat(3, 1fr); }
  .recognition .wrap { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .kpi-main { padding-right: 20px; }
  .kpi-sm { min-width: 0; padding-left: 20px; }
  .nav { gap: 20px; }
  .nav > a, .nav-more > button { white-space: nowrap; }
  .thumb { width: 140px; }
  .fee-card, .scholar-card { padding: 32px; }
  .criterion { padding: 0 16px; }
}

@media (max-width: 991px) {
  :root { --header-h: 64px; }
  .utility { display: none; }
  .site-header { top: 0; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header .wrap { gap: 12px; }
  .site-header .brand { margin-right: auto; }
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
  .hero { padding-top: calc(var(--header-h) + 24px); }
  .hero h1 { font-size: var(--t-h1); }
  .hero-grid, .sap-grid, .welcome-head, .video-grid, .placements-grid, .fee-grid, .blog-grid { grid-template-columns: 1fr; gap: 48px; }
  .fact-bar { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .fact:nth-child(3) { border-left: 0; }
  .sap-photo { aspect-ratio: 4 / 3; }
  .semesters { grid-template-columns: 1fr 1fr; }
  .waterfall { height: 520px; min-height: 0; }
  .placement-text { padding-bottom: 0; }
  .placements { padding-bottom: 40px; }
  .criteria { grid-template-columns: 1fr; gap: 20px; }
  .criterion { padding: 0; }
  .criterion + .criterion { border-left: 0; border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; }
  .head-row { flex-direction: column; align-items: flex-start; }
  .cta { background: linear-gradient(180deg, rgba(15,46,77,.75) 0%, rgba(15,46,77,.95) 100%), url("../images/cta-student-pharma.webp") 70% center / cover no-repeat, var(--navy-900); }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; }
  .enquiry { padding: 22px 18px; }
  .field-row { grid-template-columns: 1fr; }
  .badges { grid-template-columns: 1fr 1fr; }
  .value-grid, .spec-grid, .semesters { grid-template-columns: 1fr; }
  .sem-rail { display: none; }
  .sem-card { height: auto; }
  .kpis { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .kpi-main { grid-column: 1 / -1; border-right: 0; padding: 0; }
  .kpi-sm { padding: 0; min-width: 0; }
  .waterfall-cols { gap: 10px; }
  .wf-col { gap: 10px; padding-bottom: 10px; }
  .logo-tile { height: 72px; padding: 0 12px; }
  .logo-tile img { max-height: 26px; }
  .playlist button { padding: 10px; }
  .thumb { width: 128px; }
  .video-feature { aspect-ratio: auto; height: 260px; }
  .video-feature button.play-overlay { padding: 20px; }
  .video-caption strong { font-size: 19px; }
  .video-caption small { font-size: 10.45px; }
  .video-caption > span { display: none; }
  .play-btn { width: 56px; height: 56px; }
  .spec-foot { flex-wrap: wrap; }
  .chip-sap, .spec-link { white-space: nowrap; }
  .site-header .btn-primary { height: 44px; padding: 0 16px; font-size: 13.3px; }
  .fact-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px 4px; }
  .fact { padding: 0 12px; gap: 10px; }
  .site-header .btn-primary .i { display: none; }
  .fee-card, .scholar-card { padding: 24px; }
  .scholar-card h3 { font-size: 22.8px; }
  .post-featured { padding: 24px; }
  .post-featured h3 { font-size: 22.8px; }
  .post-small { flex-direction: column; align-items: stretch; }
  .post-small img { width: 100%; min-height: 0; height: 180px; }
  .cta { min-height: 0; padding: 64px 0; }
  .cta-actions .btn, .placement-actions .btn, .hero-actions .btn-outline { width: 100%; }
  .faq-q { padding: 18px 20px; font-size: 15.2px; }
  .faq-a p { padding: 0 20px 18px; }
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .fab { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; }
  .wf-col { animation: none !important; }
  .enter { opacity: 1; transform: none; }
}

/* ==========================================================================
   Phones and tablets (added after the base rules; nothing here applies from 992px up)
   Follows riim-design-pattern.md: 16px body, 44px tap targets, 64px section padding, 16px side padding.
   ========================================================================== */
.rail-meter { display: none; }

@media (max-width: 991px) {
  :root { --t-body: 16px; --t-lead: 16px; }
  a, button, label, select { touch-action: manipulation; -webkit-tap-highlight-color: rgba(15,46,77,.12); }
  .drawer { overscroll-behavior: contain; padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }

  /* type floor: body 16, supporting copy 15, labels 12 */
  .eyebrow { font-size: 12px; letter-spacing: .1em; }
  .brand-full, .recognition-label, .badge small, .video-caption small, .playlist small, .playlist-label, .helpline small,
  .kpi small, .chip-sap, .fee-card small, .scholar-tag, .date-chip, .form-foot { font-size: 12px; }
  .value p, .spec-card p, .ticks li, .fee-card .muted, .sap-careers, .criterion p, .note-pill { font-size: 15px; }

  /* 44px tap targets */
  .site-header .brand { min-height: 44px; }
  .consent { min-height: 44px; padding: 4px 0; font-size: 13px; }
  .consent input { width: 24px; height: 24px; }
  .form-foot { align-items: center; flex-wrap: wrap; }
  .form-foot a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-links { gap: 0; }
  .footer-links li { font-size: 14.25px; }
  .footer-links a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; padding: 0; font-size: 14.25px; line-height: 1.3; overflow-wrap: anywhere; }
  .footer-bottom nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .faq-a a { color: var(--navy-600); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }

  /* hero: the form comes straight after the pitch. Only the non-focusable points move, so Tab order still matches */
  .hero {
    background:
      linear-gradient(180deg, rgba(15,46,77,.95) 0%, rgba(15,46,77,.88) 45%, rgba(15,46,77,.96) 100%),
      url("../images/hero-convocation-960.webp") center top / cover no-repeat,
      var(--navy-900);
  }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .hero-text { display: contents; }
  .hero .eyebrow { order: 1; text-wrap: balance; }
  .hero h1 { order: 2; text-wrap: balance; }
  .hero-sub { order: 3; }
  .hero-actions { order: 4; padding-top: 0; }
  .enquiry { order: 5; }
  .points { order: 6; }

  /* recruiter wall: the fade belongs on the logos only, so the label and pause button stay fully visible */
  .waterfall { display: flex; flex-direction: column; gap: 12px; -webkit-mask-image: none; mask-image: none; }
  .waterfall-label { position: static; flex: none; align-self: flex-start; }
  .waterfall-cols { flex: 1; min-height: 0; height: auto; overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 40px, #000 calc(100% - 56px), transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0, #000 40px, #000 calc(100% - 56px), transparent 100%); }
  .wf-pause { bottom: 8px; background: var(--navy-700); }
}

/* touch screens have no hover: stop cards staying lifted after a tap and show a pressed state instead */
@media (max-width: 991px) and (hover: none) {
  .spec-card:hover, .post-small:hover, .playlist button:hover { transform: none; box-shadow: var(--shadow-1); }
  .post-small:hover { box-shadow: none; }
  .playlist button:hover { box-shadow: none; background: var(--surface); }
  .playlist button[aria-current="true"]:hover { box-shadow: inset 0 0 0 1.5px var(--navy-300); }
  .filmstrip figure:hover img, .post-featured:hover img { transform: none; }
  .spec-card:active, .post-small:active, .playlist button:active { background: var(--navy-50); }
}

/* large phones in portrait and small tablets: name and mobile share a row */
@media (min-width: 576px) and (max-width: 991px) {
  .enquiry { grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .enquiry > * { grid-column: 1 / -1; }
  .enquiry > .field:has(#f-name), .enquiry > .field:has(#f-mobile) { grid-column: auto; }
  .field-row { grid-template-columns: 1fr 1fr; }
}

/* phones held sideways: a slimmer header leaves more of the short screen for content */
@media (max-width: 991px) and (max-height: 500px) {
  :root { --header-h: 56px; }
  .site-header.is-scrolled { height: 56px; }
  .brand img, .is-scrolled .brand img { width: 34px; height: 40px; }
  .brand-full { display: none; }
  .site-header .btn-primary { height: 44px; }
  html { scroll-padding-top: 68px; }
}

@media (max-width: 767px) {
  .h2, .hero h1 { text-wrap: balance; }

  /* section rhythm */
  .hero-grid { gap: 14px; }
  .sap-grid, .video-grid, .placements-grid, .fee-grid, .blog-grid { gap: 32px; }
  .head-row { gap: 12px; margin-bottom: 24px; }
  .welcome-head { gap: 12px; margin-bottom: 24px; }
  .welcome-head p { margin-bottom: 8px; }
  #fees .section-head { margin-bottom: 24px !important; }

  /* header */
  .brand img, .is-scrolled .brand img { width: 38px; height: 44px; }

  /* hero */
  .hero { padding-bottom: 24px; }
  .hero-actions { gap: 12px; flex-wrap: wrap; }
  .hero-actions .btn-outline { flex: 1 1 auto; width: auto; height: 44px; padding: 0 16px; }
  .helpline { flex: none; }
  .helpline small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  /* enquiry form */
  .enquiry { padding: 18px 16px; gap: 10px; border-radius: var(--r-lg); }
  .enquiry h2 { font-size: 19px; }
  .enquiry-sub { display: none; }
  .field { gap: 4px; }
  .field label { font-size: 14px; }

  /* fact bar: a clean 2x2 that fits down to 320px */
  .fact-bar { margin-top: 20px; padding: 14px 2px; }
  .fact { padding: 0 10px; min-width: 0; }
  .fact .i { display: none; }
  .fact strong { font-size: clamp(13.3px, 3.7vw, 15.2px); }
  .fact small { font-size: 12px; line-height: 1.35; }

  /* recognition: the fifth badge takes the full row instead of leaving a gap */
  .recognition { padding: 20px 0; }
  .badges { gap: 8px; }
  .badge { padding: 10px; min-width: 0; }
  .badge:last-child { grid-column: 1 / -1; }

  /* PGDM + SAP */
  .sap-text { gap: 24px; }
  .value-grid { gap: 10px; }
  .value { grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 16px; }
  .value .icon-circle { grid-row: 1 / span 2; }
  .value h3 { font-size: 16px; }
  #sap .btn-secondary { width: 100%; }
  .sap-photo { aspect-ratio: 16 / 10; border-radius: var(--r-lg); }

  /* videos */
  .video-feature { height: auto; aspect-ratio: 16 / 10; border-radius: var(--r-lg); }
  .video-feature button.play-overlay { padding: 14px 16px; }
  .play-btn { width: 48px; height: 48px; }
  .play-btn .i { width: 22px; height: 22px; }
  .video-caption strong { font-size: 17px; margin: 2px 0 0; }
  .thumb { width: 112px; }
  .thumb .play-btn { width: 32px; height: 32px; }
  .thumb .play-btn .i { width: 14px; height: 14px; }
  .playlist button { gap: 12px; }

  /* placements */
  .placements-grid { gap: 24px; }
  .placement-text { gap: 24px; }
  .kpis { padding: 20px 0; }
  .chips { gap: 8px; }
  .chip-role { height: 32px; padding: 0 12px; font-size: 12.35px; }
  .waterfall { height: 340px; }
  .logo-tile { height: 64px; }

  /* specialisations: tighter cards, the heading already says every track includes SAP */
  .spec-grid { gap: 12px; }
  .spec-card { min-height: 0; gap: 6px; padding: 16px 18px; }
  .spec-title { margin-bottom: 6px; }
  .spec-title h3 { font-size: 18px; }
  .spec-foot .chip-sap { display: none; }
  .spec-link { min-height: 28px; font-size: 14px; }

  /* swipe rows: semesters and Why RIIM, with the next card peeking in */
  .semesters, #why .mo-pc__steps {
    display: flex; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 4px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .semesters::-webkit-scrollbar, #why .mo-pc__steps::-webkit-scrollbar { display: none; }
  .semester { display: flex; flex: 0 0 min(84%, 320px); scroll-snap-align: start; }
  .sem-card { width: 100%; padding: 20px; }
  .rail-meter { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
  .rail-meter i { width: 20px; height: 3px; border-radius: 2px; background: var(--navy-300); opacity: .45; transition: opacity var(--dur), background var(--dur); }
  .rail-meter i[data-on] { background: var(--navy-600); opacity: 1; }
  .note-pill { margin-top: 20px; padding: 12px 14px; }
  .ratio b { font-size: 38px; }

  /* Why RIIM: one photo card per chapter */
  main > #why[data-moment="pinned-chapters"]:not(.is-live) { min-height: 0; }
  #why .h2 { text-wrap: wrap; }   /* balancing would split "corporate-style" at its hyphen */
  #why .mo-pc__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  #why .mo-pc__text { min-width: 0; gap: 20px; }
  #why .mo-pc__step {
    display: flex; flex-direction: column; flex: 0 0 min(86%, 330px); gap: 6px; padding: 0 0 16px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; scroll-snap-align: start;
  }
  #why .mo-pc__step .mo-pc__visual { order: -1; margin: 0 0 8px; border-radius: 0; }
  #why .mo-pc__visual > img { aspect-ratio: 16 / 10; max-height: none; }
  #why .mo-pc__step h3, #why .mo-pc__step p { padding-inline: 16px; }
  #why .mo-pc__step h3 { font-size: 17px; }
  #why .mo-pc__step p { font-size: 15px; }

  /* glimpses */
  .filmstrip { padding-top: 20px; }
  .filmstrip figure { width: min(72vw, 280px); border-radius: var(--r-lg); }
  .strip-nav { margin-top: 16px; }

  /* fees */
  .fee-card, .scholar-card { padding: 20px; gap: 20px; }
  .fee-acc { padding: 16px 0; }
  .fee-acc b { font-size: 20px; }
  .scholar-card h3 { font-size: 20px; }
  .criteria { gap: 14px; }
  .criterion { grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; }
  .criterion + .criterion { padding-top: 14px; }
  .criterion .i { grid-row: 1 / span 2; margin-top: 1px; }
  .scholar-card .btn { width: 100%; }
  .disclaimer { margin-top: 20px; }

  /* blog: small posts become compact rows */
  .post-featured { min-height: 320px; padding: 20px; border-radius: var(--r-lg); }
  .post-featured h3 { font-size: 21px; }
  .post-col { gap: 12px; }
  .post-small { flex-direction: row; align-items: stretch; gap: 14px; padding: 12px; border-radius: var(--r-lg); }
  .post-small img { width: 112px; height: auto; min-height: 0; align-self: stretch; }
  .post-small div { flex: 1; min-width: 0; gap: 6px; align-content: center; }
  .post-small .date-chip { justify-self: start; }
  .post-small h3 { font-size: 15.2px; }

  /* admissions band */
  .cta { padding: 56px 0; }
  .cta-text { gap: 18px; }
  .cta-contact { flex-direction: column; gap: 0; padding-top: 0; }
  .cta-contact a { overflow-wrap: anywhere; }

  /* FAQ */
  .faq .section-head { margin-bottom: 24px; }
  .faq-list { gap: 8px; }
  .faq-item, .faq-item[data-open] { border-radius: var(--r-lg); }
  .faq-q { gap: 10px; min-height: 52px; padding: 14px 16px; }
  .faq-a p { padding: 0 16px 16px; font-size: 15px; }

  /* footer: two link columns, every link a full 44px target */
  .footer { padding: 48px 0 calc(24px + env(safe-area-inset-bottom, 0px)); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .footer-cols > :first-child, .footer-cols > :last-child { grid-column: 1 / -1; }
  .footer h3 { margin-bottom: 4px; }
  .footer-bottom { margin-top: 24px; padding-top: 16px; gap: 4px; }
  .footer-bottom nav { gap: 0 16px; }

  /* floating Enquire pill */
  .fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); height: 48px; padding: 0 18px 0 14px; font-size: 14px; }
}

/* the narrowest phones: only "RIIM Pune" in the header, so Apply and the menu keep their full size */
@media (max-width: 479px) {
  .brand-full { display: none; }
}

/* reduced motion: the recruiter wall stops moving, so show every logo instead of a cropped window */
@media (max-width: 991px) and (prefers-reduced-motion: reduce) {
  .waterfall { height: auto; contain: none; overflow: visible; }
  .waterfall-cols { -webkit-mask-image: none; mask-image: none; }
  .wf-col { margin-top: 0 !important; }
}

/* ==========================================================================
   Mobile pass: drawer, floating pill, forms, touch targets and the Admissions band.
   Nothing here applies above 1024px, and 992-1024px only on touch screens.
   ========================================================================== */
@media (max-width: 991px) {
  html.is-drawer-open, html.is-drawer-open body { overflow: hidden; }
  .drawer > * { flex: none; }   /* on a short screen the drawer scrolls instead of squashing its Apply button */
  .placements { padding-bottom: var(--section-y); }
  .spec-foot { flex-wrap: wrap; }
  .chip-sap, .spec-link { white-space: nowrap; }
  .post-small .date-chip { justify-self: start; }
  .faq-a a { display: inline-block; padding-block: 12px; margin-block: -12px; }   /* 44px tap area, same line height */
}
@media (min-width: 768px) and (max-width: 991px) {
  .fab { right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}

/* forms: each error has its row reserved, so a message appearing never moves the next field under a thumb */
@media (max-width: 991px), (max-width: 1024px) and (pointer: coarse) {
  .enquiry { row-gap: 4px; }
  .enquiry > div:first-of-type { margin-bottom: 8px; }
  .enquiry > .btn { margin-top: 4px; }
  .field-row { row-gap: 4px; }
  .consent-wrap { gap: 2px; }
  .field-error { display: flex; visibility: hidden; min-height: 18px; line-height: 18px; margin-top: -2px; }
  .field[data-invalid] .field-error, .consent-wrap[data-invalid] .field-error { visibility: visible; }
}
@media (max-width: 429px) {
  .consent-error { min-height: 34px; align-items: flex-start; line-height: 16px; }   /* its message takes two lines here */
  .consent-error .i { margin-top: 1px; }
}

/* a tablet held sideways keeps the desktop layout, with finger-sized targets */
@media (min-width: 992px) and (max-width: 1024px) and (pointer: coarse) {
  .nav > a, .nav-more > button { padding: 15px 0; min-width: 44px; justify-content: center; }
  .nav > a::after, .nav-more > button::after { bottom: 7px; }
  .consent { min-height: 44px; padding: 4px 0; }
  .form-foot { align-items: center; }
  .form-foot a, .footer-bottom nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-links { gap: 0; }
  .footer-links a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; padding: 0; }
  .faq-a a { display: inline-block; padding-block: 12px; margin-block: -12px; }
}

/* Admissions band, tablets: text on solid navy at the left, the student clear at the right */
@media (min-width: 768px) and (max-width: 991px) {
  .cta {
    background:
      linear-gradient(90deg, rgba(15,46,77,.98) 46%, rgba(15,46,77,0) 58%),
      url("../images/cta-student-pharma.webp") calc(100% + 110px) center / cover no-repeat,   /* crops the empty right edge, so the whole face clears the text */
      var(--navy-900);
  }
  .cta-text { max-width: 46%; }
  .cta-contact { row-gap: 0; }
}
/* Admissions band, phones: the photo is its own strip above the text. The image's left half is solid navy,
   so it is anchored right; the last fifth melts into the band, below the student's chin */
@media (max-width: 767px) {
  .cta { display: block; min-height: 0; padding: 0 0 64px; background: var(--navy-900); }
  .cta::before {
    content: ""; display: block; height: clamp(260px, 72vw, 380px); margin-bottom: 24px;
    background:
      linear-gradient(180deg, rgba(15,46,77,0) 80%, var(--navy-900) 100%),
      url("../images/cta-student-pharma.webp") right top / auto 100% no-repeat,
      var(--navy-900);
  }
}
