:root {
  --bg: #000000;
  --bg-soft: #050505;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-strong: rgba(255, 255, 255, 0.14);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --gold-1: #ffd700;
  --gold-2: #ffa500;
  --gold-3: #ffffff;
  --blue-1: #00d4ff;
  --blue-2: #7de9ff;
  --nav-height: 74px;
  --hero-progress: 0;
  --hero-scale: 1;
  --hero-opacity: 1;
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button,
a.button {
  font-family: 'Electrolize', sans-serif;
  cursor: pointer;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  background: var(--bg);
}

.ambient-grid,
.ambient-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.ambient-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.45), transparent 80%);
  opacity: 0.28;
}

.ambient-vignette {
  background:
    radial-gradient(circle at center, transparent 38%, rgba(0, 0, 0, 0.62) 72%, rgba(0, 0, 0, 0.98) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.45));
}

.gradient-text {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2), var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sticky-nav,
.static-nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 24px;
  z-index: 30;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.7));
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
}

.sticky-nav {
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.85s var(--ease-premium), opacity 0.85s var(--ease-premium);
}

.sticky-nav.visible {
  transform: translateY(0);
  opacity: 1;
}

.static-nav {
  position: sticky;
  top: 0;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.nav-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  transition: transform 0.5s var(--ease-premium);
}

.nav-brand:hover .nav-logo {
  transform: translateY(-2px) scale(1.03);
}

.nav-brand-text,
.nav-links a,
.section-kicker,
.site-footer,
.legal-section-card h2,
.button,
.feature-card h3,
.cta-panel h2,
.legal-hero h1,
.section-heading h2,
.portfolio-placeholder-label,
.portfolio-index,
.portfolio-status {
  font-family: 'Electrolize', sans-serif;
  letter-spacing: 0.03em;
}

.nav-brand-text {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.74);
  text-transform: uppercase;
  position: relative;
  transition: color 0.35s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-1), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s ease;
}

.nav-links a:hover { color: white; }
.nav-links a:hover::after { transform: scaleX(1); }

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  padding: calc(var(--nav-height) + 20px) 24px 72px;
}

.hero-content {
  width: min(1080px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: scale(0.95) translateY(18px);
  transition:
    opacity 2.9s var(--ease-premium),
    transform 2.9s var(--ease-premium);
  will-change: transform, opacity;
}

body.loaded .hero-content {
  opacity: var(--hero-opacity);
  transform: translateY(calc(var(--hero-progress) * -28px)) scale(var(--hero-scale));
}

.hero-logo-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
  margin-bottom: 26px;
  width: min(50vw, 720px);
  transition: transform 0.7s var(--ease-premium);
}

.hero-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 3;
  transition: transform 0.8s var(--ease-premium);
}

.hero-logo-wrap:hover { transform: translateY(-6px); }
.hero-logo-wrap:hover .hero-logo { transform: translateY(-2px) scale(1.012); }

.hero-copy {
  margin: 6px auto 0;
  max-width: 720px;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.75;
  color: var(--muted);
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 188px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-transform: uppercase;
  font-size: 0.84rem;
  transition: transform 0.45s var(--ease-premium), box-shadow 0.45s var(--ease-premium), border-color 0.45s var(--ease-premium);
}

.button:hover { transform: translateY(-3px); }

.button-primary {
  color: #050505;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2), var(--gold-3));
  box-shadow: 0 14px 40px rgba(255, 170, 0, 0.18);
}

.button-primary:hover { box-shadow: 0 20px 58px rgba(255, 170, 0, 0.28); }

.button-secondary {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
}

.button-secondary:hover {
  border-color: rgba(255, 193, 7, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 193, 7, 0.1), 0 18px 40px rgba(0, 0, 0, 0.34);
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 24px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 7px;
}

.scroll-indicator span {
  width: 4px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-3));
  animation: scrollPulse 1.8s ease-in-out infinite;
}

.section {
  position: relative;
  padding: 36px 24px 104px;
}

