:root {
  --black: #000000;
  --panel: #11100f;
  --panel-warm: #1e1915;
  --text: #cfc6be;
  --white: #f0f0f0;
  --orange: #d47d3f;
  --orange-bright: #e57a3c;
  --tan: #d1b392;
  --brown: #3c3026;
  --line: rgba(212, 125, 63, .3);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; background: var(--black); }
body {
  margin: 0;
  color: var(--text);
  background: var(--black);
  font-family: "Lato", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, video { display: block; width: 100%; }

.wrap { width: min(calc(100% - 64px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 64px), 900px); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 10px 32px;
  background: rgba(0, 0, 0, .92);
  border-bottom: 1px solid rgba(212, 125, 63, .2);
  backdrop-filter: blur(14px);
}
nav { display: flex; align-items: center; gap: 8px; overflow-x: auto; }
nav a {
  padding: 3px 12px;
  color: var(--white);
  background: rgba(212, 184, 150, .15);
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.55;
  white-space: nowrap;
  transition: color .2s, background .2s, border-color .2s;
}
nav a:hover, nav a.active {
  color: var(--orange-bright);
  background: rgba(212, 125, 63, .18);
  border-color: rgba(212, 125, 63, .65);
}
nav a.active::after { content: none; }

.hero {
  padding: 70px 0 62px;
  text-align: center;
}
.hero h1 {
  margin: 0;
  color: var(--orange-bright);
  font: italic 700 clamp(58px, 7vw, 76px)/1.1 "Playfair Display", serif;
  letter-spacing: -.02em;
  text-shadow: 0 0 18px rgba(212, 125, 63, .22);
}
.hero-subtitle {
  max-width: 1000px;
  margin: 24px auto 30px;
  color: var(--white);
  font: 400 clamp(19px, 2.1vw, 24px)/1.7 "Libre Baskerville", serif;
  letter-spacing: .05em;
}
.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px 22px;
  max-width: 980px;
  margin: auto;
  color: var(--white);
  font-size: 16px;
  line-height: 1.8;
}
.authors a {
  color: inherit;
  text-decoration: none;
  transition: color .18s ease;
}
.authors a:hover,
.authors a:focus-visible {
  color: var(--orange-bright);
}
sup { color: var(--orange-bright); font-weight: 400; }
.affiliations { margin: 15px 0 34px; color: var(--white); font-size: 16px; }
.affiliations a {
  color: inherit;
  text-decoration: none;
  transition: color .18s ease;
}
.affiliations a:hover,
.affiliations a:focus-visible {
  color: var(--orange-bright);
}
.links { display: flex; justify-content: center; gap: 16px; }
.pill {
  padding: 7px 22px;
  color: var(--brown);
  background: var(--tan);
  border: 2px solid var(--brown);
  border-radius: 0;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(209, 179, 146, .42);
}
.pill.muted { color: var(--brown); background: var(--tan); }
.pill:hover { filter: brightness(1.08); }

.section { position: relative; padding: 82px 0; }
.section::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 132px;
  height: 36px;
  background: var(--orange);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 36'%3E%3Cpath d='M18 1 5 20h12l-4 15 18-22H20zM66 1 53 20h12l-4 15 18-22H68zM114 1l-13 19h12l-4 15 18-22h-11z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 36'%3E%3Cpath d='M18 1 5 20h12l-4 15 18-22H20zM66 1 53 20h12l-4 15 18-22H68zM114 1l-13 19h12l-4 15 18-22h-11z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: translateX(-50%);
}
.section h2, .feature-video h2 {
  margin: 0;
  color: var(--orange);
  font: italic 700 clamp(42px, 5vw, 56px)/1.7 "Playfair Display", serif;
  letter-spacing: -.01em;
  text-align: center;
}
.section-kicker {
  margin-bottom: 4px;
  color: var(--tan);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .15em;
  text-align: center;
  text-transform: uppercase;
}
#abstract {
  padding-top: 56px;
  padding-bottom: 78px;
}
#abstract::before { content: none; }
#abstract h2 {
  margin-bottom: 18px;
  color: var(--white);
  font: 700 19.2px/1.7 "Libre Baskerville", serif;
  letter-spacing: .1em;
  text-align: left;
}
#abstract .section-kicker { display: none; }
.abstract-copy {
  margin: 0 0 17px;
  color: var(--white);
  font: 400 16.8px/1.5 "Lato", sans-serif;
  letter-spacing: normal;
  text-align: left;
}
.section-heading {
  display: block;
  max-width: 960px;
  margin: 0 auto 42px;
  text-align: center;
}
.section-heading > p {
  max-width: 780px;
  margin: 14px auto 0;
  color: var(--white);
  font: 400 17.6px/1.8 "Libre Baskerville", serif;
}
.section-heading.compact { margin-bottom: 28px; }
.feature-video {
  max-width: 700px;
  padding: 44px 0 54px;
}

