:root {
  color-scheme: dark;
  --bg: #050505;
  --ink: #f4efe7;
  --muted: rgba(244, 239, 231, 0.66);
  --line: rgba(244, 239, 231, 0.14);
  --panel: rgba(255, 255, 255, 0.065);
  --hot: #d6ff48;
  --green: #46ff87;
  --blue: #7ea7ff;
  --orange: #ff7b39;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  position: relative;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 10%, rgba(214, 255, 72, 0.14), transparent 24rem),
    radial-gradient(circle at 86% 28%, rgba(126, 167, 255, 0.16), transparent 28rem),
    linear-gradient(180deg, #050505, #0b0b0c 46%, #050505);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(115deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(35deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 5px 5px, 7px 7px;
  mix-blend-mode: screen;
}

.cursor-light {
  position: fixed;
  top: var(--cursor-y, 50%);
  left: var(--cursor-x, 50%);
  z-index: 0;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(214, 255, 72, 0.12), transparent 62%);
  transform: translate(-50%, -50%);
}

.scroll-line {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 0;
  height: 100%;
  pointer-events: none;
  opacity: 0.72;
  contain: paint;
}

.scroll-line svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.scroll-line path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.scroll-line-base {
  display: none;
}

.scroll-line-draw {
  stroke: rgba(214, 255, 72, 0.96);
  stroke-width: 5.2;
  stroke-linecap: butt;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(214, 255, 72, 0.34));
}

.scroll-line-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(214, 255, 72, 0.96);
  box-shadow: 0 0 0 8px rgba(214, 255, 72, 0.07), 0 0 18px rgba(214, 255, 72, 0.34);
  transform: translate3d(var(--scroll-dot-x, 8vw), var(--scroll-dot-y, 14vh), 0) translate(-50%, -50%);
  will-change: transform;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: rgba(5, 5, 5, 0.46);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.topbar.is-raised {
  border-color: var(--line);
  background: rgba(5, 5, 5, 0.82);
}

.brand,
.topbar nav,
.button {
  display: inline-flex;
  align-items: center;
}

.brand {
  min-width: 0;
  gap: 10px;
  text-decoration: none;
}

.brand span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--hot);
  font-size: 0.72rem;
  font-weight: 900;
}

.brand strong {
  overflow: hidden;
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar nav {
  gap: clamp(12px, 4vw, 28px);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.topbar nav a {
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: end;
  padding: 128px clamp(18px, 5vw, 72px) 72px;
}

.hero::before {
  position: absolute;
  inset: 16% 0 auto;
  z-index: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(244, 239, 231, 0.22), transparent);
}

.hero-copy,
.hero-panel,
.section,
.contact {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--hot);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  font-size: clamp(3.25rem, 12.8vw, 10rem);
  line-height: 0.86;
}

h2 {
  max-width: 930px;
  font-size: clamp(2.5rem, 9.8vw, 7.6rem);
  line-height: 0.9;
}

h3 {
  margin: 0;
  font-size: 1.2rem;
}

.hero-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow),
.contact-copy p,
.service-card p,
.process-card p,
.timeline-item p,
.work-card p {
  color: var(--muted);
  line-height: 1.68;
}

