:root {
  --font-display: "Sora", "Manrope", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Sora", "Inter", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-soft: rgba(255, 255, 255, 0.4);
  --text: #0f2633;
  --text-soft: rgba(15, 38, 51, 0.85);
  /* Exact same hue, tiny opacity drop for layout rhythm if needed */
  --text-muted: rgba(15, 38, 51, 0.65);
  --line: rgba(15, 38, 51, 0.08);
  --line-strong: rgba(0, 0, 0, 0.15);
  --accent: #0ea685;
  --accent-2: #0ab5c3;
  --accent-3: #8be1d4;
  --gradient: linear-gradient(120deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.95) 45%, rgba(241, 245, 249, 1) 100%);
  --radius-xl: 0px;
  --radius-lg: 0px;
  --radius-md: 0px;
  --radius-sm: 0px;
  --radius-full: 999px;
  --shadow-soft: 0 32px 84px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 42px 90px rgba(0, 0, 0, 0.1), 0 12px 28px rgba(10, 181, 195, 0.1);
  --max: 1440px;
  /* Wider container for agency feel */
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background: transparent;
}

body {
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video,
canvas {
  max-width: 100%;
  display: block;
  border-radius: 0px;
}

#ambient-fx-canvas,
#hero-fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

#ambient-fx-canvas {
  mix-blend-mode: screen;
}

.page {
  position: relative;
  overflow-x: clip;
  isolation: isolate;
  z-index: 2;
  background: transparent;
  /* Let fixed video/WebGL layers show through */
}

.cursor-wake {
  position: fixed;
  left: 0;
  top: 0;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  background:
    radial-gradient(circle at 42% 42%, rgba(70, 172, 236, 0.28) 0%, rgba(70, 172, 236, 0.15) 34%, rgba(70, 172, 236, 0) 70%),
    radial-gradient(circle at 58% 58%, rgba(22, 190, 145, 0.22) 0%, rgba(22, 190, 145, 0) 68%);
  filter: blur(4px);
  mix-blend-mode: screen;
  transition: opacity 0.35s ease;
}

.page.has-pointer-wake .cursor-wake {
  opacity: 0.72;
}

.container {
  width: min(var(--max), calc(100% - 6rem));
  /* Doubled negative space */
  margin-inline: auto;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
  color: var(--text);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 7rem);
  line-height: 0.93;
  letter-spacing: -0.05em;
  font-weight: 700;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.25vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.86rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.display-accent {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

p {
  font-size: clamp(1.1rem, 1.25vw, 1.25rem);
  color: var(--text);
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  color: var(--text);
  line-height: 1.54;
  letter-spacing: -0.02em;
}

.section {
  padding: clamp(10rem, 18vw, 18rem) 0;
  /* Doubled */
}

.section-head {
  display: grid;
  gap: 2.2rem;
  /* Doubled */
  max-width: 940px;
  margin-bottom: clamp(4rem, 8vw, 6.8rem);
  /* Doubled */
  position: relative;
  z-index: 10;
}

.kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 38, 51, 0.15);
  background: rgba(15, 38, 51, 0.04);
  color: var(--text);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
  padding: 0.44rem 0.88rem;
}

.kicker .dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--accent-2);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  --card-translate-y: 0px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  /* Agency sharp */
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  /* Doubled negative space */
  display: grid;
  gap: 1.2rem;
  transition: transform 0.4s ease, border-color 0.4s ease;
  transform: translateY(var(--card-translate-y));
}

.card:hover {
  --card-translate-y: -6px;
  border-color: rgba(255, 255, 255, 0.3);
}

.interactive-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
}

.interactive-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255, 255, 255, 0.48) 0%, rgba(255, 255, 255, 0) 58%);
  transition: opacity 0.25s ease;
}

.interactive-card.is-hover::after {
  opacity: 1;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.74rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.95rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  padding: 0.58rem 1.16rem;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(150px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255, 255, 255, 0.3), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.btn.is-hover::after {
  opacity: 1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(14, 166, 133, 0.16);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #15c88f);
  color: #fff;
  box-shadow: 0 12px 32px rgba(14, 166, 133, 0.28), 0 0 18px rgba(14, 166, 133, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn.primary:hover {
  box-shadow: 0 18px 46px rgba(14, 166, 133, 0.4), 0 0 28px rgba(14, 166, 133, 0.25);
}

.btn.soft {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text);
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn.ghost:hover {
  color: var(--accent);
  transform: translateY(0);
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  padding-top: 0.95rem;
  pointer-events: none;
  transition: transform 0.4s ease;
}

.topbar.is-hidden {
  transform: translateY(-120%);
}

.topbar-inner {
  pointer-events: auto;
  min-height: 80px;
  border-radius: 0px;
  border: none;
  background: transparent;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: #122f3e;
  white-space: nowrap;
}

.brand::before {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 3px;
  background: linear-gradient(160deg, #2aa4ff, #15c88f);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.6rem 0.6rem;
  background: transparent;
  border-radius: 0;
  border: none;
}

.nav-item {
  color: var(--text);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
  padding: 0.45rem 0.8rem;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.nav-item:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.3rem;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  color: #2b4d5d;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
  padding: 0.45rem 0.8rem;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.nav-links a:hover {
  border-color: rgba(7, 23, 33, 0.14);
  background: rgba(255, 255, 255, 0.76);
  color: #16394b;
}

.nav-links a.accent {
  border-color: rgba(15, 188, 138, 0.42);
  background: rgba(15, 188, 138, 0.12);
  color: #0a7154;
}

.nav-links a.nav-cta {
  border-color: rgba(23, 122, 212, 0.36);
  background: linear-gradient(130deg, rgba(23, 122, 212, 0.12), rgba(23, 122, 212, 0.22));
  color: #0f5d9b;
}

.page-offset {
  padding-top: 114px;
}

.footer {
  border-top: 1px solid var(--line);
  background: #eaf3f7;
  padding: 3.2rem 0;
}

.footer-grid {
  display: grid;
  gap: 0.9rem;
}

.footer small {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.social-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.social-icon.fill {
  fill: currentColor;
  stroke: none;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js-motion .reveal {
  opacity: 0;
  transform: translateY(16px);
}

@media (max-width: 1140px) {
  .grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar-inner {
    min-height: 70px;
  }

  .nav-links a {
    font-size: 0.69rem;
    padding: 0.38rem 0.68rem;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--max), calc(100% - 1.4rem));
  }

  .cursor-wake {
    display: none;
  }

  .topbar {
    padding-top: 0.52rem;
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    min-height: 74px;
    padding: 0.72rem;
    border-radius: 12px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.2rem;
  }

  .page-offset {
    padding-top: 132px;
  }

  .grid.cols-2,
  .grid.cols-3 {
    grid-template-columns: 1fr;
  }
}
