:root {
  --ink: #071018;
  --ink-2: #0d1b25;
  --graphite: #152430;
  --muted: #6b7884;
  --line: rgba(16, 34, 45, 0.12);
  --paper: #f7f9f8;
  --white: #ffffff;
  --teal: #16d6d1;
  --teal-dark: #079e9b;
  --silver: #d9e1e6;
  --shadow: 0 24px 70px rgba(2, 12, 20, 0.18);
  --radius: 8px;
  --max: 1904px;
  --page-gutter: clamp(22px, 4vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, sans-serif;
  line-height: 1.55;
}

body.nav-open {
  overflow: hidden;
}

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

img,
svg {
  display: block;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--page-gutter);
  color: var(--white);
  background: rgba(7, 16, 24, 0.34);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  transition: background 220ms ease, border-color 220ms ease, padding 220ms ease;
}

.site-header.scrolled {
  padding-block: 12px;
  background: rgba(7, 16, 24, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(22, 214, 209, 0.38);
  border-radius: 8px;
  color: var(--teal);
  background:
    radial-gradient(circle at 70% 26%, rgba(22, 214, 209, 0.22), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.brand-mark svg {
  width: 28px;
  height: 28px;
}

.mark-globe,
.mark-line,
.mark-link {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark-globe {
  opacity: 0.92;
  stroke-width: 2.4;
}

.mark-line {
  opacity: 0.55;
  stroke-width: 1.8;
}

.mark-node {
  fill: currentColor;
}

.mark-link {
  opacity: 0.7;
  stroke-width: 2;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: -3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 600;
}

.site-nav a {
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--white);
}

.nav-action {
  padding: 10px 16px;
  border: 1px solid rgba(22, 214, 209, 0.5);
  border-radius: 999px;
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px auto;
  background: currentColor;
  transition: transform 180ms ease;
}

.section-dark {
  color: var(--white);
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 128px var(--page-gutter) 92px;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 10, 16, 0.94) 0%, rgba(4, 12, 18, 0.75) 37%, rgba(4, 12, 18, 0.16) 75%),
    linear-gradient(0deg, rgba(3, 10, 16, 0.92), transparent 35%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 670px;
}

.domain,
.section-label {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1,
h2 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, sans-serif;
  font-weight: 760;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 640px;
  font-size: clamp(42px, 5vw, 68px);
}

h2 {
  font-size: clamp(34px, 4vw, 56px);
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 540px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(16px, 1.55vw, 19px);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #031114;
  background: var(--teal);
  box-shadow: 0 12px 34px rgba(22, 214, 209, 0.28);
}

.button-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.05);
}

.hero-footer {
  position: absolute;
  z-index: 2;
  right: var(--page-gutter);
  bottom: 34px;
  left: var(--page-gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.hero-footer span {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(4, 13, 18, 0.42);
  font-size: 12px;
  font-weight: 700;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.8fr);
  gap: clamp(34px, 8vw, 100px);
  width: calc(100% - var(--page-gutter) - var(--page-gutter));
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(66px, 8vw, 104px) 0 clamp(48px, 6vw, 78px);
}

.services,
.process,
.contact {
  padding: clamp(70px, 9vw, 116px) 0;
}

.services {
  padding-top: clamp(44px, 5vw, 72px);
  background:
    linear-gradient(180deg, rgba(22, 214, 209, 0.035), transparent 260px),
    var(--paper);
}

.intro-copy {
  align-self: end;
  color: #4c5b65;
  font-size: 18px;
}

.section-heading {
  width: calc(100% - var(--page-gutter) - var(--page-gutter));
  max-width: var(--max);
  margin: 0 auto 42px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: calc(100% - var(--page-gutter) - var(--page-gutter));
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 320px;
  padding: 30px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  background: var(--white);
  box-shadow: 0 16px 44px rgba(8, 28, 40, 0.08);
}

.icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 34px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--teal-dark);
  background: rgba(22, 214, 209, 0.1);
}

.icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card p,
.step p {
  color: var(--muted);
}

.work {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 1fr);
  gap: clamp(36px, 7vw, 92px);
  width: calc(100% - var(--page-gutter) - var(--page-gutter));
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(70px, 9vw, 116px) 0;
  align-items: center;
}

.work-copy p:not(.section-label) {
  color: #4c5b65;
  font-size: 18px;
}

.work-panel {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 85% 20%, rgba(22, 214, 209, 0.22), transparent 34%),
    linear-gradient(145deg, #071018, #172a36 64%, #0a161e);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.work-panel::before {
  content: "";
  position: absolute;
  inset: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-shell {
  position: absolute;
  top: 54px;
  left: 50%;
  z-index: 1;
  width: min(254px, 50%);
  aspect-ratio: 0.49;
  padding: 9px;
  border: 1px solid rgba(226, 238, 242, 0.34);
  border-radius: 42px;
  background:
    linear-gradient(145deg, rgba(245, 250, 252, 0.78), rgba(72, 86, 96, 0.2) 18%, rgba(3, 8, 12, 0.98) 52%),
    #070b0f;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.05),
    inset -9px 0 18px rgba(255, 255, 255, 0.12),
    0 34px 90px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%) rotate(-5deg);
}

