/* ICAT — styles. Black base; colours from the painted tile panel (see js/ca-config.js). */

:root {
  --bg: #000000;
  --surface: #0c0c0d;
  --surface-2: #151517;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --ink: #f3e9d8;     /* cream, like the tile's linework */
  --ink-2: #b6ad9f;
  --ink-3: #857e74;

  --gold: #f2b430;
  --gold-2: #f7c65a;
  --orange: #e07a2e;
  --red: #d2452b;
  --blue: #3f86c6;
  --sky: #8cc0e6;
  --green: #5fa53e;

  --radius: 22px;
  --radius-sm: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --header-h: 60px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --tri-up: polygon(50% 0, 100% 100%, 0 100%);
  --tri-down: polygon(0 0, 100% 0, 50% 100%);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.menu-open, html.drawer-open { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--sky); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0 0 1em; }
::selection { background: rgba(242, 180, 48, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: calc(860px + 2 * var(--gutter)); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--gold); color: #000; }
.skip-link:focus { top: 12px; }
.muted { color: var(--ink-3); }

/* section titles: big title first, then normal text */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-tight { padding-top: 0; }
.section-head { max-width: 940px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-title {
  margin: 0 0 0.32em;
  font: 800 clamp(3rem, 1.6rem + 5.6vw, 6.5rem)/0.92 var(--display);
  letter-spacing: -0.045em;
}
.section-text { max-width: 36em; margin: 0; color: var(--ink-2); font-size: clamp(1.1rem, 1rem + 0.45vw, 1.4rem); line-height: 1.55; }

/* scroll reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ buttons + chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--gold); color: #000; }
.btn-primary:hover { background: var(--gold-2); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 17px; }

.chip {
  --c: var(--sky);
  --c-bg: rgba(63, 134, 198, 0.16);
  display: inline-flex; align-items: center; gap: 6px; width: max-content;
  padding: 3px 10px 3px 8px;
  border-radius: 999px; background: var(--c-bg); color: var(--c);
  font: 600 12px/1.4 var(--font); white-space: nowrap;
}
.chip::before { content: ""; width: 8px; height: 7px; clip-path: var(--tri-up); background: currentColor; }
.chip-harvard { --c: #f0937c; --c-bg: rgba(210, 69, 43, 0.18); }
.chip-cmu { --c: #a6d68a; --c-bg: rgba(95, 165, 62, 0.18); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.site-header.scrolled { background: rgba(0, 0, 0, 0.82); border-bottom-color: var(--line); }
.notice {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 5px var(--gutter);
  background: var(--surface-2); color: var(--ink-2);
  font-size: 13px; line-height: 1.4; text-align: center;
}
.notice[hidden] { display: none; }
.notice p { margin: 0; }
.notice button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 18px; line-height: 1; padding: 2px 6px; border-radius: 6px; }
.nav { display: flex; align-items: center; gap: 28px; height: 60px; }
.wordmark { display: inline-flex; align-items: center; flex: none; }
.nav-links { display: flex; gap: 28px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a { color: var(--ink); opacity: 0.72; font-size: 15px; font-weight: 500; text-decoration: none; transition: opacity 0.2s, color 0.2s; }
.nav-links a:hover { opacity: 1; }
.nav-links a[aria-current="page"] { opacity: 1; color: var(--gold); }
.menu-toggle { display: none; }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49;
  display: flex; flex-direction: column; gap: 28px;
  padding: 16px var(--gutter) 40px; overflow: auto; background: #000;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { margin: 0; padding: 0; list-style: none; }
.mobile-menu li a {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  color: var(--ink); font: 700 30px/1.15 var(--display); letter-spacing: -0.03em; text-decoration: none;
}
.mobile-menu li a::before { content: ""; width: 12px; height: 10px; background: var(--ink-3); clip-path: var(--tri-up); }
.mobile-menu li a[aria-current="page"]::before { background: var(--gold); }

@media (max-width: 959px) {
  .nav-links { display: none; }
  .nav { gap: 12px; }
  .nav-apply { margin-left: auto; }
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; margin-right: -10px; padding: 0 10px;
    border: 0; background: none; cursor: pointer;
  }
  /* explicit width: Safari doesn't stretch children of a flex <button> */
  .menu-toggle span { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.25s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* ------------------------------------------------------------------ pattern layers (shared) */
.ca-layer { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.ca-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.ca-live .ca-canvas { display: block; }
.ca-fallback { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.ca-live .ca-fallback { display: none; }
.ca-fade { position: absolute; inset: 0; pointer-events: none; }
.ca-logo { position: absolute; left: 0; top: 0; max-width: none; pointer-events: none; overflow: visible; }

/* ------------------------------------------------------------------ home hero */
.hero {
  position: relative; isolation: isolate;
  display: flex; align-items: center;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + 40px) 0 104px;
  overflow: hidden;
}
/* backup screenshot at 1:1 scale, symmetry origin on ours (JS refines this) */
.hero .ca-fallback { left: calc(66.667% - 1707px); top: calc(33.333% - 533px); width: 2560px; height: 1600px; object-fit: fill; }
.hero .ca-fade { background: linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.74) 46%, rgba(0, 0, 0, 0) 70%); }
.hero-content { position: relative; }
.logo-slot { margin-bottom: 18px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  margin: 0 0 18px;
  color: var(--ink-2); font: 600 clamp(15px, 13px + 0.3vw, 18px)/1.3 var(--font);
}
.eyebrow::before { content: ""; flex: none; width: 11px; height: 10px; background: var(--gold); clip-path: var(--tri-up); }
.hero h1 {
  max-width: 15em;
  font: 700 clamp(2rem, 1rem + 2.6vw, 3.3rem)/1.05 var(--display);
  letter-spacing: -0.035em;
}
.hero .hl-1 { color: var(--gold); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
}
.scroll-cue span { width: 14px; height: 12px; background: var(--ink-2); clip-path: var(--tri-down); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0%, 100% { transform: translateY(-4px); opacity: 0.45; } 50% { transform: translateY(5px); opacity: 1; } }

@media (max-width: 767px) {
  .hero { align-items: flex-end; padding: calc(var(--header-h) + 30svh) 0 96px; }
  .hero .ca-fade { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.84) 52%, #000 70%); }
  .hero .ca-fallback { left: calc(50% - 400px); top: calc(26% - 312px); width: 800px; height: 1200px; }
}

/* ------------------------------------------------------------------ page banners (other pages) */
.page-banner {
  position: relative; isolation: isolate;
  display: flex; align-items: flex-end;
  min-height: clamp(440px, 68vh, 760px);
  padding: calc(var(--header-h) + 48px) 0 clamp(48px, 7vw, 88px);
  overflow: hidden;
}
.page-banner .ca-fade {
  background:
    linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.7) 26%, rgba(0, 0, 0, 0) 58%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 55%);
}
.page-title { margin: 0 0 0.2em; font: 800 clamp(4rem, 2rem + 9vw, 10rem)/0.88 var(--display); letter-spacing: -0.055em; }
.page-text { max-width: 34em; margin: 0; color: var(--ink-2); font-size: clamp(1.1rem, 1rem + 0.5vw, 1.45rem); line-height: 1.5; }

