/* QuickMethodLab — home v3
   Swiss editorial · dark hero · bento grid · big-type index
   Mobile-first, flat, no gradients */

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  --ink: #101210;
  --ink-2: #1c1f1c;
  --ink-3: #2a2e2a;
  --paper: #f2f2ec;
  --white: #fbfbf8;
  --grey: #6f746c;
  --grey-2: #a3a89e;
  --line: #e0e0d6;
  --line-dark: #33372f;
  --acid: #cdea4a;
  --acid-deep: #9db926;
  --max: 1200px;
  --gap: clamp(16px, 2.5vw, 24px);
  --pad: clamp(20px, 5vw, 48px);
  --r: 20px;
  --r-sm: 12px;
  --fd: "Space Grotesk", system-ui, sans-serif;
  --fs: "Instrument Serif", Georgia, serif;
}

* , *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.lab-home {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--fd);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01";
}

body.lab-home a { color: inherit; text-decoration: none; }
body.lab-home img { display: block; }

body.lab-home a:focus-visible,
body.lab-home button:focus-visible {
  outline: 3px solid var(--acid-deep);
  outline-offset: 2px;
}

.lab-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ───────── nav ───────── */

.lab-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(242, 242, 236, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.lab-nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: grid;
  grid-template-columns: auto minmax(160px, 340px) 1fr;
  grid-template-areas: "brand search actions";
  align-items: center;
  column-gap: 16px;
  row-gap: 12px;
}

.lab-wordmark {
  grid-area: brand;
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.lab-wordmark::before {
  content: "";
  width: 11px;
  height: 11px;
  background: var(--acid);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  transform: rotate(45deg);
}

.lab-nav-search-panel {
  grid-area: search;
  min-width: 0;
}

.lab-nav-search {
  position: relative;
  min-width: 0;
}

.lab-search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--grey);
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.lab-search-toggle:hover {
  color: var(--ink);
  border-color: var(--ink-3);
}

.lab-nav.is-search-open .lab-search-toggle {
  background: var(--acid);
  border-color: var(--ink);
  color: var(--ink);
}

.lab-search-form {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.lab-search-form:focus-within {
  border-color: var(--ink-3);
  box-shadow: 0 0 0 3px rgba(205, 234, 74, 0.35);
}

.lab-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}

.lab-search-input::placeholder { color: var(--grey-2); }
.lab-search-input:focus { outline: none; }

.lab-search-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--grey);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.lab-search-btn:hover {
  color: var(--ink);
  background: var(--line);
}

.lab-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 80;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: 0 18px 40px -20px rgba(16, 18, 16, 0.28);
  overflow: hidden;
}

.lab-search-dropdown .lab-search-result {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}

.lab-search-dropdown .lab-search-result:last-child { border-bottom: 0; }
.lab-search-dropdown .lab-search-result:hover { background: var(--paper); }

.lab-search-result-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.lab-search-result-meta {
  font-size: 12px;
  color: var(--grey-2);
  letter-spacing: 0.04em;
}

.lab-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lab-nav-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.lab-nav-links {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.lab-nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--grey);
  transition: color 0.15s, background 0.15s;
}

.lab-nav-links a:hover { color: var(--ink); background: var(--line); }

.lab-nav-links a.lab-nav-cta {
  color: var(--ink);
  background: var(--acid);
  font-weight: 600;
  margin-left: 6px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lab-nav-links a.lab-nav-cta:hover { background: var(--ink); color: var(--acid); }

@media (max-width: 720px) {
  .lab-nav-wrap {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 10px var(--pad);
  }

  .lab-nav.is-search-open .lab-nav-wrap {
    flex-wrap: wrap;
  }

  .lab-wordmark {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lab-nav-search-panel {
    display: none;
    flex: 1 1 100%;
    order: 10;
    width: 100%;
  }

  .lab-nav.is-search-open .lab-nav-search-panel {
    display: block;
  }

  .lab-nav-actions {
    flex: 0 0 auto;
    gap: 6px;
  }

  .lab-search-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .lab-nav-links {
    flex: 0 1 auto;
    min-width: 0;
  }

  .lab-nav-links a.lab-nav-cta {
    margin-left: 0;
    padding: 7px 11px;
    font-size: 12.5px;
    letter-spacing: 0.01em;
    max-width: 34vw;
  }
}

@media (max-width: 560px) {
  .lab-nav-links a:not(.lab-nav-cta) { display: none; }
}

/* ───────── search page ───────── */

.lab-search-main {
  padding-bottom: clamp(48px, 8vw, 96px);
}

.lab-search-head {
  margin: clamp(24px, 4vw, 40px) 0 clamp(24px, 3vw, 36px);
}

.lab-search-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-2);
}