.section-heading,
.cta-panel,
.legal-section-card,
.feature-card {
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 30px 80px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
}

.section-heading {
  width: min(1220px, 100%);
  margin: 0 auto 28px;
  padding: 34px;
  border-radius: 30px;
  text-align: center;
}

.section-heading h2,
.cta-panel h2,
.legal-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
}

.section-kicker {
  color: rgba(255, 255, 255, 0.63);
  text-transform: uppercase;
  font-size: 0.82rem;
  margin: 0 0 14px;
}

.section-heading p,
.cta-panel p,
.legal-section-card p,
.legal-hero p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

/* ---------- 3D PORTFOLIO CAROUSEL ---------- */

.portfolio-section {
  padding-top: 18px;
}

.portfolio-heading {
  position: relative;
  overflow: hidden;
}

.portfolio-heading::after {
  content: '';
  position: absolute;
  inset: auto 10% -42% 10%;
  height: 68%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.12), transparent 64%);
  pointer-events: none;
}

.portfolio-title {
  margin: 0 0 16px;
  letter-spacing: 0.18em;
}

.portfolio-carousel {
  --carousel-count: 7;
  --carousel-rotation: 0deg;
  width: min(1220px, 100%);
  margin: 0 auto;
  position: relative;
  padding: 34px 72px 34px;
  border: 1px solid var(--stroke);
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 12%, rgba(0, 212, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 40px 110px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(16px);
}

.portfolio-carousel::before {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.portfolio-spotlight,
.portfolio-floor-glow,
.portfolio-floor {
  position: absolute;
  left: 50%;
  pointer-events: none;
}

.portfolio-spotlight {
  top: 86px;
  width: min(760px, 88%);
  height: 360px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 212, 255, 0.22), transparent 38%),
    radial-gradient(circle at 50% 62%, rgba(255, 215, 0, 0.12), transparent 52%);
  filter: blur(22px);
  opacity: 0.9;
}

.portfolio-floor-glow {
  bottom: 104px;
  width: min(700px, 76%);
  height: 110px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0, 212, 255, 0.16), rgba(255, 215, 0, 0.08) 34%, transparent 70%);
  filter: blur(34px);
  opacity: 0.82;
}

.portfolio-floor {
  bottom: 42px;
  width: min(860px, 84%);
  height: 230px;
  transform: translateX(-50%) rotateX(83deg);
  transform-origin: center top;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(0, 212, 255, 0.08), transparent 52%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 30px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 0 70px rgba(0, 0, 0, 0.48),
    0 0 22px rgba(0, 212, 255, 0.06);
  opacity: 0.92;
}

.portfolio-scene {
  --card-width: clamp(210px, 22vw, 286px);
  --card-height: calc(var(--card-width) * 1.35);
  --carousel-radius: 430px;
  --carousel-perspective: 1160px;
  position: relative;
  min-height: 820px;
  perspective: var(--carousel-perspective);
  perspective-origin: 50% 30%;
}

.portfolio-stage,
.portfolio-ring,
.portfolio-reflection,
.portfolio-ring--reflection {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.portfolio-ring,
.portfolio-ring--reflection {
  transform: rotateY(var(--carousel-rotation));
  transition: transform 0.8s ease-in-out;
  will-change: transform;
}

.portfolio-reflection {
  transform: translateY(calc(var(--card-height) * 0.94)) scaleY(-1);
  transform-origin: center top;
  opacity: 0.34;
  filter: blur(8px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 72%);
}

.portfolio-item {
  --item-angle: 0deg;
  --item-scale: 1;
  --item-opacity: 1;
  --item-brightness: 1;
  --item-shift: 0px;
  position: absolute;
  top: 44%;
  left: 50%;
  width: var(--card-width);
  height: var(--card-height);
  display: block;
  transform-style: preserve-3d;
  transform:
    translate(-50%, -50%)
    rotateY(var(--item-angle))
    translateZ(var(--carousel-radius))
    translateY(var(--item-shift))
    scale(var(--item-scale));
  opacity: var(--item-opacity);
  filter: brightness(var(--item-brightness));
  transition:
    transform 0.8s ease-in-out,
    opacity 0.8s ease-in-out,
    filter 0.8s ease-in-out;
  will-change: transform, opacity, filter;
}

.portfolio-ring--reflection .portfolio-item {
  pointer-events: none;
}

.portfolio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.56);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition:
    border-color 0.5s ease,
    box-shadow 0.5s ease,
    transform 0.5s var(--ease-premium);
}

