/* AIMA 2026 · one project page. Loads after aima26.css and projects.css.
   Each page takes the colours of its lead affiliation: body[data-aff] re-tints the
   dark-academia tokens (ink, surfaces, the accent that aima26.css calls "gold"). */

body[data-aff] {
  --brand: #a51c30;
  background: var(--ink);
}
/* Harvard crimson */
body[data-aff="harvard"] {
  --brand: #a51c30; --brand-2: #1e1e1e;
  --ink: #150b0d; --ink-2: #1c0f12; --surface: #241418; --surface-2: #30191f;
  --aub-900: #2b0c13; --aub-700: #4d1220; --aub-500: #7d1a2c;
  --parchment: #f2e7e4; --parchment-2: #c7aea9; --parchment-3: #957f7a;
  --gold: #e05e72; --gold-light: #ec8a99; --gold-hi: #f6bcc4;
  --gold-dim: rgba(224, 94, 114, .15); --rule: rgba(224, 94, 114, .24); --rule-strong: rgba(224, 94, 114, .5);
}
/* Stanford cardinal: warmer than Harvard's crimson */
body[data-aff="stanford"] {
  --brand: #8c1515; --brand-2: #4d4f53;
  --ink: #140c0b; --ink-2: #1b100f; --surface: #241614; --surface-2: #2f1d1a;
  --aub-900: #2a0f0c; --aub-700: #4a1712; --aub-500: #7a1f17;
  --parchment: #f3e9e2; --parchment-2: #c6b2a7; --parchment-3: #957f74;
  --gold: #e2725f; --gold-light: #ec9a8b; --gold-hi: #f6c8bf;
  --gold-dim: rgba(226, 114, 95, .15); --rule: rgba(226, 114, 95, .24); --rule-strong: rgba(226, 114, 95, .5);
}
/* Carnegie red on Carnegie Mellon's iron grey */
body[data-aff="cmu"] {
  --brand: #c41230; --brand-2: #6d6e71;
  --ink: #111112; --ink-2: #18181a; --surface: #202023; --surface-2: #2a2a2e;
  --aub-900: #24151a; --aub-700: #3d1820; --aub-500: #6e1626;
  --parchment: #ededed; --parchment-2: #b5b5b8; --parchment-3: #858589;
  --gold: #ec4d64; --gold-light: #f27c8e; --gold-hi: #f8b9c2;
  --gold-dim: rgba(236, 77, 100, .15); --rule: rgba(236, 77, 100, .24); --rule-strong: rgba(236, 77, 100, .5);
}
/* Yale blue */
body[data-aff="yale"] {
  --brand: #00356b; --brand-2: #286dc0;
  --ink: #080d15; --ink-2: #0c131f; --surface: #121c2b; --surface-2: #182538;
  --aub-900: #0a1a30; --aub-700: #0e2a4d; --aub-500: #164477;
  --parchment: #e8edf4; --parchment-2: #a8b5c6; --parchment-3: #788596;
  --gold: #5f9ad6; --gold-light: #8db8e4; --gold-hi: #c2daf2;
  --gold-dim: rgba(95, 154, 214, .15); --rule: rgba(95, 154, 214, .24); --rule-strong: rgba(95, 154, 214, .5);
}
/* Duke blue: a royal, violet-leaning navy */
body[data-aff="duke"] {
  --brand: #012169; --brand-2: #00539b;
  --ink: #080b16; --ink-2: #0c1120; --surface: #121a2d; --surface-2: #19233a;
  --aub-900: #0a1636; --aub-700: #0f2160; --aub-500: #1b3591;
  --parchment: #e9edf6; --parchment-2: #aab4c9; --parchment-3: #7a849a;
  --gold: #7f9cf5; --gold-light: #a3b9f8; --gold-hi: #cdd8fb;
  --gold-dim: rgba(127, 156, 245, .15); --rule: rgba(127, 156, 245, .24); --rule-strong: rgba(127, 156, 245, .5);
}
/* Mayo Clinic blue */
body[data-aff="mayo"] {
  --brand: #0057b8; --brand-2: #080c0f;
  --ink: #07101a; --ink-2: #0b1624; --surface: #101e30; --surface-2: #16283f;
  --aub-900: #071c38; --aub-700: #0a2f5e; --aub-500: #0b4a92;
  --parchment: #e6eef8; --parchment-2: #a5b6ca; --parchment-3: #74869b;
  --gold: #4aa0f0; --gold-light: #7dbcf5; --gold-hi: #bcdcfa;
  --gold-dim: rgba(74, 160, 240, .15); --rule: rgba(74, 160, 240, .24); --rule-strong: rgba(74, 160, 240, .5);
}
/* Johns Hopkins heritage blue with spirit blue */
body[data-aff="jhu"] {
  --brand: #002d72; --brand-2: #68ace5;
  --ink: #060c18; --ink-2: #0a1222; --surface: #0f1a30; --surface-2: #15233e;
  --aub-900: #061a3c; --aub-700: #0a2a5c; --aub-500: #123f85;
  --parchment: #e7eef8; --parchment-2: #a6b6cc; --parchment-3: #75869e;
  --gold: #68ace5; --gold-light: #92c4ee; --gold-hi: #c6e1f7;
  --gold-dim: rgba(104, 172, 229, .15); --rule: rgba(104, 172, 229, .24); --rule-strong: rgba(104, 172, 229, .5);
}
/* FIU blue and gold */
body[data-aff="fiu"] {
  --brand: #081e3f; --brand-2: #b6862c;
  --ink: #070c16; --ink-2: #0b1220; --surface: #111a2c; --surface-2: #182339;
  --aub-900: #0a1a35; --aub-700: #102a52; --aub-500: #1a3c70;
  --parchment: #efe9dc; --parchment-2: #b9b09c; --parchment-3: #8a826f;
  --gold: #c99a3e; --gold-light: #dcb86b; --gold-hi: #efd8a4;
  --gold-dim: rgba(201, 154, 62, .15); --rule: rgba(201, 154, 62, .26); --rule-strong: rgba(201, 154, 62, .52);
}
/* Northwestern purple */
body[data-aff="northwestern"] {
  --brand: #4e2a84; --brand-2: #836eaa;
  --ink: #100b18; --ink-2: #160f21; --surface: #1d152b; --surface-2: #261c38;
  --aub-900: #1c1032; --aub-700: #2f1a55; --aub-500: #4e2a84;
  --parchment: #ede7f4; --parchment-2: #b4a9c6; --parchment-3: #857a97;
  --gold: #a98ce0; --gold-light: #c4aeea; --gold-hi: #e0d3f6;
  --gold-dim: rgba(169, 140, 224, .15); --rule: rgba(169, 140, 224, .24); --rule-strong: rgba(169, 140, 224, .5);
}

