/* Functional controls only. Original chapter palettes and content surfaces stay intact. */
:root {
  --control-gloss-ease: cubic-bezier(.22, 1, .36, 1);
  --control-focus: #ffdbb6;
  --control-focus-outer: #08111f;
  --control-edge: rgba(255, 255, 255, .42);
}

.portfolio-gloss {
  box-sizing: border-box;
  min-height: 44px;
  font-weight: 650;
  text-decoration-thickness: 1.5px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  box-shadow:
    0 7px 20px -9px rgba(0, 0, 0, .45),
    inset 0 2px 2px rgba(255, 255, 255, .82),
    inset 0 8px 14px -6px rgba(255, 255, 255, .38),
    inset 0 -4px 8px -5px rgba(0, 0, 0, .75),
    inset 0 -1px 2px rgba(255, 255, 255, .24),
    inset 0 0 0 1px rgba(255, 255, 255, .12);
  transition: translate .22s var(--control-gloss-ease), scale .22s var(--control-gloss-ease),
    box-shadow .22s ease, border-color .22s ease, background-color .22s ease;
}

/* A reflection is painted over the existing colour, never instead of it. */
.portfolio-gloss--reflect { isolation: isolate; overflow: hidden; }
.portfolio-gloss--position { position: relative; }
.portfolio-gloss--reflect::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 18%, rgba(255, 255, 255, .28) 33%, transparent 47%),
    linear-gradient(180deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .035) 42%, transparent 51%, rgba(255, 255, 255, .06) 100%);
  background-size: 260% 100%, 100% 100%;
  background-position: 100% 0, 0 0;
  transition: background-position .65s var(--control-gloss-ease), opacity .22s ease;
}
.portfolio-gloss:focus-visible {
  outline: 3px solid var(--control-focus);
  outline-offset: 4px;
  box-shadow: 0 0 0 2px var(--control-focus-outer), inset 0 1px 1px #ffffffc7;
}
.portfolio-gloss:focus-visible::after { background-position: 0 0, 0 0; }
.portfolio-gloss:disabled,
.portfolio-gloss[aria-disabled="true"] {
  cursor: not-allowed;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15);
  translate: none;
  scale: none;
}
.portfolio-gloss:disabled::after,
.portfolio-gloss[aria-disabled="true"]::after { opacity: .25; }
@media (hover: hover) and (pointer: fine) {
  .portfolio-gloss:hover:not(:disabled):not([aria-disabled="true"]) {
    translate: 0 -2px;
    scale: 1.018;
    border-color: var(--control-edge);
    box-shadow: 0 12px 25px -10px rgba(0, 0, 0, .5), 0 0 16px -9px currentColor,
      inset 0 2px 2px #fffffff5, inset 0 9px 15px -5px #ffffff73,
      inset 0 -2px 3px #ffffff47;
  }
  .portfolio-gloss:hover:not(:disabled):not([aria-disabled="true"])::after { background-position: 0 0, 0 0; }
}
.portfolio-gloss:active:not(:disabled):not([aria-disabled="true"]) { translate: 0 0; scale: .985; }

/* Gateway material and matching orange/blue glow live in gate-colours.css. */

