:root {
  --paper: #f5f0e7;
  --paper-strong: #f9f4ec;
  --ink: #101735;
  --ink-soft: rgba(16, 23, 53, 0.72);
  --ink-faint: rgba(16, 23, 53, 0.16);
  --line: rgba(16, 23, 53, 0.18);
  --line-strong: rgba(16, 23, 53, 0.32);
  --accent: #bc2f82;
  --accent-soft: rgba(188, 47, 130, 0.14);
  --gold: #c89f39;
  --surface: rgba(249, 244, 236, 0.72);
  --surface-strong: rgba(249, 244, 236, 0.88);
  --shadow-soft: 0 28px 80px rgba(16, 23, 53, 0.14);
  --shadow-card: 0 20px 60px rgba(16, 23, 53, 0.18);
  --transition-curve: cubic-bezier(0.16, 1, 0.3, 1);
  --font-body: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui,
    sans-serif;
  --font-ui: "Manrope", var(--font-body);
  --font-display: "Cormorant Garamond", Georgia, serif;
}

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

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 18%, rgba(188, 47, 130, 0.12), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(200, 159, 57, 0.1), transparent 22%),
    linear-gradient(180deg, #f7f2ea 0%, #f1ebdf 48%, #f4efe7 100%);
  word-break: keep-all;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(
      to right,
      transparent 0,
      transparent calc(100% - 1px),
      rgba(16, 23, 53, 0.035) calc(100% - 1px),
      rgba(16, 23, 53, 0.035) 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(100% - 1px),
      rgba(16, 23, 53, 0.035) calc(100% - 1px),
      rgba(16, 23, 53, 0.035) 100%
    ),
    radial-gradient(rgba(16, 23, 53, 0.06) 0.6px, transparent 0.6px);
  background-size: 120px 120px, 120px 120px, 6px 6px;
  mix-blend-mode: multiply;
}

.glass-filter {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

.site-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: max(1rem, env(safe-area-inset-top, 0px) + 1rem) 1.35rem 0;
  pointer-events: none;
}

.site-chrome__eyebrow,
.site-chrome__meta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 0.92rem;
  overflow: hidden;
  border: 1px solid rgba(249, 244, 236, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 40%, rgba(255, 255, 255, 0.03) 100%),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.2), transparent 36%),
    radial-gradient(circle at 84% 80%, rgba(188, 47, 130, 0.1), transparent 42%);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.24),
    inset -1px -1px 0 rgba(255, 255, 255, 0.08),
    0 18px 34px rgba(7, 10, 22, 0.18);
  color: rgba(249, 244, 236, 0.86);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  isolation: isolate;
}

.site-chrome__eyebrow::before,
.site-chrome__meta::before {
  content: "";
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  border: 1px solid rgba(249, 244, 236, 0.44);
  background: rgba(249, 244, 236, 0.08);
}

.site-chrome__eyebrow::after,
.site-chrome__meta::after {
  content: "";
  position: absolute;
  top: -42%;
  left: -10%;
  width: 56%;
  height: 190%;
  background: linear-gradient(
    118deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.12) 24%,
    rgba(255, 255, 255, 0.02) 52%,
    transparent 74%
  );
  transform: rotate(16deg);
  pointer-events: none;
  mix-blend-mode: screen;
}

.desktop-gate {
  display: none;
}

.desktop-gate__panel {
  width: min(92vw, 38rem);
  padding: 2rem;
  border: 1px solid rgba(249, 244, 236, 0.14);
  background: linear-gradient(180deg, rgba(10, 15, 30, 0.82) 0%, rgba(10, 15, 30, 0.74) 100%);
  backdrop-filter: blur(24px);
  box-shadow: 0 28px 80px rgba(16, 23, 53, 0.28);
  color: #f9f4ec;
}

.desktop-gate__eyebrow {
  margin: 0 0 0.9rem;
  color: rgba(249, 244, 236, 0.64);
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.desktop-gate__title {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.04em;
}

.desktop-gate__desc {
  margin: 1rem 0 0;
  color: rgba(249, 244, 236, 0.82);
  font-size: 1rem;
  line-height: 1.7;
}

.brand-badge {
  position: fixed;
  right: clamp(0.85rem, 2vw, 2rem);
  bottom: max(0.85rem, env(safe-area-inset-bottom, 0px) + 0.85rem);
  z-index: 18;
  pointer-events: none;
}

.brand-badge__logo {
  display: block;
  width: clamp(5.25rem, 8vw, 7.4rem);
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(16, 23, 53, 0.22))
    drop-shadow(0 3px 8px rgba(16, 23, 53, 0.12));
}

