/* ==========================================================================
   Public showcase - masthead, hero, project cards, footer.
   Restrained academic layout: strong typography, generous space, large imagery.
   ========================================================================== */

/* The palette the public pages share. Warm paper under the content, night
   over the masthead, the crest's gold as the one light between them. */
:root {
  --paper: #faf8f4;
  --paper-deep: #f3efe7;
  --night: #0b1626;
  --night-2: #14243d;
  --night-line: rgba(216, 168, 48, 0.28);
}

body {
  background: var(--paper);
}

/* Night, so the header and the home hero read as one band - and on every
   other page it is a strong branded bar above warm paper. */
.site-header {
  background: rgba(11, 22, 38, 0.94);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--night-line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-4);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  line-height: 1.25;
}

/* Official Olivet University crest, cropped from the supplied header asset.
   Gold and white, so it reads better on night than it did on white. */
.wordmark__crest {
  height: 2.6rem;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(216, 168, 48, 0.22));
}

.wordmark__text {
  display: flex;
  flex-direction: column;
}

.wordmark__course {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.wordmark__institution {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.58);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(245, 247, 250, 0.72);
  padding-block: var(--space-2);
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #ffffff;
  border-bottom-color: var(--brand-gold);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.site-nav__divider {
  width: 1px;
  height: 1.5rem;
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 800px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav {
    gap: var(--space-4);
    flex-wrap: wrap;
  }
}

/* --------------------------------------------------------------------------
   Hero - light in the dark
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--text-inverse);
  background:
    /* first light, breaking over the top edge */
    radial-gradient(1000px 520px at 72% -18%, rgba(216, 168, 48, 0.20), transparent 62%),
    /* a cool counter-light low on the left, so the night has depth */
    radial-gradient(760px 520px at 8% 120%, rgba(74, 111, 165, 0.30), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  border-bottom: 1px solid var(--night-line);
  padding-block: var(--space-9) var(--space-8);
}

/* The blueprint: a fine grid, faded out toward the edges so it reads as a
   surface the light falls on rather than a pattern stamped over everything. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 74% 38%, #000 22%, transparent 74%);
  mask-image: radial-gradient(ellipse 70% 80% at 74% 38%, #000 22%, transparent 74%);
}

/* The light itself: one tall beam and one short one, meeting a third of the
   way down - a crosshair on the grid, and a cross. Kept to the right, clear
   of the text, and faint enough to notice rather than be shown. */
.hero__light {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  right: 16%;
  width: 18rem;
  pointer-events: none;
}

.hero__light::before,
.hero__light::after {
  content: "";
  position: absolute;
}

/* vertical */
.hero__light::before {
  left: 50%;
  top: 4%;
  bottom: 6%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(216, 168, 48, 0.55) 22%,
    rgba(255, 226, 150, 0.85) 32%,
    rgba(216, 168, 48, 0.45) 55%,
    transparent 100%);
  box-shadow: 0 0 22px 3px rgba(216, 168, 48, 0.20);
}

/* horizontal */
.hero__light::after {
  top: 32%;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(216, 168, 48, 0.50) 30%,
    rgba(255, 226, 150, 0.85) 50%,
    rgba(216, 168, 48, 0.50) 70%,
    transparent 100%);
  box-shadow: 0 0 22px 3px rgba(216, 168, 48, 0.20);
}

/* Where the beams meet: the brightest point on the page, breathing slowly. */
.hero__light span {
  position: absolute;
  left: 50%;
  top: 32%;
  width: 9rem;
  height: 9rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 232, 170, 0.55) 0%,
    rgba(216, 168, 48, 0.18) 28%,
    transparent 68%);
  animation: hero-breathe 7s ease-in-out infinite;
}

@keyframes hero-breathe {
  0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(0.94); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.06); }
}

/* On a narrow screen the text fills the width, so the light would sit behind
   the words. It steps back rather than competing. */
@media (max-width: 900px) {
  .hero__light { right: -4rem; opacity: 0.45; }
}

.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-gold);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.hero h1 {
  max-width: 18ch;
  margin-bottom: var(--space-5);
  color: #ffffff;
  text-wrap: balance;
}

.hero__lede {
  font-size: 1.2rem;
  color: rgba(245, 247, 250, 0.76);
  max-width: 58ch;
  margin-bottom: var(--space-6);
}

.hero__byline {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #ffffff;
  border-left: 3px solid var(--brand-gold);
  padding-left: var(--space-4);
}

.hero__byline span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(245, 247, 250, 0.6);
}

/* Buttons on night: the primary action takes the light, the secondary is an
   outline, so there is one obvious thing to press. */
.hero .btn--primary {
  background: linear-gradient(180deg, #e6b945, var(--brand-gold));
  color: var(--night);
  box-shadow: 0 10px 26px -12px rgba(216, 168, 48, 0.9);
}

.hero .btn--primary:hover {
  background: #f0c85a;
  color: var(--night);
}

.hero .btn--secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.hero .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

.hero .btn:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .hero__light span { animation: none; }
}

/* --------------------------------------------------------------------------
   Section headers
   -------------------------------------------------------------------------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.section-head h2 {
  margin-bottom: 0;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Project cards
   -------------------------------------------------------------------------- */
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.18s ease;
}

