/* Math & Science Night — site styles */

/* ---------- Fonts (Metropolis, self-hosted) ---------- */
@font-face {
  font-family: 'Metropolis';
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url('../assets/fonts/metropolis-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Metropolis';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('../assets/fonts/metropolis-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Metropolis';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('../assets/fonts/metropolis-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Metropolis';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('../assets/fonts/metropolis-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Metropolis';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('../assets/fonts/metropolis-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Metropolis';
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url('../assets/fonts/metropolis-800.woff2') format('woff2');
}

/* ---------- Base ---------- */
:root {
  --sidebar-w: 300px;
  --bg-side: #000000;
  --bg-main: #272727;
  --accent: #9fa8da;
  --text: rgba(255, 255, 255, 0.8);
  --text-dim: rgba(255, 255, 255, 0.7);
  --white: #ffffff;
  --font: 'Metropolis', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 17.2px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--text);
  background: var(--bg-main);
}

img { max-width: 100%; display: block; }

a { color: inherit; }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-side);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 100;
}

.brand {
  text-align: center;
  padding: 30px 20px 0;
}

.brand-logo img {
  width: 100px;
  height: 100px;
  margin: 0 auto;
}

.brand-title {
  display: block;
  margin-top: 18px;
  font-size: 21px;
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1.6;
  color: var(--white);
  text-decoration: none;
}

.brand-title strong { font-weight: 900; }

.brand-title { text-transform: uppercase; }

.brand-slogan {
  margin-top: 10px;
  font-size: 15.2px;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.6;
  color: var(--white);
}

.nav {
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
}

.nav ul {
  list-style: none;
  width: 100%;
}

.nav li { padding: 7px 0; text-align: center; }

.nav a {
  text-transform: uppercase;
  display: block;
  padding: 0 50px;
  font-size: 15.2px;
  font-weight: 300;
  line-height: 23px;
  letter-spacing: normal;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}

.nav a:hover { color: var(--white); }

.nav a.active {
  color: var(--accent);
  font-weight: 500;
}

.side-footer {
  padding: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* Mobile menu button (hidden on desktop) */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Main column ---------- */
.main { margin-left: var(--sidebar-w); }

/* ---------- Hero ---------- */
.hero {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-main) url('../assets/img/star-pattern.png') center center repeat;
}

.hero h1 {
  text-transform: uppercase;
  font-size: 72px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: normal;
  color: var(--white);
  text-align: center;
}

/* ---------- Sections ---------- */
.section { padding: 60px 20px; }

.section.pattern {
  background: var(--bg-main) url('../assets/img/star-pattern.png') center center repeat;
}

.section-inner { max-width: 920px; margin: 0 auto; }

.section-inner.wide { max-width: 1160px; }

.section h1 {
  text-transform: uppercase;
  font-size: 37px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: normal;
  color: var(--white);
  margin-bottom: 20px;
}

.section h1 strong { font-weight: 800; }

/* Short accent line under headings */
.section h1::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: var(--accent);
  margin-top: 16px;
}

.section h1.centered { text-align: center; }
.section h1.centered::after { margin-left: auto; margin-right: auto; }

.section h3 {
  font-size: 19.2px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-dim);
  padding-bottom: 3px;
}

.section p { margin-bottom: 26px; }

.section p:last-child { margin-bottom: 0; }

.spacer { height: 40px; }

.divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  margin: 10px 0;
}

/* Text links */
.text-link {
  color: var(--white);
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 5px;
  padding: 14px 32px;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}