.portfolio-card::before,
.portfolio-card::after {
  content: '';
  position: absolute;
  inset: 14px;
  pointer-events: none;
}

.portfolio-card::before {
  background:
    linear-gradient(var(--blue-1), var(--blue-1)) left top / 24px 2px no-repeat,
    linear-gradient(var(--blue-1), var(--blue-1)) left top / 2px 24px no-repeat,
    linear-gradient(var(--gold-1), var(--gold-1)) right top / 24px 2px no-repeat,
    linear-gradient(var(--gold-1), var(--gold-1)) right top / 2px 24px no-repeat,
    linear-gradient(var(--gold-1), var(--gold-1)) left bottom / 24px 2px no-repeat,
    linear-gradient(var(--gold-1), var(--gold-1)) left bottom / 2px 24px no-repeat,
    linear-gradient(var(--blue-1), var(--blue-1)) right bottom / 24px 2px no-repeat,
    linear-gradient(var(--blue-1), var(--blue-1)) right bottom / 2px 24px no-repeat;
  opacity: 0.9;
}

.portfolio-card::after {
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%, transparent 80%, rgba(255, 215, 0, 0.08));
  mix-blend-mode: screen;
  opacity: 0.5;
}

.portfolio-item:hover .portfolio-card {
  transform: translateY(-8px);
  border-color: rgba(255, 215, 0, 0.35);
}

.portfolio-item.is-active .portfolio-card {
  border-color: rgba(0, 212, 255, 0.6);
  box-shadow:
    0 0 30px rgba(0, 216, 255, 0.6),
    0 0 50px rgba(255, 204, 89, 0.3),
    0 32px 90px rgba(0, 0, 0, 0.66),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.portfolio-item.is-active .portfolio-placeholder-label {
  color: rgba(255, 255, 255, 0.94);
  border-color: rgba(0, 212, 255, 0.34);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.18);
}

.portfolio-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 24%, rgba(0, 212, 255, 0.24), transparent 42%),
    radial-gradient(circle at 50% 82%, rgba(255, 215, 0, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(7, 13, 18, 0.96), rgba(0, 0, 0, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
}

.portfolio-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.03));
  pointer-events: none;
}

.portfolio-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.065) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1), transparent 78%);
  -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1), transparent 78%);
  opacity: 0.85;
  pointer-events: none;
}

.portfolio-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
  opacity: 0.12;
  pointer-events: none;
}

.portfolio-placeholder-label {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.72);
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.portfolio-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 6px 2px;
}

.portfolio-index {
  font-size: 0.94rem;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2), var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.portfolio-status {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.18em;
  text-align: right;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.72);
  color: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  transition: transform 0.4s var(--ease-premium), border-color 0.4s ease, color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
  z-index: 8;
  backdrop-filter: blur(10px);
}

.carousel-btn:hover {
  border-color: rgba(255, 215, 0, 0.5);
  color: white;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.16);
  transform: translateY(-50%) scale(1.06);
}

.carousel-prev { left: 18px; }
.carousel-next { right: 18px; }

.carousel-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: -16px;
  margin-bottom: 16px;
  font-family: 'Electrolize', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.carousel-status-label {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
}

.carousel-status-value {
  font-size: 0.78rem;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2), var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 5;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  padding: 0;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, width 0.3s ease, box-shadow 0.3s ease;
}

