/* Blank research-page starter, inspired by Younghyo Park's project pages.
   Keep typography, spacing, and colors here; edit content in index.html. */
:root {
  color-scheme: light;
  --bg: #fff;
  --bg-alt: #fafafa;
  --bg-hero: #f7f8fa;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --border: #e0e0e0;
  --blue: #2a78d6;
  --blue-soft: rgb(42 120 214 / 8%);
  --orange: #eb6834;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --max-width: 1100px;
  --max-width-medium: 900px;
  --max-width-narrow: 760px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.65 var(--font-sans); }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
p + p { margin-top: .9rem; }
a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--border); }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
button { font: inherit; }
img, video, iframe { display: block; max-width: 100%; border: 0; }
button:disabled { cursor: not-allowed; opacity: .6; }
[id] { scroll-margin-top: 5rem; }
main:focus { outline: none; }

.container { width: 100%; max-width: var(--max-width); margin-inline: auto; padding-inline: 1.5rem; }
.container-medium { max-width: var(--max-width-medium); }
.container-narrow { max-width: var(--max-width-narrow); }
.section { padding-block: 2.5rem; }
.section h2 { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; font-size: 1.725rem; font-weight: 600; line-height: 1.65; letter-spacing: .01em; }
.section h2::after { content: ""; flex: 1; height: 1px; min-width: 1.5rem; background: var(--border); }
.placeholder-text { color: var(--muted); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }

.hero { padding: 2.75rem 0 2rem; background: var(--bg-hero); border-bottom: 1px solid var(--border); text-align: center; }
.paper-title { margin-bottom: 1rem; font-size: clamp(1.5rem, 3.5vw, 2.3rem); line-height: 1.25; letter-spacing: -.02em; font-weight: 700; }
.subtitle { font-weight: 400; font-size: .85em; color: inherit; opacity: .85; }
.author-list { display: grid; grid-template-columns: repeat(3, max-content); justify-content: center; gap: .3rem 1.5rem; font-size: 1.05rem; margin-bottom: .4rem; }
.author { white-space: nowrap; font-weight: 500; text-decoration: none; }
.author:hover, .author:focus-visible { color: var(--blue); }
.affiliation-link { display: inline-flex; align-items: center; border-radius: 4px; }
.affiliation-link:hover img { opacity: 1; }
.author sup { font-size: .7em; line-height: 0; margin-left: .15rem; font-weight: 400; }
.correspondence { margin: -.35rem 0 1rem; color: var(--muted); font-size: .8rem; }
.affiliations { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 1rem; min-height: 40px; margin-bottom: 1rem; font-size: .9rem; }
.affiliations img { height: 40px; width: auto; opacity: .85; }
.affiliations .lab-logo { height: 28px; } /* matches the MIT letter height; the MIT image has transparent padding */
.link-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; }
.btn { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem 1rem; border: 1px solid var(--border); border-radius: 4px; background: transparent; color: var(--text); text-decoration: none; font-size: .85rem; font-weight: 500; }
.btn:not(:disabled):hover { border-color: var(--text); }
.btn svg { width: 1rem; height: 1rem; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.venue-line { margin-top: .85rem; color: var(--muted); font-size: 1.05rem; font-weight: 500; }

.teaser-section { padding-bottom: .5rem; }
.teaser-section .teaser-headline { display: block; margin-bottom: .5rem; text-align: center; font-weight: 700; letter-spacing: -.02em; }
.teaser-section .teaser-headline::after { content: none; }
.teaser-supporting-line { margin-bottom: 1.5rem; color: var(--muted); font-size: 1rem; line-height: 1.5; text-align: center; }
.media-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; width: 100%; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-alt); color: var(--muted); font-size: .85rem; }
.teaser-placeholder { aspect-ratio: 16 / 9; background: #f4f5f7; }
.placeholder-icon { height: 40px; width: 40px; fill: none; stroke: #8b8f96; stroke-width: 1.25; stroke-linejoin: round; }
.figure-placeholder { aspect-ratio: 2.4 / 1; min-height: 160px; }
.diagram-placeholder { aspect-ratio: 3 / 1; min-height: 150px; }
.comparison-placeholder { aspect-ratio: 16 / 10; }
.figure-full { margin-top: 1.5rem; }
figcaption { margin-top: .6rem; color: var(--muted); font-size: .92rem; line-height: 1.5; text-align: left; }
.teaser-section figcaption { text-align: left; }
.text-placeholder { display: grid; gap: .85rem; margin-top: 1rem; }
.text-placeholder span { display: block; height: 7px; border-radius: 2px; background: #f0f0f0; }
.text-placeholder .short { width: 65%; }

.finding { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); column-gap: 1.1rem; align-items: start; padding-block: 1.1rem 1.2rem; margin-block: 2rem 1.75rem; border-top: 1px solid var(--text); border-bottom: 1px solid var(--border); }
.finding-num { color: var(--blue); font-size: 3.1rem; font-weight: 300; line-height: 1; letter-spacing: -.03em; }
.finding h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.35; }
.finding p { margin-top: .2rem; font-size: 1.05rem; line-height: 1.6; }

.bibtex-block { position: relative; padding: 1.25rem 5rem 1.25rem 1.5rem; border: 1px solid var(--border); border-radius: 4px; background: var(--bg-alt); }
.bibtex-block pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: .82rem/1.6 var(--font-mono); color: var(--muted); }
.bibtex-block code { font: inherit; }
.copy-btn { position: absolute; top: .75rem; right: .75rem; padding: .3rem .75rem; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; color: var(--muted); font-size: .75rem; cursor: pointer; }
.copy-btn:not(:disabled):hover { border-color: var(--text); color: var(--text); }
.copy-status { min-height: 1.5em; margin-top: .5rem; font-size: .8rem; color: var(--muted); }
.acknowledgments-section { padding-top: 1rem; padding-bottom: 3rem; }
.footer { padding: 1.25rem 1.5rem; border-top: 1px solid var(--border); text-align: center; color: var(--muted); font-size: .85rem; }
.footer .design-credit { margin-top: .3rem; font-size: .75rem; }

