:root {
  --bg: #05070d;
  --bg-soft: #0b1120;
  --panel: rgba(10, 15, 27, 0.78);
  --panel-strong: rgba(10, 15, 27, 0.92);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f5f7fb;
  --muted: rgba(245, 247, 251, 0.72);
  --soft: rgba(245, 247, 251, 0.52);
  --accent: #ffd76a;
  --accent-2: #ff8743;
  --accent-3: #69d2ff;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
  --story-progress: 0;
  --media-scale: 0.92;
  --media-y: 0px;
  --media-rotate: 0deg;
  --header-h: 76px;
  --section-gap: clamp(3.5rem, 6vw, 5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

#audio {
    display: none;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(105, 210, 255, 0.12), transparent 25%),
    radial-gradient(circle at top right, rgba(255, 135, 67, 0.16), transparent 28%),
    linear-gradient(180deg, #04060b 0%, #060912 20%, #08111f 50%, #05070d 100%);
  min-height: 100vh;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent 18%, transparent 80%, rgba(0, 0, 0, 0.25)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.06), transparent 42%);
  pointer-events: none;
  z-index: -2;
}

body.deck-mode {
  overscroll-behavior: none;
}

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

a {
  color: inherit;
}

button {
  color: inherit;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 4px 4px, 4px 4px;
  mix-blend-mode: soft-light;
}

.glow {
  position: fixed;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
  z-index: -1;
  animation: ambientDrift 18s ease-in-out infinite alternate;
}

.glow-one {
  top: -10rem;
  left: -12rem;
  background: rgba(255, 135, 67, 0.32);
}

.glow-two {
  right: -10rem;
  bottom: 8rem;
  background: rgba(105, 210, 255, 0.22);
  animation-duration: 22s;
}

@keyframes ambientDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2rem, -1rem, 0) scale(1.08);
  }
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  min-height: var(--header-h);
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(3, 5, 10, 0.92), rgba(3, 5, 10, 0.36));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 20px rgba(255, 215, 106, 0.5);
}

.brand-text {
  text-transform: uppercase;
  font-size: 0.88rem;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 180ms ease, transform 500ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
}

main {
  position: relative;
}

.section-shell,
.hero-intro,
.site-footer {
  width: min(1200px, calc(100vw - 2rem));
  margin: 0 auto;
}

.hero-intro {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 2.25rem) 0 4rem;
}

.hero-shell {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}

.eyebrow,
.section-label,
.overlay-kicker,
.contact-small,
.slot-label,
.panel-kicker,
.mini-kicker,
.dock-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-intro h1 {
  margin: 1rem 0 0;
  font-size: clamp(3.6rem, 10vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  max-width: 10ch;
}

.lead {
  max-width: 44rem;
  margin: 1.5rem 0 0;
  font-size: clamp(1.08rem, 2vw, 1.38rem);
  line-height: 1.65;
  color: var(--muted);
}

.intro-meta,
.hero-badge-row,
.fit-tags,
.vibe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.intro-meta {
  margin-top: 1.75rem;
}

.intro-meta span,
.hero-badge-row span,
.fit-tags span,
.vibe-tags span {
  padding: 0.82rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  backdrop-filter: blur(12px);
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button,
.overlay-pill,
.dock-arrow {
  font: inherit;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 250ms ease, border-color 250ms ease, background 250ms ease, opacity 250ms ease;
  cursor: pointer;
}

.button:hover,
.button:focus-visible,
.dock-arrow:hover,
.dock-arrow:focus-visible,
.overlay-pill:hover,
.overlay-pill:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #111;
  border: 0;
  box-shadow: 0 18px 35px rgba(255, 135, 67, 0.25);
}

.button-secondary,
.dock-arrow {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.light-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.light-card::before {
  content: "";
  position: absolute;
  inset: -18% auto auto -10%;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 106, 0.2), rgba(255, 215, 106, 0.08) 32%, transparent 72%);
  pointer-events: none;
  opacity: 0.9;
  mix-blend-mode: screen;
  z-index: 0;
}

.light-card::after {
  content: "";
  position: absolute;
  inset: -25% auto -25% -40%;
  width: 42%;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.12) 46%, rgba(255, 214, 106, 0.18) 52%, transparent 58%);
  transform: translate3d(-120%, 0, 0) rotate(7deg);
  filter: blur(6px);
  pointer-events: none;
  opacity: 0.8;
  animation: cardSweep 9s ease-in-out infinite;
  z-index: 0;
}

.story-overlay-card::before,
.story-overlay-card::after {
  animation-duration: 6.8s;
}

.card:nth-child(2)::after,
.feature:nth-child(2)::after,
.stat:nth-child(2)::after,
.vibe-card:nth-child(2)::after {
  animation-delay: 0.8s;
}

