/* ============ Tokens ============ */
:root {
  --bg: #eef0ec;
  --surface: #f8f9f6;
  --ink: #17211d;
  --muted: #5b6660;
  --line: #d5dad3;
  --accent: #1f4fe0;
  --accent-ink: #ffffff;
  --accent-2: #ffb547;
  --grid: rgba(31, 79, 224, 0.07);

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --radius: 10px;
  --max: 1080px;
  color-scheme: light;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 480px) { .wrap { padding-inline: 16px; } }

.mono, .eyebrow, .label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand-name b { font-weight: 800; color: var(--accent); }
.nav-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 520px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.875rem; }
  .brand-name { display: none; }
}

/* ============ Hero ============ */
.hero {
  padding-block: clamp(64px, 12vw, 128px) clamp(56px, 9vw, 96px);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}
.eyebrow { color: var(--accent); margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(2.6rem, 7.5vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 14ch;
}
.cursor {
  display: inline-block;
  width: 0.42em;
  height: 0.09em;
  margin-left: 0.08em;
  background: var(--accent-2);
  vertical-align: baseline;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.lede { margin-top: 24px; max-width: 58ch; font-size: 1.2rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px;
  border-radius: 8px;
  font: 600 0.975rem/1 var(--font-body);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-small { padding: 8px 14px; font-size: 0.875rem; }

/* ============ Sections ============ */
.section { padding-block: clamp(64px, 9vw, 104px); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 40px; }
.section-head h2, .contact h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.025em; }
.section-head p { color: var(--muted); }

/* ============ Contact ============ */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.contact > div:first-child { display: flex; flex-direction: column; gap: 12px; }
.contact > div:first-child p { color: var(--muted); max-width: 44ch; }
.contact-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.label { color: var(--muted); }
.email-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.email { font-family: var(--font-display); font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 600; user-select: all; overflow-wrap: anywhere; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
