/* ========================================================================
   PACE ICSB — Editorial Magazine System
   Brutalist editorial · Off-white / Black / Orange
   ======================================================================== */

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ---------------------------------------------------------------------------
   DESIGN TOKENS
   Single source of truth for colour, type, spacing and rhythm.
   Components below consume these; no component re-declares raw values.
   --------------------------------------------------------------------------- */
:root {
  /* Colour — paper, ink, one orange accent */
  --bg:       #F5F0EB;
  --bg-warm:  #EDE8E2;
  --ink:      #0A0A0A;
  --ink-mid:  #3A3530;   /* 10.7:1 on --bg */
  --ink-light:#5A544E;   /* 6.6:1 on --bg — AA for small text */
  --border:   #C8C2BB;
  --border-lt:#DDD8D2;
  --orange:   #E85D04;   /* brand accent — graphics, dark backgrounds, large type */
  --orange-dk:#B34703;   /* 4.9:1 on --bg — small orange text & links */
  --white:    #FFFFFF;

  /* Type families
     display : BALBOA role — bold hero headlines, major section titles.
               Anton (OFL, The Anton Project Authors) stands in for Balboa:
               Balboa is a commercial retail face (Jim Parkinson, Parkinson
               Type Design) and cannot be embedded here. Anton is the
               closest open-licensed display gothic and was already part of
               this project's font stack, so no new dependency is added.
     hand    : SHADOW LIGHT role — "Shadows Into Light" (OFL, Kimberly
               Geswein) for a handful of handwritten accent moments only.
     ui      : INTER — body, navigation, buttons, forms, card copy.
     mono    : Space Mono — retained technical annotation layer (section
               indices, dates, coordinates, metadata). */
  --font-display: 'Anton', 'Arial Narrow', 'Haettenschweiler', Impact, sans-serif;
  --font-hand:    'Shadows Into Light', 'Segoe Script', 'Bradley Hand', cursive;
  --font-ui:      'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Type scale (rem-based so browser zoom + text scaling work) */
  --fs-hero:       clamp(3rem, 7vw, 6.75rem);         /* 48 → 108 hero display  */
  --fs-display:    clamp(2rem, 4vw, 3.5rem);          /* 32 → 56  section head  */
  --fs-display-lg: clamp(2.25rem, 5vw, 4.25rem);      /* 36 → 68  feature head  */
  --fs-wordmark:   clamp(2.25rem, 5vw, 4.5rem);       /* 36 → 72  wordmark      */
  --fs-hand:       clamp(1.25rem, 1.8vw, 1.625rem);   /* 20 → 26  handwritten   */
  --fs-hand-sm:    1.0625rem;                        /* 17  small handwritten  */
  --fs-h3:         1.25rem;                          /* 20  card heading        */
  --fs-h4:         1.125rem;                         /* 18  compact card heading*/
  --fs-body:       1.0625rem;                        /* 17  body                */
  --fs-body-sm:    0.9375rem;                        /* 15  body in dense cols  */
  --fs-meta:       0.8125rem;                        /* 13  metadata            */
  --fs-label:      0.75rem;                          /* 12  labels / eyebrows   */
  --fs-anno:       0.6875rem;                        /* 11  micro annotations   */
  --fs-nav:        0.9375rem;                        /* 15  navigation          */
  --fs-btn:        0.875rem;                         /* 14  buttons             */

  /* Line heights */
  --lh-hero:     0.94;    /* Anton is condensed — set it tight and poster-like */
  --lh-display:  0.98;
  --lh-hand:     1.3;     /* handwriting needs air or it turns to mush        */
  --lh-body:     1.6;
  --lh-loose:    1.72;

  /* Weights */
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  /* Tracking */
  --ls-display: 0.015em;  /* Anton is narrow — open it up slightly          */
  --ls-label:    0.1em;

  /* Measure — 60–75 characters per line */
  --measure:       68ch;
  --measure-tight: 58ch;

  /* Rhythm */
  --space-md: 16px;
  --space-lg: 24px;

  --grid-gap: 1px;
  --section-pad: clamp(48px, 8vw, 120px);
  --side-pad: clamp(16px, 4vw, 64px);
  --head-h: 56px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

::selection {
  background: var(--orange);
  color: var(--white);
}

/* Visible keyboard focus on every interactive element (WCAG 2.4.7).
   The ring colour flips with the surface: paper and orange take ink,
   the two near-black panels take paper — an ink ring on ink is invisible.
   Form fields keep the default ring too, so they never rely on the faint
   orange halo alone. */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}
.site-foot :focus-visible,
.cta :focus-visible {
  outline-color: var(--ink);
}
.events-cta :focus-visible,
.nav-overlay :focus-visible {
  outline-color: var(--bg);
}

/* ─── UTILITY ─── */
/* Labels / metadata — Space Mono, uppercase, tracked. These read as
   editorial annotations (indices, dates, coordinates), never as prose. */
.mono-label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
  line-height: 1.6;
  display: inline-block;
}

.star {
  color: var(--orange);
  font-style: normal;
}

.squiggle {
  color: var(--orange);
  font-style: normal;
  font-weight: 400;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  font-synthesis: none;
}

