:root {
  --bg: #edf3fb;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.95);
  --ink: #0e1726;
  --muted: #546179;
  --line: rgba(15, 27, 45, 0.1);
  --blue: #0f5ef7;
  --blue-soft: #e8f0ff;
  --gold: #d5a448;
  --shadow: 0 28px 80px rgba(10, 18, 35, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(15, 94, 247, 0.12), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(213, 164, 72, 0.12), transparent 22%),
    linear-gradient(180deg, #f6f9fe 0%, #eef3fb 55%, #e8eef8 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 94, 247, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 94, 247, 0.08) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.22;
  pointer-events: none;
  mask-image: radial-gradient(circle at center, black 38%, transparent 100%);
}

.bg-grid,
.bg-wave {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  background:
    linear-gradient(rgba(15, 27, 45, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 27, 45, 0.06) 1px, transparent 1px);
  background-size: 90px 90px;
  opacity: 0.18;
  transform: perspective(1200px) rotateX(58deg) translateY(calc(-9rem + var(--grid-shift, 0px))) scale(1.5);
  transform-origin: center top;
  filter: blur(0.2px);
}

.bg-wave {
  mix-blend-mode: multiply;
  opacity: 0.35;
}

.bg-wave--one {
  background: radial-gradient(circle at 20% 30%, rgba(15, 94, 247, 0.28), transparent 28%),
              radial-gradient(circle at 70% 20%, rgba(213, 164, 72, 0.22), transparent 18%);
  animation: driftOne 18s ease-in-out infinite alternate;
  transform: translate3d(calc(var(--scroll-y, 0px) * -0.03), calc(var(--scroll-y, 0px) * 0.02), 0);
}

.bg-wave--two {
  background: radial-gradient(circle at 70% 70%, rgba(15, 94, 247, 0.16), transparent 28%),
              radial-gradient(circle at 20% 80%, rgba(213, 164, 72, 0.12), transparent 18%);
  animation: driftTwo 24s ease-in-out infinite alternate;
  transform: translate3d(calc(var(--scroll-y, 0px) * 0.025), calc(var(--scroll-y, 0px) * -0.018), 0);
}

img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.bg-orb {
  position: fixed;
  inset: auto;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

.bg-orb--gold {
  top: -8rem;
  right: -6rem;
  background: var(--gold);
  transform: translate3d(calc(var(--orb-shift, 0px) * 0.4), calc(var(--scroll-y, 0px) * 0.02), 0);
}

.bg-orb--blue {
  left: -10rem;
  top: 20rem;
  background: var(--blue);
  transform: translate3d(calc(var(--orb-shift, 0px) * -0.5), calc(var(--scroll-y, 0px) * -0.015), 0);
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}

.section--tight { padding-top: 1.5rem; }
.section--dark {
  background: linear-gradient(180deg, rgba(14, 23, 38, 0.03), rgba(14, 23, 38, 0.05));
  border-block: 1px solid rgba(14, 23, 38, 0.05);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  width: min(var(--container), calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(15, 27, 45, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}
.brand__mark {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--blue), #7fb2ff);
  font-weight: 900;
  letter-spacing: 0.08em;
  overflow: hidden;
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand__text {
  display: grid;
  gap: 0.08rem;
}
.brand__text strong { font-size: 1rem; }
.brand__text span { color: var(--muted); font-size: 0.75rem; }

.nav {
  display: flex;
  justify-content: center;
  gap: 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.nav a { position: relative; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}
.nav a:hover::after { transform: scaleX(1); }

.topbar__actions,
.hero__actions,
.cta-panel,
.footer__note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.2rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  cursor: pointer;
}
.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}
.button:active { transform: translateY(0) scale(0.98); }
.button--primary {
  color: white;
  background: linear-gradient(135deg, var(--blue), #2d78ff);
  box-shadow: 0 16px 35px rgba(15, 94, 247, 0.24);
}
.button--secondary {
  color: var(--ink);
  background: white;
  border: 1px solid rgba(15, 27, 45, 0.08);
}
.button--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(15, 27, 45, 0.08);
}
.button--glow { box-shadow: 0 0 0 1px rgba(15, 94, 247, 0.08), 0 18px 40px rgba(213, 164, 72, 0.12); }

.eyebrow {
  display: inline-flex;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--blue);
  margin-bottom: 0.9rem;
}

.hero__grid,
.split,
.footer__grid {
  display: grid;
  gap: 1.6rem;
  align-items: center;
}
.hero__grid { grid-template-columns: 1.05fr 0.95fr; }
.split { grid-template-columns: 1fr 0.92fr; }
.footer__grid { grid-template-columns: 1fr auto; align-items: center; }

.hero__copy h1,
.intro-strip h2,
.section-head h2,
.split__copy h2,
.footer h2 {
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.hero__copy h1 { font-size: clamp(3rem, 7vw, 6.1rem); max-width: 10ch; }
.intro-strip h2,
.section-head h2,
.split__copy h2,
.footer h2 { font-size: clamp(2rem, 4vw, 3.5rem); }

.intro-strip__quote {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: normal;
  max-width: 46rem;
}

.hero__lede,
.section-head p,
.intro-strip p,
.split__copy p,
.footer p,
.stack-item p,
.service-card p,
.gallery-card figcaption {
  color: var(--muted);
  line-height: 1.72;
}

.hero__lede { margin: 1rem 0 1.4rem; max-width: 58ch; font-size: 1.05rem; }
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}
.hero__chips span,
.hero__badge {
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 94, 247, 0.12);
  background: rgba(15, 94, 247, 0.06);
  color: #17386d;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero__visual { position: relative; }
.photo-card,
.metric-card,
.service-card,
.brand-banner,
.gallery-card,
.intro-strip,
.stack-item,
.cta-panel {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(15, 27, 45, 0.08);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.photo-card { padding: 0.8rem; overflow: hidden; background: rgba(255, 255, 255, 0.9); }
.photo-card img,
.service-card img,
.gallery-card img,
.brand-banner img {
  border-radius: calc(var(--radius-xl) - 0.6rem);
  object-fit: cover;
}
.photo-card--hero img { height: clamp(27rem, 66vw, 42rem); object-position: center top; }
.photo-card figcaption {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.85rem;
}
.photo-card figcaption span,
.metric-card span,
.service-card span,
.stack-item strong,
.brand-banner .eyebrow {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}
.photo-card figcaption strong { color: var(--ink); line-height: 1.5; }

.hero__badge {
  position: absolute;
  padding: 0.8rem 1rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
}
.hero__badge span { display: block; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 0.2rem; }
.hero__badge--top { top: 2rem; left: -0.5rem; }
.hero__badge--bottom { bottom: 2rem; right: -0.5rem; }

.intro-strip {
  padding: 1.35rem;
  display: grid;
  grid-template-columns: 1fr minmax(0, 36rem);
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.2rem;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.metric-card {
  padding: 1.2rem;
  min-height: 8.8rem;
  display: grid;
  gap: 0.3rem;
  align-content: start;
  filter: grayscale(0.6);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease, background 220ms ease;
}
.metric-card strong { font-size: 1.15rem; }
.metric-card small {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}
.metric-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(15, 94, 247, 0.18);
  filter: grayscale(0);
  background: var(--panel-strong);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr minmax(0, 35rem);
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.2rem;
}

.stack-list { display: grid; gap: 0.8rem; margin-top: 1.35rem; }
.stack-item {
  padding: 1.05rem 1.1rem;
  filter: grayscale(0.55);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease, background 220ms ease;
}
.stack-item strong {
  display: block;
  margin-bottom: 0.35rem;
  text-transform: none;
  letter-spacing: normal;
  font-size: 1rem;
  color: var(--ink);
}
.stack-item:hover {
  transform: translateX(6px);
  box-shadow: 0 26px 55px rgba(15, 94, 247, 0.16);
  filter: grayscale(0);
  background: var(--panel-strong);
}

.service-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.service-card {
  overflow: hidden;
  padding: 0.8rem;
  display: grid;
  gap: 0.9rem;
}
.service-card img { height: 18rem; }
.service-card div { padding: 0.2rem 0.35rem 0.3rem; }
.service-card strong { display: block; font-size: 1.12rem; line-height: 1.45; margin-top: 0.35rem; }

.brand-banner {
  margin-top: 1rem;
  padding: 1rem;
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 1rem;
  align-items: center;
}
.brand-banner img { height: 18rem; object-fit: cover; }
.brand-banner h3 { margin: 0.25rem 0 0.65rem; font-size: 1.75rem; }

.gallery-card {
  overflow: hidden;
  padding: 0.8rem;
  display: grid;
  gap: 0.85rem;
}
.gallery-card img { height: 17rem; }
.gallery-card figcaption { padding: 0 0.2rem 0.1rem; }

.footer {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4rem;
}
.cta-panel {
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr;
}
.footer__note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 27, 45, 0.08);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.site-menu {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0.9rem auto 0;
  padding: 0.85rem;
  border-radius: 24px;
  border: 1px solid rgba(15, 27, 45, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  display: none;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.site-menu.is-open { display: flex; }
.site-menu a {
  padding: 0.8rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 27, 45, 0.08);
  background: rgba(255,255,255,0.65);
  color: var(--muted);
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }
  .nav { display: none; }
  .hero__grid,
  .split,
  .footer__grid,
  .intro-strip,
  .section-head,
  .brand-banner {
    grid-template-columns: 1fr;
  }
  .metric-grid,
  .service-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .section { padding: 3.2rem 0; }
  .container { width: min(var(--container), calc(100% - 1rem)); }
  .topbar {
    margin-top: 0.7rem;
    border-radius: 20px;
    padding: 0.8rem;
  }
  .topbar__actions { gap: 0.55rem; }
  .topbar__actions .button--ghost:first-child,
  .topbar__actions .button--ghost:nth-child(2) {
    display: none;
  }
  .hero__copy h1 { font-size: clamp(1.9rem, 8.5vw, 2.9rem); max-width: 12ch; }
  .hero__lede { font-size: 0.98rem; }
  .hero__actions { display: grid; grid-template-columns: 1fr; }
  .hero__actions .button { width: 100%; }
  .hero__chips,
  .metric-grid,
  .service-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .photo-card--hero img { height: 24rem; }
  .hero__badge { position: static; margin-top: 0.8rem; }
  .site-menu {
    width: min(var(--container), calc(100% - 1rem));
    flex-direction: column;
  }
  .site-menu a,
  .site-menu .button { width: 100%; text-align: center; }
}

@keyframes driftOne {
  from { transform: perspective(1200px) rotateX(58deg) translateY(-10rem) scale(1.5) translateX(0); }
  to { transform: perspective(1200px) rotateX(58deg) translateY(-8rem) scale(1.55) translateX(2rem); }
}

@keyframes driftTwo {
  from { transform: translate3d(-1.5rem, 0, 0) scale(1); }
  to { transform: translate3d(1.5rem, -1rem, 0) scale(1.06); }
}