.sticky-header { position: fixed; inset: 0 0 auto; z-index: 20; background: var(--bg-hero); border-bottom: 1px solid var(--border); }
.sticky-header-inner { max-width: var(--max-width); margin-inline: auto; display: flex; align-items: center; gap: 1rem; padding: .65rem 1.5rem; font-size: .82rem; }
.sticky-title { font-weight: 600; text-decoration: none; }
.sticky-subtitle { color: var(--muted); }
.back-to-top { margin-left: auto; padding: .1rem .5rem; text-decoration: none; }
.dynamic-toc { display: none; position: fixed; right: 1.5rem; top: 55%; transform: translateY(-50%); z-index: 10; width: 12rem; max-height: 75vh; overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; padding-block: .75rem; background: rgb(255 255 255 / 96%); box-shadow: 0 4px 24px rgb(0 0 0 / 5%); }
.toc-title { display: block; margin-bottom: .35rem; padding: .15rem 1rem .55rem; border-bottom: 1px solid #eee; color: var(--muted); font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dynamic-toc ul { padding: 0; margin: 0; list-style: none; }
.dynamic-toc a { display: block; padding: .35rem 1rem; border-left: 2px solid transparent; font-size: .73rem; line-height: 1.4; color: var(--muted); text-decoration: none; }
.dynamic-toc a:hover { background: var(--bg-alt); color: var(--text); }
.dynamic-toc a[aria-current="location"] { color: var(--text); font-weight: 600; border-left-color: var(--blue); background: var(--blue-soft); }
.skip-link { position: fixed; z-index: 30; top: .75rem; left: 1rem; transform: translateY(-200%); background: var(--bg); padding: .5rem 1rem; border: 1px solid var(--blue); }
.skip-link:focus { transform: none; }

/* Only show the side navigation when it fits outside the widest content column. */
@media (min-width: 1560px) { .dynamic-toc { display: block; } }
@media (max-width: 640px) {
  .container { padding-inline: 1.25rem; }
  .hero { padding-top: 2.25rem; }
  .desktop-break { display: none; }
  .author-list { grid-template-columns: repeat(2, max-content); gap: .3rem 1rem; font-size: .95rem; }
  .section { padding-block: 1.75rem; }
  .section h2 { font-size: 1.45rem; }
  .two-col { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .sticky-subtitle { display: none; }
  .finding { grid-template-columns: 2.25rem minmax(0, 1fr); gap: .75rem; }
  .finding-num { font-size: 2.6rem; }
  .bibtex-block { padding: 3rem 1rem 1rem; }
}
@media (max-width: 420px) { .author-list { grid-template-columns: max-content; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.teaser-video { width: 100%; aspect-ratio: 20 / 9; background: #111; border-radius: 6px; }

/* Typography matched to Blind Precise Assembly; retain this page’s content and layout. */
strong { font-weight: 600; }

/* The three main story sections. */
.section h2.story-heading { font-weight: 700; }

/* Compact abstract with a traditional paragraph indent. */
.section #abstract { margin-bottom: .35rem; }
.section[aria-labelledby="abstract"] p + p { margin-top: 0; text-indent: 1.5em; }
.drift-acronym { color: var(--blue); }

/* Section hierarchy in the progress navigation. */
.dynamic-toc > ul > .toc-section > a { font-weight:500; }
.dynamic-toc .toc-subsections { margin:.1rem 0 .4rem; }
.dynamic-toc .toc-subsection > a { padding:.3rem .85rem .3rem 1.8rem;font-size:.67rem;font-weight:400;line-height:1.45; }
.dynamic-toc .toc-section-active > a { color:var(--text); }
.dynamic-toc .toc-subsection > a[aria-current="location"] { color:var(--blue);font-weight:500; }
#results + .research-subheading { margin-top:1.4rem; }

/* Author announcement: unobtrusive until hovered or reached by keyboard. */
.author-with-card { position:relative; }
.author-card { position:absolute;z-index:30;top:calc(100% + 10px);left:50%;width:min(320px,calc(100vw - 48px));transform:translate(-50%,4px);padding:18px 20px;border:1px solid #e4e7eb;border-radius:12px;background:#fff;box-shadow:0 10px 32px rgb(20 30 45 / 10%);text-align:left;white-space:normal;font-size:13px;font-weight:400;line-height:1.6;color:var(--text);opacity:0;visibility:hidden;pointer-events:none;transition:opacity 140ms ease,transform 140ms ease,visibility 140ms; }
.author-card::before { content:"";position:absolute;left:0;right:0;top:-12px;height:12px; }
.author-card > strong { display:block;font-size:14px;font-weight:650; }
.author-card p { margin:6px 0 12px;color:#626974; }
.author-card a { color:var(--blue);text-decoration:none; }
.author-card a:hover { text-decoration:underline; }
.author-with-card:not([data-dismissed]):is(:hover,:focus-within) .author-card { opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%,0); }
@media(min-width:421px) and (max-width:700px) { .author-card { left:auto;right:0;transform:translateY(4px); }.author-with-card:not([data-dismissed]):is(:hover,:focus-within) .author-card { transform:translateY(0); } }
@media(prefers-reduced-motion:reduce) { .author-card { transition:none; } }

@media(min-width:421px) and (max-width:700px) {
 .author-with-card:first-child .author-card { left:0;right:auto; }
}

/* Quiet copy affordance; the address itself remains selectable plain text. */
.author-email { display:flex;align-items:center;gap:7px;margin:0 0 8px; }
.author-email-text { user-select:text; }
.author-email-copy { display:inline-flex;align-items:center;justify-content:center;flex:none;width:26px;height:26px;padding:5px;margin:-3px 0 -3px -5px;border:0;border-radius:5px;background:transparent;color:#78808b;cursor:pointer; }
.author-email-copy:hover { background:#f0f3f6;color:var(--blue); }
.author-email-copy:focus-visible { outline:2px solid var(--blue);outline-offset:2px; }
.author-email-copy svg { width:16px;height:16px; }
.author-email-copy .copied-icon, .author-email-copy[data-copied] .copy-icon { display:none; }
.author-email-copy[data-copied] .copied-icon { display:block;color:var(--blue); }
.author-copy-status { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