/* ------------------------------------------------------------------ at a glance (scroll-lit numbers) */
.scenes { display: grid; }
.scene {
  --e: 0;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center;
  gap: clamp(24px, 5vw, 88px);
  min-height: 76vh; padding: 4vh 0;
}
.scene-flip .scene-num { order: 2; }
.scene-num {
  text-align: center;
  font: 800 clamp(12rem, 4rem + 30vw, 34rem)/0.8 var(--display);
  letter-spacing: -0.06em;
  /* the numeral is filled with the accent colour, cut into tiles by a black triangle lattice */
  color: var(--accent);
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='62.354'%3E%3Cpath d='M0 0H36M0 31.177H36M0 0L36 62.354M36 0L0 62.354' stroke='%23000' stroke-width='3' fill='none'/%3E%3C/svg%3E");
  background-size: 36px 62.354px;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: calc(0.1 + 0.9 * var(--e));
  transform: translateY(calc((1 - var(--e)) * 80px)) scale(calc(0.84 + 0.16 * var(--e)));
  will-change: transform, opacity;
}
@media (hover: hover) { .scene-num { filter: blur(calc((1 - var(--e)) * 7px)); } }
.scene-body { opacity: calc(0.2 + 0.8 * var(--e)); transform: translateY(calc((1 - var(--e)) * 36px)); }
.scene-label { font: 800 clamp(2.2rem, 1.4rem + 2.6vw, 3.8rem)/0.98 var(--display); letter-spacing: -0.035em; }
.scene-label::after {
  content: ""; display: block; width: 72px; height: 5px; margin-top: 20px;
  border-radius: 3px; background: var(--accent);
  transform: scaleX(var(--e)); transform-origin: left;
}
.scene-text { margin: 20px 0 18px; color: var(--ink-2); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); }
.scene-items { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.scene-items li {
  display: flex; align-items: center; gap: 12px;
  font: 600 clamp(1.05rem, 1rem + 0.3vw, 1.3rem)/1.3 var(--display); letter-spacing: -0.01em;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s var(--ease) calc(var(--i) * 110ms), transform 0.6s var(--ease) calc(var(--i) * 110ms);
}
.scene-items li::before { content: ""; flex: none; width: 12px; height: 10px; background: var(--accent); clip-path: var(--tri-up); }
.scene.is-lit .scene-items li { opacity: 1; transform: none; }
@media (max-width: 767px) {
  .scene { grid-template-columns: 1fr; min-height: 0; padding: 7vh 0; gap: 8px; }
  .scene-flip .scene-num { order: 0; }
  .scene-num { text-align: left; font-size: clamp(9rem, 50vw, 14rem); }
}

/* ------------------------------------------------------------------ sponsors (logos only) */
.sponsor-grid {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-around;
  gap: clamp(48px, 8vw, 120px); padding: clamp(16px, 3vw, 40px) 0;
}
.sponsor { display: block; padding: 12px; border-radius: 12px; }
.sponsor img {
  display: block; width: auto; height: clamp(56px, 4vw + 30px, 92px); max-width: min(78vw, 440px);
  transition: transform 0.35s var(--ease);
}
.sponsor:hover img, .sponsor:focus-visible img { transform: scale(1.07); }
@media (max-width: 767px) { .sponsor-grid { flex-direction: column; } }

/* ------------------------------------------------------------------ pattern bands (apply, footer) */
.ca-band { position: relative; isolation: isolate; overflow: hidden; }
.apply-band { display: grid; place-items: center; min-height: clamp(480px, 70vh, 640px); padding: 80px var(--gutter); }
.apply-card {
  max-width: 600px; padding: clamp(32px, 4.5vw, 52px);
  border: 1px solid var(--line-2); border-radius: 30px;
  background: rgba(6, 6, 7, 0.82);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
  text-align: center;
}
.apply-card .section-title { font-size: clamp(3rem, 2rem + 4vw, 5.5rem); }
.apply-card .section-text { margin: 0 auto 28px; }

/* ------------------------------------------------------------------ program */
.city-toggle { display: none; }
.schedule { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.sch-row { display: grid; grid-template-columns: 190px 1fr 1fr; }
.sch-row + .sch-row { border-top: 1px solid var(--line); }
.sch-head { background: var(--surface-2); }
.sch-city { display: flex; flex-direction: column; gap: 4px; padding: 24px 26px; border-left: 1px solid var(--line); }
.sch-city-name { font: 800 clamp(1.8rem, 1.4rem + 1vw, 2.4rem)/1 var(--display); letter-spacing: -0.035em; }
.sch-city-host { color: var(--ink-3); font-size: 14px; }
.sch-week { display: flex; flex-direction: column; gap: 4px; padding: 26px; }
.wk-label { display: flex; align-items: center; gap: 10px; font: 800 22px/1.1 var(--display); letter-spacing: -0.02em; }
.wk-label::before { content: ""; width: 13px; height: 11px; background: var(--gold); clip-path: var(--tri-up); }
.wk-dates { padding-left: 23px; color: var(--ink-3); font-size: 14px; }
.sch-cell { display: grid; gap: 6px; padding: 12px; border-left: 1px solid var(--line); }
.course {
  display: grid; grid-template-columns: 84px 1fr; grid-template-areas: "chip title" "chip meta";
  align-items: start; gap: 2px 12px; width: 100%;
  padding: 12px 14px; border: 1px solid transparent; border-radius: var(--radius-sm);
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.course:hover { background: rgba(255, 255, 255, 0.04); border-color: var(--line); }
.course .chip { grid-area: chip; margin-top: 1px; }
.course-title { grid-area: title; font-weight: 600; font-size: 16px; line-height: 1.3; }
.course-meta { grid-area: meta; color: var(--ink-3); font-size: 13.5px; }
.partner-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.partner-list li { display: flex; flex-direction: column; gap: 6px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.partner-list li::before { content: ""; width: 16px; height: 14px; margin-bottom: 10px; background: var(--red); clip-path: var(--tri-up); }
.partner-list li:nth-child(2)::before { background: var(--gold); }
.partner-list li:nth-child(3)::before { background: var(--blue); }
.partner-name { font: 700 clamp(1.4rem, 1.2rem + 0.6vw, 1.8rem)/1.1 var(--display); letter-spacing: -0.025em; }
@media (max-width: 767px) {
  .city-toggle { display: inline-flex; margin-bottom: 16px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
  .city-toggle button { padding: 10px 22px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 600 15px/1 var(--font); cursor: pointer; }
  .city-toggle button[aria-selected="true"] { background: var(--ink); color: #000; }
  .sch-row { grid-template-columns: 1fr; }
  .sch-head { display: none; }
  .schedule .is-off { display: none; }
  .sch-week { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 20px 18px 4px; }
  .sch-cell { padding: 4px 6px 12px; border-left: 0; }
  .partner-list { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ faculty */
.fac-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(36px, 5vw, 56px); }
.fac-tabs button {
  padding: 11px 20px; border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent; color: var(--ink-2); font: 600 15px/1 var(--font); cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.fac-tabs button:hover { color: var(--ink); border-color: var(--ink-3); }
.fac-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #000; }
.uni-header { margin-bottom: 32px; }
.uni-name { margin-bottom: 12px; font: 800 clamp(2.4rem, 1.5rem + 3.4vw, 4.4rem)/0.95 var(--display); letter-spacing: -0.045em; }
.uni-blurb { max-width: 40em; margin: 0; color: var(--ink-2); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); }
.fac-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fac-card {
  position: relative; display: flex; align-items: flex-start; gap: 16px;
  padding: 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer;
  animation: card-in 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms);
  transition: border-color 0.2s, background-color 0.2s, transform 0.25s var(--ease);
}
.fac-card:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-2px); }
@keyframes card-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.avatar { flex: none; width: 76px; height: 76px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.avatar svg { width: 100%; height: 100%; }
.fac-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fac-name { margin-top: 8px; font: 700 19px/1.2 var(--display); letter-spacing: -0.015em; }
.fac-title { color: var(--ink-2); font-size: 14px; line-height: 1.35; }
.fac-course { margin-top: 10px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.fac-course .lbl { display: block; margin-bottom: 1px; color: var(--ink-3); font-size: 12.5px; font-weight: 500; }
.fac-when { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; color: var(--gold); font-size: 13px; }
.fac-when .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }
@media (max-width: 1023px) { .fac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .fac-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ drawer */
.drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.6); opacity: 0; transition: opacity 0.28s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
  width: min(500px, 100%); padding: 24px 28px 48px; overflow: auto;
  background: #0e0e10; border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform 0.32s var(--ease);
}
.drawer[hidden], .drawer-backdrop[hidden] { display: none; }
.drawer-visible .drawer { transform: none; }
.drawer-visible .drawer-backdrop { opacity: 1; }
.drawer-close {
  position: sticky; top: 0; z-index: 1; float: right;
  width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%;
  background: #0e0e10; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer;
}
.drawer-top { display: flex; align-items: flex-start; gap: 18px; margin: 8px 0 24px; }
.avatar-lg { width: 108px; height: 108px; border-radius: 20px; }
.drawer h2 { margin: 10px 0 4px; font-size: 28px; letter-spacing: -0.03em; }
.drawer-title { margin: 0; color: var(--ink-2); font-size: 15px; }
.drawer-dept { margin: 4px 0 0; color: var(--ink-3); font-size: 14px; }
.drawer-section { padding: 24px 0 8px; border-top: 1px solid var(--line); }
.drawer-h { margin-bottom: 10px; font: 800 24px/1.1 var(--display); letter-spacing: -0.03em; }
.drawer-course { margin: 0; font: 600 19px/1.3 var(--display); color: var(--gold); }
.drawer-section p { color: var(--ink-2); }
.slot-list { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.slot-list li { display: grid; grid-template-columns: 100px 1fr; gap: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 15px; }
.slot-city { font: 700 17px/1.3 var(--display); }

/* ------------------------------------------------------------------ admissions */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.timeline::before {
  content: ""; position: absolute; top: 10px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--red), var(--blue), var(--green));
}
.timeline li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 40px 16px 0 0; }
.tl-mark { position: absolute; top: 0; left: 0; width: 24px; height: 21px; background: var(--gold); clip-path: var(--tri-up); }
.timeline li:nth-child(2) .tl-mark { background: var(--red); }
.timeline li:nth-child(3) .tl-mark { background: var(--blue); }
.timeline li:nth-child(4) .tl-mark { background: var(--green); }
.tl-label { font: 800 clamp(1.3rem, 1.1rem + 0.6vw, 1.7rem)/1.15 var(--display); letter-spacing: -0.025em; }
.tl-date { color: var(--ink-3); font-size: 15px; }
.adm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.adm-block { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.adm-block h3 { margin-bottom: 18px; font: 800 clamp(1.5rem, 1.3rem + 0.6vw, 1.9rem)/1.1 var(--display); letter-spacing: -0.03em; }
.adm-block p { margin: 0; color: var(--ink-2); }
.tri-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; color: var(--ink-2); }
.tri-list li { position: relative; padding-left: 24px; }
.tri-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 11px; height: 10px; background: var(--gold); clip-path: var(--tri-up); }
.steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: step; color: var(--ink-2); }
.steps li { display: grid; grid-template-columns: 30px 1fr; align-items: baseline; gap: 10px; counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2);
  color: var(--gold); font: 700 13px/1 var(--display);
}
@media (max-width: 959px) { .adm-grid { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { top: 0; bottom: 0; left: 11px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--gold), var(--red), var(--blue), var(--green)); }
  .timeline li { padding: 0 0 26px 44px; }
}

