:root {
  --chalk: #e6ebf3;
  --paper: #f3f5f9;
  --ink: #10151f;
  --mute: #5b6577;
  --line: #b8c3d4;
  --line-soft: rgba(16, 21, 31, 0.1);
  --voltage: #2456e0;
  --voltage-deep: #1639a8;
  --signal: #0d8f82;
  --glow-blue: rgba(36, 86, 224, 0.18);
  --glow-teal: rgba(13, 143, 130, 0.14);
  --radius: 2px;
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --space: clamp(1.25rem, 3vw, 2rem);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(36, 86, 224, 0.12), transparent 55%),
    radial-gradient(900px 600px at -5% 20%, rgba(13, 143, 130, 0.1), transparent 50%),
    linear-gradient(180deg, var(--chalk) 0%, var(--paper) 42%, #eef1f7 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--voltage-deep);
}

:focus-visible {
  outline: 2px solid var(--voltage);
  outline-offset: 3px;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding:
    calc(0.9rem + env(safe-area-inset-top, 0px))
    calc(clamp(1.1rem, 4vw, 2.5rem) + env(safe-area-inset-right, 0px))
    0.9rem
    calc(clamp(1.1rem, 4vw, 2.5rem) + env(safe-area-inset-left, 0px));
  backdrop-filter: blur(10px);
  background: rgba(243, 245, 249, 0.84);
  border-bottom: 1px solid var(--line-soft);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo-mark {
  width: 0.72rem;
  height: 0.72rem;
  background: var(--voltage);
  box-shadow: 4px 4px 0 var(--signal);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a {
  text-decoration: none;
}

.nav-cta {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper) !important;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nav-cta:hover {
  background: var(--voltage);
  border-color: var(--voltage);
  color: #fff !important;
}

.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: grid;
  align-items: end;
  overflow: hidden;
  padding:
    clamp(3.5rem, 10vh, 7rem)
    clamp(1.1rem, 4vw, 2.5rem)
    clamp(2.5rem, 7vh, 4.5rem);
  border-bottom: 1px solid var(--line-soft);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grid-plane {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 65% at 70% 40%, #000 20%, transparent 75%);
  opacity: 0.9;
  animation: grid-drift 28s linear infinite;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}

.glow-a {
  width: min(46vw, 420px);
  height: min(46vw, 420px);
  top: 8%;
  right: 8%;
  background: var(--glow-blue);
  animation: glow-pulse 7s ease-in-out infinite;
}

.glow-b {
  width: min(34vw, 300px);
  height: min(34vw, 300px);
  bottom: 18%;
  left: 6%;
  background: var(--glow-teal);
  animation: glow-pulse 9s ease-in-out infinite reverse;
}

.wireframe {
  position: absolute;
  width: min(62vw, 640px);
  right: -2%;
  top: 14%;
  opacity: 0.55;
}

.wf {
  stroke: var(--voltage);
  stroke-width: 1.5;
  fill: none;
  opacity: 0;
  animation: draw-in 1.1s ease forwards;
}

.wf-frame {
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  animation-delay: 0.15s;
}

.wf-bar,
.wf-dot,
.wf-hero,
.wf-line,
.wf-btn,
.wf-block {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
}

.wf-bar {
  animation-delay: 0.35s;
  fill: rgba(36, 86, 224, 0.06);
}
.wf-dot:nth-child(3) {
  animation-delay: 0.45s;
  fill: rgba(36, 86, 224, 0.35);
}
.wf-dot:nth-child(4) {
  animation-delay: 0.5s;
  fill: rgba(36, 86, 224, 0.35);
}
.wf-dot:nth-child(5) {
  animation-delay: 0.55s;
  fill: rgba(36, 86, 224, 0.35);
}
.wf-hero {
  animation-delay: 0.6s;
  fill: rgba(13, 143, 130, 0.08);
}
.wf-line:nth-child(7) {
  animation-delay: 0.72s;
}
.wf-line:nth-child(8) {
  animation-delay: 0.8s;
}
.wf-line:nth-child(9) {
  animation-delay: 0.88s;
}
.wf-btn {
  animation-delay: 0.96s;
  fill: rgba(36, 86, 224, 0.16);
}
.wf-block:nth-child(11) {
  animation-delay: 1.05s;
}
.wf-block:nth-child(12) {
  animation-delay: 1.12s;
}
.wf-block:nth-child(13) {
  animation-delay: 1.2s;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: min(34rem, 100%);
  min-width: 0;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.eyebrow-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(13, 143, 130, 0.45);
  animation: ping 2.4s ease-out infinite;
}

.brand-slot {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.brand {
  margin: 0;
  width: max-content;
  max-width: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--brand-size, clamp(2.1rem, 8.5vw, 7.2rem));
  line-height: 0.92;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.lede {
  margin: 1.35rem 0 0;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--mute);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--voltage);
  color: #fff !important;
  border-color: var(--voltage);
}

.btn-primary:hover {
  background: var(--voltage-deep);
  border-color: var(--voltage-deep);
  color: #fff !important;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink) !important;
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink) !important;
}

