/* ── VARIABLES ── */
:root {
  --navy:     #1a2b5e;
  --blue:     #3b8fd4;
  --teal:     #3ecfcf;
  --violet:   #9b72d0;
  --pink:     #f4a7c0;
  --offwhite: #f8f6ff;
  --muted:    #6b7db3;
  --white:    #ffffff;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Quicksand', sans-serif;
  background: var(--offwhite);
  color: var(--navy);
  overflow-x: hidden;
}

/* ── BUBBLES (fixed layer, never affects layout) ── */
#bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: bubble-rise linear infinite;
}
@keyframes bubble-rise {
  0%   { transform: translateY(110vh); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 0.5; }
  100% { transform: translateY(-60px); opacity: 0; }
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(248, 246, 255, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(155, 114, 208, 0.12);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo img { width: 42px; height: 42px; object-fit: contain; }
.nav-name {
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem; font-weight: 900;
  color: var(--navy);
}
.nav-name em { color: var(--violet); font-style: normal; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.82rem; font-weight: 600;
  color: var(--muted); text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--violet); }

/* ══════════════════════════
   SECTION 1 — HERO
   Clean gradient, no pink bleeding
══════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 6rem;
  position: relative;
  /* Simple two-tone gradient — no pink at the end */
  background: linear-gradient(160deg, #ddeeff 0%, #ece8ff 50%, #dff8f8 100%);
}
/* Subtle radial glows — teal and violet only, no pink */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 45% at 15% 60%, rgba(62,207,207,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 45% 50% at 85% 30%, rgba(155,114,208,0.16) 0%, transparent 65%);
}

/* Wings decoration — bottom of hero, blends into wave */
.deco-wings-hero {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 64vw;
  max-width: 780px;
  height: auto;
  display: block;
  pointer-events: none;
  z-index: 2;
  filter: brightness(0) saturate(100%)
          invert(65%) sepia(25%) saturate(700%)
          hue-rotate(255deg) brightness(0.95) opacity(0.22);
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  width: 100%;
  gap: 1.6rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet);
  background: rgba(155, 114, 208, 0.1);
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid rgba(155, 114, 208, 0.25);
}

.hero-logo {
  width: min(320px, 65vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 40px rgba(155, 114, 208, 0.28));
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

.hero-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.hero-title .violet { color: var(--violet); }
.hero-title .teal   { color: var(--teal); }

.hero-sub {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.75;
  max-width: 480px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  color: white;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 14px 34px;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 24px rgba(155, 114, 208, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(155, 114, 208, 0.48);
}

.scroll-hint {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.2em;
  color: var(--muted); text-transform: uppercase; opacity: 0.5;
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--violet), transparent);
  animation: pulse-line 2s ease-in-out infinite;
}
@keyframes pulse-line { 0%,100%{opacity:0.4;} 50%{opacity:1;} }

/* ── WAVE DIVIDERS ── */
.wave-down, .wave-up {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  /* No background on the wrapper — svg fill sets the color */
}
.wave-down svg, .wave-up svg { display: block; width: 100%; }

/* ══════════════════════════
   SECTION 2 — ABOUT
   Clean navy, no pink glow
══════════════════════════ */
.about {
  background: linear-gradient(150deg, #1a2b5e 0%, #221760 55%, #14386a 100%);
  padding: 7rem 2rem;
  position: relative;
  overflow: hidden;
}
/* Teal-only glow, no pink */
.about::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 10% 50%, rgba(62,207,207,0.09) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 90% 60%, rgba(62,207,207,0.06) 0%, transparent 70%);
}

/* Wings in about — top edge only, subtle */
.deco-wings-about {
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  width: 58vw;
  max-width: 680px;
  height: auto;
  display: block;
  pointer-events: none;
  z-index: 1;
  filter: brightness(0) saturate(100%)
          invert(90%) sepia(10%) saturate(300%)
          hue-rotate(180deg) brightness(1.2) opacity(0.1);
}

.about-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}

.about-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--teal);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.about-label::before, .about-label::after {
  content: '';
  display: block;
  width: 28px; height: 1.5px;
  background: var(--teal); opacity: 0.5;
}

.about-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: white;
  line-height: 1.15;
}
.about-title em { color: var(--teal); font-style: normal; }