body.reel-mode {
  overflow-x: hidden;
}

.hero-block,
.reel-section {
  position: relative;
  min-height: 100dvh;
}

.reel-app {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  background: #101735;
}

.reel-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.56);
  transform: scale(1.02);
}

.reel-ambient-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(200, 159, 57, 0.16), transparent 18%),
    radial-gradient(circle at 82% 20%, rgba(188, 47, 130, 0.2), transparent 24%),
    linear-gradient(180deg, rgba(7, 10, 22, 0.72) 0%, rgba(7, 10, 22, 0.54) 38%, rgba(7, 10, 22, 0.84) 100%);
}

.reel-layout {
  position: relative;
  z-index: 1;
  width: min(96vw, 1560px);
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 1.2rem;
  padding: max(5.2rem, env(safe-area-inset-top, 0px) + 5.2rem) clamp(1rem, 2vw, 2rem)
    max(2rem, env(safe-area-inset-bottom, 0px) + 2rem);
}

.reel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(249, 244, 236, 0.74);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reel-head__eyebrow,
.reel-head__hint {
  margin: 0;
}

.reel-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reel-bookmarks {
  position: absolute;
  top: 1.35rem;
  bottom: 1.35rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.72rem;
  pointer-events: none;
}

.reel-bookmarks--left {
  left: 0;
}

.reel-bookmarks--right {
  right: 0;
}

.reel-bookmark {
  position: relative;
  width: 3.1rem;
  min-height: 8.4rem;
  padding: 0.72rem 0.55rem;
  border: 1px solid rgba(249, 244, 236, 0.18);
  background:
    linear-gradient(180deg, rgba(249, 244, 236, 0.16) 0%, rgba(249, 244, 236, 0.08) 100%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
  color: rgba(249, 244, 236, 0.9);
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    transform 260ms var(--transition-curve),
    background 220ms ease,
    border-color 220ms ease;
}

.reel-bookmark::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0.48rem;
  right: 0.48rem;
  height: 0.16rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(200, 159, 57, 0.9), rgba(188, 47, 130, 0.86));
  opacity: 0.9;
}

.reel-bookmark--left {
  border-radius: 0 1rem 1rem 0;
  transform: translateX(-56%);
}

.reel-bookmark--right {
  border-radius: 1rem 0 0 1rem;
  transform: translateX(56%);
}

.reel-bookmark:hover,
.reel-bookmark.is-active {
  background:
    linear-gradient(180deg, rgba(249, 244, 236, 0.24) 0%, rgba(249, 244, 236, 0.12) 100%);
  border-color: rgba(249, 244, 236, 0.28);
}

.reel-bookmark--left:hover,
.reel-bookmark--left.is-active {
  transform: translateX(-40%);
}

.reel-bookmark--right:hover,
.reel-bookmark--right.is-active {
  transform: translateX(40%);
}

