/* ══════════════════════════════════════════════════════════════════
   UTB AURUM — shared design system
   University of Tampa Bay · 4i Industry Integrated Innovation Institution
   Gold-leaf on porcelain: white + champagne surfaces, gilt accents,
   espresso ink. One source of truth for every page: tokens, base,
   nav, footer, buttons, type, scroll-reveal, and the depth system.
   NOTE: legacy token names (--void/--abyss/--star/--moon/--cyan/
   --indigo/--violet/--spectral…) are kept so page-level styles keep
   working — their VALUES now resolve to the light gold system:
   "dark band" tokens are champagne surfaces, "ink on dark" tokens
   are espresso inks, and the spectral ramp is champagne→gilt→amber.
   ══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&display=swap');

/* ──────────────────────────────
   1. DESIGN TOKENS
   ────────────────────────────── */
:root {
  /* Surfaces — light hierarchy (band → raised → card) */
  --void:      #F6EEDA;   /* champagne band — heroes, footer, feature bands */
  --abyss:     #FAF4E6;   /* raised champagne surface */
  --panel:     #FFFFFF;   /* card on a band */
  --panel-2:   #FFFDF6;   /* card hover */
  --porcelain: #FDFCF8;   /* warm white page background */
  --white:     #FFFFFF;
  --mist:      #F5EFDF;   /* ivory tint surface */

  /* Ink on light */
  --ink:   #241C0D;
  --dim:   #5C5033;
  --slate: #8C7F5E;

  /* Ink on champagne bands (legacy "on dark" names) */
  --star: #2A2110;
  --moon: #6B5C39;

  /* Aurum brand — champagne→gilt→amber ramp (legacy names kept) */
  --cyan:      #8A6410;   /* gilt accent — AA-safe as small text on light */
  --indigo:    #B8860B;   /* core crest gold */
  --violet:    #9A7412;   /* deep amber */
  --cyan-deep: #7A570C;   /* AA-safe gold for small text on light */
  --violet-deep: #6E4F0C;
  --action:    #7A5E10;   /* deep-gold utility ink (AA on light) */
  --action-hi: #93711A;

  --spectral:      linear-gradient(120deg, #E4B94E, #C99A21 52%, #A87F14);
  --spectral-deep: linear-gradient(120deg, #9C7112, #8A6410 55%, #6E4F0C);
  --spectral-soft: linear-gradient(120deg, rgba(228,185,78,.18), rgba(201,154,33,.15) 52%, rgba(168,127,20,.15));

  /* Lines */
  --line-light: rgba(74, 58, 20, 0.12);
  --line-dark:  rgba(74, 58, 20, 0.16);

  /* Type */
  --font-head: 'Fraunces', 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
  --font-stat: 'Fraunces', 'Source Serif 4', Georgia, serif;

  /* Shape & rhythm */
  --radius-btn:  10px;
  --radius-card: 16px;
  --radius-big:  22px;
  --max-w: 1240px;
  --pad-x: clamp(20px, 5vw, 64px);
  --pad-y: clamp(64px, 9vw, 112px);

  /* Depth — layered warm shadows */
  --shadow-1: 0 1px 2px rgba(89,68,20,.05), 0 4px 12px rgba(89,68,20,.06);
  --shadow-2: 0 2px 4px rgba(89,68,20,.05), 0 12px 28px rgba(89,68,20,.10);
  --shadow-3: 0 4px 8px rgba(89,68,20,.06), 0 24px 56px rgba(89,68,20,.15);
  --shadow-glow: 0 0 0 1px rgba(201,154,33,.32), 0 8px 40px rgba(201,154,33,.22);

  --ease-out: cubic-bezier(.22, .68, .31, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .44, 1);
}

/* ──────────────────────────────
   2. RESET & BASE
   ────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dim);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip; /* clip, not hidden: hidden makes body a scroll container and kills position:sticky on .nv */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }
::selection { background: rgba(201,154,33,.30); color: inherit; }
:focus-visible { outline: 2px solid #8A6410; outline-offset: 3px; border-radius: 6px; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(138,100,16,.32);
  border-radius: 8px;
  border: 3px solid var(--porcelain);
}
::-webkit-scrollbar-thumb:hover { background: rgba(138,100,16,.52); }

/* ──────────────────────────────
   3. TYPE SCALE — serif display, gilded collegiate voice
   ────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); }

.h-display {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5.6vw, 4.3rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.015em;
}
.h-section {
  font-family: var(--font-head);
  font-size: clamp(1.85rem, 3.4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.h-card {
  font-family: var(--font-head);
  font-size: 1.24rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}
/* emphasized words render as gold-foil gradient, not italic serif */
.h-display em, .h-section em, .section-h2 em {
  font-style: normal;
  background: var(--spectral-deep);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.on-dark .h-display em, .on-dark .h-section em,
.hero3d .h-display em, .hero3d .h-section em,
.hero3d h1 em, .on-dark h1 em {
  font-style: normal;
  background: var(--spectral-deep);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.body-lg { font-size: 1.12rem; line-height: 1.75; }
.body-md { font-size: 0.97rem; line-height: 1.7; }

.eyebrow, .section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin-bottom: 18px;
}
.eyebrow::before, .section-label::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--spectral);
  flex-shrink: 0;
}
.hero3d .eyebrow, .on-dark .eyebrow,
.hero3d .section-label, .on-dark .section-label { color: var(--cyan-deep); }
.hero3d .eyebrow::before, .on-dark .eyebrow::before,
.hero3d .section-label::before, .on-dark .section-label::before { background: var(--spectral); }

