:root {
  --bg: #07090c;
  --bg-elevated: #0e1218;
  --surface: #141a22;
  --line: rgba(232, 236, 242, 0.1);
  --text: #e8ecf2;
  --muted: #8b96a8;
  --accent: #3dffc0;
  --accent-dim: rgba(61, 255, 192, 0.14);
  --warm: #ff7a3d;
  --warm-dim: rgba(255, 122, 61, 0.16);
  --font-display: "Syne", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --radius: 4px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(61, 255, 192, 0.08), transparent 55%),
    radial-gradient(900px 600px at 90% 8%, rgba(255, 122, 61, 0.07), transparent 50%),
    linear-gradient(180deg, #0a0e14 0%, var(--bg) 40%, #05070a 100%);
  overflow-x: hidden;
}

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

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

h1,
h2,
h3,
.brand,
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.orb {
  pointer-events: none;
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}

.orb-a {
  width: 42vw;
  height: 42vw;
  top: -12%;
  left: -8%;
  background: rgba(61, 255, 192, 0.12);
}

.orb-b {
  width: 36vw;
  height: 36vw;
  right: -10%;
  top: 18%;
  background: rgba(255, 122, 61, 0.1);
  animation-delay: -6s;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(4%, 6%) scale(1.08);
  }
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
  transition: background 0.25s ease;
}

.site-header.is-scrolled {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 9, 12, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem 5.5rem;
  min-height: calc(100vh - 5rem);
}

.brand {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 800;
  background: linear-gradient(105deg, var(--text) 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  font-weight: 650;
  color: var(--text);
}

.lede {
  margin: 0 0 2rem;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #06110d;
}

.btn-primary:hover {
  background: #6fffd0;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: rgba(232, 236, 242, 0.28);
  background: rgba(255, 255, 255, 0.05);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.stage {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.ring-1 {
  inset: 8%;
  animation: spin 28s linear infinite;
  border-top-color: var(--accent);
  border-right-color: transparent;
}

.ring-2 {
  inset: 20%;
  animation: spin 18s linear infinite reverse;
  border-bottom-color: var(--warm);
  border-left-color: transparent;
}

.core {
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(61, 255, 192, 0.35), transparent 55%),
    linear-gradient(145deg, #1a2430, #0b1016);
  border: 1px solid rgba(61, 255, 192, 0.35);
  box-shadow: 0 0 0 12px var(--accent-dim);
  animation: pulse 4.5s ease-in-out infinite;
}

.core-mark {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.4rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.06em;
}

.float {
  position: absolute;
  padding: 0.45rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  animation: floaty 5.5s ease-in-out infinite;
}

.float-1 {
  top: 14%;
  left: 4%;
  border-color: rgba(61, 255, 192, 0.35);
  animation-delay: 0s;
}

.float-2 {
  top: 22%;
  right: 2%;
  border-color: rgba(255, 122, 61, 0.4);
  animation-delay: -1.8s;
}

.float-3 {
  bottom: 18%;
  left: 18%;
  animation-delay: -3.2s;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.work,
.studio,
.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.75rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head h2,
.studio-panel h2,
.contact-inner h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
}

.section-head p,
.studio-panel > p,
.contact-inner p {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
}

.lanes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.lane {
  padding: 1.75rem 1.5rem;
  background: linear-gradient(180deg, rgba(20, 26, 34, 0.9), rgba(10, 14, 20, 0.6));
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--accent), transparent) 1;
  transition: background 0.25s ease;
}

.lane:nth-child(2) {
  border-image: linear-gradient(90deg, var(--warm), transparent) 1;
}

.lane:nth-child(3) {
  border-image: linear-gradient(90deg, #7eb6ff, transparent) 1;
}

.lane:hover {
  background: rgba(26, 34, 44, 0.95);
}

.lane-index {
  display: block;
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.lane h3 {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
}

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

.studio-panel {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.pillars li {
  position: relative;
  padding-left: 1rem;
  color: var(--text);
  font-weight: 500;
}

.pillars li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--warm);
}

.contact-inner {
  max-width: 36rem;
}

.contact .btn {
  margin-top: 1.75rem;
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
}

.footer-brand p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero [data-reveal]:nth-child(1) {
  transition-delay: 0.05s;
}
.hero [data-reveal]:nth-child(2) {
  transition-delay: 0.15s;
}
.hero [data-reveal]:nth-child(3) {
  transition-delay: 0.25s;
}
.hero [data-reveal]:nth-child(4) {
  transition-delay: 0.35s;
}
.hero-visual[data-reveal] {
  transition-delay: 0.2s;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-visual {
    order: -1;
  }

  .stage {
    width: min(100%, 320px);
  }

  .lanes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    gap: 1rem;
  }

  .nav a {
    font-size: 0.85rem;
  }

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

  .brand {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }
}

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

  .orb,
  .ring,
  .core,
  .float {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
