/* Design tokens mirror omega-lab-site/src/styles/global.css. Keep them in sync. */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Space Grotesk Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('../fonts/space-grotesk-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Source Serif 4 Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url('../fonts/source-serif-4-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  --brand: #8a5f5c;
  --rose: #a37774;
  --coral: #e88873;
  --peach: #e0ac9d;
  --canvas: #faf8f6;
  --surface: #f1ece8;
  --accent-soft: #f0e2dd;
  --ink: #484a47;
  --text: #5c6d70;
  --line: #ded8d2;
  --white: #fff;
  --wordmark: 'Source Serif 4 Variable', 'Songti SC', 'SimSun', serif;
  --heading: 'Space Grotesk Variable', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --body: 'Inter Variable', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --content: 1240px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 18px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--brand);
}
a:focus-visible,
button:focus-visible,
video:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 5px;
}
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
p {
  margin: 0 0 1em;
}
h1,
h2,
h3 {
  font-family: var(--heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.045em;
}
h2 {
  font-size: clamp(30px, 3.5vw, 45px);
}
h3 {
  font-size: 21px;
  letter-spacing: -0.03em;
}
::selection {
  background: var(--peach);
  color: var(--ink);
}
.container {
  width: min(var(--content), calc(100% - 96px));
  margin-inline: auto;
}
.section {
  padding-block: 96px;
}
.section-tint {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.eyebrow {
  font: 600 12px/1.6 var(--heading);
  letter-spacing: 0.15em;
  color: var(--text);
  margin-bottom: 20px;
}
.eyebrow-rule {
  display: inline-block;
  width: 23px;
  height: 2px;
  background: var(--brand);
  vertical-align: middle;
  margin-right: 12px;
}
.skip-link {
  position: fixed;
  top: -90px;
  left: 20px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--white);
  border: 1px solid var(--ink);
}
.skip-link:focus {
  top: 12px;
}

/* Header — same structure as the lab site */
.site-header {
  height: 91px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.wordmark {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  white-space: nowrap;
}
.omega-glyph {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.brand-name {
  font: 500 23px/1.1 var(--wordmark);
  letter-spacing: 0.035em;
}
.brand-lab {
  font-size: 15px;
  letter-spacing: 0.1em;
  margin-left: 9px;
}
.brand-expansion {
  display: flex;
  flex-direction: column;
  font: 400 12px/1.4 var(--body);
  letter-spacing: 0.01em;
  color: var(--text);
}
.header-divider {
  height: 30px;
  width: 1px;
  background: var(--line);
}
.header-context {
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
}
.main-nav {
  display: flex;
  margin-left: auto;
  gap: 28px;
  font-size: 15px;
}
.main-nav a {
  padding-block: 12px;
}

/* Breadcrumb */
.crumbs {
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--text);
}
.crumbs-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 52px;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.crumbs li + li::before {
  content: '/';
  margin-right: 10px;
  color: var(--line);
}
.crumbs [aria-current='page'] {
  color: var(--ink);
  font-weight: 600;
}
.crumbs-back {
  white-space: nowrap;
  font-weight: 600;
}

/* Hero */
.hero {
  padding-block: 72px 48px;
}
.hero h1 {
  font-size: clamp(64px, 9vw, 116px);
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--brand);
}
.subtitle {
  font: 550 clamp(22px, 2.6vw, 32px)/1.3 var(--heading);
  letter-spacing: -0.03em;
  max-width: 820px;
  margin: 18px 0 30px;
}
.authors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 550;
}
.authors sup,
.affiliations sup {
  color: var(--brand);
  font-size: 0.7em;
  margin-left: 2px;
}
.affiliations {
  list-style: none;
  padding: 0;
  margin: 0 0 34px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
  padding: 12px 20px;
  font-size: 15px;
  min-height: 48px;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
}
.button:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}
.button-light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.button-light:hover {
  background: var(--accent-soft);
  border-color: var(--brand);
  color: var(--brand);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  padding-block: 4px;
}

