:root {
  --bg: #120d09;
  --bg-soft: #211710;
  --panel: rgba(39, 24, 15, 0.82);
  --panel-strong: rgba(64, 35, 20, 0.88);
  --line: rgba(255, 226, 196, 0.12);
  --ink: #fdf1de;
  --muted: #d8bfa3;
  --gold: #ffba47;
  --amber: #ff7d2c;
  --rose: #ff685c;
  --teal: #7fe2dc;
  --shadow-lg: 0 40px 90px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 20px 44px rgba(0, 0, 0, 0.28);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Avenir Next Condensed", "Gill Sans", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 125, 44, 0.28), transparent 28%),
    radial-gradient(circle at 84% 10%, rgba(127, 226, 220, 0.12), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(255, 104, 92, 0.16), transparent 24%),
    linear-gradient(180deg, #140f0b 0%, #20150f 42%, #110c09 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background:
    linear-gradient(90deg, rgba(255, 231, 209, 0.05) 0 1px, transparent 1px 120px),
    linear-gradient(180deg, rgba(255, 231, 209, 0.04) 0 1px, transparent 1px 120px);
}

a,
button {
  font: inherit;
}

button {
  cursor: pointer;
}

.archive-shell {
  width: min(1440px, calc(100% - 28px));
  margin: 14px auto 28px;
  padding: 28px;
  border-radius: 42px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 186, 71, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(45, 30, 20, 0.94), rgba(19, 13, 9, 0.96));
  border: 1px solid rgba(255, 229, 197, 0.08);
  box-shadow: var(--shadow-lg);
}

.archive-shell::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 30px;
  border: 1px solid rgba(255, 234, 208, 0.07);
  pointer-events: none;
}

.archive-header,
.stage-layout,
.wall-section,
.index-section {
  position: relative;
  z-index: 1;
}

.header-bar,
.headline-grid,
.stage-layout,
.section-head {
  display: flex;
  gap: 18px;
}

.archive-header {
  margin-bottom: 22px;
}

.header-bar {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.back-link,
.detail-link {
  color: var(--ink);
  text-decoration: none;
}

.back-link {
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.back-link:hover,
.detail-link:hover,
.header-pill--link:hover {
  color: var(--gold);
}

.header-pills,
.meta-row,
.control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.header-pill,
.meta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 229, 197, 0.12);
  background: linear-gradient(135deg, rgba(255, 125, 44, 0.16), rgba(127, 226, 220, 0.08));
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-pill--link {
  text-decoration: none;
}

.headline-grid {
  align-items: end;
  justify-content: space-between;
}

.headline-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}

h1,
h2,
h3,
.stat-card strong {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(3.2rem, 6vw, 6rem);
  line-height: 0.9;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.headline-note,
.hero-note,
.hero-summary,
.section-note,
.detail-value {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.headline-stats {
  min-width: min(420px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat-card,
.console-panel,
.archive-item {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(66, 39, 23, 0.66), rgba(26, 17, 12, 0.82)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 34%);
  box-shadow: var(--shadow-sm);
}

.stat-card {
  padding: 18px;
}

.stat-card span,
.detail-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-card strong {
  font-size: 1.4rem;
}

.stage-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1fr);
  align-items: stretch;
  margin-bottom: 22px;
}

.stage-frame {
  min-height: 720px;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 233, 206, 0.09);
  background:
    radial-gradient(circle at top, rgba(255, 186, 71, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(50, 30, 19, 0.8), rgba(16, 11, 8, 0.95));
}

.stage-glow {
  position: absolute;
  inset: 10%;
  border-radius: 999px;
  filter: blur(36px);
  background: radial-gradient(circle, rgba(255, 125, 44, 0.36), transparent 60%);
}

.phone-frame {
  position: absolute;
  inset: 30px;
  margin: auto;
  width: min(360px, calc(100% - 56px));
  max-width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 42px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 244, 228, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(12, 10, 10, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(255, 239, 216, 0.08),
    0 30px 60px rgba(0, 0, 0, 0.42);
}

#hero-video,
.short-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #050505;
}

#hero-video {
  border-radius: 30px;
}

.console-panel {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.control-row button {
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  color: var(--bg);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold), var(--amber));
}

.control-row button:hover {
  transform: translateY(-1px);
}

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

.section-head {
  align-items: end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.wall-section {
  margin-bottom: 22px;
}

.shorts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.short-card {
  border: 0;
  padding: 0;
  overflow: hidden;
  text-align: left;
  color: inherit;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    rgba(28, 18, 13, 0.94);
  border: 1px solid rgba(255, 235, 214, 0.08);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.short-card:hover,
.short-card.is-active {
  transform: translateY(-3px);
  border-color: rgba(255, 186, 71, 0.5);
  box-shadow: 0 28px 52px rgba(0, 0, 0, 0.34);
}

.short-card.is-active .card-pill {
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: var(--bg);
}

.card-window {
  position: relative;
  aspect-ratio: 9 / 16;
}

.card-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(4, 4, 4, 0), rgba(4, 4, 4, 0.84) 54%, rgba(4, 4, 4, 0.94));
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.card-order {
  color: rgba(255, 244, 228, 0.72);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
}

.card-title {
  margin: 0 0 8px;
  font-size: 1.18rem;
  line-height: 1.02;
}

.card-meta {
  margin: 0;
  color: rgba(255, 241, 224, 0.76);
  font-size: 0.9rem;
  line-height: 1.5;
}

.archive-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.archive-item {
  padding: 18px;
}

.archive-item-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.archive-item h3 {
  font-size: 1.16rem;
  line-height: 1.1;
}

.archive-order {
  color: var(--gold);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.archive-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.archive-links a {
  color: var(--teal);
  text-decoration: none;
}

.archive-links a:hover {
  color: var(--gold);
}

@media (max-width: 1120px) {
  .headline-grid,
  .section-head,
  .header-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .stage-layout {
    grid-template-columns: 1fr;
  }

  .stage-frame {
    min-height: 620px;
  }

  .headline-stats,
  .shorts-grid,
  .archive-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .archive-shell {
    width: min(100%, calc(100% - 14px));
    margin: 7px auto 18px;
    padding: 18px;
    border-radius: 28px;
  }

  .archive-shell::after {
    inset: 10px;
    border-radius: 20px;
  }

  .headline-stats,
  .detail-grid,
  .shorts-grid,
  .archive-list {
    grid-template-columns: 1fr;
  }

  .phone-frame {
    width: min(320px, calc(100% - 36px));
    inset: 18px;
  }

  h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }
}