.btn-lg {
  min-height: 3.2rem;
  padding-inline: 1.45rem;
  font-size: 1.05rem;
}

.section {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding: clamp(4rem, 10vh, 6.5rem) clamp(1.1rem, 4vw, 2.5rem);
}

.section-head {
  max-width: 38rem;
  margin-bottom: clamp(2rem, 5vh, 3rem);
}

.section-label {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-lead {
  margin: 1rem 0 0;
  color: var(--mute);
  font-size: 1.05rem;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.25rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.service.is-in {
  opacity: 1;
  transform: none;
}

.service-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--voltage);
  padding-top: 0.35rem;
}

.service h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.service p {
  margin: 0;
  max-width: 40rem;
  color: var(--mute);
}

.approach {
  padding-top: 0;
}

.approach-panel {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(230, 235, 243, 0.55)),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 10px,
      rgba(36, 86, 224, 0.03) 10px,
      rgba(36, 86, 224, 0.03) 11px
    );
}

.approach .section-head {
  margin-bottom: 2rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
}

.facts div {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.facts dd {
  margin: 0.45rem 0 0;
  font-weight: 600;
  line-height: 1.35;
}

.contact {
  padding-bottom: clamp(4.5rem, 12vh, 7rem);
}

.contact-inner {
  max-width: 36rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-inner.is-in {
  opacity: 1;
  transform: none;
}

.contact .btn {
  margin-top: 1.6rem;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding:
    1.25rem
    calc(clamp(1.1rem, 4vw, 2.5rem) + env(safe-area-inset-right, 0px))
    calc(1.75rem + env(safe-area-inset-bottom, 0px))
    calc(clamp(1.1rem, 4vw, 2.5rem) + env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--mute);
}

.footer-note {
  letter-spacing: 0.02em;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes draw-in {
  to {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

@keyframes grid-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 48px 48px;
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(13, 143, 130, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(13, 143, 130, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(13, 143, 130, 0);
  }
}

@media (max-width: 820px) {
  body {
    font-size: 1rem;
  }

  .wireframe {
    width: min(110vw, 560px);
    top: auto;
    bottom: 8%;
    right: -28%;
    opacity: 0.22;
  }

  .grid-plane {
    background-size: 36px 36px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 10%, transparent 72%);
  }

  .service {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 1.35rem 0;
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .section-lead {
    font-size: 1rem;
  }

  .approach-panel {
    padding: 1.35rem 1.15rem;
  }
}

@media (max-width: 640px) {
  .top {
    padding-block: calc(0.75rem + env(safe-area-inset-top, 0px)) 0.75rem;
  }

  .nav {
    gap: 0.55rem;
    font-size: 0.82rem;
  }

  .nav a:not(.nav-cta) {
    padding: 0.35rem 0.15rem;
  }

  .nav-cta {
    padding: 0.5rem 0.75rem;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
  }

  .hero {
    align-items: end;
    min-height: calc(100svh - 3.5rem);
    min-height: calc(100dvh - 3.5rem);
    padding:
      2.5rem
      calc(1rem + env(safe-area-inset-right, 0px))
      2rem
      calc(1rem + env(safe-area-inset-left, 0px));
  }

  .hero-copy {
    max-width: none;
    width: 100%;
  }

  .brand {
    font-size: var(--brand-size, clamp(2rem, 9vw, 3rem));
  }

  .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
  }

  .lede {
    margin-top: 1rem;
    max-width: none;
    font-size: 1.02rem;
    line-height: 1.5;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-top: 1.5rem;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 3rem;
  }

  .wireframe {
    width: 130vw;
    max-width: none;
    right: -45%;
    bottom: 22%;
    top: auto;
    opacity: 0.16;
  }

  .glow-a {
    width: 70vw;
    height: 70vw;
    top: 4%;
    right: -18%;
  }

  .glow-b {
    width: 55vw;
    height: 55vw;
    bottom: 28%;
    left: -20%;
  }

  .section {
    padding:
      3.25rem
      calc(1rem + env(safe-area-inset-right, 0px))
      3.25rem
      calc(1rem + env(safe-area-inset-left, 0px));
  }

  .section h2 {
    font-size: clamp(1.65rem, 7.5vw, 2.15rem);
  }

  .section-head {
    margin-bottom: 1.5rem;
  }

  .service h3 {
    font-size: 1.2rem;
  }

  .service p {
    font-size: 0.98rem;
  }

  .contact {
    padding-bottom: calc(3.75rem + env(safe-area-inset-bottom, 0px));
  }

  .contact .btn {
    display: flex;
    width: 100%;
    min-height: 3.15rem;
    margin-top: 1.35rem;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }
}

@media (max-width: 380px) {
  .nav a:not(.nav-cta) {
    display: none;
  }

  .logo {
    font-size: 0.98rem;
  }
}

@media (max-height: 700px) and (max-width: 820px) {
  .hero {
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 1.75rem;
  }

  .wireframe {
    opacity: 0.1;
  }
}

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

  .hero-copy,
  .wf,
  .service,
  .contact-inner,
  .grid-plane,
  .glow,
  .eyebrow-dot {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
}