/* ---- pieces of aima26.css that hard-code the default palette ---- */
/* the gradient stays light enough for its dark label; a hint of the brand colour at the end */
body[data-aff] .btn-gold { background: linear-gradient(135deg, var(--gold-hi), var(--gold) 60%, color-mix(in srgb, var(--gold) 78%, var(--brand))); }
body[data-aff] .btn-gold:hover { box-shadow: 0 10px 40px -10px var(--rule-strong); }
body[data-aff] .btn-portal { background: color-mix(in srgb, var(--aub-900) 75%, transparent); }
body[data-aff] .hero-vignette { background: radial-gradient(90% 70% at 30% 55%, transparent 40%, color-mix(in srgb, var(--ink) 78%, transparent) 100%), linear-gradient(transparent 70%, var(--ink)); }
body[data-aff] .nav.scrolled { background: color-mix(in srgb, var(--ink) 80%, transparent); }
body[data-aff] ::selection { background: var(--aub-500); }

/* ---- hero ---- */
.hero-project { min-height: 88svh; }
.hero-project .eyebrow a { color: inherit; border-bottom: 1px solid var(--rule-strong); }
.hero-project .eyebrow a:hover { color: var(--gold-hi); }
.hero-project h1 { font-size: clamp(40px, 4.8vw, 72px); line-height: 1.03; max-width: 15em; }
.hero-project .ttags { margin: -6px 0 26px; }
.hero-project .lede { font-family: var(--display); font-style: italic; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.45; color: var(--parchment); max-width: 34em; }
.hero-numeral { position: relative; aspect-ratio: 1; width: 100%; max-width: 380px; justify-self: end; display: grid; place-items: center; }
.hero-numeral .hn { position: relative; z-index: 1; font: italic 500 clamp(110px, 13vw, 210px)/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--gold); text-shadow: 0 0 80px var(--gold-dim); }
.hero-numeral .hn-dur { position: absolute; bottom: 16%; left: 0; right: 0; text-align: center; font: 600 11px var(--ui); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light); }
.hero-numeral .seal-orbit { inset: 6%; }

/* ---- partners: official logos on light plates ---- */
.partners { position: relative; padding: 46px 0 0; background: var(--ink); }
.partners .kicker { text-align: center; margin-bottom: 22px; }
.logo-plates { list-style: none; margin: 0 0 46px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.logo-plate { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 84px; padding: 16px 26px; border-radius: 16px; background: #fbf8f3;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(0, 0, 0, .05); transition: transform .3s var(--ease), box-shadow .3s; }
.logo-plate:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .95), 0 0 0 2px var(--gold-dim); }
.logo-plate img { display: block; width: auto; max-width: 240px; object-fit: contain; }  /* never distort a logo */
.logo-plate .pt-name { font: 600 15px/1.15 "Source Serif 4", Georgia, serif; color: #a51c30; letter-spacing: .01em; }
.logo-text { flex-direction: column; gap: 2px; }
.logo-text .pt-name { font: 700 21px/1 "Cormorant Garamond", Georgia, serif; color: #00629b; letter-spacing: .02em; }
.logo-text .pt-sub { font: 600 10.5px var(--ui); letter-spacing: .26em; text-transform: uppercase; color: #5a6a78; }
.partner-band { display: flex; height: 5px; }
.partner-band i { flex: 1; }

/* ---- other projects ---- */
.pnav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; padding-top: 10px; padding-bottom: 80px; }
.pn { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; border-radius: 16px; border: 1px solid var(--rule); background: var(--ink-2); color: var(--parchment); transition: border-color .3s, transform .3s var(--ease); }
.pn:hover { border-color: var(--gold); color: var(--parchment); transform: translateY(-2px); }
.pn small { font: 600 11px var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.pn b { font: 600 22px/1.15 var(--display); }
.pn.next { text-align: right; }
.pn.all { text-align: center; justify-content: center; }

@media (max-width: 1020px) {
  .hero-numeral { max-width: 240px; justify-self: start; }
}
@media (max-width: 640px) {
  .hero-project { min-height: 0; }
  .hero-numeral { display: none; }
  .logo-plate { min-height: 70px; padding: 12px 18px; }
  .logo-plate img { max-width: 200px; transform-origin: center; }
  .pnav { grid-template-columns: 1fr 1fr; }
  .pn.all { grid-column: 1 / -1; order: 3; }
  .pn b { font-size: 18px; }
}