/* ========================================================================
   TYPOGRAPHY LAYER — DISPLAY / HANDWRITING / TEXT
   Anton (Balboa role)  : hero + major display headlines. Single-weight
                           family — never synthesise a heavier weight.
   Shadows Into Light   : a handful of handwritten accent moments only.
   Inter                : body, navigation, buttons, forms, card copy.
   Space Mono           : the technical annotation layer.
   Display type is loud and rare on purpose; the restrained body is what
   makes it read as a deliberate accent rather than the default.
   ======================================================================== */
.hero-display,
.about-wordmark,
.sec-title,
.events-title,
.news-title,
.projects-title,
.cta-display,
.foot-wordmark,
.program-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
}

/* Level 1 — deliberately uneven scale so sections do not all shout */
.hero-display {
  font-size: var(--fs-hero);
  line-height: var(--lh-hero);
}
.hero-display .line {
  overflow-wrap: break-word;
}
.about-wordmark {
  font-size: var(--fs-wordmark);
  line-height: 0.95;
}
.sec-title {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
}
.events-title,
.news-title,
.projects-title {
  font-size: var(--fs-display-lg);
  line-height: 1;
}
.cta-display {
  font-size: var(--fs-display);
  line-height: 1;
  overflow-wrap: break-word;
  text-wrap: balance;
}

/* Level 2 — card headings stay in Inter: readable, never shouty */
.dept-name,
.why-title,
.faculty-name,
.event-name,
.news-card h3,
.project-name,
.events-cta-title {
  font-family: var(--font-ui);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-h3);
  line-height: 1.28;
  letter-spacing: -0.005em;
  text-transform: none;
  overflow-wrap: break-word;
  text-wrap: balance;
  min-width: 0;
}
.event-name,
.news-card h3 { font-size: var(--fs-h4); }

/* The four programme titles are the feature block of the page —
   the one place the display face works below headline scale. */
.program-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  font-size: var(--fs-h3);
  line-height: 1.16;
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  overflow-wrap: break-word;
  text-wrap: balance;
  min-width: 0;
}

/* Level 2 numbers — large monospaced indices, the technical counterpoint
   to the display headlines. */
