/* The Kids Kompany Preschool: "Where little makers work". Toy workshop, conveyor belt, gears, hazard rail.
   Palette (pinned): ground #F6F4EF, ink #1F2430, workshop yellow #FFC531, gear teal #1E8C8C, toy red #E4473C, belt grey #4A4F5A.
   Text-safe derivatives: teal ink #13696A, red ink #B8322A, muted #5A5F6B (all >= 5.4:1 on ground). */
:root {
  --ground: #F6F4EF;
  --ground-2: #ECE9E1;
  --paper: #FFFFFF;
  --ink: #1F2430;
  --muted: #5A5F6B;
  --yel: #FFC531;
  --yel-2: #F2B514;
  --teal: #1E8C8C;
  --teal-ink: #13696A;
  --red: #E4473C;
  --red-ink: #B8322A;
  --grey: #4A4F5A;
  --grey-2: #3B3F48;
  --line: #D9D5CB;
  --on-dark: #FFFFFF;
  --on-dark-2: #C9CDD6;
  --display: "Bungee", "Arial Black", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 6px;
  --r-lg: 14px;
  --shadow: 0 10px 24px -12px rgba(31, 36, 48, .35), 0 2px 6px -2px rgba(31, 36, 48, .18);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --hazard: repeating-linear-gradient(-45deg, var(--yel) 0 14px, var(--ink) 14px 28px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  font-variant-numeric: lining-nums;
  caret-color: var(--teal-ink);
  overflow-x: clip;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration-color: var(--yel-2); }
::selection { background: var(--yel); color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal-ink); outline-offset: 3px; border-radius: 4px; }
.sec-dark :focus-visible, .line :focus-visible, .foot :focus-visible, .rail :focus-visible, .sheet :focus-visible, .act-bar :focus-visible { outline-color: var(--yel); }
html { scrollbar-color: var(--grey) var(--ground-2); }
input, select, textarea, button { font: inherit; color: inherit; }