.section-h2 {
  font-family: var(--font-head);
  font-size: clamp(1.85rem, 3.4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.on-dark .section-h2, .hero3d .section-h2,
.on-dark .h-section, .hero3d .h-section,
.on-dark .h-display, .hero3d .h-display,
.on-dark .h-card, .hero3d .h-card { color: var(--star); }

.grad-text {
  background: var(--spectral-deep);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-text-deep {
  background: var(--spectral-deep);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ──────────────────────────────
   4. LAYOUT
   ────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--pad-y) var(--pad-x); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

/* champagne feature band (heroes, CTA closers) — legacy "dark" hook */
.on-dark { background: var(--void); color: var(--moon); }

/* ──────────────────────────────
   5. BUTTONS
   ────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-out),
              background .25s var(--ease-out), color .25s var(--ease-out),
              border-color .25s var(--ease-out);
  white-space: nowrap;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(.98); }

/* primary = gold foil, espresso ink — reads on white pages AND champagne bands */
.btn-primary {
  background: linear-gradient(135deg, #E9C25C, #C99A21);
  color: #2A2007;
  box-shadow: 0 4px 18px rgba(201,154,33,.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #F0CD6F, #D8A72B);
  box-shadow: 0 10px 34px rgba(201,154,33,.45), 0 0 0 1px rgba(228,185,78,.5);
}
.btn-secondary { background: var(--ink); color: #FBF6E7; }
.btn-secondary:hover { background: #3A2E14; box-shadow: var(--shadow-2); }
.btn-dark { background: var(--ink); color: #FBF6E7; }
.btn-dark:hover { background: #3A2E14; box-shadow: var(--shadow-2); }
.btn-ghost { background: rgba(255,255,255,.4); border-color: rgba(138,100,16,.40); color: var(--ink); }
.btn-ghost:hover { background: rgba(201,154,33,.10); border-color: rgba(138,100,16,.70); }
.btn-white { background: var(--white); color: #241C0D; border-color: rgba(138,100,16,.28); }
.btn-white:hover { background: var(--panel-2); box-shadow: var(--shadow-2); }
.btn-outline { background: transparent; border-color: rgba(36,28,13,.28); color: var(--ink); }
.btn-outline:hover { border-color: #8A6410; color: #6E4F0C; background: rgba(201,154,33,.08); }
.btn-sm { padding: 11px 22px; font-size: 0.875rem; border-radius: 9px; }

/* ──────────────────────────────
   6. DEVBAR — gold-leaf utility strip above the nav
   ────────────────────────────── */
.devbar {
  background: linear-gradient(90deg, #DCB03A, #C99A21 55%, #B98D18);
  color: #33270A;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(110,79,12,.35);
  position: relative;
  z-index: 1200;
}
.devbar::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #33270A;
  margin-right: 10px;
  vertical-align: middle;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

/* ──────────────────────────────
   7. NAVIGATION — porcelain bar, gilded double rule, espresso links
   ────────────────────────────── */
.nv {
  position: sticky;
  top: 0;
  z-index: 1000;
  max-width: none;
  margin: 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(138,100,16,.16);
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(89,68,20,.03);
  transition: box-shadow .4s var(--ease-out);
}
/* gilded rule along the bottom edge — with the 1px border above it,
   the pair reads as a classic double rule */
.nv::before {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--spectral);
  z-index: 2;
}
.nv--scrolled { box-shadow: 0 12px 32px rgba(89,68,20,.10); }
.nv-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 76px;
  /* content box lands on the same rail as .hero-in/.footer-inner (padding sits outside the 1240px box) */
  max-width: calc(var(--max-w) + 2 * var(--pad-x));
  margin: 0 auto;
  padding: 0 var(--pad-x);
  transition: height .35s var(--ease-out);
}
.nv--scrolled .nv-shell { height: 64px; }
.nv-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}
.nv-brand img {
  height: 44px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(89,68,20,.18);
  filter: none;
  transition: height .35s var(--ease-out);
}
.nv--scrolled .nv-brand img { height: 38px; }
.nv-brand-text { display: flex; flex-direction: column; line-height: 1.16; }
.nv-brand-text strong {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0;
  color: #241C0D;
  white-space: nowrap;
}
.nv-brand-text span {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  white-space: nowrap;
}
.nv-links { display: flex; align-items: center; gap: 0; }
.nv-links a {
  position: relative;
  padding: 10px 8px;
  border-radius: 0;
  font-size: 0.87rem;
  font-weight: 600;
  color: #4A3F22;
  transition: color .2s;
  white-space: nowrap;
}
.nv-links a::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 3px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--spectral);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s var(--ease-out);
}
.nv-links a:hover { color: #241C0D; background: none; }
.nv-links a:hover::after { transform: scaleX(1); }
.nv-links a.nv-active {
  color: #241C0D;
  background: none;
  box-shadow: none;
}
.nv-links a.nv-active::after { transform: scaleX(1); }
.nv-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Student Login — the way through to the learning platform. Set as a link
   in the register of the nav items rather than a second button, so the bar
   keeps exactly one primary action and does not outgrow its rail. */
.nv-login {
  position: relative;
  padding: 10px 2px;
  margin-right: 4px;
  font-size: 0.87rem;
  font-weight: 700;
  color: #4A3F22;
  white-space: nowrap;
  transition: color .2s;
}
.nv-login::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: 3px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--spectral);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s var(--ease-out);
}
.nv-login:hover { color: #241C0D; }
.nv-login:hover::after { transform: scaleX(1); }

.nv-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  background: rgba(201,154,33,.08);
  border: 1px solid rgba(138,100,16,.24);
  border-radius: 10px;
  cursor: pointer;
}
.nv-burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #241C0D;
  transition: transform .35s var(--ease-spring), opacity .25s;
}
.nv-burger.open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nv-burger.open span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* full-screen mobile menu (built by theme.js) — porcelain sheet, gold glow */
.nv-overlay {
  position: fixed;
  inset: 0;
  z-index: 990;
  background:
    radial-gradient(60% 50% at 85% 8%, rgba(201,154,33,.16), transparent 60%),
    radial-gradient(55% 45% at 10% 90%, rgba(228,185,78,.13), transparent 60%),
    var(--porcelain);
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  padding: 110px var(--pad-x) 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease-out), visibility .4s;
  overflow-y: auto;
}
.nv-overlay.open { opacity: 1; visibility: visible; }
.nv-overlay a.nv-ov-link {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 5vh, 2.4rem);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
  padding: 6px 0;
  opacity: 0;
  transform: translateY(26px) rotateX(18deg);
  transform-origin: top left;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), color .2s;
  transition-delay: calc(var(--i, 0) * 45ms);
}
.nv-overlay.open a.nv-ov-link { opacity: 1; transform: none; }
.nv-overlay a.nv-ov-link:hover,
.nv-overlay a.nv-ov-link.nv-active {
  background: var(--spectral-deep);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nv-ov-cta { margin-top: 30px; opacity: 0; transform: translateY(26px); transition: opacity .5s var(--ease-out) .42s, transform .5s var(--ease-out) .42s; }
.nv-overlay.open .nv-ov-cta { opacity: 1; transform: none; }
body.nv-locked { overflow: hidden; }

/* ──────────────────────────────
   8. SCROLL PROGRESS — retired (fought the nav's gilded rule and
   read as a severed line mid-scroll). theme.js no longer injects
   it; rule kept as a no-op guard for stale caches.
   ────────────────────────────── */
.scroll-progress { display: none; }

/* ──────────────────────────────
   9. SCROLL REVEAL — entrances
   ────────────────────────────── */
[data-sr] {
  opacity: 0;
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), filter .8s var(--ease-out);
  will-change: opacity, transform;
}
[data-sr="up"]    { transform: translateY(40px); }
[data-sr="left"]  { transform: translateX(-42px); }
[data-sr="right"] { transform: translateX(42px); }
[data-sr="fade"]  { transform: none; }
[data-sr="scale"] { transform: scale(.92); }
[data-sr="tilt"]  { transform: perspective(800px) rotateX(14deg) translateY(30px); transform-origin: top center; }
[data-sr].sr-visible { opacity: 1; transform: none; filter: none; }
/* tilt cards must keep their live perspective transform after reveal */
.card3d[data-sr].sr-visible,
[data-tilt][data-sr].sr-visible {
  transform: perspective(950px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
[data-d="1"] { transition-delay: .07s; }
[data-d="2"] { transition-delay: .15s; }
[data-d="3"] { transition-delay: .23s; }
[data-d="4"] { transition-delay: .31s; }
[data-d="5"] { transition-delay: .39s; }
[data-d="6"] { transition-delay: .47s; }

/* ──────────────────────────────
   10. DEPTH SYSTEM — heroes, lattice, tilt cards
   ────────────────────────────── */

/* Immersive champagne hero shell, gilt atmospherics */
.hero3d {
  position: relative;
  background:
    radial-gradient(75% 60% at 78% 6%, rgba(201,154,33,.14), transparent 62%),
    radial-gradient(60% 55% at 12% 22%, rgba(228,185,78,.12), transparent 60%),
    radial-gradient(50% 45% at 50% 110%, rgba(168,127,20,.10), transparent 65%),
    linear-gradient(180deg, #F8F2E0, var(--porcelain));
  color: var(--moon);
  overflow: hidden;
  isolation: isolate;
}
.hero3d-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero3d-in { position: relative; z-index: 2; }

/* molecular lattice canvas (driven by theme.js) — slightly damped so
   nodes never read as stray marks inside hero copy */
.lattice { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: .55; }

/* perspective floor grid — cheap depth cue */
.grid-floor {
  position: absolute;
  left: -22%; right: -22%; bottom: -14%;
  height: 55%;
  background-image:
    linear-gradient(rgba(138,100,16,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138,100,16,.13) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(620px) rotateX(63deg);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.85) 20%, transparent 90%);
  mask-image: linear-gradient(to top, rgba(0,0,0,.85) 20%, transparent 90%);
  pointer-events: none;
}

/* drifting glow orbs — soft gold light pools */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .22;
  pointer-events: none;
  animation: orb-drift 14s ease-in-out infinite alternate;
}
.glow-cyan   { background: #E4B94E; }
.glow-indigo { background: #C99A21; }
.glow-violet { background: #A87F14; }

/* tilt card — JS drives --rx/--ry/--mx/--my on [data-tilt] */
.card3d {
  position: relative;
  border-radius: var(--radius-card);
  background: var(--white);
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-1);
  transform-style: preserve-3d;
  transform: perspective(950px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
  will-change: transform;
}
.card3d:hover {
  box-shadow: var(--shadow-3);
  border-color: rgba(201,154,33,.5);
}
[data-tilt].tilting { transition: box-shadow .45s var(--ease-out), border-color .3s; }
/* glare sheen follows the pointer */
[data-tilt]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
              rgba(255,239,196,.4), transparent 46%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
  z-index: 3;
}
[data-tilt]:hover::after { opacity: 1; }
/* children that pop toward the viewer inside a tilting card */
.c3d-pop  { transform: translateZ(26px); }
.c3d-pop2 { transform: translateZ(46px); }

/* gilded glass card — white glass, gold-foil edge (legacy "dark" hook) */
.card3d-dark {
  background:
    linear-gradient(rgba(255,255,255,.9), rgba(255,253,246,.9)) padding-box,
    linear-gradient(135deg, rgba(201,154,33,.6), rgba(228,185,78,.28) 50%, rgba(138,100,16,.55)) border-box;
  border: 1px solid transparent;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(89,68,20,.14);
}
.card3d-dark:hover { border-color: transparent; box-shadow: 0 26px 70px rgba(89,68,20,.2), 0 0 40px rgba(201,154,33,.18); }

/* emoji icon tiles render as engraved gold monochrome, not rainbow
   OS glyphs — keeps the pictograms, kills the color clash */
.acc-ico, .req-ico, .t-icon, .pdf-icon, .ob-icon, .card-icon,
.check-icon, .corp-ico, .intl-ico, .who-icon, .about-icon,
.course-icon, .fp-icon, .info-icon, .trust-icon-wrap, .confirm-icon,
.tl-ico, .upload-icon, .conf-icon, .corp-benefit-icon,
.hero-track-icon, .jr-icon, .pillar-icon, .promise-icon,
.school-icon, .stat-highlight-icon, .ab-ico, .benefit-icon,
.ci-ico, .logos-icon, .ferpa-check, .policy-card-icon,
.center-icon, .school-badge, .dean-ph-icon, .accred-warning-icon,
.search-icon {
  filter: grayscale(1) sepia(1) hue-rotate(-8deg) saturate(2.4) brightness(.94);
}

/* gilded hairline on top of a card */
.spectral-top { position: relative; overflow: hidden; }
.spectral-top::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--spectral);
  z-index: 2;
}

/* ──────────────────────────────
   11. BREADCRUMB
   ────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.breadcrumb a { color: var(--slate); transition: color .2s; }
.breadcrumb a:hover { color: var(--cyan-deep); }
.breadcrumb .sep { opacity: .45; }
.breadcrumb .cur { color: var(--ink); }
.hero3d .breadcrumb, .on-dark .breadcrumb { color: var(--moon); }
.hero3d .breadcrumb a, .on-dark .breadcrumb a { color: var(--moon); }
.hero3d .breadcrumb a:hover, .on-dark .breadcrumb a:hover { color: var(--cyan-deep); }
.hero3d .breadcrumb .cur, .on-dark .breadcrumb .cur { color: var(--star); }

/* ──────────────────────────────
   12. CTA BAND — the one saturated gold-foil moment per page
   ────────────────────────────── */
.cta-band {
  position: relative;
  background:
    radial-gradient(70% 90% at 50% -10%, rgba(255,251,238,.55), transparent 60%),
    radial-gradient(45% 60% at 88% 100%, rgba(110,79,12,.18), transparent 60%),
    linear-gradient(120deg, #EAC35B, #D3A62B 55%, #BC8F1B);
  color: #4A3A10;
  overflow: hidden;
  isolation: isolate;
}
.cta-band h2, .cta-band .h-section, .cta-band .section-h2 { color: #241C0D; }
/* gold-gradient accents collapse on the gold band — flip them to espresso */
.cta-band h2 em, .cta-band .h-display em, .cta-band .h-section em,
.cta-band .section-h2 em, .cta-band .grad-text, .cta-band .grad-text-deep {
  background: linear-gradient(120deg, #4A3A10, #241C0D 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta-band p { color: rgba(36,28,13,.82); }
/* on the gold band, gold buttons vanish — flip them to espresso/white */
.cta-band .btn-primary {
  background: #241C0D;
  color: #F6E7BD;
  box-shadow: 0 6px 24px rgba(58,44,10,.35);
}
.cta-band .btn-primary:hover {
  background: #3A2E14;
  box-shadow: 0 12px 36px rgba(58,44,10,.45);
}
.cta-band .btn-ghost, .cta-band .btn-white, .cta-band .btn-outline {
  background: #FDFCF8;
  border-color: rgba(36,28,13,.4);
  color: #241C0D;
}
.cta-band .btn-ghost:hover, .cta-band .btn-white:hover, .cta-band .btn-outline:hover {
  background: #FFFFFF;
  border-color: rgba(36,28,13,.65);
}
.cta-band .eyebrow, .cta-band .section-label { color: #5C4409; }
.cta-band .eyebrow::before, .cta-band .section-label::before { background: #241C0D; }
.cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ──────────────────────────────
   13. FOOTER — champagne colonnade
   ────────────────────────────── */
.footer {
  position: relative;
  background: linear-gradient(180deg, #F8F2E1, #F3EAD2);
  color: var(--moon);
  padding: 84px var(--pad-x) 40px;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--spectral);
  opacity: .9;
}
.footer::after {
  content: "";
  position: absolute;
  top: -140px; left: 50%;
  width: 640px; height: 280px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(201,154,33,.14), transparent 70%);
  pointer-events: none;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1; }
.footer-top, .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand { max-width: 340px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-logo img { height: 42px; width: auto; border-radius: 8px; box-shadow: 0 2px 12px rgba(89,68,20,.2); filter: none; }
.footer-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.footer-logo-text strong {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
}
.footer-logo-text span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--spectral-deep);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-tagline { font-size: 0.93rem; line-height: 1.7; margin-bottom: 18px; }
.footer-email {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--cyan-deep);
  transition: color .2s;
}
.footer-email:hover { color: var(--ink); }
.footer-col-title, .footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
}
.footer-links, .footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-links a, .footer-col a {
  font-size: 0.9rem;
  color: var(--moon);
  transition: color .2s, transform .2s;
  display: inline-block;
}
.footer-links a:hover, .footer-col a:hover { color: var(--cyan-deep); transform: translateX(3px); }
.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid rgba(74,58,20,.14);
  font-size: 0.8rem;
  color: #6B5C39;
}
.footer-bottom-left { color: #6B5C39; }
.accred-note { margin-top: 8px; font-size: 0.74rem; color: #6B5E45; max-width: 560px; line-height: 1.6; }
.accred-note a { color: var(--dim) !important; text-decoration: underline; }
.footer-policy-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-policy-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--slate);
  transition: color .2s;
}
.footer-policy-links a:hover { color: var(--cyan-deep); }

/* Social row — injected into every footer by theme.js from the UTB
   config (formerly a snippet pasted per page; see socials-snippet.html). */
.soc-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.soc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #6B5C39;
  border: 1px solid rgba(74,58,20,.18);
  background: rgba(255,255,255,.45);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .25s ease;
}
.soc-link svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.soc-link:hover {
  color: #7A570C;
  border-color: rgba(178,133,28,.55);
  background: rgba(228,185,78,.16);
  transform: translateY(-2px);
}

/* ──────────────────────────────
   14. KEYFRAMES
   ────────────────────────────── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.78); }
}
@keyframes orb-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(36px, -30px, 0) scale(1.12); }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes shimmer {
  from { background-position: 200% center; }
  to   { background-position: -200% center; }
}
.float-anim  { animation: float-y 7s ease-in-out infinite; }
.float-anim2 { animation: float-y 9s ease-in-out 1.2s infinite; }

/* ──────────────────────────────
   15. RESPONSIVE
   ────────────────────────────── */
@media (max-width: 1560px) {
  /* Crest alone carries the brand while all 10 links stay visible. The
     threshold moved up when Crash Courses joined the bar — the wordmark is
     the cheapest thing to give up, and the crest still reads as UTB. */
  .nv-brand-text { display: none; }
}
@media (max-width: 1200px) {
  .nv-links { display: none; }
  .nv-burger { display: flex; }
  .nv-brand-text { display: flex; }
}
@media (max-width: 1024px) {
  .footer-top, .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; max-width: 480px; }
}
@media (max-width: 768px) {
  :root { --pad-y: clamp(56px, 11vw, 80px); }
  .nv-shell { height: 66px; padding: 0 16px; }
  .nv-brand img { height: 38px; }
  .nv-brand-text span { display: none; }
  .nv-cta .btn { padding: 10px 16px; font-size: 0.8rem; }
  .grid-floor { background-size: 34px 34px; }
  /* fixed-size glow orbs flood small heroes into an amber wash — damp them */
  .glow-orb { opacity: .12; filter: blur(70px); }
}
@media (max-width: 560px) {
  .footer-top, .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer { padding-top: 64px; }
  .footer-bottom { flex-direction: column; }
  .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-btns .btn { width: 100%; }
  .nv-brand-text { display: none; }
  /* Four items do not fit a phone bar. The overlay menu carries Student
     Login at this width, so the inline link stands down. */
  .nv-login { display: none; }
  .devbar {
    font-size: 9px;
    letter-spacing: 0.12em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ──────────────────────────────
   16. REDUCED MOTION
   ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-sr] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .card3d, [data-tilt] { transform: none !important; }
}
