/* PROXIMA / FORM — bauhaus-grid SIGNATURE
 * Mondrian asymmetric grid + isometric 3D + side vertical stripe nav
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

:root {
  --bg-base:   #faf9f6;
  --bg-paper:  #ffffff;
  --ink:       #0a0a0a;
  --ink-soft:  #404040;
  --muted:     #8a8a8a;

  --red:    #d62828;
  --blue:   #1d4ed8;
  --yellow: #fbbf24;
  --black:  #0a0a0a;

  --border:   #0a0a0a;
  --border-line: 2px solid var(--border);

  --display: 'Inter', 'Helvetica Neue', system-ui, -apple-system, sans-serif;
  --text:    'Inter', 'Helvetica Neue', 'Pretendard', system-ui, sans-serif;
  --korean:  'Pretendard', system-ui, sans-serif;
  --mono:    'Space Mono', ui-monospace, monospace;

  --gap: 0;        /* mondrian = no gap, just border lines */
  --rail: 60px;

  --z-cursor: 50;
  --z-rail:   80;
  --z-overlay: 100;
  --z-banner: 120;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-base);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-left: var(--rail);    /* room for left vertical rail */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, select, textarea {
  font: inherit; color: var(--ink);
  background: var(--bg-paper);
  border: var(--border-line);
  border-radius: 0;
  padding: 12px 14px;
  font-size: 16px;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--yellow);
  outline-offset: -2px;
}

/* ── Demo banner ──────────────────────────────────── */
.demo-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-banner);
  background: var(--ink); color: var(--bg-paper);
  font-family: var(--mono); font-size: 12px;
  padding: 8px 16px; text-align: center; letter-spacing: 0.04em;
}
.demo-banner a { color: var(--yellow); text-decoration: underline; font-weight: 700; }
body.has-banner { padding-top: 32px; }

/* ── Side Vertical Rail Nav ───────────────────────── */
.rail {
  position: fixed; top: 0; bottom: 0; left: 0;
  width: var(--rail); z-index: var(--z-rail);
  background: var(--yellow);
  border-right: var(--border-line);
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 0;
}
body.has-banner .rail { top: 32px; }
.rail-brand {
  writing-mode: vertical-rl;
  font-family: var(--display); font-weight: 800;
  font-size: 13px; letter-spacing: 0.32em;
  color: var(--ink); margin-top: 12px;
  text-transform: uppercase;
}
.rail-links {
  margin-top: auto; margin-bottom: auto;
  display: flex; flex-direction: column; gap: 24px;
  align-items: center;
}
.rail-link {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--mono); font-size: 11px;
  color: var(--ink); letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 700;
  padding: 6px 0;
  transition: color .2s;
}
.rail-link:hover { color: var(--red); }
.rail-cta {
  writing-mode: vertical-rl;
  background: var(--red); color: var(--bg-paper);
  font-family: var(--display); font-weight: 800;
  font-size: 12px; letter-spacing: 0.16em;
  padding: 14px 8px;
  margin-bottom: 16px;
  border: var(--border-line);
}
.rail-cta:hover { background: var(--ink); }
.rail-burger {
  display: none;
  width: 40px; height: 40px; border: var(--border-line);
  align-items: center; justify-content: center;
  font-size: 18px; color: var(--ink);
}

/* ── Mondrian section base ────────────────────────── */
.section {
  position: relative;
  padding: 60px 40px;
  border-top: var(--border-line);
}
.section:first-of-type { border-top: 0; }
.container {
  max-width: 1280px; margin: 0 auto;
}
.sec-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 12px;
  color: var(--ink); letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: var(--border-line);
}
.sec-title {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -0.04em; line-height: 0.95;
  margin-bottom: 16px;
}
.sec-sub {
  font-size: clamp(15px, 1.4vw, 18px); color: var(--ink-soft);
  max-width: 720px; line-height: 1.55;
  margin-bottom: 40px;
}

