:root {
  --bg: #08090c;
  --ink: #f2efe9;
  --mute: #9a97a3;
  --faint: #6a6775;
  --accent: #e8b44f;
  --line: rgba(242, 239, 233, 0.14);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* every clip is silent — hide the volume controls the browser still draws */
video::-webkit-media-controls-mute-button,
video::-webkit-media-controls-volume-slider,
video::-webkit-media-controls-volume-slider-container {
  display: none !important;
}

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

.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(232, 180, 79, 0.13), transparent 65%),
    radial-gradient(700px 600px at 85% 110%, rgba(120, 110, 220, 0.10), transparent 60%),
    radial-gradient(140% 100% at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.5) 100%);
}

.glow::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 24px 48px;
}

.hero { text-align: center; }

h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 7.5vw, 88px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.team {
  margin-top: 16px;
  color: var(--mute);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.credits {
  margin-top: 72px;
  padding-top: 0;
  text-align: center;
}

.credits-title {
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 500;
}

.authors {
  max-width: 780px;
  margin: 0 auto;
  font-size: 15.5px;
  color: var(--ink);
}

.authors span { white-space: nowrap; }
.authors span:not(:last-child)::after { content: ",\2002"; white-space: normal; }

.authors sup,
.affiliations sup {
  color: var(--accent);
  font-size: 0.62em;
  margin-left: 1px;
}

.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 26px;
  margin-top: 16px;
  color: var(--mute);
  font-size: 14.5px;
}

.notes {
  margin-top: 10px;
  color: var(--faint);
  font-size: 13px;
}

.notes sup { color: var(--accent); font-size: 0.72em; }

.links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  border: 1px solid rgba(242, 239, 233, 0.18);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(242, 239, 233, 0.07), rgba(242, 239, 233, 0.02));
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(242, 239, 233, 0.10),
    0 10px 24px -14px rgba(0, 0, 0, 0.8);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.link-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.link-emoji {
  display: inline-grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
}

.links a:hover {
  border-color: rgba(232, 180, 79, 0.65);
  background: linear-gradient(180deg, rgba(232, 180, 79, 0.14), rgba(232, 180, 79, 0.05));
  box-shadow:
    inset 0 1px 0 rgba(242, 239, 233, 0.12),
    0 12px 28px -14px rgba(0, 0, 0, 0.9);
}

.hero-demo {
  margin-top: 36px;
}

.hero-demo video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
}

.about {
  margin-top: 72px;
  padding-top: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.about-card {
  position: relative;
  overflow: hidden;
  padding: 28px 30px;
  border: 1px solid rgba(242, 239, 233, 0.10);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(242, 239, 233, 0.04), rgba(242, 239, 233, 0.01));
  box-shadow:
    inset 0 1px 0 rgba(242, 239, 233, 0.07),
    0 20px 50px -30px rgba(0, 0, 0, 0.9);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.about-card::before {
  content: "";
  position: absolute;
  top: -60px;
  left: -40px;
  width: 240px;
  height: 160px;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(232, 180, 79, 0.10), transparent);
}

.about-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 180, 79, 0.35);
}

.about-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.about-card p:not(.about-label) {
  color: var(--mute);
  font-size: 16px;
  line-height: 1.8;
}


.about-card p b {
  color: var(--ink);
  font-weight: 600;
}

.about-card i { color: var(--ink); font-style: italic; }

@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
}

.results {
  margin-top: 72px;
}

.section-head {
  margin: 44px auto 8px;
  max-width: 720px;
  text-align: center;
}

.eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.section-head h2 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 500;
  line-height: 1.1;
}

.section-sub {
  margin-top: 12px;
  color: var(--mute);
  font-size: 15.5px;
  line-height: 1.65;
}

.scene { margin-top: 36px; }

.feature-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.feature-tab {
  padding: 9px 22px;
  border: 1px solid rgba(242, 239, 233, 0.18);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(242, 239, 233, 0.05), rgba(242, 239, 233, 0.01));
  box-shadow:
    inset 0 1px 0 rgba(242, 239, 233, 0.10),
    0 8px 18px -12px rgba(0, 0, 0, 0.7);
  color: var(--mute);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.feature-tab:hover {
  color: var(--ink);
  border-color: rgba(242, 239, 233, 0.35);
  transform: translateY(-1px);
}

.feature-tab.active {
  color: #08090c;
  border-color: var(--accent);
  background: var(--accent);
  font-weight: 600;
  box-shadow: 0 10px 24px -12px rgba(232, 180, 79, 0.5);
}

.feature-panel { display: none; }
.feature-panel.active { display: block; margin-top: 26px; }

.cell {
  position: relative;
  border: 1px solid rgba(242, 239, 233, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  box-shadow:
    inset 0 1px 0 rgba(242, 239, 233, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.6),
    0 36px 90px -30px rgba(0, 0, 0, 0.95);
  transition: border-color 0.25s ease;
}

.cell:hover { border-color: rgba(242, 239, 233, 0.22); }

.cell video {
  display: block;
  width: 100%;
  aspect-ratio: 832 / 464;
  object-fit: contain;
  background: #000;
}

.tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 3px;
  background: rgba(8, 9, 12, 0.72);
  color: var(--mute);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  pointer-events: none;
}

