/* =============================================================================
   AMPS — site theme (loaded after Bootstrap 5.3)

   Brand: Navy #071A33 · Cyan #00C8E8 · Blue #245A91 · White #FFFFFF
   Type:  Archivo (variable: width + weight) for everything; STIX Two Text for math.
   One bold element per page (the hero's live model); everything else stays quiet.
   ========================================================================== */

/* ---- Fonts ------------------------------------------------------------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "STIX Two Text";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/stix-two-text-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "STIX Two Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/stix-two-text-latin-400-normal.woff2") format("woff2");
}

/* ---- Tokens ------------------------------------------------------------ */
:root {
  --amps-navy: #071A33;
  --amps-navy-raised: #0A2242;
  --amps-navy-deep: #051328;
  --amps-cyan: #00C8E8;
  --amps-cyan-soft: #7FE6F5;
  --amps-blue: #245A91;
  --amps-white: #FFFFFF;
  --amps-text: #DCE6F2;
  --amps-muted: #9FB4CC;
  --amps-line: rgba(36, 90, 145, 0.55);
  --amps-line-soft: rgba(36, 90, 145, 0.3);

  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Bengali", sans-serif;
  --font-math: "STIX Two Text", "Cambria Math", "Times New Roman", serif;

  --radius-control: 6px;
  --radius-media: 10px;
  --section-space: clamp(3.5rem, 7vw, 6rem);
  --header-h: 72px;
}

[data-bs-theme="dark"] {
  --bs-body-bg: var(--amps-navy);
  --bs-body-bg-rgb: 7, 26, 51;
  --bs-body-color: var(--amps-text);
  --bs-body-color-rgb: 220, 230, 242;
  --bs-emphasis-color: var(--amps-white);
  --bs-secondary-color: var(--amps-muted);
  --bs-secondary-bg: var(--amps-navy-raised);
  --bs-tertiary-bg: #0C2850;
  --bs-border-color: var(--amps-line);
  --bs-link-color: var(--amps-cyan);
  --bs-link-color-rgb: 0, 200, 232;
  --bs-link-hover-color: var(--amps-cyan-soft);
  --bs-link-hover-color-rgb: 127, 230, 245;
  --bs-primary: var(--amps-cyan);
  --bs-primary-rgb: 0, 200, 232;
  --bs-focus-ring-color: rgba(0, 200, 232, 0.45);
  --bs-body-font-family: var(--font-sans);
  --bs-heading-color: var(--amps-white);
  --bs-dropdown-bg: var(--amps-navy-raised);
}

/* ---- Base ---------------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-stretch: 100%;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  font-family: var(--font-sans);
  color: var(--amps-white);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2, .h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); font-weight: 700; font-stretch: 112%; line-height: 1.15; }
h3, .h3 { font-size: 1.2rem; font-weight: 650; line-height: 1.3; }
p { text-wrap: pretty; }

a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }

:focus-visible {
  outline: 2px solid var(--amps-cyan);
  outline-offset: 3px;
  border-radius: 2px;
}
.btn:focus-visible, .form-control:focus, .form-select:focus { box-shadow: 0 0 0 3px rgba(0, 200, 232, 0.4); outline: none; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  background: var(--amps-cyan); color: var(--amps-navy); padding: .6rem 1rem; border-radius: var(--radius-control);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.text-muted-amps { color: var(--amps-muted) !important; }
.math { font-family: var(--font-math); font-style: italic; font-size: 1.12em; letter-spacing: 0; }
.math .up { font-style: normal; }
.measure { max-width: 66ch; }

/* ---- Buttons ------------------------------------------------------------- */
.btn { border-radius: var(--radius-control); font-weight: 600; padding: .65rem 1.2rem; }
.btn-sm { padding: .4rem .8rem; }
.btn-primary {
  --bs-btn-color: var(--amps-navy); --bs-btn-bg: var(--amps-cyan); --bs-btn-border-color: var(--amps-cyan);
  --bs-btn-hover-color: var(--amps-navy); --bs-btn-hover-bg: var(--amps-cyan-soft); --bs-btn-hover-border-color: var(--amps-cyan-soft);
  --bs-btn-active-color: var(--amps-navy); --bs-btn-active-bg: #33D3EC; --bs-btn-active-border-color: #33D3EC;
  --bs-btn-disabled-color: var(--amps-navy); --bs-btn-disabled-bg: var(--amps-cyan); --bs-btn-disabled-border-color: var(--amps-cyan);
}
.btn-outline-light {
  --bs-btn-color: var(--amps-white); --bs-btn-border-color: rgba(255, 255, 255, .45);
  --bs-btn-hover-color: var(--amps-navy); --bs-btn-hover-bg: var(--amps-white); --bs-btn-hover-border-color: var(--amps-white);
  --bs-btn-active-color: var(--amps-navy); --bs-btn-active-bg: var(--amps-text);
}
.btn-ghost {
  --bs-btn-color: var(--amps-text); --bs-btn-border-color: transparent; --bs-btn-hover-color: var(--amps-white);
  --bs-btn-hover-bg: rgba(36, 90, 145, .35); --bs-btn-active-bg: rgba(36, 90, 145, .5); --bs-btn-active-color: var(--amps-white);
}