.about-body {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.9;
  max-width: 680px;
}
.about-body strong { color: rgba(255,255,255,0.95); font-weight: 700; }
.about-body em     { color: var(--teal); font-style: normal; }

/* ══════════════════════════
   SECTION 3 — STREAMS
   Clean white, centred header, spacious cards
══════════════════════════ */
.streams {
  background: var(--offwhite);
  padding: 7rem 2rem 8rem;
  position: relative;
  overflow: hidden;
}

/* Wings decoration — top of streams */
.deco-wings-streams {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 58vw;
  max-width: 680px;
  height: auto;
  display: block;
  pointer-events: none;
  z-index: 0;
  filter: brightness(0) saturate(100%)
          invert(65%) sepia(25%) saturate(700%)
          hue-rotate(255deg) brightness(0.95) opacity(0.15);
}

.streams-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header — explicitly centred */
.streams-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.75rem;
  /* centred via parent text-align:center */
}

.section-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 0.7rem;
  line-height: 1.2;
}

.section-sub {
  font-size: 0.97rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto; /* centres within centred parent */
  line-height: 1.75;
}

/* Grid — more breathing room */
.streams-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}

.stream-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.75rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(155, 114, 208, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  /* equal height rows */
  height: 100%;
}
.stream-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--c, var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.stream-card:hover::before  { transform: scaleX(1); }
.stream-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(155, 114, 208, 0.14);
  border-color: rgba(155, 114, 208, 0.25);
}

.stream-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.25em;
  color: var(--c, var(--violet));
  text-transform: uppercase; opacity: 0.65;
}
.stream-emoji { font-size: 1.8rem; line-height: 1; }
.stream-title {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem; font-weight: 800;
  color: var(--navy); line-height: 1.25;
}
.stream-desc {
  font-size: 0.79rem; color: var(--muted);
  line-height: 1.6; flex: 1;
}
.stream-link {
  font-family: 'DM Mono', monospace;
  font-size: 0.57rem; letter-spacing: 0.08em;
  color: var(--c, var(--violet));
  text-transform: uppercase; opacity: 0.55;
  margin-top: 0.5rem;
  word-break: break-all;
  overflow-wrap: anywhere;
}


/* Under-development badge */
.dev-badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: rgba(107, 125, 179, 0.08);
  border: 1px solid rgba(107, 125, 179, 0.18);
  border-radius: 20px;
  padding: 5px 12px;
  margin-top: 0.5rem;
  width: fit-content;
  text-transform: uppercase;
  line-height: 1.4;
}

/* Teaching card — live, shiny */
.stream-card.live {
  background: linear-gradient(160deg, #fff 55%, rgba(155,114,208,0.05) 100%);
  border-color: rgba(155, 114, 208, 0.22);
}
.live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'DM Mono', monospace;
  font-size: 0.56rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: white;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  padding: 6px 12px; border-radius: 20px;
  margin-top: 0.5rem;
  width: fit-content;
  max-width: 100%;
  word-break: break-all;
  overflow-wrap: anywhere;
  box-shadow: 0 4px 14px rgba(155, 114, 208, 0.4);
  animation: badge-shine 2.8s ease-in-out infinite;
  line-height: 1.4;
}
@keyframes badge-shine {
  0%,100% { box-shadow: 0 4px 14px rgba(155,114,208,0.4); }
  50%     { box-shadow: 0 6px 24px rgba(155,114,208,0.7), 0 0 0 4px rgba(155,114,208,0.12); }
}