.tag-gen { color: var(--accent); }

.combo.two video { aspect-ratio: 1664 / 464; }
.tag-mid2 { left: calc(50% + 10px); }

.hud {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(242, 239, 233, 0.10);
  border-radius: 8px;
  background: rgba(8, 9, 12, 0.55);
  box-shadow: inset 0 1px 0 rgba(242, 239, 233, 0.08);
  pointer-events: none;
}

.hud-keys {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hud-keyrow { display: flex; gap: 4px; }

.hud-key {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(242, 239, 233, 0.3);
  border-radius: 4px;
  background: rgba(8, 9, 12, 0.5);
  box-shadow: inset 0 1px 0 rgba(242, 239, 233, 0.14);
  color: rgba(242, 239, 233, 0.75);
  font-size: 10px;
  font-weight: 600;
  transition: background 0.08s linear, color 0.08s linear, border-color 0.08s linear;
}

.hud-key.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #08090c;
}

.hud-mouse {
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(242, 239, 233, 0.3);
  border-radius: 8px;
  background-color: rgba(8, 9, 12, 0.5);
  box-shadow: inset 0 1px 0 rgba(242, 239, 233, 0.14);
  background-image:
    linear-gradient(rgba(242, 239, 233, 0.2), rgba(242, 239, 233, 0.2)),
    linear-gradient(rgba(242, 239, 233, 0.2), rgba(242, 239, 233, 0.2));
  background-position: center;
  background-size: 1px 60%, 60% 1px;
  background-repeat: no-repeat;
}

.hud-mouse-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -7px;
  color: rgba(242, 239, 233, 0.6);
  transition: transform 0.1s linear, color 0.1s linear, filter 0.1s linear;
}

.hud-mouse-dot.active {
  color: var(--accent);
  filter: drop-shadow(0 0 5px rgba(232, 180, 79, 0.8));
}

.mouse-left {
  fill: var(--accent);
  opacity: 0;
  transition: opacity 0.08s linear;
}

.mouse-left.active { opacity: 1 }

.prompt {
  margin-top: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(242, 239, 233, 0.10);
  border-left: 2px solid var(--accent);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(242, 239, 233, 0.02));
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.4),
    inset 0 -1px 0 rgba(242, 239, 233, 0.06);
  text-align: left;
}

.prompt summary {
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: filter 0.15s ease;
}

.prompt summary:hover { filter: brightness(1.25); }

.prompt summary::-webkit-details-marker { display: none; }

.prompt summary::after {
  content: "+";
  margin-left: 8px;
  color: var(--faint);
  font-size: 12px;
}

.prompt[open] summary::after { content: "−"; }

.prompt summary:hover::after { color: var(--ink); }

.prompt p {
  margin-top: 8px;
  color: var(--mute);
  font-size: 13.5px;
  line-height: 1.6;
}

.style-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 14px;
}

.style-cell video {
  display: block;
  width: 100%;
  aspect-ratio: 1664 / 464;
  object-fit: cover;
  background: #000;
}

.style-cell .tag {
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  font-size: 8px;
  letter-spacing: 0.14em;
}

.style-cell .tag-mid2 { left: calc(50% + 6px); }

.style-prompt {
  margin-top: 6px;
  padding: 7px 12px;
}

.style-prompt summary { font-size: 9px; }

.style-prompt p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.55;
}

.style-cell .hud {
  bottom: 5px;
  left: 5px;
  gap: 6px;
  padding: 5px;
  transform: scale(0.72);
  transform-origin: bottom left;
}

.style-cell {
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(242, 239, 233, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.6),
    0 16px 40px -20px rgba(0, 0, 0, 0.9);
}

@media (max-width: 720px) {
  .style-grid { grid-template-columns: repeat(2, 1fr); }
}

.scene figcaption {
  margin-bottom: 12px;
  color: var(--mute);
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
}

.scene figcaption b {
  color: var(--ink);
  font-weight: 600;
}


/* ---- engine log */
.engine-log {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(242, 239, 233, 0.10);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(242, 239, 233, 0.02));
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.4),
    inset 0 -1px 0 rgba(242, 239, 233, 0.06);
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  color: var(--faint);
}

.el-label {
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.el-frame { min-width: 72px; }

.el-event { color: var(--mute); }

.el-event.flash {
  color: var(--accent);
  transition: none;
}

.el-event { transition: color 0.6s ease; }



/* ---- scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}

.team a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(154, 151, 163, 0.4);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.team a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---- finishing touches */
::selection {
  background: rgba(232, 180, 79, 0.35);
  color: var(--ink);
}

html {
  scrollbar-color: rgba(242, 239, 233, 0.22) transparent;
  scroll-behavior: smooth;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  border: 3px solid #08090c;
  border-radius: 6px;
  background: rgba(242, 239, 233, 0.22);
}
::-webkit-scrollbar-thumb:hover { background: rgba(242, 239, 233, 0.35); }

.feature-tab:focus-visible,
.links a:focus-visible,
.prompt summary:focus-visible {
  outline: 2px solid rgba(232, 180, 79, 0.7);
  outline-offset: 2px;
}
