:root {
  --bg: #0f111b;
  --bg-layer: #07080e;
  --card: #181c2a;
  --text: #f7f8ff;
  --muted: #b9bfd2;
  --accent: #ff4f8e;
  --glow: #6fd2ff;
  --line: rgba(255, 255, 255, 0.2);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 17px;
  --shadow-soft: 0 24px 56px rgba(7, 8, 16, 0.44);
  --shadow-glow: 0 18px 42px color-mix(in srgb, var(--accent) 32%, transparent);
  --container: min(1120px, calc(100vw - 1.2rem));
  --section-gap: clamp(1rem, 2.8vw, 1.5rem);
  --focus: 0 0 0 3px color-mix(in srgb, var(--accent) 34%, transparent);
  --font-serif: "Playfair Display", "Cormorant Garamond", serif;
  --font-ui: "Manrope", "Inter", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  --scroll-progress: 0;
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--text);
  background:
    radial-gradient(108% 84% at -8% -14%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 60%),
    radial-gradient(80% 70% at 108% -12%, color-mix(in srgb, var(--glow) 30%, transparent), transparent 56%),
    linear-gradient(168deg, color-mix(in srgb, var(--bg) 88%, #03040a 12%), var(--bg-layer));
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.46;
  z-index: -3;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 46% at 18% 18%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 72%),
    radial-gradient(54% 42% at 82% 76%, color-mix(in srgb, var(--glow) 14%, transparent), transparent 74%);
  opacity: 0.78;
  z-index: -2;
}

body.opening-locked {
  overflow: hidden;
  height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-serif);
  line-height: 1.05;
  letter-spacing: 0.012em;
}

p {
  margin: 0;
  color: var(--muted);
}

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

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

button {
  cursor: pointer;
}

.inv-parallax,
[data-reveal] {
  --scroll-shift: 0px;
  --scroll-tilt: 0deg;
  --hover-lift: 0px;
  --hover-tilt: 0deg;
  --scroll-glow: 1;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
}

.inv-parallax {
  transform:
    perspective(940px)
    translate3d(0, calc(var(--scroll-shift) + var(--hover-lift)), 0)
    rotateX(calc(var(--scroll-tilt) + var(--hover-tilt)));
  transition: transform 520ms cubic-bezier(0.2, 0.78, 0.22, 1), box-shadow 360ms ease;
}

[data-reveal] {
  --reveal-offset: 42px;
  --reveal-scale: 0.985;
  --reveal-delay: 0ms;
  opacity: 0;
  filter: blur(10px) saturate(0.88);
  transform:
    perspective(940px)
    translate3d(0, calc(var(--reveal-offset) + var(--scroll-shift) + var(--hover-lift)), 0)
    rotateX(calc(var(--scroll-tilt) + var(--hover-tilt)))
    scale(var(--reveal-scale));
  transition:
    opacity 760ms cubic-bezier(0.18, 0.74, 0.24, 1) var(--reveal-delay),
    filter 760ms ease var(--reveal-delay),
    transform 860ms cubic-bezier(0.2, 0.78, 0.22, 1) var(--reveal-delay),
    box-shadow 360ms ease;
}

[data-reveal].is-visible {
  --reveal-offset: 0px;
  --reveal-scale: 1;
  opacity: 1;
  filter: none;
}

@media (hover: hover) and (pointer: fine) {
  .inv-parallax:hover,
  [data-reveal]:hover {
    --hover-lift: -4px;
  }
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal],
  .inv-parallax {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}