.media-card { min-width: 0; }
.media-shell, .image-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 16 / 9;
  background: var(--panel);
  border: 1px solid rgba(209, 179, 146, .32);
  border-radius: 0;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .55);
}
.media-shell--hero {
  border-color: rgba(209, 179, 146, .58);
  box-shadow: 0 12px 42px rgba(0, 0, 0, .72), 0 0 22px rgba(212, 125, 63, .1);
}
.media-shell video {
  position: absolute;
  z-index: 2;
  inset: 0;
  height: 100%;
  object-fit: contain;
  background: #000;
  opacity: 0;
}
.media-shell.has-video video { opacity: 1; }
.media-shell.has-video .media-placeholder { display: none; }
.continuation-first-row-guide {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  inset: 0 0 auto;
  height: 25%;
  box-sizing: border-box;
  border: 3px solid var(--orange-bright);
  box-shadow: 0 10px 0 #000, 0 12px 0 rgba(212, 125, 63, .65);
}
.media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--text);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 125, 63, .12), transparent 46%),
    linear-gradient(180deg, #211b17, #0e0d0c);
}
.media-placeholder::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(209, 179, 146, .22);
}
.media-placeholder strong {
  position: relative;
  margin-top: 10px;
  color: var(--white);
  font: 400 15px/1.4 "Libre Baskerville", serif;
}
.media-placeholder small {
  position: relative;
  margin-top: 5px;
  color: #8f8177;
  font-size: 10px;
}
.play-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding-left: 3px;
  color: var(--brown);
  background: var(--tan);
  border: 1px solid var(--brown);
  border-radius: 0;
  font-size: 13px;
}
.media-caption {
  position: relative;
  width: 100%;
  min-height: 60px;
  margin: 0;
  padding: 16px 20px;
  color: #2a2a2a;
  background: #e8e3d7;
  font: 400 14.4px/1.6 "Lato", sans-serif;
  text-align: left;
  transition: background .3s ease;
}
.caption-content {
  height: 23px;
  padding-right: 30px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: height .3s ease;
}
.media-caption.expanded .caption-content {
  height: auto;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
}
.caption-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  color: var(--tan);
  background: var(--brown);
  border: 0;
  border-radius: 2px;
  font: 700 19.2px/1 Arial, sans-serif;
  cursor: pointer;
  transition: background .3s ease, color .3s ease;
}
.caption-toggle:hover,
.caption-toggle:focus-visible {
  color: var(--white);
  background: #2b211a;
  outline: none;
}
.media-slot--hero .media-shell { aspect-ratio: 700 / 404; }