/* ── Hero — Mondrian 4-cell ───────────────────────── */
#hero { padding: 0; min-height: 100vh; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 2fr 1fr;
  min-height: 100vh;
  border-bottom: var(--border-line);
}
.hero-cell {
  padding: 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  border-right: var(--border-line);
  border-bottom: var(--border-line);
  position: relative; overflow: hidden;
  transition: background .35s;
}
.hero-cell:nth-child(3) { border-right: 0; }
.hero-cell:last-child   { border-bottom: 0; }
.hero-cell.cell-red    { background: var(--red);    color: var(--bg-paper); }
.hero-cell.cell-blue   { background: var(--blue);   color: var(--bg-paper); }
.hero-cell.cell-yellow { background: var(--yellow); color: var(--ink); }
.hero-cell.cell-white  { background: var(--bg-paper); color: var(--ink); }
.hero-cell.cell-black  { background: var(--ink);    color: var(--bg-paper); }

.hero-main {
  grid-column: 1 / span 1;
  grid-row: 1 / span 2;
  border-bottom: 0;
}
.hero-number {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(120px, 16vw, 240px);
  letter-spacing: -0.05em; line-height: 0.85;
}
.hero-title {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(44px, 5.5vw, 72px);
  letter-spacing: -0.03em; line-height: 0.95;
  white-space: pre-line;
  margin-bottom: 16px;
}
.hero-sub {
  font-size: clamp(15px, 1.5vw, 18px); line-height: 1.5;
  margin-bottom: 24px;
  max-width: 480px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 14px;
  letter-spacing: 0.08em;
  padding: 14px 24px;
  border: var(--border-line); border-radius: 0;
  text-transform: uppercase;
  transition: background .2s, color .2s, transform .15s;
}
.btn-primary { background: var(--ink); color: var(--bg-paper); border-color: var(--ink); }
.btn-primary:hover { background: var(--red); border-color: var(--red); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn-ghost { background: transparent; color: currentColor; }
.btn-ghost:hover { background: var(--yellow); color: var(--ink); border-color: var(--ink); }

.hero-letter {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(80px, 10vw, 144px);
  letter-spacing: -0.04em; line-height: 0.85;
  align-self: center;
  text-align: center; width: 100%;
}
.hero-isobg {
  position: absolute; top: 24px; right: 24px;
  width: 120px; height: 120px;
  background-size: contain; background-repeat: no-repeat;
  opacity: 0.85; pointer-events: none;
}

/* ── Heritage — Isometric Timeline ────────────────── */
.heritage-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: var(--border-line); border-left: var(--border-line);
}
.heritage-cell {
  padding: 32px 24px;
  border-right: var(--border-line); border-bottom: var(--border-line);
  display: flex; flex-direction: column; gap: 16px;
  background: var(--bg-paper);
}
.heritage-img { aspect-ratio: 1; background-size: cover; background-position: center; border: var(--border-line); }
.heritage-year {
  font-family: var(--display); font-weight: 900; font-size: 36px;
  letter-spacing: -0.02em;
}
.heritage-body { font-size: 13px; color: var(--ink-soft); line-height: 1.55; }

/* ── Faculty — Geometric Mask ─────────────────────── */
.faculty-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.faculty-card {
  display: flex; flex-direction: column; gap: 12px;
  cursor: pointer; transition: transform .2s;
}
.faculty-card:hover { transform: translate(-2px, -2px); }
.faculty-portrait {
  aspect-ratio: 1; position: relative; overflow: hidden;
  border: var(--border-line);
  background-color: var(--yellow);
}
.faculty-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.faculty-portrait.mask-circle img    { clip-path: circle(50% at 50% 50%); }
.faculty-portrait.mask-triangle img  { clip-path: polygon(50% 5%, 95% 95%, 5% 95%); }
.faculty-portrait.mask-square img    { clip-path: inset(5% 5% 5% 5%); }
.faculty-name {
  font-family: var(--display); font-weight: 800; font-size: 16px;
  letter-spacing: -0.01em;
}
.faculty-role {
  font-family: var(--mono); font-size: 11px; color: var(--red);
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
}
.faculty-prev { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* ── Programs — Color Block Cards ─────────────────── */
.programs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-left: var(--border-line); border-top: var(--border-line);
}
.program-card {
  padding: 28px;
  border-right: var(--border-line); border-bottom: var(--border-line);
  display: flex; flex-direction: column; gap: 16px;
  cursor: pointer;
  transition: background .25s, color .25s;
  min-height: 360px;
}
.program-card.color-red:hover    { background: var(--red); color: var(--bg-paper); }
.program-card.color-blue:hover   { background: var(--blue); color: var(--bg-paper); }
.program-card.color-yellow:hover { background: var(--yellow); color: var(--ink); }
.program-img {
  aspect-ratio: 1; background-size: cover; background-position: center;
  border: var(--border-line);
}
.program-label {
  font-family: var(--display); font-weight: 900; font-size: 28px;
  letter-spacing: -0.02em;
}
.program-body { font-size: 14px; line-height: 1.55; }
.program-items {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto;
}
.program-item {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700;
  padding: 4px 10px;
  border: 1px solid currentColor;
}

