:root {
  --bg: #edf0f6;
  --surface: rgba(251, 252, 255, 0.92);
  --surface-strong: #dde4ef;
  --ink: #101722;
  --muted: #5c6675;
  --line: rgba(16, 23, 34, 0.1);
  --accent: #2c4f86;
  --accent-soft: rgba(44, 79, 134, 0.12);
  --radius: 24px;
  --shadow: 0 24px 70px rgba(14, 23, 35, 0.07);
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Public Sans", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(44, 79, 134, 0.11), transparent 32%),
    radial-gradient(circle at 85% 18%, rgba(15, 23, 32, 0.04), transparent 24%),
    linear-gradient(180deg, #f9fbff 0%, var(--bg) 38%, #e7edf7 100%);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18)),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 118px,
      rgba(17, 17, 17, 0.018) 118px,
      rgba(17, 17, 17, 0.018) 119px
    );
  opacity: 0.35;
  z-index: -1;
}

main {
  position: relative;
  animation: page-fade 560ms ease both;
}

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

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(calc(100% - 32px), var(--shell));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 32px), 860px);
}

.section {
  padding: clamp(2.4rem, 5vw, 4.8rem) 0;
}

.border-top {
  border-top: 1px solid var(--line);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(248, 251, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-row {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #223657, var(--accent));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 0.96rem;
  font-weight: 700;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.79rem;
}

.site-nav {
  justify-self: end;
  display: inline-flex;
  gap: 28px;
  align-items: center;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  background: linear-gradient(145deg, #223657, var(--accent));
  color: #fff;
}

.button-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button:focus-visible,
.nav-toggle:focus-visible,
.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid rgba(17, 17, 17, 0.24);
  outline-offset: 2px;
}

.eyebrow,
.section-label,
.result-kicker,
.team-role {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.hero-grid,
.proof-row,
.editorial-grid,
.client-layout,
.about-grid,
.philosophy-grid,
.team-grid,
.results-grid,
.footer-row {
  display: grid;
  gap: 18px;
}

.hero-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  min-height: min(78vh, 740px);
}

.result-card,
.team-card,
.stat-block,
.cta-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.76), rgba(237,242,250,0.88));
  border: 1px solid rgba(44, 79, 134, 0.09);
  border-radius: 24px;
}

.hero-title,
.page-title {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  max-width: 12ch;
  text-wrap: balance;
  text-rendering: optimizeLegibility;
}

.hero-text,
.page-text,
.section-copy,
.editorial-copy p,
.cta-panel p,
.about-grid p,
.team-card p,
.result-card p,
.client-note,
.philosophy-list p {
  color: var(--muted);
}

.hero-text,
.page-text {
  max-width: 58ch;
  font-size: clamp(1rem, 2vw, 1.15rem);
  text-wrap: pretty;
}

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

.hero-aside {
  display: grid;
  gap: 16px;
}

.stat-block,
.result-card,
.team-card,
.cta-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-block {
  padding: 20px;
}

.stat-block-performance {
  position: relative;
  overflow: hidden;
}

.stat-block-performance::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 22%, rgba(179, 139, 97, 0.12) 50%, transparent 78%);
  transform: translateX(-120%);
  animation: performance-sheen 4.8s ease-in-out infinite;
}

.stat-number {
  display: block;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-rendering: optimizeLegibility;
  position: relative;
  z-index: 1;
}

.stat-number-performance {
  background: linear-gradient(180deg, #111111 0%, #2f2a24 52%, #8f6a46 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  max-width: 24ch;
  position: relative;
  z-index: 1;
}

.stat-block-map {
  display: grid;
  gap: 12px;
  color: inherit;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.stat-block-map:hover {
  transform: translateY(-2px);
  border-color: rgba(179, 139, 97, 0.35);
  box-shadow: 0 24px 70px rgba(17, 17, 17, 0.09);
}

.map-stat-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
}

.map-link-note {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-map {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(239, 233, 223, 0.8));
  padding: 14px 16px;
  color: rgba(17, 17, 17, 0.64);
}

.mini-map svg {
  width: 100%;
  height: auto;
  display: block;
}

.mini-map-dot {
  fill: #b38b61;
  filter: drop-shadow(0 0 0 rgba(179, 139, 97, 0.1));
  animation: map-pulse 1.8s ease-in-out infinite;
}

.proof-row,
.about-grid,
.philosophy-grid {
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 18px;
}

h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.2vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 16ch;
}

h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.section-head h2,
.proof-row h2,
.about-grid h2,
.philosophy-grid h2,
.editorial-copy h2,
.cta-panel h2 {
  text-wrap: balance;
}

.results-grid,
.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.result-card,
.team-card {
  padding: 20px;
}

.client-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.client-strip span {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--ink);
}

.client-note {
  max-width: 52ch;
}

.editorial-grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.editorial-list,
.philosophy-list {
  display: grid;
  gap: 14px;
}

.editorial-list div,
.philosophy-list div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.editorial-list span,
.philosophy-list span {
  color: var(--muted);
  font-weight: 700;
}

.cta-panel {
  padding: clamp(20px, 3vw, 34px);
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field span {
  font-size: 0.82rem;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  padding: 14px 16px;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 6px;
}

.form-note,
.form-status {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.form-status {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.form-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-intro {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.footer-row {
  grid-template-columns: 1fr auto;
  align-items: start;
  padding: 24px 0 36px;
}

.footer-title {
  margin: 0 0 6px;
  font-weight: 700;
}

.footer-links {
  display: inline-flex;
  gap: 20px;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(2px);
  transition: opacity 650ms ease, transform 650ms ease, filter 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.hero-copy .reveal:nth-child(2) {
  transition-delay: 70ms;
}

.hero-copy .reveal:nth-child(3) {
  transition-delay: 120ms;
}

.hero-copy .reveal:nth-child(4) {
  transition-delay: 170ms;
}

@keyframes page-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes performance-sheen {
  0%,
  100% {
    transform: translateX(-120%);
  }

  45%,
  55% {
    transform: translateX(120%);
  }
}

@keyframes map-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.95;
  }

  50% {
    transform: scale(1.28);
    opacity: 1;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .proof-row,
  .editorial-grid,
  .client-layout,
  .about-grid,
  .philosophy-grid,
  .results-grid,
  .team-grid,
  .form-row,
  .footer-row,
  .client-strip {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 8px;
  }

  h2,
  .hero-title,
  .page-title {
    max-width: none;
  }

  .desktop-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    justify-self: stretch;
    padding-bottom: 14px;
    border-top: 1px solid var(--line);
    margin-top: 10px;
    padding-top: 14px;
  }

  .site-nav.is-open {
    display: grid;
    gap: 12px;
  }

  .header-row {
    grid-template-columns: 1fr auto;
    padding: 10px 0;
  }

  body::before {
    opacity: 0.18;
  }
}