/* ---- Header & navigation ------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(7, 26, 51, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--amps-line-soft); background: rgba(7, 26, 51, 0.94); }
.site-header .navbar { min-height: var(--header-h); padding-block: .5rem; }

.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--amps-white); text-decoration: none; }
.brand:hover { color: var(--amps-white); }
.brand-logo { height: 42px; width: auto; }
.brand-wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.brand-wordmark strong { font-size: 1.35rem; font-weight: 800; font-stretch: 125%; letter-spacing: .02em; }
.brand-wordmark span { font-size: .72rem; color: var(--amps-muted); font-stretch: 100%; }

.site-nav .nav-link {
  color: var(--amps-text); font-weight: 550; font-size: .95rem; padding: .5rem .8rem !important; border-radius: var(--radius-control);
}
.site-nav .nav-link:hover, .site-nav .nav-link:focus-visible { color: var(--amps-white); background: rgba(36, 90, 145, .28); }
.site-nav .nav-link.active, .site-nav .nav-link[aria-current="page"] { color: var(--amps-white); box-shadow: inset 0 -2px 0 var(--amps-cyan); border-radius: 0; }
.site-nav .dropdown-toggle::after { border-top-width: .28em; border-right-width: .28em; border-left-width: .28em; opacity: .7; margin-left: .35em; }

.site-nav .dropdown-menu {
  --bs-dropdown-bg: var(--amps-navy-raised);
  --bs-dropdown-border-color: var(--amps-line);
  --bs-dropdown-link-color: var(--amps-text);
  --bs-dropdown-link-hover-bg: rgba(36, 90, 145, .35);
  --bs-dropdown-link-hover-color: var(--amps-white);
  --bs-dropdown-link-active-bg: rgba(0, 200, 232, .16);
  --bs-dropdown-link-active-color: var(--amps-white);
  border-radius: var(--radius-media);
  padding: .4rem;
  min-width: 17rem;
  box-shadow: 0 18px 40px rgba(2, 10, 22, .55);
}
.site-nav .dropdown-item { border-radius: var(--radius-control); padding: .55rem .75rem; white-space: normal; }
.site-nav .dropdown-item strong { display: block; font-weight: 600; color: var(--amps-white); }
.site-nav .dropdown-item small { display: block; color: var(--amps-muted); font-size: .8rem; }

.nav-actions { display: flex; align-items: center; gap: .4rem; }
.navbar-toggler { border-color: var(--amps-line); padding: .45rem .6rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(0, 200, 232, .4); }

.search-panel { border-top: 1px solid var(--amps-line-soft); background: var(--amps-navy-raised); }
.search-panel form { display: flex; gap: .5rem; padding-block: 1rem; }

.form-control, .form-select {
  background-color: var(--amps-navy-deep); border-color: var(--amps-line); color: var(--amps-white);
  border-radius: var(--radius-control); padding: .65rem .85rem;
}
.form-control::placeholder { color: #7f95ae; }
.form-control:focus, .form-select:focus { background-color: var(--amps-navy-deep); border-color: var(--amps-cyan); color: var(--amps-white); }
.form-label { font-weight: 550; color: var(--amps-white); }

@media (max-width: 1199.98px) {
  .site-nav.offcanvas-xl { --bs-offcanvas-bg: var(--amps-navy); --bs-offcanvas-width: min(88vw, 380px); border-left: 1px solid var(--amps-line); }
  .site-nav .navbar-nav { gap: .15rem; }
  .site-nav .nav-link { padding: .8rem .75rem !important; font-size: 1.02rem; }
  .site-nav .nav-link.active, .site-nav .nav-link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--amps-cyan); }
  .site-nav .dropdown-menu { box-shadow: none; border: 0; background: transparent; padding: 0 0 .35rem .75rem; min-width: 0; }
  .nav-actions { flex-direction: column; align-items: stretch; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--amps-line-soft); }
  .nav-actions .btn { padding-block: .75rem; }
}

/* ---- Flash messages ------------------------------------------------------ */
.flash-stack { position: relative; z-index: 5; }
.alert { border-radius: var(--radius-control); border-width: 1px; }
.alert-success { --bs-alert-bg: rgba(0, 200, 232, .1); --bs-alert-border-color: rgba(0, 200, 232, .5); --bs-alert-color: var(--amps-white); }
.alert-danger  { --bs-alert-bg: rgba(255, 99, 99, .1); --bs-alert-border-color: rgba(255, 120, 120, .55); --bs-alert-color: #ffe3e3; }
.alert-warning { --bs-alert-bg: rgba(255, 196, 0, .08); --bs-alert-border-color: rgba(255, 196, 0, .45); --bs-alert-color: #fff4cc; }
.alert-info    { --bs-alert-bg: rgba(36, 90, 145, .3); --bs-alert-border-color: var(--amps-blue); --bs-alert-color: var(--amps-white); }

/* ---- Shared content pieces ---------------------------------------------- */
.demo-badge {
  display: inline-block; vertical-align: .15em;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; line-height: 1;
  color: var(--amps-navy); background: #FFC94D; border-radius: 3px; padding: .22rem .4rem;
}
.tag {
  display: inline-block; font-size: .78rem; font-weight: 550; color: var(--amps-cyan-soft);
  border: 1px solid rgba(0, 200, 232, .35); border-radius: 999px; padding: .12rem .6rem; line-height: 1.5;
}
.meta { color: var(--amps-muted); font-size: .88rem; }
.meta i { width: 1.1em; text-align: center; opacity: .8; }

.avatar {
  --size: 64px;
  width: var(--size); height: var(--size); border-radius: 50%; flex: none;
  display: inline-grid; place-items: center; overflow: hidden;
  background: linear-gradient(145deg, var(--amps-blue), #123B66); color: var(--amps-white);
  font-weight: 700; font-stretch: 112%; font-size: calc(var(--size) * .34);
  border: 1px solid rgba(0, 200, 232, .35);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1.75rem; }
.section-head h2 { margin: 0; }
.section-head p { flex: 1 0 100%; margin: .35rem 0 0; color: var(--amps-muted); }
.section-link { font-weight: 600; text-decoration: none; white-space: nowrap; }
.section-link:hover { text-decoration: underline; }

/* ---- Homepage sections ---------------------------------------------------- */
.home-section { padding-block: var(--section-space); }
.home-section + .home-section { border-top: 1px solid var(--amps-line-soft); }
.home-section.is-raised { background: var(--amps-navy-raised); }

/* Hero: the one bold moment — a live phase portrait */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88vh, 820px);
  display: flex; align-items: center;
  padding-block: clamp(4rem, 9vw, 7rem);
  background: radial-gradient(120% 90% at 85% 40%, #0B2A52 0%, var(--amps-navy) 60%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 26, 51, .96) 0%, rgba(7, 26, 51, .82) 38%, rgba(7, 26, 51, .15) 72%, rgba(7, 26, 51, 0) 100%),
              linear-gradient(0deg, var(--amps-navy) 0%, rgba(7, 26, 51, 0) 22%);
}
.hero-inner { position: relative; width: 100%; }
.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 4rem);
  font-weight: 800; font-stretch: 118%;
  line-height: 1.03; letter-spacing: -0.028em;
  max-width: 14em; margin-bottom: 1.5rem;
}
.hero-lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--amps-text); max-width: 52ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.model-card {
  position: absolute; right: 0; bottom: 0;
  width: 300px; padding: 1rem 1.1rem 1.05rem;
  background: rgba(5, 19, 40, .78); border: 1px solid var(--amps-line); border-radius: var(--radius-media);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.model-card .model-name { font-weight: 650; color: var(--amps-white); font-size: .95rem; margin: 0 0 .5rem; }
.model-card .model-name span { color: var(--amps-muted); font-weight: 500; }
.model-eq { font-family: var(--font-math); font-size: 1.15rem; color: var(--amps-white); line-height: 1.55; margin: 0 0 .65rem; }
.model-eq i { font-style: italic; }
.model-eq .mu { color: var(--amps-cyan); }
.model-control { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; }
.model-control label { font-size: .85rem; color: var(--amps-muted); }
.model-control output { font-variant-numeric: tabular-nums; font-size: .9rem; color: var(--amps-cyan); min-width: 2.6ch; text-align: right; }
.model-card .form-range { height: 1.2rem; }
.form-range::-webkit-slider-thumb { background: var(--amps-cyan); }
.form-range::-moz-range-thumb { background: var(--amps-cyan); }
.form-range::-webkit-slider-runnable-track { background: var(--amps-line); }
.form-range::-moz-range-track { background: var(--amps-line); }
.model-caption { font-size: .78rem; color: var(--amps-muted); margin: .55rem 0 0; line-height: 1.45; }

@media (max-width: 991.98px) {
  .hero { min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(7, 26, 51, .55) 0%, rgba(7, 26, 51, .88) 55%, var(--amps-navy) 100%); }
  .model-card { position: relative; width: 100%; max-width: 420px; margin-top: 2.5rem; }
}

