/* Creative Middle School — site styles. Green and white lead, as on the school's Facebook cover. */
:root {
  --green: #009f4e;
  --green-600: #00863f;
  --green-700: #046b37;
  --deep: #06301f;
  --deeper: #041f14;
  --bright: #3ddf7f;
  --mint: #e8f6ee;
  --mint-2: #d3efdf;
  --ink: #0f2419;
  --muted: #55675d;
  --line: #dfe8e2;
  --paper: #ffffff;
  --cream: #f5f8f4;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 50px rgba(6, 48, 31, 0.12);
  --shadow-sm: 0 6px 20px rgba(6, 48, 31, 0.08);
  --max: 1200px;
  --head: "Poppins", system-ui, sans-serif;
  --body: "Montserrat", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--body); }
img, video { display: block; max-width: 100%; }
a { color: var(--green-700); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.015em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.tint { background: var(--cream); }
.section.deep { background: var(--deep); color: #dfeee6; }
.section.deep h2, .section.deep h3 { color: #fff; }
.eyebrow { font: 700 .82rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--green); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: currentColor; }
.deep .eyebrow { color: var(--bright); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 680px; }
.deep .lead { color: #b9d6c6; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--bright); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font: 700 1rem/1 var(--head); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .2s, background .2s, color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 24px rgba(0, 159, 78, .32); }
.btn-primary:hover { background: var(--green-600); }
.btn-light { background: #fff; color: var(--deep); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-outline { border-color: var(--green); color: var(--green-700); background: #fff; }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(6,48,31,.06); }
.topbar { background: var(--deep); color: #cfe6d9; font-size: .84rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar .tb-links { display: flex; gap: 22px; flex-wrap: wrap; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 50px; height: auto; }
.brand-name { font: 300 .74rem/1.1 var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--green-700); }
.brand-name strong { display: block; font-weight: 700; font-size: 1.12rem; letter-spacing: .01em; color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; white-space: nowrap; padding: 10px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); font: 600 .95rem/1 var(--head); }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--mint); color: var(--green-700); }
.nav-links .btn { margin-left: 10px; padding: 12px 20px; }
.nav-links .btn:hover { background: var(--green-600); color: #fff; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 26px; height: 3px; border-radius: 3px; background: var(--ink); margin: 5px 0; transition: transform .3s, opacity .3s; }

/* Hero */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--deep); }
.hero video, .hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,31,20,.92) 0%, rgba(4,31,20,.72) 38%, rgba(4,31,20,.15) 72%), linear-gradient(0deg, rgba(4,31,20,.75), rgba(4,31,20,0) 45%); }
.hero .wrap { position: relative; z-index: 2; padding: 120px 0 72px; }
.hero h1 { color: #fff; max-width: 9.5em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--bright), #a6f5c5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: #d8eadf; margin-bottom: 30px; }
.tagbar { display: inline-block; font: 700 .78rem/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; background: var(--green); color: #fff; padding: 10px 14px; border-radius: 6px; margin-bottom: 26px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; padding: 0; list-style: none; font-weight: 600; font-size: .95rem; }
.checks li { display: flex; align-items: center; gap: 9px; }
.checks svg { width: 22px; height: 22px; flex: none; }
.hero-badge { position: absolute; right: max(20px, calc((100% - var(--max)) / 2)); bottom: 72px; z-index: 2; width: 150px; text-align: center; font: 700 .8rem/1.3 var(--head); color: #fff; }
.hero-badge img { width: 120px; margin: 0 auto 10px; filter: drop-shadow(0 10px 30px rgba(0,0,0,.4)); }
.page-hero { position: relative; color: #fff; background: var(--deep); overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,31,20,.95), rgba(4,31,20,.45)); }
.page-hero .wrap { position: relative; z-index: 2; padding: clamp(80px, 12vw, 150px) 0 clamp(56px, 8vw, 90px); }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.4rem); max-width: 12em; }
.page-hero .lead { color: #cfe5d8; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-top: -56px; position: relative; z-index: 3; overflow: hidden; }
.stat { padding: 30px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 800 2.3rem/1 var(--head); color: var(--green); letter-spacing: -0.03em; margin-bottom: 8px; }
.stat span { font-size: .92rem; color: var(--muted); font-weight: 500; }

/* Grids and cards */
.grid { display: grid; gap: 26px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.split.flip > :first-child { order: 2; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--mint); color: var(--green); margin-bottom: 20px; }
.icon svg { width: 28px; height: 28px; }
.card p { color: var(--muted); margin: 0; }
.photo { border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.photo-stack { position: relative; }
.photo-stack .photo.small { position: absolute; width: 46%; right: -6%; bottom: -12%; border: 6px solid #fff; }
.photo-stack .photo.small img { aspect-ratio: 1; }
.pill { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--mint); color: var(--green-700); font: 700 .78rem/1 var(--head); letter-spacing: .02em; }

/* Feature tiles (programs) */
.tile { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; color: #fff; text-decoration: none; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(4,31,20,.92) 6%, rgba(4,31,20,.1) 62%); }
.tile:hover img { transform: scale(1.05); }
.tile div { padding: 30px; }
.tile h3 { color: #fff; font-size: 1.6rem; margin-bottom: 6px; }
.tile p { margin: 0; color: #d5e8dd; font-size: .98rem; }
.tile .pill { background: var(--green); color: #fff; margin-bottom: 14px; }

/* Video */
.video-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: #000; aspect-ratio: 16/9; }
.video-card img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s, transform .6s; }
.video-card button { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; color: #fff; display: grid; place-items: center; }
.video-card:hover img { opacity: .7; transform: scale(1.03); }
.play { width: 96px; height: 96px; border-radius: 50%; background: var(--green); display: grid; place-items: center; box-shadow: 0 0 0 14px rgba(0,159,78,.25); transition: transform .3s; }
.video-card:hover .play { transform: scale(1.08); }
.play svg { width: 34px; height: 34px; margin-left: 5px; }
.video-card .caption { position: absolute; left: 28px; bottom: 24px; text-align: left; font: 700 1.05rem/1.3 var(--head); text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.video-card .caption small { display: block; font: 500 .85rem var(--body); opacity: .85; }
dialog.player { border: 0; padding: 0; background: transparent; width: min(1200px, 94vw); }
dialog.player::backdrop { background: rgba(2, 14, 9, .88); }
dialog.player video { width: 100%; border-radius: 16px; background: #000; }
dialog.player .close { position: absolute; top: -48px; right: 0; background: none; border: 0; color: #fff; font: 600 1rem var(--head); cursor: pointer; padding: 10px; }

/* Awards */
.award-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.award { background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.award .medal { position: absolute; right: -20px; top: -20px; width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff6c4, #e6c24a 55%, #b8901e); opacity: .18; }
.award .cat { font: 700 .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.award h3 { font-size: 1.08rem; margin: 10px 0 14px; }
.award ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.award li { display: grid; gap: 2px; font-size: .94rem; }
.award li b { font-family: var(--head); font-weight: 600; }
.award li span { color: var(--muted); font-size: .86rem; }
.award .note { margin: 14px 0 0; font-size: .86rem; color: var(--green-700); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.chip { border: 1.5px solid var(--line); background: #fff; color: var(--ink); padding: 10px 18px; border-radius: 999px; font: 600 .9rem/1 var(--head); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--green); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.tally { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 40px; }
.tally div { background: var(--mint); border-radius: var(--radius); padding: 22px; }
.tally b { display: block; font: 800 2.1rem/1 var(--head); color: var(--green-700); }
.tally span { font-size: .9rem; color: var(--muted); font-weight: 600; }
.year-head { display: flex; align-items: center; gap: 16px; margin: 46px 0 22px; font: 800 1.6rem var(--head); }
.year-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Events */
.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.month { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.month.now { border: 2px solid var(--green); box-shadow: var(--shadow); }
.month.now::before { content: "This month"; position: absolute; top: -13px; left: 22px; background: var(--green); color: #fff; font: 700 .72rem/1 var(--head); letter-spacing: .06em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; }
.month h3 { font-size: 1.35rem; color: var(--green-700); }
.ev { padding: 14px 0; border-top: 1px dashed var(--line); }
.ev:first-of-type { border-top: 0; padding-top: 4px; }
.ev small { font: 700 .74rem/1 var(--mono); letter-spacing: .1em; color: var(--green); text-transform: uppercase; }
.ev b { display: block; font: 700 1.02rem/1.35 var(--head); margin: 6px 0 4px; }
.ev p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.55; }
.upcoming { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.date-card { display: flex; gap: 18px; align-items: flex-start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 22px; }
.date-card .d { flex: none; width: 72px; text-align: center; background: var(--green); border-radius: 14px; padding: 10px 6px; font: 800 1.6rem/1 var(--head); color: #fff; }
.date-card .d small { display: block; font: 700 .7rem/1.4 var(--mono); letter-spacing: .1em; }
.date-card b { display: block; color: #fff; font: 700 1.05rem/1.3 var(--head); margin-bottom: 4px; }
.date-card p { margin: 0; color: #b9d6c6; font-size: .9rem; }

/* Testimonials */
.quotes { columns: 3 300px; column-gap: 24px; }
.quote { break-inside: avoid; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 0 0 24px; }
.quote p { font-size: 1.02rem; color: var(--ink); }
.quote p::before { content: "“"; display: block; font: 800 3.4rem/0.6 var(--head); color: var(--green); margin: 10px 0 8px; }
.quote footer { font: 700 .92rem var(--head); color: var(--green-700); }
.carousel { position: relative; }
.carousel .slide { display: none; }
.carousel .slide.on { display: block; animation: fade .6s ease; }
.big-quote { font: 600 clamp(1.3rem, 2.4vw, 1.9rem)/1.45 var(--head); color: #fff; max-width: 900px; }
.big-quote::before { content: "“"; display: block; font-size: 4.4rem; line-height: .5; color: var(--bright); margin-bottom: 18px; }
.carousel cite { display: block; margin-top: 18px; font: 600 1rem var(--body); font-style: normal; color: var(--bright); }
.dots { display: flex; gap: 8px; margin-top: 30px; }
.dots button { width: 30px; height: 6px; border-radius: 6px; border: 0; background: rgba(255,255,255,.25); cursor: pointer; padding: 0; }
.dots button[aria-current="true"] { background: var(--bright); width: 44px; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Timeline */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 92px; top: 6px; bottom: 6px; width: 2px; background: var(--mint-2); }
.timeline li { display: grid; grid-template-columns: 92px 1fr; gap: 34px; padding: 0 0 34px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 86px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px var(--mint); }
.timeline .yr { font: 800 1.35rem/1.2 var(--head); color: var(--green); text-align: right; padding-right: 8px; }
.timeline h3 { font-size: 1.12rem; margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--muted); }

/* Lists */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 800 2rem/1 var(--head); color: var(--green); margin-bottom: 14px; }
.steps b { display: block; font: 700 1.05rem var(--head); margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: .92rem; }
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.values div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 14px; text-align: center; font: 600 .95rem var(--head); }
.values div b { display: block; font: 800 1.9rem/1 var(--head); color: var(--green); margin-bottom: 8px; }
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.people div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.people b { display: block; font: 700 1.05rem var(--head); }
.people span { color: var(--muted); font-size: .9rem; }
.facility-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.facility-grid figure { margin: 0; border-radius: 16px; overflow: hidden; position: relative; }
.facility-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.facility-grid figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(4,31,20,.78); color: #fff; padding: 6px 12px; border-radius: 999px; font: 600 .8rem var(--head); }
.voice { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; }
.voice img { border-radius: 22px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.voice blockquote { margin: 0; font: 600 1.25rem/1.5 var(--head); color: var(--ink); }
.voice cite { display: block; margin-top: 12px; font: 600 .95rem var(--body); font-style: normal; color: var(--green-700); }

/* Contact and forms */
.contact-card { background: var(--deep); color: #d3e8dc; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); }
.contact-card h3 { color: #fff; }
.contact-card a { color: #fff; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; overflow-wrap: anywhere; min-width: 0; }
.split > *, .grid > * { min-width: 0; }
.contact-list svg { flex: none; width: 22px; height: 22px; color: var(--bright); margin-top: 3px; }
form.inquiry { display: grid; gap: 16px; }
form.inquiry label { display: grid; gap: 7px; font: 600 .9rem var(--head); }
form.inquiry input, form.inquiry select, form.inquiry textarea { font: 500 1rem var(--body); padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
form.inquiry input:focus, form.inquiry select:focus, form.inquiry textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 4px var(--mint); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; margin-bottom: 12px; }
details.faq summary { cursor: pointer; padding: 16px 0; font: 700 1.02rem var(--head); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--green); line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--muted); }

/* CTA band */
.cta { background: linear-gradient(120deg, var(--green) 0%, #00bd64 55%, var(--bright) 130%); color: #fff; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { color: #eafff2; margin: 0; font-size: 1.1rem; }
.cta .btn-row { justify-content: flex-end; }
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 50px solid rgba(255,255,255,.1); }

/* Footer */
.site-footer { background: var(--deeper); color: #a9c5b6; padding: 80px 0 30px; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color: #d9eee2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-brand img { width: 70px; margin-bottom: 16px; }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.social svg { width: 20px; height: 20px; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (max-width: 600px) { .tagbar { font-size: .66rem; letter-spacing: .16em; } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .tile img, .card { transition: none; } }

/* Responsive */
@media (max-width: 1180px) {
  .g4, .people, .facility-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(3, 1fr); }
  .award-strip, .upcoming { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .site-header { backdrop-filter: none; background: #fff; }
  body.menu-open::after { content: ""; position: fixed; inset: 0; background: rgba(4,31,20,.5); z-index: 40; }
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); flex-direction: column; align-items: stretch; background: #fff; padding: 100px 22px 30px; gap: 6px; transform: translateX(100%); visibility: hidden; transition: transform .35s ease, visibility 0s linear .35s; box-shadow: -20px 0 60px rgba(0,0,0,.15); z-index: 60; }
  body.menu-open .nav-links { visibility: visible; transition: transform .35s ease, visibility 0s; }
  .nav-links a { padding: 16px; font-size: 1.05rem; }
  .nav-links .btn { margin: 14px 0 0; justify-content: center; }
  body.menu-open .nav-links { transform: none; }
  body.menu-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .menu-btn { position: relative; z-index: 70; }
  .split, .cta, .g2, .g3 { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .stats, .tally { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cta .btn-row { justify-content: flex-start; }
  .hero-badge { display: none; }
  .photo-stack .photo.small { display: none; }
  .voice { grid-template-columns: 1fr; }
  .voice img { max-width: 200px; }
  .topbar .tb-hide { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .g4, .people, .facility-grid, .award-strip, .upcoming, .steps, .foot-grid, .form-row { grid-template-columns: 1fr; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { left: 64px; }
  .timeline li { grid-template-columns: 64px 1fr; gap: 26px; }
  .timeline li::before { left: 58px; }
  .timeline .yr { font-size: 1.05rem; }
  .hero { min-height: 92vh; }
  .hero::after { background: linear-gradient(0deg, rgba(4,31,20,.95) 20%, rgba(4,31,20,.35) 80%); }
  .stat { padding: 22px 18px; }
  .stat b { font-size: 1.8rem; }
  .brand-name { font-size: .64rem; }
  .brand-name strong { font-size: 1rem; }
  .tile { min-height: 340px; }
  .topbar { font-size: .78rem; }
}

/* ---- Name in the header: THE CREATIVE MIDDLE SCHOOL, INC. ---- */
.brand-name { font: 300 1.02rem/1.1 var(--head); letter-spacing: .01em; text-transform: uppercase; color: var(--green); white-space: nowrap; }
.brand-name strong { display: inline; font-weight: 700; font-size: inherit; color: var(--green); letter-spacing: inherit; }
.brand { flex-shrink: 0; margin-right: 22px; }
.nav-links a { padding: 10px 10px; font-size: .92rem; }
.nav-links .btn { margin-left: 6px; }
@media (max-width: 1240px) { .brand-name { font-size: .9rem; } }
@media (max-width: 1300px) { .bn-the, .bn-inc { display: none; } }

/* ---- Programs: four tiles ---- */
.grid.g4 .tile { min-height: 400px; }
.grid.g4 .tile h3 { font-size: 1.4rem; }

/* ---- Albums ---- */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.album { display: block; text-align: left; padding: 0; border: 0; background: #fff; border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; font: inherit; color: inherit; }
.album:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.album-img { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--mint); }
.album-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.album:hover .album-img img { transform: scale(1.05); }
.count { position: absolute; right: 12px; bottom: 12px; background: rgba(4,31,20,.82); color: #fff; font: 600 .78rem/1 var(--head); padding: 7px 11px; border-radius: 999px; }
.album-meta { display: block; padding: 16px 18px 18px; }
.album-meta small { display: block; font: 700 .72rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }
.album-meta b { font: 700 1.04rem/1.3 var(--head); }

/* ---- Calendar events that have an album ---- */
.ev-album { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding: 6px 14px 6px 6px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; font: 600 .85rem var(--head); color: var(--green-700); cursor: pointer; }
.ev-album:hover { border-color: var(--green); }
.ev-album img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }

/* ---- Awards with their posters ---- */
.award.has-photo { padding: 0; display: flex; flex-direction: column; }
.award-photo { display: block; position: relative; padding: 0; border: 0; cursor: zoom-in; background: var(--mint); aspect-ratio: 4/5; overflow: hidden; }
.award-photo img { width: 100%; height: 100%; object-fit: contain; background: var(--mint); transition: transform .5s; }
.award-photo:hover img { transform: scale(1.03); }
.award.has-photo .award-body { padding: 22px 24px 26px; }

/* ---- Senior High ---- */
.shs { background: linear-gradient(135deg, var(--mint) 0%, #fff 70%); }
.shs-art { position: relative; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; border-bottom: 8px solid var(--green); }
.shs-art img { width: 100%; display: block; }

/* ---- Lightbox ---- */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(2, 14, 9, .94); display: grid; grid-template-rows: auto 1fr auto; align-items: center; justify-items: center; padding: 14px 0 18px; }
.lb[hidden] { display: none; }
.lb-top { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; color: #fff; gap: 16px; }
.lb-title { font: 700 1.05rem var(--head); }
.lb-close { background: rgba(255,255,255,.12); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.lb figure { margin: 0; max-width: min(1200px, 92vw); max-height: 100%; display: grid; place-items: center; min-height: 0; height: 100%; }
.lb figure img { max-width: 100%; max-height: calc(100vh - 220px); object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lb figcaption { color: #b9d6c6; font: 600 .85rem var(--head); margin-top: 10px; }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lb-nav:hover, .lb-close:hover { background: var(--green); }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-strip { display: flex; gap: 8px; overflow-x: auto; max-width: 92vw; padding: 6px 4px; scrollbar-width: thin; }
.lb-strip button { flex: none; width: 64px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; opacity: .55; cursor: pointer; background: none; }
.lb-strip button[aria-current="true"] { border-color: var(--bright); opacity: 1; }
.lb-strip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .lb-nav { width: 44px; height: 44px; font-size: 1.6rem; } .lb-prev { left: 8px; } .lb-next { right: 8px; } .lb figure img { max-height: calc(100vh - 200px); } }

/* San Pedro campus, campuses, accreditation, Spartans banner */
.hero-badge { width: 240px; }
.hero-badge img.crest40 { width: 220px; background: #fff; border-radius: 18px; padding: 10px 14px; filter: drop-shadow(0 10px 30px rgba(0,0,0,.35)); }
.campuses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.campus { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; color: inherit; text-decoration: none; transition: transform .3s; }
.campus:hover { transform: translateY(-4px); }
.campus > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.campus > div { padding: 24px 26px 28px; display: grid; gap: 8px; justify-items: start; }
.campus h3 { margin: 4px 0 0; }
.campus p { margin: 0; color: var(--muted); }
.campus .badges { height: 74px; width: auto; margin-top: 8px; }
.campus .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font: 700 .95rem var(--head); color: var(--green); }
.campus .more svg { width: 18px; height: 18px; }
.accred { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 40px; align-items: center; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 44px); }
.accred img { width: 100%; }
.campus-tag { color: var(--green); }
.banner-wrap { padding: clamp(32px, 5vw, 56px) 0 0; }
.banner { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); display: block; }
dialog.player video { max-height: 86vh; object-fit: contain; }
@media (max-width: 760px) {
  .campuses, .accred { grid-template-columns: 1fr; }
  .accred img { max-width: 280px; }
}

/* Video captions: always white on a soft shade */
.video-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(2, 20, 12, .82)); pointer-events: none; }
.video-card .caption { z-index: 2; color: #fff; pointer-events: none; right: 28px; }
.video-card .caption small { color: #e6f3eb; opacity: 1; font-weight: 600; }
.video-card button { z-index: 3; }
/* Phones: sturdier body text */
@media (max-width: 760px) {
  body { font-weight: 500; }
  .lead, p, li { font-weight: 500; }
  .lead { color: #44564c; }
  .deep .lead, .hero p.lead, .page-hero .lead { color: #e3f0e8; }
}
/* Leadership portraits, Instagram, Kawaba gallery, timeline photos */
.people .leader { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.people .leader img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; background: #1f2a2e; }
.people .leader .mono { aspect-ratio: 4 / 5; display: grid; place-items: center; background: linear-gradient(160deg, var(--green), var(--deep)); color: #fff; font: 800 3rem var(--head); }
.people .leader > div { padding: 18px 20px 22px; border: 0; }
.kawaba { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kawaba button { padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer; aspect-ratio: 1; background: var(--mint); }
.kawaba button:first-child { grid-column: span 2; grid-row: span 2; }
.kawaba img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.kawaba button:hover img { transform: scale(1.05); }
.timeline .tl-btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font: 700 .85rem var(--head); color: var(--green); }
.timeline .tl-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.timeline .tl-btn img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
/* Parent reels */
.reels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.reel { position: relative; border: 0; padding: 0; cursor: pointer; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 9 / 16; background: #000; box-shadow: var(--shadow); color: #fff; text-align: left; }
.reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .6s; }
.reel:hover img { transform: scale(1.04); }
.reel::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(2, 20, 12, .9)); }
.reel .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; }
.reel b { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; font: 700 1rem/1.3 var(--head); color: #fff; }
.social { display: flex; gap: 10px; }
@media (max-width: 900px) { .reels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.mini-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.mini-gallery button { padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 1; background: var(--mint); }
.mini-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mini-gallery button:hover img { transform: scale(1.06); }
