:root {
  --bg: #f4efe6;
  --panel: rgba(255, 251, 245, 0.8);
  --line: rgba(35, 34, 31, 0.09);
  --ink: #1c1d1e;
  --muted: #676a70;
  --accent: #d96f50;
  --accent-2: #efb56f;
  --takeover: #0a0d16;
  --shadow: 0 24px 64px rgba(27, 24, 18, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  overflow: hidden;
  color: var(--ink);
  font-family:
    "Avenir Next",
    "Segoe UI",
    "Helvetica Neue",
    sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(239, 181, 111, 0.28), transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(217, 111, 80, 0.18), transparent 28%),
    linear-gradient(180deg, #f8f3ea 0%, #f1ebe1 100%);
}

.site-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  background: transparent;
}

.splash-panel {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: center;
  gap: 48px;
  min-height: 100vh;
  padding: 48px;
  transition:
    transform 1000ms cubic-bezier(0.2, 0.8, 0.15, 1),
    opacity 900ms ease,
    filter 1000ms ease;
}

.ambient {
  position: absolute;
  inset: auto;
  border-radius: 999px;
  filter: blur(32px);
  opacity: 0.7;
  pointer-events: none;
}

.ambient-a {
  width: 260px;
  height: 260px;
  top: 10%;
  right: 8%;
  background: rgba(239, 181, 111, 0.34);
}

.ambient-b {
  width: 320px;
  height: 320px;
  bottom: 6%;
  left: -4%;
  background: rgba(217, 111, 80, 0.22);
}

.splash-copy,
.preview-card {
  position: relative;
}

.splash-copy {
  max-width: 640px;
}

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

h1 {
  margin: 0;
  font-size: clamp(3.25rem, 10vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  font-family:
    "Iowan Old Style",
    "Palatino Linotype",
    "Book Antiqua",
    serif;
}

.tagline {
  margin: 18px 0 0;
  max-width: 30rem;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

.status-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 8px rgba(217, 111, 80, 0.14);
}

.actions {
  margin-top: 28px;
}

.enter-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 18px 28px;
  background: linear-gradient(135deg, #1d2229, #363f4f);
  color: white;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(34, 39, 46, 0.24);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.enter-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 46px rgba(34, 39, 46, 0.28);
}

.enter-button:active {
  transform: translateY(0);
}

.microcopy {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.preview-card {
  justify-self: end;
  width: min(440px, 100%);
  padding: 18px;
  border-radius: 32px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.preview-window {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #f9f5ee;
}

.preview-toolbar {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.preview-toolbar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(28, 29, 30, 0.14);
}

.preview-body {
  padding: 26px 20px 30px;
}

.preview-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.preview-line {
  height: 12px;
  margin-top: 16px;
  border-radius: 999px;
  background: rgba(28, 29, 30, 0.08);
}

.preview-line.short {
  width: 48%;
}

.preview-line.medium {
  width: 72%;
}

.takeover-flash {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at center, rgba(255, 118, 85, 0.5), transparent 26%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.26), transparent 48%);
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 360ms ease,
    transform 900ms cubic-bezier(0.2, 0.78, 0.2, 1);
  pointer-events: none;
}

.video-stage {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: var(--takeover);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.08);
  transition:
    opacity 700ms ease,
    transform 1100ms cubic-bezier(0.18, 0.8, 0.18, 1);
}

.video-chrome {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 3;
  padding: 16px 18px;
}

.video-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  backdrop-filter: blur(6px);
}

.video-frame,
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 4;
}

.video-fallback.hidden {
  display: none;
}

.fallback-card {
  width: min(560px, 100%);
  border-radius: 30px;
  padding: 28px;
  background: rgba(14, 16, 23, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.fallback-card h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-family:
    "Iowan Old Style",
    "Palatino Linotype",
    "Book Antiqua",
    serif;
}

.fallback-card p {
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.fallback-card code {
  font-family:
    ui-monospace,
    "SFMono-Regular",
    Menlo,
    Consolas,
    monospace;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.fallback-small {
  font-size: 0.95rem;
}

.fallback-link {
  display: inline-flex;
  margin-top: 8px;
}

body.entered .splash-panel {
  transform: scale(1.15);
  opacity: 0;
  filter: blur(24px) saturate(1.4);
}

body.entered .takeover-flash {
  opacity: 1;
  transform: scale(1.18);
}

body.entered .video-stage {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

@media (max-width: 860px) {
  .splash-panel {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 22px 32px;
  }

  .preview-card {
    justify-self: stretch;
  }

  .tagline {
    font-size: 1rem;
  }

  .enter-button {
    width: 100%;
  }
}