.lab-search-head h1 {
  margin: 0;
  font-size: clamp(32px, 5.5vw, 48px);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.lab-search-head h1 .serif {
  font-family: var(--fs);
  font-style: italic;
  font-weight: 400;
}

.lab-search-page-box {
  max-width: 42rem;
  margin: 0 auto;
}

.lab-search-form--page {
  border-radius: var(--r-sm);
}

.lab-search-form--page .lab-search-input {
  padding: 14px 16px;
  font-size: 16px;
}

.lab-search-hint {
  margin: 14px 2px 0;
  font-size: 14px;
  color: var(--grey-2);
}

.lab-search-results {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.lab-search-results .lab-search-result {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.lab-search-results .lab-search-result:hover {
  transform: translateY(-2px);
  border-color: var(--ink-3);
  box-shadow: 0 12px 28px -18px rgba(16, 18, 16, 0.22);
}

/* ───────── hero ───────── */

.lab-hero {
  padding-top: clamp(16px, 3vw, 28px);
}

.lab-hero-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r);
  padding: clamp(36px, 7vw, 88px) clamp(24px, 5vw, 72px) clamp(28px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}

.lab-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-2);
  margin: 0 0 clamp(20px, 4vw, 36px);
}

.lab-hero-kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--acid);
}

.lab-hero h1 {
  margin: 0;
  font-size: clamp(44px, 10.5vw, 118px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
  max-width: 12ch;
}

.lab-hero h1 .serif {
  font-family: var(--fs);
  font-style: italic;
  font-weight: 400;
  color: var(--acid);
  letter-spacing: -0.02em;
}

.lab-hero-foot {
  margin-top: clamp(32px, 6vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
}

.lab-hero-sub {
  margin: 0;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.55;
  color: var(--grey-2);
  max-width: 34ch;
}

.lab-hero-sub strong { color: var(--paper); font-weight: 600; }

body.lab-home a.lab-hero-cta {
  color: var(--ink);
}

.lab-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 10px 10px 24px;
  background: var(--acid);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.15s ease;
}

body.lab-home a.lab-hero-cta:hover {
  color: var(--ink);
}

.lab-hero-cta:hover { transform: translateX(4px); }

.lab-hero-cta .arr {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--acid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* ticker under hero */
.lab-ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  padding: 18px 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--grey);
}

.lab-ticker span { display: inline-flex; align-items: center; }

.lab-ticker span + span::before {
  content: "·";
  margin: 0 14px;
  color: var(--grey-2);
}

.lab-ticker b { color: var(--ink); font-weight: 700; margin-right: 5px; }

/* ───────── section head ───────── */

.lab-sec { margin-top: clamp(40px, 8vw, 88px); }

.lab-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.lab-sec-head h2 {
  margin: 0;
  font-size: clamp(26px, 4.5vw, 40px);
  letter-spacing: -0.035em;
  font-weight: 600;
  line-height: 1.05;
}

.lab-sec-head h2 .serif {
  font-family: var(--fs);
  font-style: italic;
  font-weight: 400;
}

.lab-sec-index {
  font-size: 13px;
  font-weight: 600;
  color: var(--grey-2);
  letter-spacing: 0.14em;
}

.lab-sec-foot {
  margin: clamp(20px, 3vw, 28px) 0 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lab-sec-foot a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.lab-sec-foot a:hover {
  color: var(--acid-ink);
  border-color: var(--acid);
}

/* ───────── bento featured ───────── */

.lab-bento {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .lab-bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .lab-bento .is-lead { grid-column: 1 / -1; }
}

@media (min-width: 1020px) {
  .lab-bento {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
  }
  .lab-bento .is-lead {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }
}

.lab-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lab-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(16, 18, 16, 0.25);
}

.lab-tile-media {
  aspect-ratio: 16 / 9;
  background: var(--line);
  overflow: hidden;
}

.is-lead .lab-tile-media { aspect-ratio: 16 / 10; flex: 1; }

.lab-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.lab-tile:hover .lab-tile-media img { transform: scale(1.03); }

.lab-tile-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.is-lead .lab-tile-body { padding: 24px 28px 28px; }

.lab-tile-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 4px;
}

.lab-tile-topline .dot { color: var(--acid-deep); }

.lab-tile h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.is-lead h3 { font-size: clamp(26px, 4vw, 38px); }

.lab-tile p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--grey);
}

.is-lead p { font-size: 15px; max-width: 52ch; }

.lab-tile-arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--ink);
  transition: background 0.15s, color 0.15s, transform 0.2s;
}

.lab-tile:hover .lab-tile-arrow {
  background: var(--acid);
  border-color: var(--acid);
  transform: rotate(45deg);
}

/* dark promo tile inside bento */
.lab-tile--pitch {
  background: var(--ink-2);
  color: var(--paper);
  border-color: var(--ink-2);
  justify-content: space-between;
  padding: 26px 24px;
  gap: 28px;
  min-height: 240px;
}

