:root {
  --bg: #090a0a;
  --surface: #151616;
  --text: #f3f3ef;
  --muted: #a4a5a0;
  --line: rgba(255,255,255,.075);
  --accent: #d8ff53;
  --clay-shadow: 0 15px 35px rgba(0,0,0,.55), inset 0 1px 1px rgba(255,255,255,.11), inset 0 -2px 4px rgba(0,0,0,.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, "Noto Sans SC", sans-serif;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--accent); color: #090a0a; padding: 12px 18px; border-radius: 99px; }
.skip-link:focus { top: 16px; }
.grid-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 4vw;
  background: linear-gradient(to bottom, rgba(9,10,10,.96), rgba(9,10,10,0));
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -.03em; }
.logo-mark { width: 22px; height: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.logo-mark i { display: block; width: 4px; height: 4px; border: 1px solid currentColor; border-radius: 50%; }
.nav-links {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; padding: 8px;
  background: rgba(22,23,23,.94); border: 1px solid rgba(255,255,255,.06);
  border-radius: 999px; box-shadow: var(--clay-shadow);
}
.nav-links a { padding: 12px 18px; color: #cacbc6; font-size: 14px; transition: color .25s, background .25s; border-radius: 99px; }
.nav-links a:hover, .nav-links a:focus-visible { color: white; background: rgba(255,255,255,.06); }
.nav-links a.active { background: var(--text); color: #111; box-shadow: 0 4px 10px rgba(0,0,0,.5), inset 0 1px white; }
.menu-button {
  min-height: 44px; padding: 0 18px; border: 1px solid rgba(255,255,255,.06); border-radius: 99px;
  background: var(--surface); color: var(--text); box-shadow: var(--clay-shadow); cursor: pointer;
  display: flex; gap: 12px; align-items: center;
}
.menu-button b { color: var(--accent); }

.subpage {
  height: 100dvh;
  display: grid;
  place-items: center;
  padding: 120px 24px 40px;
  text-align: center;
}
.subpage-inner { max-width: 760px; }
.subpage-index { color: var(--accent); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.subpage h1 { margin: 16px 0 12px; font-size: clamp(58px, 9vw, 132px); line-height: .95; letter-spacing: -.07em; }
.subpage p { color: var(--muted); }

.hero { min-height: 100svh; padding: 190px 10vw 80px; display: flex; flex-direction: column; justify-content: center; }
.eyebrow {
  align-self: center; padding: 10px 15px; border-radius: 99px; color: #c1c2bd; font-size: 12px;
  background: var(--surface); box-shadow: var(--clay-shadow); border: 1px solid rgba(255,255,255,.06);
}
.hero h1 { text-align: center; font-size: clamp(58px, 7.3vw, 118px); line-height: .98; letter-spacing: -.065em; margin: 48px auto 28px; max-width: 1150px; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1px rgba(243,243,239,.7); }
.hero-copy { max-width: 580px; text-align: center; margin: 0 auto; color: var(--muted); line-height: 1.8; }
.hero-details {
  display: grid; grid-template-columns: 1fr 1.3fr .55fr; gap: 7vw; align-items: end;
  margin-top: 90px; padding-top: 28px; border-top: 1px solid var(--line);
}
.detail-label, .section-head > p, .section-index { text-transform: uppercase; letter-spacing: .14em; color: #777974; font-size: 11px; }
.hero-details h2 { font-size: clamp(25px, 2.6vw, 42px); line-height: 1.25; margin: 14px 0 0; letter-spacing: -.04em; }
.hero-details > p { color: var(--muted); line-height: 1.8; margin: 0; }
.hero-stat { text-align: right; }
.hero-stat strong { font-size: clamp(48px, 5vw, 76px); line-height: 1; letter-spacing: -.07em; }
.hero-stat strong span { color: var(--accent); }
.hero-stat small { display: block; color: var(--muted); margin-top: 8px; }

.sphere-gallery {
  position: relative;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.sphere-scene {
  position: relative;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1350px;
  perspective-origin: 54% 48%;
  overflow: hidden;
  background:
    radial-gradient(circle at 55% 43%, rgba(255,255,255,.065), transparent 26%),
    radial-gradient(circle at 54% 52%, rgba(216,255,83,.025), transparent 47%);
  cursor: grab;
  touch-action: pan-y;
}
.sphere-scene:active { cursor: grabbing; }
.sphere-scene::before {
  content: "";
  position: absolute;
  width: min(76vw, 82vh, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 32%, rgba(255,255,255,.045), rgba(255,255,255,.008) 35%, rgba(0,0,0,.24) 70%);
  box-shadow: inset -80px -60px 130px rgba(0,0,0,.48), 0 60px 150px rgba(0,0,0,.42);
  pointer-events: none;
}
.sphere-tilt, .project-sphere {
  position: relative;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.sphere-tilt { margin-top: -4vh; }
.sphere-card {
  position: absolute;
  left: -80px;
  top: -108px;
  width: 174px;
  height: 232px;
  left: -87px;
  top: -116px;
  padding: 8px;
  border-radius: 19px;
  background: linear-gradient(145deg, #242525, #111212 68%);
  border: 1px solid rgba(255,255,255,.075);
  transform-style: preserve-3d;
  backface-visibility: visible;
  box-shadow:
    13px 17px 30px rgba(0,0,0,.82),
    -5px -5px 12px rgba(255,255,255,.035),
    inset 3px 3px 8px rgba(255,255,255,.07),
    inset -4px -4px 9px rgba(0,0,0,.78);
  transition: filter .45s cubic-bezier(.2,.7,.2,1), opacity .45s ease;
  will-change: transform;
  contain: layout paint style;
}
.sphere-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  filter: grayscale(1) brightness(.42) contrast(1.14);
  transition: filter .5s cubic-bezier(.2,.7,.2,1);
  transform: translateZ(.1px);
  image-rendering: auto;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
  -webkit-user-drag: none;
  user-select: none;
}
.sphere-card.active-card {
  filter: drop-shadow(0 0 28px rgba(216,255,83,.18)) brightness(1.08);
}
.sphere-card.active-card img {
  filter: grayscale(.08) brightness(1.02) contrast(1.05) saturate(.9);
}
.sphere-copy {
  position: absolute;
  top: 50%;
  left: clamp(24px, 6vw, 80px);
  z-index: 5;
  width: 285px;
  margin-left: 0;
  transform: translateY(-50%);
  pointer-events: none;
  text-shadow: 0 5px 18px #000;
}
.sphere-copy h2 {
  font-size: clamp(29px, 3vw, 46px);
  line-height: 1.08;
  letter-spacing: -.045em;
  margin: 16px 0;
}
.sphere-copy > p:not(.detail-label) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.sphere-copy span {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: .14em;
}
.network-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}
.network-lines path {
  stroke: rgba(255,255,255,.045);
  stroke-width: .18;
  fill: none;
}

.manifesto { display: grid; grid-template-columns: 1fr 3fr; padding: 140px 8vw; border-top: 1px solid var(--line); gap: 60px; }
.big-copy { margin: 0; max-width: 1050px; font-size: clamp(38px, 5.4vw, 84px); line-height: 1.14; letter-spacing: -.055em; color: #d9dad5; }
.services { margin-top: 80px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.services p { border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); }
.contact { min-height: 75vh; padding: 100px 8vw; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-top: 1px solid var(--line); }
.contact p { color: var(--muted); }
.contact a { font-size: clamp(52px, 8vw, 128px); line-height: 1; letter-spacing: -.07em; border-bottom: 2px solid currentColor; padding-bottom: 12px; }
.contact a span { color: var(--accent); }
footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 45px 5vw; color: #777974; font-size: 13px; border-top: 1px solid var(--line); }
.footer-logo { color: var(--text); }

.reveal { opacity: 0; transform: translateY(24px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero h1 { animation-delay: .12s; }
.hero-copy { animation-delay: .24s; }
.hero-details { animation-delay: .35s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .navbar { padding: 20px; }
  .nav-links { display: none; position: fixed; inset: 76px 18px auto; transform: none; flex-direction: column; padding: 15px; border-radius: 24px; }
  .nav-links.is-open { display: flex; }
  .nav-links a { width: 100%; text-align: center; }
  .hero { padding: 150px 22px 70px; }
  .hero h1 { font-size: clamp(53px, 15vw, 82px); }
  .hero-details { grid-template-columns: 1fr; gap: 28px; margin-top: 70px; }
  .hero-stat { text-align: left; }
  .sphere-gallery { height: 100dvh; min-height: 0; }
  .sphere-scene { perspective: 980px; perspective-origin: 50% 44%; }
  .sphere-tilt { margin-top: -9vh; }
  .sphere-scene::before { width: min(110vw, 62vh, 520px); }
  .sphere-card { width: 112px; height: 150px; left: -56px; top: -75px; padding: 5px; border-radius: 12px; }
  .sphere-card img { border-radius: 8px; }
  .sphere-copy {
    position: absolute;
    top: auto;
    left: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0 22px 42px;
    transform: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-bottom: 0;
  }
  .sphere-copy h2 { font-size: 29px; margin: 8px 0; }
  .sphere-copy > p:not(.detail-label) { max-width: 340px; margin: 0 auto; }
  .manifesto { grid-template-columns: 1fr; padding: 100px 22px; }
  .services { grid-template-columns: 1fr 1fr; }
  footer { flex-direction: column; align-items: flex-start; padding: 40px 22px; }
}

@media (min-width: 861px) and (max-width: 1100px) {
  .sphere-card {
    width: 146px;
    height: 195px;
    left: -73px;
    top: -98px;
  }
  .sphere-copy { margin-left: 3vw; }
}

@media (max-width: 520px) {
  .sphere-card {
    width: 96px;
    height: 128px;
    left: -48px;
    top: -64px;
  }
  .sphere-tilt { margin-top: -12vh; }
}

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