/* Media */
.media-frame {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(10px, 2vw, 24px);
}
.media-frame img {
  width: 100%;
  object-fit: contain;
}
.media-frame figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text);
}
.overview img {
  max-width: 960px;
  margin-inline: auto;
}
.video-frame {
  padding: 0;
}
.intro-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--white);
}

/* Section headings — same two-column rhythm as the lab site */
.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 44px;
}
.section-heading > p {
  color: var(--text);
  margin: 0;
}

/* Capabilities */
.capabilities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  padding: 0;
  margin: 0 0 44px;
  border-top: 1px solid var(--line);
}
.capabilities li {
  padding: 28px 24px 8px 0;
}
.capabilities li + li {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.cap-index {
  display: block;
  font: 600 12px var(--heading);
  letter-spacing: 0.15em;
  color: var(--brand);
  margin-bottom: 14px;
}
.capabilities h3 {
  margin-bottom: 10px;
}
.capabilities p {
  font-size: 15px;
  color: var(--text);
}

/* Examples */
.examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.examples li {
  background: var(--white);
  border: 1px solid var(--line);
}
.examples video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111;
  cursor: pointer;
}
.examples span {
  display: block;
  padding: 12px 16px;
  font: 600 14px var(--heading);
  letter-spacing: 0.02em;
}
.note {
  font-size: 15px;
  color: var(--text);
  margin: 0;
}

/* Demo band */
.demo-band {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--line);
}
.demo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: 64px;
}
.demo-inner h2 {
  margin-bottom: 12px;
}
.demo-inner p:last-child {
  color: var(--text);
  margin: 0;
}

/* Results */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 40px;
  border-block: 1px solid var(--line);
}
.stats div {
  padding: 22px 0;
}
.stats div + div {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
.stats dt {
  font: 600 12px var(--heading);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
}
.stats dd {
  margin: 6px 0 0;
  font: 600 44px/1 var(--heading);
  letter-spacing: -0.04em;
  color: var(--brand);
}
.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.tab-list button {
  font: 500 14px var(--body);
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 9px 14px;
  cursor: pointer;
}
.tab-list button:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.tab-list button[aria-selected='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.tab-panel > p {
  color: var(--text);
  font-size: 16px;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.qualitative {
  margin-top: 56px;
}

/* Citation */
.bibtex {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
}
.bibtex pre {
  margin: 0;
  padding: 26px 28px;
  overflow-x: auto;
  font: 14px/1.7 ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color: var(--ink);
}
.copy {
  position: absolute;
  top: 12px;
  right: 12px;
  font: 600 13px var(--body);
  background: var(--canvas);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 6px 12px;
  cursor: pointer;
}
.copy:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-block: 36px;
}
.footer-inner p {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  flex: 1;
}
.wordmark.small {
  font: 500 19px/1 var(--wordmark);
  letter-spacing: 0.035em;
}
.wordmark.small .omega-glyph {
  width: 36px;
  height: 36px;
}
.wordmark.small .brand-lab {
  font-size: 12px;
  margin-left: 7px;
}

@media (max-width: 1000px) {
  .header-divider,
  .header-context,
  .brand-expansion {
    display: none;
  }
  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .capabilities {
    grid-template-columns: 1fr 1fr;
  }
  .capabilities li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .examples {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 17px;
  }
  .container {
    width: calc(100% - 32px);
  }
  .site-header {
    height: 72px;
  }
  .omega-glyph {
    width: 40px;
    height: 40px;
  }
  .main-nav {
    display: none;
  }
  .crumbs ol {
    display: none;
  }
  .section {
    padding-block: 64px;
  }
  .hero {
    padding-block: 48px 36px;
  }
  .capabilities,
  .examples,
  .pair,
  .stats {
    grid-template-columns: 1fr;
  }
  .capabilities li,
  .capabilities li + li {
    padding: 22px 0 4px;
    border-left: 0;
  }
  .capabilities li + li {
    border-top: 1px solid var(--line);
  }
  .stats div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .demo-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .button {
    min-height: 44px;
    padding: 10px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
