:root {
  --bg: #05080c;
  --bg-2: rgba(8, 16, 24, 0.72);
  --card: rgba(12, 22, 32, 0.88);
  --text: #eef4f6;
  --muted: #8aa0ab;
  --line: rgba(94, 227, 214, 0.14);
  --cyan: #5ce1d6;
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --display: "Sora", "Plus Jakarta Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.tech-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 55% at 12% -8%, rgba(0, 196, 220, 0.12), transparent 52%),
    radial-gradient(ellipse 50% 40% at 92% 108%, rgba(40, 90, 255, 0.12), transparent 50%),
    #05080c;
}

.tech-bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.82;
}

.tech-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(92, 225, 214, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 225, 214, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 70% 18%, #000 0%, transparent 72%);
}

.tech-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 55% 48% at 28% 22%, rgba(5, 8, 12, 0.42), transparent 68%),
    linear-gradient(180deg, transparent 52%, rgba(5, 8, 12, 0.58) 100%);
}

.hero,
main,
.foot {
  position: relative;
  z-index: 1;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 40;
  background: var(--cyan);
  color: var(--bg);
  padding: 0.5rem 0.8rem;
}

.skip:focus {
  top: 1rem;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 4.5vw;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.top.is-stuck {
  background: rgba(5, 8, 12, 0.78);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  min-width: max-content;
}

.logo:hover {
  color: #fff;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.logo-word {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.top-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
}

.top .cta {
  padding: 0.62rem 1.25rem;
  font-size: 0.92rem;
}

.nav-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(12, 22, 32, 0.6);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 1.5px;
  margin: 0.22rem auto;
  background: #fff;
}

.top nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.15rem;
}

.top nav a {
  padding: 0.5rem 0.85rem;
  color: rgba(244, 247, 248, 0.72);
  font-size: 0.98rem;
  font-weight: 500;
  border-radius: 999px;
}

.top nav a:hover,
.top nav a.is-active {
  color: #fff;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  min-height: 100vh;
  overflow: hidden;
  background: transparent;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 8.5rem 6vw 8.5rem;
  max-width: 44rem;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.45rem, 4.8vw, 4.05rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.hero h1 em {
  font-style: normal;
  color: var(--cyan);
}

.hero-lede {
  margin: 1.35rem 0 0.85rem;
  max-width: 34rem;
  color: #d7e2e6;
  font-weight: 500;
  font-size: 1.22rem;
  line-height: 1.5;
}

.hero-sub {
  margin: 0 0 2rem;
  max-width: 42rem;
  color: #8fa3ab;
  font-size: 1.02rem;
  line-height: 1.65;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: max-content;
  padding: 0.9rem 1.7rem;
  border: 1.5px solid rgba(244, 247, 248, 0.5);
  border-radius: 999px;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.cta:hover {
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}

.cta-solid {
  background: #fff;
  border-color: #fff;
  color: var(--bg);
  animation: talk-pulse 3.2s ease-in-out infinite;
}

@keyframes talk-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(92, 225, 214, 0);
  }
  50% {
    box-shadow: 0 0 28px rgba(92, 225, 214, 0.28);
  }
}

.cta-solid:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--bg);
}

.cta-ghost {
  background: transparent;
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.toptal-line {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin: 0 0 1.15rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid rgba(92, 225, 214, 0.45);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(92, 225, 214, 0.08);
}

.toptal-line:hover {
  color: #fff;
  border-color: var(--cyan);
  background: rgba(92, 225, 214, 0.16);
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  filter: contrast(1.1) saturate(0.85);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 100%);
  animation: photo-in 1.4s ease both;
}

@keyframes photo-in {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, transparent 28%),
    linear-gradient(180deg, rgba(7, 24, 33, 0.15), rgba(14, 90, 110, 0.28) 55%, rgba(5, 8, 12, 0.82)),
    linear-gradient(135deg, rgba(126, 224, 214, 0.22), transparent 46%, rgba(186, 92, 140, 0.22));
  pointer-events: none;
}

.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 6.5rem 0;
}

.band::before {
  content: "";
  position: absolute;
  inset: -15%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 40% at 12% 20%, rgba(92, 225, 214, 0.08), transparent 60%);
  animation: mesh-drift 22s ease-in-out infinite;
}

.band-alt {
  background: #070b10;
}

#expertise {
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(92, 225, 214, 0.07), transparent 52%),
    #070b10;
}

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-top: 0.4rem;
}

.services article {
  padding: 1.45rem 1.3rem 1.3rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
}

