*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --deep: #0A1020;
  --navy: #0F172A;
  --navy-mid: #1E293B;
  --abyss: #060C18;

  --snow: #FFFFFF;
  --ice: #F8FAFC;
  --frost: #E2E8F0;

  --ink: #0F172A;
  --stone: #475569;
  --pebble: #64748B;
  --mist: #94A3B8;

  --teal: #0D9488;
  --teal-light: #14B8A6;
  --teal-bright: #2DD4BF;
  --violet: #8B5CF6;
  --violet-light: #A78BFA;

  --peak-far: #0E1A30;
  --peak-mid: #111F38;

  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --wrap: 1100px;
  --px: clamp(1.25rem, 5vw, 2.5rem);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 3.75rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  color: var(--stone);
  background: var(--snow);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--px);
}


/* ================================================
   Section Labels
   ================================================ */

.section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1.5px;
  background: var(--teal);
  flex-shrink: 0;
}

.section-label--light {
  color: var(--teal-light);
}

.section-label--light::before {
  background: var(--teal-light);
}


/* ================================================
   Navigation
   ================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 16, 32, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.75rem;
}

.nav__brand {
  display: flex;
  align-items: center;
}

.nav__badge {
  border-radius: 6px;
  transition: transform 0.2s;
}

.nav__brand:hover .nav__badge {
  transform: scale(1.06);
}

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  position: relative;
  transition: color 0.2s;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--teal-light);
  transition: width 0.25s;
}

.nav__links a:hover {
  color: rgba(255, 255, 255, 0.95);
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--snow);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav__toggle.active span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav__toggle.active span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}


/* ================================================
   Hero
   ================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: var(--deep);
  overflow: hidden;
}

.hero__sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 20% 15%, rgba(13, 148, 136, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 70% 45% at 65% 10%, rgba(139, 92, 246, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse 50% 35% at 40% 25%, rgba(20, 184, 166, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 120% 60% at 50% 100%, rgba(14, 26, 48, 0.8) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 3;
  padding-top: 6rem;
  padding-bottom: 12rem;
}

.hero__pre {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(148, 163, 184, 0.6);
  margin-bottom: 1.75rem;
}

.hero__title {
  font-size: clamp(3.75rem, 11vw, 7.5rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 0.95;
  color: var(--snow);
  margin-bottom: 1.75rem;
}

.hero__accent {
  width: 4.5rem;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-light), var(--violet-light));
  border-radius: 2px;
  margin-bottom: 1.75rem;
}

.hero__tagline {
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  line-height: 1.65;
  color: var(--mist);
  max-width: 32rem;
  margin-bottom: 2.5rem;
}

.hero__cta {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--snow);
  padding: 0.875rem 2rem;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.hero__cta:hover {
  border-color: var(--teal);
  background: rgba(13, 148, 136, 0.1);
  color: var(--teal-bright);
}


/* ---- Mountains ---- */

.hero__mountains {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(180px, 35vh, 400px);
  z-index: 2;
  pointer-events: none;
}

.hero__peak {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.hero__peak--far {
  fill: var(--peak-far);
  opacity: 0.7;
}

.hero__peak--mid {
  fill: var(--peak-mid);
  opacity: 0.85;
}

.hero__peak--near {
  fill: var(--snow);
}


/* ================================================
   About
   ================================================ */

.about {
  padding-top: clamp(5rem, 10vw, 8rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.about__layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: start;
}

.about__aside {
  padding-right: 2.5rem;
  border-right: 1px solid var(--frost);
}

.stat {
  padding: 1.5rem 0;
}

.stat + .stat {
  border-top: 1px solid var(--frost);
}

.stat__number {
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  color: var(--teal);
  font-feature-settings: 'tnum' 1;
}

.stat__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--pebble);
  margin-top: 0.5rem;
}

.about__lede {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 1.75rem;
}

.about__prose p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--stone);
}

.about__prose p + p {
  margin-top: 1rem;
}


/* ================================================
   Tech Band
   ================================================ */

.tech {
  background: var(--abyss);
  border-top: 1px solid rgba(13, 148, 136, 0.15);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
  padding-block: 1.125rem;
  overflow: hidden;
}

.tech__inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--px);
}

.tech__inner span {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.4);
  white-space: nowrap;
  transition: color 0.2s;
}

.tech__inner span:hover {
  color: var(--teal-light);
}


/* ================================================
   Expertise
   ================================================ */

.expertise {
  background: var(--navy);
  position: relative;
  padding-top: clamp(5rem, 10vw, 7rem);
  padding-bottom: clamp(5rem, 10vw, 7rem);
}

