@font-face {
  font-display: swap;
  font-family: "Linux Libertine";
  font-style: normal;
  font-weight: 400;
  src: url("../../public/fonts/LinLibertine_R.otf") format("opentype");
}

:root {
  --ink: #252525;
  --muted: #666;
  --line: #e4e4e4;
  --light: #f5f5f5;
  --paper: #fff;
  --blue: #3273dc;
  --coral: #ef5b4c;
  --lime: #87a92c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}
a { color: var(--blue); }
video { background: #111; border-radius: 6px; display: block; width: 100%; }
button { font: inherit; }

.container { margin: 0 auto; padding: 0 24px; width: 100%; }
.container.is-max-desktop { max-width: 1000px; }
.container.is-wide { max-width: 1280px; }
.has-text-centered { text-align: center; }
.has-text-justified { text-align: justify; }
.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.hero { display: block; }
.publication-header { padding: 72px 0 44px; }
.publication-kicker {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  margin: 0 0 18px;
  text-transform: uppercase;
}
.publication-title {
  color: #363636;
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(2.55rem, 6.5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.06;
  margin: 0 auto;
  max-width: 1000px;
}
.publication-subtitle {
  color: #4a4a4a;
  font-family: "Castoro", Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.35;
  margin: 22px auto 0;
  max-width: 790px;
}
.publication-authors {
  font-size: 1.12rem;
  line-height: 1.7;
  margin: 28px auto 0;
  max-width: 900px;
}
.publication-authors a { color: var(--blue); text-decoration: none; }
.publication-authors a:hover { text-decoration: underline; }
.publication-authors sup,
.publication-affiliations sup { font-size: .68em; margin-left: 1px; }
.publication-affiliations {
  color: #555;
  font-size: .93rem;
  margin: 8px auto 0;
}
.publication-meta {
  align-items: center;
  color: #555;
  display: flex;
  flex-wrap: wrap;
  font-size: 1.02rem;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}
.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 26px;
}
.button {
  align-items: center;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  font-size: .95rem;
  font-weight: 600;
  justify-content: center;
  line-height: 1.5;
  padding: .55em 1.05em;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.button.is-rounded { border-radius: 999px; }
.publication-resource {
  background: #fff;
  border-color: #d8d8d8;
  color: #363636;
  font-weight: 500;
}
.publication-resource:hover {
  border-color: #b5b5b5;
  color: #363636;
  transform: translateY(-1px);
}
.resource-icon {
  align-items: center;
  display: inline-flex;
  font-size: 1rem;
  justify-content: center;
  margin-right: .5em;
  width: 1.1em;
}
.resource-icon .ai { line-height: 1; }
.resource-icon svg { height: 1em; width: 1em; }

.citation-section {
  background: var(--light);
  border-top: 1px solid var(--line);
}
.citation-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}
.citation-code {
  background: #f7f7f7;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .82rem;
  line-height: 1.55;
  margin: 0;
  overflow: auto;
  padding: 18px;
  resize: vertical;
  text-align: left;
  white-space: pre;
  width: 100%;
}
.citation-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.citation-copy {
  background: #f1f1f1;
  border-color: #d8d8d8;
  color: #363636;
}
.citation-copy:hover { background: #e5e5e5; border-color: #bdbdbd; }
.citation-copy-status { color: var(--muted); font-size: .85rem; }

.teaser { padding: 18px 0 38px; }
.hero-body { padding: 24px 0; }
figure { margin: 0; }
.teaser-feature {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}
.teaser-feature video { border-radius: 5px; }
.teaser-explanation {
  color: #4a4a4a;
  font-size: .98rem;
  line-height: 1.6;
  padding: 18px 18px 10px;
  text-align: left;
}
.teaser-explanation strong { color: #303030; }
.teaser-prompt {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 22px auto 0;
  max-width: 920px;
  overflow: hidden;
  text-align: left;
}
.teaser-prompt summary {
  color: #4a4a4a;
  cursor: pointer;
  font-family: "Linux Libertine", "Libertinus Serif", Georgia, serif;
  font-size: .92rem;
  font-variant: small-caps;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 15px 22px;
}
.teaser-prompt[open] summary {
  border-bottom: 1px solid var(--line);
}
.teaser-prompt p {
  color: #4a4a4a;
  font-family: "Linux Libertine", "Libertinus Serif", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.55;
  margin: 0;
  padding: 18px 22px 20px;
}

.is-light { background: var(--light); }
.results-preview { padding: 44px 0 48px; }
.preview-heading {
  color: #363636;
  font-size: 1.75rem;
  margin: 0;
  text-align: center;
}
.preview-subtitle {
  color: var(--muted);
  font-size: .98rem;
  margin: 9px auto 27px;
  max-width: 720px;
  text-align: center;
}
.result-strip {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1200px;
}
.result-item {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
  overflow: hidden;
}
.result-item video { border-radius: 0; }
.result-item figcaption {
  color: #4a4a4a;
  display: flex;
  flex-direction: column;
  font-size: .88rem;
  font-weight: 600;
  gap: 5px;
  padding: 12px 14px 14px;
  text-align: center;
}
.result-item figcaption span {
  color: var(--coral);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.section { padding: 68px 0; }
.centered-column { margin: 0 auto; max-width: 820px; }
.title { color: #363636; font-weight: 700; line-height: 1.2; }
.title.is-3 { font-size: 2rem; margin: 0 0 26px; }
.content p { margin: 0 0 1em; }
.abstract-copy { font-size: 1.02rem; line-height: 1.72; }
.section-lead {
  color: var(--muted);
  font-size: 1.06rem;
  margin: -14px auto 32px;
  max-width: 720px;
}

.method-section { background: #fafafa; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.method-evidence {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 auto 50px;
  max-width: 1000px;
  overflow: hidden;
  padding: 24px;
}
.attention-map-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.attention-map h3 {
  color: #363636;
  font-size: .9rem;
  margin: 0 0 10px;
  text-align: center;
}
.attention-map img,
.attention-waveform img {
  border-radius: 4px;
  display: block;
  height: auto;
  width: 100%;
}
.attention-waveform {
  margin: 20px auto 0;
  max-width: 760px;
}
.attention-waveform span {
  color: #555;
  display: block;
  font-size: .76rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
  text-transform: uppercase;
}
.method-evidence figcaption {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
  padding: 18px 10px 0;
  text-align: center;
}
.method-evidence figcaption strong { color: #363636; }
.mediated-attention > img {
  display: block;
  height: auto;
  width: 100%;
}
.triangle-diagram {
  height: 410px;
  margin: 12px auto 44px;
  max-width: 620px;
  position: relative;
  width: 100%;
}
.triangle-node {
  align-items: center;
  background: white;
  border: 3px solid var(--blue);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  height: 110px;
  justify-content: center;
  position: absolute;
  width: 110px;
  z-index: 2;
}
.triangle-node strong { font-family: "Castoro", Georgia, serif; font-size: 1.35rem; font-weight: 400; }
.triangle-node img { display: block; height: 40px; object-fit: contain; width: 40px; }
.triangle-node small { color: var(--muted); font-size: .63rem; letter-spacing: .12em; margin-top: 3px; text-transform: uppercase; }
.text-node { border-color: var(--coral); left: 50%; top: 0; transform: translateX(-50%); }
.audio-node { border-color: var(--blue); bottom: 0; left: 12px; }
.video-node { border-color: #91ad39; bottom: 0; right: 12px; }
.triangle-edge {
  background: #aaa;
  height: 2px;
  position: absolute;
  transform-origin: left center;
  z-index: 1;
}
.edge-text-audio { left: 50%; top: 56px; transform: rotate(129.1deg); width: 384px; }
.edge-text-video { left: 50%; top: 56px; transform: rotate(50.9deg); width: 384px; }
.edge-audio-video {
  background: #aaa;
  bottom: 55px;
  height: 2px;
  left: 68px;
  width: calc(100% - 136px);
}
.method-columns {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.method-columns article {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 188px;
  padding: 24px;
  position: relative;
  text-align: center;
}
.method-columns h3 { font-size: 1.08rem; margin: 0 0 8px; }
.method-columns p { color: var(--muted); font-size: .93rem; line-height: 1.55; margin: 0; }

.comparisons-section { padding-bottom: 84px; }
.comparison {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 28px;
  overflow: hidden;
}
.comparison-header {
  align-items: center;
  background: #fafafa;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
}
.comparison-header h3 { font-size: 1.05rem; margin: 3px 0 0; }
.comparison-prompt {
  background: #fff;
  border-top: 1px solid var(--line);
}
.comparison-prompt summary {
  color: #555;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 12px 20px;
  text-transform: uppercase;
}
.comparison-prompt[open] summary { border-bottom: 1px solid var(--line); }
.comparison-prompt p {
  color: #4a4a4a;
  font-family: "Linux Libertine", "Libertinus Serif", Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.55;
  margin: 0;
  padding: 16px 20px 18px;
}
.pair-controls { display: flex; gap: 8px; }
.pair-controls button {
  background: white;
  border: 1px solid #b9b9b9;
  border-radius: 999px;
  color: #363636;
  cursor: pointer;
  font-size: .76rem;
  font-weight: 600;
  padding: 7px 12px;
}
.pair-controls button:hover { border-color: var(--blue); color: var(--blue); }
.video-grid { background: #ededed; display: grid; gap: 1px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.video-grid figure { background: white; padding: 12px; }
.video-grid figcaption {
  align-items: center;
  color: #4a4a4a;
  display: flex;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin: 2px 2px 10px;
  text-transform: uppercase;
}
.dot { border-radius: 50%; display: inline-block; height: 8px; margin-right: 8px; width: 8px; }
.baseline-dot { background: var(--coral); }
.method-dot { background: var(--blue); }

.gallery-section { background: var(--blue); color: white; }
.gallery-section .title, .gallery-section .section-lead { color: white; }
.gallery-section .section-lead { opacity: .86; }
.gallery-button { background: white !important; color: #363636 !important; margin-top: 8px; }

.embedded-gallery-section {
  background: var(--light);
  border-top: 1px solid var(--line);
  padding-bottom: 54px;
}
.gallery-frame-shell {
  background: white;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  height: min(82vh, 920px);
  min-height: 640px;
  overflow: hidden;
}
.gallery-frame { border: 0; display: block; height: 100%; width: 100%; }
.gallery-frame-fallback { font-size: .84rem; margin: 14px 0 0; }
.gallery-frame-fallback a { font-weight: 600; text-decoration: none; }
.gallery-frame-fallback a:hover { text-decoration: underline; }

.footer { background: #fafafa; color: #777; font-size: .84rem; padding: 46px 0; }
.footer .container { display: flex; gap: 24px; justify-content: space-between; }
.footer p { margin: 0; }

@media (max-width: 900px) {
  .result-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-columns { grid-template-columns: 1fr; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .result-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .publication-header { padding: 54px 0 28px; }
  .publication-title { font-size: 2.45rem; }
  .publication-meta { font-size: .9rem; }
  .citation-panel { padding: 14px; }
  .citation-code { font-size: .72rem; padding: 14px; }
  .video-grid, .result-strip, .attention-map-grid { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .title.is-3 { font-size: 1.65rem; }
  .has-text-justified { text-align: left; }
  .triangle-diagram { height: 315px; max-width: 350px; }
  .triangle-node { height: 86px; width: 86px; }
  .triangle-node img { height: 32px; width: 32px; }
  .audio-node { left: 0; }
  .video-node { right: 0; }
  .edge-text-audio { left: 50%; top: 43px; transform: rotate(120deg); width: 265px; }
  .edge-text-video { left: 50%; top: 43px; transform: rotate(60deg); width: 265px; }
  .edge-audio-video { bottom: 42px; left: 43px; width: calc(100% - 86px); }
  .comparison-header { align-items: flex-start; flex-direction: column; gap: 14px; }
  .gallery-frame-shell { height: 78vh; min-height: 520px; }
  .footer .container { flex-direction: column; }
}

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