.why-num {
  font-family: var(--font-mono);
  font-size: clamp(2.25rem, 3.4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.program-num {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}
/* Longest project title needs its own scale — do not shrink globally */
.project-item:first-child .project-name {
  overflow-wrap: anywhere;
}
.foot-wordmark {
  font-size: clamp(1.25rem, 2.2vw, 1.875rem);
  line-height: 1.05;
}

/* Display headings: keep orange accents + breaks, no stretch/effects */
.hero-display em,
.projects-title em {
  font-style: normal;
}
.hero-display .star,
.sec-title .star {
  font-family: var(--font-display);
}
.events-title .squiggle {
  font-family: var(--font-display);
  letter-spacing: -0.05em;
}

/* ---------------------------------------------------------------------------
   HANDWRITING — SHADOW LIGHT (Shadows Into Light, OFL)
   Deliberately sparse: a pull quote, a photo caption, one statement and a
   footer note. Never used for paragraphs, navigation, forms, labels or any
   information a visitor has to read. Source text is upper-cased in the
   markup, so it is lower-cased here to suit the script.
   --------------------------------------------------------------------------- */
.about-kicker,
.figure-tag,
.events-subtitle,
.foot-tag,
.blog-cta-title {
  font-family: var(--font-hand);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  text-transform: lowercase;
  line-height: var(--lh-hand);
}
.about-kicker {
  font-size: var(--fs-hand);
  color: var(--ink);
  max-width: var(--measure);
}
.figure-tag {
  font-size: var(--fs-hand-sm);
  color: var(--ink-mid);
}
.events-subtitle {
  font-size: var(--fs-hand);
}
.foot-tag {
  font-size: 1.25rem;
  color: var(--ink);
  max-width: 34ch;
}
.blog-cta-title {
  font-size: var(--fs-hand);
  color: var(--ink);
  max-width: 30rem;
}

/* ─── REVEAL ANIMATION STATES ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: none; /* GSAP handles this */
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── PH-frame (placeholder image blocks) ─── */
.ph-frame {
  width: 100%;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ph-frame::after {
  content: attr(data-label);
  font-family: var(--font-mono);
  font-size: var(--fs-anno);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  position: absolute;
  bottom: 12px;
  left: 12px;
  opacity: 0.85;
  pointer-events: none;
}
.ph-tall  { aspect-ratio: 4 / 5; }
.ph-wide  { aspect-ratio: 21 / 9; }
.ph-169   { aspect-ratio: 16 / 9; }
.ph-43    { aspect-ratio: 4 / 3; }
.ph-34    { aspect-ratio: 3 / 4; }
.ph-auto  { aspect-ratio: auto; }

/* ========================================================================
   HEADER
   ======================================================================== */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1),
              background 0.3s ease;
}
.site-head.is-scrolled {
  background: rgba(245, 240, 235, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-head.is-hidden {
  transform: translateY(-100%);
}

.head-grid {
  display: flex;
  align-items: center;
  min-height: var(--head-h);
  padding: 0 var(--side-pad);
  gap: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  background: var(--orange);
  color: var(--white);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-logo {
  height: 32px;
  width: auto;
  display: block;
  border-radius: 4px;
}
.brand-type {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-type strong {
  font-weight: var(--fw-bold);
}

/* Nav — Inter 15px / 500 */
.nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}
.nav-link {
  font-family: var(--font-ui);
  font-size: var(--fs-nav);
  font-weight: var(--fw-medium);
  letter-spacing: 0.035em;
  text-transform: uppercase;
  padding: 18px 11px;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
  position: relative;
}
.nav-link:hover,
.nav-link.is-active {
  color: var(--orange-dk);
}
.nav-link.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--orange);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 16px;
}

/* Buttons — Inter 14px / 600 */
.btn {
  font-family: var(--font-ui);
  font-size: var(--fs-btn);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.25s cubic-bezier(0.32, 0.72, 0, 1),
              border-color 0.25s cubic-bezier(0.32, 0.72, 0, 1),
              color 0.25s cubic-bezier(0.32, 0.72, 0, 1);
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}
/* Orange fill + near-black text keeps 5.6:1 contrast on the brand orange */
.btn-orange {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}
.btn-orange:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn-ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.btn-ink:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}
.btn-sm {
  padding: 7px 14px;
  font-size: var(--fs-meta);
}

/* Hamburger */
.menu-btn {
  display: none;
  width: 32px;
  height: 32px;
  position: relative;
  align-items: center;
  justify-content: center;
}
.menu-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  position: absolute;
  transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.menu-btn span:first-child { top: 11px; }
.menu-btn span:last-child  { bottom: 11px; }
.menu-btn.is-open span:first-child {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.menu-btn.is-open span:last-child {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ========================================================================
   HERO
   ======================================================================== */
.hero {
  padding-top: var(--head-h); /* header height */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding: 12px var(--side-pad);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  min-height: 0;
}

.hero-type {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 6vw, 96px) var(--side-pad);
  gap: clamp(24px, 3vw, 48px);
}

.hero-display {
  /* Size + line-height controlled by typography layer (Anton) */
}
.hero-display .line {
  display: block;
}
.hero-display em {
  color: var(--orange);
  font-style: normal;
}

.hero-lede {
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--ink-mid);
  max-width: var(--measure);
}
.hero-lede .lede-tags {
  font-weight: var(--fw-semibold);
  color: var(--ink);
  margin-bottom: 6px;
}
.hero-lede .hero-sub {
  margin-top: 10px;
  color: var(--orange-dk);
  font-weight: var(--fw-medium);
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-figure {
  border-left: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero-figure .ph-frame {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
/* The hero figure already carries a .figure-tag caption — don't stack a
   second placeholder label on top of it. */
.hero-figure .ph-frame::after { display: none; }
.figure-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
}

/* Ticker — mono as a technical accent */
.ticker {
  border-top: 1px solid var(--border);
  overflow: hidden;
  padding: 10px 0;
  background: var(--ink);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 40s linear infinite;
}
.ticker-track span {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  white-space: nowrap;
  padding-right: 0;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================================================================
   SECTION SYSTEM
   ======================================================================== */
.section {
  border-bottom: 1px solid var(--border);
  position: relative;
}

.section-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px var(--side-pad);
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
/* Section bar — the index is the marker, the rest are annotations */
.section-bar > .mono-label:first-child {
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--orange-dk);
}
.section-bar > .mono-label:last-child {
  font-size: var(--fs-anno);
  letter-spacing: 0.1em;
  color: var(--ink-light);
}
.section-bar-title {
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.sec-head {
  padding: clamp(40px, 6vw, 80px) var(--side-pad);
}
.sec-title {
  /* Size + line-height controlled by typography layer (Anton) */
  margin-bottom: var(--space-lg);
}
.sec-lede {
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-mid);
  max-width: var(--measure);
}

.sec-kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--orange-dk);
  margin-bottom: 14px;
  display: block;
}

/* ========================================================================
   ABOUT
   ======================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.about-wordmark {
  /* Size + line-height controlled by typography layer (Anton) */
  padding: clamp(32px, 5vw, 80px) var(--side-pad);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
}

.about-body {
  padding: clamp(32px, 5vw, 80px) var(--side-pad);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 48px);
}

.about-statement {
  font-family: var(--font-ui);
  font-size: clamp(1.0625rem, 1.4vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-mid);
  max-width: var(--measure);
}
.about-statement strong {
  color: var(--ink);
  font-weight: var(--fw-semibold);
}

.about-copy {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-mid);
  max-width: var(--measure);
}

/* .about-kicker is a handwriting accent — see the typography layer. */

.about-note {
  font-size: var(--fs-label);
  line-height: 1.8;
  max-width: var(--measure);
}