/* Clear chapter navigation, even when a pale photograph passes behind it. */
.film-nav { mix-blend-mode: normal; }
.film-nav .film-brand {
  border: 1px solid #ffffff57;
  border-radius: 15px;
  padding: 8px 11px;
  color: #fff;
  background: linear-gradient(180deg, #4a505a99, #151b23b8 48%, #10171fcc);
  box-shadow: inset 0 2px 2px #ffffff8c, inset 0 -2px 3px #ffffff24, 0 5px 15px #0002;
}
.film-nav .film-links {
  gap: 3px;
  padding: 4px;
  border: 1px solid #ffffff57;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #4a505a94, #151b23b8 48%, #10171fcc);
  box-shadow: inset 0 2px 2px #ffffff91, inset 0 -2px 3px #ffffff29, 0 7px 20px #0002;
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  backdrop-filter: blur(12px) saturate(1.15);
}
.film-links a.portfolio-gloss { border: 1px solid transparent; border-radius: 999px; padding: 9px 15px; font-size: 12px; font-weight: 650; letter-spacing: .025em; box-shadow: none; }
.film-links a.portfolio-gloss:hover { background: #ffffff17; }
.film-menu.portfolio-gloss { color: #fff; background: linear-gradient(180deg, #526071a3, #172330d4 48%, #131b24d9); border-color: #ffffff85; }
.film-scroll.portfolio-gloss,
.film-video-toggle.portfolio-gloss { background: linear-gradient(180deg, #52636a9e, #15292dcc 48%, #09151bd9); }
.film-story-controls button.portfolio-gloss,
.film-act-nav button.portfolio-gloss { font-weight: 700; }
.film-act-nav button.portfolio-gloss:not([aria-current="true"]) { background: linear-gradient(160deg, #ffffffec, var(--film-paper)); }
.film-chapter-menu nav a.portfolio-gloss { font-weight: 650; background: linear-gradient(160deg, #ffffff10, #ffffff03); }
.film-chapter-menu nav a[aria-current="page"] { border-width: 2px; text-decoration: underline; text-underline-offset: 5px; }
.film-chapter-menu button.portfolio-gloss { background: linear-gradient(160deg, #ffffff1a, #ffffff07); }
.film-story-controls button.portfolio-gloss:disabled { color: #596562; background: var(--film-paper); border-color: #9da8a0; }
.film-act-nav,
.chapter-evidence { --control-focus: var(--film-accent, #7d3552); --control-focus-outer: var(--film-paper, #fafafa); }

/* Research selectors and teaching controls keep the familiar Previous/Next pattern. */
.story-top .portfolio-gloss,
.story-navigation .portfolio-gloss { font-weight: 650; }
.story-navigation button.portfolio-gloss { font-size: 12px; }
.story-navigation select.portfolio-gloss { font-size: 12px; font-weight: 600; }
.student-tools .portfolio-gloss { font-weight: 650; }
.student-mode-label { color: #d9e7fa; font-size: 11px; font-weight: 600; }
.student-stage-copy small { color: #e0e9f8; font-size: 10px; font-weight: 500; }
.student-book-icon { box-shadow: inset 0 1px 1px #ffffffa6, inset 0 -3px 7px #ffffff17, 0 2px 8px #0002; }
.student-dialog { --control-focus: #315e9c; --control-focus-outer: #f5f8ff; }
.student-dialog :is(.student-dialog-close, .student-dialog-resume).portfolio-gloss { font-size: 13px; }
.student-dialog-close > span:first-child { font-weight: 500; }
.student-introduction-actions button.portfolio-gloss { font-size: 12px; }
.ce-tablist > [role="tab"].portfolio-gloss[aria-selected="true"] { border-width: 2px; text-decoration: underline; text-underline-offset: 4px; }

/* Osmania retains charcoal and copper, with readable white navigation. */
.os-nav { border-color: #ffffff70; box-shadow: 0 8px 25px #26313725, inset 0 2px 2px #ffffffa6, inset 0 -2px 4px #ffffff1f; }
.os-nav .portfolio-gloss { color: #fff; font-weight: 650; }
.os-nav a.portfolio-gloss { box-shadow: none; }
.os-nav button.portfolio-gloss { background: #ffffff0c; }
.os-back.portfolio-gloss { --control-focus: #74411c; --control-focus-outer: #fcfcfc; font-weight: 650; }
.os-back span { box-shadow: inset 0 1px 1px #ffffff9e, inset 0 -4px 9px #ffffff14, 0 2px 5px #0002; }
.os-opening-cta.portfolio-gloss { background: linear-gradient(160deg, #443a30aa, #171b1ada); }
.os-scene-controls { box-shadow: inset 0 2px 2px #ffffffad, inset 0 -2px 4px #ffffff24, 0 8px 25px #0004; }
.os-scene-controls .portfolio-gloss { font-weight: 650; }
.os-card-top a.portfolio-gloss { --control-focus: #74411c; --control-focus-outer: #fcfcfc; }

/* Light utility pages and scalable app icons. No added filters on large cards. */
.back-link.portfolio-gloss,
.contact-back.portfolio-gloss { --control-focus: #4667ae; --control-focus-outer: #f9fbff; color: #344465; font-weight: 650; }
.contact-main button.portfolio-gloss { font-weight: 700; }
.contact-main button.portfolio-gloss:disabled { opacity: .7; }
.brand-glass,
.quanta-tile,
.cosmos-tile,
.launch-arrow { box-shadow: inset 0 2px 2px #fffffff2, inset 0 9px 14px -8px #ffffffb3, inset 0 -3px 6px #ffffff4d, 0 6px 15px -5px rgba(var(--rgb, 74, 101, 160), .35); }
.brand-glass { background: linear-gradient(145deg, #fff 10%, #e4e7fb99 55%, #ffffffdd); }
.app-card { box-shadow: 0 8px 32px -20px #33477355, 0 0 0 1px #dce3ee66, inset 0 2px 1px #fff, inset 0 -7px 16px #ffffff4d; }
.app-action { font-weight: 700; }
.launch-arrow { background: linear-gradient(150deg, #ffffffd9, rgba(var(--rgb), .1)); }

/* The intro keeps a compact native range control and clear labelled actions. */
.intro-film__toolbar { --control-focus: #ffdbb6; --control-focus-outer: #08111f; }
.intro-film :is(.intro-film__play, .intro-film__replay, .intro-film__skip, .intro-film__home).portfolio-gloss {
  font-weight: 700;
  box-shadow: inset 0 1px 1px #ffffff9e, inset 0 -2px 4px #ffffff0d, 0 3px 12px #0002;
}
.intro-film .portfolio-gloss--reflect::after {
  background: linear-gradient(112deg, transparent 18%, #ffffff2e 33%, transparent 47%);
  background-size: 260% 100%;
  background-position: 100% 0;
}
.intro-film .portfolio-gloss:focus-visible {
  outline: 3px solid #ffe0bd;
  outline-offset: 5px;
  box-shadow: inset 0 2px 2px #fff, 0 0 24px -3px #ffffff80;
}
@media (hover: hover) and (pointer: fine) {
  .intro-film :is(.intro-film__play, .intro-film__replay, .intro-film__skip, .intro-film__home).portfolio-gloss:hover {
    box-shadow: inset 0 2px 2px #ffffffed, inset 0 -2px 4px #ffffff38, 0 0 24px -4px #ffffff80, 0 7px 16px #0003;
  }
  .intro-film .portfolio-gloss--reflect:hover::after { background-position: 0 0; }
}
.intro-film__scrubber { min-height: 44px; accent-color: #ffbd80; cursor: pointer; touch-action: pan-x; }
.intro-film__scrubber:focus-visible { outline: 3px solid #ffdbb6; outline-offset: 3px; border-radius: 8px; }

@media (max-width: 760px) {
  .film-nav .film-brand { padding: 7px 9px; }
  .film-nav .film-links { display: none; }
  .os-nav a.portfolio-gloss,
  .os-nav button.portfolio-gloss { min-height: 44px; font-size: 12px; }
  .student-toggle.portfolio-gloss,
  .student-stage-button.portfolio-gloss { font-size: 11px; }
  .student-stage-copy small { font-size: 9px; }
  .student-mode-label { font-size: 10px; }
  .story-navigation button.portfolio-gloss { font-size: 11px; }
  .story-navigation select.portfolio-gloss { font-size: 11px; }
}
@media (max-width: 359px) {
  .story-navigation button.portfolio-gloss { font-size: 10px; }
  .story-navigation select.portfolio-gloss { font-size: 10px; }
  .student-toggle.portfolio-gloss { font-size: 10px; }
  .student-stage-button.portfolio-gloss { font-size: 10px; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .film-nav .film-links { background: #18212a; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-gloss,
  .portfolio-gloss::after { transition: none !important; animation: none !important; }
  .portfolio-gloss:hover,
  .portfolio-gloss:active { translate: none !important; scale: none !important; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .portfolio-gloss::after { display: none; }
  .portfolio-gloss { box-shadow: inset 0 1px 0 #ffffff70; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .intro-film .portfolio-gloss { box-shadow: inset 0 1px 0 #ffffff70; }
  .film-nav .film-links,
  .film-nav .film-brand,
  .film-menu.portfolio-gloss { background: #18212a; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .os-nav { background: #283235; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .story-navigation .portfolio-gloss,
  .student-tools .portfolio-gloss { background: #142237; color: #fff; }
  .student-dialog :is(.student-dialog-close, .student-dialog-resume).portfolio-gloss,
  .back-link.portfolio-gloss,
  .contact-back.portfolio-gloss { background: #fff; color: #243955; }
}
@media (forced-colors: active) {
  .portfolio-gloss { background: ButtonFace !important; color: ButtonText !important; border: 1px solid ButtonText !important; box-shadow: none !important; forced-color-adjust: auto; }
  .portfolio-gloss::after { display: none; }
  .portfolio-gloss:focus-visible { outline-color: Highlight; }
  .portfolio-gloss:disabled { color: GrayText !important; border-color: GrayText !important; }
}

/* Keep the secondary destination obvious on phones as well as desktop. */
.film-nav .film-menu.portfolio-gloss{display:inline-flex;align-items:center;justify-content:center;gap:9px;width:auto;min-width:96px;padding:10px 16px;border-radius:999px;font:650 14px/1.2 Inter,system-ui,sans-serif}

/* The scroll opening gets one compact glass progress dock. Other chapter
   counters, colours and reading surfaces retain their existing layout. */
.opening-sequence .story-bottom {
  left: 50%;
  right: auto;
  bottom: max(22px, env(safe-area-inset-bottom));
  width: min(720px, calc(100% - 48px));
  min-height: 56px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  border: 1px solid #ffffff52;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff13, #13203330 48%, #040b1859);
  color: #f1f5ff;
  font: 600 13px/1.45 'IBM Plex Mono', monospace;
  letter-spacing: .025em;
  text-shadow: 0 1px 3px #000c;
  box-shadow: inset 0 1px 1px #ffffff8c, inset 0 -1px 2px #ffffff1a, 0 10px 28px -10px #0006;
  -webkit-backdrop-filter: blur(8px) saturate(1.08);
  backdrop-filter: blur(8px) saturate(1.08);
  isolation: isolate;
}
.opening-sequence .story-bottom::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, #ffffff16, transparent 48%);
  pointer-events: none;
  z-index: 0;
}
.opening-sequence .story-bottom > * { position: relative; z-index: 1; }
.opening-sequence .story-counter { white-space: nowrap; font-variant-numeric: tabular-nums; }
.opening-sequence .story-cue { max-width: none; white-space: nowrap; }
.opening-sequence .story-track { width: 100%; height: 3px; border-radius: 999px; background: #ffffff40; }
.opening-sequence .story-fill { height: 3px; border-radius: inherit; background: #ff8a2b; box-shadow: 0 0 8px #ff8a2b70; }
/* Reserve the progress dock's height even in short landscape viewports. */
.opening-sequence .story-copy { bottom: max(13vh, 112px); }
@media (max-width: 650px) {
  .opening-sequence .story-bottom {
    width: calc(100% - 32px);
    bottom: max(16px, env(safe-area-inset-bottom));
    gap: 12px;
    padding: 12px 15px;
    border-radius: 20px;
    font-size: 11px;
  }
}
@media (max-width: 540px) {
  .opening-sequence .story-bottom { grid-template-columns: auto minmax(0, 1fr); row-gap: 9px; }
  .opening-sequence .story-cue { grid-column: 2; grid-row: 1; justify-self: end; text-align: right; white-space: normal; }
  .opening-sequence .story-track { grid-column: 1 / -1; grid-row: 2; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .opening-sequence .story-bottom { background: linear-gradient(180deg, #263144c9, #0b1423de); }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .opening-sequence .story-bottom { background: #101a2c; border-color: #dce7ff; color: #fff; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .opening-sequence .story-bottom::before { display: none; }
}
@media (forced-colors: active) {
  .opening-sequence .story-bottom { background: Canvas; color: CanvasText; border: 1px solid CanvasText; box-shadow: none; text-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .opening-sequence .story-bottom::before { display: none; }
  .opening-sequence .story-track { background: CanvasText; }
  .opening-sequence .story-fill { background: Highlight; box-shadow: none; }
}

/* Complete the shared control vocabulary without turning scientific text or
   evidence figures into glass panels. Brand text keeps its existing lockup. */
.portfolio-gloss--identity { box-shadow: none; text-decoration: none; }
.portfolio-gloss--native:hover,
.portfolio-gloss--native:active { translate: none !important; scale: none !important; }
.contact-brand > span[aria-hidden] {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid #fff;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #e3e7f5b3 55%, #f7f8ff);
  box-shadow: inset 0 2px 2px #fff, inset 0 -2px 4px #b8c4e229, 0 5px 12px #43577718;
}
.film-brand .film-mark { text-shadow: 0 1px 1px #ffffff80, 0 2px 5px #0003; }
.hub-header, .hub-footer, .contact-header, .contact-main, .os-archive, .os-footer-bottom {
  --control-focus: #315b94;
  --control-focus-outer: #f9fbff;
}
.film-details-toggle { --control-focus: var(--film-ink); --control-focus-outer: var(--film-paper); }
.cinema-page .film-details-toggle > summary.portfolio-gloss {
  padding-inline: 18px;
  border: 1px solid #737d7b66;
  border-radius: 17px;
  background: linear-gradient(180deg, #ffffff66, #ffffff0a 52%, #ffffff24);
}
.chapter-evidence .ce-reveal > summary.portfolio-gloss {
  min-height: 48px;
  padding: 11px 15px;
  border: 1px solid var(--ce-rule);
  border-radius: 13px;
  background: linear-gradient(180deg, #ffffff21, #ffffff03 54%, #ffffff0d);
  color: var(--ce-accent);
}
.chapter-evidence .ce-reveal > summary.portfolio-gloss > span { flex: 0 0 auto; }
.osmania-chapter .os-archive summary.portfolio-gloss {
  padding-inline: 15px;
  border: 1px solid #c6cdd166;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f1f4f57a);
}
.film-native-card > a.portfolio-gloss {
  padding-inline: 13px;
  border: 1px solid #536c6480;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffffba, #ffffff38);
  color: inherit;
}
.film-load-fallback a.portfolio-gloss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid #ffffff80;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff24, #ffffff08);
  font-size: 14px;
}
.hub-footer > a.portfolio-gloss,
.osmania-chapter .os-footer-bottom a.portfolio-gloss {
  padding: 10px 15px;
  border: 1px solid #bac7d582;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffffd9, #ffffff59);
  font-weight: 650;
}
.hub-footer > a.portfolio-gloss { color: #344465; font-size: 12px; }
.contact-main :is(input:not([type="hidden"]), textarea) {
  box-shadow: inset 0 2px 4px #7286ab0d, 0 1px 0 #fff;
}
.contact-main :is(input, textarea):focus-visible { outline-color: #4667a0; border-color: #4667a0; }
.contact-main button.portfolio-gloss:disabled { opacity: 1; }
/* Form entries and native quiz answer glyphs keep stable, familiar geometry. */
.chapter-evidence .ce-quiz .portfolio-gloss--feedback { box-shadow: inset 0 1px 0 #ffffff54, inset 0 -1px 0 #1623310a; }
.chapter-evidence .ce-quiz .portfolio-gloss--feedback::after {
  inset: auto 8px auto auto;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
}
.source-list a.portfolio-gloss { box-shadow: inset 0 1px 0 #ffffff38, 0 4px 14px -12px #0008; }
.story-steps button { box-shadow: inset 0 1px 1px #ffffffa6, inset 0 -1px 1px #0003; }
.student-switch-track { box-shadow: inset 0 1px 3px #06122640, inset 0 -1px 0 #ffffff47; }
.student-switch-thumb { box-shadow: inset 0 1px 1px #fff, 0 1px 3px #0612264d; }
.os-back span { background: linear-gradient(180deg, #3d4346, #111 65%, #242a2d); }

/* App cards remain reading surfaces. Small native marks and launch arrows carry
   the stronger jelly sheen; no large card backdrop passes are needed. */
.app-card { -webkit-backdrop-filter: none; backdrop-filter: none; }
.brand-glass, .quanta-tile, .cosmos-tile, .launch-arrow {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
:is(.brand-glass, .quanta-tile, .cosmos-tile, .launch-arrow)::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(112deg, transparent 20%, #ffffff66 34%, transparent 48%),
    linear-gradient(180deg, #ffffff42, #ffffff03 48%, transparent 52%);
  background-size: 260% 100%, 100% 100%;
  background-position: 100% 0, 0 0;
  transition: background-position .6s var(--control-gloss-ease);
}
.app-card:focus-visible :is(.quanta-tile, .cosmos-tile, .launch-arrow)::after,
.hub-brand:focus-visible .brand-glass::after { background-position: 0 0, 0 0; }
.logo-youtube svg path:first-child { stroke: #ffb7c6; stroke-width: 1px; }
@media (hover: hover) and (pointer: fine) {
  .app-card:hover :is(.quanta-tile, .cosmos-tile, .launch-arrow)::after,
  .hub-brand:hover .brand-glass::after { background-position: 0 0, 0 0; }
  .portfolio-gloss.portfolio-gloss--identity:hover:not(:disabled):not([aria-disabled="true"]) { scale: 1.008; }
}
@media (max-width: 760px) {
  .hub-footer > a.portfolio-gloss { font-size: 11px; }
  .cinema-page .film-details-toggle > summary.portfolio-gloss { padding-inline: 14px; }
  .film-native-card > a.portfolio-gloss { padding-inline: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.brand-glass, .quanta-tile, .cosmos-tile, .launch-arrow)::after { transition: none; }
  .portfolio-gloss--identity:hover { scale: none; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  :is(.brand-glass, .quanta-tile, .cosmos-tile, .launch-arrow)::after { display: none; }
  .cinema-page .film-details-toggle > summary.portfolio-gloss { background: var(--film-paper); border-color: var(--film-ink); }
  .chapter-evidence .ce-reveal > summary.portfolio-gloss { background: transparent; border-color: var(--ce-accent); box-shadow: none; }
  .osmania-chapter .os-archive summary.portfolio-gloss,
  .hub-footer > a.portfolio-gloss,
  .osmania-chapter .os-footer-bottom a.portfolio-gloss,
  .film-native-card > a.portfolio-gloss { background: #fff; color: #243955; border-color: #526985; }
  .contact-brand > span[aria-hidden] { background: #fff; box-shadow: none; }
  .film-load-fallback a.portfolio-gloss { background: #18212a; }
}
@media (forced-colors: active) {
  :is(.brand-glass, .quanta-tile, .cosmos-tile, .launch-arrow)::after { display: none; }
  .contact-brand > span[aria-hidden] { background: Canvas; color: CanvasText; box-shadow: none; border-color: CanvasText; }
  .logo-youtube svg path:first-child { stroke: currentColor; }
  .chapter-evidence .ce-quiz .portfolio-gloss--feedback::after { color: ButtonText; }
  .student-switch-track, .student-switch-thumb, .story-steps button { box-shadow: none; }
}

/* The gateway welcome and portfolio contact route use the same small-control
   finish; the loader's white/violet and the portfolio's amber remain distinct. */
.welcome-cinema__skip.portfolio-gloss {
  --control-focus: #6b54af; --control-focus-outer: #fff;
  color: #4d5269; background: linear-gradient(180deg, #fff, #eff0fc9c);
  font-weight: 650;
}
#portfolio-body a[href="contact.html"].portfolio-gloss {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 21px; border: 1px solid #ffbf7a80;
  border-radius: 999px; background: linear-gradient(180deg, #ffbd7926, #21170e70);
  color: #ffd3a3; font-weight: 650; letter-spacing: .04em;
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .welcome-cinema__skip.portfolio-gloss { background: #fff; }
  #portfolio-body a[href="contact.html"].portfolio-gloss { background: #261b10; color: #ffe0bd; }
}

/* Playback feedback shares the campus control's dark glass, with enough opacity
   to remain readable over every frame. The adjacent 44px button stays clear. */
.cinema-page .film-video-status {
  position: absolute;
  z-index: 8;
  top: 55px;
  inset-inline: 12px 70px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #d1e7ecb3;
  border-radius: 14px;
  background: linear-gradient(180deg, #52636af2, #15292df5 48%, #09151bf5);
  color: #f4f9ff;
  font: 500 12px/1.5 Inter, Arial, sans-serif;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: pretty;
  box-shadow: inset 0 1px 0 #ffffff52, 0 6px 18px #0003;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.cinema-page .film-video-status[hidden] { display: none !important; }
.cinema-page[data-motion="still"] .film-video-status { display: none; }
@media (max-width: 760px) {
  .cinema-page .film-video-status { inset-inline: 10px 66px; padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .cinema-page .film-video-status { display: none; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .cinema-page .film-video-status {
    background: #15292d;
    color: #fff;
    border-color: #eaf6fa;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (forced-colors: active) {
  .cinema-page .film-video-status {
    background: Canvas;
    color: CanvasText;
    border-color: CanvasText;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    forced-color-adjust: auto;
  }
}