/* ══════════════════════════
   SECTION 4 — CTA
   Clean navy, no pink glow
══════════════════════════ */
.cta {
  background: linear-gradient(145deg, #1a2b5e 0%, #1f1760 55%, #14386a 100%);
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Teal glows only */
.cta::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 55% at 15% 50%, rgba(62,207,207,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 45% 45% at 85% 50%, rgba(62,207,207,0.07) 0%, transparent 70%);
}

/* Wings on the right side of CTA */
.deco-wings-cta {
  position: absolute;
  right: -60px; top: 50%;
  transform: translateY(-50%);
  width: 36vw;
  max-width: 420px;
  height: auto;
  display: block;
  pointer-events: none;
  z-index: 1;
  filter: brightness(0) saturate(100%)
          invert(90%) sepia(10%) saturate(300%)
          hue-rotate(180deg) brightness(1.2) opacity(0.1);
}

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
}
.cta-logo {
  width: 110px; height: auto; object-fit: contain;
  margin: 0 auto 2rem; display: block;
  filter: drop-shadow(0 8px 24px rgba(155,114,208,0.5));
  animation: float 4s ease-in-out infinite;
}
.cta-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900; color: white;
  margin-bottom: 1rem; line-height: 1.15;
}
.cta-title em { color: var(--teal); font-style: normal; }
.cta-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2.5rem;
  line-height: 1.75;
  max-width: 460px;
  margin-left: auto; margin-right: auto;
}
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; color: var(--navy);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem; font-weight: 900;
  padding: 16px 40px; border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0,0,0,0.3); }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  padding: 2.2rem 3rem;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.foot-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.foot-logo img { width: 34px; height: 34px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.65; }
