:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --ink: #26251e;
  --body: #5a5852;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --primary: #f54e00;
  --primary-active: #d04200;
  --on-primary: #ffffff;
  --success: #1f8a65;
  --error: #cf2d56;
  --tl-thinking: #dfa88f;
  --tl-grep: #9fc9a2;
  --tl-read: #9fbbe0;
  --tl-edit: #c0a8dd;
  --tl-done: #c08532;
  --sans: "Inter", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--primary); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 400;
  margin: 0 0 16px;
}

h1 { font-size: 72px; line-height: 1.1; letter-spacing: -2.16px; }
h2 { font-size: 36px; line-height: 1.2; letter-spacing: -0.72px; }
h3 { font-size: 26px; line-height: 1.25; letter-spacing: -0.325px; }
h4 { font-size: 22px; line-height: 1.3; letter-spacing: -0.11px; }

p { margin: 0 0 16px; }

.section-label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.top-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-nav .nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wordmark .dot { color: var(--primary); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  padding: 10px 18px;
  height: 40px;
}
.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); }

.btn-secondary {
  background: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  padding: 10px 18px;
  height: 40px;
}
.btn-secondary:hover { color: var(--primary); }

.btn-dark {
  background: var(--ink);
  color: var(--canvas);
  padding: 12px 20px;
  height: 44px;
}
.btn-dark:hover { color: var(--canvas); background: #000; }

.hero-band {
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-copy p.lead {
  font-size: 18px;
  color: var(--body);
  max-width: 46ch;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.hero-figure {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
}
.hero-figure img { width: 100%; height: 380px; object-fit: cover; }
.hero-figure figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 12px 16px;
  border-top: 1px solid var(--hairline);
}

.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }

.lede-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px;
}
.feature-card h4 { font-size: 18px; font-weight: 600; }
.feature-card p { font-size: 16px; color: var(--body); margin-bottom: 0; }

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.article-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.article-card img { width: 100%; height: 200px; object-fit: cover; }
.article-card .card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.article-card h4 { font-size: 22px; }
.article-card p { font-size: 16px; color: var(--body); }
.article-card .read-link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

.badge-pill {
  display: inline-block;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  border-radius: 9999px;
  padding: 4px 10px;
}

.divider { height: 1px; background: var(--hairline); border: 0; margin: 0; }

.article-page { padding: 56px 0 80px; }
.article-wrap { max-width: 760px; margin: 0 auto; }
.article-wrap .meta { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.article-wrap figure { margin: 0 0 8px; }
.article-wrap figure img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--hairline);
}
.article-wrap figcaption { font-size: 13px; color: var(--muted); margin: 8px 0 32px; }
.article-wrap h2 { font-size: 26px; margin-top: 40px; }
.article-wrap h3 { font-size: 22px; margin-top: 28px; }
.article-wrap p { color: var(--body); }
.article-wrap ul, .article-wrap ol { color: var(--body); padding-left: 22px; margin: 0 0 16px; }
.article-wrap li { margin-bottom: 8px; }

.callout {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--primary);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
}
.data-table th { color: var(--ink); font-weight: 600; }
.data-table td { color: var(--body); }

.source-list { font-size: 14px; }
.source-list a { color: var(--ink); text-decoration: underline; }
.source-list a:hover { color: var(--primary); }

.contact-band { background: var(--canvas-soft); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.contact-info p { color: var(--body); }
.contact-info .detail { font-size: 15px; margin-bottom: 8px; }

.form-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 32px;
}

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 16px;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.field textarea { min-height: 120px; resize: vertical; }

.form-status {
  display: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 16px;
}
.form-status.success { display: block; background: rgba(31,138,101,.1); color: var(--success); border: 1px solid var(--success); }

.btn-primary[disabled] { opacity: .65; cursor: progress; }

.page-head { padding: 56px 0 0; }
.legal-wrap { max-width: 760px; margin: 0 auto; padding-bottom: 80px; }
.legal-wrap h2 { font-size: 26px; margin-top: 36px; }
.legal-wrap p, .legal-wrap li { color: var(--body); }
.legal-wrap ul { padding-left: 22px; }

.footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer h5 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer a { font-size: 14px; color: var(--body); }
.footer a:hover { color: var(--primary); }
.footer .brand-col p { font-size: 14px; color: var(--body); max-width: 38ch; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  max-width: 1152px;
  margin: 0 auto;
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  padding: 20px 24px;
  display: none;
  z-index: 200;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { font-size: 14px; color: var(--body); margin: 0; max-width: 70ch; }
.cookie-actions { display: flex; gap: 12px; }

@media (max-width: 1024px) {
  h1 { font-size: 56px; letter-spacing: -1.5px; }
  .lede-grid, .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 32px; letter-spacing: -1px; }
  h2 { font-size: 28px; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; padding: 8px 0; }
  .nav-toggle { display: inline-flex; }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-figure img { height: 260px; }
  .lede-grid, .article-grid, .footer-grid { grid-template-columns: 1fr; }
}