.expertise::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(139, 92, 246, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 50%, rgba(13, 148, 136, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.expertise__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}

.expertise__col {
  padding-left: 1.25rem;
  border-left: 2px solid var(--teal);
}

.expertise__col:nth-child(2) {
  border-left-color: var(--violet);
}

.expertise h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--snow);
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
}

.expertise li {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  padding-block: 0.375rem;
  transition: color 0.15s;
}

.expertise li:hover {
  color: rgba(255, 255, 255, 0.9);
}


/* ================================================
   Clients
   ================================================ */

.clients {
  background: var(--ice);
  padding-top: clamp(5rem, 10vw, 7rem);
  padding-bottom: clamp(5rem, 10vw, 7rem);
}

.clients__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--frost);
  border: 1px solid var(--frost);
  border-radius: 6px;
  overflow: hidden;
}

.client {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--snow);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  position: relative;
  transition: background 0.25s;
}

.client::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--teal), var(--violet));
  transition: height 0.3s;
}

.client:hover {
  background: var(--ice);
}

.client:hover::before {
  height: 100%;
}

.client__name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}

.client__role {
  font-size: 0.75rem;
  color: var(--stone);
  line-height: 1.4;
}

.client__detail {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--teal);
  margin-top: 0.25rem;
}


/* ================================================
   Contact
   ================================================ */

.contact {
  background:
    radial-gradient(ellipse 70% 60% at 80% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 50%, rgba(13, 148, 136, 0.04) 0%, transparent 50%),
    var(--navy);
  padding-top: clamp(5rem, 10vw, 7rem);
  padding-bottom: clamp(5rem, 10vw, 7rem);
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}

.contact h3 {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 0.875rem;
}

.contact__email {
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--snow);
  border-bottom: 1.5px solid var(--teal);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.contact__email:hover {
  color: var(--teal-bright);
  border-bottom-color: var(--teal-bright);
}

.contact__phone {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.contact__phone:hover {
  color: var(--snow);
}

.contact__links {
  display: flex;
  gap: 1.25rem;
}

.contact__links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  position: relative;
  transition: color 0.2s;
}

.contact__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--violet-light);
  transition: width 0.25s;
}

.contact__links a:hover {
  color: var(--snow);
}

.contact__links a:hover::after {
  width: 100%;
}


/* ================================================
   Footer
   ================================================ */

.footer {
  background: var(--abyss);
  padding-block: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer__badge {
  border-radius: 8px;
  opacity: 0.5;
  transition: opacity 0.3s, transform 0.3s;
}

.footer__badge:hover {
  opacity: 0.8;
  transform: rotate(-3deg);
}

.footer__meta {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.footer__meta span {
  font-size: 0.6875rem;
  color: var(--pebble);
}

.footer__dot {
  color: rgba(100, 116, 139, 0.3);
}


/* ================================================
   Reveal Animation
   ================================================ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.expertise__col.reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.expertise__col.reveal:nth-child(3) {
  transition-delay: 0.2s;
}


/* ================================================
   Responsive
   ================================================ */

@media (max-width: 960px) {
  .about__layout {
    grid-template-columns: 180px 1fr;
    gap: 3rem;
  }

  .about__aside {
    padding-right: 2rem;
  }

  .clients__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 3.75rem;
    left: 0;
    right: 0;
    background: rgba(10, 16, 32, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.25rem var(--px);
    gap: 1rem;
  }

  .nav__links a::after { display: none; }

  .nav__links.open {
    display: flex;
  }

  .nav__toggle {
    display: flex;
  }

  .hero__content {
    padding-bottom: 10rem;
  }

  .hero__title {
    font-size: clamp(2.75rem, 14vw, 4.5rem);
  }

  .about__layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about__aside {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--frost);
    padding-bottom: 2rem;
    margin-bottom: 2.5rem;
  }

  .stat {
    padding: 0;
    text-align: center;
  }

  .stat + .stat {
    border-top: none;
    border-left: 1px solid var(--frost);
  }

  .expertise__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .expertise__col.reveal:nth-child(2),
  .expertise__col.reveal:nth-child(3) {
    transition-delay: 0s;
  }

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

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .about__aside {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat + .stat {
    border-left: none;
  }

  .stat:nth-child(odd) + .stat {
    border-left: 1px solid var(--frost);
  }

  .stat:nth-child(n+3) {
    border-top: 1px solid var(--frost);
    padding-top: 1rem;
  }

  .clients__grid {
    grid-template-columns: 1fr;
  }

  .hero__mountains {
    height: clamp(120px, 25vh, 200px);
  }
}
