:root {
  --bg-0: #0e111b;
  --bg-1: #1b2236;
  --bg-2: #2f1d43;
  --surface: #f4efe7;
  --ink: #0b0e16;
  --accent: #ff7a18;
  --accent-2: #00c2a8;
  --muted: #b9bfd2;
  --line: rgba(255, 255, 255, 0.22);
  --shadow-heavy: 0 24px 60px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 15px 30px rgba(8, 12, 22, 0.2);
  --radius-xl: 28px;
  --radius-md: 18px;
  --menu-link-fade-ms: 170ms;
  --menu-link-underline-ms: 220ms;
  --menu-morph-main-ms: 220ms;
  --menu-morph-fade-ms: 150ms;
}

body[data-feel="smoother"] {
  --menu-link-fade-ms: 250ms;
  --menu-link-underline-ms: 320ms;
  --menu-morph-main-ms: 320ms;
  --menu-morph-fade-ms: 220ms;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Manrope", sans-serif;
  color: var(--surface);
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 122, 24, 0.18), transparent 45%),
    radial-gradient(circle at 80% 25%, rgba(0, 194, 168, 0.14), transparent 42%),
    linear-gradient(135deg, var(--bg-0), var(--bg-1) 45%, var(--bg-2));
  overflow-x: hidden;
  line-height: 1.5;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.09) 0.6px, transparent 0.6px),
    radial-gradient(rgba(255, 255, 255, 0.06) 0.8px, transparent 0.8px);
  background-size: 3px 3px, 5px 5px;
  mix-blend-mode: soft-light;
  z-index: 1;
}

.cursor-glow {
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 122, 24, 0.32), rgba(255, 122, 24, 0));
  filter: blur(10px);
  z-index: 2;
  opacity: 0;
  transition: opacity 250ms ease;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 3;
}

.site-header {
  max-width: 1160px;
  margin: 1.2rem auto 0;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 100px;
  backdrop-filter: blur(10px);
  background: rgba(11, 14, 22, 0.28);
}

.brand {
  color: var(--surface);
  text-decoration: none;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}

.main-nav {
  display: flex;
  gap: 1.4rem;
}

.main-nav a,
.site-footer a {
  color: var(--surface);
  text-decoration: none;
  opacity: 0.88;
}

.main-nav a {
  position: relative;
  transition: opacity var(--menu-link-fade-ms) ease, color var(--menu-link-fade-ms) ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.32rem;
  width: 100%;
  height: 2px;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: transform var(--menu-link-underline-ms) ease;
}

.main-nav a.is-active {
  opacity: 1;
}

.main-nav a.is-active::after {
  transform: scaleX(1);
}

.main-nav a:hover,
.site-footer a:hover {
  opacity: 1;
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--surface);
  padding: 0.45rem 0.85rem;
}

.menu-btn.is-active {
  background: rgba(255, 255, 255, 0.12);
}

.menu-icon {
  width: 18px;
  height: 14px;
  position: relative;
  display: inline-block;
}

.menu-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform var(--menu-morph-main-ms) ease, opacity var(--menu-morph-fade-ms) ease, top var(--menu-morph-main-ms) ease;
}

.menu-icon span:nth-child(1) {
  top: 0;
}

.menu-icon span:nth-child(2) {
  top: 6px;
}

.menu-icon span:nth-child(3) {
  top: 12px;
}

.menu-btn.is-active .menu-icon span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.menu-btn.is-active .menu-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}

.menu-btn.is-active .menu-icon span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.menu-text {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1rem;
}

.hero {
  margin-top: 3.2rem;
  position: relative;
}