.carousel-dot.active {
  width: 26px;
  border-color: rgba(0, 212, 255, 0.72);
  background: linear-gradient(90deg, var(--gold-1), var(--blue-1));
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.24);
}

/* ---------- CTA ---------- */

.cta-section { padding-top: 0; }

.cta-panel {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: 42px;
  border-radius: 34px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-panel::before {
  content: '';
  position: absolute;
  inset: auto -10% -35% -10%;
  height: 60%;
  background: radial-gradient(circle, rgba(255, 170, 0, 0.10), transparent 62%);
  pointer-events: none;
}

.compact { justify-content: center; }

.site-footer {
  padding: 0 24px 34px;
  text-align: center;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.site-footer a:hover { color: white; }

.footer-divider { opacity: 0.4; margin: 0 10px; }

.reveal-card {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition:
    opacity 1.2s var(--ease-premium),
    transform 1.2s var(--ease-premium),
    box-shadow 0.5s ease,
    border-color 0.5s ease;
  will-change: transform, opacity;
}

.reveal-card.in-view,
.reveal-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ---------- LEGAL ---------- */

.legal-shell { background: #000000; }

.legal-main {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: 34px 24px 100px;
  display: grid;
  gap: 18px;
}

.legal-hero {
  padding: 34px;
  border-radius: 30px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 30px 80px rgba(0,0,0,0.55);
}

.legal-section-card {
  padding: 30px 30px 28px;
  border-radius: 24px;
}

.legal-section-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

/* ---------- ANIMATIONS ---------- */

@keyframes scrollPulse {
  0% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(10px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.8; }
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1024px) {
  .hero-logo-wrap { width: min(60vw, 620px); }
  .portfolio-carousel { padding-left: 60px; padding-right: 60px; }
  .portfolio-scene {
    --carousel-radius: 330px;
    --carousel-perspective: 1000px;
    min-height: 720px;
  }
  .portfolio-floor { width: min(760px, 88%); }
  .nav-links { gap: 16px; }
}

@media (max-width: 768px) {
  .sticky-nav,
  .static-nav {
    height: auto;
    min-height: var(--nav-height);
    padding: 14px 18px;
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 14px 18px;
    padding-bottom: 2px;
  }

  .hero { padding-top: 128px; }
  .hero-logo-wrap { width: min(80vw, 520px); }

  .section,
  .legal-main { padding-left: 18px; padding-right: 18px; }

  .section-heading,
  .cta-panel,
  .legal-hero,
  .legal-section-card,
  .feature-card { padding: 24px; border-radius: 22px; }

  .portfolio-carousel {
    padding: 22px 18px 22px;
    border-radius: 24px;
  }

  .portfolio-scene {
    min-height: auto;
    perspective: none;
    overflow: hidden;
  }

  .portfolio-stage,
  .portfolio-ring,
  .portfolio-ring--reflection {
    position: relative;
    inset: auto;
    transform: none !important;
  }

  .portfolio-ring {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 6px 6vw 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .portfolio-item {
    position: relative;
    top: auto;
    left: auto;
    flex: 0 0 min(78vw, 280px);
    width: min(78vw, 280px);
    height: auto;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    scroll-snap-align: center;
  }

  .portfolio-reflection,
  .portfolio-floor,
  .portfolio-floor-glow {
    display: none;
  }

  .portfolio-spotlight {
    width: 100%;
    height: 240px;
    top: 70px;
    opacity: 0.55;
  }

  .carousel-btn,
  .carousel-status,
  .carousel-dots {
    display: none;
  }

  .compact { justify-content: center; }
}

@media (max-width: 540px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .button { width: 100%; }
  .nav-brand-text { font-size: 0.8rem; }
  .nav-logo { width: 44px; height: 44px; }
  .site-footer { font-size: 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;
  }
  .sticky-nav { transform: translateY(0); opacity: 1; }
  .hero-content,
  .reveal-card { opacity: 1; transform: none; }
}