.phone-shell::before,
.phone-shell::after {
  content: "";
  position: absolute;
  background: rgba(220, 233, 238, 0.28);
}

.phone-shell::before {
  right: -4px;
  top: 132px;
  width: 3px;
  height: 78px;
  border-radius: 999px;
}

.phone-shell::after {
  left: -4px;
  top: 110px;
  width: 3px;
  height: 46px;
  border-radius: 999px;
}

.phone-screen {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 58px 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(238, 250, 250, 0.96), rgba(218, 231, 236, 0.96)),
    #edf8f8;
}

.phone-screen::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  width: 86px;
  height: 25px;
  border-radius: 999px;
  background: #071018;
  transform: translateX(-50%);
  box-shadow: inset 18px 0 30px rgba(255, 255, 255, 0.08);
}

.phone-screen::after {
  content: "";
  position: absolute;
  right: 74px;
  bottom: 10px;
  left: 74px;
  height: 4px;
  border-radius: 999px;
  background: rgba(8, 28, 40, 0.24);
}

.status-bar,
.app-row,
.metric-strip span {
  border-radius: 999px;
  background: rgba(8, 28, 40, 0.16);
}

.status-bar {
  width: 54%;
  height: 10px;
  margin: 0 0 18px;
}

.app-card {
  border-radius: 20px;
  background:
    radial-gradient(circle at 74% 20%, rgba(255, 255, 255, 0.38), transparent 24%),
    linear-gradient(135deg, #062936, #16d6d1);
  box-shadow: inset 0 -18px 30px rgba(0, 0, 0, 0.12);
}

.app-card.large {
  height: 39%;
  margin-bottom: 22px;
}

.app-row {
  height: 16px;
  margin-bottom: 14px;
}

.app-row.short {
  width: 68%;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 24px;
}

.metric-strip span {
  height: 50px;
  border-radius: 18px;
}

.work-list {
  position: absolute;
  z-index: 2;
  right: clamp(48px, 7vw, 72px);
  bottom: 58px;
  left: clamp(48px, 7vw, 72px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.work-list span {
  min-height: 46px;
  padding: 13px 14px;
  border: 1px solid rgba(22, 214, 209, 0.22);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(4, 13, 18, 0.76);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: calc(100% - var(--page-gutter) - var(--page-gutter));
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.step {
  padding: 28px 24px 0 0;
  border-top: 2px solid var(--teal);
}

.step span {
  display: block;
  margin-bottom: 42px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.company {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
  gap: clamp(34px, 8vw, 90px);
  width: 100%;
  max-width: none;
  margin: 0;
  padding:
    clamp(70px, 9vw, 116px)
    max(var(--page-gutter), calc((100% - var(--max)) / 2));
  align-items: start;
}

.company-copy,
.company-details {
  max-width: 560px;
}

.company-copy p:not(.section-label) {
  color: rgba(255, 255, 255, 0.68);
  font-size: 18px;
}

.company-details {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.company-details div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.company-details dt {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.company-details dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.contact {
  text-align: center;
}

.contact-inner {
  max-width: 760px;
  margin: 0 auto;
}

.contact p:not(.section-label) {
  max-width: 560px;
  margin: 22px auto 32px;
  color: #4c5b65;
  font-size: 18px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(22px, 5vw, 70px);
  color: rgba(255, 255, 255, 0.62);
  background: #050b10;
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .button,
  .service-card {
    transition: none;
  }
}

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

  .intro,
  .work,
  .company {
    grid-template-columns: 1fr;
  }

  .work-panel {
    min-height: 480px;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 14px 18px;
  }

  .nav-toggle {
    position: relative;
    z-index: 25;
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 24px;
    background: rgba(4, 12, 18, 0.96);
    font-size: 22px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  body.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.nav-open .nav-toggle span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .hero {
    min-height: 710px;
    padding: 112px 20px 120px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(3, 10, 16, 0.96), rgba(3, 10, 16, 0.78)),
      linear-gradient(0deg, rgba(3, 10, 16, 0.94), transparent 40%);
  }

  .hero-media {
    object-position: 58% center;
  }

  .hero-footer {
    justify-content: flex-start;
  }

  .service-grid,
  .timeline,
  .work-list {
    grid-template-columns: 1fr;
    right: 24px;
    bottom: 26px;
    left: 24px;
  }

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

  .company-details div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 460px) {
  .brand {
    gap: 9px;
    font-size: 12px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 34px;
  }

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

  .phone-shell {
    width: 68%;
  }
}