/* About */
.focus-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem 1.5rem; }
.focus-list li { padding: .55rem 0 .55rem .85rem; border-left: 1px solid var(--amps-blue); color: var(--amps-text); }
@media (min-width: 576px) { .focus-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Notices: a notice board, not cards */
.notice-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--amps-line-soft); }
.notice-item { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--amps-line-soft); }
.notice-date { text-align: center; line-height: 1.05; padding-top: .15rem; }
.notice-date strong { display: block; font-size: 1.55rem; font-weight: 700; font-stretch: 112%; color: var(--amps-white); font-variant-numeric: tabular-nums; }
.notice-date span { font-size: .75rem; color: var(--amps-muted); }
.notice-item h3 { font-size: 1.02rem; font-weight: 600; margin: 0 0 .3rem; }
.notice-item h3 a { color: var(--amps-white); text-decoration: none; }
.notice-item h3 a:hover { color: var(--amps-cyan); text-decoration: underline; }
.notice-pin { color: var(--amps-cyan); margin-right: .35rem; font-size: .85em; }

/* Schedule */
.next-up { border: 1px solid var(--amps-line); border-radius: var(--radius-media); padding: 1.4rem 1.5rem; background: var(--amps-navy-raised); margin-bottom: 1rem; }
.next-up .kind { font-size: .85rem; color: var(--amps-cyan-soft); font-weight: 600; margin-bottom: .4rem; }
.next-up h3 { font-size: 1.35rem; font-stretch: 108%; margin-bottom: .5rem; }
.next-up h3 a { color: var(--amps-white); text-decoration: none; }
.next-up h3 a:hover { text-decoration: underline; }
.countdown { display: flex; gap: .5rem; margin: 1.1rem 0 .25rem; }
.countdown-unit { min-width: 4.2rem; text-align: center; padding: .55rem .4rem; border-radius: var(--radius-control); background: var(--amps-navy-deep); border: 1px solid var(--amps-line-soft); }
.countdown-unit strong { display: block; font-size: 1.6rem; font-weight: 700; font-stretch: 112%; color: var(--amps-white); font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown-unit span { font-size: .72rem; color: var(--amps-muted); }
.countdown-label { font-size: .8rem; color: var(--amps-muted); margin-top: 1rem; }

.schedule-list { list-style: none; margin: 0; padding: 0; }
.schedule-item { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; align-items: start; padding: .95rem 0; border-bottom: 1px solid var(--amps-line-soft); }
.schedule-item:last-child { border-bottom: 0; }
.date-block { text-align: center; border: 1px solid var(--amps-line); border-radius: var(--radius-control); padding: .4rem .2rem; line-height: 1.1; }
.date-block strong { display: block; font-size: 1.35rem; font-weight: 700; color: var(--amps-white); font-variant-numeric: tabular-nums; }
.date-block span { font-size: .72rem; color: var(--amps-muted); }
.schedule-item h3 { font-size: 1rem; font-weight: 600; margin: 0 0 .25rem; }
.schedule-item h3 a { color: var(--amps-white); text-decoration: none; }
.schedule-item h3 a:hover { color: var(--amps-cyan); text-decoration: underline; }

/* Research: citation list */
.citation-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.citation { padding: 1.15rem 0; border-bottom: 1px solid var(--amps-line-soft); }
.citation:first-child { padding-top: 0; }
.citation-authors { color: var(--amps-muted); font-size: .9rem; margin-bottom: .25rem; }
.citation-title { font-size: 1.08rem; font-weight: 600; margin: 0 0 .3rem; line-height: 1.35; }
.citation-title a { color: var(--amps-white); text-decoration: none; }
.citation-title a:hover { color: var(--amps-cyan); text-decoration: underline; }
.citation-source { font-size: .9rem; color: var(--amps-text); }
.citation-source em { font-style: italic; }
.status-pill { display: inline-block; font-size: .75rem; font-weight: 600; padding: .1rem .5rem; border-radius: 3px; background: rgba(36, 90, 145, .45); color: var(--amps-white); margin-left: .35rem; vertical-align: .1em; }
.status-pill.is-published { background: rgba(0, 200, 232, .18); color: var(--amps-cyan-soft); }

.project { padding: 1.25rem; border: 1px solid var(--amps-line); border-radius: var(--radius-media); }
.project + .project { margin-top: 1rem; }
.project h3 { font-size: 1.02rem; margin: .45rem 0 .4rem; }
.project h3 a { color: var(--amps-white); text-decoration: none; }
.project h3 a:hover { text-decoration: underline; }
.project p { font-size: .92rem; color: var(--amps-muted); margin-bottom: .6rem; }

/* Programming */
.lang-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.lang-tile {
  display: flex; flex-direction: column; gap: .15rem; padding: .8rem .85rem;
  border: 1px solid var(--amps-line-soft); border-radius: var(--radius-control);
  color: var(--amps-text); text-decoration: none; background: var(--amps-navy-deep);
}
.lang-tile:hover { border-color: var(--amps-cyan); color: var(--amps-white); }
.lang-tile i { color: var(--amps-cyan); font-size: 1.05rem; margin-bottom: .25rem; }
.lang-tile strong { font-weight: 600; font-size: .92rem; line-height: 1.25; }
.lang-tile span { font-size: .75rem; color: var(--amps-muted); }
@media (max-width: 400px) { .lang-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.resource-list { list-style: none; margin: 0; padding: 0; }
.resource { padding: 1rem 0; border-bottom: 1px solid var(--amps-line-soft); }
.resource:first-child { padding-top: 0; }
.resource h3 { font-size: 1.02rem; font-weight: 600; margin: .3rem 0 .25rem; }
.resource h3 a { color: var(--amps-white); text-decoration: none; }
.resource h3 a:hover { color: var(--amps-cyan); text-decoration: underline; }
.resource p { font-size: .92rem; color: var(--amps-muted); margin: 0; }
.resource-type { font-size: .8rem; font-weight: 600; color: var(--amps-cyan-soft); }

/* Courses: real cards, because each course is an object with a picture and a price */
.course-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--amps-line); border-radius: var(--radius-media); overflow: hidden; background: var(--amps-navy-raised); }
.course-thumb { aspect-ratio: 16 / 9; background: var(--amps-navy-deep); overflow: hidden; }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { font-size: 1.08rem; margin: .5rem 0 .4rem; }
.course-body h3 a { color: var(--amps-white); text-decoration: none; }
.course-body h3 a::after { content: ""; position: absolute; inset: 0; }
.course-card { position: relative; }
.course-card:hover { border-color: rgba(0, 200, 232, .6); }
.course-card:focus-within { outline: 2px solid var(--amps-cyan); outline-offset: 2px; }
.course-body p { font-size: .92rem; color: var(--amps-muted); }
.course-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding-top: .75rem; border-top: 1px solid var(--amps-line-soft); }
.price { font-weight: 700; color: var(--amps-white); font-size: 1.05rem; }
.price.is-free { color: var(--amps-cyan); }