.foot-name { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 0.9rem; color: rgba(255,255,255,0.55); }
.foot-links { display: flex; gap: 2rem; list-style: none; }
.foot-links a { font-family: 'DM Mono', monospace; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.28); text-decoration: none; transition: color 0.2s; }
.foot-links a:hover { color: rgba(255,255,255,0.7); }
.foot-copy { font-family: 'DM Mono', monospace; font-size: 0.6rem; color: rgba(255,255,255,0.22); letter-spacing: 0.06em; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.on { opacity: 1; transform: none; }


/* ── TENTACLE DECORATIONS ──
   Same subtlety as wings. Dark linework tinted with brand colours.
   Positioned at section corners so they peek in without covering content.
──────────────────────────────── */



/* Multi-arm — bottom-right of about, rising into wave */
.deco-arms-about {
  position: absolute;
  bottom: -40px; right: -60px;
  width: 38vw;
  max-width: 440px;
  height: auto;
  display: block;
  pointer-events: none;
  z-index: 2;
  /* teal tint */
  filter: brightness(0) saturate(100%)
          invert(72%) sepia(55%) saturate(500%)
          hue-rotate(138deg) brightness(0.9) opacity(0.18);
  transform: scaleX(-1);
}

/* Single arm — bottom-left of streams, curling up */
.deco-arm-streams {
  position: absolute;
  bottom: -30px; left: -70px;
  width: 36vw;
  max-width: 420px;
  height: auto;
  display: block;
  pointer-events: none;
  z-index: 0;
  /* blue tint */
  filter: brightness(0) saturate(100%)
          invert(55%) sepia(40%) saturate(700%)
          hue-rotate(190deg) brightness(0.9) opacity(0.16);
  transform: scaleX(-1) rotate(-10deg);
}

/* Multi-arm — bottom-left of CTA, rising up */
.deco-arms-cta {
  position: absolute;
  bottom: -30px; left: -50px;
  width: 36vw;
  max-width: 420px;
  height: auto;
  display: block;
  pointer-events: none;
  z-index: 2;
  /* teal-light tint for dark bg */
  filter: brightness(0) saturate(100%)
          invert(85%) sepia(20%) saturate(400%)
          hue-rotate(155deg) brightness(1.2) opacity(0.14);
}

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
  .streams-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .deco-wings-hero, .deco-wings-about, .deco-wings-streams, .deco-wings-cta,
  .deco-arms-about, .deco-arm-streams, .deco-arms-cta { display: none !important; }
}
@media (max-width: 560px) {
  .streams-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════
   FRESH FROM THE LAB (homepage) and TEACHING page cards
   Colour on a card encodes its type: violet game, blue simulation,
   teal tool, pink lecture. --c is set per card from the catalog.
══════════════════════════ */
.lab {
  background: var(--offwhite);
  padding: 5rem 2rem 6rem;
  position: relative;
}
.lab-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.lab-header { text-align: center; margin-bottom: 3rem; }
.lab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.lab-card {
  --ct: var(--navy);
  background: var(--white);
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.4rem;
  display: flex; flex-direction: column; gap: 0.7rem;
  text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
  border: 1.5px solid rgba(155, 114, 208, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
@supports (color: color-mix(in srgb, red, blue)) {
  .lab-card { --ct: color-mix(in srgb, var(--c) 62%, var(--navy)); }
}
.lab-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--c, var(--violet));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.lab-card:hover::before, .lab-card:focus-visible::before { transform: scaleX(1); }
.lab-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(155, 114, 208, 0.14);
  border-color: rgba(155, 114, 208, 0.25);
}
.lab-card:focus-visible { outline: 3px solid var(--c, var(--violet)); outline-offset: 3px; }
.lab-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.lab-emoji {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.5rem; line-height: 1;
  background: rgba(155, 114, 208, 0.12);
}
@supports (color: color-mix(in srgb, red, blue)) {
  .lab-emoji { background: color-mix(in srgb, var(--c, var(--violet)) 14%, white); }
}
.lab-type {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ct);
}
.lab-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem; font-weight: 800;
  color: var(--navy); line-height: 1.25;
}
.lab-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.6; flex: 1; }
.lab-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  padding-top: 0.65rem; border-top: 1px dashed rgba(155, 114, 208, 0.2);
}
.lab-course { font-size: 0.72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lab-open { font-family: 'Nunito', sans-serif; font-size: 0.8rem; font-weight: 800; color: var(--ct); white-space: nowrap; }
.lab-note { font-size: 0.68rem; color: var(--muted); opacity: 0.85; margin-top: -0.25rem; }
.lab-more { text-align: center; margin-top: 2.75rem; }
.lab-card.hide { display: none; }

/* ── TEACHING page ── */
.nav-links a.current { color: var(--violet); }
.tpage-hero {
  padding: 8.5rem 2rem 3.5rem;
  background: linear-gradient(160deg, #ddeeff 0%, #ece8ff 50%, #dff8f8 100%);
  position: relative; overflow: hidden;
}
.tpage-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 2; }
.tpage-crumb {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 0.9rem;
}
.tpage-crumb a { color: inherit; text-decoration: none; }
.tpage-crumb a:hover { text-decoration: underline; }
.tpage-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900;
  color: var(--navy); line-height: 1.1; margin-bottom: 1rem;
}
.tpage-title em { color: var(--violet); font-style: normal; }
.tpage-sub { font-size: 1.02rem; color: var(--muted); max-width: 560px; line-height: 1.75; }
.tpage-wings {
  position: absolute; right: -6vw; top: 3rem;
  width: 42vw; max-width: 540px; height: auto;
  pointer-events: none; z-index: 1;
  filter: brightness(0) saturate(100%)
          invert(65%) sepia(25%) saturate(700%)
          hue-rotate(255deg) brightness(0.95) opacity(0.16);
}
.tpage-list { background: var(--offwhite); padding: 3rem 2rem 6rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2.5rem; }
.chip {
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.82rem;
  color: var(--navy); background: var(--white);
  border: 1.5px solid rgba(155, 114, 208, 0.18); border-radius: 50px;
  padding: 0.55rem 1.1rem; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.chip span { font-family: 'DM Mono', monospace; font-size: 0.68rem; color: var(--muted); margin-left: 0.3rem; }
.chip:hover { border-color: var(--c, var(--violet)); }
.chip:focus-visible { outline: 3px solid var(--c, var(--violet)); outline-offset: 2px; }
.chip.on { background: var(--c, var(--violet)); border-color: var(--c, var(--violet)); color: white; }
.chip.on span { color: rgba(255, 255, 255, 0.85); }
.tpage-note {
  max-width: 640px; margin: 2.75rem auto 0; text-align: center;
  font-size: 0.85rem; color: var(--muted); line-height: 1.7;
}
.tpage-note a { color: var(--violet); font-weight: 700; text-decoration: none; }
.tpage-note a:hover { text-decoration: underline; }

@media (max-width: 1000px) { .lab-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .tpage-wings { display: none; } }
@media (max-width: 560px) {
  .lab-grid { grid-template-columns: 1fr; }
  .lab { padding: 4rem 1rem 4.5rem; }
  .tpage-hero { padding: 7rem 1rem 2.5rem; }
  .tpage-list { padding: 2rem 1rem 4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lab-card, .lab-card::before, .reveal { transition: none; }
  .reveal { opacity: 1; transform: none; }
}
