:root {
  color-scheme: light;
  --ink: #161311;
  --muted: #615b54;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --surface-strong: #f0ede5;
  --line: #d9d2c7;
  --coral: #c84632;
  --teal: #0b756c;
  --gold: #b57a26;
  --charcoal: #24211f;
  --shadow: 0 18px 50px rgba(30, 25, 19, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img,
video,
iframe,
object {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(247, 245, 239, 0.92);
  border-bottom: 1px solid rgba(36, 33, 31, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--ink);
  border: 2px solid var(--coral);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}

.nav-guide {
  position: absolute;
  top: calc(100% + 10px);
  right: clamp(20px, 4vw, 56px);
  z-index: 30;
  max-width: min(310px, calc(100vw - 40px));
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff7dc;
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(22, 19, 17, 0.18);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.2;
  pointer-events: none;
}

.nav-guide::before {
  content: "";
  position: absolute;
  top: -18px;
  right: 34px;
  width: 36px;
  height: 22px;
  border-top: 4px solid var(--coral);
  border-right: 4px solid var(--coral);
  transform: skewY(-24deg);
}

.nav-guide-mobile {
  display: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--charcoal);
}

.home-hero {
  min-height: clamp(540px, calc(100svh - 140px), 720px);
  display: grid;
  align-items: end;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 19, 17, 0.92) 0%, rgba(22, 19, 17, 0.76) 42%, rgba(22, 19, 17, 0.28) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 140px);
}

.hero-content,
.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.82fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: end;
}

.hero-intro {
  min-width: 0;
}

.hero-video {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(22, 19, 17, 0.78);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

.hero-video-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-video-copy .eyebrow {
  margin: 0;
}

.hero-video-copy h2 {
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.2;
}

.hero-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
}

.scroll-guide,
.page-scroll-guide {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(22, 19, 17, 0.72);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.scroll-guide {
  grid-column: 1 / -1;
}

.page-scroll-guide {
  margin-top: 18px;
}

.scroll-arrow {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-right: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  transform: rotate(45deg);
}

.eyebrow {
  margin: 0 0 14px;
  color: #f6d38c;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--teal);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
}

h1 {
  max-width: 780px;
  font-size: clamp(3rem, 10vw, 7rem);
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  font-size: clamp(2rem, 5vw, 4.1rem);
  letter-spacing: 0;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  letter-spacing: 0;
}

.hero-copy,
.page-hero p,
.section-heading p,
.split p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.home-hero .hero-copy {
  margin: 24px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--coral);
  color: #fff;
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.62);
  color: #fff;
}

.button.ghost.light {
  border-color: rgba(255, 255, 255, 0.72);
}

.button.dark {
  background: var(--ink);
  color: #fff;
}

.intro-band,
.quick-links,
.teacher-guide,
.projects-section,
.resume-section {
  padding: clamp(46px, 8vw, 94px) 0;
}

.teacher-guide {
  background: #fff7dc;
  border-bottom: 1px solid var(--line);
}

.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(360px, 1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
}

.guide-intro h2 {
  font-size: clamp(1.9rem, 4vw, 3.4rem);
}

.guide-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}

.guide-steps li {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 18px 54px 18px 66px;
  border: 1px solid #d2b05e;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(30, 25, 19, 0.1);
}

.guide-steps li::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-weight: 900;
}

.guide-steps li::after {
  content: "";
  position: absolute;
  top: 38px;
  right: 18px;
  width: 24px;
  height: 24px;
  border-top: 5px solid var(--teal);
  border-right: 5px solid var(--teal);
  transform: rotate(45deg);
}

.guide-steps strong {
  font-size: 1.05rem;
}

.guide-steps span {
  color: var(--muted);
  font-weight: 700;
}

