:root {
    color-scheme: light;
    --bg: #ffffff;
    --ink: #17171a;
    --ink-2: #4a4a50;
    --muted: #8a8a90;
    --rule: #e7e7ea;
    --soft: #f4f4f6;
    --accent: #0f8b8d;
    --panel-bg: #ffffff;
    --panel-filter: none;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  html { scroll-padding-top: env(safe-area-inset-top, 0px); scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  *, *::before, *::after { box-sizing: inherit; }
  body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; text-decoration: none; }
  a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
  p { margin: 0; }
  .wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
  .serif, h1, h2, h3 { font-family: "Newsreader", Georgia, "Times New Roman", serif; font-weight: 400; }

  /* Navigation */
  nav { display: flex; align-items: center; justify-content: space-between; padding: 24px 0 20px; }
  .brand { display: flex; align-items: center; gap: 10px; font-family: "Newsreader", Georgia, serif; font-size: 23px; font-weight: 500; letter-spacing: -.01em; }
  .brand img { height: 26px; width: auto; }
  .brand small { font-family: "Inter", system-ui, sans-serif; font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
  nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
  nav li a { font-size: 14px; color: var(--ink-2); }
  nav li a:hover { color: var(--ink); }

  /* Hero */
  .hero { padding: 64px 0 56px; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 1fr auto; column-gap: 56px; align-items: center; }
  .lab-logo { grid-column: 2; grid-row: 1 / 4; align-self: center; justify-self: end; padding-right: 8px; }
  .lab-logo img { height: 270px; width: auto; filter: var(--panel-filter); }
  .lab { display: flex; align-items: center; gap: 16px; margin-bottom: 36px; }
  .lab .name { font-family: "Newsreader", Georgia, serif; font-size: 30px; font-weight: 500; letter-spacing: -.01em; line-height: 1.1; }
  .lab .name span { display: block; font-family: "Inter", system-ui, sans-serif; font-size: 13.5px; font-weight: 400; color: var(--muted); margin-top: 4px; letter-spacing: 0; }
  h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 24px; max-width: 14ch; }
  #about h1 { max-width: none; }
  #about h1 .ul { display: block; }
  h1 .ul { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 9px; }
  .lede { font-family: "Newsreader", Georgia, serif; font-size: 21px; line-height: 1.45; color: var(--ink-2); max-width: 52ch; }
  .lede a { border-bottom: 1px solid var(--rule); }
  .lede a:hover { color: var(--accent); border-color: var(--accent); }
  .cta { display: flex; gap: 24px; margin-top: 26px; font-size: 14.5px; }
  .cta a { color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
  .cta a:hover { color: var(--accent); border-color: var(--accent); }
  .stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--rule); }
  .stats b { display: block; font-family: "Newsreader", Georgia, serif; font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: -.02em; }
  .stats span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--muted); }

  /* Sections */
  section { padding: 64px 0; border-bottom: 1px solid var(--rule); }
  h2 { font-size: 34px; letter-spacing: -.015em; line-height: 1.1; margin: 0 0 8px; }
  .sub { color: var(--muted); margin: 0 0 40px; font-size: 15px; }
  .quiet { color: var(--ink); border-bottom: 1px solid var(--rule); }
  .quiet:hover { color: var(--accent); border-color: var(--accent); }
  .who { font-size: 13.5px; color: var(--muted); }
  .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 13.5px; }
  .meta .venue { display: inline-block; color: var(--ink); background: color-mix(in srgb, var(--accent) 14%, transparent); padding: 2px 8px; border-radius: 3px; font-size: 12.5px; font-weight: 500; letter-spacing: .02em; }
  .meta a { color: var(--ink-2); border-bottom: 1px solid var(--rule); }
  .meta a:hover { color: var(--accent); border-color: var(--accent); }
  .links { display: flex; gap: 14px; white-space: nowrap; }

  /* Featured panels */
  .featured { display: grid; grid-template-columns: 1fr 1fr; gap: 52px 48px; }
  .panel img {
    display: block; width: 100%; aspect-ratio: 2.25 / 1; object-fit: cover;
    background: var(--panel-bg); border: 2px solid #000; border-radius: 3px; filter: var(--panel-filter);
  }
  .panel h3 { font-size: 24px; font-weight: 500; margin: 18px 0 4px; letter-spacing: -.01em; line-height: 1.25; }
  .panel h3 a:hover { color: var(--accent); }
  .panel .hook { font-weight: 400; color: var(--ink-2); font-size: 20px; }
  .panel .full { font-size: 14.5px; color: var(--ink-2); line-height: 1.45; margin-bottom: 6px; }
  .panel .full a:hover { color: var(--accent); }
  .panel .who { margin-bottom: 8px; }

  /* Compact publication grid */
  .grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; border-top: 1px solid var(--rule); }
  .grid li { padding: 18px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
  .grid .t { font-family: "Newsreader", Georgia, serif; font-size: 18px; font-weight: 500; line-height: 1.3; letter-spacing: -.005em; }
  .grid .t a:hover { color: var(--accent); }
  .grid .meta { margin-top: 2px; }
  .seeall { display: inline-block; margin-top: 32px; font-size: 14.5px; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
  .seeall:hover { color: var(--accent); border-color: var(--accent); }
  .more { margin-top: 56px; }
  .more h3 { font-size: 26px; margin: 0 0 6px; letter-spacing: -.01em; }

  /* News */
  .news { list-style: none; margin: 0; padding: 0; max-width: 720px; border-top: 1px solid var(--rule); }
  .news li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
  .news time { color: var(--muted); font-size: 13.5px; padding-top: 2px; }

  /* Team */
  .team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 40px; }
  .team li { display: flex; gap: 14px; align-items: flex-start; }
  .ini { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--soft); border: 1px solid var(--rule); display: grid; place-items: center; font-family: "Newsreader", Georgia, serif; font-size: 17px; color: var(--ink-2); }
  .gem-bird { flex: none; width: 64px; height: 64px; object-fit: contain; filter: var(--panel-filter); margin: -6px 0 0 -4px; }
  .ini.photo { object-fit: cover; filter: grayscale(.5); opacity: .9; width: 70px; height: 70px; }
  .team li:hover .ini.photo { filter: none; opacity: 1; }
  .ini.duo { position: relative; overflow: hidden; }
  .ini.duo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
  .ini.duo .real { opacity: 0; }
  .team li:hover .ini.duo .real { opacity: 1; }
  .ini img { height: 24px; width: auto; }
  .team .n { font-family: "Newsreader", Georgia, serif; font-size: 19px; font-weight: 500; line-height: 1.2; }
  .team .n a:hover { color: var(--accent); }
  .team .r { font-size: 13.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
  .before { display: flex; align-items: center; gap: 18px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--rule); color: var(--ink-2); }
  .before img { height: 64px; width: auto; flex: none; filter: var(--panel-filter); }
  .before p { margin: 0; }
  .alumni-h { font-size: 22px; margin: 56px 0 14px; letter-spacing: -.01em; }
  .alumni { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: 40px; font-size: 14px; color: var(--ink-2); }
  .alumni li { break-inside: avoid; padding: 4px 0; }
  .alumni span { color: var(--muted); }
  .alumni span::before { content: "→ "; }

  /* Collaborate + connect */
  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
  .two p { color: var(--ink-2); max-width: 46ch; margin-bottom: 14px; }
  .partners { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: "Newsreader", Georgia, serif; font-size: 18px; }
  .partners .dim { color: var(--muted); font-style: italic; }
  .contact { list-style: none; margin: 0; padding: 0; }
  .contact li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .contact li:first-child { border-top: 1px solid var(--rule); }
  .contact span { color: var(--muted); font-size: 13.5px; padding-top: 2px; }

  footer { padding: 28px 0 48px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
  footer a { color: var(--ink-2); }
  footer a:hover { color: var(--accent); }
  footer .r { display: flex; gap: 22px; }

  @media (max-width: 860px) {
    .team { grid-template-columns: 1fr 1fr; }
    .alumni { columns: 2; }
  }
  @media (max-width: 720px) {
    .wrap { padding: 0 20px; }
    nav { flex-direction: column; gap: 14px; align-items: flex-start; }
    nav ul { gap: 18px; flex-wrap: wrap; }
    .hero { padding: 44px 0 44px; grid-template-columns: 1fr; }
    .lab-logo { grid-column: 1; grid-row: auto; justify-self: start; padding: 0; margin-bottom: 20px; }
    .lab-logo img { height: 96px; }
    .lab .name { font-size: 26px; }
    .lede { font-size: 18.5px; }
    .stats { grid-template-columns: 1fr 1fr; gap: 24px 16px; margin-top: 40px; }
    .stats b { font-size: 32px; }
    section { padding: 48px 0; }
    .featured, .grid, .two { grid-template-columns: 1fr; }
    .featured { gap: 40px; }
    .team { grid-template-columns: 1fr; gap: 20px; }
    .alumni { columns: 1; }
    .news li { grid-template-columns: 1fr; gap: 2px; }
    .meta { flex-direction: column; gap: 6px; }
    .cta { flex-wrap: wrap; gap: 14px 22px; }
  }
  @media (prefers-reduced-motion: no-preference) { a { transition: color .15s ease, border-color .15s ease; } }

  /* Header logo: plain gem, bird peeks in on hover */
  .lab-logo { position: relative; }
  .lab-logo img { display: block; transition: opacity .35s ease; }
  .lab-logo .alt { position: absolute; top: 0; left: 0; margin: 0; opacity: 0; }
  .lab-logo:hover .alt, .lab-logo:focus-within .alt { opacity: 1; }
  .lab-logo:hover .base, .lab-logo:focus-within .base { opacity: 0; }
  @media (prefers-reduced-motion: reduce) { .lab-logo img { transition: none; } }
