/* bundle the existing mantis typeface for consistent offline rendering. */
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../assets/inter-latin.woff2') format('woff2'); }
/* match the neutral surfaces and compact controls in the mantis frontend. */
:root { --bg: #18181b; --ink: #fafafa; --muted: #a1a1aa; --line: #3f3f46; --green: #c1d3b6; --g: clamp(20px,4.5vw,72px); }
body { font-family: Inter, sans-serif; font-size: 15px; line-height: 1.6; }
html { scroll-padding-top: 88px; }
h1,h2,h3 { font-weight: 500; }
h2 { font-size: 28px; line-height: 1.2; letter-spacing: -.035em; }
a,button { transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease; }
a:hover,button:hover { color: white; }
::-webkit-scrollbar-thumb { background: #52525b; }
.pad { max-width: 1440px; }
header { height: 64px; gap: 32px; background: var(--bg); border-color: var(--line); }
.brand { gap: 10px; margin-right: auto; }
.brand img { width: 27px; height: 27px; }
.brand > span { gap: 18px; font-size: 19px; font-weight: 600; letter-spacing: -.04em; }
.brand-sub { display: inline; font-size: 13px; font-weight: 400; color: var(--muted); padding-left: 18px; border-color: var(--line); }
.desktop-nav { align-self: stretch; gap: 28px; color: var(--muted); font-size: 13px; }
.desktop-nav a { display: flex; align-items: center; padding: 2px 0 0; border-bottom: 2px solid transparent; }
.desktop-nav a[aria-current] { color: white; border-bottom-color: white; }
.parent-link { min-height: 36px; padding: 0 13px; border: 1px solid #52525b; border-radius: 6px; font-size: 12px; }
.parent-link:hover { background: #27272a; border-color: #71717a; }
.parent-link svg { width: 15px; }
.mobile-nav { top: 64px; padding: 12px 20px 20px; }
.mobile-nav a { padding: 14px 4px; font-size: 16px; color: #d4d4d8; }

/* one full-width composition keeps the name and scientific image dominant. */
.hero { height: 100svh; min-height: 640px; max-height: 980px; }
.hero:after { display: none; }
.hero-type { width: 50%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 104px 0 128px var(--g); }
.hero h1 { font-size: clamp(72px,7.9vw,120px); line-height: .99; letter-spacing: -.065em; font-weight: 500; }
.hero h1 span { color: #a1a1aa; }
.hero-type p { max-width: 335px; font-size: 17px; line-height: 1.65; margin-top: 30px; color: #b4b4bc; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 32px; pointer-events: auto; }
.text-link { gap: 10px; min-height: 40px; font-size: 13px; }
.text-link svg { width: 17px; height: 17px; transition: none; }
.text-link:hover svg { transform: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero-cta { margin: 0; padding: 12px 17px; background: #fafafa; color: #18181b; border: 1px solid #fafafa; border-radius: 6px; font-size: 13px; font-weight: 500; }
.hero-cta:hover { background: #dedee2; color: #18181b; text-decoration: none; border-color: #dedee2; }
.hero-secondary { color: #d4d4d8; }
.hero-object { inset: 78px -9% 85px 34%; }
.hero-bottom { bottom: 24px; justify-content: flex-end; gap: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.motion-button { min-height: 36px; font-size: 11px; color: var(--muted); padding: 0; gap: 8px; }
.motion-button svg { width: 14px; }
.hero-controls .motion-button { background: transparent; }
.hero-type > * { animation: reveal 600ms ease both; }
.hero-type p { animation-delay: 80ms; }
.hero-actions { animation-delay: 160ms; }
@keyframes reveal { from { opacity: 0; } to { opacity: 1; } }

/* regular rows replace the staggered layout without boxing in the research. */
.research { padding-block: 72px 88px; }
.section-title { align-items: center; gap: 24px; margin-bottom: 36px; }
.section-title h2 { max-width: none; }
.section-title > p { font-size: 13px; }
.section-title > a { color: #b4b4bc; }
.count { color: var(--muted); font-size: 12px; }
.work-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 48px 32px; }
.work-card:nth-child(n) { padding: 0; margin: 0; }
.work-card .work-info { padding-top: 22px; max-width: none; }
.work-info h3,.work-card h3 { font-size: 23px; line-height: 1.4; letter-spacing: -.025em; text-wrap: pretty; }
.work-area { font-size: 12px; margin-top: 13px; }
.work-description,.work-card .work-description { font-size: 14px; line-height: 1.75; margin-top: 13px; max-width: none; }
.work-links,.work-card .work-links { gap: 24px; margin-top: 17px; }
.work-links .text-link { font-size: 12px; }

/* retain diagram colors for their scientific meaning, with neutral scene chrome. */
.scene-shell { --scene-bg: #212121; --scene-ink: #d4d4d8; --scene-line: #3f3f46; border: 1px solid var(--scene-line); border-radius: 6px; }
.scene-shell.scene-pale { --scene-bg: #e4e4e7; --scene-ink: #3f3f46; --scene-line: #c4c4cb; border-color: var(--scene-line); }
.scene-heading,.scene-footer { gap: 14px; min-height: 44px; padding: 9px 16px; font-size: 11px; }
.scene-footer { font-size: 10px; }
.scene-open,.scene-reset { min-width: 32px; min-height: 32px; }
.scene-open svg { width: 15px; height: 15px; }
.scene-pale button:hover { color: #18181b; background: #d4d4d8; }
.scene-footer button { font-size: 11px; }
.scene-view { height: clamp(285px,25vw,350px); }
.key-2:before { background: #a5aaa2 !important; }
.sidon-comparison { gap: 24px; padding: 22px 24px; height: clamp(285px,25vw,350px); min-height: 0; background: #e4e4e7; }
.sum-set { color: #3f3f46; font-size: 19px; margin-bottom: 12px; }
.sum-panel table { font-size: 14px; border-spacing: 3px; }
.sum-panel th { color: #52525b; height: 26px; }
.sum-panel td { height: 28px; }
.sum-result { font-size: 13px; margin-top: 14px; }
.sum-caption { font-size: 11px; line-height: 1.5; color: #52525b; margin-top: 5px; }

/* model controls follow mantis inputs and underline tabs. */
.explorations { padding-block: 64px 72px; background: #212121; max-width: none; border-block: 1px solid var(--line); }
.explorations > * { max-width: 1296px; margin-inline: auto; }
.explorer { border-top: 1px solid var(--line); border-bottom: 0; }
.explorer-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); overflow-x: auto; margin: 0; padding: 0; }
.explorer-tabs button { flex-shrink: 0; white-space: nowrap; padding: 18px 0; font-size: 12px; color: var(--muted); border-bottom: 2px solid transparent; }
.explorer-tabs button[aria-selected=true] { color: white; border-bottom-color: white; }
.explorer-tabs button[aria-selected=true]:after { display: none; }
.explorer-content { grid-template-columns: minmax(0,1.3fr) minmax(330px,1fr); min-height: 0; }
.example-visual { top: 84px; padding-top: 24px; }
.lab-scene { border: 0; border-right: 1px solid var(--line); border-radius: 0; }
.lab-scene .scene-view,#lab-canvas { height: 440px; }
.lab-scene .scene-heading,#visual-live-labels { background: #212121; border-bottom: 0; }
.lab-scene .scene-footer { border-top: 0; }
.example-copy { padding: 30px 0 16px 36px; min-width: 0; }
.example-copy h3 { font-size: 23px; }
.example-copy > p { font-size: 13px; line-height: 1.75; margin-top: 14px; }
.control-label { font-size: 12px; color: #d4d4d8; }
.control-label output { color: white; }
.preset-controls { gap: 8px; }
.preset-controls button,.sequence-entry button { border-color: #52525b; border-radius: 6px; min-height: 38px; padding: 8px 12px; }
.preset-controls button:hover,.sequence-entry button:hover { background: #3f3f46; color: white; }
.preset-controls button[aria-pressed=true] { color: #18181b; background: #fafafa; border-color: #fafafa; }
.outcome,.model-details { border-color: var(--line); }
.outcome > strong { font-size: 16px; font-weight: 500; color: #fafafa; }
.measurements > span { color: var(--muted); }
.measurements b { color: #fafafa; font-size: 25px; }
.model-details > summary { color: #d4d4d8; }
.model-details > p { color: var(--muted); }
.number-picker button { border-color: #52525b; border-radius: 4px; }
.number-picker button.active { color: #18181b; background: #fafafa; }
#pattern,.sequence-entry input { background: #27272a; border-color: #52525b; border-radius: 6px; }
#matrix-grid button { background: #303032; }
#matrix-grid button:hover { background: #52525b; }

/* a flat manuscript list keeps titles and filters easy to scan. */
.papers { padding-block: 72px 80px; }
.archive-tools { gap: 24px; margin-bottom: 20px; }
.filters { gap: 24px; }
.filters button { font-size: 12px; border-bottom-width: 2px; }
.filters button.active { color: white; border-color: white; }
.filters button span { color: var(--muted); align-self: auto; }
.search { gap: 10px; width: 265px; padding: 9px 12px; background: #27272a; border: 1px solid #52525b; border-radius: 6px; }
.search:focus-within { border-color: #a1a1aa; }
.search input { font-size: 12px; min-width: 0; }
.search input::placeholder { color: var(--muted); }
.paper-item > summary { grid-template-columns: 120px minmax(0,1fr) 50px 20px; gap: 24px; padding: 22px 8px; transition: background-color 160ms ease; }
.paper-item > summary:hover,.paper-item[open] > summary { background: #222225; }
.paper-item > summary:hover h3 { color: white; }
.paper-item h3 { font-size: 16px; line-height: 1.55; letter-spacing: -.015em; }
.paper-field,.paper-pages { font-size: 11px; }
.paper-item > summary svg { transition: none; }
.paper-detail { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 40px; padding: 24px 48px 36px 152px; animation: reveal 160ms ease; }
.paper-detail h4 { color: #d4d4d8; font-size: 12px; font-weight: 500; }
.paper-detail p { font-size: 13px; line-height: 1.8; }
.paper-detail .paper-source { font-size: 11px; }
.detail-question { color: #e4e4e7; }
.about { grid-template-columns: 1fr 1.3fr; gap: 48px; padding-block: 48px 56px; }
.about h2 { font-size: 24px; }
.about p:first-child { max-width: 580px; font-size: 18px; line-height: 1.65; color: #d4d4d8; }
footer { padding-block: 26px; }
.footer-wordmark { font-size: 18px; font-weight: 500; margin: 0 0 20px; }
.footer-wordmark > span { display: none; }
.footer-bottom { gap: 24px; }
.footer-bottom > span { margin-right: auto; }

/* a plain directory distinguishes the lead without adding unsupported biographies. */
.team-page { padding-top: 128px; padding-bottom: 80px; min-height: calc(100svh - 150px); }
.team-page h1 { font-size: 40px; line-height: 1.2; letter-spacing: -.045em; }
.team-lead,.team-roster { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 40px; border-top: 1px solid var(--line); padding-block: 32px; }
.team-lead { margin-top: 36px; }
.team-lead h2,.team-roster h2 { font-size: 14px; line-height: 1.6; letter-spacing: 0; color: var(--muted); }
.team-lead-name { color: var(--ink); font-size: 28px; line-height: 1.3; letter-spacing: -.025em; }
.discoverer-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 40px; list-style: none; margin: -12px 0 0; padding: 0; }
.discoverer-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
@media(max-width:900px) {
  .team-lead,.team-roster { grid-template-columns: 150px minmax(0,1fr); gap: 24px; }
  .discoverer-list { gap: 0 24px; }
  .discoverer-list li { font-size: 15px; }
}
@media(max-width:760px) {
  .team-page { padding-top: 100px; padding-bottom: 44px; }
  .team-page h1 { font-size: 32px; }
  .team-lead,.team-roster { grid-template-columns: minmax(0,1fr); gap: 20px; padding-block: 24px; }
  .team-lead { margin-top: 28px; }
  .team-lead-name { font-size: 25px; }
  .discoverer-list { grid-template-columns: minmax(0,1fr); }
  .discoverer-list li { font-size: 17px; padding-block: 13px; }
}

/* mobile keeps the first composition inside the viewport and the controls reachable. */
@media(max-width:1100px) {
  header { gap: 24px; }
  .desktop-nav { gap: 20px; }
  .hero h1 { font-size: 8.4vw; }
  .hero-object { left: 31%; right: -19%; }
  .explorer-tabs { gap: 24px; }
  .explorer-content { grid-template-columns: minmax(0,1fr) minmax(310px,1fr); }
  .example-copy { padding-left: 24px; }
  .lab-scene .scene-view,#lab-canvas { height: 380px; }
  .work-info h3,.work-card h3 { font-size: 21px; }
  .sidon-comparison { padding-inline: 14px; gap: 12px; }
  .paper-detail { padding-left: 24px; padding-right: 24px; }
}
@media(max-width:760px) {
  :root { --g: 20px; }
  header { height: 60px; gap: 12px; }
  .brand > span { gap: 12px; font-size: 18px; }
  .brand-sub { padding-left: 12px; font-size: 12px; }
  .mobile-nav { top: 60px; }
  .hero { height: 100svh; min-height: 700px; max-height: 900px; }
  .hero-type { width: 100%; height: auto; display: block; padding: 104px var(--g) 0; }
  .hero h1 { font-size: clamp(56px,14.4vw,82px); line-height: .98; }
  .hero-type p { max-width: 300px; margin-top: 20px; font-size: 14px; line-height: 1.65; }
  .hero-actions { gap: 20px; margin-top: 22px; }
  .hero-cta { padding: 11px 13px; font-size: 12px; }
  .hero-secondary { font-size: 12px; }
  .hero-object { inset: 370px -22% 60px -22%; }
  .hero-bottom { bottom: 13px; gap: 12px; padding-top: 10px; align-items: center; }
  .hero-controls { display: flex; flex-direction: row; }
  .motion-button { font-size: 10px; }
  .research,.papers { padding-block: 44px 52px; }
  .section-title { flex-direction: row; align-items: center; gap: 16px; margin-bottom: 26px; }
  .section-title h2 { font-size: 25px; }
  .section-title > a { font-size: 11px; gap: 6px; }
  .section-title > p { font-size: 11px; }
  .work-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 38px; }
  .work-card:nth-child(n) { padding: 0; margin: 0; }
  .work-card .work-info { padding-top: 18px; }
  .work-info h3,.work-card h3 { font-size: 21px; }
  .work-description,.work-card .work-description { font-size: 13px; margin-top: 11px; }
  .work-area { font-size: 11px; margin-top: 11px; }
  .work-card .work-links { margin-top: 12px; }
  .scene-view,.sidon-comparison { height: 280px; min-height: 0; }
  .scene-heading,.scene-footer { padding: 7px 12px; font-size: 10px; gap: 10px; }
  .sum-set { font-size: 17px; }
  .sum-panel table { font-size: 12px; border-spacing: 2px; }
  .sum-panel th,.sum-panel td { height: 26px; }
  .sum-caption { font-size: 10px; }
  .explorations { padding-block: 40px 44px; }
  .explorer-tabs { gap: 22px; padding-inline: 2px; }
  .explorer-tabs button { padding: 16px 0; font-size: 12px; }
  .explorer-content { display: block; }
  .example-visual { position: relative; top: 0; padding-top: 16px; }
  .lab-scene { border-right: 0; }
  .lab-scene .scene-view,#lab-canvas { height: 310px; }
  .lab-scene .scene-heading,#visual-live-labels,.lab-scene .scene-footer { padding-inline: 4px; }
  .example-copy { padding: 24px 0 0; }
  .example-copy h3 { font-size: 22px; }
  .archive-tools { flex-direction: column-reverse; align-items: stretch; gap: 12px; margin-bottom: 12px; }
  .search { width: 100%; min-height: 42px; margin: 0; }
  .filters { gap: 10px; justify-content: space-between; }
  .filters button { font-size: 11px; gap: 5px; }
  .paper-item > summary { grid-template-columns: minmax(0,1fr) 18px; gap: 8px 16px; padding: 18px 0; }
  .paper-field { font-size: 10px; }
  .paper-item h3 { font-size: 15px; }
  .paper-detail { display: block; padding: 16px 0 28px; }
  .paper-detail p { font-size: 12px; }
  .about { display: block; padding-block: 32px 40px; }
  .about > div { margin-top: 22px; }
  .about p:first-child { font-size: 16px; }
  .footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; }
  .footer-bottom > span { flex-basis: 100%; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *,*:before,*:after { animation: none !important; transition: none !important; }
}
@media(max-width:760px) and (max-height:740px) {
  .hero { min-height: 620px; }
  .hero-type { padding-top: 86px; }
  .hero h1 { font-size: 52px; }
  .hero-type p { font-size: 13px; margin-top: 16px; }
  .hero-object { top: 330px; }
}
