/* New Nageshwar Academy School: "On air". A school radio studio as a design theme.
   Tokens first, then base, shell (header dial, mixing-desk sheet, footer), hero studio, sections, pages. */
:root {
  --ground: #F4F1EA;
  --ground-2: #EDE6D5;
  --paper: #FBF8F0;
  --ink: #17181D;
  --ink-soft: #3D414B;
  --studio: #1B1D23;
  --studio-2: #262932;
  --studio-3: #0E0F13;
  --red: #E33B34;
  --red-deep: #C62E28;
  --red-text: #B3261F;
  --amber: #F5A623;
  --cream: #F1E6C8;
  --steel: #7C8591;
  --steel-dark: #5A636F;
  --steel-light: #A4ADB8;
  --hair: rgba(23, 24, 29, .18);
  --focus: #17181D;
  --font-display: "Staatliches", "Arial Narrow", Impact, sans-serif;
  --font-body: "Chivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hi: "Noto Sans Devanagari", "Chivo", sans-serif;
  --header-h: 68px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.62; font-weight: 400;
  font-variant-numeric: normal; text-rendering: optimizeLegibility;
}
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: .02em; line-height: 1.02; margin: 0 0 .75rem; text-transform: uppercase; }
ul, ol { padding: 0; margin: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.top, .sheet, .hero, .phead, .sec-dark, .foot, .dock, .st-display, .noticeboard { --focus: var(--amber); }
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 300; background: var(--amber); color: var(--ink);
  padding: .7rem 1rem; font-weight: 800; border-radius: 6px; text-decoration: none;
}
.skip:focus { top: 10px; }
[hidden] { display: none !important; }
[lang="hi"], .hi-line { font-family: var(--font-hi); }

/* ------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px;
  padding: .72rem 1.2rem; border: 2px solid transparent; border-radius: 6px; cursor: pointer;
  font: 800 .98rem/1.1 var(--font-body); text-decoration: none; letter-spacing: .01em;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn .ic { flex: none; }
.btn-red { background: var(--red-deep); color: #fff; }
.btn-red:hover { background: #A62520; }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #FFB93E; }
.btn-line { border-color: currentColor; background: transparent; color: inherit; }
.btn-line:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.hero .btn-line:hover, .sec-dark .btn-line:hover, .phead .btn-line:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-ghost { border-color: var(--cream); color: var(--cream); background: transparent; }
.btn-ghost:hover { background: var(--cream); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .7; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.link-arrow { display: inline-flex; gap: .5rem; align-items: center; font-weight: 800; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover { color: var(--red-text); }
.link-arrow-dark:hover { color: var(--amber); }

/* ------------------------------------------------ header: a radio dial */
.top {
  position: sticky; top: 0; z-index: 100; background: var(--studio); color: var(--cream);
  border-bottom: 1px solid #2f323b;
}
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }
.top { height: calc(var(--header-h) + 1px); }
.brand { display: block; flex: none; line-height: 0; }
.brand img { width: 204px; height: auto; }
.dial { display: none; flex: 1; justify-content: center; }
.dial-links { display: flex; position: relative; padding-bottom: 14px; height: 62px; align-items: flex-start; }
.dial-links::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background:
    repeating-linear-gradient(90deg, var(--steel) 0 1px, transparent 1px 40px) bottom / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, var(--steel) 0 1px, transparent 1px 8px) bottom / 100% 5px no-repeat;
  opacity: .8;
}
.dial-links li { position: relative; }
.dial-links a {
  display: flex; flex-direction: column; align-items: center; gap: 1px; padding: .45rem 1.05rem .55rem;
  text-decoration: none; position: relative;
}
.dial-links .ch { font: 800 .72rem/1 var(--font-body); letter-spacing: .12em; color: var(--steel-light); }
.dial-links .lbl { font-family: var(--font-display); font-size: 1.28rem; letter-spacing: .07em; line-height: 1.1; text-transform: uppercase; color: var(--cream); }
.dial-links a::after {
  content: ""; position: absolute; left: 50%; bottom: -14px; width: 2px; height: 0; margin-left: -1px;
  background: var(--amber); transition: height .18s;
}
.dial-links a:hover::after, .dial-links a:focus-visible::after { height: 18px; }
.dial-links a[aria-current="page"] .lbl { color: var(--amber); }
.dial-links a[aria-current="page"]::after { height: 22px; background: var(--red); width: 3px; margin-left: -1.5px; }
.top-side { display: none; align-items: center; gap: .8rem; flex: none; }
.top-call { min-height: 44px; padding: .5rem 1rem; }
.menu-btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: .5rem .95rem; cursor: pointer;
  background: transparent; color: var(--cream); border: 2px solid var(--cream); border-radius: 6px;
  font: 800 .95rem/1 var(--font-body);
}
.menu-btn:hover { background: var(--cream); color: var(--ink); }
@media (min-width: 992px) {
  .dial, .top-side { display: flex; }
  .menu-btn { display: none; }
  .brand img { width: 190px; }
}
@media (min-width: 992px) and (max-width: 1199.98px) { .top-call span { display: none; } .top-call { padding: .5rem .8rem; } .dial-links a { padding-left: .62rem; padding-right: .62rem; } .dial-links .lbl { font-size: 1.12rem; } }
@media (min-width: 992px) and (max-width: 1099.98px) { .brand img { width: 160px; } .dial-links a { padding-left: .5rem; padding-right: .5rem; } .dial-links .lbl { font-size: 1.05rem; } .top-row { gap: .5rem; } }
@media (min-width: 1200px) { .brand img { width: 224px; } .dial-links a { padding-left: 1.2rem; padding-right: 1.2rem; } }

