/* ============================================================
   VGU — Page-level components (home + subpages)
   ============================================================ */

/* ---------- Home hero (photo scene) ---------- */
.home-hero {
  position: relative; min-height: calc(100svh - var(--nav-h) - 38px);
  background: var(--ink); color: var(--t-dark); overflow: clip;
  display: flex; align-items: center;
}
.home-hero__media { position: absolute; inset: 0; margin: 0; }
.home-hero__media img { width: 100%; height: 100%; object-fit: cover; }
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) {
  .home-hero__media img { animation: settle 2.4s var(--ease-out) both; }
}
.home-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(24, 18, 12, 0.88) 8%, rgba(24, 18, 12, 0.62) 46%, rgba(24, 18, 12, 0.18) 78%),
    linear-gradient(180deg, rgba(24, 18, 12, 0.4), transparent 30%, transparent 68%, rgba(24, 18, 12, 0.5));
}
.home-hero__inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(3rem, 7vw, 5rem); }
.home-hero__kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: var(--sp-5);
}
.home-hero__kicker::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.home-hero h1 { font-size: var(--fs-hero); letter-spacing: -0.02em; max-width: 9ch; }
.home-hero h1 .accent { color: var(--cyan); }
.home-hero__word {
  display: inline-block; overflow: clip; vertical-align: bottom;
}
.home-hero__word > span { display: inline-block; }
.home-hero__lede { color: var(--t-dark-2); font-size: var(--fs-lede); max-width: 54ch; margin-top: var(--sp-5); }
.home-hero__actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-6); }
/* quiet pulse used by the map placeholder marker */
@keyframes pulse { 0%, 100% { opacity: 0.9; } 50% { opacity: 0.4; } }

/* ---------- Split feature sections ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--rev > :first-child { order: 2; }
.split h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-4); }
.split p + p { margin-top: var(--sp-4); }
.split__body p { color: var(--t-light-2); max-width: 58ch; }
.section--dark .split__body p, .section--ink2 .split__body p { color: var(--t-dark-2); }

/* abstract "campus art" panel used where photos would sit */
.art-panel {
  aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; position: relative;
  background: var(--ink-2); border: 1px solid var(--line-dark);
}
.art-panel svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.art-panel figcaption {
  position: absolute; left: 18px; bottom: 14px; z-index: 2; color: var(--t-dark-2);
  font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---------- Schools grid ---------- */
.school-card { display: flex; flex-direction: column; gap: var(--sp-3); }
.school-card__bar { height: 3px; width: 44px; border-radius: 2px; }
.school-card__fields { display: flex; flex-wrap: wrap; gap: 6px; }
.school-card__fields span {
  font-size: var(--fs-xs); padding: 4px 10px; border-radius: var(--r-pill);
  border: 1px solid var(--line-light); color: var(--t-light-2);
}
.card--dark .school-card__fields span { border-color: var(--line-dark); color: var(--t-dark-2); }
.school-card .link-arrow { margin-top: auto; }

/* ---------- Program cards ---------- */
.prog-card { display: flex; flex-direction: column; gap: 10px; }
.prog-card__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.prog-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.prog-card .tags i { font-style: normal; font-size: var(--fs-xs); color: var(--t-light-2); border: 1px solid var(--line-light); padding: 3px 10px; border-radius: var(--r-pill); }
.prog-card .link-arrow { margin-top: auto; }

/* ---------- Filter bars ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: var(--sp-6); }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.news-card { background: var(--paper-2); border: 1px solid var(--line-light); border-radius: var(--r-lg); padding: var(--sp-6); display: flex; flex-direction: column; gap: 12px; transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2); }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.news-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.news-card__meta time { font-size: var(--fs-xs); color: var(--t-light-2); }
.news-card h3 { font-size: 1.12rem; line-height: 1.35; }
.news-card p { color: var(--t-light-2); font-size: var(--fs-sm); flex: 1; }
.section--dark .news-card, .section--ink2 .news-card { background: var(--ink-3); border-color: var(--line-dark); }

/* ---------- Event list ---------- */
.event-row {
  display: grid; grid-template-columns: 92px 1fr auto auto; gap: var(--sp-5); align-items: center;
  padding: var(--sp-5) 0; border-bottom: 1px solid var(--line-dark);
}
.event-row__date { text-align: center; border: 1px solid var(--line-dark); border-radius: var(--r-md); padding: 10px 6px; background: var(--ink-3); }
.event-row__date b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--cyan); }
.event-row__date span { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.12em; }
.event-row h3 { font-size: 1.1rem; }
.event-row p { font-size: var(--fs-sm); color: var(--t-dark-2); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.quote { border-left: 3px solid var(--cyan); padding: var(--sp-4) var(--sp-5); background: var(--ink-3); border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.quote blockquote { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.5; color: var(--t-dark); }
.quote figcaption { margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--t-dark-2); }
.quote figcaption b { color: var(--cyan); display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: clip; border-radius: var(--r-lg);
  background: var(--accent); color: #fff;
  padding: clamp(2.5rem, 6vw, 4.5rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-6); align-items: center;
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-3); }
.cta-band p { opacity: 0.9; max-width: 52ch; }
.cta-band__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Steps (admissions process) ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.step { counter-increment: step; position: relative; padding-top: var(--sp-6); }
.step::before {
  content: "0" counter(step); font-family: var(--font-display); font-weight: 700; font-size: 2.6rem;
  color: transparent; -webkit-text-stroke: 1.5px var(--cyan); position: absolute; top: 0; left: 0; opacity: 0.8;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; margin-top: 26px; }