/* ── Studio — Floor Plan Grid ─────────────────────── */
.studio-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  border-top: var(--border-line); border-left: var(--border-line);
  min-height: 480px;
}
.studio-cell {
  border-right: var(--border-line); border-bottom: var(--border-line);
  position: relative; overflow: hidden;
  background-size: cover; background-position: center;
}
.studio-cell:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.studio-cell-label {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  background: var(--ink); color: var(--bg-paper);
  font-family: var(--mono); font-size: 11px;
  padding: 6px 10px;
  letter-spacing: 0.04em;
}

/* ── Process — Diagram with Shape ─────────────────── */
.process-row {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: var(--border-line); border-left: var(--border-line);
}
.process-cell {
  padding: 24px;
  border-right: var(--border-line); border-bottom: var(--border-line);
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 220px;
}
.process-cell::before {
  content: ''; position: absolute; top: 16px; right: 16px;
  width: 18px; height: 18px;
}
.process-cell:nth-child(6n+1)::before { background: var(--red); }
.process-cell:nth-child(6n+2)::before { background: var(--blue); border-radius: 50%; }
.process-cell:nth-child(6n+3)::before { background: var(--yellow); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.process-cell:nth-child(6n+4)::before { background: var(--ink); }
.process-cell:nth-child(6n+5)::before { background: var(--red); border-radius: 50%; }
.process-cell:nth-child(6n+6)::before { background: var(--blue); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.process-num {
  font-family: var(--display); font-weight: 900; font-size: 36px;
  letter-spacing: -0.02em;
}
.process-name {
  font-family: var(--display); font-weight: 800; font-size: 16px;
  letter-spacing: 0.04em;
}
.process-body { font-size: 12px; color: var(--ink-soft); line-height: 1.5; }

/* ── Projects ─────────────────────────────────────── */
.projects-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: var(--border-line); border-left: var(--border-line);
}
.project-cell {
  border-right: var(--border-line); border-bottom: var(--border-line);
  display: flex; flex-direction: column;
}
.project-img {
  aspect-ratio: 1; background-size: cover; background-position: center;
  border-bottom: var(--border-line);
}
.project-info { padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; }
.project-name {
  font-family: var(--display); font-weight: 800; font-size: 15px;
  letter-spacing: -0.01em;
}
.project-track {
  font-family: var(--mono); font-size: 10px; color: var(--red);
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
}
.project-student { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); }

/* ── Alumni ───────────────────────────────────────── */
.alumni-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.alumni-card {
  display: flex; flex-direction: column;
  border: var(--border-line); background: var(--bg-paper);
  cursor: pointer; transition: background .2s, transform .2s;
}
.alumni-card:hover {
  background: var(--yellow);
  transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink);
}
.alumni-img { aspect-ratio: 4/5; background-size: cover; background-position: center; border-bottom: var(--border-line); }
.alumni-info { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.alumni-name { font-family: var(--display); font-weight: 800; font-size: 13px; }
.alumni-role { font-family: var(--mono); font-size: 10px; color: var(--ink-soft); letter-spacing: 0.04em; }
.alumni-firm { font-family: var(--mono); font-size: 10px; color: var(--red); font-weight: 700; }

/* ── Press ────────────────────────────────────────── */
.press-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.press-card {
  display: grid; grid-template-columns: 1fr 2fr;
  border: var(--border-line); background: var(--bg-paper);
}
.press-img { background-size: cover; background-position: center; border-right: var(--border-line); }
.press-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.press-source {
  font-family: var(--display); font-weight: 800; font-size: 14px;
  color: var(--red); letter-spacing: 0.06em; text-transform: uppercase;
}
.press-quote { font-family: var(--text); font-style: italic; font-size: 15px; color: var(--ink); line-height: 1.55; }

/* ── CTA — Color block form ───────────────────────── */
.cta-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border: var(--border-line);
}
.cta-pane {
  padding: 36px;
  border-right: var(--border-line);
  background: var(--bg-paper);
}
.cta-pane:last-child { border-right: 0; background: var(--yellow); }
.cta-headline {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.03em; line-height: 0.95; margin-bottom: 24px;
}
.cta-form { display: flex; flex-direction: column; gap: 14px; }
.cta-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-label {
  display: block;
  font-family: var(--mono); font-size: 11px; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 6px; font-weight: 700;
}
.cta-submit {
  width: 100%; padding: 16px;
  background: var(--ink); color: var(--bg-paper);
  font-family: var(--display); font-weight: 800; font-size: 15px;
  border: var(--border-line);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background .2s, transform .15s;
}
.cta-submit:hover { background: var(--red); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }

.cta-info { display: flex; flex-direction: column; gap: 16px; }
.cta-shape {
  width: 80px; height: 80px; background: var(--red);
}
.cta-list { font-family: var(--mono); font-size: 13px; color: var(--ink); line-height: 1.7; }
.cta-list-item { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--ink); }
.cta-list-item::before { content: '◼'; color: var(--ink); }

/* ── Footer ───────────────────────────────────────── */
.footer {
  margin-top: 0;
  padding: 32px 40px;
  background: var(--ink); color: var(--bg-paper);
  border-top: var(--border-line);
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px;
  align-items: start;
}
.footer-brand {
  font-family: var(--display); font-weight: 900;
  font-size: 28px; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 12px;
}
.footer-brand .red-square {
  width: 16px; height: 16px; background: var(--red);
}
.footer-manifesto {
  font-family: var(--mono); font-size: 11px;
  color: var(--yellow); letter-spacing: 0.16em;
  text-transform: uppercase; margin-top: 12px;
}
.footer h4 {
  font-family: var(--mono); font-size: 11px;
  color: var(--yellow); letter-spacing: 0.12em;
  margin-bottom: 12px; text-transform: uppercase;
}
.footer-list { display: flex; flex-direction: column; gap: 6px; }
.footer-list a, .footer-list span {
  font-family: var(--mono); font-size: 12px;
  color: var(--bg-paper); transition: color .2s;
}
.footer-list a:hover { color: var(--red); }
.footer-meta {
  max-width: 1280px; margin: 24px auto 0;
  border-top: 1px solid var(--bg-paper);
  padding-top: 16px;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px;
  color: var(--bg-paper); letter-spacing: 0.06em;
}

/* ── Cursor mondrian draw (sig #1) ────────────────── */
.cursor-canvas {
  position: fixed; inset: 0; pointer-events: none; z-index: var(--z-cursor);
}
@media (pointer: coarse) { .cursor-canvas { display: none; } }

/* ── Click flash (sig #5) ──────────────────────────── */
.flash {
  position: fixed; pointer-events: none; z-index: var(--z-cursor);
  width: 60px; height: 60px;
  margin-left: -30px; margin-top: -30px;
  border-radius: 50%;
  opacity: 0;
  animation: flashOut .5s ease-out;
}
@keyframes flashOut {
  0%   { opacity: 0.7; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(2.5); }
}

/* ── Reveal ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s, transform .8s; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── Drawer (mobile) ──────────────────────────────── */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(360px, 88vw);
  background: var(--bg-paper);
  border-left: var(--border-line);
  z-index: var(--z-overlay);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  padding: 80px 24px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.drawer.open { transform: translateX(0); }