/* sheet: a mixing desk on phones */
.sheet { position: fixed; inset: 0; z-index: 200; background: #101115; color: var(--cream); overflow-y: auto; }
.sheet-inner { padding: 1rem 1.25rem 2rem; max-width: 560px; margin: 0 auto; }
.sheet-bar { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin-bottom: 1rem; }
.sheet-title { font: 800 .78rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--steel-light); margin: 0; }
.sheet-close { display: inline-flex; gap: .5rem; align-items: center; min-height: 46px; padding: .4rem .9rem; cursor: pointer; background: transparent; color: var(--cream); border: 2px solid var(--cream); border-radius: 6px; font: 800 .95rem/1 var(--font-body); }
.sheet-close:hover { background: var(--cream); color: var(--ink); }
.sheet-links { display: grid; gap: 2px; }
.sheet-links a {
  display: grid; grid-template-columns: 14px 52px 1fr 74px; align-items: center; gap: .7rem; min-height: 64px;
  padding: .4rem .9rem; text-decoration: none; background: var(--studio); border-radius: 6px;
}
.sheet-links a:hover { background: var(--studio-2); }
.m-led { width: 10px; height: 10px; border-radius: 50%; background: #3a3d46; }
.sheet-links a[aria-current="page"] .m-led { background: var(--red); }
.m-ch { font: 800 .72rem/1 var(--font-body); letter-spacing: .12em; color: var(--steel-light); }
.m-lbl { font-family: var(--font-display); font-size: 1.6rem; white-space: nowrap; letter-spacing: .05em; line-height: 1; text-transform: uppercase; }
.m-fader { position: relative; display: block; height: 28px; }
.m-fader::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: #3a3d46; border-radius: 2px; }
.m-fader span { position: absolute; top: 3px; left: calc(var(--pos, 60%) - 7px); width: 14px; height: 22px; background: var(--amber); border-radius: 3px; }
.sheet-links li:nth-child(1) { --pos: 78%; } .sheet-links li:nth-child(2) { --pos: 44%; } .sheet-links li:nth-child(3) { --pos: 66%; }
.sheet-links li:nth-child(4) { --pos: 88%; } .sheet-links li:nth-child(5) { --pos: 52%; } .sheet-links li:nth-child(6) { --pos: 70%; }
.sheet-acts { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 1.25rem; }
@keyframes fader-in { from { left: -7px; } }
@keyframes strip-in { from { opacity: 0; transform: translateY(10px); } }
.sheet:not([hidden]) .m-fader span { animation: fader-in .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 70ms); }
.sheet:not([hidden]) .sheet-links li { animation: strip-in .35s ease both; animation-delay: calc(var(--i) * 45ms); }
body.sheet-open { overflow: hidden; }

