:root {
  --black: #050505;
  --panel: #0c0c0c;
  --paper: #f2eadc;
  --ink: #11100e;
  --white: #f6f2ea;
  --muted: #aaa59b;
  --line: rgba(246, 242, 234, 0.18);
  --gold: #d6a94f;
  --red: #a9322a;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 12%, rgba(214, 169, 79, 0.055), transparent 25rem),
    var(--black);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  content: "";
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.36'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.55rem 0.8rem;
  color: var(--ink);
  background: var(--white);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem clamp(1.25rem, 4vw, 4rem);
  border-bottom: 1px solid transparent;
  transition: background 250ms ease, border-color 250ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(16px);
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  text-decoration: none;
}

.wordmark span {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
}

.wordmark small {
  color: var(--muted);
  font-size: 0.67rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
}

nav a {
  position: relative;
  color: #d6d1c8;
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 7.5rem 1.25rem 5rem;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image: url("assets/posters/top/top-01.jpg");
  background-position: center;
  background-size: cover;
  filter: saturate(0.66) contrast(1.1);
  opacity: 0.34;
  transform: scale(1.025);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.42), rgba(5, 5, 5, 0.62) 55%, #050505 100%),
    radial-gradient(ellipse at center, transparent 10%, rgba(5, 5, 5, 0.82) 92%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  text-align: center;
}

.eyebrow,
.section-kicker,
.prompt-label {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 0 0 1.45rem;
}