.service-tag {
  margin: 0 0 0.7rem;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.services h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.services p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

#about {
  background:
    radial-gradient(ellipse 80% 70% at 0% 0%, rgba(92, 225, 214, 0.08), transparent 52%),
    var(--bg);
}

#path {
  background:
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(64, 110, 255, 0.12), transparent 55%),
    #070b10;
}

#path::before {
  background:
    linear-gradient(rgba(92, 225, 214, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 225, 214, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 70%);
}

#work {
  background:
    radial-gradient(ellipse 60% 50% at 10% 100%, rgba(92, 225, 214, 0.07), transparent 50%),
    var(--bg);
}

#words {
  background:
    radial-gradient(ellipse 50% 40% at 0% 50%, rgba(92, 225, 214, 0.06), transparent 55%),
    #070b10;
  overflow: visible;
}

#notes {
  background:
    radial-gradient(ellipse 55% 45% at 100% 0%, rgba(92, 225, 214, 0.07), transparent 50%),
    var(--bg);
}

#built {
  background:
    radial-gradient(ellipse 65% 50% at 0% 90%, rgba(64, 110, 255, 0.1), transparent 52%),
    #070b10;
}

#contact {
  background:
    radial-gradient(ellipse 55% 50% at 90% 80%, rgba(92, 225, 214, 0.12), transparent 52%),
    var(--bg);
}

@keyframes mesh-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, 1.5%, 0) scale(1.06);
  }
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 12vw));
  margin: 0 auto;
}