.project-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.project-card__media {
  aspect-ratio: 16 / 9;
  background: var(--surface-sunken);
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__placeholder {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--border-strong);
  letter-spacing: 0.08em;
}

.project-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.3;
}

.project-card__title a {
  text-decoration: none;
  color: var(--brand-ink-strong);
}

.project-card__title a:hover {
  color: var(--brand-accent);
}

.project-card__summary {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  flex: 1;
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   Filters
   -------------------------------------------------------------------------- */
.filter-bar {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}

.filter-bar__grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  align-items: end;
}

.filter-bar__actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-4);
}

/* --------------------------------------------------------------------------
   Project detail
   -------------------------------------------------------------------------- */
.project-hero {
  border-bottom: 1px solid var(--border);
  padding-block: var(--space-7);
  background: var(--surface-muted);
}

.project-layout {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  padding-block: var(--space-7);
}

@media (max-width: 900px) {
  .project-layout {
    grid-template-columns: 1fr;
  }
}

.project-aside .card + .card {
  margin-top: var(--space-4);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.feature-list {
  padding-left: 1.1rem;
  margin: 0;
}

.feature-list li {
  margin-bottom: var(--space-2);
}

/* --------------------------------------------------------------------------
   Cohort cards
   -------------------------------------------------------------------------- */
.cohort-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.cohort-card h3 {
  margin-bottom: 0;
}

.cohort-card__term {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-accent);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.pagination {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  justify-content: center;
  margin-top: var(--space-7);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: var(--space-9);
  border-top: 1px solid var(--border);
  background: var(--brand-ink-strong);
  color: var(--text-inverse);
  padding-block: var(--space-7);
}

.site-footer a {
  color: var(--text-inverse);
  opacity: 0.85;
}

.site-footer a:hover {
  opacity: 1;
  color: var(--text-inverse);
}

/* Full header asset: crest plus white wordmark, designed for dark grounds. */
.site-footer__logo {
  display: block;
  height: 2.75rem;
  width: auto;
  max-width: 100%;
  margin-bottom: var(--space-6);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.site-footer h4 {
  color: var(--text-inverse);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  opacity: 0.7;
  font-family: var(--font-body);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-2);
  font-size: 0.92rem;
}

.site-footer__legal {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  opacity: 0.75;
}

.site-footer__legal p {
  margin: 0;
  max-width: none;
}

/* Participant credits on the public project page (Phase 3). */
.participant-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-4);
}

.participant-list li {
  padding-left: var(--space-4);
  border-left: 3px solid var(--brand-gold);
}

.participant-list__role {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.participant-list p {
  margin: var(--space-2) 0 0;
  color: var(--text-muted);
}

/* Screenshot strip on the public project page (Phase 5). */
.screenshot-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  margin-bottom: var(--space-6);
}

.screenshot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot figcaption {
  padding: var(--space-3) var(--space-4);
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   Warm paper, and the pieces that sit on it
   -------------------------------------------------------------------------- */

/* The cool grey of the default muted section fought the warm paper around
   it; this is the same step, in the same temperature. */
.section--muted {
  background: var(--paper-deep);
}

/* The three "what a completed project includes" cards: a mark in the crest's
   gold, and a lift on hover, so they read as three things rather than three
   boxes of text. */
.promise-card {
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.18s ease;
}

.promise-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -20px rgba(11, 22, 38, 0.45);
  border-color: rgba(216, 168, 48, 0.55);
}

.promise-card__mark {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: var(--space-4);
  border-radius: 10px;
  color: var(--brand-accent);
  background: linear-gradient(160deg, var(--brand-accent-soft), #f6e7c1);
  box-shadow: inset 0 0 0 1px rgba(216, 168, 48, 0.35);
}

.promise-card__mark svg {
  width: 1.35rem;
  height: 1.35rem;
}

/* --------------------------------------------------------------------------
   Closing verse
   -------------------------------------------------------------------------- */
.verse-band {
  padding-block: var(--space-8) var(--space-7);
  text-align: center;
}

/* The same cross as the hero, drawn small: two gold strokes between two
   hairlines, so the page ends on the note it opened with. */
.verse-band__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.verse-band__ornament::before,
.verse-band__ornament::after {
  content: "";
  width: 5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-gold));
}

.verse-band__ornament::after {
  background: linear-gradient(90deg, var(--brand-gold), transparent);
}

.verse-band__cross {
  position: relative;
  width: 0.9rem;
  height: 1.3rem;
}

.verse-band__cross::before,
.verse-band__cross::after {
  content: "";
  position: absolute;
  background: var(--brand-gold);
  border-radius: 1px;
}

.verse-band__cross::before { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); }
.verse-band__cross::after  { top: 30%; left: 0; right: 0; height: 2px; }

.verse-band blockquote {
  margin: 0 auto;
  max-width: 34ch;
}

.verse-band p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--brand-ink-strong);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}

.verse-band cite {
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-accent);
  font-weight: 600;
}

/* The footer already opens with its own space; the verse band supplies the
   gap above it instead of doubling it. */
.verse-band + .site-footer,
main:has(.verse-band:last-child) + .site-footer {
  margin-top: 0;
}