/* Posters */
.poster-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 768px) { .poster-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.poster { position: relative; margin: 0; }
.poster-frame { display: block; aspect-ratio: 3 / 4; border-radius: var(--radius-media); overflow: hidden; border: 1px solid var(--amps-line-soft); background: var(--amps-navy-deep); }
.poster-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.poster-frame:hover img, .poster-frame:focus-visible img { transform: scale(1.03); }
.poster figcaption { padding: .6rem .1rem 0; }
.poster-title { display: block; color: var(--amps-white); font-weight: 600; font-size: .95rem; }
.poster-credit { display: block; font-size: .82rem; color: var(--amps-muted); }
.poster-award { position: absolute; top: .6rem; left: .6rem; z-index: 1; font-size: .75rem; font-weight: 700; color: var(--amps-navy); background: var(--amps-cyan); border-radius: 3px; padding: .2rem .5rem; }
@media (prefers-reduced-motion: reduce) { .poster-frame img { transition: none; } }

/* Alumni stories */
.story { height: 100%; display: flex; flex-direction: column; padding-top: 1.25rem; border-top: 2px solid var(--amps-blue); }
.story blockquote { margin: 0 0 1.25rem; font-size: 1.05rem; line-height: 1.55; color: var(--amps-text); }
.story h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.story h3 a { color: var(--amps-white); text-decoration: none; }
.story h3 a:hover { text-decoration: underline; }
.story-person { margin-top: auto; display: flex; align-items: center; gap: .8rem; }
.story-person .avatar { --size: 44px; }
.story-name { display: block; color: var(--amps-white); font-weight: 600; line-height: 1.25; }
.story-role { display: block; font-size: .85rem; color: var(--amps-muted); }

/* Committee */
.committee-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
@media (min-width: 576px) { .committee-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .committee-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.member { text-align: center; }
.member .avatar { --size: 84px; margin-bottom: .75rem; }
.member-name { display: block; color: var(--amps-white); font-weight: 600; font-size: .95rem; line-height: 1.3; }
.member-role { display: block; font-size: .85rem; color: var(--amps-muted); margin-top: .15rem; }

/* Statistics: a data band */
.stats-band { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--amps-line); border-bottom: 1px solid var(--amps-line); }
@media (min-width: 768px) { .stats-band { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .stats-band { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.stat { padding: 1.4rem 1rem 1.3rem; border-right: 1px solid var(--amps-line-soft); border-bottom: 1px solid var(--amps-line-soft); }
.stat dt { order: 2; font-weight: 500; font-size: .88rem; color: var(--amps-muted); }
.stat dd { order: 1; margin: 0 0 .2rem; font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 700; font-stretch: 115%; color: var(--amps-white); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat { display: flex; flex-direction: column; }
@media (min-width: 1200px) { .stat { border-bottom: 0; } .stat:last-child { border-right: 0; } }
.stats-note { font-size: .85rem; color: var(--amps-muted); margin-top: .9rem; }

/* Sponsors */
.sponsor-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.sponsor {
  display: flex; flex-direction: column; justify-content: center; min-height: 92px; min-width: 210px; flex: 1 1 210px;
  padding: .9rem 1.1rem; border: 1px dashed var(--amps-line); border-radius: var(--radius-control); color: var(--amps-text); text-decoration: none;
}
a.sponsor:hover { border-color: var(--amps-cyan); border-style: solid; color: var(--amps-white); }
.sponsor img { max-height: 48px; max-width: 160px; object-fit: contain; }
.sponsor-name { font-weight: 600; color: var(--amps-white); font-size: .95rem; }
.sponsor-tier { font-size: .78rem; color: var(--amps-muted); }

/* Newsletter */
.newsletter { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 992px) { .newsletter { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.newsletter-form .input-group .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.newsletter-form .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---- Inner pages ----------------------------------------------------------- */
.page-hero { padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--amps-line-soft); background: linear-gradient(180deg, var(--amps-navy-raised), var(--amps-navy)); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; font-stretch: 115%; letter-spacing: -0.02em; margin: 0; }
.page-hero p { color: var(--amps-muted); margin: .75rem 0 0; max-width: 60ch; }
.page-body { padding-block: clamp(2.5rem, 5vw, 4rem); }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.45rem; margin: 2rem 0 .75rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }

.pending-box { max-width: 640px; border: 1px solid var(--amps-line); border-radius: var(--radius-media); padding: 1.75rem; background: var(--amps-navy-raised); }
.pending-box .phase { display: inline-block; font-weight: 700; color: var(--amps-navy); background: var(--amps-cyan); border-radius: 3px; padding: .15rem .55rem; font-size: .85rem; margin-bottom: .9rem; }

/* ---- Error pages ----------------------------------------------------------- */
.error-page { min-height: 70vh; display: flex; align-items: center; }
.error-code { font-family: var(--font-math); font-style: italic; font-size: clamp(4rem, 12vw, 7.5rem); line-height: 1; color: var(--amps-cyan); margin-bottom: .5rem; }

/* ---- Footer ------------------------------------------------------------------ */
.site-footer { background: var(--amps-navy-deep); border-top: 1px solid var(--amps-line); padding-block: 3.5rem 1.5rem; font-size: .93rem; }
.site-footer h2 { font-size: .95rem; font-weight: 650; font-stretch: 100%; color: var(--amps-white); margin-bottom: .9rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: var(--amps-text); text-decoration: none; }
.site-footer a:hover { color: var(--amps-cyan); text-decoration: underline; }
.footer-contact li { display: flex; gap: .6rem; color: var(--amps-muted); }
.footer-contact i { color: var(--amps-cyan); margin-top: .3rem; width: 1rem; }
.social-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.social-links a { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--amps-line); border-radius: 50%; color: var(--amps-text); }
.social-links a:hover { border-color: var(--amps-cyan); color: var(--amps-cyan); text-decoration: none; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--amps-line-soft); color: var(--amps-muted); font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }

/* ---- Utilities --------------------------------------------------------------- */
.visually-hidden-focusable:not(:focus):not(:focus-within) { position: absolute !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Small phones: slightly narrower headline width so long words don't break the rhythm */
@media (max-width: 575.98px) {
  .hero h1 { font-size: 2.2rem; font-stretch: 104%; }
}
