:root {
  --bg: #f3efe7;
  --bg-soft: #fffaf2;
  --panel: rgba(255, 250, 242, 0.9);
  --panel-strong: #fffdf9;
  --ink: #19140f;
  --ink-soft: #5a4c3e;
  --line: rgba(48, 34, 17, 0.12);
  --hero-top: #161d28;
  --hero-bottom: #24384d;
  --accent: #c86f31;
  --accent-soft: rgba(200, 111, 49, 0.14);
  --shadow: 0 22px 60px rgba(21, 19, 16, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 28%),
    linear-gradient(180deg, #f6f2eb 0%, #f1ece3 36%, #f8f5ef 100%);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.65;
}

video {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
  border-radius: var(--radius-lg);
}

a {
  color: inherit;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 72px;
  background:
    radial-gradient(circle at top right, rgba(237, 179, 130, 0.26), transparent 26%),
    linear-gradient(135deg, var(--hero-top) 0%, var(--hero-bottom) 58%, #2e5065 100%);
  color: #f6f4ef;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -120px -140px auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 219, 180, 0.22), transparent 70%);
}

.hero__inner,
.page-shell {
  width: min(var(--max-width), calc(100vw - 48px));
  margin: 0 auto;
}

.hero__eyebrow,
.section-heading__eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: none;
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero__authors {
  max-width: 1100px;
  margin: 22px auto 0;
  font-size: clamp(1.05rem, 2.7vw, 1.8rem);
  color: rgba(246, 244, 239, 0.92);
  text-align: center;
}

.hero__authors a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 244, 239, 0.24);
}

.hero__authors a:hover,
.hero__authors a:focus-visible {
  border-bottom-color: rgba(246, 244, 239, 0.72);
}

.hero__authors sup,
.hero__affiliations sup {
  font-size: 0.62em;
  vertical-align: super;
}

.hero__affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 36px;
  max-width: 1180px;
  margin: 26px auto 0;
  color: rgba(246, 244, 239, 0.84);
  font-size: clamp(1rem, 2vw, 1.28rem);
  text-align: center;
}

.hero__affiliations span {
  margin: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
  justify-content: center;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff8ef;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.action-button i {
  font-size: 1.05em;
  line-height: 1;
}

.action-button:hover,
.action-button:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.34);
}

.action-button--muted {
  color: rgba(255, 248, 239, 0.84);
}

.page-shell {
  padding: 38px 0 64px;
}

.section {
  margin-top: 28px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-strong) 100%);
  box-shadow: var(--shadow);
}

.section--feature,
.section--abstract,
.section--bibtex {
  padding: 42px;
}

.section-heading {
  max-width: none;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-heading p:last-child {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.feature-card {
  display: grid;
  gap: 18px;
}

.feature-card__video {
  border-radius: var(--radius-lg);
}

.feature-card__caption {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.abstract-card {
  max-width: none;
}

.abstract-card p {
  margin: 0;
  font-size: 1.02rem;
}

.abstract-card p + p {
  margin-top: 16px;
}

.video-grid {
  display: grid;
  gap: 18px;
}

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

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

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

.skills-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.skill-card {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(48, 34, 17, 0.1);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 248, 239, 0.94)),
    var(--bg-soft);
}

.skill-card h3 {
  margin: 14px 2px 2px;
  font-size: 1rem;
  line-height: 1.3;
}

.skill-card--grouped {
  grid-column: 1 / -1;
  padding: 14px;
}

.skill-card--composition {
  grid-column: 1 / -1;
}

.skill-card__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.skill-card__media {
  overflow: hidden;
  border-radius: calc(var(--radius-md) - 2px);
}

.skill-card__label-overlay {
  position: absolute;
  left: 24px;
  bottom: 20px;
  z-index: 1;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(20, 24, 30, 0.7);
  color: #f8f1e6;
  backdrop-filter: blur(10px);
}

.video-card {
  padding: 14px;
  border: 1px solid rgba(48, 34, 17, 0.1);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 248, 239, 0.94)),
    var(--bg-soft);
}

.video-card h3 {
  margin: 14px 2px 2px;
  font-size: 1rem;
  line-height: 1.3;
}

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

.video-card--morphology {
  width: 100%;
}

.video-card__media--compact {
  width: min(760px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border-radius: calc(var(--radius-md) - 2px);
}

.video-card--single {
  width: 100%;
  max-width: none;
}

.skill-card--composition > .video-card__media--compact {
  width: min(732px, 100%);
}

.video-crop {
  --crop-scale: 1;
  --crop-x: 0px;
  --crop-y: 0px;
}

.video-crop__viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: transparent;
}

.video-crop__media {
  transform: translate(var(--crop-x), var(--crop-y)) scale(var(--crop-scale));
  transform-origin: center center;
  will-change: transform;
}

.bibtex-block {
  margin: 0;
  overflow-x: auto;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: #14181e;
  color: #f8f1e6;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .video-grid--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 64px 18px 54px;
  }

  .hero__inner,
  .page-shell {
    width: min(var(--max-width), calc(100vw - 24px));
  }

  .video-grid--five,
  .video-grid--wide,
  .video-grid--duo,
  .skills-layout {
    grid-template-columns: 1fr;
  }

  .skill-card__row {
    grid-template-columns: 1fr;
  }

  .skill-card--grouped .skill-card__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section,
  .section--feature,
  .section--abstract,
  .section--bibtex {
    padding: 24px;
  }
}
