/* ── Tokens ────────────────────────────────────────────────── */
:root {
  --color-bg: #ffffff;
  --color-bg-muted: #f5f5f5;
  --color-text: #0a0a0a;
  --color-text-secondary: #525252;
  --color-text-tertiary: #a3a3a3;
  --color-border: #e5e5e5;
  --color-border-strong: #d4d4d4;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 1200px;
  --content-width: 720px;
  --header-height: 64px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ── Header ────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.header.scrolled {
  border-bottom-color: var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.logo {
  display: flex;
  align-items: center;
}

.logo-wordmark {
  display: block;
  width: auto;
  height: 28px;
}

.logo-footer .logo-wordmark {
  height: 24px;
}

.logo img {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  transition: color 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-cta {
  color: var(--color-text) !important;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--color-text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  padding-bottom: clamp(3rem, 8vh, 6rem);
}

.hero-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-title {
  font-size: clamp(2.75rem, 7.5vw, 5.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 14ch;
  margin-bottom: 2rem;
}

.hero-visual {
  margin: 0;
  justify-self: end;
  width: min(100%, 520px);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-lead {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--color-text-secondary);
  max-width: var(--content-width);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s var(--ease);
}

.hero-link:hover {
  color: var(--color-text);
}

/* ── Metrics ───────────────────────────────────────────────── */
.metrics {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.metrics-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--max-width);
  margin-inline: auto;
}

.metric {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
  border-right: 1px solid var(--color-border);
}

.metric:last-child {
  border-right: none;
}

.metric-value {
  display: block;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.375rem;
}

.metric-label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ── Sections ──────────────────────────────────────────────── */
.section {
  padding-block: clamp(5rem, 12vh, 8rem);
}

.section-muted {
  background: var(--color-bg-muted);
}

.section-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section-heading {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* ── Services ──────────────────────────────────────────────── */
.services-list {
  display: flex;
  flex-direction: column;
}

.service-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem 2rem;
  padding-block: 2rem;
  border-top: 1px solid var(--color-border);
  transition: opacity 0.2s var(--ease);
}

.service-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.service-visual {
  margin: 0;
  grid-row: 1 / span 2;
  align-self: center;
}

.service-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.service-item-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  grid-column: 2;
}

.service-item h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.service-index {
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.service-item p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  max-width: 480px;
  grid-column: 2;
}

/* ── About ─────────────────────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-layout .section-heading {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.about-visual {
  margin: 0;
}

.about-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.about-prose {
  max-width: var(--content-width);
}

.about-prose p {
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-prose p:last-child {
  margin-bottom: 0;
}

/* ── Approach ──────────────────────────────────────────────── */
.approach-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.approach-intro .section-heading {
  margin-bottom: 0;
}

.approach-visual {
  margin: 0;
  width: min(100%, 220px);
}

.approach-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}

.approach-item {
  background: var(--color-bg);
  padding: clamp(2rem, 4vw, 3rem);
}

.approach-step {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
  font-variant-numeric: tabular-nums;
  margin-bottom: 1.5rem;
}

.approach-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.approach-item p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--color-border);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.footer-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.5rem;
}

.logo-footer .logo-text {
  font-weight: 500;
}

.footer-email {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  transition: color 0.2s var(--ease);
}

.footer-email:hover {
  color: var(--color-text);
}

.footer-copy {
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
}

/* ── Scroll reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-self: start;
    width: min(100%, 420px);
    order: -1;
  }

  .service-item {
    grid-template-columns: 96px 1fr;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-visual {
    order: -1;
  }

  .approach-intro {
    grid-template-columns: 1fr;
  }

  .approach-visual {
    width: min(100%, 200px);
  }

  .approach-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .service-item {
    grid-template-columns: 1fr;
  }

  .service-visual {
    grid-row: auto;
    width: 120px;
  }

  .service-item-header,
  .service-item p {
    grid-column: 1;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 1.25rem 1.25rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links li:last-child a {
    border-bottom: none;
    padding-top: 1rem;
  }

  .nav-toggle.open span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }

  .nav-toggle.open span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  .metrics-inner {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .metric:last-child {
    border-bottom: none;
  }

  .footer-copy {
    margin-left: 0;
    width: 100%;
  }
}
