:root {
  --ink: #0f1c2e;        /* deep navy */
  --ink-soft: #3d4f66;   /* slate */
  --muted: #7a8aa0;
  --bg: #f4f7fa;         /* cool off-white */
  --surface: #ffffff;
  --line: #dbe3ec;
  --accent: #2f6f8f;     /* steel teal-blue */
  --accent-soft: #e3eef4;
  --ice: #a9c7d8;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem clamp(1.25rem, 5vw, 4rem);
  background: rgba(244, 247, 250, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-name { font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.01em; }
.nav nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); }
.nav nav a { font-size: 0.85rem; color: var(--ink-soft); letter-spacing: 0.04em; transition: color .2s; }
.nav nav a:hover { color: var(--accent); }

main { max-width: 1120px; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 4rem); }

/* HERO */
.hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 6vw, 5rem);
  align-items: center; min-height: min(82vh, 760px); padding: 4rem 0;
}
.eyebrow {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent); font-weight: 500; margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem); line-height: 1.05; letter-spacing: -0.01em;
}
.hero h1 em { color: var(--accent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-name {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.6rem, 8.5vw, 6.75rem); line-height: 0.95; letter-spacing: -0.02em;
  color: var(--ink);
}
.school { margin: 1.4rem 0 2.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }
.school-badge {
  display: inline-block; padding: 0.5rem 0.95rem; background: var(--ink); color: #fff;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  border-left: 4px solid var(--ice);
}
.school-programs {
  font-size: 1.05rem; font-weight: 500; color: var(--accent); letter-spacing: 0.02em;
}
.school-programs i { font-style: normal; color: var(--ice); margin: 0 0.35rem; }
.hero-quote { border-left: 2px solid var(--ice); padding-left: 1.5rem; }
.hero-quote p {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.4rem, 2.3vw, 1.9rem); line-height: 1.25; color: var(--ink-soft);
}
.hero-quote em { color: var(--accent); }
.hero-quote cite {
  display: block; margin-top: 1.1rem; font-style: normal; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); font-weight: 500;
}
.lede { margin-top: 1.75rem; font-size: 1.05rem; color: var(--ink-soft); font-weight: 300; line-height: 1.6; }
.hero-links { margin-top: 2.25rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 0.8rem 1.5rem; font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.03em; background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink); border-radius: 2px; transition: all .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: transparent; color: var(--accent); }

.hero-photo { position: relative; }
.hero-photo::before {
  content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  background: linear-gradient(160deg, var(--ice), var(--accent-soft));
  z-index: 0;
}
.hero-photo img {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  object-position: center 30%; filter: saturate(0.85);
}

/* SECTIONS */
.section { padding: clamp(4rem, 10vw, 7rem) 0; border-top: 1px solid var(--line); }
.section-label {
  font-family: var(--sans); font-size: 0.75rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--muted); margin-bottom: 2.5rem;
}

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.about-lead { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.25; margin-bottom: 1.5rem; }
.about-body p:not(.about-lead) { color: var(--ink-soft); margin-bottom: 1.1rem; max-width: 62ch; font-weight: 300; font-size: 1.02rem; }
.about-meta { display: grid; gap: 1.75rem; padding-left: 2rem; border-left: 1px solid var(--line); }
.about-meta h3 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent); font-weight: 600; margin-bottom: 0.5rem; }
.about-meta p { font-size: 0.92rem; margin-bottom: 0.6rem; line-height: 1.45; }
.about-meta span { color: var(--muted); }
.about-meta .tags { color: var(--ink-soft); }

/* FOLDERS */
.folder-tabs { display: flex; gap: 0.35rem; }
.folder-tab {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans); font-size: 0.9rem; font-weight: 500; color: var(--ink-soft);
  background: var(--accent-soft); border: 1px solid var(--line); border-bottom: none;
  padding: 0.8rem 1.4rem; border-radius: 8px 8px 0 0; cursor: pointer; transition: all .2s;
}
.folder-tab:hover { color: var(--ink); }
.folder-tab.active { background: var(--surface); color: var(--ink); position: relative; top: 1px; }
.folder-icon {
  width: 16px; height: 12px; background: var(--ice); border-radius: 1px 3px 3px 3px; position: relative;
}
.folder-icon::before {
  content: ""; position: absolute; top: -3px; left: 0; width: 7px; height: 4px;
  background: var(--ice); border-radius: 2px 2px 0 0;
}
.folder-tab.active .folder-icon, .folder-tab.active .folder-icon::before { background: var(--accent); }

