:root {
  --pv-blue: #025A9E;
  --pv-blue-deep: #02375f;
  --pv-blue-ink: #021f36;
  --pv-blue-sky: #eaf2f9;
  --pv-gold: #ffc94a;
  --ink: #2c2a33;
  --text: #46424e;
  --muted: #7b7383;
  --bg: #e9dfc8;                 /* kraft paper table */
  --card: #fdfbf3;               /* paper sheets */
  --line: #e0d6bd;
  --cardboard: #c9a36b;
  --cardboard-ink: #7a5b33;
  --radius: 8px;
  --hand: "Shantell Sans", "Comic Sans MS", "Inter", sans-serif;
  --pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 46'%3E%3Crect x='6' y='2' width='8' height='42' rx='3.5' fill='%23cda672'/%3E%3Crect x='6' y='2' width='8' height='42' rx='3.5' fill='none' stroke='%23976f41' stroke-width='1.6'/%3E%3Cline x1='10' y1='18' x2='10' y2='42' stroke='%23976f41' stroke-width='1.3'/%3E%3Ccircle cx='10' cy='12.5' r='2.4' fill='none' stroke='%23857e72' stroke-width='1.6'/%3E%3C/svg%3E");
  --pushpin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cline x1='12' y1='15' x2='12' y2='29' stroke='%23857e72' stroke-width='2'/%3E%3Ccircle cx='12' cy='9' r='8' fill='%23e2554f'/%3E%3Ccircle cx='9' cy='6' r='2.6' fill='%23ffffff' fill-opacity='.55'/%3E%3C/svg%3E");
  --wobble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 44' preserveAspectRatio='none'%3E%3Cpath d='M5 7 C 30 3.5, 62 7.5, 114 5.5 C 117.5 14, 116 30, 115 38 C 82 41.5, 34 39.5, 6 39.5 C 3 31, 4 15, 5 7 Z' fill='none' stroke='%237a5b33' stroke-width='2.6' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
  /* real material grains, all procedural */
  --tex-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .18 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23p)'/%3E%3C/svg%3E");
  --tex-tooth: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='t'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .2 0 0 0 0 .15 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='90' height='90' filter='url(%23t)'/%3E%3C/svg%3E");
  --tex-board: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='110'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.35 .7' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .22 0 0 0 0 .1 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='110' height='110' filter='url(%23b)'/%3E%3C/svg%3E");
  --tex-fiberlong: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .28' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .16 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23f)'/%3E%3C/svg%3E");
  --tex-corkchip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='cc'%3E%3CfeTurbulence type='turbulence' baseFrequency='.16' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .78 0 0 0 0 .5 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='90' height='90' filter='url(%23cc)'/%3E%3C/svg%3E");
  --sh-sm: 0 1px 2px rgba(16,24,40,.05);
  --sh-md: 0 6px 18px -4px rgba(16,24,40,.1);
  --team-color: var(--pv-blue);
  /* discipline accents */
  --c-tech: #d97917; --c-sci: #14957f; --c-eng: #4f63d6; --c-art: #d64766;
  --c-imp: #7a5af5; --c-srv: #2e9e4f; --c-ris: #d9a410;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); letter-spacing: 0; }
h1, h2, .hero h1 { font-family: var(--hand); font-weight: 700; }
a { color: var(--pv-blue); }
.ico { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -4px; }

/* kraft-paper table: texture lives ON the body background so it scrolls with
   content — cheap tiled paint, no fixed layers to recomposite every frame */
body {
  background-image:
    var(--tex-fiberlong),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .25 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23k)'/%3E%3C/svg%3E");
}
.topbar, main, .footer { position: relative; z-index: 1; }
main { margin: 0; padding: 0; }
.page { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 22px;
  background: var(--pv-blue-ink);
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; }
.brand-badge {
  background: var(--pv-gold); color: var(--pv-blue-ink); font-weight: 700;
  font-family: var(--hand);
  border-radius: 4px; padding: 5px 9px; font-size: 1.05rem;
  transform: rotate(-4deg); transition: transform .2s;
}
.brand:hover .brand-badge { transform: rotate(3deg); }
.brand-text { font-size: 1rem; font-weight: 500; letter-spacing: .2px; }
.brand-text strong { font-weight: 700; }
.topbar-link {
  color: #fff; text-decoration: none; font-weight: 600; font-size: .85rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px; padding: 8px 14px; transition: background .15s;
  display: inline-flex; align-items: center; gap: 7px;
}
.topbar-link:hover { background: rgba(255,255,255,.2); }