.hero-copy p:not(.eyebrow) {
  max-width: 650px;
  margin: 24px 0 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.button {
  min-height: 50px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button.primary {
  border-color: transparent;
  background: var(--hot);
  color: #050505;
}

.button.ghost {
  color: var(--ink);
}

.button.dark {
  background: #111;
}

.hero-panel {
  display: grid;
  gap: 12px;
}

.hero-panel div {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.metric {
  color: var(--hot);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  line-height: 0.8;
}

.scroll-cue {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: 26px;
  display: grid;
  width: 46px;
  height: 72px;
  place-items: start center;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.scroll-cue span {
  width: 5px;
  height: 18px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--hot);
  animation: cue 1.5s ease-in-out infinite;
}

.section {
  padding: clamp(74px, 11vw, 138px) clamp(18px, 5vw, 72px);
}

.section-heading {
  position: relative;
  z-index: 2;
  max-width: 100%;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: clamp(1rem, 1.6vw, 1.14rem);
}

.work-section {
  position: relative;
  overflow: hidden;
}

.work-viewport {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin-right: calc(clamp(18px, 5vw, 72px) * -1);
  margin-left: calc(clamp(18px, 5vw, 72px) * -1);
  padding-left: clamp(18px, 5vw, 72px);
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(214, 255, 72, 0.5) rgba(255, 255, 255, 0.08);
  touch-action: pan-x pan-y;
}

.work-viewport::-webkit-scrollbar {
  height: 8px;
}

.work-viewport::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
}

.work-viewport::-webkit-scrollbar-thumb {
  background: rgba(214, 255, 72, 0.58);
  border-radius: 999px;
}

.work-track {
  display: flex;
  gap: 14px;
  width: max-content;
}

.work-hint {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.work-card {
  flex: 0 0 clamp(310px, 58vw, 500px);
  min-height: min(52vh, 500px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(214, 255, 72, 0.12), transparent 42%),
    rgba(12, 13, 13, 0.88);
  backdrop-filter: blur(12px);
}

.work-card span,
.service-card span,
.timeline-item span {
  color: var(--hot);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.work-card h3 {
  margin-top: auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5.2vw, 4rem);
  line-height: 0.92;
}

.work-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.work-card li,
.stack-cloud span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.services-section,
.process-section,
.stack-section {
  background: rgba(255, 255, 255, 0.03);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

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

.service-card {
  min-height: 292px;
}

.process-card {
  min-height: 260px;
}

.service-card,
.process-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: rgba(5, 5, 5, 0.64);
}

.process-card span {
  color: var(--hot);
  font-size: 0.82rem;
  font-weight: 900;
}

.process-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.9;
}

.timeline {
  display: grid;
  gap: 12px;
  max-width: 1040px;
}

.timeline-item {
  border-top: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(5, 5, 5, 0.64);
}

.timeline-item h3 {
  margin-top: 10px;
}

.stack-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-cloud span {
  color: var(--ink);
  font-size: clamp(1rem, 3vw, 1.7rem);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.74fr);
  gap: clamp(22px, 6vw, 82px);
  align-items: end;
  padding: clamp(82px, 13vw, 160px) clamp(18px, 5vw, 72px);
  background:
    radial-gradient(circle at 75% 24%, rgba(255, 123, 57, 0.16), transparent 24rem),
    #060606;
}

.contact-actions {
  display: grid;
  gap: 10px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 680ms ease, transform 680ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

@keyframes cue {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: translateY(24px);
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .scroll-line {
    opacity: 0.48;
  }

  .scroll-line-draw {
    stroke-width: 4.4;
    filter: drop-shadow(0 0 4px rgba(214, 255, 72, 0.28));
  }

  .scroll-line-dot {
    width: 12px;
    height: 12px;
  }

  .topbar {
    padding: 14px 16px;
  }

  .brand strong {
    display: none;
  }

  .topbar nav {
    gap: 10px;
    font-size: 0.76rem;
  }

  .hero {
    min-height: 100svh;
    grid-template-columns: 1fr;
    align-items: end;
    padding: 112px 18px 78px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-panel div {
    min-height: 120px;
  }

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .scroll-cue {
    right: 18px;
  }

  .section,
  .contact {
    padding-right: 18px;
    padding-left: 18px;
  }

  .work-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .work-viewport {
    margin-right: -18px;
    margin-left: -18px;
    padding-left: 18px;
  }

  .work-card {
    flex-basis: 76vw;
    min-height: 430px;
  }

  .services-grid,
  .process-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  footer {
    display: block;
  }

  footer span:last-child {
    display: block;
    margin-top: 8px;
  }
}

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

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

  .scroll-line {
    display: none;
  }
}