.folder-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 0 8px 8px 8px; padding: clamp(1.25rem, 3vw, 2.25rem);
}
.folder-panel[hidden] { display: none; }
.folder-panel.active { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.card {
  display: flex; flex-direction: column; padding: 1.75rem; background: var(--bg);
  border: 1px solid var(--line); border-radius: 4px; transition: all .25s;
}
a.card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 12px 30px -18px rgba(15, 28, 46, .35); }
.card-type { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); font-weight: 500; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.15; margin: 0.4rem 0 0.75rem; }
.card p { font-size: 0.92rem; color: var(--ink-soft); font-weight: 300; flex: 1; }
.card-cta { margin-top: 1.25rem; font-size: 0.82rem; font-weight: 500; color: var(--ink); }
a.card:hover .card-cta { color: var(--accent); }

.card-film { padding: 0 0 1.5rem; overflow: hidden; }
.card-film > :not(.video-frame):not(video) { padding: 0 1.5rem; }
.card-film .card-type { margin-top: 1.25rem; }
.video-frame {
  aspect-ratio: 16 / 9; display: grid; place-items: center;
  background: linear-gradient(135deg, #1b2c42, var(--accent));
  color: rgba(255,255,255,.75); font-size: 1.4rem;
}
.card-film video { width: 100%; aspect-ratio: 16 / 9; display: block; background: var(--ink); object-fit: cover; }
.video-frame iframe, .card-film iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }

/* CONTACT */
.contact-line { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; max-width: 22ch; }
.contact-links { margin-top: 2rem; display: flex; gap: 2rem; flex-wrap: wrap; }
.contact-links a {
  font-size: 1rem; padding-bottom: 0.25rem; border-bottom: 1px solid var(--ice); transition: all .2s;
}
.contact-links a:hover { color: var(--accent); border-color: var(--accent); }

.footer {
  text-align: center; padding: 2.5rem; font-size: 0.78rem; color: var(--muted);
  border-top: 1px solid var(--line);
}

/* RESPONSIVE */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 3rem; }
  .hero-photo { max-width: 340px; order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .about-meta { padding-left: 0; border-left: none; border-top: 1px solid var(--line); padding-top: 2rem; grid-template-columns: 1fr 1fr; }
  .folder-tab { padding: 0.7rem 1rem; font-size: 0.82rem; }
}
@media (max-width: 480px) {
  .nav nav a:nth-child(3) { display: none; }
  .about-meta { grid-template-columns: 1fr; }
}

/* Writing cards are buttons */
button.card { font: inherit; color: inherit; text-align: left; cursor: pointer; }
button.card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 12px 30px -18px rgba(15, 28, 46, .35); }
button.card:hover .card-cta { color: var(--accent); }
button.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* SCRIPT VIEWER */
.viewer {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column;
  background: rgba(15, 28, 46, 0.94); backdrop-filter: blur(6px);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.viewer[hidden] { display: none; }
.viewer-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem clamp(1rem, 4vw, 2.5rem); border-bottom: 1px solid rgba(169, 199, 216, 0.2); color: #fff;
}
.viewer-kicker { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ice); }
.viewer-bar h2 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.viewer-close {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid rgba(169, 199, 216, 0.4);
  background: transparent; color: #fff; font-size: 1rem; cursor: pointer; transition: all .2s;
}
.viewer-close:hover { background: var(--accent); border-color: var(--accent); }
.viewer-pages { flex: 1; overflow-y: auto; padding: 2rem 1rem; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.viewer-page { position: relative; flex-shrink: 0; width: min(100%, 760px); aspect-ratio: 8.5 / 11; background: #fff; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
.viewer-page img { width: 100%; height: 100%; display: block; pointer-events: none; }
.viewer-page .shield { position: absolute; inset: 0; }
.viewer-note { text-align: center; font-size: 0.75rem; color: var(--ice); padding: 0.75rem 1rem 1rem; }
@media print { .viewer { display: none !important; } }