.btn:hover {
  background: #8a93ce;
  border-color: #8a93ce;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }

.gallery a {
  display: block;
  border-radius: 5px;
  overflow: hidden;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.gallery img:hover { opacity: 0.88; }

/* ---------- Team columns ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}

.team-card h1 {
  font-size: 29px;
  margin-bottom: 16px;
}

.team-card h1::after { display: none; }

.team-card p { margin-bottom: 24px; }

/* ---------- Contact ---------- */
.contact-label {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 6px !important;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 88vw;
  max-height: 88vh;
  border-radius: 4px;
}

.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 44px;
  font-family: var(--font);
  cursor: pointer;
  padding: 16px;
  line-height: 1;
}

.lightbox button:hover { color: var(--white); }

.lightbox .lb-close { top: 12px; right: 20px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Logo marquees (featured booths + sponsors) ----------
   White-silhouette logos at reduced opacity read as grey on the dark
   background. Pauses on hover; disabled under reduced-motion. */
.marquee {
  overflow: hidden;
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(40px, 5.5vw, 78px);
  width: max-content;
}

.marquee-track.left  { animation: slide-l 52s linear infinite; }
.marquee-track.right { animation: slide-r 60s linear infinite; }

@keyframes slide-l { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes slide-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }

.marquee img {
  height: 40px;
  width: auto;
  flex: none;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.marquee a:hover img,
.marquee a:focus-visible img { opacity: 1; }

.marquee img.lg-rice       { height: 31px; }
.marquee img.lg-acs        { height: 37px; }
.marquee img.lg-aops       { height: 37px; }
.marquee img.lg-katystem   { height: 46px; }
.marquee img.lg-hcc        { height: 43px; }
.marquee img.lg-uh         { height: 43px; }
.marquee img.lg-mathnasium { height: 43px; }
.marquee img.lg-kslb       { height: 54px; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track.left, .marquee-track.right { animation: none; }
}

/* ---------- Survey ---------- */
[hidden] { display: none !important; }
button.btn { font-family: var(--font); letter-spacing: inherit; cursor: pointer; }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.survey-kicker { font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px !important; }
.survey-loading { color: var(--text-dim); }

.survey-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
  padding-bottom: 12px;
  min-height: clamp(260px, 56vh, 560px);
}
.survey-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 24px 12px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  font-size: clamp(30px, 4.2vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  color: #15151b;
  background: var(--accent);
  border-radius: 14px;
  box-shadow: 0 8px 0 #6c76b5;
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.survey-pick .go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: #15151b;
  border-radius: 999px;
}
@media (hover: hover) {
  .survey-pick:hover { background: #b6bde8; transform: translateY(-3px); box-shadow: 0 11px 0 #6c76b5; }
}
.survey-pick:active { background: #b6bde8; transform: translateY(6px); box-shadow: 0 2px 0 #6c76b5; }
.survey-pick:focus-visible { outline: 4px solid var(--white); outline-offset: 4px; }

.survey, .survey-branch, .survey-section { display: flex; flex-direction: column; gap: 36px; }
.survey { max-width: 720px; }
.survey-intro { overflow: hidden; transition: max-height 0.3s ease; }
.survey-intro p { margin-bottom: 14px; }
.survey-intro p:last-child { margin-bottom: 0; }
.intro-body { position: relative; }
.intro-wrap.collapsed .survey-intro { max-height: 8em; }
/* A plain fade into the page background (#272727): the text just melts away, no blur. */
.intro-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.6em;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  background: linear-gradient(to bottom,
    rgba(39, 39, 39, 0) 0%,
    rgba(39, 39, 39, 0.4) 30%,
    rgba(39, 39, 39, 0.82) 62%,
    #272727 100%);
}
.intro-wrap.collapsed .intro-fade { opacity: 1; }
.intro-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 18px;
  font: inherit;
  font-weight: 600;
  letter-spacing: inherit;
  color: var(--white);
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.intro-toggle::after { content: "\25BE"; margin-left: 10px; }
.intro-toggle[aria-expanded="true"]::after { content: "\25B4"; }
.intro-toggle:active { background: rgba(159, 168, 218, 0.28); }
.intro-toggle:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
@media (hover: hover) { .intro-toggle:hover { border-color: var(--accent); background: rgba(159, 168, 218, 0.14); } }
@media (prefers-reduced-motion: reduce) { .survey-intro { transition: none; } }
.survey fieldset { border: 0; min-width: 0; }
.survey legend,
.survey .q-label {
  display: block;
  padding: 0;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--white);
}
.survey-section h2 { font-size: 26px; font-weight: 700; color: var(--white); line-height: 1.2; }
.survey-section-intro { margin: -22px 0 0 !important; }
.survey .optional { font-weight: 400; color: var(--text-dim); }

.survey select,
.survey input[type="text"],
.survey input[type="password"],
.survey textarea {
  width: 100%;
  font: inherit;
  letter-spacing: inherit;
  color: var(--white);
  background: #1c1c1c;
  color-scheme: dark;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 14px 14px;
  min-height: 52px;
}
.survey textarea { min-height: 130px; resize: vertical; }
.survey select:focus,
.survey input[type="text"]:focus,
.survey input[type="password"]:focus,
.survey textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.choices { display: grid; gap: 10px; }
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 12px 16px;
  cursor: pointer;
  background: #1c1c1c;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  transition: border-color 0.12s, background 0.12s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.choice input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice .mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transition: border-color 0.12s;
}
.choice .mark::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.12s;
}
.choice input:checked + .mark { border-color: var(--accent); }
.choice input:checked + .mark::after { transform: scale(1); }
.choice:has(input:checked) { border-color: var(--accent); background: rgba(159, 168, 218, 0.18); }
.choice input:focus-visible + .mark { outline: 3px solid var(--white); outline-offset: 3px; }
.choice-text { flex: 1; min-width: 0; line-height: 1.3; }
.choice .other-text { flex: 1; min-width: 0; padding: 8px 12px; min-height: 40px; }
@media (hover: hover) { .choice:hover { border-color: var(--accent); } }

.choices.tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
.tiles .choice { min-height: 58px; padding: 10px 12px; gap: 10px; }
.tiles .choice .mark { width: 22px; height: 22px; }
.tiles .choice .mark::after { width: 10px; height: 10px; }
.tiles .choice-text { font-size: 16px; }
.tiles .choice:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 640px) {
  .choices.tiles { grid-template-columns: repeat(3, 1fr); }
  .tiles .choice:last-child:nth-child(odd) { grid-column: auto; }
}

