:root {
  --bg: #0a0c10;
  --ink: #f4f2ef;
  --muted: #b4b1ac;
  --accent: #f08b4d;
  --stroke: rgba(255, 255, 255, 0.09);
  --glass: rgba(255, 255, 255, 0.06);
}

html {
  background: #0a0c10;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 14% 18%, #242e36, transparent 44%),
    radial-gradient(circle at 76% 2%, #2b221c, transparent 48%),
    radial-gradient(circle at 82% 85%, #1a252e, transparent 44%),
    linear-gradient(180deg, #080a0d 0%, #0c1014 60%, #0e1318 100%);
  min-height: 100vh;
  overflow: hidden;
}

body.legal-page {
  overflow: auto;
}

.ambient {
  position: fixed;
  inset: -20% -10% -10% -10%;
  pointer-events: none;
  background: radial-gradient(circle at 18% 18%, rgba(255, 170, 120, 0.32), transparent 40%),
    radial-gradient(circle at 82% 28%, rgba(120, 230, 205, 0.28), transparent 42%),
    radial-gradient(circle at 45% 82%, rgba(255, 255, 255, 0.18), transparent 45%);
  filter: blur(26px);
  animation: ambient-drift 6s ease-in-out infinite;
  z-index: 0;
}

.glow {
  position: fixed;
  inset: -30% 0 0 0;
  pointer-events: none;
  background: radial-gradient(circle at 18% 18%, rgba(240, 139, 77, 0.32), transparent 50%),
    radial-gradient(circle at 72% 28%, rgba(127, 211, 187, 0.24), transparent 52%);
  filter: blur(18px);
  animation: drift 12s ease-in-out infinite;
  transform: translateY(var(--glow-shift, 0px));
  z-index: 0;
}

.heroWaves {
  filter: url(#wavy);
  will-change: filter, transform;
}

.visually-hidden {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}


.cursor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.cursor::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 170, 120, 0.18), transparent 60%);
  transform: translate(calc(var(--cursor-x, 50vw) - 50%), calc(var(--cursor-y, 50vh) - 50%));
  filter: blur(4px);
}

.cursor::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: translate(calc(var(--cursor-x, 50vw) - 50%), calc(var(--cursor-y, 50vh) - 50%));
}

.cursor--active {
  opacity: 1;
}

.cursor--hover::before {
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(127, 211, 187, 0.22), transparent 62%);
}

.cursor--hover::after {
  width: 22px;
  height: 22px;
  border-color: rgba(255, 255, 255, 0.35);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 8vw 0;
  z-index: 3;
  backdrop-filter: none;
  background: transparent;
  border-bottom: none;
}

.brand {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.brand::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, rgba(240, 139, 77, 0.0), rgba(240, 139, 77, 0.55), rgba(127, 211, 187, 0.45), rgba(127, 211, 187, 0.0));
  border-radius: 999px;
  transform: translateX(-50%);
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.snap {
  height: 100vh;
  height: 100svh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  position: relative;
  z-index: 2;
}

.panel {
  min-height: 100vh;
  min-height: 100svh;
  padding: 140px 8vw 80px;
  scroll-snap-align: start;
  display: grid;
  place-items: center;
  text-align: center;
}

.hero-inner {
  max-width: 820px;
  display: grid;
  gap: 18px;
  animation: hero-in 1s ease-out both;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--muted);
}

.hero h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(4.4rem, 9vw, 7.8rem);
  margin: 0;
  line-height: 1.02;
}

.hero-title {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  filter: blur(10px);
  transition: opacity 0.75s ease-out, transform 0.75s ease-out, filter 0.75s ease-out;
}

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

.hero h1::after {
  content: "";
  display: block;
  width: min(240px, 40vw);
  height: 4px;
  margin: 20px auto 0;
  background: linear-gradient(90deg, rgba(240, 139, 77, 0.0), rgba(240, 139, 77, 0.9), rgba(127, 211, 187, 0.85), rgba(127, 211, 187, 0.0));
  border-radius: 999px;
}

.lead {
  font-size: 1.55rem;
  color: var(--muted);
  margin: 0;
}

.kpi-panel {
  border-top: 1px solid var(--stroke);
}

.kpi-card {
  padding: 24px 32px;
  border-radius: 24px;
  border: 1px solid var(--stroke);
  background: var(--glass);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  animation: item-in 0.9s ease-out both;
}

.kpi-card h3 {
  margin: 0 0 8px;
  font-size: clamp(4.6rem, 12vw, 7.2rem);
  letter-spacing: 0.02em;
}

.kpi-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.award-panel {
  border-top: 1px solid var(--stroke);
}

.award-card {
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--stroke);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  animation: item-in 0.9s ease-out both;
  display: grid;
  place-items: center;
}

.award-card img {
  width: min(420px, 80vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 50px rgba(0, 0, 0, 0.55));
  background: transparent;
}

.portfolio-panel {
  border-top: 1px solid var(--stroke);
  display: grid;
  gap: 24px;
}

.portfolio-head {
  display: grid;
  gap: 8px;
}

.portfolio-head p {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--muted);
}

.portfolio-head h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 5vw, 3rem);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 960px);
  justify-items: center;
}

.logo-item {
  position: relative;
  width: clamp(64px, 7vw, 84px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.logo-item::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.logo-item img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.logo-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.manifesto-panel {
  border-top: 1px solid var(--stroke);
}

.manifesto {
  max-width: 820px;
  display: grid;
  gap: 18px;
  text-align: center;
  padding: 32px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}

.manifesto h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.manifesto p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.manifesto-lines {
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.6;
}

.footer-panel {
  border-top: 1px solid var(--stroke);
}

.footer-wrap {
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
  justify-items: center;
}

.footer-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.back-top {
  color: #0a0c10;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f1d2a6 0%, #f08b4d 45%, #7fe2c6 100%);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.back-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
  filter: brightness(1.05);
}

.footer-divider {
  width: min(420px, 70vw);
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 16px 0 12px;
}

.legal {
  max-width: 860px;
  margin: 120px auto 48px;
  padding: 32px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
}

body.legal-page main {
  padding: 120px 8vw 80px;
}

body.legal-page .legal {
  margin: 0 auto;
  max-height: none;
  height: auto;
  overflow: visible;
}

@media (max-width: 720px) {
  .nav {
    padding: 18px 6vw;
  }

  .panel {
    padding: 96px 6vw 56px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 10.2vw, 4rem);
    line-height: 1.08;
  }

  .lead {
    font-size: 1.05rem;
  }

  .eyebrow {
    letter-spacing: 0.14em;
    font-size: 0.7rem;
  }

  .hero {
    place-items: center;
  }

  .hero-inner {
    margin-top: 0;
  }


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

  .logo-item {
    width: clamp(58px, 18vw, 72px);
    border-radius: 16px;
  }

  .cursor {
    display: none;
  }

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

@keyframes hero-in {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.98);
  }
  60% {
    opacity: 1;
    transform: translateY(0) scale(1.02);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes item-in {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(18px);
  }
}

@keyframes ambient-drift {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
  }
  50% {
    transform: translateY(44px) translateX(-28px) scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .hero-title {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