h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.6vw + .4rem, 4.6rem); }
h2 { font-size: clamp(1.7rem, 2.4vw + .8rem, 2.6rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }
.h-sm { font-size: 1.45rem; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink); max-width: 58ch; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.mt { margin-top: 2.2rem; }
.narrow { max-width: 760px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hi, .band-hi { font-size: 1.15rem; font-weight: 600; color: var(--teal-ink); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yel); color: var(--ink); padding: 10px 16px; border-radius: var(--r); font-weight: 600; }
.skip:focus { top: 12px; }
.skip:hover { color: var(--ink); }

/* ---------- icons and buttons ---------- */
.ic { width: 20px; height: 20px; flex: none; }
.btn {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .7rem 1.2rem;
  border-radius: var(--r); border: 2px solid transparent; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background-color .2s, box-shadow .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-yel { background: var(--yel); color: var(--ink); box-shadow: 0 6px 14px -8px rgba(31, 36, 48, .55), 0 1px 2px rgba(31, 36, 48, .2); }
.btn-yel:hover { background: #FFD25A; color: var(--ink); transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--grey-2); color: #fff; }
.btn-line { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0 0; }
.btn-col { display: grid; gap: .6rem; margin-top: 1rem; }
.btn-col .btn { justify-content: center; }

/* ---------- workbench rail (header) ---------- */
.rail { position: sticky; top: 0; z-index: 50; background: var(--grey); color: #fff; }
.rail::after { content: ""; display: block; height: 8px; background: var(--hazard); }
.rail-row { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; margin-right: auto; }
.brand:hover { color: #fff; }
.brand img { width: 44px; height: 44px; }
.brand-t { display: grid; line-height: 1.05; }
.brand-n { font-family: var(--display); font-size: 1.05rem; letter-spacing: .01em; }
.brand-s { font-size: .82rem; color: var(--on-dark-2); margin-top: 3px; }
.rail-nav ul { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.plate {
  position: relative; display: block; padding: .5rem .85rem; border-radius: 4px; color: #fff; text-decoration: none; font-weight: 500;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.plate:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.plate[aria-current="page"] { background: var(--yel); color: var(--ink); box-shadow: none; }
.rail-call { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem; border-radius: var(--r); background: var(--yel); color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.rail-call:hover { background: #FFD25A; color: var(--ink); }
.menu-btn { display: none; align-items: center; gap: .45rem; min-height: 46px; padding: .5rem .9rem; border-radius: var(--r); border: 2px solid var(--yel); background: transparent; color: #fff; font-weight: 600; cursor: pointer; }
@media (max-width: 991.98px) {
  .rail-nav, .rail-call { display: none; }
  .menu-btn { display: inline-flex; }
  .brand-n { font-size: .98rem; }
}

/* ---------- toolbox-lid sheet (phones) ---------- */
.sheet-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(31, 36, 48, .55); opacity: 0; transition: opacity .3s; }
.sheet-scrim.open { opacity: 1; }
.sheet { position: fixed; z-index: 61; left: 12px; right: 12px; top: 4px; padding-top: 14px; max-height: calc(100dvh - 16px); overflow: auto; perspective: 900px; }
.lid {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--red-ink); color: #fff; padding: 1.1rem 1rem .9rem; border-radius: 12px 12px 4px 4px;
  transform-origin: top center; transform: rotateX(-80deg); opacity: 0; transition: transform .45s var(--ease), opacity .2s;
}
.lid-handle { position: absolute; left: 50%; top: -14px; width: 76px; height: 16px; margin-left: -38px; border: 4px solid var(--ink); border-top: 0; border-radius: 0 0 10px 10px; }
.lid-t { font-family: var(--display); font-size: 1.1rem; }
.sheet-close { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: .4rem .8rem; border-radius: var(--r); border: 2px solid #fff; background: transparent; color: #fff; font-weight: 600; cursor: pointer; }
.box { background: var(--grey); color: #fff; border-radius: 4px 4px 12px 12px; padding: .5rem 1rem 1.2rem; transform: translateY(-14px); opacity: 0; transition: transform .45s var(--ease) .05s, opacity .25s .05s; }
.box::before { content: ""; display: block; height: 8px; margin: 0 -1rem .6rem; background: var(--hazard); }
.sheet.open .lid { transform: none; opacity: 1; }
.sheet.open .box { transform: none; opacity: 1; }
.lid-list { list-style: none; margin: 0; padding: 0; }
.lid-a { display: flex; align-items: center; min-height: 52px; padding: .3rem .4rem; color: #fff; font-family: var(--display); font-size: 1.3rem; text-decoration: none; border-bottom: 1px dashed rgba(255, 255, 255, .22); }
.lid-a:hover { color: var(--yel); }
.lid-a[aria-current="page"] { color: var(--yel); }
.lid-a[aria-current="page"]::before { content: ""; width: 10px; height: 10px; margin-right: .6rem; border-radius: 50%; background: var(--yel); box-shadow: 0 0 0 4px rgba(255, 197, 49, .25); }
.box-acts { display: grid; gap: .6rem; margin-top: 1rem; }
.box-acts .btn { justify-content: center; }
.box-note { margin: .9rem 0 0; font-size: .9rem; color: var(--on-dark-2); }
body.sheet-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero {
  position: relative; padding: clamp(2.2rem, 5vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4.5rem);
  background-color: var(--ground);
  background-image: radial-gradient(circle, rgba(74, 79, 90, .16) 1.6px, transparent 2px);
  background-size: 26px 26px; overflow-x: clip;
}
.hero h1 { max-width: 11ch; }
.hero .lead { margin-top: .4rem; }
.facts { display: grid; gap: .55rem; margin-top: 1.1rem; }
.fact { display: flex; gap: .6rem; align-items: flex-start; margin: 0; }
.fact .ic { margin-top: 3px; color: var(--teal-ink); }
.open-txt { font-weight: 600; }
.is-open .open-txt { color: var(--teal-ink); }
.is-closed .open-txt { color: var(--red-ink); }
.machine { position: relative; max-width: 480px; margin: 1rem auto 0; padding: 26px 26px 0; }
.housing { position: relative; z-index: 2; margin: 0; padding: 12px; background: var(--yel); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.housing img { width: 100%; aspect-ratio: 520 / 578; object-fit: cover; border-radius: 8px; }
.rivet { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--yel-2); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .25); }
.r1 { left: 3px; top: 3px; } .r2 { right: 3px; top: 3px; } .r3 { left: 3px; bottom: 3px; } .r4 { right: 3px; bottom: 3px; }
.gear { position: absolute; z-index: 1; }
.g-a { left: -42px; top: -30px; }
.g-b { right: -30px; top: 34%; }
.g-c { left: -46px; bottom: 26px; z-index: 1; }
.spin { transform-box: fill-box; transform-origin: center; animation: spin 14s linear infinite; }
.g-b .spin { animation-duration: 9s; animation-direction: reverse; }
.g-c .spin { animation-duration: 6.5s; }
@keyframes spin { to { transform: rotate(360deg); } }
.belt { position: relative; z-index: 2; margin: -6px -14px 0; padding-top: 2px; overflow: hidden; }
.belt-track { display: flex; width: max-content; gap: 34px; padding: 0 17px 2px; animation: ride 16s linear infinite; }
.toy-wrap { width: 40px; height: 40px; flex: none; }
.toy { width: 40px; height: 40px; }
@keyframes ride { to { transform: translateX(-50%); } }
.belt-band { height: 30px; border-radius: 15px; background: var(--grey); position: relative; overflow: hidden; box-shadow: inset 0 -3px 0 var(--grey-2); }
.rollers { display: flex; justify-content: space-around; align-items: center; height: 100%; padding: 0 8px; }
.roller { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(var(--on-dark-2) 0 25%, #8B909B 0 50%, var(--on-dark-2) 0 75%, #8B909B 0); animation: spin 1.6s linear infinite; }
.cap { margin: .7rem 0 0; font-size: .85rem; color: var(--muted); text-align: center; max-width: none; }
@media (min-width: 992px) { .machine { margin-top: 0; } }
@media (max-width: 575.98px) {
  .g-a { width: 130px; height: 130px; left: -26px; top: -18px; }
  .g-b { width: 80px; height: 80px; right: -14px; }
  .g-c { width: 60px; height: 60px; left: -14px; bottom: 130px; }
  .machine { padding: 18px 14px 0; }
}

/* ---------- assembly line (stations) ---------- */
.line { background: var(--ink); color: #fff; padding: clamp(3rem, 6vw, 5.5rem) 0; position: relative; }
.line::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--hazard); }
.line h2 { color: #fff; margin: 0; }
.line-lead { color: var(--on-dark-2); margin: 0; }
.stations { --at: 0; margin-top: 2.2rem; }
.st-belt {
  position: relative; display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 12px; padding: 0 0 26px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.st-belt::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 14px; border-radius: 7px; background: var(--grey); background-image: repeating-linear-gradient(90deg, transparent 0 22px, rgba(255, 255, 255, .12) 22px 26px); min-width: 790px; }
.st-tab {
  position: relative; z-index: 1; scroll-snap-align: start; display: grid; gap: .25rem; justify-items: start; text-align: left;
  min-height: 104px; padding: .9rem 1rem; border-radius: 10px 10px 4px 4px; border: 2px solid var(--grey); background: var(--grey-2); color: #fff; cursor: pointer;
  transition: background-color .25s, border-color .25s, transform .3s var(--ease);
}
.st-tab:hover { border-color: var(--on-dark-2); }
.st-lamp { width: 14px; height: 14px; border-radius: 50%; background: #6B707B; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .4); transition: background-color .25s, box-shadow .25s; }
.st-no { font-size: .85rem; color: var(--on-dark-2); }
.st-t { font-family: var(--display); font-size: 1.05rem; line-height: 1.15; }
.st-tab[aria-selected="true"] { background: var(--yel); color: var(--ink); border-color: var(--yel); transform: translateY(-4px); }
.st-tab[aria-selected="true"] .st-no { color: var(--ink); }
.st-tab[aria-selected="true"] .st-lamp { background: var(--red); box-shadow: 0 0 0 4px rgba(228, 71, 60, .35); }
.st-panels { margin-top: 1.4rem; }
.st-panel { background: var(--ground); color: var(--ink); border-radius: var(--r-lg); padding: clamp(1rem, 3vw, 1.8rem); }
.st-photo { margin: 0; }
.st-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.st-h { font-size: 1.6rem; }
.st-notice { padding: .8rem 1rem; background: var(--paper); border-radius: var(--r); border: 1px dashed var(--grey); }
.st-k { font-weight: 600; }

/* ---------- work order ticket + parent slips ---------- */
.floor { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.ticket {
  position: relative; background: var(--paper); padding: 2rem 1.6rem 1.6rem 2.6rem; border-radius: 6px 18px 6px 6px;
  box-shadow: var(--shadow); border-left: 2px dashed var(--line);
}
.ticket-hole { position: absolute; left: 12px; top: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--ground); box-shadow: inset 0 1px 2px rgba(31, 36, 48, .35); }
.ticket-h { font-size: clamp(1.5rem, 2vw + .8rem, 2.1rem); padding-right: 6.5rem; }
.stamp {
  position: absolute; right: 1.2rem; top: 1.6rem; margin: 0; padding: .2rem .7rem; font-family: var(--display); font-size: 1.35rem; letter-spacing: .04em;
  color: var(--red-ink); border: 3px solid var(--red-ink); border-radius: 6px; transform: rotate(-8deg); opacity: .92;
}
.ticket-meta { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1rem; margin: 0 0 1rem; padding: .7rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticket-meta dt { font-size: .82rem; color: var(--muted); }
.ticket-meta dd { margin: 0; font-weight: 600; }
.ticket-list { list-style: none; margin: 0; padding: 0; }
.ticket-list li { border-bottom: 1px dashed var(--line); }
.ticket-list label { display: flex; align-items: center; gap: .75rem; min-height: 46px; cursor: pointer; }
.ticket-list input { appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border: 2px solid var(--ink); border-radius: 4px; background: var(--paper); display: grid; place-content: center; cursor: pointer; }
.ticket-list input::after { content: ""; width: 12px; height: 7px; border: 3px solid var(--ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.ticket-list input:checked { background: var(--yel); }
.ticket-list input:checked::after { opacity: 1; }
.ticket-list input:checked + span { text-decoration: line-through; text-decoration-color: var(--teal); text-decoration-thickness: 2px; color: var(--muted); }
.ticket-note { margin: 1rem 0 0; font-size: .9rem; color: var(--muted); }
.ticket-sm .ticket-h { padding-right: 0; }
@media (max-width: 575.98px) {
  .ticket { padding: 1.6rem 1.1rem 1.2rem 2.2rem; }
  .ticket-h { padding-right: 0; }
  .stamp { position: static; display: inline-block; margin: 0 0 .8rem; font-size: 1.1rem; }
  .tags { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .tag { padding: .8rem .7rem .8rem 2rem; }
  .tag::before { left: 10px; }
  .tag-k, .tag-v { font-size: .9rem; }
}
.qc { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; }
.qc .ic { color: var(--yel-2); fill: var(--yel); }
.slips { display: grid; gap: 1rem; margin: 1rem 0; }
.slip { margin: 0; background: var(--paper); border-radius: 4px; padding: 1.1rem 1.2rem; box-shadow: 0 6px 16px -10px rgba(31, 36, 48, .4); position: relative; }
.slip::before { content: ""; position: absolute; left: -6px; top: 18px; width: 12px; height: 32px; border-radius: 3px; background: var(--grey); }
.slip:nth-child(2) { margin-left: clamp(0px, 4vw, 2.4rem); }
.slip-stars { display: flex; gap: 2px; color: var(--yel-2); margin-bottom: .35rem; }
.slip-stars .ic { width: 16px; height: 16px; fill: var(--yel); }
.slip blockquote { margin: 0; }
.slip blockquote p { margin: 0 0 .5rem; font-size: 1.08rem; font-weight: 500; }
.slip figcaption { font-size: .88rem; color: var(--muted); }

/* ---------- tie-on tags ---------- */
.tags-sec { padding: clamp(3rem, 6vw, 5rem) 0; background: var(--ground-2); }
.sec-lead { color: var(--muted); }
.tags { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.1rem; }
.tag {
  position: relative; display: grid; gap: .2rem; padding: 1rem 1rem 1rem 2.6rem; background: var(--paper); border-radius: 4px 12px 12px 4px;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
  box-shadow: 0 4px 12px -8px rgba(31, 36, 48, .4);
}
.tag::before { content: ""; position: absolute; left: 18px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--ground-2); box-shadow: inset 0 0 0 2px var(--grey); }
.tag-k { font-weight: 600; font-size: .95rem; }
.tag-v { font-size: .98rem; }
.tag-s { font-size: .8rem; color: var(--teal-ink); font-weight: 600; }
.tag-tbc { background: transparent; box-shadow: none; clip-path: none; border: 2px dashed var(--grey); border-radius: 4px 12px 12px 4px; }
.tag-tbc .tag-v { color: var(--muted); }

/* ---------- order form ---------- */
.join { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.order { display: grid; grid-template-columns: 1fr; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.order-main { padding: clamp(1.2rem, 3vw, 2rem); }
.order-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; margin: -.2rem 0 1.2rem; padding-bottom: .9rem; border-bottom: 3px solid var(--ink); }
.order-h { margin: 0; font-size: clamp(1.6rem, 2vw + .9rem, 2.3rem); }
.order-sub { margin: 0; color: var(--muted); font-weight: 600; }
.order-stub { position: relative; background: var(--yel); padding: 1.4rem 1.4rem 1.6rem; border-top: 3px dashed var(--ink); }
.stub-h { font-family: var(--display); font-size: 1.15rem; margin-bottom: .6rem; }
.stub-list { margin: 0 0 1rem; padding-left: 1.2rem; }
.stub-list li { margin-bottom: .45rem; }
.stub-call { margin: 0; font-weight: 600; }
.stub-call a { color: var(--ink); }
@media (min-width: 992px) {
  .order { grid-template-columns: 1fr 250px; }
  .order-stub { border-top: 0; border-left: 3px dashed var(--ink); }
  .col-lg-8 .order { grid-template-columns: 1fr; }
  .col-lg-8 .order-stub { border-left: 0; border-top: 3px dashed var(--ink); }
}
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .65rem .8rem; border: 2px solid var(--grey); border-radius: var(--r); background: var(--ground);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-ink); box-shadow: 0 0 0 3px rgba(30, 140, 140, .28); background: var(--paper); }
.field input::placeholder { color: var(--muted); }
.field [aria-invalid="true"] { border-color: var(--red-ink); background: #FDF1EF; }
.hint { margin: .3rem 0 0; font-size: .85rem; color: var(--muted); }
.err { margin: .3rem 0 0; font-size: .9rem; color: var(--red-ink); font-weight: 600; }
.form-summary { margin-bottom: 1rem; padding: .9rem 1rem; border: 2px solid var(--red-ink); border-radius: var(--r); background: #FDF1EF; color: var(--ink); }
.form-summary ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-top: 1.3rem; }
.form-foot p { margin: 0; }
.form-ok, .form-fail { margin: 1rem 0 0; padding: .9rem 1rem; border-radius: var(--r); }
.form-ok { display: flex; gap: .6rem; background: #E3F2F1; border: 2px solid var(--teal-ink); }
.form-ok .ic { color: var(--teal-ink); margin-top: 2px; }
.form-fail { background: #FDF1EF; border: 2px solid var(--red-ink); }
.form-ok[hidden], .form-fail[hidden] { display: none; }
.hp { position: absolute; left: -9999px; }
.visit { background: var(--paper); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow); display: grid; gap: .8rem; }
.visit .h-sm { margin: 0; }

/* ---------- inner page band ---------- */
.band { position: relative; padding: clamp(2.2rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem); background: var(--ground-2); overflow: hidden; }
.band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--hazard); }
.band-in { position: relative; }
.band h1 { font-size: clamp(2.1rem, 4vw + .6rem, 3.7rem); max-width: 16ch; }
.band .lead { max-width: 60ch; }
.crumbs { display: flex; gap: .5rem; font-size: .92rem; margin-bottom: 1rem; color: var(--muted); }
.band-gear { position: absolute; right: -10px; top: -10px; opacity: .9; }
.band-gear .spin { animation-duration: 24s; }
.band-belt { max-width: 420px; margin: 1.4rem 0 0; }
@media (max-width: 767.98px) { .band-gear { width: 90px; height: 90px; right: -24px; top: -26px; } }

.sec { padding: clamp(2.8rem, 6vw, 5rem) 0; }
.sec-alt { background: var(--ground-2); }
.sec-dark { background: var(--ink); color: #fff; }
.sec-dark h2, .sec-dark h3 { color: #fff; }
.sec-dark .sec-lead, .sec-dark .muted { color: var(--on-dark-2); }

/* placeholders */
.tbc { margin: 1rem 0; padding: .9rem 1.1rem; border: 2px dashed var(--grey); border-radius: var(--r); background: rgba(255, 255, 255, .6); color: var(--ink); max-width: 68ch; }
.tbc-k { font-weight: 600; color: var(--teal-ink); }
.tbc-box { padding: 1.2rem 1.3rem; border: 2px dashed var(--grey); border-radius: var(--r); background: rgba(255, 255, 255, .6); }
.tbc-box .tbc-k { margin-bottom: .4rem; }
.ex-list { margin: 0; padding-left: 1.2rem; }
.ex-list li { margin-bottom: .35rem; }

/* about */
.file { background: var(--paper); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow); }
.file-list { margin: 0 0 1rem; }
.file-list div { display: grid; grid-template-columns: 6rem 1fr; gap: .8rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.file-list dt { color: var(--muted); font-size: .92rem; }
.file-list dd { margin: 0; }
.topics { width: 100%; border-collapse: collapse; }
.topics th { text-align: left; font-weight: 500; padding: .55rem 1rem .55rem 0; width: 42%; }
.topics td { padding: .55rem 0; display: flex; align-items: center; gap: .6rem; }
.bar { display: block; height: 18px; width: calc(var(--n) * 18%); border-radius: 3px; background: var(--hazard); }
.bar-n { font-weight: 600; }
.topics tr { border-bottom: 1px solid var(--line); }

/* classes */
.table-wrap { overflow-x: auto; }
.ages { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.ages caption { caption-side: top; text-align: left; font-weight: 600; padding-bottom: .5rem; color: var(--muted); }
.ages th, .ages td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.ages thead th { background: var(--grey); color: #fff; font-weight: 600; }
.tbc-cell { color: var(--muted); font-style: italic; }
.ws-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; counter-reset: none; }
.ws { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: start; padding: 1.2rem; border-radius: var(--r-lg); background: var(--grey-2); border: 2px solid var(--grey); }
.ws h3 { margin-bottom: .35rem; }
.ws p { margin-bottom: .4rem; }
.ws-no { display: grid; place-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--yel); color: var(--ink); font-family: var(--display); font-size: 1.5rem; }
@media (min-width: 992px) { .ws-list { grid-template-columns: repeat(5, 1fr); } .ws { grid-template-columns: 1fr; } }

/* admissions */
.steps { list-style: none; margin: 1.8rem 0 1.4rem; padding: 0; display: grid; gap: 1rem; position: relative; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; align-items: start; background: var(--paper); border-radius: var(--r-lg); padding: 1.1rem 1.2rem; box-shadow: 0 6px 16px -12px rgba(31, 36, 48, .5); }
.step h3 { margin-bottom: .3rem; }
.step p { margin: 0; }
.step-no { display: grid; place-content: center; width: 52px; height: 52px; border-radius: 10px; background: var(--ink); color: var(--yel); font-family: var(--display); font-size: 1.4rem; }
@media (min-width: 992px) { .steps { grid-template-columns: repeat(5, 1fr); } .step { grid-template-columns: 1fr; } }
.faqs { display: grid; gap: .6rem; }
.faq { background: var(--paper); border-radius: var(--r); border: 2px solid var(--line); }
.faq summary { cursor: pointer; padding: .9rem 1rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; min-height: 48px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--yel) conic-gradient(var(--ink) 0 0); -webkit-mask: radial-gradient(circle, transparent 3px, #000 3.5px); mask: radial-gradient(circle, transparent 3px, #000 3.5px); transition: transform .35s var(--ease); }
.faq[open] summary::after { transform: rotate(180deg); background: var(--teal); }
.faq[open] { border-color: var(--teal); }
.faq p { padding: 0 1rem 1rem; margin: 0; }

/* campus */
.shots { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.shot-btn { position: relative; display: block; width: 100%; padding: 10px; border: 0; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow); cursor: zoom-in; text-align: left; transition: transform .3s var(--ease); }
.shot-btn:hover { transform: translateY(-3px) rotate(-.4deg); }
.shot-btn img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.shot-cap { display: block; padding: .6rem .2rem .1rem; font-weight: 600; }
@media (min-width: 992px) { .shots { grid-template-columns: repeat(6, 1fr); } .s0, .s1, .s2 { grid-column: span 2; } .s3, .s4 { grid-column: span 3; } }
.lightbox { border: 0; padding: 0; border-radius: var(--r-lg); background: var(--ink); color: #fff; width: min(92vw, 900px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(31, 36, 48, .8); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: 70vh; object-fit: contain; background: #000; }
.lightbox figcaption { padding: .8rem 1rem 0; color: var(--on-dark-2); }
.lb-bar { display: flex; flex-wrap: wrap; gap: .6rem; padding: 1rem; }
.lb-close { margin-left: auto; border-color: #fff; }
.notes { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem; }
.note { position: relative; background: var(--paper); padding: 1.1rem 1.2rem 1rem; border-radius: 4px; box-shadow: 0 6px 16px -10px rgba(31, 36, 48, .45); }
.note:nth-child(2) { transform: rotate(.6deg); } .note:nth-child(3) { transform: rotate(-.5deg); }
.note-pin { position: absolute; top: -7px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--red); box-shadow: 0 2px 3px rgba(0, 0, 0, .3); }
.note h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.note p { margin: 0; color: var(--muted); }

/* contact */
.reach { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .6rem; }
.reach-a { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; border-radius: var(--r); background: var(--paper); border: 2px solid var(--ink); color: var(--ink); text-decoration: none; }
.reach-a .ic { width: 26px; height: 26px; color: var(--teal-ink); }
.reach-a span { display: grid; }
.reach-a strong { font-family: var(--display); font-weight: 400; font-size: 1.1rem; }
.reach-a:hover { background: var(--yel); color: var(--ink); }
.hours { width: 100%; border-collapse: collapse; margin: 1rem 0; background: var(--paper); border-radius: var(--r); overflow: hidden; }
.hours caption { caption-side: bottom; text-align: left; font-size: .88rem; color: var(--muted); padding-top: .5rem; }
.hours th, .hours td { text-align: left; padding: .6rem 1rem; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 500; }
.hours tr.today { background: #FFF3CF; }
.hours tr.today th { font-weight: 600; }
.today-tag { color: var(--teal-ink); font-weight: 600; }
.map-card { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.map-fallback { padding: 1.5rem; }
.map-addr { display: flex; gap: .7rem; }
.map-addr .ic { color: var(--red-ink); margin-top: 3px; }
.map-card iframe { display: block; width: 100%; height: 400px; border: 0; }

/* ---------- footer ---------- */
.foot { background: var(--grey-2); color: #fff; padding: 3.5rem 0 2rem; position: relative; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--hazard); }
.foot a { color: #fff; }
.foot a:hover { color: var(--yel); }
.foot-logo { width: 236px; height: auto; }
.foot-note { font-size: .85rem; color: var(--on-dark-2); margin: .6rem 0 1.2rem; }
.foot-line { display: flex; gap: .6rem; margin: 0 0 .7rem; }
.foot-line .ic { color: var(--yel); margin-top: 3px; }
.foot .open-txt { color: var(--yel); }
.foot-h { font-size: 1.75rem; color: #fff; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.foot-links a { display: inline-flex; align-items: center; min-height: 40px; }
.foot-small { font-size: .92rem; color: var(--on-dark-2); }
.foot-base { margin: 2rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .85rem; color: var(--on-dark-2); max-width: none; }

/* ---------- phone action bar ---------- */
.act-bar { display: none; }
@media (max-width: 991.98px) {
  body { padding-bottom: 66px; }
  .act-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    background: var(--ink); border-top: 4px solid var(--yel); padding-bottom: env(safe-area-inset-bottom);
  }
  .act-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; color: #fff; text-decoration: none; font-size: .85rem; font-weight: 600; }
  .act-bar a + a { border-left: 1px solid rgba(255, 255, 255, .15); }
  .act-bar .ic { color: var(--yel); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .sheet .lid, .sheet .box { transform: none; }
}
