:root {
  --bg: #050607;
  --panel: #101316;
  --ink: #f4f7f2;
  --muted: #a8b0ad;
  --line: rgba(244, 247, 242, 0.14);
  --lime: #c9ff3d;
  --cyan: #38d9ff;
  --magenta: #ff4fd8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --progress: 0;
  --panel-count: 12;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.86), transparent 74%);
  z-index: 1;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.site-shell { position: relative; z-index: 2; }
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 22px clamp(18px, 4vw, 64px);
  background: linear-gradient(to bottom, rgba(5,6,7,0.88), rgba(5,6,7,0));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(244,247,242,0.08);
}
.brand, .nav, .hero-actions { display: flex; align-items: center; }
.brand { gap: 12px; font-weight: 900; text-transform: uppercase; }
.brand span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #061008;
  background: var(--lime);
  border-radius: 50%;
}
.nav { gap: clamp(12px, 2vw, 30px); justify-content: center; }
.nav a, .nav-cta { font-size: 13px; font-weight: 900; text-transform: uppercase; }
.nav a { color: rgba(244,247,242,0.62); transition: color 250ms ease; }
.nav a.is-active, .nav a:hover { color: var(--ink); }
.nav a span { color: var(--lime); margin-right: 7px; }
.nav-cta { justify-self: end; border: 1px solid var(--line); padding: 12px 16px; border-radius: 999px; }
.progress-rail {
  position: fixed;
  left: clamp(18px, 4vw, 64px);
  right: clamp(18px, 4vw, 64px);
  bottom: 22px;
  z-index: 35;
  height: 2px;
  background: rgba(244,247,242,0.15);
}
.progress-rail span {
  display: block;
  width: calc(var(--progress) * 100%);
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--cyan), var(--magenta));
}
.side-index {
  position: fixed;
  top: 50%;
  right: clamp(16px, 3vw, 42px);
  z-index: 34;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: translateY(-50%);
  color: rgba(244,247,242,0.68);
  font-size: 12px;
  font-weight: 900;
}
.side-line { width: 1px; height: 86px; background: rgba(244,247,242,0.24); }
.horizontal-stage { height: calc(var(--panel-count) * 100svh); }
.horizontal-track {
  position: sticky;
  top: 0;
  display: flex;
  width: calc(var(--panel-count) * 100vw);
  height: 100svh;
  transform: translate3d(calc(var(--progress) * (100vw - (var(--panel-count) * 100vw))), 0, 0);
  transition: transform 120ms linear;
  will-change: transform;
}
.panel {
  position: relative;
  width: 100vw;
  height: 100svh;
  flex: 0 0 100vw;
  overflow: hidden;
  padding: clamp(92px, 10vw, 138px) clamp(18px, 7vw, 112px) 72px;
}
.panel::after {
  content: attr(data-panel);
  position: absolute;
  right: clamp(42px, 7vw, 112px);
  bottom: clamp(56px, 8vw, 96px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(244,247,242,0.18);
  font-size: clamp(92px, 18vw, 270px);
  font-weight: 900;
  line-height: 0.8;
  pointer-events: none;
}
.panel-copy, .split-copy, .statement-copy, .service-stack, .contact-inner, .project-content {
  position: relative;
  z-index: 3;
}
.panel-media { position: absolute; inset: 0; z-index: 0; }
.panel-media::after, .project-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,6,7,0.96), rgba(5,6,7,0.58) 46%, rgba(5,6,7,0.2)), linear-gradient(to top, var(--bg), transparent 42%);
  z-index: 1;
}
.panel-media img, .project-panel > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1100ms ease, filter 1100ms ease;
}
.panel.is-active .panel-media img, .project-panel.is-active > img { transform: scale(1); }
.hero-panel { display: grid; align-items: center; }
.hero-copy-block { max-width: 980px; }
.eyebrow { margin: 0 0 18px; color: var(--lime); font-size: 13px; font-weight: 900; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 1020px;
  margin-bottom: 24px;
  font-size: clamp(58px, 10.6vw, 150px);
  line-height: 0.82;
  font-weight: 900;
  text-transform: uppercase;
}
h2 {
  margin-bottom: 22px;
  font-size: clamp(44px, 7.6vw, 128px);
  line-height: 0.88;
  font-weight: 900;
  text-transform: uppercase;
}
h3 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 62px);
  line-height: 0.94;
  font-weight: 900;
  text-transform: uppercase;
}
p { color: var(--muted); font-size: clamp(17px, 1.65vw, 24px); line-height: 1.55; }
.hero-copy-block p:not(.eyebrow), .wide-copy p, .statement-copy p { max-width: 720px; }
.hero-actions { gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
}
.button.primary { background: var(--ink); color: #050607; }
.button.ghost { border: 1px solid var(--line); }
.panel-footer {
  position: absolute;
  left: clamp(18px, 7vw, 112px);
  right: clamp(18px, 7vw, 112px);
  bottom: 54px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  color: rgba(244,247,242,0.58);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.about-panel, .services-panel {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(420px, 1fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: center;
  background: #f0f4ea;
  color: #050607;
}
.about-panel::after, .services-panel::after { -webkit-text-stroke-color: rgba(5,6,7,0.12); }
.about-panel .eyebrow, .services-panel .eyebrow { color: #445300; }
.about-panel p, .services-panel p { color: #3f4743; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 34px; }
.mini-stats span {
  border-top: 1px solid rgba(5,6,7,0.18);
  padding-top: 14px;
  color: #3f4743;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.mini-stats strong { display: block; color: #050607; font-size: 34px; }
.work-intro {
  display: grid;
  align-items: center;
  background: radial-gradient(circle at 78% 32%, rgba(56,217,255,0.18), transparent 32%), linear-gradient(135deg, #050607, #11161a 62%, #15191b);
}
.wide-copy { max-width: 980px; }
.project-panel { display: block; background: #050607; }
.project-panel > img {
  position: absolute;
  inset: 0;
  opacity: 0.82;
  filter: saturate(0.96) contrast(1.06);
}
.project-panel.alternate::after {
  background: linear-gradient(270deg, rgba(5,6,7,0.95), rgba(5,6,7,0.54) 48%, rgba(5,6,7,0.15)), linear-gradient(to top, var(--bg), transparent 42%);
}
.project-content {
  display: flex;
  min-height: 100%;
  max-width: 760px;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(44px, 8vw, 84px);
}
.project-panel.alternate .project-content { margin-left: auto; }
.project-content h2 { max-width: 780px; text-shadow: 0 24px 80px rgba(0,0,0,0.55); }
.project-content span {
  width: fit-content;
  border-bottom: 1px solid var(--lime);
  padding-bottom: 6px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.service-stack { display: grid; gap: 24px; }
.service-stack section {
  display: grid;
  grid-template-columns: 72px 0.9fr 1fr;
  gap: 22px;
  align-items: start;
  border-top: 1px solid rgba(5,6,7,0.18);
  padding-top: 22px;
}
.service-stack span { color: #5c695d; font-size: 13px; font-weight: 900; }
.service-stack p { margin-bottom: 0; font-size: 16px; }
.contact-panel {
  display: grid;
  align-items: center;
  background: linear-gradient(135deg, #050607, #11161a 55%, #17201a);
}
.contact-inner { max-width: 1080px; }
.contact-link { display: inline-flex; margin: 12px 0 28px; color: var(--lime); font-size: clamp(22px, 4vw, 54px); font-weight: 900; word-break: break-word; }
[data-reveal], .panel-copy, .split-copy, .statement-copy, .project-content, .service-stack, .contact-inner {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms ease, transform 800ms ease;
}
[data-reveal].is-visible, .panel.is-active .panel-copy, .panel.is-active .split-copy, .panel.is-active .statement-copy, .panel.is-active .project-content, .panel.is-active .service-stack, .panel.is-active .contact-inner {
  opacity: 1;
  transform: translateY(0);
}
@media (max-height: 760px) and (min-width: 941px) {
  .panel { padding-top: 92px; padding-bottom: 52px; }
  h1 { margin-bottom: 16px; font-size: clamp(52px, 9.5vw, 122px); }
  .eyebrow { margin-bottom: 12px; }
  p { line-height: 1.42; }
  .hero-actions { margin-top: 22px; }
  .panel-footer { bottom: 28px; }
}
@media (max-width: 940px) {
  .topbar { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .side-index { display: none; }
  .horizontal-stage { height: auto; }
  .horizontal-track { position: relative; display: block; width: 100%; height: auto; transform: none !important; transition: none; }
  .panel { width: 100%; height: auto; min-height: 100svh; padding: 110px 18px 72px; }
  .panel-copy, .split-copy, .statement-copy, .project-content, .service-stack, .contact-inner {
    opacity: 1;
    transform: none;
  }
  .panel-media img, .project-panel > img { transform: none; }
  .about-panel, .services-panel { grid-template-columns: 1fr; }
  .project-panel { min-height: 92svh; }
  .project-panel.alternate .project-content { margin-left: 0; }
  .service-stack section { grid-template-columns: 1fr; gap: 8px; }
  .mini-stats { grid-template-columns: 1fr; }
  .progress-rail { display: none; }
}
@media (max-width: 620px) {
  .topbar { padding: 16px; }
  .nav-cta { display: none; }
  h1 { font-size: clamp(54px, 18vw, 92px); }
  h2 { font-size: clamp(42px, 16vw, 76px); }
  .panel::after { right: 18px; bottom: 28px; font-size: 96px; }
  .panel-footer { position: static; margin-top: 46px; flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .horizontal-track, [data-reveal], .panel-copy, .split-copy, .statement-copy, .project-content, .service-stack, .contact-inner, .panel-media img, .project-panel > img { transition: none; }
}