.card:nth-child(3)::after,
.feature:nth-child(3)::after,
.stat:nth-child(3)::after {
  animation-delay: 1.6s;
}

.card:nth-child(4)::after,
.feature:nth-child(4)::after,
.stat:nth-child(4)::after {
  animation-delay: 2.4s;
}

@keyframes cardSweep {
  0%, 14% {
    transform: translate3d(-135%, 0, 0) rotate(7deg);
    opacity: 0;
  }
  22% {
    opacity: 0.95;
  }
  44% {
    transform: translate3d(360%, 0, 0) rotate(7deg);
    opacity: 0;
  }
  100% {
    transform: translate3d(360%, 0, 0) rotate(7deg);
    opacity: 0;
  }
}

.hero-side-panel,
.story-overlay-card,
.panel-surface,
.card,
.feature,
.stat,
.quote-panel,
.vibe-card,
.contact-box {
  position: relative;
  z-index: 1;
  border-radius: 1.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(10, 15, 27, 0.72), rgba(10, 15, 27, 0.92));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-side-panel {
  padding: clamp(1.5rem, 3vw, 2rem);
}

.hero-side-panel h2,
.story-overlay-card h2,
.section-heading-row h2,
.fit-copy h2,
.contact-panel h2,
.quote-text,
.vibe-card h3,
.card h3,
.feature h3 {
  margin: 0;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-side-panel h2 {
  margin-top: 0.85rem;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.hero-bullets {
  margin: 1.25rem 0 0;
  padding: 0 0 0 1.1rem;
  color: var(--muted);
  line-height: 1.75;
}

.hero-badge-row {
  margin-top: 1.4rem;
}

.scroll-story {
  position: relative;
  margin-top: clamp(3.25rem, 6vw, 5.75rem);
}

.story-sticky {
  position: sticky;
  top: 0;
  min-height: 100svh;
  width: min(1280px, calc(100vw - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.5rem);
  padding: calc(var(--header-h) + 0.5rem) 0 3rem;
}

.story-media-shell {
  perspective: 1400px;
}

.story-media {
  min-height: clamp(24rem, 68vh, 44rem);
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at top, rgba(255, 215, 106, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(17, 25, 42, 0.7), rgba(4, 9, 18, 0.92)),
    url("assets/freddi-poster.svg") center/cover no-repeat;
  box-shadow: var(--shadow);
  transform: translate3d(0, var(--media-y), 0) scale(var(--media-scale)) rotateX(3deg) rotateY(calc(var(--story-progress) * -5deg)) rotateZ(var(--media-rotate));
  transition: transform 500ms linear, border-color 500ms linear, box-shadow 500ms linear;
}

.story-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 4, 8, 0.05), rgba(2, 4, 8, 0.55)),
    radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.2), transparent 28%);
  z-index: 1;
}

.story-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(180deg, rgba(5, 7, 13, 0), rgba(5, 7, 13, 0.9));
  z-index: 3;
}

.story-poster-layer,
.story-grid,
.story-city,
.story-beam,
.story-video,
.video-slot {
  position: absolute;
  inset: 0;
}

.story-poster-layer {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 214, 106, 0.2), transparent 24%),
    linear-gradient(180deg, rgba(8, 11, 19, 0.15), rgba(8, 11, 19, 0.55));
  z-index: 0;
}

.story-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.8));
  opacity: 0.3;
  z-index: 0;
}

.story-city {
  z-index: 2;
  inset: auto 0 0 0;
  height: 50%;
  display: flex;
  align-items: flex-end;
  gap: 2.2%;
  padding: 0 4% 4%;
}

.story-city span {
  display: block;
  flex: 1 1 auto;
  min-width: 2.8rem;
  border-radius: 0.7rem 0.7rem 0 0;
  background: linear-gradient(180deg, rgba(255, 244, 214, 0.22), rgba(255, 141, 61, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 30px rgba(255, 135, 67, 0.12);
  position: relative;
  overflow: hidden;
}

.story-city span::before {
  content: "";
  position: absolute;
  inset: 8% 18%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.28) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 2px, transparent 2px);
  background-size: 16px 16px;
  opacity: 0.45;
}

.story-city span:nth-child(1) { height: 42%; }
.story-city span:nth-child(2) { height: 58%; }
.story-city span:nth-child(3) { height: 74%; }
.story-city span:nth-child(4) { height: 50%; }
.story-city span:nth-child(5) { height: 81%; }
.story-city span:nth-child(6) { height: 64%; }

.story-beam {
  z-index: 2;
  mix-blend-mode: screen;
  opacity: calc(0.18 + (var(--story-progress) * 0.45));
}

.beam-left {
  background: linear-gradient(115deg, transparent 46%, rgba(255, 214, 106, 0.36) 50%, transparent 56%);
  transform: translateX(calc(var(--story-progress) * -5%));
}

