:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #1f2a37;
  --muted: #5b6573;
  --line: #e7e1d7;
  --accent: #2f6f6a;
  --accent-soft: #e3efed;
  --warm: #c2643f;
  --radius: 14px;
  --max: 1080px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }
a:hover { color: var(--warm); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}

.site-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
}
.site-nav a:hover { color: var(--ink); background: var(--bg); }
.site-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { border-radius: 8px; padding: 12px 14px; }
}

/* ---------- Page structure ---------- */

main { padding: 56px 0 80px; }

.page-head { margin-bottom: 40px; }

.eyebrow {
  color: var(--warm);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 16px;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

.lede { color: var(--muted); font-size: 1.2rem; max-width: 60ch; margin: 0; }

section + section { margin-top: 72px; }
section[id] { scroll-margin-top: 96px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

/* ---------- Home ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.hero-photo {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px -24px rgba(31, 42, 55, 0.45);
}

.hero p { margin: 0 0 16px; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 64px;
}
.facts .card { padding: 22px 24px; }
.facts strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.facts span { color: var(--muted); font-size: 1rem; line-height: 1.5; display: block; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  margin-top: 8px;
}
.btn:hover { background: var(--ink); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  margin-left: 8px;
}
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent); }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .facts { grid-template-columns: 1fr; margin-top: 40px; }
}

/* ---------- Artifacts ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.infographic {
  max-width: 380px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 40px -24px rgba(31, 42, 55, 0.45);
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.tools li {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 4px 14px;
  border-radius: 999px;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.doc {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.doc:hover {
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -20px rgba(31, 42, 55, 0.4);
}
.doc .tag {
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 12px;
}
.doc h3 { margin-bottom: 8px; }
.doc p { color: var(--muted); font-size: 1rem; line-height: 1.55; margin: 0 0 20px; flex: 1; }
.doc .action { font-weight: 700; color: var(--accent); font-size: 1rem; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
}

/* ---------- Blog ---------- */

.post {
  max-width: 720px;
  margin: 0 auto;
}
.post-banner {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 40px;
  aspect-ratio: 16 / 7;
}
.post-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.post p { font-size: 1.2rem; }

/* ---------- Contact / links ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.link-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.link-card:hover {
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -20px rgba(31, 42, 55, 0.4);
}
.link-card .icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
}
.link-card .icon svg { width: 26px; height: 26px; fill: currentColor; }
.link-card strong { display: block; font-size: 1.15rem; }
.link-card span { color: var(--muted); font-size: 0.95rem; }

.icon-linkedin { background: #0a66c2; }
.icon-facebook { background: #1877f2; }
.icon-email { background: var(--warm); }

.banner-img {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 6;
  margin-bottom: 48px;
}
.banner-img img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Social icons (Home) ---------- */

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.social-row a {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
}
.social-row a:hover { opacity: 0.85; color: #fff; }
.social-row svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Portfolio modules ---------- */

.module-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 28px;
}
.module-head h2 { margin: 0; }

.standards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.standards li {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  padding: 2px 8px;
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 700;
  font-size: 1rem;
}

.doc-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .doc-grid.two { grid-template-columns: 1fr; } }

/* ---------- PLN ---------- */

.pln-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.pln-grid .card { display: flex; flex-direction: column; }
.pln-grid h3 { margin-bottom: 4px; }
.pln-grid p { font-size: 1rem; line-height: 1.6; color: var(--muted); margin: 8px 0 0; }
.pln-grid p strong { color: var(--ink); }
.pln-grid .visit { margin-top: auto; padding-top: 16px; font-weight: 700; font-size: 1rem; }

.scope {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.scope-global { background: var(--accent-soft); color: var(--accent); }
.scope-local { background: #f6e6dd; color: var(--warm); }

/* ---------- Blog list ---------- */

.post + .post {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}
.post-head { max-width: 720px; margin: 0 auto 48px; }
.post-meta { color: var(--muted); font-size: 0.95rem; margin: -8px 0 24px; }
.post figure { margin: 32px 0; }
.post figcaption { color: var(--muted); font-size: 0.95rem; margin-top: 8px; }
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  main { padding: 36px 0 56px; }
  .card { padding: 22px; }
  .btn-ghost { margin-left: 0; margin-top: 12px; }
}