.step p { color: var(--t-light-2); font-size: var(--fs-sm); }
.section--dark .step p, .section--ink2 .step p { color: var(--t-dark-2); }

/* ---------- Data tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-dark); border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 14px 18px; font-size: var(--fs-sm); border-bottom: 1px solid var(--line-dark); }
th { font-family: var(--font-display); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--cyan); background: var(--ink-3); }
td { color: var(--t-dark-2); }
td b { color: var(--t-dark); }
tr:last-child td { border-bottom: 0; }

/* ---------- Faculty cards ---------- */
.person { display: flex; align-items: center; gap: var(--sp-4); }
.person__avatar {
  width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: #f3ede2; font-size: 1.1rem;
  background: var(--accent);
}
.person h3 { font-size: 1.05rem; }
.person p { font-size: var(--fs-sm); color: var(--t-light-2); }
.person p b { color: var(--electric); font-weight: 600; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); }
.contact-list { display: grid; gap: var(--sp-5); }
.contact-list h3 { font-size: var(--fs-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--t-light-2); margin-bottom: 6px; }
.contact-list a { text-decoration: none; color: var(--electric); font-weight: 600; font-family: var(--font-display); }
.cta-band .form-status--err { color: #ffb0a6; }
.cta-band .form-note { color: rgba(255, 255, 255, 0.75); }
.map-ph {
  aspect-ratio: 16/9; border-radius: var(--r-lg); border: 1px solid var(--line-dark); position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(193,154,75,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(193,154,75,.07) 1px, transparent 1px);
  background-size: 42px 42px; background-color: var(--ink-2);
  display: grid; place-items: center; text-align: center;
}
.map-ph i { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); position: absolute; animation: pulse 2s infinite; }
.map-ph i::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(193,154,75,.5); }
.map-ph p { color: var(--t-dark-2); font-size: var(--fs-sm); position: relative; z-index: 1; margin-top: 60px; }

/* ---------- Accordion ---------- */
.acc { border: 1px solid var(--line-dark); border-radius: var(--r-md); overflow: hidden; }
.acc__item + .acc__item { border-top: 1px solid var(--line-dark); }
.acc__btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
  padding: 18px 22px; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-weight: 600; color: var(--t-dark); transition: background var(--dur-1);
}
.acc__btn:hover { background: rgba(255,255,255,0.03); }
.acc__btn svg { flex-shrink: 0; transition: transform var(--dur-2) var(--ease-out); }
.acc__btn[aria-expanded="true"] svg { transform: rotate(45deg); }
.acc__body { padding: 0 22px 20px; color: var(--t-dark-2); font-size: var(--fs-sm); display: none; }
.acc__item.is-open .acc__body { display: block; }

/* ---------- Program detail ---------- */
.detail-head { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; justify-content: space-between; margin-block: var(--sp-5) var(--sp-6); }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); margin-block: var(--sp-6); }
.spec { border: 1px solid var(--line-dark); border-radius: var(--r-md); padding: var(--sp-5); background: var(--ink-3); }
.spec b { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--cyan); margin-bottom: 4px; }
.spec span { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--t-dark-2); }

/* ---------- Home intro strip ---------- */
.intro-strip { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

/* ---------- CTA split row ---------- */
.cta-split { display: grid; grid-template-columns: 1fr auto; gap: var(--sp-5); align-items: center; }

/* ---------- Responsive page tweaks ---------- */
@media (max-width: 1080px) {
  .split, .intro-strip, .contact-grid { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .news-grid, .quotes { grid-template-columns: 1fr 1fr; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band__actions { justify-content: flex-start; }
  .event-row { grid-template-columns: 72px 1fr auto; }
  .event-row .tag--outline:last-child { display: none; }
}
@media (max-width: 640px) {
  .cta-split { grid-template-columns: 1fr; }
  .news-grid, .quotes, .steps { grid-template-columns: 1fr; }
  .event-row { grid-template-columns: 64px 1fr; }
  .event-row .btn { grid-column: 2; justify-self: start; }
}
