/* StreamChar project page — light technical aesthetic */

:root {
  --bg: #f6f8fc;
  --bg-elevated: #ffffff;
  --surface: rgba(255, 255, 255, 0.92);
  --border: rgba(60, 80, 140, 0.12);
  --border-strong: rgba(50, 90, 200, 0.22);
  --text: #1a2235;
  --text-muted: #5a6478;
  --accent: #3d6ae8;
  --accent-2: #0d9b8c;
  --accent-glow: rgba(61, 106, 232, 0.22);
  --shadow: 0 4px 24px rgba(30, 50, 100, 0.06);
  --shadow-hover: 0 8px 32px rgba(30, 50, 100, 0.1);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --max-w: 1180px;
  --header-h: 64px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 15% -5%, rgba(91, 140, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 92% 8%, rgba(13, 155, 140, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(91, 140, 255, 0.06), transparent 45%);
  pointer-events: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(80, 100, 160, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 100, 160, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 85%);
  pointer-events: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
}

.site-header.is-scrolled {
  background: rgba(246, 248, 252, 0.88);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(30, 50, 100, 0.04);
}

.nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* Hero */
.hero {
  padding: 3rem 1.5rem 4rem;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-venue {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 1rem;
}

.hero-title {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 auto 1.25rem;
  max-width: 52rem;
  text-align: center;
}

.hero-authors {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  font-size: clamp(1.18rem, 2.2vw, 1.45rem);
  color: var(--text-muted);
  margin: 0 auto 1.85rem;
  text-align: center;
}

.author-name {
  color: var(--text);
  font-weight: 600;
}

.author-marker {
  margin-left: 0.08em;
  font-size: 0.72em;
  font-weight: 600;
  vertical-align: super;
  line-height: 0;
}

.author-sep {
  opacity: 0.5;
}

.hero-affiliation {
  font-size: clamp(1.05rem, 1.9vw, 1.22rem);
  color: var(--text-muted);
}

.hero-author-footnote {
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
  color: var(--text-muted);
  opacity: 0.9;
}

.hero-author-footnote sup {
  margin-right: 0.15em;
  font-size: 0.85em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2d55c8);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.btn-primary.is-placeholder {
  opacity: 0.85;
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(61, 106, 232, 0.06);
  border-color: var(--border-strong);
}

.card-glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.demo-card.card-glass:hover {
  box-shadow: var(--shadow-hover);
}

.hero-abstract {
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
}

.hero-abstract h2 {
  font-size: 0.8rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.hero-abstract p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: justify;
}

.hero-figure {
  padding: 1.25rem;
  overflow: hidden;
}

.hero-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  background: #fff;
}

.hero-figure figcaption {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* Demo sections */
.demo-sections {
  padding: 0 1.5rem 4rem;
}

.demo-section {
  max-width: var(--max-w);
  margin: 0 auto 4.5rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.section-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.section-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.shared-transcript {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.shared-transcript-body {
  max-height: 220px;
  overflow-y: auto;
  font-size: 0.88rem;
}

.demo-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.demo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.demo-row-single {
  grid-template-columns: 1fr;
}

@media (max-width: 820px) {
  .demo-row {
    grid-template-columns: 1fr;
  }
}

.demo-card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color var(--transition);
}

.demo-card:hover {
  border-color: var(--border-strong);
}

.demo-card-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  margin: 0;
}

.video-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0f1218;
  line-height: 0;
  border: 1px solid var(--border);
}

.video-wrap video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Pair layout: native resolution, not upscaled */
.layout-pair .video-wrap video,
.layout-pair-motion .video-wrap video,
.layout-pair-transcript-only .video-wrap video {
  max-height: 360px;
  margin: 0 auto;
}

/* Real-time: one video per row; avoid width:100% + overflow:hidden breaking seek bar */
.layout-single-large {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.layout-single-large .demo-card {
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
}

.layout-single-large .video-wrap.video-large {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: visible;
  line-height: normal;
}

.layout-single-large .video-wrap.video-large video {
  max-width: 100%;
  max-height: 680px;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  vertical-align: middle;
}

.meta-block {
  font-size: 0.88rem;
}

.meta-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.meta-text {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.transcript-text {
  max-height: 120px;
  overflow-y: auto;
  padding-right: 0.25rem;
  font-size: 0.84rem;
}

.motion-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text);
}

.motion-list li {
  margin: 0.2rem 0;
  font-size: 0.86rem;
}

.motion-list li::marker {
  color: var(--accent-2);
}

/* Footer */
.site-footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

.footer-note {
  font-size: 0.78rem;
  opacity: 0.75;
}

/* Scrollbar */
.transcript-text::-webkit-scrollbar,
.shared-transcript-body::-webkit-scrollbar {
  width: 5px;
}

.transcript-text::-webkit-scrollbar-thumb,
.shared-transcript-body::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}

