:root {
  --ink: #1f211d;
  --muted: #6b6c64;
  --paper: #f5f0e6;
  --card: #fffdf8;
  --line: #d8d1c4;
  --red: #a6382d;
  --red-dark: #7e271f;
  --green: #294c3b;
  --gold: #cf9f46;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
button, input { font: inherit; }
button { color: inherit; }
.prototype-strip { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 7px 20px; color: #f7f0e4; background: var(--green); font-size: 12px; }
.prototype-strip span { padding: 2px 7px; border: 1px solid rgba(255,255,255,.4); border-radius: 20px; text-transform: uppercase; letter-spacing: .09em; font-size: 9px; }
.prototype-strip p { margin: 0; opacity: .82; }
.site-header { height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: 1180px; margin: auto; padding: 0 30px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--red); border-radius: 50% 50% 47% 53%; font-family: var(--serif); font-size: 23px; font-style: italic; transform: rotate(-4deg); }
nav { display: flex; gap: 4px; }
.nav-link { padding: 10px 15px; border: 0; border-radius: 30px; background: none; color: var(--muted); cursor: pointer; }
.nav-link.active { color: var(--ink); background: #ebe4d8; }
.icon-button { position: relative; justify-self: end; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.icon-button svg, .search-box svg { width: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.notification-dot { position: absolute; right: 3px; top: 4px; width: 8px; height: 8px; border: 2px solid var(--paper); border-radius: 50%; background: var(--red); }
main { max-width: 1180px; margin: auto; padding: 0 30px 70px; }
.view { display: none; }
.view.active { display: block; }
.hero { padding: 76px 0 50px; }
.eyebrow, .kicker { color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow span { width: 24px; height: 1px; background: var(--red); }
h1, h2, p { margin-top: 0; }
h1 { max-width: 820px; margin: 18px 0 20px; font-family: var(--serif); font-size: clamp(54px, 7vw, 88px); font-weight: 400; line-height: .93; letter-spacing: -.035em; }
h1 em { color: var(--red); font-weight: 400; }
.hero-copy { max-width: 600px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.mode-switch { display: inline-flex; margin-top: 20px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: #ebe4d8; }
.mode-switch button { padding: 9px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.mode-switch button.active { color: var(--ink); background: var(--card); box-shadow: 0 2px 8px rgba(44,39,30,.08); }
.quick-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quick-stats article { min-height: 105px; display: flex; flex-direction: column; justify-content: center; padding: 22px 26px; border-right: 1px solid var(--line); }
.quick-stats article:last-child { border: 0; }
.quick-stats strong { font-family: var(--serif); font-size: 35px; font-weight: 400; line-height: 1; }
.quick-stats span { margin-top: 8px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.scan-stat { position: relative; padding-left: 50px !important; }
.scan-pulse { position: absolute; left: 26px; top: 35px; width: 9px; height: 9px; margin: 0 !important; border-radius: 50%; background: #4f8a68; box-shadow: 0 0 0 6px rgba(79,138,104,.12); }
.controls { display: flex; justify-content: space-between; gap: 20px; padding: 38px 0 22px; }
.search-box { width: min(370px, 100%); display: flex; align-items: center; gap: 10px; padding: 0 15px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.3); }
.search-box svg { width: 18px; color: var(--muted); }
.search-box input { width: 100%; padding: 13px 0; border: 0; outline: 0; background: transparent; }
.filter-pills { display: flex; gap: 8px; }
.pill { padding: 11px 15px; border: 1px solid var(--line); border-radius: 30px; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.pill.active { border-color: var(--ink); color: var(--paper); background: var(--ink); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 30px 0 20px; }
.section-heading h2, .watch-callout h2, dialog h2 { margin: 4px 0 0; font-family: var(--serif); font-size: 34px; font-weight: 400; }
.text-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.text-button span { margin-left: 5px; color: var(--green); font-weight: 700; }
.production-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.show-card { position: relative; min-height: 408px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: 0 8px 25px rgba(54,45,31,.05); transition: transform .2s, box-shadow .2s; }
.show-card:hover { transform: translateY(-4px); box-shadow: 0 15px 35px rgba(54,45,31,.1); }
.card-art { position: relative; height: 154px; display: flex; align-items: end; padding: 18px; overflow: hidden; color: #fff; background: var(--green); }
.card-art::after { content: ""; position: absolute; width: 150px; height: 150px; right: -28px; top: -36px; border: 1px solid rgba(255,255,255,.23); border-radius: 50%; box-shadow: 0 0 0 25px rgba(255,255,255,.05), 0 0 0 50px rgba(255,255,255,.04); }
.show-card:nth-child(2) .card-art { background: var(--red-dark); }
.show-card:nth-child(3) .card-art { background: #67522f; }
.demo-badge { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 5px 8px; border: 1px solid rgba(255,255,255,.5); border-radius: 20px; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.art-letter { position: relative; z-index: 1; font-family: var(--serif); font-size: 71px; line-height: .6; opacity: .92; font-style: italic; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 22px; }
.school-name { margin-bottom: 9px; color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.show-title { margin: 0 0 12px; font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1; }
.show-meta { display: grid; gap: 7px; margin-bottom: 20px; color: var(--muted); font-size: 13px; }
.show-meta span { display: flex; align-items: center; gap: 7px; }
.show-meta b { color: var(--ink); font-weight: 500; }
.card-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: auto; }
.primary-button, .secondary-button { min-height: 42px; padding: 10px 16px; border-radius: 7px; font-weight: 600; cursor: pointer; }
.primary-button { border: 1px solid var(--red); color: #fff; background: var(--red); }
.secondary-button { border: 1px solid var(--line); background: transparent; }
.save-button { width: 42px; border: 1px solid var(--line); border-radius: 7px; background: transparent; cursor: pointer; font-size: 18px; }
.empty-state { grid-column: 1 / -1; min-height: 330px; display: grid; place-items: center; padding: 50px; border: 1px dashed #bfb7a9; border-radius: 12px; text-align: center; background: rgba(255,255,255,.24); }
.empty-state .empty-icon { width: 66px; height: 66px; display: grid; place-items: center; margin: auto auto 18px; border-radius: 50%; color: var(--red); background: #ebe1d2; font-family: var(--serif); font-size: 35px; }
.empty-state h3 { margin: 0 0 9px; font-family: var(--serif); font-size: 31px; font-weight: 400; }
.empty-state p { max-width: 500px; color: var(--muted); line-height: 1.6; }
.watch-callout { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 30px; margin-top: 55px; padding: 34px; border-radius: 12px; color: #f5efe4; background: var(--green); }
.watch-callout .kicker { color: #ddbd76; }
.watch-callout p:not(.kicker) { max-width: 610px; margin: 10px 0 0; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.55; }
.watch-callout .secondary-button { border-color: rgba(255,255,255,.35); color: #fff; white-space: nowrap; }
.radar { position: relative; width: 100px; height: 100px; display: grid; place-items: center; }
.radar i { position: absolute; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
.radar i:nth-child(1) { width: 30px; height: 30px; }.radar i:nth-child(2) { width: 60px; height: 60px; }.radar i:nth-child(3) { width: 90px; height: 90px; }
.radar span { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 16px var(--gold); transform: translate(19px,-17px); }
.schools-view { padding-top: 55px; }
.schools-intro h1 { margin: 8px 0 14px; font-size: 62px; }
.schools-intro > p:last-child { color: var(--muted); }
.back-button { display: none; margin-bottom: 35px; border: 0; background: transparent; color: var(--red); cursor: pointer; }
.school-list { margin-top: 35px; border-top: 1px solid var(--line); }
.school-row { display: grid; grid-template-columns: 46px minmax(280px,1.5fr) .55fr .7fr auto; align-items: center; gap: 18px; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.school-rank { color: #aaa295; font-family: var(--serif); font-size: 23px; }
.school-open { min-width: 0; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 13px; padding: 8px; border: 0; border-radius: 9px; text-align: left; background: transparent; cursor: pointer; transition: background .2s; }
.school-open:hover, .school-open:focus-visible { outline: 0; background: #ebe4d8; }
.mascot-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-family: var(--serif); font-size: 18px; }
.school-row:nth-child(3n+2) .mascot-mark { background: var(--red); }.school-row:nth-child(3n) .mascot-mark { background: #67522f; }
.school-row h3 { margin: 0; font-size: 14px; }.school-row p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.row-arrow { color: var(--red); font-size: 18px; transition: transform .2s; }.school-open:hover .row-arrow { transform: translateX(3px); }
.distance { display: flex; align-items: flex-start; flex-direction: column; gap: 2px; color: var(--ink); font-size: 13px; text-decoration: none; }
.distance small { color: var(--red); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }.distance:hover small { text-decoration: underline; }
.status-badge { justify-self: start; padding: 6px 9px; border-radius: 20px; color: #6f5120; background: #f2e4c5; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.watch-toggle { padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: transparent; font-size: 11px; cursor: pointer; }.watch-toggle.watching { color: var(--green); border-color: #9db4a8; background: #e1ebe5; }
dialog { width: min(520px, calc(100% - 30px)); padding: 35px; border: 0; border-radius: 14px; color: var(--ink); background: var(--card); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(23,27,23,.58); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; right: 18px; top: 14px; border: 0; background: transparent; color: var(--muted); font-size: 28px; cursor: pointer; }
dialog > p:not(.kicker) { color: var(--muted); line-height: 1.55; }
.toggle-row { display: grid; grid-template-columns: 1fr auto; align-items: center; position: relative; padding: 15px 0; border-top: 1px solid var(--line); cursor: pointer; }
.toggle-row span { display: flex; flex-direction: column; gap: 4px; }.toggle-row strong { font-size: 13px; }.toggle-row small { color: var(--muted); }
.toggle-row input { position: absolute; opacity: 0; }.toggle-row i { width: 42px; height: 24px; padding: 3px; border-radius: 20px; background: #c7c2b8; transition: .2s; }.toggle-row i::after { content: ""; display: block; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; }.toggle-row input:checked + i { background: var(--green); }.toggle-row input:checked + i::after { transform: translateX(18px); }
.dialog-save { width: 100%; margin-top: 18px; }
.school-dialog { width: min(700px, calc(100% - 30px)); max-height: min(820px, calc(100vh - 30px)); padding: 40px; }
.profile-heading { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 20px; padding-right: 25px; }
.profile-mascot { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-family: var(--serif); font-size: 28px; }
.profile-heading h2 { margin: 3px 0 5px; font-size: 42px; line-height: 1; }.profile-heading p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.profile-brief { margin: 28px 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.profile-facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-facts section { padding: 22px 20px 22px 0; }.profile-facts section + section { padding-left: 24px; border-left: 1px solid var(--line); }
.profile-facts span { display: block; margin-bottom: 10px; color: var(--red); font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.profile-facts strong { display: block; font-size: 13px; line-height: 1.5; }.profile-facts p, .profile-facts li { color: var(--muted); font-size: 12px; line-height: 1.5; }
.profile-facts p { margin: 7px 0 0; }.profile-facts ul { margin: 0; padding-left: 18px; }.profile-facts li + li { margin-top: 6px; }
.verification-note { margin: 18px 0; color: #817a6e; font-size: 10px; line-height: 1.55; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; }.profile-actions a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 20; padding: 12px 18px; border-radius: 8px; color: #fff; background: var(--ink); font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .25s; }.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 850px) {
  .production-grid { grid-template-columns: 1fr 1fr; }.quick-stats { grid-template-columns: 1fr 1fr; }.quick-stats article:nth-child(2) { border-right: 0; }.quick-stats article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .controls { align-items: stretch; flex-direction: column; }.watch-callout { grid-template-columns: 90px 1fr; }.watch-callout .secondary-button { grid-column: 2; justify-self: start; }
}
@media (max-width: 600px) {
  .prototype-strip { align-items: flex-start; gap: 8px; flex-direction: column; }.site-header { height: 68px; grid-template-columns: 1fr auto; padding: 0 18px; }.site-header nav { display: none; } main { padding: 0 18px 55px; }
  .hero { padding: 52px 0 36px; }h1 { font-size: 52px; }.hero-copy { font-size: 15px; }.mode-switch { width: 100%; }.mode-switch button { flex: 1; font-size: 10px; }
  .production-grid { grid-template-columns: 1fr; }.filter-pills { overflow-x: auto; }.pill { white-space: nowrap; }.section-heading { align-items: flex-start; gap: 20px; flex-direction: column; }
  .watch-callout { grid-template-columns: 1fr; text-align: center; }.radar { margin: auto; }.watch-callout .secondary-button { grid-column: 1; justify-self: center; }
  .school-row { grid-template-columns: 30px 1fr auto; gap: 9px; padding: 14px 0; }.school-open { grid-template-columns: 36px 1fr auto; padding: 5px; }.mascot-mark { width: 36px; height: 36px; }.school-row .distance { grid-column: 2; margin-left: 5px; }.school-row .status-badge { grid-column: 2; margin-left: 5px; }.watch-toggle { grid-column: 3; grid-row: 1 / 4; }.back-button { display: inline-block; }
  .school-dialog { padding: 30px 22px; }.profile-heading { grid-template-columns: 54px 1fr; gap: 14px; }.profile-mascot { width: 54px; height: 54px; font-size: 22px; }.profile-heading h2 { font-size: 32px; }.profile-facts { grid-template-columns: 1fr; }.profile-facts section + section { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }.profile-actions { flex-direction: column; }.profile-actions a { width: 100%; }
}