.intro-band {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.split p,
.section-heading p {
  color: var(--muted);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.topic-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.topic-card:nth-child(1) {
  border-top: 5px solid var(--coral);
}

.topic-card:nth-child(2) {
  border-top: 5px solid var(--gold);
}

.topic-card:nth-child(3) {
  border-top: 5px solid var(--teal);
}

.topic-card strong {
  display: block;
  margin: auto 0 10px;
  font-size: 1.45rem;
  line-height: 1.15;
}

.topic-card span:last-child {
  color: var(--muted);
}

.topic-kicker {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 32px;
}

.section-heading.compact {
  margin-bottom: 24px;
}

.project-guide {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: -6px 0 24px;
  padding: 18px 20px;
  border: 2px solid var(--teal);
  border-radius: 8px;
  background: #eef8f6;
  color: var(--ink);
}

.project-guide strong,
.project-guide span {
  display: block;
}

.project-guide strong {
  font-size: 1.15rem;
  line-height: 1.2;
}

.project-guide span:not(.guide-pointer) {
  color: var(--muted);
  font-weight: 700;
}

.guide-pointer {
  position: relative;
  width: 46px;
  height: 22px;
}

.guide-pointer::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 40px;
  border-top: 5px solid var(--coral);
}

.guide-pointer::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 0;
  width: 16px;
  height: 16px;
  border-top: 5px solid var(--coral);
  border-right: 5px solid var(--coral);
  transform: rotate(45deg);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-media {
  position: relative;
  background: #111;
}

.project-media iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #111;
}

.project-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #efe6d8;
  color: #533f25;
  font-size: 0.78rem;
  font-weight: 900;
}

.project-card p {
  margin: 0;
  color: var(--muted);
}

.project-actions {
  margin-top: auto;
}

.drive-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--teal);
  font-weight: 900;
  text-decoration: none;
}

.drive-link:hover {
  color: var(--coral);
}

.page-hero {
  padding: clamp(86px, 12vw, 150px) 0;
}

.page-hero .section-inner {
  position: relative;
  z-index: 1;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 19, 17, 0.92), rgba(22, 19, 17, 0.62)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.11) 0 1px, transparent 1px 118px);
}

.narrative-hero {
  background: var(--coral);
}

.rhythm-hero {
  background: var(--gold);
}

.format-hero {
  background: var(--teal);
}

.resume-hero {
  background: var(--charcoal);
}

.resume-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(360px, 1fr);
  gap: 30px;
  align-items: start;
}

.resume-copy {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.resume-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.resume-list li {
  padding-left: 16px;
  border-left: 4px solid var(--gold);
  color: var(--muted);
}

.resume-viewer {
  overflow: hidden;
  min-height: 760px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.resume-viewer object {
  width: 100%;
  min-height: 760px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(20px, 4vw, 56px);
  background: var(--ink);
  color: #fff;
}

.site-footer div {
  display: grid;
  gap: 2px;
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid rgba(246, 211, 140, 0.4);
  border-radius: 6px;
  color: #f6d38c;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    inset: 72px 0 auto;
    display: none;
    padding: 16px 20px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav {
    display: grid;
  }

  .site-nav a {
    padding: 14px 12px;
  }

  .nav-guide {
    top: calc(100% + 8px);
    right: 14px;
    max-width: 190px;
    padding: 9px 12px;
    font-size: 0.78rem;
  }

  .nav-guide::before {
    right: 18px;
    width: 28px;
    height: 18px;
  }

  .nav-guide-desktop {
    display: none;
  }

  .nav-guide-mobile {
    display: inline;
  }

  .brand span:last-child {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-hero {
    min-height: auto;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(22, 19, 17, 0.95) 0%, rgba(22, 19, 17, 0.65) 100%);
  }

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

  .split,
  .topic-grid,
  .guide-grid,
  .project-grid,
  .resume-layout {
    grid-template-columns: 1fr;
  }

  .guide-steps li {
    min-height: auto;
  }

  .topic-card {
    min-height: 190px;
  }

  .resume-viewer,
  .resume-viewer object {
    min-height: 620px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header {
    min-height: 66px;
    padding-inline: 16px;
  }

  .site-nav {
    inset-block-start: 66px;
  }

  .hero-content,
  .section-inner {
    width: min(100% - 28px, 1120px);
  }

  .hero-content {
    padding: 58px 0;
  }

  .hero-video-copy {
    display: grid;
    gap: 4px;
  }

  h1 {
    font-size: clamp(2.55rem, 17vw, 4.6rem);
  }

  h2 {
    font-size: clamp(1.85rem, 12vw, 3rem);
  }

  .button {
    width: 100%;
  }

  .project-body,
  .topic-card,
  .resume-copy {
    padding: 18px;
  }

  .teacher-guide {
    padding-top: 34px;
  }

  .project-guide {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