/* Premium technical layer */
:root {
  --bg: #07090d;
  --bg-elevated: #0e1219;
  --surface: rgba(13, 17, 24, 0.78);
  --surface-strong: rgba(19, 25, 36, 0.9);
  --border: rgba(186, 202, 255, 0.14);
  --border-strong: rgba(130, 170, 255, 0.42);
  --text: #f4f7fb;
  --text-muted: #9ba6b8;
  --accent: #8fb3ff;
  --accent-2: #54ffd6;
  --accent-3: #ff8a3d;
  --accent-glow: rgba(84, 255, 214, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --shadow-hover: 0 32px 100px rgba(0, 0, 0, 0.56), 0 0 42px rgba(84, 255, 214, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
}

html {
  color-scheme: dark;
}

body {
  background:
    radial-gradient(circle at 50% -20%, rgba(105, 135, 255, 0.24), transparent 34rem),
    radial-gradient(circle at 82% 12%, rgba(84, 255, 214, 0.11), transparent 28rem),
    radial-gradient(circle at 12% 28%, rgba(255, 138, 61, 0.12), transparent 26rem),
    linear-gradient(180deg, #07090d 0%, #090c12 42%, #050608 100%);
  color: var(--text);
}

.bg-mesh {
  background:
    linear-gradient(115deg, transparent 0%, rgba(143, 179, 255, 0.08) 28%, transparent 48%),
    radial-gradient(ellipse 60% 36% at 50% 0%, rgba(84, 255, 214, 0.16), transparent 62%),
    radial-gradient(ellipse 34% 26% at 100% 14%, rgba(255, 138, 61, 0.13), transparent 62%);
}

.bg-grid {
  opacity: 0.6;
  background-image:
    linear-gradient(rgba(186, 202, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(186, 202, 255, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(84, 255, 214, 0.06) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px, 240px 240px;
  mask-image: linear-gradient(to bottom, black 0%, black 54%, transparent 94%);
}

.site-header {
  border-bottom-color: rgba(255, 255, 255, 0.04);
}

.site-header.is-scrolled {
  background: rgba(7, 9, 13, 0.76);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-logo {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fff, var(--accent-2) 58%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-2);
}

.hero {
  padding: 5.4rem 1.5rem 5rem;
}

.hero-inner {
  position: relative;
}

.hero-inner::before {
  content: "";
  position: absolute;
  top: -3rem;
  right: -4rem;
  width: min(42vw, 34rem);
  height: min(42vw, 34rem);
  border: 1px solid rgba(143, 179, 255, 0.14);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(84, 255, 214, 0.28) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(143, 179, 255, 0.18) 50%, transparent 50.2%);
  filter: blur(0.2px);
  opacity: 0.42;
  pointer-events: none;
}

.hero-venue,
.section-kicker,
.meta-label,
.demo-card-label {
  color: var(--accent-2);
  text-shadow: 0 0 18px rgba(84, 255, 214, 0.18);
}

.hero-venue {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(84, 255, 214, 0.22);
  border-radius: 999px;
  background: rgba(84, 255, 214, 0.06);
}

.hero-venue::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 16px var(--accent-2);
}

.hero-title {
  max-width: 56rem;
  font-size: clamp(1.85rem, 3.6vw, 2.9rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin: 0 auto 1.35rem;
  text-align: center;
}

.hero-lead {
  max-width: 51rem;
  margin: 0 auto 1.3rem;
  color: #dce5f4;
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
  text-align: center;
}

.hero-authors {
  color: #c8d2e0;
}

.author-name {
  color: #f7f9ff;
  font-weight: 600;
}

.hero-affiliation {
  color: #b8c4d6;
}

.hero-author-footnote {
  color: #a8b4c8;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 2rem 0 1.3rem;
}

.highlight-card {
  position: relative;
  min-height: 10rem;
  padding: 1.1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(12, 16, 23, 0.82);
  box-shadow: var(--shadow);
}

.highlight-card::after {
  content: "";
  position: absolute;
  inset: auto 1rem 1rem auto;
  width: 5.4rem;
  height: 5.4rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(84, 255, 214, 0.26), transparent 64%);
  filter: blur(3px);
}

.highlight-card strong {
  display: block;
  margin-bottom: 2.15rem;
  color: #fff;
  font-family: var(--mono);
  font-size: clamp(1.12rem, 2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.highlight-card span {
  display: block;
  position: relative;
  z-index: 1;
  max-width: 17rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.hero-actions {
  margin-bottom: 1.1rem;
}

.btn {
  border-radius: 999px;
  padding: 0.82rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-primary {
  background: #f7fbff;
  color: #05070b;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 16px 48px rgba(143, 179, 255, 0.18);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: #f7fbff;
}

.btn-ghost:hover {
  background: rgba(84, 255, 214, 0.1);
  border-color: rgba(84, 255, 214, 0.34);
}

.system-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 2rem;
}

.system-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.38rem 0.75rem;
  border: 1px solid rgba(143, 179, 255, 0.18);
  border-radius: 999px;
  background: rgba(143, 179, 255, 0.06);
  color: #cbd7ec;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-glass {
  position: relative;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.card-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 32%, rgba(84, 255, 214, 0.08) 100%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1px;
}

.hero-abstract {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1.2rem;
  padding: 1.6rem;
  margin-bottom: 1.4rem;
}

.hero-abstract h2 {
  color: #f7fbff;
}

.hero-abstract p {
  color: #b8c4d6;
  font-size: 1rem;
  line-height: 1.75;
}

.hero-figure {
  padding: 0.75rem;
}

.hero-figure img {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #f8fafc;
}

.hero-figure figcaption {
  color: #9ba6b8;
}

.demo-sections {
  padding-top: 1rem;
}

.demo-section {
  position: relative;
  margin-bottom: 6.2rem;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(16rem, 0.62fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom-color: rgba(186, 202, 255, 0.14);
}

.section-kicker {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-kicker span:first-child {
  color: #f7fbff;
}

.section-header h2 {
  font-size: clamp(2rem, 4.2vw, 4.5rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.section-subtitle {
  max-width: 28rem;
  color: #aeb9ca;
  font-size: 1rem;
  line-height: 1.55;
}

.demo-row {
  gap: 1rem;
}

.demo-card {
  position: relative;
  padding: 0.72rem;
  gap: 0.95rem;
  overflow: hidden;
}

.demo-card:hover,
.demo-card.is-playing {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.demo-card.is-playing::after {
  content: "LIVE PLAYBACK";
  position: absolute;
  top: 0.95rem;
  right: 0.95rem;
  z-index: 3;
  padding: 0.26rem 0.52rem;
  border: 1px solid rgba(84, 255, 214, 0.4);
  border-radius: 999px;
  background: rgba(7, 9, 13, 0.72);
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.demo-card-label {
  margin-left: 0.2rem;
}

.video-wrap {
  position: relative;
  border-color: rgba(186, 202, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(84, 255, 214, 0.18), transparent 24%),
    #050608;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.video-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 16%, transparent 82%, rgba(0, 0, 0, 0.22));
}

.video-wrap video {
  position: relative;
  z-index: 0;
}

.layout-pair .video-wrap video,
.layout-pair-motion .video-wrap video,
.layout-pair-transcript-only .video-wrap video {
  max-height: 390px;
}

.layout-single-large .demo-card {
  max-width: 1152px;
}

.layout-single-large .video-wrap.video-large video {
  max-height: 840px;
}

.meta-block {
  padding: 0 0.22rem 0.25rem;
}

.meta-text,
.motion-list {
  color: #b7c1d0;
}

.transcript-text {
  max-height: 132px;
}

.shared-transcript {
  padding: 1.35rem;
  background:
    linear-gradient(135deg, rgba(255, 138, 61, 0.09), transparent 28%),
    var(--surface);
}

.shared-transcript-body {
  max-height: 250px;
}

.site-footer {
  color: #8f9bad;
  border-top-color: rgba(186, 202, 255, 0.14);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease, border-color var(--transition), box-shadow var(--transition);
}

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

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

  .reveal,
  .demo-card:hover,
  .demo-card.is-playing {
    transform: none;
    transition: none;
  }
}

@media (max-width: 920px) {
  .hero {
    padding-top: 3.4rem;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .highlight-card {
    min-height: auto;
  }

  .highlight-card strong {
    margin-bottom: 0.8rem;
  }

  .hero-abstract,
  .section-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    padding: 0 1rem;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .demo-sections {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.35rem);
  }

  .system-strip span {
    width: 100%;
  }
}