.lab-tile--pitch:hover { box-shadow: 0 24px 48px -24px rgba(16, 18, 16, 0.5); }

.lab-tile--pitch .pitch-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acid);
}

.lab-tile--pitch .pitch-text {
  margin: 0;
  font-family: var(--fs);
  font-size: clamp(22px, 3vw, 27px);
  line-height: 1.25;
  font-weight: 400;
  color: var(--paper);
}

.lab-tile--pitch .pitch-text i { color: var(--acid); }

.lab-tile--pitch .pitch-foot {
  font-size: 13px;
  color: var(--grey-2);
}

/* ───────── topic index ───────── */

.lab-index {
  border-top: 1px solid var(--ink);
}

.lab-index-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px 18px;
  padding: 18px 6px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left 0.2s ease;
}

.lab-index-row:hover { padding-left: 14px; }

.lab-index-row::after {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  bottom: -1px;
  width: 0;
  background: var(--acid);
  z-index: -1;
  transition: width 0.2s ease;
}

.lab-index-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--grey-2);
  width: 3ch;
}

.lab-index-name {
  font-size: clamp(19px, 3.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lab-index-row:hover .lab-index-name { font-style: normal; }

.lab-index-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--grey);
  white-space: nowrap;
}

.lab-index-count {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.lab-index-row:hover .lab-index-count {
  background: var(--ink);
  color: var(--acid);
  border-color: var(--ink);
}

.lab-index-row.is-empty .lab-index-name {
  color: var(--grey);
  font-weight: 500;
}

.lab-index-row.is-empty .lab-index-count {
  background: transparent;
  color: var(--grey-2);
}

.lab-index-arr {
  font-size: 18px;
  color: var(--grey-2);
  transition: transform 0.2s, color 0.2s;
}

.lab-index-row:hover .lab-index-arr {
  transform: translateX(4px);
  color: var(--ink);
}

@media (max-width: 560px) {
  .lab-index-arr { display: none; }
  .lab-index-row { grid-template-columns: auto 1fr auto; }
}

/* ───────── category page ───────── */

.lab-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 18px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--grey);
}

.lab-crumb a {
  color: var(--grey);
  transition: color 0.15s;
}

.lab-crumb a:hover { color: var(--ink); }

.lab-crumb .sep { color: var(--grey-2); }

.lab-crumb [aria-current] { color: var(--ink); font-weight: 600; }

.lab-cat-hero {
  padding-top: clamp(12px, 2vw, 20px);
}

.lab-cat-hero-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r);
  padding: clamp(28px, 6vw, 64px) clamp(24px, 5vw, 72px) clamp(24px, 5vw, 48px);
}

.lab-cat-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(14px, 3vw, 24px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-2);
}

.lab-cat-hero-kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--acid);
}

.lab-cat-hero h1 {
  margin: 0;
  font-size: clamp(34px, 8vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  font-weight: 600;
  max-width: 16ch;
}

.lab-cat-hero h1 .serif {
  font-family: var(--fs);
  font-style: italic;
  font-weight: 400;
  color: var(--acid);
}

.lab-cat-hero-foot {
  margin-top: clamp(20px, 4vw, 36px);
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
  color: var(--grey-2);
}

.lab-cat-hero-foot b { color: var(--paper); font-weight: 700; }

.lab-cat-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--paper);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.lab-cat-hero-back:hover {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--ink);
}

/* empty category */
.lab-empty {
  border: 1px dashed var(--grey-2);
  border-radius: var(--r);
  padding: clamp(32px, 7vw, 64px) clamp(24px, 5vw, 48px);
  text-align: center;
}

.lab-empty p {
  margin: 0 auto;
  max-width: 42ch;
  font-size: 15px;
  color: var(--grey);
}

.lab-empty .lab-empty-title {
  display: block;
  margin: 0 auto 10px;
  font-family: var(--fs);
  font-style: italic;
  font-size: clamp(22px, 4vw, 30px);
  color: var(--ink);
}

/* ───────── method band ───────── */

.lab-method {
  margin-top: clamp(48px, 9vw, 104px);
  border-top: 1px solid var(--ink);
  padding-top: clamp(28px, 4vw, 44px);
  display: grid;
  gap: clamp(24px, 4vw, 48px);
}

@media (min-width: 860px) {
  .lab-method { grid-template-columns: 5fr 7fr; }
}

.lab-method-title {
  margin: 0;
  font-size: clamp(26px, 4.5vw, 40px);
  letter-spacing: -0.035em;
  font-weight: 600;
  line-height: 1.08;
  max-width: 14ch;
}

.lab-method-title .serif {
  font-family: var(--fs);
  font-style: italic;
  font-weight: 400;
}

.lab-steps { display: grid; gap: 0; }

.lab-step-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.lab-step-row:first-child { padding-top: 0; }

