/* Visual language shared with the JevAny project page (simplejev.github.io/JevAny). */
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Condensed";
  src: url("assets/fonts/ibm-plex-sans-condensed-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f1f3ed;
  --muted: #a9b4b6;
  --subtle: #819497;
  --mint: #a8f0c8;
  --line: rgba(210, 239, 229, .14);
  --surface: #0a1114;
  --panel: #0b1717ed;
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; color: var(--ink); background: var(--surface); isolation: isolate; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
::selection { color: #091713; background: var(--mint); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 5px; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 500; }
svg, img { display: block; }
.wrap { max-width: 1240px; margin-inline: auto; width: calc(100% - 96px); }
.mono, .eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .11em; }
.eyebrow { line-height: 1.7; text-transform: uppercase; color: var(--mint); }
.skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 10; padding: 14px 20px; color: var(--surface); background: var(--mint); }

.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #0b151a; }
.ambient-poster, .ambient-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ambient-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 35%, rgba(7, 15, 18, .9) 8%, rgba(7, 15, 18, .65) 58%, rgba(7, 15, 18, .4)), linear-gradient(0deg, #07101299, #07101211); }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 104px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 8px; align-items: center; font-size: 24px; font-weight: 600; letter-spacing: -1px; }
.brand-period { color: var(--mint); }
.site-header nav { display: flex; gap: 32px; align-items: center; font-size: 13px; color: #d0d9d6; }
.site-header a, .site-footer a { transition: color .2s; }
.site-header a:hover, .site-footer a:hover { color: var(--mint); }
.header-links { display: flex; align-items: center; gap: 10px; }
.header-link { display: flex; gap: 11px; align-items: center; font-size: 13px; padding: 0 16px; height: 44px; border: 1px solid var(--line); border-radius: 5px; white-space: nowrap; }
.header-link svg { width: 17px; height: 17px; }
.hf-mark { font-size: 20px; }

/* Affiliation ribbon */
.affiliation-ribbon { display: flex; align-items: center; justify-content: center; gap: 28px; padding-block: 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ribbon-label { font-size: 12px; letter-spacing: .11em; text-transform: uppercase; color: var(--subtle); }
.affiliation-ribbon ul { display: flex; align-items: center; gap: 42px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: center; }
.affiliation-ribbon li { font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: #d9e4de; }
.affiliation-ribbon li.ribbon-more { font-size: 14px; font-weight: 400; color: var(--subtle); }

/* Hero */
.hero { text-align: center; padding-block: 76px 80px; }
.hero-eyebrow { margin-bottom: 26px; }
.hero h1 { font-family: "IBM Plex Sans Condensed", sans-serif; font-size: clamp(80px, 8.5vw, 120px); line-height: 1.02; letter-spacing: -.035em; }
.hero-accent { color: #c7f0dc; white-space: nowrap; }
.hero-description { margin: 30px auto 0; max-width: 560px; color: #c2cec9; font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 29px; flex-wrap: wrap; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 23px; gap: 10px; font-size: 13px; font-weight: 600; border-radius: 4px; border: 1px solid transparent; transition: background .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #10241c; background: var(--mint); border-color: var(--mint); }
.button.primary:hover { background: #c8fadb; }
.button.secondary { background: #10202052; border-color: #c3e4d62d; }
.button.secondary:hover { background: #8ac2a31c; }
.star-icon { font-size: 22px; line-height: 1; }

/* Stats */
.stats { border-top: 1px solid var(--line); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-grid > div { padding: 30px 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column-reverse; gap: 8px; }
.stat-grid > div:first-child { padding-left: 0; }
.stat-grid > div:last-child { border-right: 0; }
.stat-grid dt { font-size: 13px; color: var(--muted); }
.stat-grid dd { font-family: "IBM Plex Sans Condensed", sans-serif; font-size: 52px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-grid dd span { color: var(--mint); }

/* Shared section pieces */
h2 { font-size: 40px; line-height: 1.1; letter-spacing: -.045em; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 20px 0 26px; }
.section-heading h2 { font-size: 34px; }
.text-link { display: inline-flex; align-items: center; gap: 16px; padding-block: 6px; font-size: 12px; color: #dbe7e1; line-height: 1.6; }
.text-link:hover { color: var(--mint); }
.text-link > span { color: var(--mint); }
.section-description { color: var(--muted); font-size: 15px; line-height: 1.9; max-width: 460px; margin-top: 24px; }

/* Mission */
.mission-section { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; padding-block: 104px; border-top: 1px solid var(--line); }
.mission-copy h2 { max-width: 480px; }
.steps { padding: 0; margin: 31px 0 22px; list-style: none; display: grid; gap: 22px; }
.steps li { display: flex; gap: 20px; }
.step-mark { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #a8f0c84a; border-radius: 5px; color: var(--mint); letter-spacing: .04em; }
.steps h3 { font-size: 16px; color: #e0eae4; margin-bottom: 6px; }
.steps p { font-size: 14px; line-height: 1.8; color: #a8bcb0; max-width: 380px; }
.api-visual { align-self: center; min-width: 0; border: 1px solid #a5bcad24; border-radius: 8px; background: #0c1817; }
.api-top { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); color: #afc3b7; font-size: 13px; }
.decision-input { padding: 22px 24px 24px; font-size: 14px; line-height: 1.7; color: #d4e0da; }
.decision-input .input-label { color: var(--subtle); margin-bottom: 4px; }
.decision-input .input-label + p + .input-label { margin-top: 18px; }
.decision-output { padding: 25px 24px 23px; border-top: 1px solid var(--line); }
.output-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; gap: 12px; font-size: 14px; }
.example-label { font-size: 12px; color: #a7bbb0; }
.probability { display: grid; grid-template-columns: 64px 1fr 40px 12px; align-items: center; gap: 14px; font-size: 12px; color: var(--mint); margin-top: 15px; }
.probability .mono { text-align: right; letter-spacing: .04em; }
.probability-track { height: 5px; border-radius: 2px; background: #d3e9da12; overflow: hidden; }
.probability-track i { height: 100%; background: var(--mint); display: block; border-radius: 2px; }
.probability.other { color: #9ab0a3; }
.probability.other i { background: #6f8d7c; }

/* JevAny project */
.project-section { padding-block: 24px 80px; border-top: 1px solid var(--line); }
.project-eyebrow { margin-bottom: 10px; }
.project-section .section-heading h2 { font-size: 45px; }
.project-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); border: 1px solid #a8f0c84a; border-radius: 8px; background: #152821eb; overflow: hidden; }
.project-intro { padding: 36px; }
.project-lede { margin-top: 26px; font-size: 24px; line-height: 1.45; letter-spacing: -.02em; color: #e8f1ec; max-width: 520px; }
.project-lede strong { font-weight: 500; color: var(--mint); }
.project-body { margin-top: 18px; font-size: 14px; line-height: 1.9; color: var(--muted); max-width: 540px; }
.project-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.project-links .button { min-height: 44px; padding-inline: 18px; }
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid var(--line); counter-reset: none; }
.pipeline li { padding: 30px 28px; border-bottom: 1px solid var(--line); background: #0b1717cc; }
.pipeline li:nth-child(odd) { border-right: 1px solid var(--line); }
.pipeline li:nth-last-child(-n+2) { border-bottom: 0; }
.pipeline .mono { color: var(--mint); }
.pipeline h3 { font-size: 19px; margin: 18px 0 8px; }
.pipeline p { font-size: 13px; line-height: 1.8; color: var(--muted); }

/* Results */
.benchmark-section { padding-block: 24px 80px; border-top: 1px solid var(--line); }
.benchmark-intro { max-width: 700px; color: var(--muted); font-size: 14px; line-height: 1.9; margin-bottom: 28px; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.benchmark-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 26px 28px 24px; min-width: 0; }
.chart-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 12px; margin-bottom: 8px; }
.chart-heading h3 { font-size: 17px; }
.chart-heading p { color: #a8bbb0; font-size: 12px; }
.result-group { margin-top: 18px; }
.group-label { font-size: 12px; letter-spacing: .11em; text-transform: uppercase; color: var(--subtle); margin-bottom: 6px; }
.benchmark-chart { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.benchmark-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 58px; align-items: center; gap: 14px; min-height: 40px; }
.benchmark-model { font-size: 13px; color: #e1ece5; line-height: 1.4; }
.benchmark-track { height: 18px; background: repeating-linear-gradient(90deg, #b6dac508 0, #b6dac508 1px, transparent 1px, transparent 25%); border-right: 1px solid #b6dac512; }
.benchmark-track i { display: block; height: 100%; background: linear-gradient(90deg, #619e80, var(--mint)); border-radius: 0 3px 3px 0; }
.benchmark-row.baseline .benchmark-track i { background: #70867d; }
.benchmark-row.baseline .benchmark-model { color: #aebdb5; }
.benchmark-value { font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; color: #d6e7da; }
.ours .benchmark-value { color: var(--mint); }
.benchmark-note { font-size: 13px; line-height: 1.9; color: #a6b9ad; margin-top: 20px; max-width: 900px; }
.benchmark-note a { color: #c6e2d1; text-decoration: underline; text-underline-offset: 3px; }
.support-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.models-heading { margin: 48px 0 16px; }
.models-heading h3 { font-size: 18px; }
.model-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.model-list a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); transition: border-color .2s; }
.model-list a:hover { border-color: #a8f0c870; }
.model-list li:first-child a { border-color: #a8f0c84a; background: #152821eb; }
.model-list span { font-size: 13px; font-weight: 500; color: #e1ece5; overflow-wrap: anywhere; line-height: 1.5; }
.model-list small { font-size: 12px; color: var(--muted); }

/* Research */
.research-section { padding-block: 24px 80px; border-top: 1px solid var(--line); }
.doc-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.doc-cards a { padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: #0b1717; transition: border-color .2s; }
.doc-cards a:hover { border-color: #a8f0c870; }
.doc-cards h3 { display: flex; gap: 16px; justify-content: space-between; font-size: 17px; margin: 0 0 12px; line-height: 1.45; }
.doc-cards h3 span { color: var(--mint); }
.doc-cards p { font-size: 14px; line-height: 1.85; color: var(--muted); }

/* Team */
.team-section { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; padding-block: 88px 96px; border-top: 1px solid var(--line); }
.institution-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.institution-list li { padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 18px; color: #e1ece5; letter-spacing: -.01em; }
.institution-list li.institution-more { font-size: 14px; color: var(--subtle); }
.team-links { display: flex; gap: 28px; margin-top: 18px; flex-wrap: wrap; }

/* Footer */
.site-footer { padding-block: 35px 85px; border-top: 1px solid var(--line); }
.footer-top { display: flex; align-items: center; gap: 28px; }
.footer-top .brand { font-size: 20px; }
.footer-top nav { display: flex; gap: 25px; margin-left: auto; color: #b7c5ba; font-size: 12px; flex-wrap: wrap; }
.footer-bottom { margin-top: 25px; display: flex; gap: 24px; color: #a3b9aa; font-size: 12px; line-height: 1.8; }
.footer-bottom > :last-child { margin-left: auto; }

@media (min-width: 1500px) {
  .hero { padding-top: 95px; }
}
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .site-header nav { gap: 22px; }
  .header-link { padding: 0 10px; min-width: 44px; justify-content: center; }
  .header-link .link-label, .header-link .link-arrow { display: none; }
  .mission-section, .team-section { gap: 45px; }
  .project-card { grid-template-columns: 1fr; }
  .pipeline { border-left: 0; border-top: 1px solid var(--line); grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pipeline li { border-bottom: 0; border-right: 1px solid var(--line); }
  .pipeline li:last-child { border-right: 0; }
  .result-grid { grid-template-columns: 1fr; }
  .model-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .doc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .site-header { height: 84px; }
  .site-header nav { gap: 18px; font-size: 12px; }
  .affiliation-ribbon { gap: 12px 24px; padding-block: 16px; }
  .affiliation-ribbon ul { gap: 12px 28px; }
  .affiliation-ribbon li { font-size: 15px; }
  .hero { padding-block: 56px 64px; }
  .hero h1 { font-size: clamp(57px, 11vw, 83px); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid > div { padding: 24px 20px; border-bottom: 1px solid var(--line); }
  .stat-grid > div:nth-child(odd) { padding-left: 0; }
  .stat-grid > div:nth-child(even) { border-right: 0; }
  .stat-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
  .stat-grid dd { font-size: 42px; }
  .mission-section, .team-section { grid-template-columns: 1fr; gap: 38px; padding-block: 72px; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipeline li { border-bottom: 1px solid var(--line); }
  .pipeline li:nth-child(even) { border-right: 0; }
  .pipeline li:nth-last-child(-n+2) { border-bottom: 0; }
  .model-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { flex-wrap: wrap; }
  .footer-top nav { width: 100%; margin-top: 8px; margin-left: 0; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { height: auto; flex-wrap: wrap; padding-block: 15px 12px; gap: 14px; }
  .brand { font-size: 21px; gap: 6px; }
  .brand img { width: 30px; height: 30px; }
  .site-header nav { order: 3; width: 100%; justify-content: space-between; gap: 10px; }
  .site-header nav a { padding-block: 8px; }
  .ribbon-label { width: 100%; text-align: center; }
  .hero { padding-block: 44px 52px; }
  .hero h1 { font-size: clamp(48px, 15vw, 72px); line-height: 1.06; }
  .hero-description { font-size: 15px; line-height: 1.9; margin-top: 22px; }
  .hero-actions { gap: 9px; }
  .button { padding-inline: 16px; }
  .stat-grid > div { padding: 20px 14px; }
  .stat-grid dd { font-size: 36px; }
  .stat-grid dt { font-size: 12px; }
  h2, .mission-copy h2, .team-copy h2 { font-size: 32px; }
  .section-heading { display: block; padding-top: 16px; padding-bottom: 20px; }
  .section-heading h2 { font-size: 28px; }
  .project-section .section-heading h2 { font-size: 36px; }
  .section-heading .text-link { margin-top: 10px; }
  .mission-section, .team-section { padding-block: 56px; gap: 32px; }
  .section-description { font-size: 14px; margin-top: 20px; }
  .api-top, .decision-input, .decision-output { padding-inline: 17px; }
  .probability { gap: 10px; grid-template-columns: 58px 1fr 34px 10px; }
  .project-section, .benchmark-section, .research-section { padding-bottom: 56px; }
  .project-intro { padding: 24px 20px; }
  .project-lede { font-size: 20px; }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline li, .pipeline li:nth-child(odd) { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 20px; }
  .pipeline li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .pipeline li:last-child { border-bottom: 0; }
  .pipeline h3 { margin-top: 10px; }
  .benchmark-panel { padding: 18px 14px; }
  .benchmark-row { grid-template-columns: 104px minmax(0, 1fr) 50px; gap: 8px; min-height: 48px; }
  .benchmark-model, .benchmark-value { font-size: 12px; }
  .benchmark-model { overflow-wrap: anywhere; }
  .benchmark-track { height: 14px; }
  .benchmark-note { font-size: 12px; }
  .support-heading { flex-direction: column; align-items: start; gap: 6px; }
  .model-list, .doc-cards { grid-template-columns: 1fr; }
  .doc-cards a { padding: 22px; }
  .institution-list li { font-size: 16px; padding: 16px 0; }
  .footer-bottom { flex-wrap: wrap; gap: 10px; }
  .footer-bottom > :last-child { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