.beam-right {
  background: linear-gradient(65deg, transparent 48%, rgba(105, 210, 255, 0.22) 52%, transparent 58%);
  transform: translateX(calc(var(--story-progress) * 5%));
}

.story-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0;
  transition: opacity 300ms ease;
}

.story-media[data-has-video="true"] .story-video {
  opacity: 1;
}

.video-slot {
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 2rem;
  pointer-events: none;
}

.video-slot strong {
  max-width: 14ch;
  font-size: clamp(1.4rem, 3vw, 2.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.video-slot p,
.story-overlay-card p,
.section-heading-row p,
.card p,
.feature p,
.stat-label,
.vibe-card p,
.contact-panel p,
.fit-copy p {
  color: var(--muted);
  line-height: 1.68;
}

.video-slot p {
  max-width: 28rem;
  margin: 0;
}

.story-media[data-has-video="true"] .video-slot {
  opacity: 0;
}

.story-overlay-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.story-overlay-card {
  width: min(100%, 34rem);
  padding: 2rem;
  transition: transform 460ms ease, opacity 460ms ease, filter 460ms ease;
}

.story-overlay-card h2 {
  margin-top: 0.9rem;
  font-size: clamp(2.3rem, 5vw, 4.3rem);
}

.story-overlay-card p {
  margin: 1.1rem 0 0;
  font-size: 1.05rem;
}

.story-overlay-card.is-swap-forward {
  animation: overlaySwapForward 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.story-overlay-card.is-swap-backward {
  animation: overlaySwapBackward 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes overlaySwapForward {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 1; filter: blur(0); }
  38% { transform: translate3d(-22px, 18px, 0) rotate(-1.25deg); opacity: 0.1; filter: blur(10px); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 1; filter: blur(0); }
}

@keyframes overlaySwapBackward {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 1; filter: blur(0); }
  38% { transform: translate3d(22px, 18px, 0) rotate(1.25deg); opacity: 0.1; filter: blur(10px); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 1; filter: blur(0); }
}

.overlay-pills,
.dock-dots {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.overlay-pills {
  margin-top: 1.45rem;
}

.overlay-pill,
.dock-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  padding: 0;
  cursor: pointer;
  transition: transform 250ms ease, background 250ms ease, border-color 250ms ease;
}

.overlay-pill.is-active,
.dock-dot.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  transform: scale(1.15);
}

.story-jump {
  backdrop-filter: blur(14px);
}

.scroll-indicator {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
}

.scroll-indicator span {
  display: inline-block;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
}

.scroll-indicator span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.55rem;
  width: 0.28rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--accent);
  transform: translateX(-50%);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% {
    transform: translate(-50%, 0);
    opacity: 0.4;
  }
  50% {
    transform: translate(-50%, 0.45rem);
    opacity: 1;
  }
}

.story-track {
  position: relative;
}

.story-step {
  min-height: 100svh;
}

.deck-section {
  position: relative;
  min-height: 100svh;
}

.deck-shell {
  position: relative;
  min-height: 100svh;
}

.deck-panel {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 2.5rem, 0) scale(0.985);
  filter: blur(10px);
  transition: opacity 420ms ease, transform 620ms cubic-bezier(0.22, 1, 0.36, 1), filter 420ms ease;
  padding: calc(var(--header-h) + 0.5rem) 0 8.5rem;
}

.deck-panel.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  z-index: 2;
}

.deck-panel.is-before {
  transform: translate3d(-4rem, 0, 0) scale(0.98);
}

.deck-panel.is-after {
  transform: translate3d(4rem, 0, 0) scale(0.98);
}

.panel-surface {
  width: min(1200px, calc(100vw - 2rem));
  max-height: calc(100svh - var(--header-h) - 9.5rem);
  padding: clamp(1.5rem, 2.3vw, 2rem);
  overflow: auto;
  scrollbar-width: none;
}

.panel-surface::-webkit-scrollbar {
  display: none;
}

.panel-surface-wide {
  width: min(1180px, calc(100vw - 2rem));
}

*.section-gap {
*  margin-top: var(--section-gap);
*}

.section-gap:first-child {
  margin-top: 0;
}

.section-heading-row,
.fit-layout,
.contact-panel,
.vibe-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(1.25rem, 2vw, 2rem);
  align-items: start;
}

.section-heading-row h2,
.fit-copy h2,
.contact-panel h2 {
  font-size: clamp(2rem, 4.4vw, 4.2rem);
}

.section-heading-row p,
.fit-copy p,
.contact-panel p,
.card p,
.feature p,
.vibe-card p,
.contact-box p,
.stat-label {
  margin: 0;
  font-size: 1rem;
}

