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

:root {
  --bg: #f7f6f3;
  --text: #2a2a28;
  --strong: #161615;
  --muted: #8a8984;
  --faint: #b9b7b0;
  --border: #e9e7e1;
  --dot: 40, 40, 38;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121211;
    --text: #d9d8d3;
    --strong: #f2f1ec;
    --muted: #85847f;
    --faint: #55544f;
    --border: #232321;
    --dot: 230, 228, 220;
  }
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

a { color: inherit; text-decoration-color: var(--faint); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--strong); text-decoration-color: currentColor; }

.wrap { width: 100%; max-width: 680px; margin: 0 auto; padding: 0 24px; }

/* Ambient dot field (home) */
.field {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: 560px;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
header, main, footer { position: relative; z-index: 1; }

/* Header */
header { padding: 28px 0; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-weight: 600; font-size: 15px; letter-spacing: -0.2px; text-decoration: none; color: var(--strong); }
nav ul { display: flex; gap: 22px; list-style: none; }
nav a { font-size: 13px; color: var(--muted); text-decoration: none; }
nav a[aria-current="page"] { color: var(--strong); }

main { flex: 1; padding: 56px 0 72px; }

/* Typography */
h1 {
  font-size: clamp(26px, 4.4vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.6px;
  font-weight: 500;
  color: var(--strong);
  margin-bottom: 14px;
  max-width: 520px;
}
h2 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--faint);
  margin-bottom: 14px;
}
h3 { font-size: 15px; font-weight: 600; color: var(--strong); margin: 28px 0 6px; }
p, li, dd, dt { font-size: 15px; }
p + p { margin-top: 10px; }
.lead { font-size: 16px; color: var(--muted); max-width: 480px; }

section { padding: 40px 0; border-top: 1px solid var(--border); }
section:first-child { border-top: 0; padding-top: 48px; padding-bottom: 64px; }

.list { list-style: none; display: grid; gap: 10px; }
.list li { display: grid; grid-template-columns: 160px 1fr; gap: 16px; }
.list li strong { font-weight: 500; color: var(--strong); }
.list li span { color: var(--muted); }

.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  font-size: 14px;
  color: var(--strong);
  text-decoration: none;
  border-bottom: 1px solid var(--faint);
  padding-bottom: 2px;
}
.more span { transition: transform .25s ease; }
.more:hover { border-color: currentColor; }
.more:hover span { transform: translateX(3px); }

.email-reveal {
  background: none;
  border: 0;
  border-bottom: 1px dashed var(--faint);
  color: var(--strong);
  font: inherit;
  padding: 0 0 1px;
  cursor: pointer;
}
.email-reveal:hover { border-bottom-color: currentColor; }

/* Legal pages */
.legal h1 { font-size: clamp(24px, 4vw, 30px); }
.legal ul { padding-left: 18px; margin-top: 6px; }
.legal li + li { margin-top: 4px; }
.meta { color: var(--muted); font-size: 13px; margin-bottom: 28px; }

dl.company { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; }
dl.company dt { color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 24px 0 32px; color: var(--faint); }
footer p { font-size: 12px; line-height: 1.7; }
footer strong { font-weight: 500; color: var(--muted); }
footer ul { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin-top: 12px; }
footer li { font-size: 12px; }
footer a { color: var(--muted); text-decoration: none; }

/* Reveal on load / scroll */
.js main section { opacity: 0; transform: translateY(10px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js main section.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js main section { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 600px) {
  header .wrap { flex-wrap: wrap; }
  nav ul { gap: 18px; }
  main { padding-top: 32px; }
  .list li, dl.company { grid-template-columns: 1fr; gap: 0; }
  .list li + li { margin-top: 8px; }
  dl.company dd { margin-bottom: 10px; }
  .field { height: 420px; }
}

.contact-email { margin-top: 28px; font-size: 16px; }
.legal h3 + p + dl.company { margin-top: 12px; }