.eyebrow span {
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.7rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.25rem, 8.3vw, 7.7rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

h1 span {
  display: block;
  color: var(--white);
}

h1 em {
  display: block;
  margin-top: 1.2rem;
  color: #d4cec3;
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: clamp(0.9rem, 1.65vw, 1.35rem);
  font-style: normal;
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.authors {
  max-width: 1020px;
  margin: 0 auto 0.6rem;
  color: #e8e3da;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.7;
}

.authors a {
  text-decoration-color: rgba(214, 169, 79, 0.48);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.authors a:hover,
.authors a:focus-visible {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

sup {
  color: var(--gold);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 0.58em;
}

.affiliations {
  display: flex;
  max-width: 1040px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 1rem;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.affiliation-break {
  width: 100%;
  height: 0;
}

.tagline {
  max-width: 740px;
  margin: 0 auto 1.8rem;
  color: #d8d2c7;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--line);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
}

.author-note {
  margin: 1.25rem 0 0;
  color: #817d75;
  font-size: 0.68rem;
}

.scroll-cue {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #8f8a81;
  font-size: 0.57rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue i {
  width: 1px;
  height: 2rem;
  margin-top: 0.5rem;
  background: linear-gradient(var(--gold), transparent);
}

.section {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(5.5rem, 10vw, 9rem) 0;
  border-top: 1px solid var(--line);
}

.abstract-section {
  border-top: 0;
}

.abstract-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.display-heading,
.section-heading h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4.2vw, 4.5rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.abstract-copy {
  padding-top: 0.3rem;
}

.abstract-copy h3 {
  margin-bottom: 1.2rem;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.abstract-copy p {
  margin-bottom: 0;
  color: #c1bcb2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.75;
}

.abstract-copy strong {
  color: var(--white);
  font-weight: 400;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(17rem, 0.65fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.text-results {
  display: grid;
  gap: clamp(3rem, 6vw, 5.5rem);
}

.text-result {
  padding: clamp(1rem, 2.2vw, 1.75rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 42%),
    rgba(12, 12, 12, 0.72);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.24);
}

.global-caption {
  padding: clamp(0.35rem, 1vw, 0.75rem) clamp(0.2rem, 1vw, 0.75rem)
    clamp(1.35rem, 2.5vw, 2.15rem);
}

.caption-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.caption-heading p {
  margin: 0;
}

.caption-heading .prompt-label {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.caption-heading > span {
  color: #77736c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.67rem;
  font-style: italic;
  letter-spacing: 0.04em;
}

.global-caption-summary {
  max-width: 72rem;
  margin: 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.9rem, 1.15vw, 1.08rem);
  line-height: 1.6;
}

.global-caption details {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.83rem;
}

.global-caption summary {
  width: max-content;
  cursor: pointer;
  color: #938f87;
  font-size: 0.69rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  list-style-position: outside;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.global-caption summary:hover,
.global-caption summary:focus-visible {
  color: var(--gold);
}

.global-caption details p {
  max-width: 72rem;
  margin: 0.9rem 0 0;
  padding-left: 1rem;
  border-left: 1px solid rgba(214, 169, 79, 0.42);
  line-height: 1.75;
}

.shot-demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(17rem, 0.92fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.video-frame,
.video-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(246, 242, 234, 0.72);
  background: #000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.video-frame::before,
.video-card::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border: 5px solid var(--black);
  content: "";
}

video {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 11;
  background: #000;
  object-fit: contain;
}

.frame-index,
.reel-number {
  position: absolute;
  top: 0.9rem;
  left: 1rem;
  z-index: 3;
  color: rgba(255, 255, 255, 0.83);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 3px #000;
}

.shot-caption-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(0.5rem, 1.5vw, 1.25rem) 0;
}

.shot-caption-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shot-caption {
  grid-area: 1 / 1;
  align-self: center;
  color: #e6e0d6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.9rem, 1.15vw, 1.08rem);
  line-height: 1.62;
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  transition: opacity 240ms ease, transform 240ms ease, visibility 240ms;
}

.shot-caption.is-active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.shot-caption strong {
  color: var(--gold);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72em;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shot-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  margin-top: clamp(1.25rem, 2.4vw, 2rem);
}

.shot-timeline span {
  height: 2px;
  background: rgba(246, 242, 234, 0.16);
  transition: background 200ms ease, transform 200ms ease;
  transform-origin: left;
}

.shot-timeline span.is-active {
  background: var(--gold);
  transform: scaleY(1.6);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.8rem);
}

.video-card {
  transition: border-color 180ms ease, transform 240ms ease;
}

.video-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.orientation-grid .video-card {
  border-color: rgba(214, 169, 79, 0.72);
}

.reel-number {
  top: auto;
  right: 0.9rem;
  bottom: 0.65rem;
  left: auto;
}

.method-feature {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--line);
}

.method-number {
  margin-bottom: 0.7rem;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.method-copy {
  max-width: 820px;
}

.method-copy h3 {
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 2.7vw, 2.6rem);
  font-weight: 400;
  line-height: 1.1;
}

.method-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.paper-figure {
  margin: clamp(2rem, 4vw, 3.5rem) 0 0;
  overflow: hidden;
  border: 1px solid rgba(246, 242, 234, 0.3);
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.paper-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.paper-figure figcaption {
  padding: 0.65rem 0.8rem;
  border-top: 1px solid rgba(17, 16, 14, 0.18);
  color: #555047;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.compact-figure {
  width: min(760px, 100%);
}

.citation-section {
  display: grid;
  grid-template-columns: minmax(14rem, 0.48fr) minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.bibtex-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #090909;
}

.bibtex-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bibtex-topline button {
  padding: 0;
  border: 0;
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: clamp(1rem, 3vw, 2rem);
  color: #d7d1c7;
  font: 0.78rem/1.8 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

footer {
  display: flex;
  width: min(var(--max), calc(100% - 2.5rem));
  justify-content: space-between;
  margin: 0 auto;
  padding: 2rem 0 2.8rem;
  border-top: 1px solid var(--line);
  color: #7f7b74;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer a {
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .abstract-layout,
  .section-heading,
  .citation-section {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 1.5rem;
  }

  .shot-demo-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .shot-caption-panel {
    min-height: 17rem;
    padding: 0 0.35rem 0.5rem;
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 620px) {
  .site-header {
    padding: 1rem 1.1rem;
  }

  .wordmark small {
    display: none;
  }

  nav {
    gap: 0.85rem;
  }

  nav a {
    font-size: 0.64rem;
  }

  .hero {
    min-height: auto;
    padding-top: 7.5rem;
    padding-bottom: 6.5rem;
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 4.6rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .scroll-cue {
    display: none;
  }

  .section {
    width: min(100% - 1.6rem, var(--max));
  }

  .text-result {
    padding: 0.75rem;
  }

  .global-caption {
    padding: 0.4rem 0.25rem 1.3rem;
  }

  .global-caption-summary {
    font-size: 0.92rem;
  }

  .shot-caption-panel {
    min-height: 20rem;
  }

  .shot-caption {
    font-size: 0.92rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .paper-figure {
    width: 100%;
  }

  footer {
    width: calc(100% - 1.6rem);
    flex-direction: column;
    gap: 0.7rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