.reel-bookmark__title,
.reel-bookmark__tag {
  display: block;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.reel-bookmark__title {
  margin-top: 0.55rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.reel-bookmark__tag {
  margin-top: 0.5rem;
  color: rgba(249, 244, 236, 0.54);
  font-family: var(--font-ui);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.reel-hitarea {
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(10vw, 8rem);
  z-index: 2;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.reel-hitarea--prev {
  left: 0;
}

.reel-hitarea--next {
  right: 0;
}

.reel-frame {
  position: relative;
  width: min(94vw, 1480px);
  height: min(74dvh, calc(94vw * 0.5625));
  max-height: 80dvh;
  padding: clamp(0.8rem, 1.2vw, 1rem);
  border: 1px solid rgba(249, 244, 236, 0.16);
  background: rgba(249, 244, 236, 0.1);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.reel-frame::before,
.reel-frame::after {
  content: "";
  position: absolute;
  inset: 0.58rem;
  border: 1px solid rgba(249, 244, 236, 0.1);
  pointer-events: none;
}

.reel-frame::after {
  inset: 1.18rem;
  border-color: rgba(249, 244, 236, 0.06);
}

.reel-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(249, 244, 236, 0.96);
}

.reel-reference-panel {
  position: absolute;
  top: 1.1rem;
  bottom: 1.1rem;
  z-index: 4;
  width: min(34vw, 28rem);
  max-width: calc(100% - 2.2rem);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(249, 244, 236, 0.16);
  background: linear-gradient(180deg, rgba(10, 15, 30, 0.88) 0%, rgba(10, 15, 30, 0.76) 100%);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition:
    transform 360ms var(--transition-curve),
    opacity 240ms ease;
}

.reel-reference-panel.is-left {
  left: 1.1rem;
  transform: translateX(calc(-100% - 1rem));
}

.reel-reference-panel.is-right {
  right: 1.1rem;
  transform: translateX(calc(100% + 1rem));
}

.reel-reference-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.reel-reference-panel__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid rgba(249, 244, 236, 0.08);
}

.reel-reference-panel__label {
  margin: 0;
  color: rgba(249, 244, 236, 0.58);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.reel-reference-panel__close {
  padding: 0.52rem 0.72rem;
  border: 1px solid rgba(249, 244, 236, 0.12);
  background: rgba(249, 244, 236, 0.08);
  color: rgba(249, 244, 236, 0.84);
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.reel-reference-panel__body {
  min-height: 0;
  overflow: auto;
  padding: 1rem;
}

.reel-reference-panel__content {
  display: grid;
  gap: 0.9rem;
}

.reel-reference-panel__eyebrow {
  margin: 0;
  color: rgba(200, 159, 57, 0.92);
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.reel-reference-panel__title {
  margin: 0;
  color: rgba(249, 244, 236, 0.96);
  font-size: 1.42rem;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.reel-reference-panel__summary {
  margin: 0;
  color: rgba(249, 244, 236, 0.76);
  font-size: 0.94rem;
  line-height: 1.68;
}

.reel-reference-panel__media {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(249, 244, 236, 0.08);
  background: rgba(0, 0, 0, 0.22);
}

.reel-reference-panel__media--video {
  aspect-ratio: 16 / 9;
}

.reel-reference-panel__media--image {
  aspect-ratio: 16 / 9;
}

.reel-reference-panel__media iframe,
.reel-reference-panel__media img {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.reel-reference-panel__media img {
  object-fit: contain;
  background: rgba(249, 244, 236, 0.96);
}

.reel-reference-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.68rem;
}

.reel-reference-panel__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.78rem 0.96rem;
  border: 1px solid rgba(249, 244, 236, 0.12);
  background: rgba(249, 244, 236, 0.08);
  color: rgba(249, 244, 236, 0.88);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.reel-reference-panel__link--primary {
  background: linear-gradient(135deg, rgba(200, 159, 57, 0.22) 0%, rgba(188, 47, 130, 0.2) 100%);
}

.reel-frame__loading {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  padding: 0.7rem 0.92rem;
  border: 1px solid rgba(16, 23, 53, 0.08);
  background: rgba(249, 244, 236, 0.76);
  color: rgba(16, 23, 53, 0.68);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 220ms ease;
}

.reel-frame.is-loading .reel-frame__loading {
  opacity: 1;
}

.reel-frame.is-outro .reel-player {
  filter: saturate(0.9) brightness(0.72);
}

.reel-meta {
  display: grid;
  gap: 0.8rem;
  align-self: end;
}

.reel-meta__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.reel-meta__eyebrow {
  margin: 0;
  color: rgba(249, 244, 236, 0.84);
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reel-meta__index {
  color: rgba(249, 244, 236, 0.56);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.reel-meta__caption {
  margin: 0;
  max-width: 42rem;
  color: rgba(249, 244, 236, 0.76);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.7;
}

.reel-progress {
  position: relative;
  width: min(36rem, 100%);
  height: 0.18rem;
  background: rgba(249, 244, 236, 0.18);
  overflow: hidden;
}

.reel-progress__fill {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--accent) 100%);
}

.reel-controls {
  display: flex;
  align-items: center;
  gap: 0.72rem;
}

.reel-control {
  padding: 0.88rem 1.16rem;
  border: 1px solid rgba(249, 244, 236, 0.14);
  background: rgba(249, 244, 236, 0.08);
  color: rgba(249, 244, 236, 0.9);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.reel-control:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(249, 244, 236, 0.14);
  border-color: rgba(249, 244, 236, 0.24);
}

.reel-control:disabled {
  cursor: default;
  opacity: 0.36;
}

.reel-control--primary {
  background: linear-gradient(135deg, rgba(200, 159, 57, 0.26) 0%, rgba(188, 47, 130, 0.22) 100%);
}

.reel-dots {
  display: flex;
  align-items: center;
  gap: 0.58rem;
}

.reel-dot {
  width: 0.72rem;
  height: 0.72rem;
  border: 0;
  border-radius: 999px;
  background: rgba(249, 244, 236, 0.22);
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.reel-dot.is-active {
  transform: scale(1.18);
  background: linear-gradient(135deg, var(--gold) 0%, var(--accent) 100%);
}

.reel-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: rgba(7, 10, 22, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

.reel-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.reel-overlay__panel {
  width: min(100%, 46rem);
  padding: clamp(1.6rem, 2.4vw, 2.3rem);
  border: 1px solid rgba(249, 244, 236, 0.18);
  background: linear-gradient(180deg, rgba(10, 15, 30, 0.84) 0%, rgba(10, 15, 30, 0.74) 100%);
  backdrop-filter: blur(24px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
  color: #f9f4ec;
}

.reel-overlay__eyebrow {
  margin: 0 0 0.9rem;
  color: rgba(249, 244, 236, 0.6);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.reel-overlay__kicker {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 7vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.92;
}

.reel-overlay__title {
  margin: 1rem 0 0;
  font-size: clamp(1.45rem, 2.8vw, 2.45rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.reel-overlay__desc {
  margin: 1rem 0 0;
  color: rgba(249, 244, 236, 0.8);
  font-size: 1rem;
  line-height: 1.72;
}

.reel-overlay__button {
  margin-top: 1.5rem;
  padding: 1rem 1.28rem;
  border: 1px solid rgba(249, 244, 236, 0.18);
  background: rgba(249, 244, 236, 0.12);
  color: rgba(249, 244, 236, 0.94);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

#deck {
  position: relative;
  z-index: 4;
  min-height: 100dvh;
}

.deck-section {
  position: relative;
  height: calc(var(--section-vh, 180) * 1vh);
}

.stage {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: hidden;
}

.stage::before,
.stage::after {
  content: "";
  position: absolute;
  inset: clamp(0.9rem, 2vw, 1.75rem);
  border: 1px solid rgba(16, 23, 53, 0.08);
  pointer-events: none;
}

.stage::after {
  inset: clamp(2rem, 4vw, 3rem);
  border-color: rgba(16, 23, 53, 0.06);
}

.shell {
  position: relative;
  width: min(92vw, 1360px);
  margin: 0 auto;
}

.editorial-frame {
  position: relative;
}

.editorial-frame::before,
.editorial-frame::after {
  content: "";
  position: absolute;
  inset: -0.8rem;
  border: 1px solid rgba(16, 23, 53, 0.18);
  pointer-events: none;
}

.editorial-frame::after {
  inset: -1.55rem;
  border-color: rgba(16, 23, 53, 0.08);
}

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f1221;
  color: #f9f4ec;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.58);
  transform: scale(1.04);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(8, 12, 28, 0.88) 12%, rgba(8, 12, 28, 0.42) 52%, rgba(8, 12, 28, 0.78) 100%),
    radial-gradient(circle at 76% 26%, rgba(188, 47, 130, 0.24), transparent 28%),
    radial-gradient(circle at 16% 22%, rgba(200, 159, 57, 0.18), transparent 18%);
}

.hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.12fr);
  gap: clamp(1.8rem, 4vw, 4.2rem);
  align-items: center;
}

.copy-panel {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid rgba(249, 244, 236, 0.16);
  background:
    linear-gradient(180deg, rgba(249, 244, 236, 0.16) 0%, rgba(249, 244, 236, 0.1) 100%);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.copy-panel::before {
  content: "";
  position: absolute;
  inset: 0.55rem;
  border: 1px solid rgba(249, 244, 236, 0.08);
  pointer-events: none;
}

.copy-panel__eyebrow,
.slide-meta__eyebrow,
.transition-meta__eyebrow,
.outro-points__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  margin: 0 0 1rem;
  color: rgba(249, 244, 236, 0.66);
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.copy-panel__eyebrow::before,
.slide-meta__eyebrow::before,
.transition-meta__eyebrow::before,
.outro-points__eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.copy-panel__kicker {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.copy-panel__title {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.copy-panel__desc {
  margin: 1rem 0 0;
  max-width: 40rem;
  color: rgba(249, 244, 236, 0.82);
  font-size: clamp(1rem, 1.55vw, 1.12rem);
  line-height: 1.72;
}

.copy-panel__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.copy-panel__pill {
  padding: 0.72rem 0.94rem;
  border: 1px solid rgba(249, 244, 236, 0.14);
  background: rgba(249, 244, 236, 0.08);
  color: rgba(249, 244, 236, 0.8);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
}

.copy-panel__actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.45rem;
}

.copy-panel__action {
  min-height: 3rem;
  padding: 0.96rem 1.18rem;
  border: 1px solid rgba(249, 244, 236, 0.16);
  background: rgba(249, 244, 236, 0.12);
  color: rgba(249, 244, 236, 0.94);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.copy-panel__action:hover {
  transform: translateY(-1px);
  background: rgba(249, 244, 236, 0.18);
  border-color: rgba(249, 244, 236, 0.24);
}

.hero__still {
  position: relative;
  padding: clamp(0.8rem, 1.5vw, 1rem);
  border: 1px solid rgba(249, 244, 236, 0.16);
  background:
    linear-gradient(180deg, rgba(249, 244, 236, 0.08) 0%, rgba(249, 244, 236, 0.02) 100%);
  box-shadow: 0 30px 80px rgba(8, 12, 28, 0.35);
  transform: translateY(calc(var(--section-progress, 0) * -1.25rem));
  transition: transform 260ms linear;
}

.hero__still img {
  width: 100%;
  aspect-ratio: 1362 / 686;
  object-fit: cover;
}

.hero__footer {
  position: absolute;
  left: clamp(1.4rem, 2vw, 2.2rem);
  right: clamp(1.4rem, 2vw, 2.2rem);
  bottom: clamp(1.4rem, 2vw, 2rem);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(249, 244, 236, 0.68);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.chapter-stage {
  background:
    radial-gradient(circle at 82% 18%, rgba(188, 47, 130, 0.08), transparent 22%),
    radial-gradient(circle at 18% 16%, rgba(200, 159, 57, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(249, 244, 236, 0.94), rgba(243, 237, 227, 0.98));
}

.chapter-shell {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3.8rem, 6vw, 6.5rem) clamp(1rem, 3vw, 2.4rem);
}

.chapter-frame {
  position: relative;
  width: min(94vw, 1500px);
  height: min(78dvh, calc(94vw * 0.5625));
  max-height: 82dvh;
  padding: clamp(0.8rem, 1.2vw, 1rem);
  border: 1px solid var(--line);
  background: rgba(249, 244, 236, 0.72);
  box-shadow: var(--shadow-card);
}

.chapter-frame::before,
.chapter-frame::after {
  content: "";
  position: absolute;
  inset: 0.58rem;
  border: 1px solid rgba(16, 23, 53, 0.11);
  pointer-events: none;
}

.chapter-frame::after {
  inset: 1.18rem;
  border-color: rgba(16, 23, 53, 0.06);
}

.chapter-media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--paper-strong);
}

.chapter-still,
.chapter-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--paper-strong);
  will-change: transform, filter, opacity;
}

.chapter-still--base,
.chapter-still--single {
  z-index: 0;
  transform: scale(calc(1 + (var(--still-progress, var(--section-progress, 0)) * 0.03)));
  filter: brightness(calc(1 - (var(--still-progress, var(--section-progress, 0)) * 0.035)));
  transform-origin: center center;
  transition:
    transform 260ms linear,
    filter 260ms linear,
    opacity 380ms var(--transition-curve);
}

.chapter-video {
  z-index: 1;
  opacity: 0;
  transition: opacity 420ms var(--transition-curve);
}

.chapter-still--next {
  z-index: 2;
  opacity: 0;
  transition: opacity 460ms var(--transition-curve);
}

.chapter-frame.is-playing .chapter-video {
  opacity: 1;
}

.chapter-frame.is-ended .chapter-video {
  opacity: 0;
}

.chapter-frame.is-ended .chapter-still--next {
  opacity: 1;
}

.slide-meta,
.transition-meta {
  position: absolute;
  left: max(1rem, env(safe-area-inset-left, 0px) + 1rem);
  right: max(1rem, env(safe-area-inset-right, 0px) + 1rem);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: none;
}

.slide-meta {
  top: clamp(4rem, 5.4vw, 5.4rem);
}

.transition-meta {
  top: clamp(4rem, 5vw, 4.8rem);
}

.slide-meta__eyebrow,
.transition-meta__eyebrow {
  margin: 0;
  color: rgba(16, 23, 53, 0.58);
}

.slide-meta__index,
.transition-meta__index {
  display: flex;
  align-items: center;
  color: rgba(16, 23, 53, 0.54);
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.transition-meta__caption {
  position: absolute;
  left: clamp(1rem, 3vw, 2.3rem);
  bottom: clamp(1rem, 3vw, 2.2rem);
  z-index: 2;
  max-width: 28rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(16, 23, 53, 0.08);
  background: rgba(249, 244, 236, 0.62);
  backdrop-filter: blur(16px);
  color: rgba(16, 23, 53, 0.72);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.55;
}

.outro-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.55rem;
}

.outro-point {
  position: relative;
  padding: 1.1rem 1rem 1rem;
  border: 1px solid rgba(249, 244, 236, 0.14);
  background: rgba(249, 244, 236, 0.07);
}

.outro-point::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: 0.72rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(249, 244, 236, 0.26);
}

.outro-point strong {
  display: block;
  margin: 0 0 0.48rem;
  padding-left: 1rem;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.outro-point span {
  display: block;
  color: rgba(249, 244, 236, 0.76);
  font-size: 0.9rem;
  line-height: 1.6;
}

.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity 700ms var(--transition-curve),
    transform 900ms var(--transition-curve),
    filter 900ms var(--transition-curve);
  filter: blur(8px);
}

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

@media (max-width: 960px) {
  .site-chrome {
    padding-top: max(0.9rem, env(safe-area-inset-top, 0px) + 0.9rem);
  }

  .site-chrome__meta {
    display: none;
  }

  .hero__layout {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    grid-template-columns: none;
    width: min(92vw, 880px);
    min-height: 100%;
    padding-top: 5.5rem;
    padding-bottom: 7rem;
  }

  .hero__still {
    width: min(76vw, 420px);
    margin-left: auto;
    margin-bottom: 1rem;
  }

  .copy-panel__title {
    max-width: none;
  }

  .outro-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .deck-section {
    height: calc(var(--section-vh, 180) * 1svh);
  }

  .brand-badge {
    right: 0.85rem;
    bottom: 0.85rem;
  }

  .copy-panel {
    padding: 1.2rem;
    width: 100%;
    background: linear-gradient(180deg, rgba(10, 15, 30, 0.78) 0%, rgba(10, 15, 30, 0.68) 100%);
    border-color: rgba(249, 244, 236, 0.16);
  }

  .copy-panel::before {
    border-color: rgba(249, 244, 236, 0.08);
  }

  .copy-panel__kicker {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .copy-panel__title {
    font-size: clamp(1.3rem, 5.6vw, 1.8rem);
  }

  .copy-panel__desc,
  .copy-panel__pill {
    color: rgba(249, 244, 236, 0.88);
  }

  .hero__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__still {
    display: none;
  }

  .chapter-shell {
    padding-top: 4.8rem;
    padding-bottom: 4.8rem;
  }

  .chapter-frame {
    width: calc(100vw - 1rem);
  }

  .chapter-frame {
    height: min(72dvh, calc((100vw - 1rem) * 0.8));
  }

  .slide-meta {
    top: 3.45rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero__still,
  .chapter-still--base,
  .chapter-still--single {
    transform: none !important;
    filter: none !important;
  }
}

@media (max-width: 1024px) {
  body {
    background:
      radial-gradient(circle at 20% 18%, rgba(188, 47, 130, 0.18), transparent 28%),
      radial-gradient(circle at 82% 16%, rgba(200, 159, 57, 0.14), transparent 22%),
      linear-gradient(180deg, #0d1225 0%, #171427 48%, #101735 100%);
  }

  .page-noise {
    opacity: 0.12;
  }

  .desktop-gate {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.4rem;
  }

  .desktop-gate__panel {
    position: relative;
  }

  .desktop-gate__panel::before {
    content: "";
    position: absolute;
    inset: 0.6rem;
    border: 1px solid rgba(249, 244, 236, 0.08);
    pointer-events: none;
  }

  #deck,
  .brand-badge,
  .site-chrome {
    display: none;
  }
}