.cards,
.feature-grid,
.stat-row,
.fit-points {
  display: grid;
  gap: 1rem;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-row {
  grid-template-columns: repeat(1, minmax(0, 1fr));
grid-column: 3;
  grid-row-start: 1;
  grid-row-end: 3;
  height: 100%;
}

.card,
.feature,
.stat,
.quote-panel,
.vibe-card,
.contact-box {
  padding: 1.35rem;
}

.card-number,
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.card h3,
.feature h3,
.vibe-card h3 {
  margin-top: 1rem;
  font-size: 1.4rem;
}

.quote-text {
  max-width: 22ch;
  font-size: clamp(1.7rem, 3.6vw, 3.4rem);
}

.vibe-stack,
.fit-side {
  display: grid;
  gap: 1rem;
}

.vibe-tags,
.fit-tags {
  align-content: flex-start;
}

.feature-icon {
  font-size: 1.35rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.stat-value {
  font-size: clamp(1.85rem, 3.6vw, 2.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.contact-panel-deck {
  align-items: stretch;
}

.contact-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-box a {
  display: inline-block;
  margin: 0.5rem 0 1rem;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.deck-dock {
  position: fixed;
  left: 50%;
  bottom: 1.15rem;
  transform: translateX(-50%) translateY(130%);
  width: min(880px, calc(100vw - 1.5rem));
  padding: 0.55rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(10, 15, 27, 0.78), rgba(10, 15, 27, 0.92));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.deck-mode .deck-dock {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dock-arrow {
  min-width: 7.25rem;
  padding: 1rem 1.2rem;
  border-radius: 1.15rem;
  font-weight: 700;
  cursor: pointer;
}

.dock-arrow:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.dock-center {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
}

.dock-title {
  font-size: 1.42rem;
  line-height: 1;
}

.site-footer {
  padding: 0 0 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--soft);
}

.site-footer p,
.site-footer a {
  margin: 0;
  text-decoration: none;
}

.reveal {
  opacity: 0;
  filter: blur(8px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1), filter 700ms ease;
}

.reveal[data-reveal="up"] {
  transform: translate3d(0, 28px, 0);
}

.reveal[data-reveal="left"] {
  transform: translate3d(-36px, 0, 0);
}

.reveal[data-reveal="right"] {
  transform: translate3d(36px, 0, 0);
}

.reveal[data-reveal="zoom"] {
  transform: scale(0.94);
}

.reveal[data-reveal="hero"] {
  transform: translate3d(0, 32px, 0) scale(0.98);
}

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

.panel-anim {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  filter: blur(8px);
  transition: opacity 520ms ease, transform 620ms cubic-bezier(0.22, 1, 0.36, 1), filter 520ms ease;
  transition-delay: calc(var(--step, 0) * 70ms);
}

.deck-panel.is-active .panel-anim {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

@media (max-width: 1080px) {
  .hero-shell,
  .story-sticky,
  .section-heading-row,
  .vibe-layout,
  .fit-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .story-sticky {
    padding-top: calc(var(--header-h) + 0.35rem);
  }

  .story-overlay-wrap {
    align-items: stretch;
  }

  .story-overlay-card {
    width: 100%;
  }

  .three-up,
  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-nav {
    display: none;
  }

  .hero-intro,
  .section-shell,
  .site-footer,
  .story-sticky,
  .panel-surface {
    width: min(calc(100vw - 1rem), 100%);
  }

  .hero-intro {
    padding-bottom: 3rem;
  }

  .story-media {
    min-height: 22rem;
    border-radius: 1.5rem;
  }

  .panel-surface,
  .hero-side-panel,
  .story-overlay-card,
  .card,
  .feature,
  .stat,
  .quote-panel,
  .vibe-card,
  .contact-box,
  .deck-dock {
    border-radius: 1.2rem;
  }

  .feature-grid,
  .three-up,
  .stat-row {
    grid-template-columns: 1fr;
  }

  .deck-panel {
    padding-bottom: 9rem;
  }

  .deck-dock {
    width: min(calc(100vw - 1rem), 100%);
    grid-template-columns: auto 1fr auto;
  }

  .dock-arrow {
    min-width: 6.2rem;
    padding-inline: 0.95rem;
  }

  .dock-title {
    font-size: 1.15rem;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 0.9rem 0.85rem;
  }

  .hero-intro {
    padding-top: calc(var(--header-h) + 1.25rem);
  }

  .story-sticky {
    padding-bottom: 2rem;
  }

  .video-slot {
    padding: 1.2rem;
  }

  .video-slot strong {
    font-size: 1.85rem;
  }

  .story-overlay-card,
  .panel-surface {
    padding: 1.2rem;
  }

  .deck-dock {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0.75rem;
  }

  .dock-arrow {
    width: 100%;
  }

  .dock-center {
    order: -1;
  }

  .scroll-indicator {
    left: 0.75rem;
    bottom: 0.75rem;
  }
}

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

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