.drawer a {
  font-family: var(--display); font-weight: 800; font-size: 24px;
  padding: 12px 0; border-bottom: var(--border-line);
}
.drawer-back {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: calc(var(--z-overlay) - 1); opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.drawer-back.show { opacity: 1; pointer-events: auto; }

/* PC nav user + Drawer X (T6 Mondrian color blocks) */
.rail-user { display: flex; flex-direction: column; gap: 0; margin-top: 14px; padding-top: 14px; border-top: 3px solid var(--ink, #111); }
.rail-user-link { font-family: var(--display); font-size: 11px; color: var(--ink, #111); padding: 8px 4px; letter-spacing: 0.12em; text-align: center; font-weight: 700; }
.rail-user-cta { background: var(--mondrian-yellow, #ffce00); margin-top: 4px; }
.rail-user-cta:hover { background: var(--mondrian-blue, #0046ff); color: #fff !important; }
.drawer-close {
  position: absolute; top: 60px; right: 24px;
  width: 56px; height: 56px;
  background: var(--mondrian-red, #d12030);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 32px; font-weight: 700;
  color: #fff; line-height: 1; cursor: pointer;
  border: 3px solid var(--ink, #111);
  transition: transform .2s, background .2s; z-index: 2;
}
body.has-banner .drawer-close { top: 80px; }
.drawer-close:hover { background: var(--mondrian-blue, #0046ff); transform: rotate(90deg); }
.drawer-divider { width: 60%; height: 3px; background: var(--ink, #111); margin: 16px auto; }
.drawer-user-link { background: var(--mondrian-yellow, #ffce00); color: var(--ink, #111) !important; padding: 14px 0 !important; text-align: center; font-weight: 700 !important; letter-spacing: 0.1em; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 1.5fr 1fr 1fr; }
  .hero-main { grid-column: 1 / span 2; grid-row: 1; border-bottom: var(--border-line); }
  .heritage-grid, .programs-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .alumni-grid { grid-template-columns: repeat(3, 1fr); }
  .process-row { grid-template-columns: repeat(2, 1fr); }
  .studio-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .studio-cell:nth-child(1) { grid-column: 1; grid-row: auto; }
  .studio-cell { aspect-ratio: 16/9; }
  .press-grid, .cta-grid { grid-template-columns: 1fr; }
  .press-card { grid-template-columns: 1fr; }
  .press-img { aspect-ratio: 16/9; border-right: 0; border-bottom: var(--border-line); }
}
@media (max-width: 768px) {
  body { padding-left: 0; padding-top: 56px; }
  body.has-banner { padding-top: 88px; }
  .rail {
    bottom: auto; right: 0; width: auto; height: 56px;
    flex-direction: row; padding: 0 16px;
    border-right: 0; border-bottom: var(--border-line);
  }
  .rail-brand { writing-mode: horizontal-tb; margin-top: 0; font-size: 14px; }
  .rail-links { flex-direction: row; margin: 0 0 0 auto; gap: 12px; }
  .rail-link { display: none; }
  .rail-cta { writing-mode: horizontal-tb; padding: 8px 14px; margin-bottom: 0; font-size: 11px; }
  .rail-burger { display: inline-flex; }
  .section { padding: 40px 20px; }
  .hero-grid { min-height: 80vh; }
  .heritage-grid, .programs-grid, .faculty-grid, .alumni-grid, .projects-grid, .process-row { grid-template-columns: 1fr; }
  .footer { padding: 32px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-meta { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .hero-number { font-size: 96px; }
  .hero-title  { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .cursor-canvas, .flash { display: none !important; }
}


/* ===========================================
   RETROFIT v1.27 — motionsites integration
   slug: bauhaus-grid
   effects: O, W
   =========================================== */
/* === retrofit v1.27 motionsites mask-reveal (MIT) === */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section h2, .section h3, [class*="-section"] h2, [class*="-section"] h3, h2[class*="-title"] {
      -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 100%);
      mask-image: linear-gradient(180deg, #000 0%, #000 100%);
      -webkit-mask-size: 200% 100%; mask-size: 200% 100%;
      -webkit-mask-position: 200% 0; mask-position: 200% 0;
      animation: rt-mask-sweep linear forwards;
      animation-timeline: view();
      animation-range: entry 10% entry 70%;
    }
    @keyframes rt-mask-sweep { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
  }
}/* === retrofit v1.27 motionsites card-stack-3d (MIT) === */
@media (prefers-reduced-motion: no-preference) and (min-width: 769px) {
  .card, [class*="-card"], article {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
    transform-style: preserve-3d;
  }
  .card:hover, [class*="-card"]:hover, article:hover {
    transform: translate3d(0, -6px, 0) rotateX(2deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  }
}