.about-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.about-cols .col-label {
  margin-bottom: 8px;
  color: var(--orange-dk);
  font-weight: var(--fw-medium);
}
.about-cols p:not(.mono-label) {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: var(--ink-mid);
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.about-facts > div {
  padding: 16px 0;
  border-right: 1px solid var(--border);
}
.about-facts > div:last-child {
  border-right: none;
}
.about-facts dt {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 4px;
}
.about-facts dd {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: var(--fw-semibold);
}

.about-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.about-strip .ph-frame {
  aspect-ratio: 16 / 10;
}
.about-strip .ph-frame + .ph-frame {
  border-left: 1px solid var(--border);
}

/* ========================================================================
   PROGRAMS
   ======================================================================== */
.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.program-card {
  padding: 0;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.3s ease;
}
.program-card:last-child {
  border-right: none;
}
.program-card:hover {
  background: var(--bg-warm);
}

.program-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.program-num {
  /* Space Mono, weight 700 — size in typography layer */
  color: var(--orange-dk);
}

.program-card .ph-frame {
  aspect-ratio: 4 / 3;
  border-left: none;
  border-right: none;
}

.program-name {
  /* Inter 18px / 600 — size in typography layer */
  padding: 20px 16px 12px;
}

.program-card p {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: var(--ink-mid);
  padding: 0 16px 16px;
  flex: 1;
}

.tag-row {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.tag-row li {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-right: 1px solid var(--border);
  color: var(--ink-light);
}
.tag-row li:last-child {
  border-right: none;
}

.program-cta {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  transition: background 0.25s ease, color 0.25s ease;
}
.program-cta:hover {
  background: var(--ink);
  color: var(--bg);
}
.program-cta span {
  transition: transform 0.25s ease;
}
.program-cta:hover span {
  transform: translateX(4px);
}

/* ========================================================================
   DEPARTMENTS
   ======================================================================== */
.dept-list {
  border-bottom: 1px solid var(--border);
}

.dept-row {
  display: flex;
  align-items: center;
  padding: 18px var(--side-pad);
  border-bottom: 1px solid var(--border);
  transition: all 0.25s ease;
  gap: 24px;
}
.dept-row:last-child {
  border-bottom: none;
}
.dept-row:hover {
  background: var(--ink);
  color: var(--bg);
}
.dept-row:hover .dept-num {
  color: var(--orange);
}

.dept-num {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  color: var(--orange-dk);
  flex-shrink: 0;
  width: 60px;
}
.dept-name {
  /* Inter 20px / 600 — size in typography layer */
  flex: 1;
}
.dept-arrow {
  font-size: 1.25rem;
  transition: transform 0.25s ease;
}
.dept-row:hover .dept-arrow {
  transform: translateX(6px);
}

.dept-detail {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-align: left;
  max-width: 360px;
  line-height: 1.8;
}
.dept-row:hover .dept-detail {
  color: rgba(245, 240, 235, 0.75);
}

.dept-visuals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.dept-visuals .ph-frame {
  aspect-ratio: 4 / 3;
}
.dept-visuals .ph-frame + .ph-frame {
  border-left: 1px solid var(--border);
}

/* ========================================================================
   WHY PACE ICSB
   ======================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
}

.why-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.why-item {
  padding: clamp(32px, 4vw, 64px) clamp(16px, 2vw, 32px);
  border-right: 1px solid var(--border);
  position: relative;
  transition: background 0.3s ease;
}
.why-item:last-child {
  border-right: none;
}
.why-item:hover {
  background: var(--ink);
  color: var(--bg);
}
.why-item:hover .why-num {
  color: var(--orange);
}

.why-num {
  /* Space Mono — the large monospaced index, technical counterpoint */
  color: var(--orange-dk);
  margin-bottom: 16px;
  display: block;
}

.why-title {
  /* Inter 20px / 600 — size in typography layer */
  margin-bottom: 16px;
}

.why-item p {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: var(--ink-mid);
  max-width: 34ch;
}
.why-item:hover p {
  color: rgba(245, 240, 235, 0.75);
}

/* ========================================================================
   FACULTY
   ======================================================================== */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.faculty-card {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.faculty-card:last-child {
  border-right: none;
}

.faculty-card .ph-frame {
  aspect-ratio: 3 / 4;
  border-left: none;
  border-right: none;
  border-bottom: none;
}

.faculty-meta {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.faculty-name {
  /* Inter 20px / 600 — size in typography layer */
  margin-bottom: 6px;
}

.faculty-meta .mono-label {
  display: block;
  margin-bottom: 8px;
}

.faculty-meta p:not(.mono-label) {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: var(--ink-mid);
}

.faculty-li {
  margin-top: auto;
  padding-top: 12px;
  color: var(--orange-dk);
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.faculty-li:hover {
  color: var(--ink);
}

/* ========================================================================
   CTA
   ======================================================================== */
.events-title {
  /* Size controlled by typography layer (Anton) */
  padding: clamp(24px, 4vw, 64px) var(--side-pad);
}

.events-lede {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 48px);
  align-items: end;
  padding: 0 var(--side-pad) clamp(28px, 4vw, 56px);
}
/* .events-subtitle is a handwriting accent — see the typography layer. */
.events-lede-copy p {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: var(--ink-mid);
  max-width: var(--measure-tight);
}
.events-lede-copy p + p { margin-top: 8px; }
.events-lede-copy .lede-tags {
  font-weight: var(--fw-semibold);
  color: var(--ink);
}

.events-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}

.event-feature {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.event-feature .ph-frame {
  aspect-ratio: 16 / 9;
  border-left: none;
  border-right: none;
  border-bottom: none;
}

.event-feature-body {
  padding: clamp(16px, 2vw, 32px);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.event-feature-body > .mono-label {
  color: var(--orange-dk);
}

.event-name {
  /* Inter 18px / 600 — size in typography layer */
}

.event-sub {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-light);
  line-height: 1.7;
}

.event-feature-body > p:last-child {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: var(--ink-mid);
  margin-top: 4px;
  max-width: var(--measure);
}

.event-list {
  display: flex;
  flex-direction: column;
}

.event-row {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(16px, 2vw, 28px) clamp(16px, 2vw, 32px);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}
.event-row:last-child {
  border-bottom: none;
}
.event-row:hover {
  background: var(--bg-warm);
}
.event-row > .mono-label {
  color: var(--orange-dk);
}
.event-row .event-name {
  /* Inter 18px / 600 — size in typography layer */
}
.event-row > p:last-child {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: var(--ink-mid);
  max-width: var(--measure);
}

.events-cta {
  border-top: 1px solid var(--border);
  background: var(--ink);
  color: var(--bg);
  padding: clamp(24px, 4vw, 48px) var(--side-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.events-cta-title {
  /* Inter 20px / 600 — size in typography layer */
  margin-bottom: 8px;
}
.events-cta-copy {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: rgba(245, 240, 235, 0.82);
  max-width: var(--measure-tight);
}
/* Ghost buttons on the dark strip need light text, not ink */
.events-cta .btn-ghost {
  color: var(--bg);
  border-color: rgba(245, 240, 235, 0.45);
}
.events-cta .btn-ghost:hover {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}

/* ========================================================================
   NEWS
   ======================================================================== */
.news-title {
  /* Size controlled by typography layer (Anton) */
  padding: clamp(24px, 4vw, 64px) var(--side-pad);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.news-card {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.news-card:last-child {
  border-right: none;
}

.news-card .ph-frame {
  aspect-ratio: 16 / 9;
  border-left: none;
  border-right: none;
  border-bottom: none;
}

.news-card .mono-label {
  padding: 12px 16px 0;
  color: var(--orange-dk);
}

.news-card h3 {
  /* Inter 18px / 600 — size in typography layer */
  padding: 8px 16px;
}

.news-card p {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: var(--ink-mid);
  padding: 0 16px 16px;
  flex: 1;
  max-width: var(--measure);
}

.news-card .program-cta {
  margin-top: auto;
}

/* ========================================================================
   FEATURED PROJECTS
   ======================================================================== */
.art-band {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--orange) 0,
    var(--orange) 20px,
    var(--ink) 20px,
    var(--ink) 24px
  );
}

.projects-title {
  /* Size controlled by typography layer (Anton) */
  padding: clamp(24px, 4vw, 64px) var(--side-pad);
}
.projects-title em {
  color: var(--orange);
  font-style: normal;
}

.projects-lede {
  padding: 0 var(--side-pad) clamp(24px, 4vw, 48px);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-mid);
  max-width: var(--measure);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.project-item {
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.project-item:nth-child(2n) {
  border-right: none;
}
.project-item:nth-child(-n+2) {
  border-bottom: 1px solid var(--border);
}
.project-item .ph-frame {
  aspect-ratio: 4 / 3;
  border-left: none;
  border-right: none;
  border-bottom: none;
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}
.project-item:hover .ph-frame {
  transform: scale(1.04);
}

.project-body {
  padding: clamp(14px, 1.5vw, 20px);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.project-body > .mono-label {
  color: var(--orange-dk);
}
.project-name {
  /* Inter 20px / 600 — size in typography layer */
}
.project-body > p:last-child {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: var(--ink-mid);
  max-width: var(--measure);
}

/* ========================================================================
   CTA
   ======================================================================== */
.cta {
  border-bottom: 1px solid var(--border);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
  min-height: clamp(400px, 50vh, 600px);
}

.cta-display {
  /* Size + line-height controlled by typography layer (Anton) */
  padding: clamp(32px, 5vw, 80px) var(--side-pad);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.cta-side {
  padding: clamp(32px, 5vw, 80px) clamp(24px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(16px, 2vw, 32px);
}

.cta-lede {
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-mid);
  max-width: var(--measure-tight);
}

/* ========================================================================
   CONTACT
   ======================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.contact-grid > div:first-child {
  padding: clamp(24px, 3vw, 48px) var(--side-pad);
  border-right: 1px solid var(--border);
}

.contact-address {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: var(--measure-tight);
}

.contact-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-lt);
  font-size: var(--fs-body-sm);
  line-height: 1.5;
}
.contact-list li:last-child {
  border-bottom: none;
}
.contact-list li span {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
  width: 54px;
  flex-shrink: 0;
}
.contact-list a:hover {
  color: var(--orange-dk);
}

.contact-form {
  padding: clamp(24px, 3vw, 48px) var(--side-pad);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form .mono-label {
  color: var(--ink);
  font-weight: var(--fw-semibold);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  background: transparent;
  border: 1px solid var(--border);
  padding: 11px 12px;
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--ink);
  transition: border-color 0.2s;
  resize: vertical;
}
/* Keyboard focus gets the global :focus-visible ring plus an ink border;
   the soft orange halo alone is too faint to pass 3:1. */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.18);
}
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230A0A0A' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
.contact-form select:invalid {
  color: var(--ink-light);
}

.form-note {
  font-size: var(--fs-label);
  color: var(--ink-light);
  margin-top: 4px;
  max-width: var(--measure);
}

/* ========================================================================
   FOOTER — Orange editorial
   The orange field needs dark text everywhere for AA contrast, so all
   footer labels are explicitly re-inked rather than inheriting the
   light-on-paper secondary colour.
   ======================================================================== */
.site-foot {
  background: var(--orange);
  color: var(--ink);
}
.site-foot .mono-label { color: rgba(10, 10, 10, 0.82); }

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 0;
  padding: clamp(32px, 4vw, 64px) var(--side-pad);
  border-bottom: 1px solid rgba(10, 10, 10, 0.15);
}

.foot-wordmark {
  /* Anton footer wordmark — size/line-height in typography layer */
  margin-bottom: 12px;
}

.foot-dept {
  display: block;
  margin-bottom: 12px;
  color: rgba(10, 10, 10, 0.85);
  line-height: 1.9;
}

/* .foot-tag is a handwriting accent — see the typography layer. */

.foot-head {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--ink);
}

.foot-col a {
  display: block;
  font-size: var(--fs-body-sm);
  line-height: 1.4;
  padding: 8px 0;
  color: rgba(10, 10, 10, 0.84);
  transition: color 0.2s;
}
.foot-col a:hover {
  color: var(--ink);
}

.foot-social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--side-pad);
  border-bottom: 1px solid rgba(10, 10, 10, 0.15);
}

.social-dots {
  display: flex;
  gap: 16px;
}
.social-dots a {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}
.social-dots a:hover {
  opacity: 0.6;
}

.to-top {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid var(--ink);
  transition: background 0.2s, color 0.2s;
}
.to-top:hover {
  background: var(--ink);
  color: var(--orange);
}

.foot-legal {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding: 12px var(--side-pad);
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  line-height: 1.6;
  color: rgba(10, 10, 10, 0.85);
}

/* ========================================================================
   MOBILE OVERLAY MENU
   ======================================================================== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 99;
  display: flex;
  flex-direction: column;
  /* Ten links plus the CTA can be taller than a small phone. Let the panel
     scroll, and `safe` keeps the first link reachable when it overflows
     (plain `center` pushes it above the viewport where it cannot be tapped). */
  justify-content: safe center;
  align-items: center;
  overflow-y: auto;
  padding: 72px 0 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.nav-overlay .nav-link {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3.8vw, 2rem);
  color: var(--bg);
  padding: 12px 32px;
  opacity: 0;
  transform: translateY(20px);
  transition: color 0.2s, opacity 0.4s ease, transform 0.4s ease;
}
.nav-overlay.is-open .nav-link {
  opacity: 1;
  transform: translateY(0);
}
/* Short viewports (small phones, landscape): tighten the overlay so the
   whole list fits without scrolling. */
@media (max-height: 680px) {
  .nav-overlay { padding: 60px 0 24px; }
  .nav-overlay .nav-link {
    font-size: clamp(1.0625rem, 3vw, 1.375rem);
    padding: 7px 24px;
  }
  .nav-overlay-cta { margin-top: 12px; padding: 10px 24px; }
}
.nav-overlay .nav-link:hover {
  color: var(--orange);
}
.nav-overlay-cta {
  margin-top: 20px;
  font-family: var(--font-ui);
  font-size: var(--fs-btn);
  font-weight: var(--fw-semibold);
  padding: 12px 28px;
  border-color: var(--orange);
  color: var(--ink);
}

.nav-overlay-close {
  position: absolute;
  top: 16px;
  right: var(--side-pad);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  padding: 9px 16px;
  border: 1px solid rgba(245, 240, 235, 0.35);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.nav-overlay-close:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}

/* ========================================================================
   RESPONSIVE — TABLET / SMALL LAPTOP (< 1280px)
   The Inter navigation is wider than the old mono nav, so it collapses
   into the overlay menu earlier to guarantee no overlap or clipping.
   ======================================================================== */
@media (max-width: 1279px) {
  .nav { display: none; }
  .head-actions .btn { display: none; }
  .menu-btn { display: flex; }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-figure {
    border-left: none;
    border-top: 1px solid var(--border);
    min-height: 50vh;
  }
  .hero-display {
    font-size: clamp(2.75rem, 13vw, 5rem);
    line-height: var(--lh-hero);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-wordmark {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .about-cols {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .about-facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-strip {
    grid-template-columns: 1fr;
  }
  .about-strip .ph-frame {
    border-left: none !important;
  }
  .about-strip .ph-frame + .ph-frame {
    border-top: 1px solid var(--border);
  }

  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .program-card:nth-child(2) {
    border-right: none;
  }
  .program-card:nth-child(1),
  .program-card:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

  .dept-visuals {
    grid-template-columns: repeat(2, 1fr);
  }
  .dept-visuals .ph-frame:nth-child(2) {
    border-left: none;
  }
  .dept-visuals .ph-frame:nth-child(1),
  .dept-visuals .ph-frame:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

  .dept-row {
    flex-wrap: wrap;
  }
  .dept-detail {
    max-width: none;
    width: 100%;
    text-align: left;
    padding-left: 84px;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-item:nth-child(2) {
    border-right: none;
  }
  .why-item:nth-child(1),
  .why-item:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }
  .why-grid-3 {
    grid-template-columns: 1fr;
  }
  .why-grid-3 .why-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .why-grid-3 .why-item:last-child {
    border-bottom: none;
  }

  .faculty-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .faculty-card:nth-child(2) {
    border-right: none;
  }
  .faculty-card:nth-child(1),
  .faculty-card:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

  .events-grid {
    grid-template-columns: 1fr;
  }
  .event-feature {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .events-lede {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .news-card:last-child {
    border-bottom: none;
  }

  .cta-grid {
    grid-template-columns: 1fr;
  }
  .cta-display {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid > div:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .foot-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .foot-brand {
    grid-column: span 2;
    margin-bottom: 16px;
  }
}

/* ========================================================================
   RESPONSIVE — MOBILE (< 640px)
   ======================================================================== */
@media (max-width: 640px) {
  :root {
    --side-pad: 16px;
  }

  .head-grid {
    height: 48px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
    font-size: 1.25rem;
  }

  .hero {
    padding-top: 48px;
    min-height: auto;
  }

  .hero-meta {
    flex-direction: column;
    gap: 4px;
    padding: 8px var(--side-pad);
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-figure {
    min-height: 60vw;
  }

  .hero-display {
    font-size: clamp(2.75rem, 14vw, 4rem);
    line-height: var(--lh-hero);
  }

  .hero-cta {
    flex-direction: column;
  }
  .hero-cta .btn {
    text-align: center;
    justify-content: center;
  }

  .section-bar {
    flex-wrap: wrap;
    gap: 4px;
  }

  .about-wordmark {
    font-size: clamp(1.8rem, 11vw, 3rem);
    line-height: 1.05;
  }

  .about-facts {
    grid-template-columns: 1fr;
  }
  .about-facts > div {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .about-facts > div:last-child {
    border-bottom: none;
  }

  .program-grid {
    grid-template-columns: 1fr;
  }
  .program-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .program-card:last-child {
    border-bottom: none;
  }

  .dept-visuals {
    grid-template-columns: 1fr;
  }
  .dept-visuals .ph-frame {
    border-left: none !important;
    aspect-ratio: 16 / 9;
  }
  .dept-visuals .ph-frame + .ph-frame {
    border-top: 1px solid var(--border);
  }

  .dept-row {
    flex-wrap: wrap;
  }
  .dept-detail {
    max-width: none;
    width: 100%;
    text-align: left;
    padding-left: 0;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }
  .why-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .why-item:last-child {
    border-bottom: none;
  }

  .faculty-grid {
    grid-template-columns: 1fr;
  }
  .faculty-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .faculty-card:last-child {
    border-bottom: none;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
  .project-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .project-item:last-child {
    border-bottom: none;
  }

  .events-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .foot-brand {
    grid-column: span 2;
  }
  .foot-col:last-child {
    grid-column: span 2;
  }

  .foot-social {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .foot-legal {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  /* Ensure no horizontal overflow */
  body { overflow-x: hidden; }
  * { max-width: 100%; }
}

/* ========================================================================
   ANTON — COMPONENT-SPECIFIC RESPONSIVE + OVERFLOW GUARDS
   The display face must never cause horizontal scrolling. Long titles get
   their own scale; do not shrink everything globally.
   ======================================================================== */
.hero-display,
.sec-title,
.events-title,
.events-subtitle,
.news-title,
.projects-title,
.cta-display,
.about-wordmark,
.dept-name,
.program-name,
.why-title,
.faculty-name,
.event-name,
.news-card h3,
.project-name,
.foot-wordmark,
.events-cta-title {
  min-width: 0;
  max-width: 100%;
}
.hero-type,
.sec-head,
.events-lede,
.cta-grid,
.dept-row,
.program-card,
.project-body,
.event-feature-body,
.event-row,
.news-card,
.faculty-meta {
  min-width: 0;
}
.dept-name,
.program-name,
.event-name,
.project-name,
.news-card h3,
.cta-display,
.sec-title {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}
/* Long hyphenated project title may break anywhere on narrow screens */
.project-item:first-child .project-name {
  overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
  .sec-title {
    font-size: clamp(1.75rem, 4.4vw, 2.75rem);
    line-height: var(--lh-display);
  }
  .events-title,
  .news-title,
  .projects-title {
    font-size: clamp(1.875rem, 5.4vw, 3.25rem);
    line-height: 0.98;
  }
  .events-subtitle {
    font-size: clamp(1.25rem, 2.6vw, 1.5rem);
    line-height: var(--lh-hand);
  }
  .cta-display {
    font-size: clamp(1.75rem, 4.6vw, 2.75rem);
    line-height: 1;
  }
  .about-wordmark {
    font-size: clamp(2rem, 8vw, 3.5rem);
    line-height: 0.95;
  }
  .dept-name {
    font-size: var(--fs-h3);
    line-height: 1.28;
    flex-basis: 100%;
  }
  .program-name {
    font-size: var(--fs-h3);
  }
  .event-name,
  .news-card h3 {
    font-size: var(--fs-h4);
  }
  .project-name {
    font-size: var(--fs-h4);
  }
}

@media (max-width: 640px) {
  .sec-title {
    font-size: clamp(1.5rem, 7vw, 2.25rem);
    line-height: 1;
    text-wrap: balance;
  }
  .events-title,
  .news-title,
  .projects-title {
    font-size: clamp(1.625rem, 8.5vw, 2.5rem);
    line-height: 1;
    text-wrap: balance;
  }
  .events-subtitle {
    font-size: clamp(1.125rem, 4.6vw, 1.375rem);
    line-height: var(--lh-hand);
    text-wrap: balance;
  }
  .cta-display {
    font-size: clamp(1.5rem, 7.2vw, 2.25rem);
    line-height: 1;
  }
  .dept-row {
    gap: 10px;
  }
  .dept-name {
    font-size: var(--fs-h3);
    line-height: 1.28;
    flex-basis: 100%;
  }
  .program-name {
    font-size: var(--fs-h3);
    line-height: 1.16;
  }
  .event-name,
  .news-card h3 {
    font-size: var(--fs-h4);
    line-height: 1.3;
  }
  .why-title {
    font-size: var(--fs-h3);
  }
  .why-num {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }
  .project-name {
    font-size: var(--fs-h4);
    line-height: 1.3;
  }
  .faculty-name {
    font-size: var(--fs-h3);
  }
  .foot-wordmark {
    font-size: clamp(1.125rem, 5.5vw, 1.5rem);
  }
  .events-cta-title {
    font-size: var(--fs-h3);
  }
}

/* ========================================================================
   ADDITIONAL POLISH
   ======================================================================== */

/* Smooth hover line effect on program cards */
.program-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--orange);
  transition: height 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}
.program-card:hover::after {
  height: 100%;
}

/* Why items hover accent line */
.why-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}
.why-item:hover::after {
  transform: scaleX(1);
}

/* Department row hover accent */
.dept-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--orange);
  transform: scaleY(0);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.dept-row {
  position: relative;
}
.dept-row:hover::before {
  transform: scaleY(1);
}

/* News card hover */
.news-card {
  transition: background 0.3s ease;
}
.news-card:hover {
  background: var(--bg-warm);
}

/* Event feature hover */
.event-feature {
  transition: background 0.3s ease;
}
.event-feature:hover {
  background: var(--bg-warm);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ink-light);
}

/* ================= Cookie consent ================= */
.ck-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: var(--ink);
  color: var(--bg);
  border-top: 2px solid var(--orange);
  padding: 18px var(--side-pad);
  display: flex;
  align-items: center;
  gap: 12px 28px;
  flex-wrap: wrap;
  transform: translateY(110%);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ck-banner.is-visible { transform: none; }
.ck-banner[hidden] { display: none; }
.ck-main { flex: 1 1 300px; min-width: 0; }
.ck-kicker {
  color: var(--orange);
  margin-bottom: 6px;
}
.ck-text {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: #E2DED4;
  max-width: 660px;
}
.ck-text a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ck-text a:hover { color: var(--bg); }
.ck-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ck-btn {
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 18px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--bg);
  cursor: pointer;
}
.ck-btn:hover { border-color: var(--orange); color: var(--orange); }
.ck-btn.ck-accept {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}
.ck-btn.ck-accept:hover { background: var(--bg); border-color: var(--bg); color: var(--ink); }
.ck-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ck-overlay[hidden] { display: none; }
.ck-modal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: clamp(24px, 4vw, 40px);
}
.ck-modal h2 {
  font-family: var(--font-ui);
  font-size: 1.4rem;
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.ck-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border-lt);
  cursor: pointer;
}
.ck-row span { font-size: 0.875rem; line-height: 1.55; }
.ck-row strong { display: block; color: var(--ink); margin-bottom: 2px; }
.ck-row em { display: block; font-style: normal; color: var(--ink-mid); font-size: 0.8rem; }
.ck-row input {
  appearance: none;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  margin-top: 2px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
}
.ck-row input::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ink-light);
  transition: left 0.18s ease, background 0.18s ease;
}
.ck-row input:checked { background: var(--ink); }
.ck-row input:checked::after { left: 22px; background: var(--orange); }
.ck-row input:disabled { opacity: 0.55; cursor: not-allowed; }
.ck-modal .ck-actions { margin-top: 20px; }
.ck-modal .ck-btn { color: var(--ink); }
.ck-modal .ck-btn:hover { border-color: var(--orange); color: var(--orange-dk); }
.ck-modal .ck-btn.ck-accept { color: var(--ink); }
.ck-modal .ck-btn.ck-accept:hover { color: var(--ink); }

/* ========================================================================
   MOTION PREFERENCES
   Animations are decorative: every one of them is safe to drop.
   ======================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .ticker-track { animation: none; }
  .reveal,
  .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Fallback when scripts are unavailable or an initialiser throws: never hide
   content. Covers everything GSAP pre-hides, not just `.reveal`. */
html.no-anim .reveal,
html.no-anim .about-wordmark,
html.no-anim .cta-display,
html.no-anim .foot-grid > *,
html.no-anim .art-band {
  opacity: 1 !important;
  transform: none !important;
}
