:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --surface: #ffffff;
  --text: #0a0a0a;
  --text-muted: #666666;
  --line: #e5e5e5;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --header-h: 68px;
  --max: 1160px;
  --aside-w: 300px;
  --radius: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

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

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo img {
  display: block;
  height: 24px;
  width: auto;
}

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

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav__link--cta {
  color: var(--text);
  padding: 0.4375rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.nav__link--cta:hover {
  border-color: #ccc;
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease);
}

.menu-btn[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 99;
}

.mobile-nav[hidden] { display: none; }

.mobile-nav__link {
  font-size: 1.125rem;
  font-weight: 500;
}

/* Hero */
.hero {
  padding: calc(var(--header-h) + 4.5rem) 0 5rem;
}

.hero__content {
  max-width: 720px;
}

.hero__location {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

.hero__text {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 36rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn--dark {
  background: var(--text);
  color: #fff;
}

.btn--dark:hover {
  background: #222;
}

.btn--light {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn--light:hover {
  border-color: #ccc;
}

/* Sections */
.section {
  padding: 6rem 0;
  border-top: 1px solid var(--line);
}

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

/* Shared section layout (desktop sidebar + body) */
.section-row {
  display: grid;
  grid-template-columns: var(--aside-w) 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.section-row__aside {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.875rem;
}

.section-heading {
  font-size: clamp(1.75rem, 2.4vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 11ch;
}

.section-note {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 20ch;
}

.section-row__body {
  min-width: 0;
}

.section__title {
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

/* Prose */
.prose {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 42rem;
}

.prose p + p {
  margin-top: 1.25rem;
}

/* About stats */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 2.5rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.about-stats__item {
  background: var(--bg);
  padding: 1.375rem 1.5rem;
}

.section--soft .about-stats__item {
  background: var(--surface);
}

.about-stats__item dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}

.about-stats__item dd {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Services */
.services-header {
  margin-bottom: 2.5rem;
}

.services-header__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.section-heading--wide {
  max-width: 16ch;
}

.services-header__note {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 28ch;
  text-align: right;
  flex-shrink: 0;
}

.services {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.service {
  background: var(--surface);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  min-height: 172px;
  transition: background 0.2s;
}

.service:hover {
  background: #fafafa;
}

.service__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--text);
  flex-shrink: 0;
}

.service__icon svg {
  width: 18px;
  height: 18px;
}

.service__title {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.service__text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact__lead {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 22rem;
}

.contact__panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.contact__row {
  display: block;
  padding: 1.375rem 1.5rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}

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

.contact__row:not(.contact__row--static):hover {
  background: var(--bg-soft);
}

.contact__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}

.contact__value {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

/* Footer */
.footer {
  padding: 2rem 0 2.25rem;
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__logo {
  height: 20px;
  width: auto;
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal--delay  { transition-delay: 0.06s; }
.reveal--delay-2 { transition-delay: 0.12s; }
.reveal--delay-3 { transition-delay: 0.18s; }
.reveal--delay-4 { transition-delay: 0.24s; }
.reveal--delay-5 { transition-delay: 0.30s; }
.reveal--delay-6 { transition-delay: 0.36s; }
.reveal--delay-7 { transition-delay: 0.42s; }

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

/* Responsive */
@media (max-width: 960px) {
  .section-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-row__aside {
    position: static;
  }

  .section-heading {
    max-width: none;
  }

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

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

  .services-header__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .services-header__note {
    text-align: left;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .contact {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .nav { display: none; }
  .menu-btn { display: flex; }
}

@media (max-width: 480px) {
  .container {
    width: min(var(--max), calc(100% - 1.25rem));
  }

  .hero {
    padding-top: calc(var(--header-h) + 3rem);
    padding-bottom: 3.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