.likert-rows { display: grid; gap: 0; }
.likert-row { padding: 22px 0 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.likert-row:first-child { padding-top: 6px; }
.likert-row:last-child { border-bottom: 0; }
.likert-q { margin-bottom: 16px !important; font-weight: 400 !important; color: var(--white) !important; line-height: 1.35; }
.likert-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip .dot {
  display: grid;
  place-items: center;
  width: clamp(44px, 12.5vw, 56px);
  height: clamp(44px, 12.5vw, 56px);
  background: #1c1c1c;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  transition: background 0.12s, border-color 0.12s, transform 0.12s;
}
.chip .dot::after { content: "\2713"; font-size: 24px; font-weight: 800; color: #15151b; opacity: 0; }
.chip .chip-text {
  max-width: 100%;
  font-size: clamp(11.5px, 3.2vw, 13.5px);
  line-height: 1.2;
  text-align: center;
  color: var(--text-dim);
  overflow-wrap: anywhere;
}
.chip input:checked ~ .dot { background: var(--accent); border-color: var(--accent); }
.chip input:checked ~ .dot::after { opacity: 1; }
.chip input:checked ~ .chip-text { color: var(--white); }
.chip:active .dot { transform: scale(0.92); }
.chip input:focus-visible ~ .dot { outline: 3px solid var(--white); outline-offset: 3px; }
@media (hover: hover) { .chip:hover .dot { border-color: var(--accent); } }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.survey-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.survey-status { min-height: 1.5em; margin: 0 !important; color: var(--text-dim); }
.survey-status.error { color: #ffb4a8; }

.survey .btn, .survey-thanks .btn { color: #15151b; font-weight: 700; border-radius: 10px; touch-action: manipulation; }
.survey-actions .btn { padding: 16px 34px; font-size: 19px; }
.survey-thanks h2 { font-size: 30px; font-weight: 700; color: var(--white); margin-bottom: 14px; }
.survey-thanks h2:focus { outline: none; }

/* Grade swipe picker */
.swipe-readout {
  margin: 0 0 6px;
  min-height: 1.2em;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  color: var(--white);
}
.swipe:not(.has-value) .swipe-readout {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dim);
  animation: swipe-nudge 1.8s ease-in-out infinite;
}
@keyframes swipe-nudge { 0%, 100% { transform: translateX(-5px); } 50% { transform: translateX(5px); } }
.swipe-frame { position: relative; }
.swipe-strip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 0 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.swipe-strip::-webkit-scrollbar { display: none; }
.swipe-strip::before { content: ""; flex: 0 0 var(--pad-start, calc(50% - 51px)); }
.swipe-strip::after { content: ""; flex: 0 0 var(--pad-end, calc(50% - 42px)); }
.swipe-item {
  flex: none;
  scroll-snap-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.swipe-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swipe-bubble {
  display: grid;
  place-items: center;
  min-width: 84px;
  height: 84px;
  padding: 0 22px;
  white-space: nowrap;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  color: var(--white);
  background: #1c1c1c;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 22px;
  /* The shrink-away effect lives here, not on the snap target, so it can't nudge the scroll position. */
  transform: scale(calc(1 - var(--d, 0) * 0.3));
  opacity: calc(1 - var(--d, 0) * 0.5);
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.swipe-item input:checked + .swipe-bubble {
  color: #15151b;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 6px 0 #6c76b5;
}
.swipe-item input:focus-visible + .swipe-bubble { outline: 3px solid var(--white); outline-offset: 3px; }
.swipe-caret {
  width: 0;
  height: 0;
  margin: -16px auto 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 12px solid var(--accent);
}
.swipe-other { margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .swipe:not(.has-value) .swipe-readout { animation: none; } }

/* Research approval note */
.section p.approval {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
}
.approval-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  font-size: 14px;
  font-weight: 800;
  color: #15151b;
  background: var(--accent);
  border-radius: 50%;
}
.approval a { color: var(--accent); text-underline-offset: 3px; }
.approval a:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; border-radius: 3px; }

/* Back buttons */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  margin-bottom: 22px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.back-link:active { background: rgba(159, 168, 218, 0.28); }
.back-link:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
@media (hover: hover) { .back-link:hover { border-color: var(--accent); background: rgba(159, 168, 218, 0.14); } }
.survey-actions .back-link { margin-bottom: 0; }

/* Survey results */
.results-h { font-size: 22px; font-weight: 700; color: var(--white); margin: 44px 0 16px; }
.results-sub { font-size: 18px; font-weight: 600; color: var(--white); margin: 30px 0 12px; }
.results-bar { margin: 22px 0 28px; }
.results-bar label { margin-right: 10px; font-weight: 600; color: var(--white); }
.results-bar select { font: inherit; letter-spacing: inherit; color: var(--white); background: #1c1c1c; color-scheme: dark; border: 1px solid rgba(255,255,255,0.35); border-radius: 5px; padding: 10px 12px; }
.stats { display: flex; flex-wrap: wrap; gap: 20px 56px; margin: 8px 0 24px; }
.stat-num { display: block; font-size: 48px; font-weight: 800; line-height: 1.1; color: var(--white); }
.stat-label { font-size: 15px; color: var(--text-dim); }
.bars { display: grid; gap: 10px; max-width: 700px; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 240px) 1fr 40px; align-items: center; gap: 14px; }
.bar-track { height: 14px; background: #1c1c1c; border-radius: 7px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 7px; }
.bar-count { text-align: right; color: var(--white); }
.table-wrap { overflow-x: auto; max-width: 100%; }
.results-table { border-collapse: collapse; font-size: 15px; min-width: 640px; }
.results-table th, .results-table td { padding: 9px 12px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.15); }
.results-table th:first-child, .results-table td:first-child { text-align: left; min-width: 260px; }
.results-table th { font-weight: 600; color: var(--white); }
.results-table td.mean { color: var(--white); font-weight: 700; }
.comment-list { list-style: none; display: grid; gap: 12px; max-width: 760px; }
.comment { padding: 14px 18px; background: #1c1c1c; border-radius: 5px; overflow-wrap: anywhere; white-space: pre-wrap; }
.quiet { color: var(--text-dim); }

/* ---------- Mobile ---------- */
@media (max-width: 1000px) {
  .main { margin-left: 0; }

  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0;
    text-align: left;
  }

  .brand-logo img { width: 56px; height: 56px; }

  .brand-title { margin-top: 0; font-size: 17px; line-height: 1.3; }

  .survey-page .sidebar { position: relative; }

  .brand-slogan, .side-footer { display: none; }

  .menu-toggle { display: block; }

  .nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-side);
    z-index: 99;
  }

  .nav.open { display: flex; align-items: flex-start; }

  .nav ul { padding-top: 30px; }

  .nav li { padding: 14px 0; }

  .nav a { font-size: 18px; }

  .hero { height: 220px; }

  .hero h1 { font-size: 48px; }

  .section h1 { font-size: 30px; }

  .gallery, .gallery.cols-3 { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 38px; }

  .survey-split { gap: 12px; min-height: 0; }
  .survey-pick { min-height: 46vh; min-height: 46svh; gap: 22px; font-size: clamp(24px, 7.4vw, 34px); }
  .survey-pick .go { padding: 12px 18px; font-size: 15px; }

  .survey-page .section { padding: 26px 20px 60px; }
  .swipe-frame { margin: 0 -20px; }
  .survey-actions { align-self: stretch; }
  .survey-actions .btn { width: 100%; }
  .bar-row { grid-template-columns: 1fr 36px; }
  .bar-row .bar-label { grid-column: 1 / -1; }
  .bar-row .bar-track { grid-column: 1; }

  .gallery, .gallery.cols-3 { grid-template-columns: repeat(2, 1fr); }

  .marquee img { height: 32px; }
  .marquee img.lg-kslb { height: 44px; }
  .marquee img.lg-rice { height: 26px; }
}
