/* ============================================================
   Recognised & Accredited + Placement outcomes: unified bento
   One trust block that pairs the flagship credential (NAAC A++)
   and the flagship outcome (91.3% placed) as feature tiles, with
   supporting credentials and placement stats around them.
   Vanilla CSS; reuses global tokens (--accent/--ink/--muted/--line).
   Master-union inspired.
   ============================================================ */
.ss-cred {
  position: relative;
  padding: clamp(44px, calc(5 * var(--fv, 1vw)), 72px) 0;
  overflow: hidden;
  background: linear-gradient(180deg, #fdeeeb 0%, #fbfaf8 55%, #fafafa 100%);
}

.ss-cred-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, calc(2.4 * var(--fv, 1vw)), 32px);
}

.ss-cred-head { display: flex; align-items: baseline; gap: 14px 24px; flex-wrap: wrap; }
.ss-cred-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}
.ss-cred-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.ss-cred-lead {
  font-size: clamp(19px, calc(2 * var(--fv, 1vw)), 27px); font-weight: 600;
  letter-spacing: -.015em; color: var(--ink); line-height: 1.12; margin: 0;
}

/* ---- grid ---- */
.ss-cred-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  grid-auto-rows: minmax(0, auto);
}
.b-tile {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: clamp(20px, calc(1.8 * var(--fv, 1vw)), 26px);
  min-height: clamp(150px, calc(13 * var(--fv, 1vw)), 176px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, border-color .35s ease;
}
.b-tile:hover { transform: translateY(-6px); box-shadow: 0 26px 48px -26px rgba(20, 21, 26, .35); }

/* spans */
.b-hero { grid-column: span 2; }              /* NAAC (red) */
.b-wide { grid-column: span 2; }              /* Symbiosis */
.b-tall { grid-row: span 2; }                 /* 10 years (photo) + 91.3% (dark) */
.b-careers { grid-column: span 3; }           /* the 12 career tracks */

/* three supporting numbers inside the two columns the pair used to hold:
   a bare grid, not a tile, so the cards keep their own borders */
.b-trio {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.b-trio .b-tile { min-height: 100%; padding: clamp(16px, calc(1.4 * var(--fv, 1vw)), 22px); }

/* ---- credential text ---- */
.b-body { position: relative; z-index: 2; }
.b-title {
  font-size: clamp(17px, calc(1.4 * var(--fv, 1vw)), 21px); font-weight: 700;
  line-height: 1.12; letter-spacing: -.01em; color: var(--ink); margin: 0 0 6px;
}
.b-desc { font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--muted); margin: 0; max-width: 46ch; }

/* title hover-swap (block level) */
.b-swap { display: inline-block; position: relative; overflow: hidden; vertical-align: top; }
.b-swap > span { display: block; transition: transform .34s cubic-bezier(.33, 1, .68, 1); }
.b-swap .b-swap-hover { position: absolute; inset: 0; color: var(--accent); transform: translateY(105%); }
.b-tile:hover .b-swap .b-swap-base { transform: translateY(-105%); }
.b-tile:hover .b-swap .b-swap-hover { transform: translateY(0); }

/* ---- stat text ---- */
.b-val {
  font-family: 'Oswald', 'Bricolage Grotesque', sans-serif;
  font-weight: 700; font-size: clamp(30px, calc(3.4 * var(--fv, 1vw)), 46px); line-height: 1;
  letter-spacing: -.02em; color: var(--ink);
}
.b-val-u { font-size: .48em; font-weight: 700; margin-left: 3px; letter-spacing: .01em; }
.b-cap { font-size: 12.5px; font-weight: 600; line-height: 1.35; color: var(--muted); margin-top: 10px; }

/* ---- badge line ---- */
.b-badgeline {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.b-badgeline::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.b-dark .b-badgeline { color: #ffb3a6; }
.b-dark .b-badgeline::before { background: #e2675b; }

/* ---- watermark (feature tiles only) ---- */
.b-wm {
  position: absolute; right: -6px; bottom: -20px;
  font-family: 'Oswald', 'Bricolage Grotesque', sans-serif;
  font-weight: 700; font-size: clamp(6rem, calc(9 * var(--fv, 1vw)), 9rem); line-height: .8;
  pointer-events: none; user-select: none; z-index: 1;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}
.b-tile:hover .b-wm { transform: scale(1.06); }

/* ---- red feature tile ---- */
.b-red {
  background: linear-gradient(150deg,#9c2119 0%,#841b14 50%,#5e120e 100%);
  border-color: transparent; color: #fff;
}
.b-red .b-title { color: #fff; }
.b-red .b-desc { color: rgba(255, 255, 255, .9); }
.b-red .b-wm { color: rgba(255, 255, 255, .16); }
.b-red:hover { box-shadow: 0 30px 56px -22px rgba(175, 37, 28, .6); }
.b-red::after {
  content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent);
  transform: skewX(-18deg); pointer-events: none; animation: bentoSheen 6.5s ease-in-out infinite;
}
@keyframes bentoSheen { 0%, 60% { left: -70%; } 85%, 100% { left: 130%; } }

/* ---- dark feature tile ---- */
.b-dark {
  background: radial-gradient(120% 100% at 100% 0%, #22242e 0%, #14151a 55%, #0d0e12 100%);
  border-color: transparent; color: #fff;
}
.b-dark .b-title, .b-dark .b-val { color: #fff; }
.b-dark .b-desc, .b-dark .b-cap { color: rgba(255, 255, 255, .72); }
.b-dark .b-wm { color: rgba(255, 255, 255, .07); }
.b-dark.b-tall .b-val { font-size: clamp(46px, calc(5.2 * var(--fv, 1vw)), 74px); }
.b-dark.b-tall .b-cap { font-size: 14px; margin-top: 14px; max-width: 22ch; }

/* subtle tint variant (Symbiosis wide) */
.b-tint { background: linear-gradient(150deg, rgba(175, 37, 28, .06), rgba(175, 37, 28, .02)); }

/* ---- photo feature tile (10 years) ---- */
.b-photo {
  border-color: transparent; color: #fff; justify-content: flex-end;
  background: var(--b-photo) center/cover no-repeat;
}
.b-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(185deg, rgba(13, 14, 18, .25) 0%, rgba(13, 14, 18, .72) 52%, rgba(13, 14, 18, .94) 100%);
  transition: opacity .35s ease;
}
.b-photo > * { position: relative; z-index: 2; }
.b-photo .b-title, .b-photo .b-val { color: #fff; }
.b-photo .b-title { font-weight: 600; margin-top: 4px; }
.b-photo .b-desc { color: rgba(255, 255, 255, .78); }
.b-photo .b-val { font-size: clamp(40px, calc(4.4 * var(--fv, 1vw)), 62px); }
.b-photo .b-badgeline { color: #ffb3a6; }
.b-photo .b-badgeline::before { background: #e2675b; }
.b-photo:hover::before { opacity: .88; }

/* ---- careers wall, the 12 tracks, set as a ruled index ----
   Pills wrapped to three short rows and left most of the tile empty.
   A numbered three-column list reads as a proper index and fills the
   height, so the tile carries its weight next to the stat stack. */
.b-careers { justify-content: flex-start; }
.b-careers .b-body { display: flex; flex-direction: column; height: 100%; }
.b-careers .b-title { margin-bottom: 18px; }
.b-tracks {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: column;
  grid-template-rows: repeat(4, 1fr);
  gap: 0 clamp(20px, calc(2.4 * var(--fv, 1vw)), 40px);
  margin: 0; padding: 0; list-style: none;
}
.b-tracks li {
  display: flex; align-items: center; gap: 12px;
  padding: clamp(10px, calc(1 * var(--fv, 1vw)), 14px) 0;
  border-top: 1px solid var(--line);
  font-size: clamp(14px, calc(1.15 * var(--fv, 1vw)), 16px); font-weight: 600;
  line-height: 1.25; color: var(--ink);
  transition: color .25s ease;
}
.b-tracks li:hover { color: var(--accent); }
.b-track-n {
  flex: none;
  font-family: 'Oswald', 'Bricolage Grotesque', sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--accent); opacity: .9;
}

/* ---- stacked mini stats ---- */
.b-statstack { justify-content: flex-start; gap: 0; }
.b-statstack .b-body { display: flex; flex-direction: column; gap: 14px; }
.b-mini + .b-mini { padding-top: 14px; border-top: 1px solid var(--line); }
.b-mini-val {
  font-family: 'Oswald', 'Bricolage Grotesque', sans-serif;
  font-weight: 700; font-size: clamp(26px, calc(2.4 * var(--fv, 1vw)), 34px); line-height: 1;
  letter-spacing: -.02em; color: var(--ink);
}
.b-mini .b-cap { margin-top: 6px; }

/* ============================================================
   Logo walls: credibility chips inside tiles (Masters-Union style).
   Placeholders: each .b-logo holds a wordmark now; swap the inner
   text for an <img class="b-logo-img" src="/images/logos/x.svg"> later.
   ============================================================ */
.b-logo-label {
  display: block; margin: 14px 0 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted);
}
.b-dark .b-logo-label { color: rgba(255, 255, 255, .55); }

.b-logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.b-logo {
  display: flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 8px 12px; text-align: center;
  border: 1px solid var(--line); border-radius: 11px; background: #fff;
  font-size: 12.5px; font-weight: 600; letter-spacing: .01em; color: #6b6f76;
  transition: transform .28s ease, border-color .28s ease, color .28s ease, background-color .28s ease;
  /* the partner chips are links now (see _CredBand); the chip is the affordance,
     an underline through a logo is not. The subject chips are still spans. */
  text-decoration: none;
}
.b-logo:hover { transform: translateY(-2px); border-color: rgba(175, 37, 28, .38); color: var(--ink); }
/* fixed height + auto width keeps a lazy image from collapsing to 0x0 before
   it loads (a zero-size lazy img never enters the viewport, so never loads). */
.b-logo-img { height: 26px; max-width: 100%; width: auto; object-fit: contain; }
/* real logos are dark-on-transparent, so their chip keeps a white plate even
   inside the dark tile, otherwise the wordmark disappears into the panel. */
.b-logo:has(.b-logo-img) { padding: 8px 14px; }
.b-dark .b-logo:has(.b-logo-img) { background: #fff; border-color: rgba(255, 255, 255, .18); }
.b-dark .b-logo:has(.b-logo-img):hover { background: #fff; }

.b-dark .b-logo {
  background: rgba(255, 255, 255, .055); border-color: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .82);
}
.b-dark .b-logo:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff; }

/* full-width partner strip */
.b-strip { grid-column: 1 / -1; gap: 4px; }
.b-strip .b-body { width: 100%; }
.b-strip-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.b-strip-num {
  font-family: 'Oswald', 'Bricolage Grotesque', sans-serif;
  font-weight: 700; font-size: clamp(24px, calc(2.4 * var(--fv, 1vw)), 32px); line-height: 1;
  letter-spacing: -.02em; color: var(--accent);
}
.b-strip-cap { font-size: 13.5px; font-weight: 600; color: var(--ink); }
/* Fixed column counts that divide the 40-logo wall evenly (10, 8, 5, 4),
   so every row is full at every width; auto-fit left a ragged last row. */
.b-strip .b-logos {
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
}
/* wall logos run 20% larger than the chips elsewhere in the band */
.b-strip .b-logo:has(.b-logo-img) { min-height: 65px; padding: 8px 12px; }
.b-strip .b-logo-img { height: 31px; }
.b-strip .b-logo-img--tall { height: 43px; }
.b-strip .b-logo--named .b-logo-img { height: 31px; }
@media (max-width: 1200px) {
  .b-strip .b-logos { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .b-strip .b-logos { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---- responsive ---- */
@media (max-width: 980px) {
  .ss-cred-grid { grid-template-columns: repeat(2, 1fr); }
  .b-hero { grid-column: span 2; }
  .b-wide { grid-column: span 1; }
  .b-careers { grid-column: span 2; }
  .b-trio { grid-column: span 2; }
  .b-tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(6, 1fr); }
  .b-tall { grid-row: span 1; }
  .b-photo { min-height: 240px; }
  .b-dark.b-tall .b-val { font-size: clamp(38px, calc(6 * var(--fv, 1vw)), 52px); }
}
/* tablet: the one-column tiles would leave half-empty rows in two columns,
   so they run full width and the stat stack lays its four figures across */
@media (min-width: 601px) and (max-width: 980px) {
  .b-tall, .b-wide, .b-statstack { grid-column: span 2; }
  .b-dark.b-tall .b-logos { grid-template-columns: repeat(4, 1fr); }
  .b-statstack .b-body { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .b-statstack .b-mini + .b-mini { padding-top: 0; border-top: 0; padding-left: 14px; border-left: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .ss-cred-grid { grid-template-columns: 1fr; gap: 12px; }
  .b-tile, .b-hero, .b-wide, .b-tall, .b-careers { grid-column: span 1; grid-row: span 1; }
  .b-trio { grid-column: span 1; grid-template-columns: 1fr; }
  .b-tracks { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
  /* short stat/credential tiles shouldn't stretch tall on a single column */
  .b-tile { min-height: 0; justify-content: flex-start; gap: 16px; }
  .b-desc { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .b-tile, .b-wm, .b-swap > span { transition: none; }
  .b-red::after { animation: none; display: none; }
}

/* white-on-transparent logos sit on a dark plate so they stay visible */
.b-logo--dark { background: #14151a; border-color: #14151a; }
.b-logo--dark:hover { background: #22242e; border-color: #22242e; }
.b-dark .b-logo--dark:has(.b-logo-img) { background: #14151a; border-color: rgba(255, 255, 255, .2); }
/* square marks need more height than a wordmark to read at the same weight */
.b-logo-img--tall { height: 36px; }
.b-logo:has(.b-logo-img) { min-height: 54px; }

/* Marks you cannot name from the symbol alone (see _showName in _CredBand):
   the chip sets the mark beside the company name, in the wall's own label
   typography, so the tile still says who the partner is. */
.b-logo--named { flex-direction: row; gap: 8px; }
.b-logo--named .b-logo-img,
.b-logo--named .b-logo-img--tall { height: 26px; flex: 0 0 auto; }
.b-logo-name {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; line-height: 1.2;
  text-transform: uppercase; color: var(--muted); text-align: left;
}
.b-dark .b-logo--named .b-logo-name { color: var(--muted); }

/* ---- B.Sc. career paths ----
   Two routes, not twelve tracks, so the tile shows a named pathway and
   the roles that sit under it rather than a numbered grid. */
.b-paths { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.b-paths li {
  display: grid;
  grid-template-columns: minmax(96px, 128px) 1fr;
  gap: 18px;
  align-items: baseline;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.b-path-k {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
}
.b-path-v { font-size: 15px; line-height: 1.6; color: var(--ink); }
@media (max-width: 720px) {
  .b-paths li { grid-template-columns: 1fr; gap: 6px; }
}

/* ---- B.Sc. variant -------------------------------------------------
   The undergraduate band carries neither the partner strip nor the
   twelve-track wall, and what is left no longer tiles four columns.
   Letting the exit-point stack take the empty cell beside the trio, and
   narrowing the two-path tile to close the last row, packs it again. */
.ss-cred-grid.is-bsc .b-careers { grid-column: span 2; order: 1; }
@media (max-width: 720px) {
  .ss-cred-grid.is-bsc .b-careers { grid-column: span 1; }
}

/* ---- phones: figures read as rows, not screen-tall cards ----
   On one column the trio and the stat stack ran to about a screen each. The
   trio becomes three slim rows (figure beside its caption), the stat stack a
   2x2. Tiles stay one per row: paired, the 16px credential copy wrapped two
   words a line. */
@media (max-width: 600px) {
  .b-trio { gap: 8px; }
  .b-trio .b-tile { padding: 14px 16px; }
  .b-trio .b-body { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 14px; }
  .b-trio .b-val { font-size: 32px; }
  .b-trio .b-cap { margin-top: 0; }
  .b-statstack .b-body { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .b-statstack .b-body > :not(.b-mini) { grid-column: 1 / -1; }
  .b-statstack .b-mini + .b-mini { padding-top: 0; border-top: 0; }
  /* partner wall: three across so the logos are a glance, not a long scroll */
  .b-strip .b-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .b-strip .b-logo, .b-strip .b-logo:has(.b-logo-img) { min-height: 62px; padding: 6px; aspect-ratio: auto; }
  .b-strip .b-logo-img { height: 26px; }
  .b-strip .b-logo-img--tall { height: 36px; }
}

/* homepage partner wall on the brand red (same gradient as the red tile and the
   closing band) so it stands out; the logo chips keep their white and dark plates */
.b-strip--red {
  background: linear-gradient(150deg, #9c2119 0%, #841b14 50%, #5e120e 100%);
  border-color: transparent; color: #fff;
}
.b-strip--red:hover { box-shadow: 0 30px 56px -22px rgba(175, 37, 28, .6); }
.b-strip--red .b-strip-num, .b-strip--red .b-strip-cap { color: #fff; }
.b-strip--red .b-logo { border-color: rgba(255, 255, 255, .22); }
.b-strip--red .b-logo:hover { border-color: rgba(255, 255, 255, .7); }
.b-strip--red .m-clamp-btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.b-strip--red .m-clamp-btn:focus-visible { outline-color: #fff; }
