:root {
  --ink: #12343b;
  --ink-soft: #4a6166;
  --paper: #f6f7f2;
  --line: #dde2d8;
  --chalk: #f2b134;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--ink); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--chalk); outline-offset: 3px; border-radius: 2px; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-left {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.logo { width: 46px; height: 46px; display: block; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }

.nav a {
  padding: 0.4rem 0.75rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: 6px;
}
.nav a:hover { color: var(--ink); background: var(--paper); }

.contact { text-align: right; }
.contact p { margin: 0; }
.contact-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}
.contact-line { font-size: 0.95rem; color: var(--ink-soft); }
.contact-line a { color: var(--ink); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 8vw, 5rem) 1.25rem;
}

.hero-inner {
  width: 100%;
  max-width: 40rem;
  text-align: center;
}

h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0 auto 2rem;
  max-width: 34rem;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

/* Single moving element: a quiet progress bar */
.bar {
  width: min(22rem, 100%);
  height: 6px;
  margin: 0 auto 2rem;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.bar span {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--chalk);
  border-radius: inherit;
  animation: slide 2.4s ease-in-out infinite;
}
@keyframes slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

.note { margin: 0; font-size: 1rem; color: var(--ink-soft); }
.note a { font-weight: 600; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 1.25rem clamp(1rem, 4vw, 3rem);
  background: var(--ink);
  color: #d5e0e1;
  text-align: center;
  font-size: 0.95rem;
}
.site-footer p { margin: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .header-left { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .contact { text-align: left; }
  .nav { margin-left: -0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bar span { animation: none; width: 40%; transform: none; }
}