/* ------------------------------------------------------------------ faq */
.faq-list { display: grid; gap: 12px; }
.faq-list details { padding: 0 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: border-color 0.2s; }
.faq-list details[open], .faq-list details:target { border-color: var(--line-2); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font: 700 clamp(1.1rem, 1rem + 0.4vw, 1.35rem)/1.3 var(--display); letter-spacing: -0.015em;
  list-style: none; cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-icon { flex: none; width: 14px; height: 12px; background: var(--gold); clip-path: var(--tri-down); transition: transform 0.25s var(--ease); }
.faq-list details[open] .faq-icon { transform: rotate(180deg); }
.faq-list details p { max-width: 44em; margin: 0 0 24px; color: var(--ink-2); }

/* ------------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer-band { height: 150px; border-bottom: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 52px; padding-bottom: 36px; }
.footer-brand p { max-width: 30em; margin: 18px 0 0; color: var(--ink-2); font-size: 15px; }
.footer-links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--ink-2); font-size: 15px; text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-heading { margin-bottom: 8px; color: var(--ink-3); font: 600 14px/1.3 var(--font); letter-spacing: 0; }
.footer-contact p { margin: 0; }
.footer-legal { padding-top: 20px; padding-bottom: 44px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
.footer-legal p { margin: 0; }
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ dice */
.dice {
  position: fixed; z-index: 45;
  right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  display: none; place-items: center; width: 54px; height: 54px;
  border: 1px solid var(--line-2); border-radius: 50%;
  background: rgba(14, 14, 16, 0.72); color: var(--ink);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.9);
  cursor: pointer; transition: transform 0.25s var(--ease), color 0.25s, border-color 0.25s;
}
.ca-live .dice { display: grid; }
.dice svg { width: 26px; height: 26px; }
.dice:hover { color: var(--gold); border-color: rgba(242, 180, 48, 0.5); transform: translateY(-2px); }
.dice.rolling svg { animation: dice-roll 0.6s var(--ease); }
/* label next to the dice: on hover/focus, and briefly after a roll */
.dice-tip {
  position: fixed; z-index: 45;
  right: calc(max(18px, env(safe-area-inset-right)) + 66px);
  bottom: max(18px, env(safe-area-inset-bottom));
  display: none; flex-direction: column; justify-content: center; gap: 2px;
  min-height: 54px; max-width: min(280px, calc(100vw - 110px)); padding: 9px 16px;
  border: 1px solid var(--line-2); border-radius: 16px;
  background: rgba(14, 14, 16, 0.9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.9);
  color: var(--ink); font-size: 14px; line-height: 1.35;
  opacity: 0; transform: translateX(8px); pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.ca-live .dice-tip { display: flex; }
.dice-tip strong { font-weight: 600; }
.dice-tip span { color: var(--ink-2); font-size: 13px; }
.dice:hover + .dice-tip, .dice:focus-visible + .dice-tip, .dice-tip.show { opacity: 1; transform: none; }

/* until the visitor has rolled once, a gentle pulse every 30 s invites them to */
.dice.nudge { animation: dice-nudge 1.3s var(--ease); }
@keyframes dice-nudge {
  0%, 100% { transform: scale(1); box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.9), 0 0 0 0 rgba(242, 180, 48, 0); }
  35% { transform: scale(1.14); color: var(--gold); border-color: rgba(242, 180, 48, 0.6); box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.9), 0 0 0 10px rgba(242, 180, 48, 0.14); }
  60% { transform: scale(0.97); }
}
@keyframes dice-roll { 0% { transform: rotate(0) scale(1); } 45% { transform: rotate(210deg) scale(0.78); } 100% { transform: rotate(360deg) scale(1); } }

/* ------------------------------------------------------------------ motion + snapshot */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .dice.nudge { color: var(--gold); border-color: rgba(242, 180, 48, 0.6); } /* glow only, no motion */
}
/* ?still=N : only the hero pattern, for tools/snapshot.sh */
.snapshot body > *:not(main),
.snapshot main > *:not(.hero),
.snapshot .hero-content,
.snapshot .ca-fade,
.snapshot .ca-logo,
.snapshot .scroll-cue { display: none !important; }
.snapshot .hero { height: 100vh; min-height: 0; padding: 0; }
