:root {
  --bg: #050507;
  --bg-soft: #0b0b10;
  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.64);
  --line: rgba(244, 241, 234, 0.16);
  --accent: #d6ff5f;
  --accent-2: #75f6ff;
  --danger: #ff6f91;
  --card: rgba(255, 255, 255, 0.055);
  --glass: rgba(255, 255, 255, 0.075);
  --max: 1480px;
  --pad: clamp(18px, 3.2vw, 56px);
  --header: 82px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 76% 12%, rgba(117, 246, 255, 0.12), transparent 24vw),
    radial-gradient(circle at 16% 76%, rgba(214, 255, 95, 0.10), transparent 26vw),
    linear-gradient(180deg, #050507 0%, #090910 52%, #050507 100%);
  overflow-x: hidden;
}

body::selection {
  background: var(--accent);
  color: #020202;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.15;
  mix-blend-mode: overlay;
  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='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

#webgl {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

main,
.site-header,
.progress {
  position: relative;
  z-index: 4;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 var(--pad);
  mix-blend-mode: difference;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 13px;
  font-family: "JetBrains Mono", monospace;
}

.brand-text,
.nav,
.talk,
.eyebrow,
.project-card small,
.scroll-hint,
.hero-meta,
.footer,
.progress {
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-text {
  font-size: 12px;
}

.nav {
  display: flex;
  gap: clamp(14px, 2vw, 34px);
  font-size: 12px;
}

.nav a,
.talk {
  opacity: 0.72;
  transition: opacity 0.24s ease;
}

.nav a:hover,
.talk:hover {
  opacity: 1;
}

.talk {
  justify-self: end;
  font-size: 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 12px 18px;
}

.panel {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header) + 44px) var(--pad) 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.panel > * {
  width: min(100%, var(--max));
  margin-left: auto;
  margin-right: auto;
}

.hero {
  min-height: 112vh;
  justify-content: flex-end;
  padding-bottom: clamp(64px, 9vw, 132px);
}

.hero-copy {
  max-width: 930px;
  margin-left: 0;
  margin-right: auto;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: clamp(11px, 1vw, 13px);
  line-height: 1.6;
}

.hero-title,
.statement-title,
.big-title,
.contact h2,
.section-head h2,
.studio-card h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.095em;
  line-height: 0.86;
}

.hero-title {
  font-size: clamp(78px, 13.4vw, 244px);
  max-width: 1280px;
}

.hero-lead {
  max-width: 620px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--text);
  color: #050507;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.scroll-hint {
  position: absolute;
  left: var(--pad);
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 10px;
}

.scroll-hint i {
  display: block;
  width: 84px;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}

.scroll-hint i::after {
  content: "";
  display: block;
  width: 30px;
  height: 100%;
  background: var(--accent);
  animation: scan 1.4s ease-in-out infinite;
}

@keyframes scan {
  0% { transform: translateX(-34px); }
  100% { transform: translateX(92px); }
}

.hero-meta {
  position: absolute;
  right: var(--pad);
  bottom: 26px;
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 10px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  gap: clamp(30px, 6vw, 110px);
  align-items: end;
}

.statement-title {
  font-size: clamp(62px, 9.3vw, 170px);
}

.statement-text {
  color: var(--muted);
  font-size: clamp(17px, 1.25vw, 22px);
  line-height: 1.55;
}

.statement-text p {
  margin: 0 0 22px;
}

.marquee {
  width: 100vw;
  max-width: none;
  margin-top: 90px;
  margin-left: calc(var(--pad) * -1);
  overflow: hidden;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 241, 234, 0.26);
  font-size: clamp(72px, 10vw, 178px);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
}