.label {
  margin: 0 0 0.85rem;
  color: var(--cyan);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.band h2,
.closer h2 {
  margin: 0 0 1.2rem;
  max-width: 16ch;
  font-family: var(--display);
  font-size: clamp(2.15rem, 4vw, 3.05rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.lead {
  max-width: 42rem;
  margin: 0 0 2.4rem;
  color: var(--muted);
  font-weight: 400;
  font-size: 1.16rem;
}

.pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.pills article,
.card {
  padding: 1.5rem 1.4rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.pills article:hover,
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(92, 225, 214, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.pills h3,
.card h3,
.built-item h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.pills p,
.card p,
.built-item p,
.path,
.edu {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin-top: 2rem;
}

.card-stat {
  margin: 0 0 0.7rem;
  color: var(--cyan);
  font-family: var(--display);
  font-size: 2.45rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.card-meta {
  margin-top: 1rem !important;
  font-size: 0.82rem;
}

.card > .card-meta:first-child {
  margin-top: 0 !important;
  margin-bottom: 0.55rem;
  color: var(--cyan);
}

.quote-slider {
  margin-top: 2.2rem;
  width: 100%;
  max-width: none;
}

.quote-viewport {
  position: relative;
  overflow: hidden;
  padding: 1.2rem 0 0.4rem;
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.quote-track {
  display: grid;
  min-height: 22rem;
}

.quote-track blockquote {
  grid-area: 1 / 1;
  justify-self: center;
  width: min(40rem, 64%);
  margin: 0;
  padding: 2.1rem 2rem 1.7rem;
  background: #101820;
  border: 1px solid rgba(92, 225, 214, 0.16);
  border-radius: 1.35rem;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.82);
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease,
    box-shadow 0.45s ease,
    border-color 0.45s ease;
}

.quote-track blockquote.is-prev,
.quote-track blockquote.is-next {
  opacity: 0.4;
  z-index: 1;
  pointer-events: auto;
  cursor: pointer;
}

.quote-track blockquote.is-prev {
  transform: translateX(-62%) scale(0.82);
}

.quote-track blockquote.is-next {
  transform: translateX(62%) scale(0.82);
}

.quote-track blockquote.is-on {
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  border-color: rgba(92, 225, 214, 0.42);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.42),
    0 0 40px rgba(92, 225, 214, 0.08);
}

.quote-track blockquote::before {
  content: "“";
  display: block;
  margin: 0 0 0.55rem;
  color: var(--cyan);
  font-family: var(--display);
  font-size: 3.4rem;
  line-height: 0.6;
}

.quote-track blockquote.is-prev:hover,
.quote-track blockquote.is-next:hover {
  opacity: 0.62;
}

.quote-track blockquote p {
  margin: 0 0 1.4rem;
  color: #e8eef0;
  font-weight: 400;
  font-size: 1.08rem;
  line-height: 1.7;
}

.quote-track footer {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(92, 225, 214, 0.12);
}

.quote-avatar {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: 999px;
  background: rgba(92, 225, 214, 0.12);
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.quote-track cite {
  font-style: normal;
  font-weight: 600;
}

.quote-track footer span:not(.quote-avatar) {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.quote-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.35rem;
}

.quote-btn {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.quote-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.quote-dots {
  display: flex;
  gap: 0.45rem;
}

.quote-dots button {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.quote-dots button.is-on {
  background: var(--cyan);
}

.notes {
  list-style: none;
  margin: 1.6rem 0 1.2rem;
  padding: 0;
}

.notes li {
  border-top: 1px solid var(--line);
}

.notes a {
  display: block;
  padding: 1.05rem 0;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 500;
  transition: color 0.2s ease, padding-left 0.25s ease;
}

.notes a:hover {
  color: var(--cyan);
  padding-left: 0.4rem;
}

.text-link {
  font-weight: 600;
}

.role {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1.4rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
}

.role-when {
  margin: 0.35rem 0 0;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kind {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.22rem 0.6rem;
  border: 1px solid rgba(126, 224, 214, 0.45);
  border-radius: 999px;
  color: var(--cyan) !important;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card .kind {
  margin-bottom: 0.7rem;
}

.role h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.role .kind {
  margin-bottom: 0.75rem;
}

.role p {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
}

.role .card-meta {
  margin-top: 0.9rem !important;
}

.edu {
  margin-top: 1.2rem;
  font-size: 0.92rem;
}

.closer {
  padding-bottom: 5rem;
}

.closer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3.2rem 4rem;
  align-items: center;
}

.closer .hello {
  margin: 0 0 0.45rem;
  color: var(--cyan);
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.closer h2 {
  max-width: 16ch;
}

.closer-copy {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-weight: 400;
}

.toptal-stage {
  position: relative;
  display: grid;
  place-items: end center;
  width: 280px;
  min-height: 300px;
  padding-bottom: 2.2rem;
  flex-shrink: 0;
  overflow: visible;
}

.toptal-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1.35rem;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(37, 169, 239, 0.22) 0%,
    rgba(6, 103, 255, 0.08) 42%,
    transparent 70%
  );
  transform: translateX(-50%);
  pointer-events: none;
}

.toptal-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1.15rem;
  width: 150px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(90, 196, 255, 0.7) 0%,
    rgba(37, 169, 239, 0.28) 42%,
    transparent 72%
  );
  transform: translateX(-50%);
  filter: blur(5px);
  pointer-events: none;
  animation: badge-light 4.8s ease-in-out infinite;
}

.toptal-badge {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-bottom: 1.4rem;
  padding: 7px;
  background: #25a9ef;
  clip-path: polygon(50% 0, 100% 24%, 100% 76%, 50% 100%, 0 76%, 0 24%);
  color: #fff;
  will-change: transform, filter;
  animation: badge-float 4.8s ease-in-out infinite;
}

@keyframes badge-float {
  0%,
  100% {
    transform: translateY(0);
    filter:
      drop-shadow(0 12px 16px rgba(6, 30, 96, 0.72))
      drop-shadow(0 0 14px rgba(37, 169, 239, 0.38));
  }
  50% {
    transform: translateY(-16px);
    filter:
      drop-shadow(0 28px 28px rgba(6, 30, 96, 0.42))
      drop-shadow(0 0 22px rgba(37, 169, 239, 0.5));
  }
}

@keyframes badge-light {
  0%,
  100% {
    width: 118px;
    height: 16px;
    opacity: 0.95;
    filter: blur(4px);
    bottom: 1.35rem;
  }
  50% {
    width: 210px;
    height: 36px;
    opacity: 0.38;
    filter: blur(12px);
    bottom: 0.85rem;
  }
}

.toptal-badge:hover {
  color: #fff;
}

.toptal-badge-inner {
  width: 228px;
  padding: 28px 0 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  background: linear-gradient(153deg, #0667ff 18%, #204ecf 40%, #0f256e 80%);
  clip-path: polygon(50% 0, 100% 24%, 100% 76%, 50% 100%, 0 76%, 0 24%);
}

.toptal-badge-inner strong {
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.toptal-rule {
  width: 120px;
  height: 1px;
  background: #25a9ef;
}

.toptal-vetted {
  font-size: 16px;
  opacity: 0.8;
  margin-bottom: -6px;
}

.toptal-hire {
  display: inline-flex;
  margin-top: 4px;
  padding: 4px 20px;
  border-radius: 6px;
  background: #296bff;
  font-size: 16px;
  font-weight: 500;
}

.closer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.8rem 0 1.4rem;
}

.closer-links {
  display: flex;
  gap: 1.3rem;
  color: var(--muted);
}

.foot {
  padding: 1.6rem 6vw 2.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.tech-stack {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.4rem;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.8rem 0.4rem;
  width: min(1100px, calc(100% - 12vw));
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.tech-stack li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: #8a969e;
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.tech-stack svg {
  width: 32px;
  height: 32px;
  display: block;
}

.tech-stack li.wide svg {
  width: 44px;
}

.tech-stack li:hover {
  color: var(--cyan);
}

.foot p {
  width: min(1100px, 100%);
  margin: 0 auto;
}

@media (max-width: 1100px) {
  .top {
    display: flex;
    grid-template-columns: none;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
  }

  .logo {
    grid-column: auto;
    grid-row: auto;
    flex: 0 1 auto;
  }

  .top-end {
    grid-column: auto;
    grid-row: auto;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 22;
  }

  .top.is-open .nav-toggle span:first-child {
    transform: translateY(2.5px) rotate(40deg);
  }

  .top.is-open .nav-toggle span:last-child {
    transform: translateY(-2.5px) rotate(-40deg);
  }

  .nav-toggle span {
    transition: transform 0.2s ease;
  }

  .services {
    grid-template-columns: 1fr 1fr;
  }

  .top nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 21;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 5.4rem 6vw 2.4rem;
    background: #05080c;
    border-bottom: 0;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    overflow: auto;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }

  .top.is-open nav {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .top.is-open .logo,
  .top.is-open .top-end {
    position: relative;
    z-index: 22;
  }

  .top nav a {
    font-size: 1.2rem;
    padding: 0.55rem 0.15rem;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: auto;
    padding-top: 4.6rem;
    overflow-x: hidden;
  }

  .hero-visual {
    order: -1;
    z-index: 1;
    height: clamp(17rem, 46vh, 28rem);
    min-height: clamp(17rem, 46vh, 28rem);
  }

  .hero-visual img {
    object-fit: cover;
    object-position: center 28%;
    -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 68%, transparent 100%);
    animation: none;
    transform: none;
    opacity: 1;
  }

  .hero-visual::after {
    background:
      linear-gradient(180deg, transparent 42%, rgba(5, 8, 12, 0.78) 100%),
      linear-gradient(135deg, rgba(126, 224, 214, 0.16), transparent 52%);
  }

  .hero-copy {
    padding: 1.8rem 6vw 1.2rem;
    max-width: none;
  }

  .hero-sub,
  .hero-lede {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .tech-stack {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 2;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0.35rem 4vw 1.8rem;
    gap: 0.95rem 0.4rem;
    box-sizing: border-box;
  }

  .tech-stack li {
    min-width: 0;
  }
}

@media (max-width: 900px) {
  .quote-track blockquote {
    width: min(40rem, 88%);
  }

  .quote-track blockquote.is-prev,
  .quote-track blockquote.is-next {
    opacity: 0;
    pointer-events: none;
  }

  .pills,
  .services,
  .work-grid,
  .role,
  .closer-grid {
    grid-template-columns: 1fr;
  }

  .toptal-stage {
    margin: 0.4rem auto 0;
  }
}

@media (max-width: 640px) {
  .top .top-talk {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero-visual {
    height: clamp(15.5rem, 42vh, 22rem);
    min-height: clamp(15.5rem, 42vh, 22rem);
  }

  .hero-copy {
    padding: 1.4rem 6vw 0.8rem;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .toptal-line {
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    padding: 0.34rem 0.7rem;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .cta {
    width: 100%;
  }

  .tech-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 0.55rem;
    padding-bottom: 1.5rem;
  }

  .tech-stack svg {
    width: 28px;
    height: 28px;
  }

  .tech-stack li.wide svg {
    width: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .tech-bg::before,
  .hero-visual img,
  .toptal-badge,
  .toptal-stage::after,
  .reveal,
  .reveal-section,
  .cta-solid,
  .band::before {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .quote-track blockquote {
    transition: none;
    filter: none;
  }

  #ai-net {
    display: none;
  }
}

html.js .hero-copy .reveal {
  opacity: 0;
  transform: translateY(16px);
}

html.js .hero-copy .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .hero-copy .reveal:nth-child(1) {
  transition-delay: 0.05s;
}
html.js .hero-copy .reveal:nth-child(2) {
  transition-delay: 0.14s;
}
html.js .hero-copy .reveal:nth-child(3) {
  transition-delay: 0.22s;
}
html.js .hero-copy .reveal:nth-child(4) {
  transition-delay: 0.3s;
}
html.js .hero-copy .reveal:nth-child(5) {
  transition-delay: 0.38s;
}

html.js .reveal-section {
  opacity: 0;
  transform: translateY(28px);
}

html.js .reveal-section.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