/* ---------- film grain over everything ---------- */
body {
  position: relative;
}
main::after {
  content: ""; position: fixed; inset: 0; z-index: 99; pointer-events: none;
  opacity: .035; transform: translateZ(0);   /* own compositor layer, no blend mode */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .17 0 0 0 0 .12 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- hero: the project hangs on a clothesline ---------- */
.hero {
  position: relative; overflow: hidden;
  text-align: center;
  padding: 14px 20px 70px;
  color: var(--ink);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23c)'/%3E%3C/svg%3E"),
    linear-gradient(170deg, #1d5a9b 0%, #266cb4 60%, #3b7ec4 100%);
}
.rope { position: absolute; top: 0; left: 0; width: 100%; height: 130px; z-index: 1; }
.hang-wrap { position: relative; max-width: 780px; margin: 172px auto 0; }
.strings {
  position: absolute !important; left: 50%; top: 36px;
  transform: translateX(-50%);
  width: min(780px, calc(100% - 40px)); height: 168px;
  z-index: 0 !important;   /* strings hang BEHIND the rope and pennants */
  pointer-events: none;
}
.hang { position: relative; display: inline-block; }
.hang::before, .hang-title::after {
  content: ""; position: absolute; top: -30px; width: 17px; height: 40px; z-index: 3;
  background: var(--pin) no-repeat center / contain;
}
.hang::before { left: 18%; transform: rotate(-4deg); }
.hang-title::after { right: 18%; left: auto; transform: rotate(5deg); }
.hang-title  { animation: sway 7.5s ease-in-out infinite; transform-origin: top center; }
@keyframes sway { 0%,100% { transform: rotate(-.9deg); } 50% { transform: rotate(.9deg); } }
/* the Viking is duct-taped onto the project poster — big, school pride */
.taped-viking {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, -58%) rotate(-2.5deg);
  z-index: 4; display: inline-block;
}
.taped-viking::before, .taped-viking::after {
  content: ""; position: absolute; z-index: 3; width: 74px; height: 20px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, rgba(120,124,132,.18) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, rgba(202,207,214,.94) 0%, rgba(176,182,192,.9) 55%, rgba(196,201,209,.92) 100%);
  box-shadow: 0 2px 5px rgba(40,40,50,.4), inset 0 1px 0 rgba(255,255,255,.5);
  clip-path: polygon(2% 12%, 6% 0, 96% 6%, 100% 18%, 98% 88%, 93% 100%, 4% 94%, 0 80%);
}
.taped-viking .hero-viking { box-shadow: 0 16px 26px rgba(8,25,48,.55); }
.taped-viking::before { top: -8px; left: -28px; transform: rotate(-40deg); width: 86px; }
.taped-viking::after  { top: -8px; right: -28px; transform: rotate(40deg); width: 86px; }
.hang-title {
  display: block; margin: 0;
  background: var(--card); border-radius: 4px;
  background-image: var(--tex-paper);
  padding: clamp(64px, 10vw, 104px) 34px 26px;   /* room for the taped Viking */
  filter: drop-shadow(0 20px 22px rgba(8,25,48,.6));
  will-change: transform;
  clip-path: polygon(0 2%, 4% 0, 13% 1.5%, 24% .2%, 37% 1.8%, 52% .4%, 66% 1.6%, 79% .3%, 91% 1.7%, 100% .5%, 100% 98%, 95% 100%, 84% 98.5%, 71% 100%, 57% 98.3%, 43% 99.8%, 29% 98.4%, 15% 100%, 5% 98.6%, 0 100%);
}
.hang-viking .hero-viking { margin: 0; }
.hero > :not(.hero-wave):not(.rope):not(.bunting) { position: relative; z-index: 2; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------- ticker: banners clipped to a scrolling clothesline ---------- */
.ticker {
  position: relative; z-index: 2;
  overflow: hidden; padding: 2px 0 14px;
}
.ticker + .carousel { margin-top: 20px; }
.ticker-track {
  display: flex; width: max-content;
  padding-top: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 148 26' preserveAspectRatio='none'%3E%3Cpath d='M0 6 C 37 21, 111 21, 148 6' fill='none' stroke='%238a6a43' stroke-width='3.4' stroke-linecap='round'/%3E%3Cpath d='M0 6 C 37 21, 111 21, 148 6' fill='none' stroke='rgba(255,255,255,.3)' stroke-width='1' stroke-dasharray='2 6'/%3E%3C/svg%3E") repeat-x left top / 148px 26px;
  animation: tick 34s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.peg-card {
  position: relative; flex: 0 0 148px; box-sizing: border-box;
  margin-top: -8px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background-color: var(--card); background-image: var(--tex-paper); border-radius: 3px;
  height: 34px; padding: 2px 10px;
  font-family: var(--hand); font-weight: 700; font-size: .72rem; letter-spacing: .12em;
  color: #5a4c3a;
  box-shadow: 0 4px 8px rgba(90,70,40,.2);
  transform: rotate(-1.4deg); transform-origin: top center;
  width: 128px; margin-left: 10px; margin-right: 10px; flex-basis: 128px;
}
.peg-card:nth-child(2n) { transform: rotate(1.6deg); background: #fbf0d8; }
.peg-card:nth-child(3n) { background: #eef3ea; }
.peg-card:nth-child(5n) { background: #f6ecf4; }
.peg-card::before {
  content: ""; position: absolute; top: -19px; left: 50%; transform: translateX(-50%) rotate(2deg);
  width: 13px; height: 30px;
  background: var(--pin) no-repeat center / contain;
}
.hero-doodles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero h1 span, .ticker-track, .hang-viking, .hang-title { animation: none !important; opacity: 1; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
.hero-viking {
  width: clamp(130px, 19vw, 196px); height: auto; background: #fff;
  border-radius: 4px; padding: 9px 9px 22px;   /* polaroid */
  box-shadow: 0 12px 26px rgba(15,40,70,.4);
  animation: popin .6s cubic-bezier(.2,1.2,.4,1) .05s both;
  display: block;
}
.hero-kicker {
  margin: 0 0 8px; font-family: "IBM Plex Mono", monospace; font-size: .68rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.hero h1 { margin: 0; font-size: clamp(2.2rem, 6.4vw, 4.2rem); line-height: 1.1; color: var(--ink); }
.hero h1 span { display: inline-block; animation: popin .6s cubic-bezier(.2,1.2,.4,1) both; }
.hero h1 .w1 { animation-delay: .1s; font-family: "Caveat", cursive; font-size: 1.2em; transform: rotate(-2.5deg); color: #d64766; }
.hero h1 .w2 { animation-delay: .35s; color: #205fa0; }
.hero h1 .w3 { animation-delay: .6s; color: #2e9e4f; }
@keyframes popin { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }
.hero-sub { font-size: 1rem; margin: 12px auto 0; max-width: 520px; color: var(--text); }
.hero-sub em { color: #d99a06; font-style: normal; font-weight: 700; }
.hero-btn { font-size: 1rem; padding: 14px 26px; }
.btn-ghosted { background: var(--card); color: var(--cardboard-ink); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 34px; z-index: 1; }

/* ---------- carousel ---------- */
.carousel {
  position: relative; max-width: 980px; margin: -44px auto 8px; padding: 0 20px;
  height: min(50vw, 420px); z-index: 2;
}
.slide {
  position: absolute; inset: 0 20px; opacity: 0; transition: opacity .9s ease;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--sh-md);
}
.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: 30px 20px 14px; color: #fff; font-weight: 600; font-size: .95rem;
  background: linear-gradient(transparent, rgba(2,20,38,.8));
}
.carousel-dots {
  position: absolute; bottom: 14px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 7px; z-index: 3;
}
.dot {
  width: 8px; height: 8px; border-radius: 99px; border: none; cursor: pointer;
  background: rgba(255,255,255,.5); transition: all .25s; padding: 0;
}
.dot.on { background: var(--pv-gold); width: 22px; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; transition-delay: calc(var(--i, 0) * 50ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- cards: sharp plates with drafting corner brackets ---------- */
.card {
  position: relative;
  background: var(--card); border-radius: var(--radius);
  padding: 26px 28px; margin: 22px 0;
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
}
.card { border: none; box-shadow: 0 4px 14px rgba(90,70,40,.16); background-image: var(--tex-paper); }
.card::before {   /* clothespin clipping every paper sheet */
  content: ""; position: absolute; top: -22px; left: 26px; width: 15px; height: 36px;
  background: var(--pin) no-repeat center / contain; transform: rotate(-6deg);
  pointer-events: none;
}
.card::after {    /* washi tape on the opposite corner — crinkled, semi-sheer */
  content: ""; position: absolute; top: -8px; right: 30px; width: 58px; height: 17px;
  background:
    repeating-linear-gradient(104deg, rgba(255,255,255,.3) 0 2px, transparent 2px 6px),
    rgba(255,201,74,.5);
  transform: rotate(3deg); border-radius: 1px;
  box-shadow: 0 1px 2px rgba(90,70,40,.15);
  pointer-events: none;
}
.card h2 {
  margin: 0 0 6px; font-size: 1.12rem; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
  position: relative; padding-bottom: 14px;
  background: repeating-linear-gradient(to bottom, rgba(2,90,158,.14) 0 1px, transparent 1px 3.5px)
              left bottom / 120px 11px no-repeat;
}
.card h2::after {
  content: ""; position: absolute; left: 96px; bottom: 3px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--pv-gold);
}
.sec-num {
  font-family: "IBM Plex Mono", monospace; font-size: .68rem; font-weight: 500;
  color: var(--pv-gold); letter-spacing: .1em; align-self: flex-start; padding-top: 2px;
}
.sec-num::after { content: " /"; color: var(--line); }
.h-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 6px; flex: none;
  background: var(--pv-blue-sky); color: var(--pv-blue);
}
.h-ico .ico { width: 18px; height: 18px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.error { color: #d33d51; font-weight: 600; font-size: .92rem; }
.pill { background: var(--pv-blue-sky); color: var(--pv-blue-deep); border-radius: 99px; padding: 2px 10px; font-size: .72rem; font-weight: 600; }
.pill.warn { background: #fdefdc; color: #a05a00; }
.mission p { font-size: 1.05rem; line-height: 1.7; margin: 8px 0 0; }
.mission { border-left: 3px solid var(--pv-gold); }

/* ---------- disciplines: construction paper pinned to a corkboard ---------- */
.disciplines {
  position: relative;
  width: 100vw; margin: 34px 0 34px calc(50% - 50vw);
  padding: 52px 20px 56px;
  box-sizing: border-box;
  background:
    var(--tex-corkchip),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='ck'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .18 0 0 0 0 .07 0 0 0 .28 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23ck)'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #b08356, #9c7147);
  box-shadow: inset 0 0 70px rgba(60,35,10,.4);
  border-top: 10px solid var(--cardboard);
  border-bottom: 10px solid var(--cardboard);
  border-image: repeating-linear-gradient(90deg, #cfa76f 0 26px, #bd955d 26px 52px) 10;
}
.disc-head { max-width: 640px; margin: 0 auto 30px; text-align: center; }
.disc-kicker {
  margin: 0 0 8px; font-family: var(--hand); font-weight: 700; font-size: .78rem;
  letter-spacing: .2em; text-transform: uppercase; color: #ffe1a8;
}
.disc-head h2 {
  margin: 0; color: #fff8ec; font-size: clamp(1.6rem, 3.8vw, 2.3rem); line-height: 1.18;
  text-shadow: 0 2px 4px rgba(60,35,10,.4);
}
.disc-intro { max-width: 560px; margin: 14px auto 0; color: rgba(255,244,224,.8); font-size: .95rem; }
.plate-grid {
  max-width: 940px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 18px 14px; text-align: left;
}
.plate {
  position: relative;
  background-color: color-mix(in srgb, var(--dc) 16%, #fffdf4);
  background-image: var(--tex-tooth);
  border-radius: 3px;
  padding: 22px 16px 16px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 6px 12px rgba(50,30,10,.35);
  transform: rotate(var(--tilt, -1deg));
  transition: transform .18s, box-shadow .18s;
}
.plate:nth-child(2n) { --tilt: 1.2deg; }
.plate:nth-child(3n) { --tilt: -.6deg; }
.plate::after {   /* pushpin */
  content: ""; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 29px;
  background: var(--pushpin) no-repeat center / contain;
}
.plate:hover { box-shadow: 0 14px 22px rgba(50,30,10,.45); }
.plate, .team-tile, .flip-card, .polaroids figure { transition: transform .15s ease-out, box-shadow .2s; }
/* one light source, top-left: bevel highlights make the materials read thick */
.plate, .team-tile, .peg-card, .flip-card {
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.55), 0 6px 12px rgba(50,30,10,.28);
}
.plate strong {
  font-family: var(--hand); font-size: .98rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: color-mix(in srgb, var(--dc) 75%, #22150a);
}
.plate small { font-size: .8rem; line-height: 1.55; color: #5a5044; }
.d-ico { width: 44px; height: 44px; color: color-mix(in srgb, var(--dc) 85%, #22150a); }
.s-tech { --dc: var(--c-tech); } .s-sci { --dc: var(--c-sci); } .s-eng { --dc: var(--c-eng); }
.s-art { --dc: var(--c-art); } .s-imp { --dc: var(--c-imp); } .s-srv { --dc: var(--c-srv); }
.s-ris { --dc: #ffc94a; }

/* ---------- events ---------- */
.events { list-style: none; padding: 0; margin: 8px 0 0; }
.events li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.events li:last-child { border-bottom: none; }
.event-when {
  flex: 0 0 auto; text-align: center; background: var(--pv-blue-sky); color: var(--pv-blue-deep);
  border-radius: 10px; padding: 8px 12px; min-width: 70px;
}
.event-month { display: block; font-weight: 800; font-size: 1rem; letter-spacing: .02em; }
.event-year { display: block; font-size: .68rem; color: var(--muted); }
.event-title { font-weight: 700; font-size: .98rem; display: block; color: var(--ink); }
.event-meta { color: var(--muted); font-size: .84rem; display: inline-flex; gap: 12px; align-items: center; }
.event-meta .ico { width: 14px; height: 14px; }
.event-details { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }

/* ---------- gallery / polaroids ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 12px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: 10px; }
.gallery img { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; transition: transform .3s ease; display: block; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { font-size: .78rem; color: var(--muted); padding-top: 4px; }
.gallery.small img { height: 90px; }
.polaroids { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.polaroids figure {
  background: #fff; padding: 8px 8px 4px; border-radius: 4px;
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  transform: rotate(-1.4deg); overflow: visible; position: relative;
  transition: transform .18s, box-shadow .18s;
}
.polaroids figure:nth-child(2n) { transform: rotate(1.4deg); }
.polaroids figure:nth-child(5n) { transform: rotate(2deg); }
.polaroids figure:hover { transform: rotate(0) translateY(-3px); box-shadow: var(--sh-md); z-index: 2; }
.polaroids figure::before {
  content: ""; position: absolute; top: -7px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  width: 48px; height: 13px; background: rgba(255,201,74,.65); border-radius: 2px;
}
.polaroids img { border-radius: 2px; height: 148px; }
.polaroids figure:hover img { transform: none; }
.polaroids figcaption { font-family: "Caveat", cursive; font-size: 1rem; text-align: center; color: var(--text); padding: 4px 0; }

/* ---------- team tiles ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 14px; }
.team-tile {
  position: relative; display: flex; flex-direction: column; gap: 3px;
  background-color: color-mix(in srgb, var(--team-color) 13%, #fffdf4);
  background-image: var(--tex-tooth);
  color: var(--ink); text-decoration: none;
  border-radius: 3px; padding: 20px 18px 16px;
  box-shadow: 0 5px 10px rgba(90,70,40,.22);
  transform: rotate(-.8deg);
  transition: transform .16s, box-shadow .16s;
}
.team-tile:nth-child(2n) { transform: rotate(.9deg); }
.team-tile::after {
  content: ""; position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 26px; background: var(--pushpin) no-repeat center / contain;
}
.team-tile:hover { transform: rotate(0) translateY(-3px); box-shadow: 0 9px 16px rgba(90,70,40,.3); }
.tile-num {
  position: absolute; top: 10px; right: 12px;
  font-family: "IBM Plex Mono", monospace; font-size: .62rem; letter-spacing: .08em;
  color: color-mix(in srgb, var(--team-color) 55%, var(--muted));
}
.team-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--team-color); margin-bottom: 6px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--team-color) 18%, transparent); }
.team-name { font-weight: 700; font-size: 1rem; color: color-mix(in srgb, var(--team-color) 75%, var(--ink)); }
.team-lock { font-size: .78rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.team-lock .ico { width: 13px; height: 13px; }

/* ---------- buttons: genuinely corrugated cardboard ---------- */
.btn {
  position: relative;
  background-image:
    var(--tex-board),
    repeating-linear-gradient(90deg, rgba(120,88,48,.08) 0 5px, rgba(255,240,215,.06) 5px 10px),
    linear-gradient(175deg, #d1ab74, #bd955d);
  color: #fff; border: none; border-radius: 9px;
  padding: 10px 20px; font-size: .9rem; font-weight: 600;
  font-family: var(--hand); cursor: pointer;
  text-shadow: 0 1px 0 rgba(90,60,20,.4);
  box-shadow:
    inset 0 1.5px 0 rgba(255,244,220,.5), inset 1.5px 0 0 rgba(255,244,220,.25),
    inset 0 -2px 0 rgba(90,60,25,.3),
    0 10px 18px -2px rgba(60,40,15,.5), 0 3px 6px rgba(60,40,15,.3);
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  transition: transform .1s, box-shadow .1s;
}
.btn::before {  /* the cut edge: exposed corrugation flutes */
  content: ""; position: absolute; left: 3px; right: 3px; bottom: -6px; height: 7px;
  border-radius: 0 0 7px 7px;
  background:
    repeating-linear-gradient(90deg, #b78d55 0 3px, #8a6234 3px 5px, #a67c48 5px 8px),
    #96713f;
  box-shadow: 0 3px 6px rgba(90,70,40,.3);
}
.btn::after {
  content: ""; position: absolute; inset: -2px; pointer-events: none;
  background: var(--wobble) no-repeat center / 100% 100%;
  opacity: .85;
}
.btn:hover { transform: translateY(2px) rotate(-.5deg); box-shadow: 0 5px 10px -2px rgba(60,40,15,.45), 0 2px 4px rgba(60,40,15,.3); }
.btn:hover::before { bottom: -4px; height: 5px; }
.btn.big { padding: 13px 24px; font-size: 1rem; }
.btn.tiny { padding: 3px 11px; font-size: .74rem; }
.btn.tiny::before { bottom: -4px; height: 5px; }
.btn.tiny::after { inset: -1px; }
.btn.danger { background-image: var(--tex-board), repeating-linear-gradient(90deg, rgba(100,30,20,.08) 0 5px, rgba(255,225,215,.07) 5px 10px), linear-gradient(175deg, #d16a5c, #bb5245); }
.btn.danger::before { background: repeating-linear-gradient(90deg, #b45448 0 3px, #85352b 3px 5px, #a04a3e 5px 8px), #8e3a30; }
.btn.ghost { background: transparent; color: var(--muted); padding: 3px 7px; }
.btn.ghost:hover { background: var(--bg); transform: none; }
input, select, textarea {
  font: inherit; font-size: .92rem; color: var(--ink);
  padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; width: 100%; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--pv-blue);
  box-shadow: 0 0 0 3px rgba(2,90,158,.12);
}
.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: 42px; padding: 2px; height: 40px; }
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; margin: 12px 0; }
.grid-form label { display: flex; flex-direction: column; gap: 5px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.grid-form .wide { grid-column: 1 / -1; }
.login-card { max-width: 420px; margin: 52px auto; text-align: center; border-top: 4px solid var(--team-color); }
.login-card h1 { font-size: 1.5rem; }

/* ---------- team room ---------- */
.room { max-width: 860px; margin: 0 auto; padding: 8px 20px; }
.room-head {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(to right,  rgba(2,90,158,.04) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(to bottom, rgba(2,90,158,.04) 0 1px, transparent 1px 26px),
    #fff;
  border-radius: var(--radius); padding: 22px 24px; margin: 20px 0;
  border: 1px solid var(--line);
  border-left: 6px solid var(--team-color);
  box-shadow: var(--sh-sm);
}
.room-head h1 { margin: 0 0 4px; font-size: 1.5rem; color: color-mix(in srgb, var(--team-color) 80%, var(--ink)); }
.room-head p { margin: 4px 0 0; font-size: .92rem; }
.reminders { background: #fffaf0; border-color: #f4dfae; }
.reminders ul { margin: 6px 0 0; padding-left: 18px; }
.reminders li { margin: 4px 0; font-size: .93rem; }
.feed { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.post {
  background: var(--card); border-radius: 12px; padding: 12px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid color-mix(in srgb, var(--team-color) 45%, #fff);
  animation: postin .3s ease;
}
@keyframes postin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.post-reminder { background: #fffaf0; border-color: #f4dfae; }
.post-head { display: flex; align-items: baseline; gap: 10px; }
.post-head form { margin-left: auto; }
.post-head form + form { margin-left: 6px; }
.author { font-weight: 700; font-size: .92rem; color: color-mix(in srgb, var(--team-color) 80%, var(--ink)); }
.when { font-size: .72rem; color: var(--muted); }
.post-body { margin: 6px 0 2px; white-space: pre-wrap; font-size: .95rem; }
.room .post-img {
  max-width: 320px; max-height: 320px; display: block; margin-top: 8px;
  background: #fff; padding: 6px 6px 18px; border-radius: 4px;
  border: 1px solid var(--line); box-shadow: var(--sh-sm); transform: rotate(-1.2deg);
}
.room .post:nth-child(2n) .post-img { transform: rotate(1.2deg); }
.post-img { max-width: 320px; max-height: 320px; border-radius: 8px; display: block; margin-top: 8px; }
.doc-chip {
  display: inline-flex; align-items: center; gap: 7px; background: var(--pv-blue-sky); border-radius: 9px;
  padding: 7px 13px; margin-top: 8px; text-decoration: none; font-weight: 600; font-size: .88rem;
}
.tombstone { background: var(--bg); color: var(--muted); font-size: .82rem; border-left-color: var(--line); }
.post-flagged { border: 1.5px solid var(--c-tech); }
.flag-note { color: #a05a00; font-size: .76rem; font-weight: 700; margin-bottom: 4px; }
.composer.card {
  background:
    repeating-linear-gradient(to right,  rgba(2,90,158,.035) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(to bottom, rgba(2,90,158,.035) 0 1px, transparent 1px 24px),
    #fff;
  border: 1.5px dashed color-mix(in srgb, var(--team-color) 45%, #fff);
  padding: 18px 20px;
}
.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; font-size: .82rem; }
.coach-login { margin: 12px 0; font-size: .85rem; }

/* ---------- boards & panels ---------- */
.board-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.board-links .btn { text-decoration: none; }
.board .team-panel { border-left: 4px solid var(--team-color); }
.team-panel summary { cursor: pointer; font-size: .95rem; }
.panel-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; }
@media (max-width: 640px) { .panel-grid { grid-template-columns: 1fr; } }
.mini-label { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; margin: 0 0 4px; }
.mini-label input { margin-top: 5px; font-weight: 400; }

/* ---------- roster / consent tables ---------- */
.roster-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 6px 0 10px; }
.roster-table th { text-align: left; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 4px 10px; }
.roster-table td { padding: 6px 10px; border-bottom: 1px solid var(--line); }
.roster-table tr:last-child td { border-bottom: none; }
.roster-table td form { margin: 0; display: inline; }
.roster-table input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--pv-blue); }
.roster-table tr.r-none td { background: #f5f6fa; color: var(--muted); }
.roster-table tr.r-slip td { background: var(--pv-blue-sky); }
.roster-table tr.r-full td { background: #e9f7ec; }
.roster-table tr.r-coach td {
  background: color-mix(in srgb, var(--team-color) 10%, #fff);
  font-weight: 700; font-size: .85rem;
}
.chip-x { border: none; background: none; cursor: pointer; color: #c2c7d6; font-size: 1rem; padding: 2px 6px; border-radius: 6px; }
.chip-x:hover { color: #d64757; background: #fbeef0; }
.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; font-size: .85rem; }
.chips form { display: inline; }

/* ---------- admin / editor ---------- */
.admin { max-width: 980px; margin: 0 auto; padding: 8px 20px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.admin-head h1 { font-size: 1.6rem; margin: 10px 0; }
.team-admin { border-left: 4px solid var(--team-color); padding: 10px 14px; margin: 8px 0; background: #fafbfe; border: 1px solid var(--line); border-radius: 10px; }
.team-admin summary { cursor: pointer; font-size: .92rem; }
.team-admin summary a { margin-left: 8px; font-size: .82rem; }
.link-admin { list-style: none; padding: 0; margin: 6px 0 10px; }
.link-admin li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: .92rem; flex-wrap: wrap; }
.link-admin form { margin-left: auto; }
.log { width: 100%; font-size: .78rem; border-collapse: collapse; }
.log td { padding: 5px 8px; border-bottom: 1px solid var(--line); }
.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-left: 3px solid var(--c-tech); }
.coach-card { border-left: 3px solid var(--c-sci); }
.link-list { list-style: none; padding: 0; margin: 10px 0 0; }
.link-list li { margin: 5px 0; }
.link-list a {
  display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line);
  text-decoration: none; font-weight: 600; font-size: .88rem;
  transition: border-color .15s, transform .12s;
}
.link-list a:hover { border-color: var(--pv-blue); transform: translateX(3px); }
.link-list a::before { content: none; }
.link-list .ico { width: 15px; height: 15px; color: var(--pv-blue); }

/* site editor */
.editor-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 14px; margin: 14px 0;
}
.editor-photo {
  margin: 0; background: #fff; border-radius: 10px; padding: 8px;
  border: 1px solid var(--line); box-shadow: var(--sh-sm); cursor: grab; position: relative;
}
.editor-photo:active { cursor: grabbing; }
.editor-photo.dragging { opacity: .5; border-color: var(--pv-gold); transform: rotate(2deg); }
.editor-photo img { width: 100%; height: 116px; object-fit: cover; border-radius: 6px; pointer-events: none; }
.caption-input { border: none; border-bottom: 1.5px dashed var(--line); border-radius: 0; padding: 6px 2px; font-size: .82rem; width: 100%; box-shadow: none !important; }
.caption-input:focus { border-bottom-color: var(--pv-blue); }
.caption-input.saved { border-bottom-color: #2e9e4f; }
.photo-x {
  position: absolute; top: -8px; right: -8px; width: 24px; height: 24px;
  border-radius: 50%; border: none; background: #d64757; color: #fff;
  font-size: .9rem; cursor: pointer; box-shadow: var(--sh-sm);
}
.save-note { color: #2e9e4f; font-weight: 700; font-size: .85rem; opacity: 0; transition: opacity .3s; margin: 4px 0; }
.save-note.show { opacity: 1; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  border: 2px dashed #c4cde4; border-radius: 12px; padding: 26px 16px;
  text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
  font-size: .85rem;
}
.dropzone:hover, .dropzone.over { border-color: var(--pv-blue); background: var(--pv-blue-sky); }
.dropzone.busy { opacity: .5; pointer-events: none; }
.dz-big { font-weight: 700; font-size: 1rem; 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; }
.consent-note {
  background: #fffaf0; border: 1px solid #f4dfae; border-radius: 10px;
  padding: 12px 16px; font-size: .84rem; margin: 12px 0; line-height: 1.7;
}
.team-cells {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px; margin: 16px 0;
}
.team-cell {
  border: 1px solid var(--line); border-top: 3px solid var(--team-color); border-radius: 12px;
  padding: 14px 16px; background: #fff; box-shadow: var(--sh-sm);
  display: flex; flex-direction: column; gap: 9px;
}
.cell-head { display: flex; gap: 6px; align-items: center; margin: -4px 0 0; }
.cell-title { font-weight: 700; font-size: 1rem; flex: 1.4; min-width: 0; border-color: transparent; background: transparent; padding-left: 4px; }
.cell-title:hover, .cell-title:focus { border-color: var(--line); background: #fff; }
.cell-pw { flex: 1; min-width: 0; font-size: .8rem; }
.cell-head input[type=color] { width: 32px; min-width: 32px; height: 32px; padding: 1px; }
.cell-counts { font-size: .74rem; color: var(--muted); }
.coach-table th { white-space: nowrap; font-size: .68rem; }
.coach-table td { text-align: center; }
.coach-table td:first-child { text-align: left; min-width: 170px; }
.coach-table tr.c-head td { background: #fffaf0; }
.row-manage { position: relative; }
.row-manage summary { cursor: pointer; list-style: none; font-size: 1.1rem; padding: 0 6px; color: var(--muted); }
.row-manage[open] > div {
  position: absolute; right: 0; z-index: 5; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--sh-md); min-width: 210px;
}
.check-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 99px;
  padding: 4px 13px; font-size: .82rem; cursor: pointer; user-select: none;
  transition: border-color .15s, background .15s;
}
.check-chip input { width: auto; margin: 0; accent-color: var(--pv-blue); box-shadow: none !important; }
.check-chip:has(input:checked) { border-color: var(--pv-blue); background: var(--pv-blue-sky); font-weight: 600; }
.head-toggle:has(input:checked) { border-color: var(--pv-gold); background: #fffaf0; }
.invite-form { background: #fafbfe; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }

/* ---------- school branding editor ---------- */
.brand-row { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin: 12px 0; }
.brand-preview {
  flex: 0 0 200px; text-align: center; padding: 16px 14px;
  background: var(--pv-blue-ink); border-radius: 6px; color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.brand-preview img { width: 84px; height: 84px; object-fit: contain; background: #fff; border-radius: 4px; padding: 6px; }
.brand-preview strong { font-family: var(--hand); font-size: 1.05rem; }
.brand-preview em { font-family: "Caveat", cursive; font-size: 1rem; font-style: normal; opacity: .85; }

/* ---------- crayon margin doodles ---------- */
.crayon { position: absolute; height: auto; opacity: .55; pointer-events: none; z-index: 1; }
@media (max-width: 760px) { .crayon { display: none; } }

/* ---------- craft details ---------- */
::selection { background: var(--pv-gold); color: var(--pv-blue-ink); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #c3cbdd; border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--pv-blue); }

/* ---------- full-bleed chapter bands ---------- */
.band {
  position: relative;
  width: 100vw; margin-left: calc(50% - 50vw);
  padding: 56px 20px;
  box-sizing: border-box; overflow: hidden;
}
.band-inner { max-width: 940px; margin: 0 auto; position: relative; }
.band-kicker {
  margin: 0 0 10px; font-family: "IBM Plex Mono", monospace; font-size: .7rem;
  letter-spacing: .24em; color: var(--pv-blue); font-weight: 500;
}
.band h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.05; margin: 0 0 10px; }
.band-lede { color: var(--muted); max-width: 520px; }
.band-cols { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
@media (max-width: 760px) { .band-cols { grid-template-columns: 1fr; gap: 12px; } }
.center-head { text-align: center; margin-bottom: 26px; }
.center-head .band-lede { margin: 0 auto; }

.mission-band { text-align: center; padding: 64px 20px 26px; }
.pull-quote {
  margin: 0 auto; max-width: 780px;
  font-family: var(--hand); font-weight: 600;
  font-size: clamp(1.35rem, 3.4vw, 2.1rem); line-height: 1.35; color: var(--ink);
  position: relative; padding: 0 24px;
}
.pull-quote::before, .pull-quote::after {
  font-family: "Caveat", cursive; font-size: 3.2em; color: var(--pv-gold);
  position: absolute; line-height: 1;
}
.pull-quote::before { content: "\201C"; left: -10px; top: -14px; }
.pull-quote::after { content: "\201D"; right: -6px; bottom: -40px; }

/* stats as kid-made flip counters: cardboard frame, white card, center crease */
.stat-band { background: transparent; padding: 8px 20px 26px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; text-align: center; }
@media (max-width: 640px) { .stat-row { grid-template-columns: repeat(2, 1fr); gap: 20px 10px; } }
.flip-card {
  position: relative; display: inline-block;
  background-image: var(--tex-paper), linear-gradient(180deg, #fffdf6 0 49%, #f3eedd 51% 100%);
  border-radius: 8px; padding: 12px 18px 10px; min-width: 118px;
  border: 5px solid var(--cardboard);
  outline: 2px solid var(--cardboard-ink); outline-offset: -6px;
  box-shadow: 0 5px 0 #96713f, 0 9px 14px rgba(90,70,40,.22);
  transform-origin: top center;
}
.reveal.in .flip-card { animation: flipin .7s cubic-bezier(.2,1.3,.4,1); }
@keyframes flipin { from { transform: rotateX(80deg); opacity: 0; } to { transform: rotateX(0); opacity: 1; } }
.flip-card::before, .flip-card::after {   /* the crease + side pivots */
  content: ""; position: absolute; pointer-events: none;
}
.flip-card::before { left: 4px; right: 4px; top: 50%; height: 2px; background: rgba(90,70,40,.28); }
.flip-card::after {
  top: calc(50% - 4px); left: -10px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cardboard-ink);
}
.stat-n {
  display: block; font-family: var(--hand); font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 3rem); color: var(--ink); line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-l { display: block; margin-top: 10px; font-family: var(--hand); font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.teams-band { background: linear-gradient(180deg, transparent, rgba(255,253,244,.55) 30%, rgba(255,253,244,.55) 70%, transparent); }
.watermark {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-2deg);
  font-family: var(--hand); font-weight: 700;
  font-size: clamp(6rem, 22vw, 15rem); letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 2px rgba(32,95,160,.13);
  pointer-events: none; user-select: none; white-space: nowrap; z-index: 0;
}
.teams-band .band-inner { z-index: 1; }
.photo-band {
  background:
    repeating-linear-gradient(to bottom, transparent 0 26px, rgba(90,140,190,.14) 26px 27px),
    #fffdf4;
  border-top: 2px dashed var(--cardboard); border-bottom: 2px dashed var(--cardboard);
}

/* ---------- join flow + quiz ---------- */
.join-band {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='c2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23c2)'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #1d5a9b, #2a6cb0);
  border-top: 8px solid var(--cardboard); border-bottom: 8px solid var(--cardboard);
}
.join-band h2 { text-shadow: 0 2px 4px rgba(10,30,55,.5); }
.join .kid-block { margin: 12px 0; }
.q-card { margin: 12px 0; transition: border-color .2s, opacity .2s; }
.q-card.answered { opacity: .72; }
.q-card.q-missing { border-color: #d64757; }
.q-text { margin: 0 0 12px; font-weight: 600; font-size: 1rem; color: var(--ink); }
.q-num { font-family: "IBM Plex Mono", monospace; font-size: .7rem; color: var(--pv-gold); margin-right: 8px; }
.q-opts { display: flex; flex-direction: column; gap: 7px; }
.q-choice {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 8px; padding: 11px 13px;
  font-size: .92rem; color: var(--text); user-select: none;
  transition: all .12s;
}
.q-choice input { display: none; }
.q-letter {
  flex: none; width: 26px; height: 26px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "IBM Plex Mono", monospace; font-size: .78rem; font-weight: 600;
  background: var(--bg); color: var(--muted); border: 1px solid var(--line);
}
.q-choice:hover { border-color: var(--pv-blue); transform: translateX(3px); }
.q-choice:has(input:checked) {
  border-color: var(--pv-blue); background: var(--pv-blue-sky); font-weight: 600; color: var(--pv-blue-deep);
}
.q-choice:has(input:checked) .q-letter { background: var(--pv-blue); color: #fff; border-color: var(--pv-blue); }

/* ---------- footer ---------- */
.footer { text-align: center; color: var(--muted); font-size: .82rem; padding: 34px 20px 40px; }
.footer-viking { width: 54px; opacity: .9; display: block; margin: 0 auto 8px; }
.footer-tag { font-family: "Caveat", cursive; color: var(--pv-blue); font-size: 1.25rem; margin-bottom: 4px; }
.footer a { color: var(--muted); }
.disclaimer { max-width: 620px; margin: 12px auto 0; font-size: .72rem; color: var(--muted); opacity: .8; line-height: 1.6; }

@media (max-width: 600px) {
  .hero { padding: 44px 14px 92px; }
  .grid-form { grid-template-columns: 1fr; }
  .post-img, .room .post-img { max-width: 100%; }
  .brand-text { font-size: .9rem; }
  .card { padding: 20px 18px; }
}
