:root {
  --ink: #171717;
  --paper: #f7f5f0;
  --muted: #e7e4dc;
  --navy: #16324f;
  --line: rgba(23, 23, 23, 0.2);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
a { color: inherit; text-underline-offset: 0.18em; }
button { font: inherit; }
.container { width: min(100% - 3rem, 1280px); margin: 0 auto; }
h1, h2, p { margin-top: 0; }
.skip-link { position: fixed; z-index: 10; top: 0.75rem; left: 0.75rem; padding: 0.5rem 0.75rem; color: var(--paper); background: var(--ink); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.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; }
/* Header */
.site-header { position: sticky; z-index: 5; top: 0; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; }
.brand { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-decoration: none; }
.site-navigation { display: flex; gap: 1.75rem; font-size: 0.875rem; }
.site-navigation a { text-decoration: none; }
.site-navigation a:hover, .site-navigation a:focus-visible, .site-navigation a[aria-current="page"] { text-decoration: underline; }
.menu-toggle { display: none; border: 0; padding: 0.25rem; color: var(--ink); background: transparent; }
.menu-toggle span:not(.sr-only) { display: block; width: 1.5rem; height: 1px; margin: 0.35rem; background: currentColor; }
.home-header { background: #ffffff; }
.home-header .header-inner { gap: 2rem; }
.home-header .site-navigation a { color: var(--navy); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.header-icons { display: flex; align-items: center; gap: 1.1rem; color: var(--navy); }
.header-icons-group { display: flex; align-items: center; gap: 0.85rem; }
.icon-link { display: inline-flex; color: var(--navy); }
/* Language switch */
.lang-switch { position: relative; }
.lang-switch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.lang-switch-toggle:hover,
.lang-switch-toggle:focus-visible,
.lang-switch-toggle[aria-expanded="true"] { border-color: var(--navy); }
.lang-flag { font-size: 0.9rem; line-height: 1; }
.lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 6;
  min-width: 9rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
}
.lang-option:hover,
.lang-option:focus-visible { background: var(--muted); }
.lang-option.is-active { color: var(--navy); font-weight: 700; }
/* Footer */
.collab-footer { border-top: 1px solid var(--line); }
.collab-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.25rem 0; }
.collab-footer .brand { margin: 0; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; color: var(--navy); }
.footer-links-inline { display: flex; gap: 2rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-links-inline a { text-decoration: none; color: var(--navy); }
.footer-links-inline a:hover, .footer-links-inline a:focus-visible { text-decoration: underline; }
/* Lab Assistant */
.lab-assistant { position: fixed; z-index: 20; right: clamp(1rem, 4vw, 2rem); bottom: clamp(1rem, 4vw, 2rem); display: flex; flex-direction: column; align-items: flex-end; gap: 0.85rem; }
.lab-assistant-launcher { display: flex; align-items: center; gap: 0.75rem; }
.lab-assistant-hint { margin: 0; max-width: 12rem; padding: 0.65rem 1rem; color: var(--ink); background: var(--paper); border-radius: 999px; font-size: 0.8rem; line-height: 1.3; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14); }
.lab-assistant-trigger { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 4.25rem; height: 4.25rem; border-radius: 50%; border: 0; padding: 0; color: var(--paper); background: var(--ink); text-align: center; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1.25; cursor: pointer; box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22); }
.lab-assistant-trigger:hover, .lab-assistant-trigger:focus-visible { background: var(--navy); }
.lab-assistant-panel { width: min(20rem, calc(100vw - 2rem)); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 20px 48px rgba(0, 0, 0, 0.16); }
.lab-assistant-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.lab-assistant-header p { margin: 0; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.lab-assistant-controls { display: flex; gap: 0.5rem; }
.lab-assistant-controls button { width: 1.6rem; height: 1.6rem; border: 1px solid var(--line); background: none; color: var(--ink); cursor: pointer; line-height: 1; }
.lab-assistant-body { padding: 1.1rem; }
.lab-assistant-greeting { margin: 0 0 1rem; font-size: 0.9rem; }
.lab-assistant-menu { display: flex; flex-direction: column; }
.lab-assistant-menu a { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.lab-assistant-menu a:hover, .lab-assistant-menu a:focus-visible { text-decoration: underline; }
.lab-assistant-form { display: flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.1rem; border-top: 1px solid var(--line); }
.lab-assistant-form input { flex: 1; border: 0; padding: 0; background: transparent; font: inherit; font-size: 0.85rem; color: var(--ink); }
.lab-assistant-form input::placeholder { color: rgba(23, 23, 23, 0.45); }
.lab-assistant-form button { flex-shrink: 0; border: 0; padding: 0; background: none; color: var(--ink); font-size: 1.1rem; cursor: pointer; }
/* Collaborations hero */
.collab-hero { display: grid; grid-template-columns: minmax(20rem, 46%) 1fr; min-height: clamp(20rem, 46vh, 26rem); }
.collab-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2.5rem, 5vw, 4.5rem); background: var(--paper); }
.collab-hero-heading { margin: 0; color: var(--navy); font-family: var(--sans); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.05; font-size: clamp(2rem, 4.5vw, 3.2rem); }
.collab-rule { width: 2rem; margin: 1.5rem 0; border: none; border-top: 1px solid rgba(22, 50, 79, 0.35); }
.collab-hero-lead { max-width: 20rem; margin: 0; color: rgba(22, 50, 79, 0.8); font-size: 0.9rem; line-height: 1.6; }
.collab-hero-photo { position: relative; overflow: hidden; background: linear-gradient(160deg, #dbe9f1, #7891a3); }
.collab-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Collaborations list */
.collab-list { border-top: 1px solid var(--line); }
.collab-row { display: grid; grid-template-columns: minmax(14rem, 0.62fr) 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; padding: clamp(2.5rem, 6vw, 4rem) 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.collab-row-copy { padding-top: 0.25rem; }
.collab-row-brand { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); }
.collab-row-x { margin: 0.5rem 0; font-size: 0.9rem; color: rgba(22, 50, 79, 0.5); }
.collab-row-partner { margin: 0 0 1rem; color: var(--navy); font-family: var(--sans); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.collab-row-desc { margin: 0 0 1.5rem; max-width: 20rem; font-size: 0.9rem; line-height: 1.6; color: rgba(22, 50, 79, 0.75); }
.collab-row-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); }
.collab-row:hover .collab-row-link, .collab-row:focus-visible .collab-row-link { text-decoration: underline; }
.collab-row-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(160deg, #e3e6e8, #aeb6bb); }
.collab-row-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) {
  .container { width: min(100% - 2rem, 1280px); }
  .menu-toggle { display: block; }
  .site-navigation { position: absolute; top: 4.5rem; right: 0; left: 0; display: none; flex-direction: column; gap: 1rem; padding: 1.5rem 1rem; border-bottom: 1px solid var(--line); background: var(--paper); }
  .site-navigation.is-open { display: flex; }
  .lab-assistant { right: 1rem; bottom: 1rem; }
  .lab-assistant-hint { display: none; }
  .lab-assistant-trigger { width: 3.5rem; height: 3.5rem; font-size: 0.55rem; }
}
@media (max-width: 900px) {
  .collab-hero { grid-template-columns: 1fr; }
  .collab-hero-photo { min-height: 16rem; }
  .collab-row { grid-template-columns: 1fr; }
  .collab-row-photo { order: -1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }