:root {
  --bg: #fff;
  --ink: #000;
  --muted: #555;
  --line: #ddd;
  --header-h: 64px;
  --maxw: 1040px;
  --gutter: clamp(20px, 5vw, 40px);
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --ink: #fff;
    --muted: #aaa;
    --line: #333;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: inherit; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, p, dl { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip { position: absolute; left: 16px; top: -100px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { top: calc(10px + env(safe-area-inset-top, 0px)); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.wordmark { font-weight: 700; letter-spacing: 0.12em; text-decoration: none; }
.nav-list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-list a { text-decoration: none; }
.nav-list a:hover { text-decoration: underline; }
.menu-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 640px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 0; padding: 0 var(--gutter); }
  .nav-list li + li { border-top: 1px solid var(--line); }
  .nav-list a { display: block; padding: 14px 0; }
}

/* Sections */
section { padding: clamp(56px, 8vw, 96px) 0; }
section + section { border-top: 1px solid var(--line); }
.hero-label { color: var(--muted); margin-bottom: 20px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); max-width: 18ch; }
.hero-text { margin-top: 24px; max-width: 600px; font-size: 1.125rem; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); }
.split { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(24px, 6vw, 80px); align-items: start; }
.body-text { max-width: 600px; font-size: 1.0625rem; }

/* Services */
.services .section-title { margin-bottom: 32px; }
.service-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 6vw, 64px); }
.service { padding: 20px 0 28px; border-top: 1px solid var(--line); }
.service h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.service p { color: var(--muted); max-width: 32em; }

/* Contact */
.contact-intro { margin-top: 16px; max-width: 30em; }
.details { border-top: 1px solid var(--line); }
.details-row { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--muted); }
.details dd { margin: 0; overflow-wrap: anywhere; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0; font-size: 0.875rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }

@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .service-grid { grid-template-columns: 1fr; }
  .details-row { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
