:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --ink: #2b3847;
  --muted: #5a6573;
  --line: #dfe3e8;
  --accent: #25517a;
  --teal: #78bec3;
  --grad: linear-gradient(135deg, #356977, #25517a);
  --on-accent: #ffffff;
  --max: 1040px;
  --mono: ui-monospace, "IBM Plex Mono", SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; font-size: 1.1rem; }
.brand img { height: 40px; width: auto; display: block; }
.brand .wm { font-weight: 300; letter-spacing: 0.04em; text-transform: uppercase; font-size: 1.25rem; color: var(--ink); }
.brand .wm b { font-weight: 800; }
nav.main { display: flex; align-items: center; gap: 24px; }
nav.main a { text-decoration: none; color: var(--muted); font-size: 0.95rem; }
nav.main a:hover { color: var(--ink); }
.lang { display: flex; gap: 4px; }
.lang button {
  font: inherit; font-family: var(--mono); font-size: 0.8rem; font-weight: 500;
  background: none; border: 1px solid transparent; color: var(--muted);
  padding: 4px 8px; border-radius: 6px; cursor: pointer;
}
.lang button[aria-pressed="true"] { color: #fff; border-color: var(--ink); background: var(--ink); }
.lang button[aria-pressed="false"]:hover { color: var(--ink); }

/* Sections */
section { padding: 96px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); max-width: 14ch; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 40px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem;
  color: var(--accent); font-weight: 700; margin-bottom: 20px;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 52ch; margin: 24px 0 36px; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  background: var(--grad); color: #fff;
  padding: 16px 32px; border-radius: 6px;
  box-shadow: 0 6px 18px rgba(37,81,122,.22);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: linear-gradient(135deg, #2b5a69, #1d416a); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 28px;
}
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin-bottom: 14px;
}

/* About + contact */
.about { display: grid; gap: 40px; grid-template-columns: 1fr; max-width: 70ch; }
.about p { margin: 0 0 16px; color: var(--muted); }
.about p strong { color: var(--ink); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 1.1rem; }
.contact-list a { text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* Footer */
footer.site { padding: 32px 0 48px; color: var(--muted); font-size: 0.9rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer.site nav { display: flex; gap: 20px; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--ink); }

/* Legal pages */
.legal { padding: 64px 0 96px; max-width: 70ch; }
.legal h1 { font-size: 2.2rem; margin-bottom: 32px; max-width: none; }
.legal h2 { font-size: 1.2rem; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal .todo { background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 1px 6px; border-radius: 4px; color: var(--ink); }

@media (max-width: 640px) {
  section { padding: 64px 0; }
  nav.main a:not(.keep) { display: none; }
}

/* Initial-design details */
.hero { position: relative; border-bottom: 0; padding-bottom: 48px; }
.hero .loc { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); text-align: right; margin-top: -48px; line-height: 1.5; }
.rule { height: 3px; border: 0; margin: 0; background: linear-gradient(90deg, var(--teal), #5695a5 50%, #244e7b); border-radius: 2px; }
@media (max-width: 640px) { .hero .loc { text-align: left; margin-top: 32px; } }

/* Tagline under the wordmark */
.brandtext { display: flex; flex-direction: column; gap: 3px; line-height: 1.1; }
.tagline { font-size: 0.62rem; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@media (max-width: 860px) { .tagline { display: none; } }
