/* RADR — design system (FBK-inspired: light surfaces, red accent, bold uppercase type, scroll reveals) */
:root {
  --bg: #f9f9f9;
  --surface: #ffffff;
  --ink: #1d2527;
  --ink-soft: #2f3537;
  --muted: #afb4b6;
  --primary: #df341d;
  --primary-2: #f3182d;
  --line: #e8eaec;
  --radius: 14px;
  --shadow: 0 6px 18px rgba(20, 24, 27, .08);
  --hdr-h: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* anchor targets clear the sticky header when deep-linked (e.g. /projects#<id>) */
section[id], article[id] { scroll-margin-top: calc(var(--hdr-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }

/* ---------- layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 24px 20px; }
main { min-height: 70vh; }
kicker { display: block; }
.kicker {
  display: inline-block; font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.6px; color: var(--primary);
  margin: 0 0 14px;
}
h1, h2 { text-transform: uppercase; letter-spacing: .4px; }
h1.page-title { font-size: 2.1rem; margin: 0 0 8px; }
h2.sec { font-size: 1.45rem; margin: 0 0 18px; }
.lede { font-size: 1.06rem; line-height: 1.7; color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; font-weight: 700; font-size: .95rem; letter-spacing: .3px;
  border-radius: 999px; text-decoration: none; box-shadow: 0 4px 14px rgba(223, 52, 29, .25);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(223, 52, 29, .32); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost {
  display: inline-block; padding: 12px 26px; cursor: pointer;
  background: transparent; color: var(--ink); border: 2px solid var(--line);
  font-weight: 700; font-size: .95rem; letter-spacing: .3px;
  border-radius: 999px; text-decoration: none;
  transition: transform .15s, color .15s, border-color .15s, background .15s;
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(29, 37, 39, .05); border-color: var(--ink-soft); color: var(--ink-soft);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 2px 12px rgba(20, 24, 27, .12); }
.h-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 22px; min-height: var(--hdr-h); }
.h-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.h-brand .dot { width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.h-brand span { font-weight: 800; font-size: 1.06rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink); }
.h-nav { display: flex; gap: 18px; font-size: .95rem; font-weight: 600; }
.h-nav a { text-decoration: none; color: var(--ink-soft); transition: color .15s; }
.h-nav a:hover { color: var(--primary); }
.h-cta { margin-left: auto; }
.h-lang {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 34px; padding: 0 8px; font-size: .82rem; font-weight: 700;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft);
  text-decoration: none; transition: color .15s, border-color .15s, background .15s;
}
.h-lang:hover { color: var(--primary); border-color: var(--primary); background: rgba(37, 124, 229, .08); }
@media (max-width: 860px) {
  .h-nav { display: none; }
  .h-burger { display: inline-flex; margin-left: auto; margin-right: 0; }
  .h-nav.open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: var(--hdr-h); background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px; gap: 12px; }
}
.h-burger {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 40px; height: 38px; cursor: pointer; font-size: 1.15rem; line-height: 1; color: var(--ink);
}
.h-burger:before { content: '☰'; }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(20, 24, 27, .04); overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .thumb, .card img.thumb { width: 100%; height: 180px; object-fit: cover; display: block; }
.card .body { padding: 18px 20px; }
.card h3, .card h2, .card h4 { margin: 0 0 8px; color: var(--ink); }
.card p { font-size: .95rem; line-height: 1.5; color: var(--ink-soft); }
.card a.more { color: var(--primary); font-weight: 700; text-decoration: underline; }

/* ---------- reveal animations ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(26px); }
html.js [data-reveal].in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; transition-delay: var(--d, 0s); }
@media (prefers-reduced-motion: reduce) { html.js [data-reveal] { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero {
  padding: 90px 20px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fdfdfd, #f1f2f4);
}
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: .6px; margin: 14px 0 10px; }
.hero .sub { display: block; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: 2.4px; margin-top: 0; }
.hero .mission { max-width: 680px; margin: 22px auto; color: var(--ink-soft); font-size: 1.1rem; line-height: 1.6; }
.hero .actions { display: flex; gap: 14px; justify-content: center; margin: 26px 0 0; flex-wrap: wrap; }

/* ---------- sections ---------- */
section.block { padding: 56px 0; }
section.tint { background: linear-gradient(120deg, #fdf0ec, #f9f9f9); }
.section-head { margin-bottom: 28px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #eef1f3; padding: 46px 20px 20px; }
.f-wrap { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.f-col h4 { color: #fff; margin: 0 0 10px; font-size: .8rem; text-transform: uppercase; letter-spacing: 1.4px; }
.f-col p, .f-col address { font-size: .9rem; color: #c9d0d6; line-height: 1.5; }
.f-nav { list-style: none; padding-left: 0; margin: 0; }
.f-nav li { margin-bottom: 6px; }
.f-nav a { color: #e4e8ec; text-decoration: none; }
.f-nav a:hover { color: #fff; text-decoration: underline; }
.f-social { list-style: none; padding-left: 0; margin: 0 0 14px; display: flex; gap: 10px; }
.f-social .social { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; border: 1px solid #3a4347; color: #eef1f3; text-decoration: none; transition: color .15s, border-color .15s, background .15s; }
.f-social .social:hover { color: #fff; border-color: var(--primary); background: rgba(223,52,29,.16); text-decoration: none; }
.f-mail { display: flex; flex-direction: column; gap: 10px; }
.f-mail .f-row { display: flex; gap: 8px; }
.f-mail input[type=email] { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid #3a4046; border-radius: 8px; background: #252a30; color: #eef1f3; }
.f-mail .f-row .btn { padding: 9px 18px; font-size: .85rem; flex-shrink: 0; }
.f-mail label { font-size: .82rem; color: #b9c0c8; display: flex; gap: 8px; align-items: flex-start; line-height: 1.35; }
.f-bottom { max-width: 1120px; margin: 18px auto 0; font-size: .8rem; color: #9aa4ad; text-align: center; }
.f-bottom a { color: #c9d0d6; }

/* ---------- tables / prose (reports, posts) ---------- */
.prose { line-height: 1.7; font-size: 1.02rem; color: var(--ink-soft); }
.prose h2 { color: var(--ink); margin-top: 34px; border-bottom: 2px solid var(--line); padding-bottom: 8px; }
.prose h3 { color: var(--primary); font-size: 1.08rem; margin-top: 20px; }
.prose img { border-radius: 12px; display: block; max-width: 100%; margin: 14px auto 22px; }
.prose a { color: var(--primary); text-decoration: underline; }
.prose blockquote { border-left: 4px solid var(--primary); margin: 18px 0; padding: 10px 18px; background: #fdf1ec; color: var(--ink-soft); }
.prose table { border-collapse: collapse; margin: 14px 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; }

@media (max-width: 640px) {
  .wrap { padding: 18px 14px; }
  section.block { padding: 38px 0; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 14px; }
}