/* Brand colours taken from the academy's poster: yellow, red and navy. (Variable names kept from the first draft.) */
:root { --maroon: #b73a2e; --maroon-dark: #1a2238; --saffron: #f2c44e; --cream: #fbf6ee; --sand: #f3e8d8; --ink: #251b1e; --muted: #6b5f63; --line: #e6dcd0; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--cream); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.15; margin: 0 0 .6rem; color: var(--maroon-dark); }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); } h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); }
.hide { display: none !important; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }

.bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 5vw; background: rgba(251,246,238,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: Georgia, serif; font-weight: 700; font-size: 1.2rem; color: var(--maroon-dark); }
nav { display: flex; gap: 6px; align-items: center; }
nav a { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 8px; font-weight: 500; }
nav a:hover { background: var(--sand); }
nav a.cta { background: var(--maroon); color: #fff; } nav a.cta:hover { background: var(--maroon-dark); }
.menu { display: none; background: var(--maroon); color: #fff; border: 0; border-radius: 8px; padding: 8px 14px; font: inherit; cursor: pointer; }

.btn { display: inline-block; background: var(--maroon); color: #fff; padding: 12px 24px; border-radius: 999px; text-decoration: none; font-weight: 600; border: 2px solid var(--maroon); cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn:hover { background: var(--maroon-dark); border-color: var(--maroon-dark); }
.btn.ghost { background: transparent; color: var(--maroon); }
.btn.ghost:hover { background: var(--sand); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }

.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 3vw; align-items: center; padding: 6vw 5vw 3vw; max-width: 1280px; margin: 0 auto; }
.hero-img img { border-radius: 24px; box-shadow: 0 20px 50px rgba(26,34,56,.3); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: #a8650a; margin: 0 0 .6rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36ch; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.4rem; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 1100px; margin: 2rem auto 0; padding: 0 5vw; }
.facts div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-align: center; display: grid; }
.facts strong { font-family: Georgia, serif; font-size: 1.6rem; color: var(--maroon); }
.facts span { color: var(--muted); font-size: .9rem; }

.section { padding: 5rem 5vw; max-width: 1280px; margin: 0 auto; }
.section.alt { max-width: none; background: var(--sand); }
.section.alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.sub { color: var(--muted); margin-top: 0; max-width: 60ch; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 1.6rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; border-top: 5px solid var(--c, var(--maroon)); }
.card h3 { margin-bottom: .3rem; } .card p { margin: 0; color: var(--muted); font-size: .96rem; }
.card .dot { width: 44px; height: 44px; border-radius: 50%; background: var(--c, var(--maroon)); color: #fff; display: grid; place-items: center; font-family: Georgia, serif; font-weight: 700; margin-bottom: 10px; }

.founder { display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: start; }
.founder-mark { width: 160px; height: 160px; border-radius: 50%; background: var(--maroon); color: var(--saffron); display: grid; place-items: center; font: 700 3rem Georgia, serif; border: 6px solid var(--saffron); }
.role { font-size: 1.15rem; color: var(--muted); margin-top: -.3rem; }
.creds { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 8px; }
.creds li { background: #fff; border-left: 4px solid var(--saffron); border-radius: 8px; padding: 8px 14px; font-weight: 500; }

.cofounder { display: inline-flex; gap: 12px; align-items: baseline; margin-top: 1rem; padding: 10px 18px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.cofounder span { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: #a8650a; }
.cofounder strong { font-family: Georgia, serif; color: var(--maroon-dark); font-size: 1.1rem; }
.teachers { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 1.4rem; }
.teacher { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; text-align: center; }
.teacher h3 { margin: .8rem 0 .2rem; } .teacher p { margin: 0; color: var(--muted); }
.teacher-mark { width: 96px; height: 96px; margin: 0 auto; border-radius: 50%; background: var(--maroon-dark); color: var(--saffron); display: grid; place-items: center; font: 700 1.8rem Georgia, serif; border: 4px solid var(--saffron); }
.teacher-photo { width: 96px; height: 96px; margin: 0 auto; border-radius: 50%; object-fit: cover; border: 4px solid var(--saffron); }
.gallery { columns: 3 260px; column-gap: 14px; margin-top: 1.6rem; }
.gallery button { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: none; cursor: zoom-in; break-inside: avoid; border-radius: 14px; overflow: hidden; }
.gallery img { width: 100%; transition: transform .3s; } .gallery button:hover img { transform: scale(1.03); }
dialog#lb { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
dialog#lb::backdrop { background: rgba(20,10,14,.85); }
#lb-img { max-width: 96vw; max-height: 92vh; border-radius: 10px; margin: auto; }
#lb-x { position: absolute; right: 6px; top: -44px; background: #fff; border: 0; border-radius: 50%; width: 38px; height: 38px; font-size: 1.5rem; cursor: pointer; }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 10px; }
.info li { display: flex; gap: 14px; } .info span { min-width: 80px; font-weight: 700; color: var(--muted); }
form { background: #fff; padding: 22px; border-radius: 18px; border: 1px solid var(--line); }
.field { margin-bottom: 14px; } label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
input, select, textarea { width: 100%; padding: 11px 13px; border: 1px solid #cfc3b5; border-radius: 10px; font: inherit; background: #fff; }
.trap { position: absolute; left: -9999px; }
.err, .ok { padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; }
.err { background: #fdecea; color: #a1221b; } .ok { background: #dff3e8; color: #1c6b44; }
footer { text-align: center; padding: 2rem 5vw 3rem; color: var(--muted); font-size: .92rem; }
footer p { margin: .2rem 0; }

@media (max-width: 860px) {
  .hero, .contact, .founder { grid-template-columns: 1fr; }
  .founder-mark { width: 110px; height: 110px; font-size: 2.2rem; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 3.2rem 5vw; }
  .menu { display: block; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--cream); padding: 10px 5vw 16px; border-bottom: 1px solid var(--line); }
  nav.open { display: flex; }
  nav a { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .gallery img { transition: none; } }
.founder-photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 6px solid var(--saffron); }
.teacher-photo { object-position: center top; }
.exp { list-style: none; padding: 0; margin: .6rem 0 0; font-size: .9rem; color: var(--muted); text-align: left; }
.exp li { padding: 3px 0 3px 14px; position: relative; } .exp li::before { content: ""; position: absolute; left: 0; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--saffron); }
@media (max-width: 860px) { .founder-photo { width: 110px; height: 110px; } }
