:root {
  --pv-blue: #025A9E;        /* official Parkview blue (from district logo) */
  --pv-blue-deep: #02375f;
  --pv-blue-sky: #e6f0fa;
  --pv-gold: #ffd23f;        /* imagination accent, used sparingly */
  --ink: #14204a;
  --bg: #f4f7ff;
  --card: #ffffff;
  --muted: #5c688f;
  --radius: 18px;
  --team-color: var(--pv-blue);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

/* ---------- the disciplines built this page ----------
   left half = fine arts (paint washes), right half = engineering (blueprint grid) */
body::before, body::after {
  content: ""; position: fixed; top: 0; bottom: 0; width: 58%;
  pointer-events: none; z-index: 0;
}
body::before {          /* engineering: working blueprint sheet, fades toward center */
  right: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 420' fill='none' stroke='%23025A9E' stroke-opacity='.45' stroke-width='2'%3E%3Ccircle cx='120' cy='120' r='62' stroke-dasharray='7 7'/%3E%3Ccircle cx='120' cy='120' r='30'/%3E%3Cline x1='120' y1='38' x2='120' y2='202'/%3E%3Cline x1='38' y1='120' x2='202' y2='120'/%3E%3Cpath d='M250 84h110M250 84l14-7v14zM360 84l-14-7v14z'/%3E%3Ctext x='272' y='72' font-size='17' font-family='monospace' fill='%23025A9E' fill-opacity='.55' stroke='none'%3E24.50%3C/text%3E%3Crect x='244' y='210' width='130' height='88' stroke-dasharray='5 5'/%3E%3Ccircle cx='309' cy='254' r='26'/%3E%3Ccircle cx='309' cy='254' r='9'/%3E%3Cpath d='M60 300l40 70M100 300l-40 70' stroke-dasharray='4 4'/%3E%3C/svg%3E") no-repeat 92% 16% / 360px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 420' fill='none' stroke='%23025A9E' stroke-opacity='.4' stroke-width='2'%3E%3Ccircle cx='210' cy='210' r='80' stroke-dasharray='6 6'/%3E%3Ccircle cx='210' cy='210' r='44'/%3E%3Cpath d='M210 118v-26M210 328v-26M118 210H92M328 210h-26M146 146l-18-18M292 292l-18-18M274 146l18-18M128 292l18-18'/%3E%3Ctext x='168' y='330' font-size='16' font-family='monospace' fill='%23025A9E' fill-opacity='.5' stroke='none'%3EGEAR-07%3C/text%3E%3C/svg%3E") no-repeat 86% 72% / 260px,
    repeating-linear-gradient(to right,  rgba(2,90,158,.10) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(to bottom, rgba(2,90,158,.10) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(to right,  rgba(2,90,158,.18) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(to bottom, rgba(2,90,158,.18) 0 1px, transparent 1px 120px),
    linear-gradient(to left, rgba(2,90,158,.12), transparent 80%);
  -webkit-mask-image: linear-gradient(to left, black 55%, transparent);
  mask-image: linear-gradient(to left, black 55%, transparent);
}
body::after {           /* fine arts: paint-splattered canvas, fades toward center */
  left: 0;
  opacity: .6;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'%3E%3Cpath fill='%23d6455f' d='M110 25c30-12 68 8 75 40s-14 50-8 78-28 45-60 38-62 10-78-18 2-50-4-76 45-50 75-62z'/%3E%3Ccircle cx='32' cy='52' r='11' fill='%23d6455f'/%3E%3Ccircle cx='196' cy='168' r='8' fill='%23d6455f'/%3E%3Ccircle cx='60' cy='198' r='6' fill='%23d6455f'/%3E%3C/svg%3E") no-repeat 2% 6% / 220px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'%3E%3Cpath fill='%232a9d8f' d='M110 25c30-12 68 8 75 40s-14 50-8 78-28 45-60 38-62 10-78-18 2-50-4-76 45-50 75-62z'/%3E%3Ccircle cx='32' cy='52' r='11' fill='%232a9d8f'/%3E%3Ccircle cx='196' cy='168' r='8' fill='%232a9d8f'/%3E%3C/svg%3E") no-repeat 30% 26% / 150px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'%3E%3Cpath fill='%23ffd23f' d='M110 25c30-12 68 8 75 40s-14 50-8 78-28 45-60 38-62 10-78-18 2-50-4-76 45-50 75-62z'/%3E%3Ccircle cx='32' cy='52' r='11' fill='%23ffd23f'/%3E%3Ccircle cx='196' cy='168' r='8' fill='%23ffd23f'/%3E%3Ccircle cx='60' cy='198' r='6' fill='%23ffd23f'/%3E%3C/svg%3E") no-repeat 0% 46% / 280px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'%3E%3Cpath fill='%238b5cf6' d='M110 25c30-12 68 8 75 40s-14 50-8 78-28 45-60 38-62 10-78-18 2-50-4-76 45-50 75-62z'/%3E%3Ccircle cx='196' cy='168' r='8' fill='%238b5cf6'/%3E%3Ccircle cx='60' cy='198' r='6' fill='%238b5cf6'/%3E%3C/svg%3E") no-repeat 16% 66% / 190px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'%3E%3Cpath fill='%23d6455f' d='M110 25c30-12 68 8 75 40s-14 50-8 78-28 45-60 38-62 10-78-18 2-50-4-76 45-50 75-62z'/%3E%3Ccircle cx='32' cy='52' r='11' fill='%23d6455f'/%3E%3C/svg%3E") no-repeat 4% 92% / 150px,
    linear-gradient(to right, #fbeed3 0%, rgba(251,238,211,.55) 45%, transparent 75%);
  -webkit-mask-image: linear-gradient(to right, black 55%, transparent);
  mask-image: linear-gradient(to right, black 55%, transparent);
}
.topbar, main, .footer { position: relative; z-index: 1; }
h1, h2, h3, .brand-text, .btn { font-family: "Fredoka", "Nunito", sans-serif; }
main { margin: 0; padding: 0; }
.page { max-width: 960px; margin: 0 auto; padding: 0 16px; }
a { color: var(--pv-blue); }

/* ---------- top bar (centered) ---------- */
.topbar {
  display: flex; justify-content: center; align-items: center;
  padding: 12px 16px;
  background: var(--pv-blue-deep);
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand-badge {
  background: var(--pv-gold); color: var(--pv-blue-deep); font-weight: 700;
  font-family: "Fredoka", sans-serif;
  border-radius: 12px; padding: 6px 10px; font-size: 1.15rem;
  transform: rotate(-4deg);
}
.brand:hover .brand-badge { animation: wiggle .5s ease; }
@keyframes wiggle { 0%,100%{transform:rotate(-4deg)} 33%{transform:rotate(5deg)} 66%{transform:rotate(-7deg)} }
.brand-text { font-size: 1.1rem; letter-spacing: .3px; }
.topbar { justify-content: space-between; }
.topbar-link {
  color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem;
  background: rgba(255,255,255,.14); border: 1.5px dashed rgba(255,255,255,.5);
  border-radius: 10px; padding: 7px 13px; transition: background .15s;
}
.topbar-link:hover { background: rgba(255,255,255,.26); }

/* coaches' board */
.board-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.board-links .btn { text-decoration: none; display: inline-block; }
.board .team-panel { border-top-color: var(--team-color); }
.panel-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; }
@media (max-width: 640px) { .panel-grid { grid-template-columns: 1fr; } }
.mini-label { display: block; font-size: .82rem; color: var(--muted); font-weight: 700; margin: 0 0 4px; }
.mini-label input { margin-top: 4px; font-weight: 400; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  text-align: center;
  padding: 72px 16px 110px;
  color: #fff;
  background:
    radial-gradient(1100px 500px at 50% -10%, #1173c2 0%, transparent 60%),
    linear-gradient(160deg, var(--pv-blue-deep) 0%, var(--pv-blue) 55%, #2f83c9 100%);
}
.hero-kicker {
  margin: 0 0 6px; font-size: .95rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: #a9cbe8;
}
.hero-viking {
  width: 148px; height: auto; background: #fff;
  border-radius: 20px; padding: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  transform: rotate(-3deg);
  margin-bottom: 14px; position: relative;
  opacity: 0; animation: popin .6s cubic-bezier(.2,1.4,.4,1) .05s forwards;
}
.viking-wrap { position: relative; display: inline-block; }
.viking-wrap::before {
  content: ""; position: absolute; top: -8px; left: 50%; z-index: 2;
  width: 70px; height: 20px; transform: translateX(-50%) rotate(4deg);
  background: rgba(255,210,63,.75); border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.hero h1 { margin: 0; font-size: clamp(2.4rem, 7vw, 4.2rem); font-weight: 700; line-height: 1.15; text-shadow: 0 3px 14px rgba(0,0,0,.45); }
.hero h1 span { display: inline-block; opacity: 0; animation: popin .6s cubic-bezier(.2,1.4,.4,1) forwards; }
.hero h1 .w1 {            /* Imagine = the art side: handwritten brush */
  animation-delay: .1s;
  font-family: "Caveat", cursive; font-size: 1.2em;
  transform: rotate(-3deg); color: #ffd8e8;
}
.hero h1 .w2 {            /* Build = the engineering side: stamped part label */
  animation-delay: .35s;
  font-family: "IBM Plex Mono", monospace; font-size: .62em;
  color: var(--pv-gold); letter-spacing: .05em;
  border: 3px dashed rgba(255,255,255,.7); border-radius: 6px;
  padding: 4px 16px; background: rgba(3,26,54,.45);
  vertical-align: .12em;
}
.hero h1 .w3 { animation-delay: .6s; }
@keyframes popin { from { opacity: 0; transform: translateY(24px) scale(.85); } to { opacity: 1; transform: none; } }
.hero-sub { font-size: 1.25rem; margin: 14px auto 26px; max-width: 560px; color: #dbe6ff; }
.hero-sub em { color: var(--pv-gold); font-style: normal; font-weight: 800; }
.footer-viking { width: 64px; opacity: .85; display: block; margin: 0 auto 8px; }
.hero-btn {
  background: #fff; color: var(--pv-blue-deep);
  font-size: 1.05rem; padding: 13px 26px; border-radius: 99px;
  box-shadow: 0 6px 22px rgba(0,0,0,.25);
  text-decoration: none; display: inline-block;
  transition: transform .15s;
}
.hero-btn:hover { transform: translateY(-3px) scale(1.04); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; }
.hero > :not(.hero-wave):not(.hero-doodles) { position: relative; z-index: 1; }
.hero-wave, .hero-doodles { z-index: 1; }
.hero::before {         /* ART half: painted canvas, hard diagonal edge */
  content: ""; position: absolute; inset: 0; z-index: 0;
  clip-path: polygon(0 0, 56% 0, 44% 100%, 0 100%);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'%3E%3Cpath fill='%23ffd23f' fill-opacity='.85' d='M110 25c30-12 68 8 75 40s-14 50-8 78-28 45-60 38-62 10-78-18 2-50-4-76 45-50 75-62z'/%3E%3Ccircle cx='32' cy='52' r='11' fill='%23ffd23f'/%3E%3Ccircle cx='196' cy='168' r='8' fill='%23ffd23f'/%3E%3C/svg%3E") no-repeat 6% 70% / 240px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'%3E%3Cpath fill='%23ff5d8f' fill-opacity='.8' d='M110 25c30-12 68 8 75 40s-14 50-8 78-28 45-60 38-62 10-78-18 2-50-4-76 45-50 75-62z'/%3E%3Ccircle cx='196' cy='168' r='8' fill='%23ff5d8f'/%3E%3Ccircle cx='60' cy='198' r='6' fill='%23ff5d8f'/%3E%3C/svg%3E") no-repeat 2% 8% / 200px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'%3E%3Cpath fill='%2340e0cf' fill-opacity='.75' d='M110 25c30-12 68 8 75 40s-14 50-8 78-28 45-60 38-62 10-78-18 2-50-4-76 45-50 75-62z'/%3E%3Ccircle cx='32' cy='52' r='11' fill='%2340e0cf'/%3E%3C/svg%3E") no-repeat 24% 34% / 150px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80'%3E%3Cpath fill='%23c084fc' fill-opacity='.7' d='M8 44c60-24 140-30 210-22 70 8 132-2 174 10-38 18-108 26-178 22-70-4-146 16-206-10z'/%3E%3C/svg%3E") no-repeat 0% 94% / 340px,
    linear-gradient(115deg, #7b2d8b 0%, #a03a75 45%, rgba(160,58,117,.25) 78%, transparent 100%);
}
.hero::after {          /* ENGINEERING half: dark blueprint sheet, hard diagonal edge */
  content: ""; position: absolute; inset: 0; z-index: 0;
  clip-path: polygon(56% 0, 100% 0, 100% 100%, 44% 100%);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 420' fill='none' stroke='white' stroke-opacity='.5' stroke-width='2'%3E%3Ccircle cx='120' cy='120' r='62' stroke-dasharray='7 7'/%3E%3Ccircle cx='120' cy='120' r='30'/%3E%3Cline x1='120' y1='38' x2='120' y2='202'/%3E%3Cline x1='38' y1='120' x2='202' y2='120'/%3E%3Cpath d='M250 84h110M250 84l14-7v14zM360 84l-14-7v14z'/%3E%3Ctext x='272' y='72' font-size='17' font-family='monospace' fill='white' fill-opacity='.6' stroke='none'%3E24.50%3C/text%3E%3Crect x='244' y='210' width='130' height='88' stroke-dasharray='5 5'/%3E%3Ccircle cx='309' cy='254' r='26'/%3E%3Ccircle cx='309' cy='254' r='9'/%3E%3C/svg%3E") no-repeat 94% 24% / 330px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 420' fill='none' stroke='white' stroke-opacity='.4' stroke-width='2'%3E%3Ccircle cx='210' cy='210' r='80' stroke-dasharray='6 6'/%3E%3Ccircle cx='210' cy='210' r='44'/%3E%3Cpath d='M210 118v-26M210 328v-26M118 210H92M328 210h-26M146 146l-18-18M292 292l-18-18M274 146l18-18M128 292l18-18'/%3E%3Ctext x='168' y='330' font-size='16' font-family='monospace' fill='white' fill-opacity='.5' stroke='none'%3EGEAR-07%3C/text%3E%3C/svg%3E") no-repeat 70% 88% / 210px,
    repeating-linear-gradient(to right,  rgba(255,255,255,.14) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.14) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(to right,  rgba(255,255,255,.22) 0 1px, transparent 1px 140px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.22) 0 1px, transparent 1px 140px),
    linear-gradient(245deg, #031a36 0%, #06355e 60%, rgba(6,53,94,.3) 85%, transparent 100%);
}

/* floating doodles */
.hero-doodles { position: absolute; inset: 0; pointer-events: none; }
.doodle {
  position: absolute; font-size: 1.9rem; opacity: .8;
  animation: floaty 6s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.25));
}
/* art doodles live on the painted left; engineering doodles on the blueprint right */
.d1 { top: 16%; right: 10%; animation-delay: 0s; }                        /* bulb */
.d2 { top: 38%; left: 15%;  animation-delay: 1.1s; font-size: 1.4rem; }   /* star */
.d3 { top: 60%; right: 8%;  animation-delay: 2s; }                        /* rocket */
.d4 { top: 34%; right: 18%; animation-delay: .6s; }                       /* gear */
.d5 { top: 20%; left: 9%;   animation-delay: 1.6s; font-size: 1.7rem; }   /* palette */
.d6 { top: 78%; right: 17%; animation-delay: 2.4s; font-size: 1.5rem; }   /* microscope */
.d7 { top: 55%; left: 6%;   animation-delay: 3s; font-size: 1.8rem; }     /* masks */
.d8 { top: 12%; left: 22%;  animation-delay: .3s; font-size: 1.3rem; }    /* sparkle */
.d9 { top: 76%; left: 18%;  animation-delay: 1.9s; font-size: 1.6rem; }   /* music note */
.d10 { top: 12%; right: 26%; animation-delay: 2.8s; font-size: 1.3rem; }  /* wrench */
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%      { transform: translateY(-18px) rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .doodle, .hero h1 span { animation: none !important; opacity: 1; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- carousel ---------- */
.carousel {
  position: relative; max-width: 960px; margin: -46px auto 8px; padding: 0 16px;
  height: min(52vw, 440px); z-index: 2;
}
.slide {
  position: absolute; inset: 0 16px; opacity: 0; transition: opacity 1s ease;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 10px 30px rgba(14,42,122,.25);
}
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 18px 12px; color: #fff; font-weight: 700;
  background: linear-gradient(transparent, rgba(10,20,60,.75));
}
.carousel-dots {
  position: absolute; bottom: 12px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px; z-index: 3;
}
.dot {
  width: 11px; height: 11px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.55); transition: transform .2s, background .2s;
}
.dot.on { background: var(--pv-gold); transform: scale(1.25); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i, 0) * 60ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- cards ---------- */
.card {
  background: var(--card); border-radius: var(--radius);
  padding: 22px 24px; margin: 22px 0;
  box-shadow: 0 3px 14px rgba(14,42,122,.08);
  border-top: 4px solid var(--pv-blue);
}
.card { position: relative; }
.card h2 {
  margin-top: 0; font-size: 1.35rem; color: var(--pv-blue-deep);
  display: flex; align-items: center; gap: 10px;
  position: relative; padding-bottom: 16px;
  /* five-line music staff under every section title */
  background: repeating-linear-gradient(to bottom, rgba(2,90,158,.22) 0 1px, transparent 1px 4px)
              left bottom / 170px 13px no-repeat;
}
.card h2::after {
  content: "\266A \2009 \266B";           /* ♪ ♫ resting on the staff */
  position: absolute; left: 122px; bottom: 1px;
  font-size: .95rem; color: var(--pv-blue); opacity: .75;
}
.h-ico { font-size: 1.3rem; }
.mission { border-top-color: var(--pv-gold); }
.mission p { font-size: 1.12rem; line-height: 1.65; }
.muted { color: var(--muted); }
.center { text-align: center; }
.error { color: #d33; font-weight: 700; }
.pill { background: var(--pv-blue-sky); border-radius: 99px; padding: 2px 10px; font-size: .75rem; }
.pill.warn { background: #ffe9d6; color: #a04d00; }

/* ---------- events ---------- */
.events { list-style: none; padding: 0; margin: 0; }
.events li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed #dfe6fa; align-items: flex-start; }
.events li:last-child { border-bottom: none; }
.event-when {
  flex: 0 0 auto; text-align: center; background: var(--pv-blue); color: #fff;
  border-radius: 12px; padding: 8px 12px; min-width: 74px;
}
.event-month { display: block; font-family: "Fredoka", sans-serif; font-size: 1.15rem; font-weight: 600; }
.event-year { display: block; font-size: .7rem; opacity: .85; }
.event-title { font-weight: 800; font-size: 1.05rem; display: block; }
.event-meta { color: var(--muted); font-size: .9rem; }
.event-details { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: 12px; }
.gallery img { width: 100%; height: 140px; object-fit: cover; border-radius: 12px; transition: transform .3s ease; display: block; }
.gallery figure:hover img { transform: scale(1.07) rotate(1deg); }
.gallery figcaption { font-size: .8rem; color: var(--muted); padding-top: 3px; }
.gallery.small img { height: 90px; }

/* ---------- team tiles ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.team-tile {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  background: linear-gradient(140deg, var(--team-color), color-mix(in srgb, var(--team-color) 65%, #001a66));
  color: #fff; text-decoration: none;
  border-radius: var(--radius); padding: 20px 18px;
  font-weight: 700; font-size: 1.1rem;
  transition: transform .18s cubic-bezier(.2,1.4,.4,1), box-shadow .18s;
  box-shadow: 0 4px 12px rgba(14,42,122,.15);
}
.team-tile:hover { transform: translateY(-5px) rotate(-1deg) scale(1.03); box-shadow: 0 12px 26px rgba(14,42,122,.28); }
.team-emoji { font-size: 1.9rem; }
.team-name { font-family: "Fredoka", sans-serif; font-size: 1.2rem; }
.team-lock { font-size: .8rem; font-weight: 600; opacity: .9; }

/* ---------- buttons + forms ---------- */
.btn {
  background: var(--pv-blue); color: #fff; border: none; border-radius: 12px;
  padding: 9px 18px; font-size: .95rem; font-weight: 600; cursor: pointer;
  transition: transform .12s, filter .12s;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn.big { padding: 13px 24px; font-size: 1.05rem; border-radius: 14px; }
.btn.tiny { padding: 2px 8px; font-size: .75rem; }
.btn.danger { background: #e05555; }
input, select, textarea {
  font: inherit; padding: 10px 12px; border: 2px solid #d8e0f6; border-radius: 12px;
  background: #fff; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pv-blue); }
.stack { display: flex; flex-direction: column; gap: 10px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form input { width: auto; flex: 1; min-width: 120px; }
.inline-form input[type=color] { flex: 0; min-width: 48px; padding: 2px; height: 42px; }
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; margin: 10px 0; }
.grid-form label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); }
.grid-form .wide { grid-column: 1 / -1; }
.login-card { max-width: 440px; margin: 48px auto; text-align: center; border-top: 8px solid var(--team-color); }

/* ---------- team room ---------- */
.room { max-width: 900px; margin: 0 auto; padding: 8px 16px; }
.room-head {
  position: relative; overflow: hidden;
  background:
    radial-gradient(180px 120px at 96% 10%, color-mix(in srgb, var(--team-color) 30%, transparent), transparent 70%),
    repeating-linear-gradient(to right,  rgba(2,90,158,.06) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(to bottom, rgba(2,90,158,.06) 0 1px, transparent 1px 24px),
    #fff;
  border-radius: var(--radius); padding: 20px 22px; margin: 18px 0;
  border-left: 10px solid var(--team-color);
  box-shadow: 0 3px 14px rgba(14,42,122,.1);
}
.room-head::after {
  content: "\1F3AD"; position: absolute; right: 14px; bottom: -12px;
  font-size: 3.4rem; opacity: .12; transform: rotate(-12deg);
}
.room-head h1 {
  margin: 0 0 4px; color: var(--team-color);
  display: inline-block;
  background: repeating-linear-gradient(to bottom, rgba(2,90,158,.2) 0 1px, transparent 1px 4px)
              left bottom / 140px 13px no-repeat;
  padding-bottom: 16px;
}
.reminders { background: #fffbe8; border-top-color: var(--pv-gold); }
.reminders ul { margin: 0; padding-left: 18px; }
.feed { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.post {
  background: var(--card); border-radius: 14px; padding: 11px 15px;
  box-shadow: 0 1px 6px rgba(14,42,122,.07);
  animation: postin .35s ease;
  border-left: 4px solid color-mix(in srgb, var(--team-color) 45%, transparent);
}
.room .post-img {
  background: #fff; padding: 7px 7px 20px; border-radius: 4px;
  box-shadow: 0 4px 12px rgba(14,42,122,.16); transform: rotate(-1.5deg);
}
.room .post:nth-child(2n) .post-img { transform: rotate(1.5deg); }
.composer.card {
  border-top: none;
  background:
    repeating-linear-gradient(to right,  rgba(2,90,158,.05) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(to bottom, rgba(2,90,158,.05) 0 1px, transparent 1px 22px),
    #fff;
  border: 2px dashed color-mix(in srgb, var(--team-color) 55%, transparent);
}
@keyframes postin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.post-reminder { background: #fffbe8; }
.post-head { display: flex; align-items: baseline; gap: 10px; }
.post-head form { margin-left: auto; }
.author { font-weight: 800; color: var(--team-color); }
.when { font-size: .75rem; color: var(--muted); }
.post-body { margin: 6px 0 2px; white-space: pre-wrap; }
.post-img { max-width: 340px; max-height: 340px; border-radius: 12px; display: block; margin-top: 6px; }
.doc-chip {
  display: inline-block; background: var(--pv-blue-sky); border-radius: 10px;
  padding: 7px 13px; margin-top: 6px; text-decoration: none; font-weight: 700;
}
.tombstone { background: #f0f1f6; color: var(--muted); font-size: .85rem; }
.post-flagged { border: 2px solid #e2711d; }
.flag-note { color: #a04d00; font-size: .78rem; font-weight: 800; margin-bottom: 4px; }
.btn.ghost { background: transparent; color: var(--muted); padding: 2px 6px; }
.btn.ghost:hover { background: #f0f1f6; transform: none; }
.composer textarea { margin: 8px 0; }
.composer-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.composer-row select { width: auto; flex: 1; }
.composer-row input[type=file] { flex: 1; border: none; padding: 0; }
.coach-login { margin: 10px 0; }
.coach-login summary { cursor: pointer; color: var(--muted); font-size: .85rem; }
.coach-login form { max-width: 260px; margin-top: 8px; }

/* ---------- admin ---------- */
.admin { max-width: 960px; margin: 0 auto; padding: 8px 16px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; }
.team-admin { border-left: 6px solid var(--team-color); padding: 8px 12px; margin: 8px 0; background: #f8faff; border-radius: 10px; }
.team-admin summary { cursor: pointer; }
.team-admin summary a { margin-left: 8px; font-size: .85rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; }
.chips li { background: var(--pv-blue-sky); border-radius: 99px; padding: 4px 6px 4px 12px; display: flex; align-items: center; gap: 4px; }
.chips form { display: inline; }
.chip-x { border: none; background: none; cursor: pointer; color: #d33; font-size: 1rem; }
.link-admin { list-style: none; padding: 0; margin: 4px 0 10px; }
.link-admin li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.link-admin form { margin-left: auto; }
.log { width: 100%; font-size: .8rem; border-collapse: collapse; }
.log td { padding: 4px 8px; border-bottom: 1px solid #e8ecf8; }

/* ---------- disciplines mash-up ---------- */
.disciplines { margin: 26px 0; text-align: center; }
.scribble-title {
  display: inline-block; font-size: 1.6rem; color: var(--pv-blue-deep); margin: 0 0 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12'%3E%3Cpath d='M3 8 C40 2 70 11 105 6 C140 1 170 10 197 5' fill='none' stroke='%23ffd23f' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat bottom / 100% 10px;
  padding-bottom: 12px;
}
.disc-intro { max-width: 620px; margin: 6px auto 20px; color: var(--muted); font-size: 1.05rem; }
.sticker-board {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 12px;
  padding: 8px 0 4px;
}
.sticker {
  position: relative; width: 172px; padding: 18px 12px 12px;
  border-radius: 14px; color: #fff; text-align: center;
  display: flex; flex-direction: column; gap: 3px; align-items: center;
  box-shadow: 0 5px 14px rgba(14,42,122,.18);
  transform: rotate(var(--tilt, -2deg));
  transition: transform .18s cubic-bezier(.2,1.4,.4,1);
}
.sticker:hover { transform: rotate(0deg) scale(1.06); z-index: 2; }
.sticker::before {              /* washi tape strip */
  content: ""; position: absolute; top: -9px; left: 50%;
  width: 64px; height: 18px; transform: translateX(-50%) rotate(var(--tape, 3deg));
  background: rgba(255,255,255,.45); border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.sticker strong { font-family: "Fredoka", sans-serif; font-size: 1.05rem; }
.sticker small { font-size: .78rem; line-height: 1.25; opacity: .95; }
.s-ico { font-size: 1.7rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.s-tech { background: #e2711d; --tilt: -3deg;  --tape: 4deg; }
.s-sci  { background: #2a9d8f; --tilt: 2deg;   --tape: -5deg; }
.s-eng  { background: #5062d8; --tilt: -1.5deg; --tape: 6deg; }
.s-art  { background: #d6455f; --tilt: 3deg;   --tape: -3deg; }
.s-imp  { background: #8b5cf6; --tilt: -2.5deg; --tape: 5deg; }
.s-srv  { background: #2f9e44; --tilt: 1.5deg; --tape: -6deg; }
.s-ris  { background: #e8a713; --tilt: -1deg;  --tape: 3deg; }

/* ---------- rules + coaches ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; align-items: start; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }
.rules-card { border-top-color: #e2711d; }
.coach-card { border-top-color: #2a9d8f; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { margin: 4px 0; }
.link-list a {
  display: block; padding: 9px 13px; border-radius: 11px;
  background: var(--pv-blue-sky); text-decoration: none; font-weight: 700;
  transition: transform .12s, background .12s;
}
.link-list a:hover { background: #d8e4ff; transform: translateX(4px); }
.link-list a::before { content: "\266A  "; color: var(--pv-blue); opacity: .7; }

/* discipline personalities per card */
.events-card {          /* engineering: drawn on graph paper */
  background-image:
    repeating-linear-gradient(to right,  rgba(2,90,158,.04) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(to bottom, rgba(2,90,158,.04) 0 1px, transparent 1px 22px);
}
.gear-card, .sci-card { overflow: hidden; }
.gear-card::before {    /* technical: giant gear watermark */
  content: "\2699\FE0F"; position: absolute; right: -18px; bottom: -26px;
  font-size: 8rem; opacity: .07; transform: rotate(18deg); pointer-events: none;
}
.sci-card::before {     /* scientific: flask watermark */
  content: "\1F9EA"; position: absolute; left: -14px; bottom: -22px;
  font-size: 6.5rem; opacity: .08; transform: rotate(-14deg); pointer-events: none;
}
.mask-peek { overflow: visible; }
.mask-peek::before {    /* improv masks peeking over the card edge */
  content: "\1F3AD"; position: absolute; top: -20px; right: 30px;
  font-size: 2.5rem; transform: rotate(12deg);
  filter: drop-shadow(0 3px 6px rgba(14,42,122,.3));
  animation: floaty 5s ease-in-out infinite;
}
.mission::before {      /* fine arts: paint stroke behind the title area */
  content: ""; position: absolute; top: 12px; left: -8px; width: 130px; height: 40px;
  background: radial-gradient(60px 26px at 40% 50%, rgba(255,210,63,.35), transparent 70%);
  pointer-events: none;
}

/* ---------- polaroid photo wall ---------- */
.polaroids { grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); }
.polaroids figure {
  background: #fff; padding: 8px 8px 4px; border-radius: 4px;
  box-shadow: 0 4px 12px rgba(14,42,122,.18);
  transform: rotate(-2deg); overflow: visible; position: relative;
  transition: transform .18s;
}
.polaroids figure:nth-child(2n)  { transform: rotate(2.2deg); }
.polaroids figure:nth-child(3n)  { transform: rotate(-1.2deg); }
.polaroids figure:nth-child(5n)  { transform: rotate(3deg); }
.polaroids figure:hover { transform: rotate(0) scale(1.05); z-index: 2; }
.polaroids figure::before {
  content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%) rotate(-4deg);
  width: 56px; height: 16px; background: rgba(255,210,63,.6); border-radius: 2px;
}
.polaroids img { border-radius: 2px; height: 150px; }
.polaroids figure:hover img { transform: none; }
.polaroids figcaption { font-family: "Fredoka", sans-serif; text-align: center; color: #445; padding: 5px 0 4px; }

/* ---------- site editor ---------- */
.editor-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px; margin: 14px 0;
}
.editor-photo {
  margin: 0; background: #fff; border-radius: 10px; padding: 8px;
  box-shadow: 0 3px 10px rgba(14,42,122,.14); cursor: grab; position: relative;
  border: 2px solid transparent;
}
.editor-photo:active { cursor: grabbing; }
.editor-photo.dragging { opacity: .5; border-color: var(--pv-gold); transform: rotate(2deg); }
.editor-photo img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; pointer-events: none; }
.caption-input {
  border: none; border-bottom: 2px dashed #dfe4f4; border-radius: 0; padding: 6px 2px;
  font-size: .85rem; width: 100%;
}
.caption-input:focus { border-bottom-color: var(--pv-blue); }
.caption-input.saved { border-bottom-color: #2f9e44; }
.photo-x {
  position: absolute; top: -8px; right: -8px; width: 26px; height: 26px;
  border-radius: 50%; border: none; background: #e05555; color: #fff;
  font-size: 1rem; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.save-note { color: #2f9e44; font-weight: 800; opacity: 0; transition: opacity .3s; margin: 4px 0; }
.save-note.show { opacity: 1; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 3px dashed #b9c6ea; border-radius: 14px; padding: 26px 16px;
  text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--pv-blue); background: var(--pv-blue-sky); }
.dropzone.busy { opacity: .5; pointer-events: none; }
.dz-big { font-family: "Fredoka", sans-serif; font-size: 1.2rem; color: var(--pv-blue-deep); }
.text-block { margin: 14px 0; display: flex; gap: 10px; align-items: flex-end; }
.text-block label { flex: 1; }
.text-block textarea { margin-top: 6px; }

/* ---------- footer ---------- */
.footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 28px 0 36px; }
.footer-tag { font-family: "Fredoka", sans-serif; color: var(--pv-blue); font-size: 1rem; margin-bottom: 6px; }
.footer a { color: var(--muted); }

@media (max-width: 600px) {
  .hero { padding: 48px 12px 96px; }
  .grid-form { grid-template-columns: 1fr; }
  .post-img { max-width: 100%; }
  .brand-text { font-size: .95rem; }
}