.lab-step-num {
  font-family: var(--fs);
  font-style: italic;
  font-size: 26px;
  line-height: 1;
  color: var(--acid-deep);
  width: 2ch;
  padding-top: 2px;
}

.lab-step-row h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lab-step-row p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--grey);
  max-width: 52ch;
}

/* ───────── footer ───────── */

.lab-footer {
  margin-top: clamp(48px, 9vw, 104px);
}

.lab-footer-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r) var(--r) 0 0;
  padding: clamp(32px, 6vw, 64px) clamp(24px, 5vw, 72px) clamp(24px, 4vw, 40px);
}

.lab-footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: clamp(28px, 5vw, 48px);
  border-bottom: 1px solid var(--line-dark);
}

.lab-footer-word {
  font-size: clamp(30px, 6vw, 56px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.lab-footer-word .serif {
  font-family: var(--fs);
  font-style: italic;
  font-weight: 400;
  color: var(--acid);
}

.lab-footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.lab-footer-links a { color: var(--grey-2); transition: color 0.15s; }
.lab-footer-links a:hover { color: var(--acid); }

.lab-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  font-size: 12.5px;
  color: var(--grey);
}

.lab-footer-bottom .preview-tag {
  color: var(--acid);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.lab-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.lab-footer-legal a {
  color: var(--grey);
  text-decoration: none;
  transition: color 0.15s;
}

.lab-footer-legal a:hover { color: var(--acid); }

/* ───────── legal pages ───────── */

.lab-legal {
  padding-top: clamp(8px, 1.5vw, 16px);
  padding-bottom: clamp(48px, 8vw, 96px);
}

.lab-legal .lab-crumb,
.lab-legal-head,
.lab-legal-body,
.lab-legal-related {
  width: 100%;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.lab-legal .lab-crumb {
  padding-top: 12px;
}

.lab-legal-head {
  margin-top: clamp(24px, 4vw, 40px);
  margin-bottom: clamp(28px, 5vw, 48px);
}

.lab-legal-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-2);
}

.lab-legal-head h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5.5vw, 52px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-weight: 600;
}

.lab-legal-updated {
  margin: 0;
  font-size: 14px;
  color: var(--grey-2);
}

.lab-legal-body {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 36px);
  box-sizing: border-box;
}

.lab-legal-body h2 {
  margin: 1.75em 0 0.6em;
  font-size: clamp(18px, 2.5vw, 22px);
  letter-spacing: -0.02em;
  font-weight: 600;
}

.lab-legal-body h2:first-child { margin-top: 0; }

.lab-legal-body p {
  margin: 0 0 1em;
  font-size: 16px;
  line-height: 1.65;
  color: var(--grey);
}

.lab-legal-body ul {
  margin: 0 0 1.25em;
  padding-left: 1.25em;
  font-size: 16px;
  line-height: 1.65;
  color: var(--grey);
}

.lab-legal-body li { margin-bottom: 0.45em; }

.lab-legal-related {
  margin-top: clamp(20px, 3vw, 32px);
  font-size: 14px;
  color: var(--grey-2);
}

.lab-legal-related a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lab-legal-related a:hover { color: var(--acid-ink); }

.lab-legal-lead {
  max-width: 42rem;
  margin: 0 auto clamp(20px, 3vw, 28px);
  font-size: 17px;
  line-height: 1.65;
  color: var(--grey);
}

.lab-team-grid,
.lab-contact-grid {
  max-width: 42rem;
  margin: 0 auto clamp(24px, 4vw, 36px);
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .lab-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.lab-team-card,
.lab-contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 18px 20px;
}

.lab-team-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.lab-team-role {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-2);
}

.lab-team-card p:last-child {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--grey);
}

.lab-contact-label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-2);
}

.lab-contact-detail {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-3);
}

.lab-contact-detail a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lab-contact-detail a:hover { color: var(--acid-deep); }

.lab-legal-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lab-legal-body a:hover { color: var(--acid-deep); }

/* ───────── category pagination ───────── */

.lab-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(24px, 4vw, 36px);
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
}

.lab-pager-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.lab-pager-range {
  font-size: 14px;
  font-weight: 500;
  color: var(--grey);
}

.lab-pager-nums {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.lab-pager-btn,
.lab-pager-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lab-pager-num {
  min-width: 40px;
  padding: 8px 10px;
}

.lab-pager-btn:hover,
.lab-pager-num:hover {
  background: var(--acid);
  border-color: var(--ink);
  color: var(--ink);
}

.lab-pager-num.is-current {
  background: var(--acid);
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 700;
}

.lab-pager-btn.is-disabled {
  opacity: 0.45;
  cursor: default;
}

@media (max-width: 640px) {
  .lab-pager {
    flex-direction: column;
    align-items: stretch;
  }

  .lab-pager-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
