:root {
  --ink: #28283a;
  --muted: #666779;
  --teal: #008a96;
  --teal-dark: #006c76;
  --pink: #ff5c7c;
  --paper: #ffffff;
  --soft: #f5f7f8;
  --line: #e5e8eb;
  --max: 1160px;
  --shadow: 0 18px 50px rgba(35, 39, 54, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.section { padding: 88px 0; scroll-margin-top: 86px; }
.section-alt { background: var(--soft); }
.eyebrow { margin: 0 0 8px; color: var(--teal); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.14; margin-top: 0; }
h1 { font-size: clamp(3rem, 8vw, 6.8rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2.25rem, 5vw, 4.3rem); letter-spacing: -.04em; margin-bottom: 22px; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
.lead { max-width: 820px; color: var(--muted); font-size: 1.12rem; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0,0,0,.06); }
.nav-wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--ink); font-weight: 900; font-size: 1.35rem; letter-spacing: -.04em; }
.brand span { color: var(--teal); }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: var(--ink); font-size: .92rem; font-weight: 700; }
.site-nav a:hover { color: var(--teal); }
.nav-cta { padding: 9px 15px; border: 2px solid var(--teal); border-radius: 999px; color: var(--teal) !important; }
.nav-toggle { display: none; border: 0; background: transparent; color: var(--ink); font-size: 1.65rem; cursor: pointer; }

.hero { min-height: calc(100vh - 72px); display: grid; align-items: center; overflow: hidden; position: relative; background: linear-gradient(120deg, #fff 0%, #fff 58%, #edf7f7 58%, #edf7f7 100%); }
.hero::after { content: "X"; position: absolute; right: -3vw; bottom: -16vw; color: rgba(0,138,150,.08); font-size: min(54vw, 760px); font-weight: 900; line-height: .8; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 48px; padding: 72px 0; position: relative; z-index: 1; }
.hero h1 { margin-bottom: 22px; }
.hero h1 span { color: var(--teal); }
.hero-tagline { max-width: 720px; font-size: clamp(1.25rem, 2.3vw, 2rem); font-weight: 800; line-height: 1.25; }
.hero-copy { max-width: 680px; color: var(--muted); font-size: 1.08rem; }
.hero-art { justify-self: center; width: min(100%, 420px); padding: 34px; border-radius: 50% 42% 48% 38%; background: #fff; box-shadow: var(--shadow); transform: rotate(2deg); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--teal); color: #fff; font-weight: 800; transition: .2s ease; }
.button:hover { background: var(--teal-dark); color: #fff; transform: translateY(-1px); }
.button-secondary { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.button-secondary:hover { background: var(--ink); color: #fff; }

.cards-3, .cards-4, .cards-2 { display: grid; gap: 26px; margin-top: 44px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: 0 10px 28px rgba(35,39,54,.05); }
.card img { width: 100%; height: 190px; object-fit: contain; margin-bottom: 24px; }
.card p { color: var(--muted); }

.approach-card { border-top: 5px solid var(--teal); }
.approach-card:nth-child(2) { border-top-color: var(--pink); }
.approach-card:nth-child(3) { border-top-color: #574fb1; }
.approach-card:nth-child(4) { border-top-color: #59bca8; }
.approach-card img { height: 150px; }

.course-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: start; }
.info-panel { background: var(--ink); color: #fff; border-radius: 22px; padding: 34px; box-shadow: var(--shadow); }
.info-panel h3 { color: #fff; }
.info-panel strong { color: #80d3d6; }
.timeline { padding: 0; margin: 18px 0 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.timeline li:last-child { border-bottom: 0; }
.timeline time { color: #80d3d6; font-weight: 800; }

.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.program { border-left: 4px solid var(--teal); background: #fff; padding: 22px; border-radius: 0 14px 14px 0; }
.program h3 { margin-bottom: 9px; }
.program small { display: block; color: var(--muted); margin-top: 10px; }

.apply-box { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; background: var(--teal); color: #fff; padding: 46px; border-radius: 24px; }
.apply-box h2 { color: #fff; margin-bottom: 12px; }
.apply-box p { max-width: 760px; margin: 0; color: rgba(255,255,255,.9); }
.apply-box .button { background: #fff; color: var(--teal-dark); white-space: nowrap; }
.apply-box .button:hover { background: var(--ink); color: #fff; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.person { overflow: hidden; padding: 0; }
.person img { width: 100%; height: 310px; object-fit: cover; object-position: top; margin: 0; }
.person-copy { padding: 24px; }
.person-copy p { font-size: .95rem; }

.projects-teaser { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }

.site-footer { background: #242435; color: #fff; padding: 42px 0; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; align-items: end; }
.site-footer a { color: #86d6d9; }
.site-footer p { margin: 0; color: rgba(255,255,255,.72); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

.page-hero { padding: 100px 0 62px; background: linear-gradient(135deg, #edf7f7, #fff); }
.page-hero h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
.project-section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.project-section:last-child { border-bottom: 0; }
.project-section h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.project-card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.project-card p { color: var(--muted); }

.legal { max-width: 900px; }
.legal h2 { font-size: 2rem; margin-top: 44px; }
.legal h3 { margin-top: 28px; }
.legal li { margin-bottom: 8px; }

@media (max-width: 980px) {
  .hero-grid, .course-layout { grid-template-columns: 1fr; }
  .hero-art { width: min(70%, 420px); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-3, .program-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .apply-box, .projects-teaser { grid-template-columns: 1fr; }
  .apply-box .button { justify-self: start; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 66px 0; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; padding: 18px 20px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 28px rgba(35,39,54,.08); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 7px 0; }
  .nav-cta { text-align: center; }
  .hero { min-height: auto; }
  .hero-grid { padding: 58px 0 70px; }
  .hero-art { width: min(88%, 360px); }
  .cards-3, .cards-4, .cards-2, .program-grid, .team-grid { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .timeline li { grid-template-columns: 74px 1fr; }
  .apply-box { padding: 32px 24px; }
}