.hero-choreo {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity 640ms cubic-bezier(0.22, 1, 0.36, 1), transform 820ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.page-ready .hero-choreo {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero .hero-choreo:nth-of-type(1) {
  transition-delay: 80ms;
}

.hero .hero-choreo:nth-of-type(2) {
  transition-delay: 180ms;
}

.hero .hero-choreo:nth-of-type(3) {
  transition-delay: 300ms;
}

.hero .hero-choreo:nth-of-type(4) {
  transition-delay: 430ms;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.77rem;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Syne", sans-serif;
  line-height: 1.05;
}

h1 {
  margin-top: 0.8rem;
  max-width: 11.5ch;
  font-size: clamp(2.2rem, 7.2vw, 5.3rem);
}

h1 span {
  color: var(--accent);
  text-shadow: 0 0 24px rgba(255, 122, 24, 0.34);
}

.hero-copy {
  margin-top: 1.2rem;
  width: min(62ch, 100%);
  color: #d7dcee;
}

.hero-actions {
  margin-top: 1.7rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  padding: 0.78rem 1.25rem;
  font-weight: 700;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-solid {
  color: #fff;
  background: linear-gradient(135deg, #ff7a18, #ff4d4d);
  box-shadow: 0 10px 24px rgba(255, 85, 30, 0.34);
}

.btn-ghost {
  color: var(--surface);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.hero-orbs {
  position: absolute;
  right: 0;
  top: -1rem;
  width: 44%;
  height: 110%;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  box-shadow: var(--shadow-heavy);
}

.orb-a {
  width: 130px;
  height: 130px;
  top: 12%;
  right: 4%;
  background: radial-gradient(circle at 30% 30%, #ffd9b8, #ff7a18 55%, #a8301a);
}

.orb-b {
  width: 88px;
  height: 88px;
  bottom: 24%;
  right: 38%;
  background: radial-gradient(circle at 30% 30%, #d9fff9, #00c2a8 58%, #086a5d);
}

.orb-c {
  width: 72px;
  height: 72px;
  top: 56%;
  right: 14%;
  background: radial-gradient(circle at 30% 30%, #ffffff, #8d87ff 55%, #363066);
}

.metrics {
  margin-top: 4.2rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metrics article {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  background: rgba(7, 10, 18, 0.42);
  backdrop-filter: blur(8px);
}

.metrics h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
}

.work,
.stage,
.contact {
  margin-top: 5.4rem;
}

.section-head {
  display: grid;
  gap: 0.55rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 5vw, 3.2rem);
  max-width: 17ch;
}

.cards {
  margin-top: 1.6rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border-radius: var(--radius-xl);
  padding: 1.4rem;
  min-height: 230px;
  color: var(--ink);
  background: linear-gradient(155deg, #fff8ef, #f6e8dd 52%, #f0ddd2);
  box-shadow: var(--shadow-card);
  transition: transform 250ms ease, box-shadow 250ms ease;
  transform-style: preserve-3d;
}

.card.card-enter {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
}

.cards.cards-ready .card.card-enter {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 560ms ease, transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.card h3 {
  font-size: 1.45rem;
}

.card p {
  margin-top: 0.8rem;
  color: #2a2e3b;
}

.card span {
  margin-top: 1.2rem;
  display: inline-block;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(11, 14, 22, 0.08);
  font-size: 0.84rem;
}

.stage {
  position: relative;
}

.stage-grid {
  margin-top: 1.6rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stage-step {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(9, 12, 20, 0.5);
  padding: 1.2rem;
}

.stage-step p {
  margin-top: 0.6rem;
  color: #d8dceb;
}

.shape-field {
  margin-top: 2.2rem;
  height: 280px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 20% 20%, rgba(0, 194, 168, 0.2), transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(255, 122, 24, 0.16), transparent 42%),
    rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.shape {
  position: absolute;
  box-shadow: var(--shadow-heavy);
}

.cube {
  left: 16%;
  top: 24%;
  width: 92px;
  height: 92px;
  border-radius: 22px;
  background: linear-gradient(145deg, #ffa561, #ff5f6d);
}

.ring {
  right: 18%;
  top: 14%;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 14px solid #87ffd6;
  background: rgba(0, 0, 0, 0.15);
}

.slab {
  left: 44%;
  bottom: 18%;
  width: 160px;
  height: 64px;
  border-radius: 999px;
  background: linear-gradient(90deg, #91b7ff, #5564e4);
}

.contact {
  text-align: center;
  padding: 3rem 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(255, 122, 24, 0.2), rgba(0, 194, 168, 0.18));
}

.contact h2 {
  margin: 0.6rem auto 1.4rem;
  max-width: 20ch;
  font-size: clamp(1.7rem, 5vw, 3rem);
}

.site-footer {
  max-width: 1160px;
  margin: 2.6rem auto 1.3rem;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #d3d9eb;
}

.reveal {
  --reveal-distance: 24px;
  --reveal-duration: 700ms;
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition: opacity var(--reveal-duration) ease, transform var(--reveal-duration) ease;
}

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

.floating {
  animation: bob 6.8s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -14px, 0);
  }
}

@media (max-width: 980px) {
  body.menu-open {
    overflow: hidden;
  }

  .hero-orbs {
    position: relative;
    width: 100%;
    height: 170px;
    margin-top: 1.3rem;
  }

  .metrics,
  .cards,
  .stage-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    border-radius: var(--radius-md);
    position: sticky;
    top: 0.8rem;
    z-index: 20;
  }

  .main-nav {
    display: none;
  }

  .site-header.menu-open {
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
  }

  .site-header.menu-open .main-nav {
    display: grid;
    gap: 0.2rem;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.45rem);
    padding: 0.6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(9, 12, 20, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-heavy);
  }

  .site-header.menu-open .main-nav a {
    padding: 0.68rem 0.8rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
  }

  .site-header.menu-open .main-nav a::after {
    bottom: 0.34rem;
  }

  .menu-btn {
    display: inline-flex;
  }
}

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