:root {
  --bg: #ffffff;
  --soft: #f7f7f7;
  --ink: #0a0a0a;
  --muted: #737373;
  --line: #ebebeb;
  --link: #0066ff;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; font-size: 17px; }

body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: min(100% - 3rem, var(--wrap));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.25rem;
}

.logo-img { height: 1.5rem; width: auto; display: block; }

.nav { display: none; gap: 1.75rem; }
@media (min-width: 1024px) { .nav { display: flex; } }

.nav a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 450;
  text-decoration: none;
}

.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a.is-active { color: var(--ink); font-weight: 500; }

.menu-btn {
  background: none;
  border: none;
  font: inherit;
  font-size: 0.875rem;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}
@media (min-width: 1024px) { .menu-btn { display: none; } }

/* —— Type —— */
h1, h2, h3 { font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; }

.hero-title {
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 14ch;
}

.page-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 38rem;
}

.meta {
  font-size: 0.8125rem;
  color: var(--muted);
}

.prose {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.0625rem;
}

.prose p + p { margin-top: 1.25rem; }
.prose ul { margin-top: 1rem; padding-left: 1.25rem; }
.prose li + li { margin-top: 0.5rem; }

/* —— Layout blocks —— */
.block { padding-block: 5rem; }
@media (min-width: 768px) { .block { padding-block: 7rem; } }
.block-lg { padding-block: 6rem; }
@media (min-width: 768px) { .block-lg { padding-block: 9rem; } }

.block-soft { background: var(--soft); }

.divider { border: none; border-top: 1px solid var(--line); margin: 0; }

.grid-2 {
  display: grid;
  gap: 3rem;
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
}

.grid-3 {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

.grid-4 {
  display: grid;
  gap: 2rem;
}
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* —— Hero —— */
.hero {
  padding-block: 5rem 4rem;
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 768px) { .hero { padding-block: 7rem 6rem; min-height: 82vh; } }

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.hero-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  background: var(--soft);
}
@media (min-width: 960px) { .hero-img { aspect-ratio: 3/4; } }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn:hover { text-decoration: none; opacity: 0.85; }

.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }

/* —— List rows —— */
.rows { border-top: 1px solid var(--line); }

.row {
  display: grid;
  gap: 0.75rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

@media (min-width: 768px) {
  .row { grid-template-columns: 3rem 1fr auto; align-items: baseline; gap: 2rem; }
}

.row:hover { opacity: 0.65; text-decoration: none; }

.row-num { font-size: 0.875rem; color: var(--muted); }

.row h3 { font-size: 1.125rem; font-weight: 500; }

.row p { color: var(--muted); font-size: 0.9375rem; margin-top: 0.35rem; max-width: 32rem; }

.row-arrow { color: var(--muted); font-size: 1.125rem; }

/* —— Cards (minimal) —— */
.panel {
  padding: 2rem;
  background: var(--soft);
  border-radius: 8px;
}

.panel h3 { font-size: 1rem; font-weight: 500; margin-bottom: 0.5rem; }
.panel p { font-size: 0.9375rem; color: var(--muted); line-height: 1.65; }

.stat { font-size: 2.25rem; font-weight: 500; letter-spacing: -0.04em; margin-bottom: 0.35rem; }

.img-block { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--soft); }
.img-tall { aspect-ratio: 3/4; }

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 4rem 3rem;
  margin-top: 2rem;
}

.site-footer .grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 768px) { .site-footer .grid { grid-template-columns: 2fr 1fr 1fr; } }

.site-footer p, .site-footer a { font-size: 0.875rem; color: var(--muted); line-height: 1.8; text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer h4 { font-size: 0.8125rem; font-weight: 500; color: var(--ink); margin-bottom: 0.75rem; }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* —— Form —— */
.field {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0.85rem 0;
  font: inherit;
  outline: none;
  border-radius: 0;
}

.field:focus { border-bottom-color: var(--ink); }

label.block { display: block; margin-bottom: 1.75rem; font-size: 0.8125rem; color: var(--muted); }

/* —— Legal —— */
.legal h2 { font-size: 1rem; font-weight: 500; margin: 2.5rem 0 0.75rem; color: var(--ink); }
.legal p { color: var(--muted); margin-bottom: 1rem; line-height: 1.75; font-size: 0.9375rem; }

/* —— Menu —— */
.menu-sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.menu-sheet.open { opacity: 1; pointer-events: auto; }

.menu-sheet nav {
  padding: 6rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.menu-sheet a {
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.menu-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--muted);
}

/* —— Cookie —— */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  max-width: 24rem;
  margin-left: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  z-index: 60;
  transform: translateY(calc(100% + 2rem));
  transition: transform 0.4s ease;
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
}

.cookie-banner.show { transform: none; }

.cookie-banner p { font-size: 0.8125rem; color: var(--muted); line-height: 1.55; margin-top: 0.35rem; }

.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

.fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade.on { opacity: 1; transform: none; }

.spacer { height: 3rem; }
@media (min-width: 768px) { .spacer { height: 5rem; } }