/* ------------------------------------------------ the studio hero */
.hero {
  position: relative; background-color: var(--studio); color: var(--cream); overflow: hidden;
  padding: 2rem 0 2.2rem;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, .045) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255, 255, 255, .045) 25%, transparent 25%),
    linear-gradient(45deg, rgba(0, 0, 0, .22) 25%, transparent 25%),
    linear-gradient(315deg, rgba(0, 0, 0, .22) 25%, transparent 25%);
  background-size: 44px 44px; background-position: 0 0, 0 0, 0 0, 0 0;
}
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 90% at 78% 40%, transparent 0, rgba(27, 29, 35, .55) 100%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero-kick { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; margin: 0 0 .6rem; font: 700 1.5rem/1.2 var(--font-hi); color: var(--amber); }
.onair-sm { display: inline-flex; align-items: center; gap: .45rem; font: 400 1rem/1 var(--font-display); letter-spacing: .14em; color: #fff; background: #3a0f0e; border: 1px solid var(--red); padding: .32rem .6rem; border-radius: 4px; }
.onair-lamp { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.hero-h { font-size: clamp(2.7rem, 10.5vw, 5.4rem); line-height: .94; color: #fff; margin: 0 0 .5rem; letter-spacing: .015em; }
.hero-place { font: 800 .86rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--amber); margin-bottom: 1rem; }
.hero-lead { font-size: 1.08rem; max-width: 34em; color: #DDE0E6; }
.open-note { min-height: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .6rem; margin: 0 0 .25rem; font-size: .92rem; font-weight: 600; }
.open-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--steel); flex: none; }
.open-note[data-state="open"] .open-dot { background: var(--amber); border-color: var(--amber); }
.open-src { color: var(--steel-dark); font-weight: 400; font-size: .82rem; }
.hero .open-src, .sec-dark .open-src { color: var(--steel-light); }
.hero .actions { margin-top: 1rem; }
@media (max-width: 991.98px) { .hero .actions .btn-amber, .hero .actions .btn-line { display: none; } }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 64px; }
.bars span { flex: 1; height: var(--h); background: var(--amber); border-radius: 2px 2px 0 0; transform-origin: bottom; animation: eq 1.5s ease-in-out infinite; animation-delay: var(--d); }
.bars span:nth-child(7n) { background: var(--red); }
.bars span:nth-child(5n+2) { background: var(--cream); opacity: .85; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.bars-wide { margin-top: 2rem; height: 56px; opacity: .9; }
.bars-s { height: 40px; max-width: 280px; margin-left: auto; }
.studio { position: relative; margin: 0; padding: 30px 0 0; }
.monitor { background: var(--studio-3); border: 1px solid #3a3d46; border-radius: 12px; padding: 12px; box-shadow: 0 24px 50px rgba(0, 0, 0, .45); }
.screen { position: relative; border-radius: 5px; overflow: hidden; background: #000; aspect-ratio: 3 / 2; }
.screen img { width: 100%; height: 100%; object-fit: cover; }
.osd { position: absolute; left: 10px; top: 10px; font: 800 .72rem/1 var(--font-body); letter-spacing: .14em; color: var(--cream); background: rgba(14, 15, 19, .78); padding: .38rem .55rem; border-radius: 3px; }
.monitor-neck { width: 22%; height: 26px; margin: 0 auto; background: linear-gradient(#2b2e37, #1d1f26); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); position: relative; }
.monitor-neck::after { content: ""; position: absolute; left: -90%; right: -90%; bottom: 0; height: 8px; background: #2b2e37; border-radius: 4px; }
.stage { position: relative; }
.mic { position: absolute; left: -6px; bottom: 0; width: 70px; z-index: 3; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .5)); }
.mic-svg { width: 100%; height: auto; }
.onair {
  position: absolute; top: 0; right: 7%; z-index: 4; display: inline-flex; align-items: center; gap: .55rem; padding: .5rem .95rem .45rem;
  background: #2a0b0a; border: 2px solid var(--red); border-radius: 8px; color: #FF6A63;
  box-shadow: 0 0 22px 2px rgba(227, 59, 52, .55), inset 0 0 12px rgba(227, 59, 52, .35); animation: glow 2.8s ease-in-out infinite alternate;
}
.onair-txt { font: 400 1.7rem/1 var(--font-display); letter-spacing: .16em; text-shadow: 0 0 10px rgba(255, 90, 82, .9); }
@keyframes glow { from { box-shadow: 0 0 12px 1px rgba(227, 59, 52, .4), inset 0 0 8px rgba(227, 59, 52, .25); } to { box-shadow: 0 0 28px 4px rgba(227, 59, 52, .7), inset 0 0 14px rgba(227, 59, 52, .45); } }
.cap { font-size: .78rem; line-height: 1.4; color: var(--steel-dark); margin: .6rem 0 0; }
.cap-dark { color: var(--steel-light); }
.studio .cap { margin-top: .9rem; }
.studio-s { padding-top: 0; }
.studio-s .cap-dark { color: var(--steel-dark); }
@media (min-width: 576px) { .mic { width: 96px; left: -22px; } .hero { padding: 2.6rem 0 2.4rem; } }
@media (min-width: 992px) {
  .hero { padding: 3.4rem 0 2.6rem; }
  .mic { width: 112px; left: -62px; bottom: -6px; }
  .onair-sm { display: none; }
  .hero-kick { font-size: 1.8rem; }
}

/* ------------------------------------------------ sections */
.sec { padding: 3.4rem 0; }
.sec-dark { background: var(--studio); color: var(--cream); }
.sec-cream { background: var(--ground-2); }
.h2 { font-size: clamp(2rem, 5.5vw, 3.1rem); margin-bottom: 1rem; }
.h3 { font-size: 1.7rem; }
.lead-s { font-size: 1.06rem; color: var(--ink-soft); max-width: 36em; }
.sec-dark .lead-s { color: #CDD2D9; }
.note { font-size: .86rem; color: var(--steel-dark); }
.note-dark { color: var(--steel-light); margin-top: 1rem; }
.note-dark::before { content: ""; }
@media (min-width: 992px) { .sec { padding: 5rem 0; } }

/* station details: dial readouts */
.panel-row { margin-top: 1.6rem; }
.ro { height: 100%; background: var(--paper); border: 1px solid var(--hair); border-radius: 6px; padding: .95rem 1rem 1rem; position: relative; }
.ro::before { content: ""; position: absolute; left: 1rem; right: 1rem; top: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--steel) 0 1px, transparent 1px 7px); opacity: .7; }
.ro-lab { font: 800 .7rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--steel-dark); margin: .5rem 0 .45rem; }
.ro-val { font: 400 1.7rem/1.05 var(--font-display); letter-spacing: .03em; margin: 0 0 .3rem; text-transform: uppercase; }
.ro-sub { font-size: .84rem; color: var(--ink-soft); margin: 0; line-height: 1.35; }
.ro-tbc { background: transparent; border: 2px dashed var(--steel); }
.ro-tbc::before { display: none; }
.ro-tbc .ro-lab { margin-top: 0; }
.ro-tbc .ro-val { color: var(--steel-dark); font-size: 1.3rem; }

/* now playing: stations */
.st-list { display: grid; gap: 6px; margin-top: 1.4rem; }
.st { display: grid; grid-template-columns: 4.2rem 1fr; grid-template-areas: "ch name" "ch span"; align-items: center; column-gap: .6rem; text-align: left; width: 100%;
  background: var(--paper); color: var(--ink); border: 1px solid var(--hair); border-radius: 6px; padding: .7rem .9rem; cursor: pointer; font-family: var(--font-body); position: relative; }
.st:hover { background: var(--ground-2); }
.st-ch { grid-area: ch; font: 400 1.3rem/1 var(--font-display); letter-spacing: .06em; color: var(--steel-dark); }
.st-name { grid-area: name; font: 400 1.5rem/1.05 var(--font-display); letter-spacing: .04em; text-transform: uppercase; }
.st-span { grid-area: span; font-size: .84rem; color: var(--ink-soft); }
.st[aria-selected="true"] { background: var(--studio); color: var(--cream); border-color: var(--studio); }
.st[aria-selected="true"] .st-ch { color: var(--amber); }
.st[aria-selected="true"] .st-span { color: #CDD2D9; }
.st[aria-selected="true"]::after { content: ""; position: absolute; right: 14px; top: 50%; margin-top: -7px; width: 11px; height: 14px; background: var(--amber); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.st-display { background: var(--studio); color: var(--cream); border-radius: 12px; padding: 1.6rem 1.4rem 1.7rem; min-height: 100%; box-shadow: inset 0 0 0 1px #343741; }
.st-panel:focus-visible { outline-offset: 6px; }
.np-label { display: flex; align-items: center; gap: .55rem; font: 800 .72rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--amber); margin-bottom: .9rem; }
.np-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.np-h { font-size: clamp(2rem, 5vw, 2.8rem); color: #fff; }
.np-span { display: block; font: 800 .86rem/1.3 var(--font-body); letter-spacing: .12em; color: var(--amber); margin-top: .4rem; text-transform: uppercase; }
.st-panel p { color: #DDE0E6; }
.np-q { font: 800 .74rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--steel-light); margin: 1.3rem 0 .5rem; }
.np-list { display: grid; gap: .45rem; }
.np-list li { position: relative; padding-left: 1.4rem; font-size: .98rem; }
.np-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.np-note { margin: 1.3rem 0 0; font-size: .86rem; color: var(--steel-light); }
.np-note strong { color: var(--cream); }
@media (min-width: 992px) { .st-display { padding: 2.2rem 2.2rem 2.4rem; } .st-list { margin-top: 1.8rem; } }

/* visit */
.frame { margin: 0; background: var(--cream); padding: 10px; border: 1px solid var(--hair); border-radius: 4px; box-shadow: 0 18px 36px rgba(23, 24, 29, .16); }
.frame img { width: 100%; height: auto; border-radius: 2px; }
.frame-dark { background: #2c2f38; border-color: #3a3d46; box-shadow: 0 18px 36px rgba(0, 0, 0, .45); }
.frame .cap { padding: 0 2px; }
.ticks { display: grid; gap: .55rem; margin: 1.1rem 0 1.3rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 9px; height: 9px; border-radius: 50%; background: var(--red-deep); }

/* the broadcast board */
.board { margin: 2rem 0 0; background: var(--studio-3); border-radius: 10px; padding: .6rem 1rem; box-shadow: inset 0 0 0 1px #343741; }
.b-row { display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid #272a32; }
.b-row:last-child { border-bottom: 0; }
.b-time { min-width: 7.2em; }
.b-prog { min-width: 0; }
.b-tag { grid-column: 1 / -1; justify-self: start; font: 800 .72rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; padding: .32rem .55rem; border-radius: 3px; }
.b-listed .b-tag { background: var(--amber); color: var(--ink); }
.b-sample .b-tag { border: 1px dashed var(--steel-light); color: var(--steel-light); }
.flaps { display: inline-flex; flex-wrap: wrap; gap: 0 .5em; font-family: var(--font-display); font-size: 1.12rem; line-height: 1; color: var(--cream); }
.flaps.t { color: var(--amber); }
.fw { display: inline-flex; flex-wrap: nowrap; gap: 2px; }
.fl {
  display: inline-block; min-width: .72em; padding: .32em .1em .26em; text-align: center; border-radius: 3px; letter-spacing: 0;
  background: linear-gradient(#14151a 0 48%, #000 48% 52%, #1a1c22 52% 100%); transform-origin: 50% 50%; backface-visibility: hidden;
}
.is-armed .fl { opacity: 0; transform: perspective(300px) rotateX(-90deg); }
.is-in .fl { animation: flip .5s cubic-bezier(.3, .7, .3, 1) both; animation-delay: calc(var(--k) * 26ms); }
.is-in .b-row:nth-child(2) .fl { animation-delay: calc(var(--k) * 26ms + 120ms); }
.is-in .b-row:nth-child(3) .fl { animation-delay: calc(var(--k) * 26ms + 240ms); }
.is-in .b-row:nth-child(4) .fl { animation-delay: calc(var(--k) * 26ms + 360ms); }
.is-in .b-row:nth-child(5) .fl { animation-delay: calc(var(--k) * 26ms + 480ms); }
.is-in .b-row:nth-child(6) .fl { animation-delay: calc(var(--k) * 26ms + 600ms); }
.is-in .b-row:nth-child(7) .fl { animation-delay: calc(var(--k) * 26ms + 720ms); }
@keyframes flip { from { opacity: 0; transform: perspective(300px) rotateX(-90deg); } to { opacity: 1; transform: perspective(300px) rotateX(0); } }
@media (min-width: 576px) { .flaps { font-size: 1.5rem; } .b-row { grid-template-columns: 10.5rem 1fr auto; } .b-tag { grid-column: auto; justify-self: end; } .board { padding: .8rem 1.6rem; } }
@media (min-width: 992px) { .flaps { font-size: 1.7rem; } .b-row { grid-template-columns: 12rem 1fr auto; padding: 1rem 0; } }

/* four steps */
.step-row { display: grid; gap: 1.6rem; margin-top: 2rem; counter-reset: s; }
.step-row li { position: relative; padding: 0 0 0 4.2rem; }
.step-row li::before { content: ""; position: absolute; left: 1.55rem; top: 3.2rem; bottom: -1.5rem; width: 2px; background: repeating-linear-gradient(var(--steel) 0 6px, transparent 6px 12px); }
.step-row li:last-child::before { display: none; }
.step-n { position: absolute; left: 0; top: -.2rem; width: 3.2rem; height: 3.2rem; display: grid; place-items: center; font: 400 2.2rem/1 var(--font-display); background: var(--studio); color: var(--amber); border-radius: 50%; }
.step-row h3 { font-size: 1.6rem; margin-bottom: .3rem; }
.step-row p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.step-row a { font-weight: 700; }
@media (min-width: 992px) {
  .step-row { grid-template-columns: repeat(4, 1fr); gap: 1.8rem; margin-top: 2.6rem; }
  .step-row li { padding: 4.2rem 0 0; }
  .step-row li::before { left: 3.4rem; right: -1.8rem; top: 1.55rem; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, var(--steel) 0 6px, transparent 6px 12px); }
  .step-n { top: 0; }
}

/* call-in line: FAQ */
.folds { display: grid; gap: .6rem; }
.fold { background: var(--studio-2); border-radius: 8px; box-shadow: inset 0 0 0 1px #3a3d46; }
.fold summary { display: flex; align-items: center; gap: .9rem; padding: .95rem 1.1rem; cursor: pointer; list-style: none; min-height: 60px; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "+"; margin-left: auto; font: 400 1.8rem/1 var(--font-display); color: var(--amber); transition: transform .2s; }
.fold[open] summary::after { transform: rotate(45deg); }
.fold-tag { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--red-deep); color: #fff; }
.fold-tag .ic { width: 18px; height: 18px; }
.fold-q { font-weight: 700; font-size: 1.02rem; color: #fff; }
.fold-a { padding: 0 1.2rem 1.2rem 4.1rem; }
.fold-a p { color: #DDE0E6; margin-bottom: .6rem; }
.fold-who { font: 800 .72rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--amber) !important; }

.cta-sec { background: var(--ground); text-align: center; padding: 3.2rem 0 3.8rem; }
.cta-wrap .lead-s { margin-left: auto; margin-right: auto; }
.cta-wrap .actions { justify-content: center; }

/* ------------------------------------------------ footer */
.foot { background: #121317; color: #D5D9DF; padding: 0 0 5.5rem; }
.foot-scale { height: 34px; margin-bottom: 2.4rem; position: relative; background:
  repeating-linear-gradient(90deg, var(--steel) 0 1px, transparent 1px 56px) bottom / 100% 18px no-repeat,
  repeating-linear-gradient(90deg, var(--steel) 0 1px, transparent 1px 11px) bottom / 100% 9px no-repeat; border-bottom: 1px solid #2f323b; opacity: .9; }
.foot-scale::after { content: ""; position: absolute; left: 62%; bottom: 0; width: 3px; height: 34px; background: var(--red); }
.foot a { color: #fff; }
.foot a:hover { color: var(--amber); }
.foot-logo { width: 220px; height: auto; margin-bottom: 1rem; }
.foot-addr { color: #fff; font-weight: 600; margin-bottom: .6rem; }
.foot-tel { font: 400 2rem/1 var(--font-display); letter-spacing: .06em; text-decoration: none; color: var(--amber) !important; }
.foot-small { font-size: .86rem; color: #B7BDC6; max-width: 34em; }
.foot-h { font: 800 .74rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--steel-light); margin-bottom: 1rem; }
.foot-list { display: grid; gap: .45rem; }
.foot-list a { text-decoration: none; }
.foot-list a:hover { text-decoration: underline; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--studio); border-top: 1px solid #343741; }
.dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; text-decoration: none; color: var(--cream); font: 800 .78rem/1 var(--font-body); }
.dock a:nth-child(3) { background: var(--red-deep); color: #fff; }
.dock a:hover { background: var(--studio-2); }
.dock a:nth-child(3):hover { background: #A62520; }
@media (min-width: 992px) { .dock { display: none; } .foot { padding-bottom: 2.4rem; } }

/* ------------------------------------------------ inner pages */
.phead { background: var(--studio); color: var(--cream); padding: 1.6rem 0 2.4rem; position: relative; overflow: hidden;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, .035) 25%, transparent 25%), linear-gradient(45deg, rgba(0, 0, 0, .2) 25%, transparent 25%);
  background-size: 44px 44px; }
.crumb { font-size: .84rem; color: var(--steel-light); margin-bottom: 1.4rem; }
.crumb a { color: var(--cream); }
.phead h1 { font-size: clamp(2.6rem, 9vw, 4.6rem); color: #fff; margin-bottom: .4rem; }
.hi-line { font-weight: 700; font-size: 1.35rem; color: var(--amber); margin: 0 0 .7rem; }
.phead .lead { font-size: 1.1rem; color: #D5D9DF; max-width: 34em; margin: 0; }
.phead-bars { display: none; }
@media (min-width: 992px) { .phead { padding: 2.2rem 0 3rem; } .phead-bars { display: block; } }

.about-top .h2 { margin-bottom: .6rem; }
.facts { margin: 1.4rem 0 0; }
.fact { display: grid; gap: .2rem; padding: .9rem 0; border-top: 1px solid var(--hair); }
.fact:last-child { border-bottom: 1px solid var(--hair); }
.fact dt { font: 800 .72rem/1.2 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--steel-dark); }
.fact dd { margin: 0; font-weight: 600; }
.fact-src { display: block; font-weight: 400; font-size: .8rem; color: var(--steel-dark); margin-top: .1rem; }
@media (min-width: 576px) { .fact { grid-template-columns: 9rem 1fr; gap: 1rem; } }

.tbc { border: 2px dashed var(--steel); border-radius: 8px; padding: 1.2rem 1.3rem 1.1rem; background: rgba(255, 255, 255, .35); height: 100%; margin-bottom: 1rem; }
.col-12 > .tbc, .tbc-row .tbc { margin-bottom: 0; }
.tbc-stack { display: grid; gap: 1rem; }
.tbc-stack .tbc { height: auto; margin: 0; }
.tbc-title { font-size: 1.5rem; margin-bottom: .35rem; }
.tbc p { margin-bottom: .6rem; color: var(--ink-soft); font-size: .98rem; }
.tbc-tag { display: inline-block; font: 800 .72rem/1 var(--font-body) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-dark) !important; border: 1px dashed var(--steel-dark); border-radius: 3px; padding: .35rem .5rem; margin: 0 !important; }
.about-note { padding-top: 2.4rem; }
.about-note p { color: var(--ink-soft); }

/* learning: programme guide */
.guide { margin-top: 2.2rem; }
.guide-row { display: grid; gap: .6rem 1.6rem; padding: 1.8rem 0; border-top: 1px solid var(--hair); }
.guide-row:last-child { border-bottom: 1px solid var(--hair); }
.guide-ch { font: 400 3.4rem/1 var(--font-display); color: var(--red-text); letter-spacing: .02em; display: flex; align-items: baseline; gap: .5rem; }
.guide-ch span { font-size: 1rem; color: var(--steel-dark); letter-spacing: .12em; }
.guide-main h3 { font-size: 2rem; }
.guide-span { display: block; font: 800 .8rem/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--steel-dark); margin-top: .3rem; }
.guide-note { font-size: .86rem; color: var(--steel-dark); margin: 0; }
.guide-ask .np-q { color: var(--steel-dark); margin-top: 0; }
.guide-ask .np-list li { color: var(--ink-soft); }
.guide-ask .np-list li::before { background: var(--red-deep); }
@media (min-width: 992px) { .guide-row { grid-template-columns: 8rem 1fr 22rem; align-items: start; } }
.learn-band .frame-dark { max-width: 460px; }

/* admissions */
.route { position: relative; display: grid; gap: 1.8rem; }
.route::before { content: ""; position: absolute; left: 1.45rem; top: 1.6rem; bottom: 1.6rem; width: 2px; background: repeating-linear-gradient(var(--steel) 0 6px, transparent 6px 12px); }
.route li { position: relative; display: grid; grid-template-columns: 3rem 1fr; gap: 1.1rem; align-items: start; }
.route-n { position: relative; z-index: 1; width: 3rem; height: 3rem; display: grid; place-items: center; background: var(--studio); color: var(--amber); font: 400 1.9rem/1 var(--font-display); border-radius: 50%; }
.route h3 { font-size: 1.7rem; margin: .2rem 0 .3rem; }
.route p { margin: 0; color: var(--ink-soft); }
.route a { font-weight: 700; }
.checks { display: grid; gap: .7rem; margin-top: 1.3rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .22em; width: 1.15rem; height: 1.15rem; border: 2px solid var(--ink); border-radius: 3px; background: var(--paper); }
.sec-form { background: var(--ground); }
.enquiry-box { background: var(--paper); border: 1px solid var(--hair); border-radius: 12px; padding: 1.4rem 1.2rem 1.5rem; scroll-margin-top: calc(var(--header-h) + 12px); }
.enq-title { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.enq-intro { color: var(--ink-soft); max-width: 40em; }
.field label { display: block; font-weight: 700; font-size: .94rem; margin-bottom: .3rem; }
.opt { font-weight: 400; color: var(--steel-dark); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .65rem .8rem; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 6px; font: 400 1rem/1.4 var(--font-body);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--amber); outline-offset: 0; box-shadow: 0 0 0 5px var(--ink); }
.field [aria-invalid="true"] { border-color: var(--red-text); background: #FFF6F5; }
.hint { font-size: .82rem; color: var(--steel-dark); margin: .3rem 0 0; }
.err { font-size: .86rem; font-weight: 700; color: var(--red-text); margin: .3rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-summary { background: #FFF1F0; border: 2px solid var(--red-text); color: var(--red-text); font-weight: 800; padding: .7rem .9rem; border-radius: 6px; margin-bottom: 1rem; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; margin-top: 1.3rem; }
.form-foot .small { margin: 0; font-size: .84rem; color: var(--ink-soft); }
.form-result { margin-top: 1rem; font-weight: 700; }
.form-result.ok { color: #1F6B3A; background: #EAF6EE; padding: .8rem 1rem; border-radius: 6px; }
.form-result.bad { color: var(--red-text); background: #FFF1F0; padding: .8rem 1rem; border-radius: 6px; }
.btn.is-loading { position: relative; }
@media (min-width: 768px) { .enquiry-box { padding: 2.2rem 2.4rem 2.4rem; } }

/* school life */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 1.8rem; }
.g-item { margin: 0; }
.g-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--studio); border-radius: 6px; overflow: hidden; cursor: zoom-in; position: relative; }
.g-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.g-btn:hover img { transform: scale(1.03); }
.g-wide { grid-column: span 2; aspect-ratio: 3 / 2; }
.g-tall { aspect-ratio: 3 / 4; }
.g-item:nth-child(3) { order: 4; } .g-item:nth-child(4) { order: 3; }
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; gap: 14px; }
  .g-wide, .g-tall { aspect-ratio: auto; }
  .g-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
  .g-item:nth-child(2) { grid-column: 3; grid-row: 1 / 3; }
  .g-item:nth-child(3) { grid-column: 1; grid-row: 2; order: 0; }
  .g-item:nth-child(4) { grid-column: 2; grid-row: 2; order: 0; }
}
@media (min-width: 992px) { .gallery { grid-auto-rows: 290px; } }
.lightbox { border: 0; padding: 0; background: #0E0F13; color: var(--cream); width: min(94vw, 1000px); max-height: 94vh; border-radius: 10px; }
.lightbox::backdrop { background: rgba(8, 8, 10, .82); }
.lightbox figure { margin: 0; }
.lb-img { width: 100%; max-height: 74vh; object-fit: contain; background: #000; }
.lb-cap { padding: .8rem 1rem; font-size: .88rem; color: #CDD2D9; }
.lb-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--studio); color: #fff; border: 2px solid var(--cream); border-radius: 50%; cursor: pointer; z-index: 2; --focus: var(--amber); }
.lb-nav { display: flex; justify-content: space-between; padding: 0 1rem 1rem; --focus: var(--amber); }
.lb-nav button { display: inline-flex; gap: .5rem; align-items: center; min-height: 44px; padding: .4rem 1rem; background: transparent; color: var(--cream); border: 2px solid var(--cream); border-radius: 6px; font: 800 .95rem/1 var(--font-body); cursor: pointer; }
.lb-nav button:hover { background: var(--cream); color: var(--ink); }
.verified-note { margin: 1.6rem 0 0; font-weight: 700; }
.verified-note::before { content: "\2713\00a0"; color: #1F6B3A; }
.noticeboard { display: grid; gap: 1rem; margin-top: 1.6rem; background: var(--studio-2); padding: 1.6rem 1.2rem; border-radius: 12px; box-shadow: inset 0 0 0 1px #3a3d46; }
.noticeboard li { position: relative; background: var(--cream); color: var(--ink); padding: 1.5rem 1.1rem 1rem; border-radius: 3px; box-shadow: 0 8px 16px rgba(0, 0, 0, .35); }
.noticeboard li:nth-child(odd) { transform: rotate(-.8deg); } .noticeboard li:nth-child(even) { transform: rotate(.7deg); }
.nb-pin { position: absolute; top: 8px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--red-deep); }
.noticeboard p { margin: 0 0 .5rem; font-weight: 700; }
.nb-tag { font: 800 .72rem/1 var(--font-body) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-dark); }
@media (min-width: 768px) { .noticeboard { grid-template-columns: repeat(3, 1fr); padding: 2.2rem 2rem; gap: 1.6rem; } }

/* contact */
.reach { display: grid; gap: .8rem; margin-top: 1.4rem; }
.reach-a { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; background: var(--studio); color: var(--cream); border-radius: 10px; text-decoration: none; box-shadow: inset 0 0 0 1px #3a3d46; transition: box-shadow .15s; --focus: var(--amber); }
.reach-a:hover { box-shadow: inset 0 0 0 2px var(--amber); }
.reach-ic { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--amber); color: var(--ink); }
.reach-ic .ic { width: 24px; height: 24px; }
.reach-a strong { display: block; font: 400 1.6rem/1.05 var(--font-display); letter-spacing: .05em; text-transform: uppercase; color: #fff; }
.reach-a span span { font-size: .9rem; color: #CDD2D9; }
@media (min-width: 768px) { .reach { grid-template-columns: repeat(3, 1fr); } }
.addr { font-style: normal; font-weight: 600; margin: .4rem 0 1rem; }
.plus { font-weight: 400; font-size: .9rem; color: var(--steel-dark); }
.hours { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.hours caption { text-align: left; font-size: .82rem; color: var(--steel-dark); padding-bottom: .5rem; caption-side: bottom; padding-top: .5rem; }
.hours th, .hours td { padding: .55rem .2rem; border-top: 1px solid var(--hair); text-align: left; font-weight: 400; }
.hours th { font-weight: 700; width: 40%; }
.hours tr.today { background: var(--cream); font-weight: 800; }
.hours tr.today th::after { content: " (today)"; font-weight: 400; font-size: .84rem; }
.sec-cream .open-src { color: var(--steel-dark); }
.map-card { background-color: var(--paper); border: 1px solid var(--hair); border-radius: 10px; padding: 1.3rem; min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; gap: 1.2rem; }
.map-addr { background: var(--paper); padding: .8rem 1rem; border-radius: 6px; display: inline-block; align-self: flex-start; }
.map-addr { font-size: 1.05rem; }
.map-acts { display: flex; flex-wrap: wrap; gap: .7rem; }
.map-card iframe { display: block; width: 100%; height: 380px; border: 0; margin-top: 1rem; border-radius: 6px; }

.prose { max-width: 42rem; }
.prose-sec .prose p { color: var(--ink-soft); }
.msg-sec { min-height: 56vh; display: grid; align-items: center; background: var(--studio); color: var(--cream); background-image: linear-gradient(135deg, rgba(255, 255, 255, .035) 25%, transparent 25%), linear-gradient(45deg, rgba(0, 0, 0, .2) 25%, transparent 25%); background-size: 44px 44px; --focus: var(--amber); }
.msg { max-width: 36rem; }
.msg h1 { font-size: clamp(2.4rem, 8vw, 4rem); color: #fff; }
.msg .lead { font-size: 1.1rem; color: #D5D9DF; }
.msg .onair { position: static; display: inline-flex; margin-bottom: 1.4rem; }
.msg-code { font: 400 6rem/1 var(--font-display); color: var(--red); margin: 0; }

@media (min-width: 992px) and (max-width: 1199.98px) { .hero-h { font-size: 3.7rem; } }

/* ------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .onair { box-shadow: 0 0 22px 2px rgba(227, 59, 52, .55), inset 0 0 12px rgba(227, 59, 52, .35); }
}