.marquee span {
  display: inline-block;
  animation: marquee 28s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.section-head {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: clamp(24px, 6vw, 120px);
  align-items: end;
  margin-bottom: clamp(34px, 7vw, 96px);
}

.section-head.narrow {
  max-width: 1160px;
}

.section-head h2 {
  font-size: clamp(46px, 7vw, 128px);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.project-card {
  position: relative;
  min-height: 390px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.075)),
    var(--card);
  backdrop-filter: blur(20px);
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(214,255,95,0.24), transparent 34%),
    linear-gradient(135deg, transparent, rgba(117,246,255,0.08));
  opacity: 0;
  transition: opacity 0.28s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(244, 241, 234, 0.32);
}

.project-card:hover::before {
  opacity: 1;
}

.project-index {
  position: absolute;
  top: 22px;
  right: 22px;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.project-card h3 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2vw, 34px);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.project-card p {
  margin: 0 0 26px;
  color: var(--muted);
  line-height: 1.52;
}

.project-card small {
  color: rgba(244, 241, 234, 0.42);
  font-size: 10px;
  line-height: 1.4;
}

.service-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 80px 0.7fr 1fr;
  gap: clamp(20px, 4vw, 80px);
  align-items: center;
  min-height: 142px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.service-row span,
.step b {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.service-row h3 {
  margin: 0;
  font-size: clamp(28px, 3.3vw, 66px);
  letter-spacing: -0.07em;
  line-height: 0.92;
}

.service-row p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.14vw, 20px);
  line-height: 1.45;
}

.process {
  min-height: 118vh;
}

.big-title {
  max-width: 1120px;
  margin-left: 0;
  font-size: clamp(58px, 9vw, 168px);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(48px, 8vw, 120px);
}

.step {
  min-height: 250px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(18px);
}

.step h3 {
  margin: 54px 0 12px;
  font-size: 34px;
  letter-spacing: -0.06em;
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.studio {
  align-items: flex-start;
}

.studio-card {
  max-width: 720px;
  margin-left: 0;
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(24px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.studio-card h2 {
  font-size: clamp(42px, 5.2vw, 92px);
}

.studio-card p {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.studio-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
}

.studio-card li {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(244, 241, 234, 0.78);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact {
  min-height: 108vh;
  justify-content: center;
}

.contact-inner {
  max-width: 1100px;
  text-align: center;
}

.contact h2 {
  font-size: clamp(72px, 12vw, 210px);
}

.contact p:not(.eyebrow) {
  max-width: 680px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 1.4vw, 24px);
  line-height: 1.45;
}

.contact-link {
  display: inline-flex;
  margin-top: 38px;
  padding: 18px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #050507;
  font-weight: 900;
  font-size: clamp(18px, 2vw, 32px);
  letter-spacing: -0.04em;
}

.footer {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(244, 241, 234, 0.44);
  font-size: 10px;
}

.progress {
  position: fixed;
  right: 18px;
  top: 50%;
  width: 1px;
  height: 180px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.14);
}

.progress span {
  display: block;
  width: 100%;
  height: 0%;
  background: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(42px) scale(0.985);
  transition: opacity 0.9s cubic-bezier(.19,1,.22,1), transform 0.9s cubic-bezier(.19,1,.22,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 20;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(244, 241, 234, 0.9);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.18s ease, height 0.18s ease, opacity 0.2s ease, background 0.18s ease;
  mix-blend-mode: difference;
}

.cursor.is-active {
  width: 56px;
  height: 56px;
  background: rgba(244, 241, 234, 0.16);
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .split,
  .section-head {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-row {
    grid-template-columns: 54px 1fr;
  }

  .service-row p {
    grid-column: 2;
  }

  .hero-meta {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --header: 72px;
  }

  .site-header {
    padding: 0 16px;
  }

  .brand-text {
    display: none;
  }

  .talk {
    padding: 10px 14px;
  }

  .panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-title {
    font-size: clamp(58px, 18vw, 96px);
  }

  .project-grid,
  .timeline,
  .studio-card ul {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 270px;
    border-radius: 24px;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-row p {
    grid-column: auto;
  }

  .scroll-hint,
  .progress,
  .cursor {
    display: none;
  }

  .footer {
    position: static;
    flex-direction: column;
    margin-top: 60px;
    padding-bottom: 24px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