.stack { display: grid; gap: 30px; }
.mglv-part { padding: 12px 0 48px; }
.mglv-part + .mglv-part {
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.mglv-part-heading {
  margin: 0 0 30px;
  color: var(--white);
  font: italic 600 35.2px/1.7 "Playfair Display", serif;
  letter-spacing: -.01em;
  text-align: center;
}
.mglv-style-group { padding: 8px 0 44px; }
.mglv-style-group:last-child { padding-bottom: 0; }
.mglv-style-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.mglv-style-heading h4 {
  margin: 0;
  color: var(--white);
  font: italic 600 20.8px/1.7 "Playfair Display", serif;
  letter-spacing: -.01em;
}
.mglv-style-heading > div { height: 1px; background: var(--line); }
.image-card { background: #f2eee9; }
.image-card img { width: 100%; height: 100%; object-fit: contain; }
.mglv-overview {
  width: 100%;
  aspect-ratio: 3980 / 1714;
}
.video-grid { display: grid; align-items: start; gap: 25px; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-col, .comparison-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.section-tint {
  background: var(--black);
  border: 0;
}
.comparison-subsection {
  padding: 36px 0 78px;
  border-top: 1px solid var(--line);
}
.comparison-subsection:first-child { border-top: 0; padding-top: 4px; }
.comparison-subheading {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 17px;
  margin-bottom: 30px;
}
.comparison-subheading > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--brown);
  background: var(--tan);
  border: 1px solid var(--brown);
  font-size: 12px;
  font-weight: 700;
}
.comparison-subheading h3 {
  margin: 0;
  color: var(--white);
  font: italic 600 clamp(29px, 3vw, 35.2px)/1.7 "Playfair Display", serif;
  letter-spacing: -.01em;
}
.comparison-subheading p {
  margin: 2px 0 0;
  color: var(--white);
  font: 400 17.6px/1.8 "Libre Baskerville", serif;
}
.comparison-carousel { position: relative; }
.comparison-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.comparison-track::-webkit-scrollbar { display: none; }
.comparison-page {
  flex: 0 0 100%;
  min-width: 0;
  padding: 0 2px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.comparison-page-title {
  margin-bottom: 18px;
  color: var(--tan);
  font: italic 400 16px/1.5 "Libre Baskerville", serif;
  text-align: center;
}
.comparison-grid { gap: 30px 18px; }
.paired-comparison-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 22px; }
.method-label {
  margin: 0 0 10px;
  color: var(--orange);
  font: 600 17.6px/1.7 "Libre Baskerville", serif;
  text-align: center;
}
.media-card--ours .method-label { color: var(--orange-bright); font-weight: 700; }
.media-card--ours .media-shell {
  border-color: var(--orange);
  box-shadow: 0 0 20px rgba(212, 125, 63, .14);
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}
.carousel-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 34px;
  padding: 0;
  color: var(--brown);
  background: var(--tan);
  border: 1px solid var(--brown);
  border-radius: 0;
  font: 700 18px/1 "Lato", sans-serif;
  cursor: pointer;
}
.carousel-button:hover:not(:disabled) { filter: brightness(1.1); }
.carousel-button:disabled { cursor: default; opacity: .35; }
.carousel-status {
  min-width: 54px;
  color: var(--text);
  font-size: 12px;
  letter-spacing: .12em;
  text-align: center;
}

.style-group { padding: 15px 0 52px; }
.style-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.style-heading span {
  justify-self: end;
  color: var(--orange);
  font-size: 12px;
}
.style-heading h3 {
  margin: 0;
  color: var(--white);
  font: italic 600 35.2px/1.7 "Playfair Display", serif;
  letter-spacing: -.01em;
}
.style-heading div { height: 1px; background: var(--line); }

footer {
  padding: 38px 0;
  color: #9f9288;
  background: var(--black);
  border-top: 1px solid var(--line);
}
.footer-inner { display: flex; justify-content: space-between; gap: 25px; font-size: 12px; }
.footer-inner span:first-child { color: var(--orange); font: italic 700 20px/1 "Playfair Display", serif; }

@media (max-width: 960px) {
  .site-header { justify-content: flex-start; padding-inline: 20px; }
  nav { max-width: 100%; }
  .comparison-grid, .three-col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .wrap, .narrow { width: min(calc(100% - 30px), var(--max)); }
  .site-header { min-height: 56px; }
  nav { gap: 6px; }
  nav a { padding: 2px 9px; font-size: 12px; }
  .hero { padding: 55px 0 42px; }
  .hero h1 { font-size: 56px; }
  .hero-subtitle { margin-top: 16px; font-size: 18px; line-height: 1.55; }
  .section { padding: 72px 0; }
  .section h2, .feature-video h2 { font-size: 40px; }
  .section-heading { margin-bottom: 28px; }
  .abstract-copy { font-size: 16.8px; }
  .two-col, .three-col, .comparison-grid, .paired-comparison-grid { grid-template-columns: 1fr; }
  .mglv-overview { aspect-ratio: 3980 / 1714; }
  .media-slot--hero .media-shell { aspect-ratio: 700 / 404; }
  .style-heading { grid-template-columns: auto auto 1fr; }
  .style-heading span { justify-self: auto; }
  .footer-inner { flex-direction: column; }
}

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