:root {
  --bg: #eef2f8;
  --text: #0f1b2b;
  --text-muted: #4a5a70;
  --brand: #1f3a5f;
  --tint: #0a6cf0;
  --tint-contrast: #ffffff;
  --accent: #f2a541;

  --glass-fill: rgba(255, 255, 255, 0.42);
  --glass-fill-strong: rgba(255, 255, 255, 0.62);
  --glass-solid: #f7f9fc;
  --glass-rim: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.25) 35%,
    rgba(255, 255, 255, 0.08) 65%,
    rgba(255, 255, 255, 0.6) 100%
  );
  --glass-sheen: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0) 45%
  );
  --glass-shadow: 0 1px 1px rgba(15, 27, 43, 0.04), 0 12px 40px rgba(31, 58, 95, 0.14);
  --glass-blur: 28px;

  --blob-1: #5b8cff;
  --blob-2: #2ec4b6;
  --blob-3: #f2a541;
  --blob-4: #a78bfa;
  --blob-opacity: 0.55;

  --radius-lg: 32px;
  --radius-md: 24px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1018;
    --text: #eef3fa;
    --text-muted: #a3b2c6;
    --brand: #8fb6ff;
    --tint: #2f8bff;

    --glass-fill: rgba(28, 38, 54, 0.45);
    --glass-fill-strong: rgba(36, 48, 66, 0.65);
    --glass-solid: #161f2c;
    --glass-rim: linear-gradient(
      150deg,
      rgba(255, 255, 255, 0.35) 0%,
      rgba(255, 255, 255, 0.06) 35%,
      rgba(255, 255, 255, 0.02) 65%,
      rgba(255, 255, 255, 0.2) 100%
    );
    --glass-sheen: linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0) 45%
    );
    --glass-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 16px 48px rgba(0, 0, 0, 0.45);

    --blob-1: #2f5fe0;
    --blob-2: #0f8f86;
    --blob-3: #c7782a;
    --blob-4: #6d4fd6;
    --blob-opacity: 0.45;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.6rem);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Background the glass refracts: slow-drifting color fields */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: var(--blob-opacity);
  animation: drift 28s ease-in-out infinite alternate;
}

.blob-1 {
  background: var(--blob-1);
  top: -14vmax;
  left: -10vmax;
}

.blob-2 {
  background: var(--blob-2);
  top: 20vh;
  right: -16vmax;
  animation-duration: 34s;
  animation-delay: -8s;
}

.blob-3 {
  background: var(--blob-3);
  bottom: -18vmax;
  left: 18vw;
  width: 38vmax;
  height: 38vmax;
  animation-duration: 31s;
  animation-delay: -15s;
}

.blob-4 {
  background: var(--blob-4);
  top: 45vh;
  left: -14vmax;
  width: 34vmax;
  height: 34vmax;
  animation-duration: 38s;
  animation-delay: -4s;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(6vmax, 4vmax) scale(1.08);
  }
  100% {
    transform: translate(-4vmax, 7vmax) scale(0.95);
  }
}

/* The glass material: translucent fill, blur, light rim and a soft top sheen */
.glass {
  position: relative;
  isolation: isolate;
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  box-shadow: var(--glass-shadow);
}

.glass::before,
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.glass::before {
  z-index: -1;
  background: var(--glass-sheen);
}

.glass::after {
  padding: 1px;
  background: var(--glass-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: var(--glass-fill-strong);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .glass {
    background: var(--glass-solid);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .backdrop {
    display: none;
  }
}

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

  .blob {
    animation: none;
  }
}

/* Header: a floating capsule */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 10;
  padding: 12px 16px 0;
}

.header-bar {
  max-width: 1032px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 8px 0 14px;
  border-radius: 999px;
  background: var(--glass-fill-strong);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  border-radius: 9px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
  background: var(--glass-fill);
}

.nav .nav-cta,
.nav .nav-cta:hover {
  color: var(--tint-contrast);
  background: var(--tint);
}

/* Hero */
.hero {
  padding: 120px 0 104px;
}

.pill {
  display: inline-block;
  margin: 0 0 24px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.lede {
  max-width: 620px;
  font-size: 1.25rem;
  color: var(--text-muted);
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Buttons: pill-shaped, with a springy press */
.button {
  position: relative;
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

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

.button:active {
  transform: scale(0.96);
}

.button-primary {
  color: var(--tint-contrast);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 82%, white), var(--tint));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 8px 24px color-mix(in srgb, var(--tint) 35%, transparent);
}

.button-glass {
  color: var(--text);
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-lede {
  max-width: 640px;
  color: var(--text-muted);
  margin: 0 0 36px;
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.service {
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service:hover {
  transform: translateY(-4px);
}

.service h3 {
  display: inline-block;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--accent);
}

.service p {
  margin: 8px 0 0;
  color: var(--text-muted);
}

.service ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--text-muted);
}

.service li {
  margin-bottom: 6px;
}

.service li::marker {
  color: var(--tint);
}

/* About */
.about {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  border-radius: var(--radius-lg);
  padding: 48px;
}

.about-photo {
  flex: none;
  width: 168px;
  height: 168px;
  object-fit: cover;
  border-radius: 34px;
  box-shadow:
    0 0 0 3px var(--glass-fill-strong),
    0 0 0 6px var(--accent),
    0 16px 40px rgba(20, 38, 63, 0.3);
}

.about-body {
  max-width: 680px;
}

.about-body p:not(.eyebrow) {
  color: var(--text-muted);
}

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

.stats div {
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--glass-fill);
}

.stats dt {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--tint);
}

.stats dd {
  margin: 2px 0 0;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--text-muted);
}

/* Contact */
.contact {
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 56px 32px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.contact-location {
  margin: 24px 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact .section-lede {
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.site-footer {
  padding: 24px 0 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 16px;
  }

  .site-header {
    top: 8px;
    padding: 8px 10px 0;
  }

  .header-bar {
    height: 54px;
  }

  .nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding: 72px 0 56px;
  }

  .section {
    padding: 32px 0;
  }

  .service {
    padding: 24px;
    border-radius: var(--radius-md);
  }

  .about {
    flex-direction: column;
    gap: 24px;
    padding: 28px 22px;
    border-radius: var(--radius-md);
  }

  .about-photo {
    width: 112px;
    height: 112px;
    border-radius: 24px;
  }

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

  .contact {
    padding: 40px 20px;
    border-radius: var(--radius-md);
  }
}
