/* Kabengwa — personal site
   Mobile-first · Lake-stone palette · readable type */

:root {
  --bg: #eef3f0;
  --bg-soft: #e3ebe6;
  --surface: #fafcfb;
  --ink: #10211c;
  --ink-soft: #3d524a;
  --muted: #5f736a;
  --accent: #0a6b6b;
  --accent-hover: #085858;
  --accent-soft: rgba(10, 107, 107, 0.12);
  --gold: #9a7b2f;
  --line: rgba(16, 33, 28, 0.1);
  --shadow: 0 18px 50px rgba(16, 33, 28, 0.08);
  --radius: 4px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --nav-h: 4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 70rem;
  --readable: 38rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(10, 107, 107, 0.08), transparent 55%),
    radial-gradient(90% 60% at 0% 100%, rgba(154, 123, 47, 0.07), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--surface);
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

/* ——— Layout ——— */
.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - 2rem, 48rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(238, 243, 240, 0.88);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease), border-color 0.3s, color 0.3s;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle-bars {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-nav {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  background: rgba(250, 252, 251, 0.98);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem 1.5rem;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}

.site-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.85rem 0.5rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
  border-radius: var(--radius);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    inset: auto;
    background: transparent;
    border: 0;
    padding: 0;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }

  .site-nav a {
    padding: 0.45rem 0.75rem;
    font-size: 0.95rem;
  }
}

/* ——— Hero ——— */
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  background:
    radial-gradient(90% 70% at 0% 100%, rgba(10, 107, 107, 0.1), transparent 55%),
    linear-gradient(165deg, #f4f8f6 0%, #e7efeb 55%, #dce7e2 100%);
  overflow: hidden;
}

.hero-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: min(72vw, 26rem);
  background: #e8eeea;
  overflow: hidden;
  margin-inline: auto;
  width: 100%;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  filter: contrast(1.02) saturate(0.92);
  animation: hero-rise 1.1s var(--ease) both;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.75rem 1.25rem 2.5rem;
  color: var(--ink);
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 12vw, 4.5rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 0.85rem;
  color: var(--ink);
  animation: rise 0.85s var(--ease) both;
}

.hero-brand em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.hero-split h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  font-weight: 500;
  line-height: 1.28;
  max-width: 18ch;
  margin: 0 0 0.9rem;
  color: var(--ink);
  animation: rise 0.85s var(--ease) 0.08s both;
}

.hero-lead {
  max-width: 34ch;
  margin: 0 0 1.6rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
  animation: rise 0.85s var(--ease) 0.14s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.85s var(--ease) 0.2s both;
}

@media (min-width: 860px) {
  .hero-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    min-height: calc(100svh - var(--nav-h));
  }

  .hero-photo {
    order: 2;
    aspect-ratio: auto;
    max-height: none;
    height: 100%;
    min-height: calc(100svh - var(--nav-h));
    background: #e8eeea;
  }

  .hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .hero-copy {
    order: 1;
    padding: 3.25rem clamp(1.5rem, 4vw, 4.5rem);
    max-width: 34rem;
    margin-left: auto;
    width: 100%;
  }

  .hero-brand {
    font-size: clamp(3.25rem, 5.8vw, 5rem);
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-rise {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo img,
  .hero-brand,
  .hero-split h1,
  .hero-lead,
  .hero-actions,
  .reveal {
    animation: none !important;
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #f4fafa;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: rgba(250, 252, 251, 0.12);
  border-color: rgba(250, 252, 251, 0.35);
  color: #f4fafa;
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(250, 252, 251, 0.22);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--surface);
}

.btn-solid {
  background: var(--ink);
  color: var(--surface);
}

.btn-solid:hover {
  background: #1a332b;
  color: #fff;
}

/* ——— Sections ——— */
.section {
  padding: 4rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 36rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.65rem;
}

.section-head h2,
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.section-head p,
.lede {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.page-hero {
  padding: 3rem 0 1.5rem;
}

.page-hero .lede {
  max-width: 40rem;
}

/* ——— Story / prose ——— */
.prose {
  max-width: var(--readable);
}

.prose p {
  margin: 0 0 1.15rem;
  color: var(--ink-soft);
}

.prose p:last-child { margin-bottom: 0; }

.prose strong { color: var(--ink); }

.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3rem;
  }
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--bg-soft);
  aspect-ratio: 1 / 1;
  max-width: 26rem;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.02) saturate(0.92);
}

.portrait-caption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ——— Thoughts / posts ——— */
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 560px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 860px) {
  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .post-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.35rem;
  }
}

.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: inherit;
}

.post-card-media {
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  overflow: hidden;
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}

.post-card:hover .post-card-media img {
  transform: scale(1.04);
}

.post-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.95rem 1rem 1.15rem;
  flex: 1;
}

.post-card-body h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
}

.post-card-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-date {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.post-layout {
  padding-bottom: 3rem;
}

.post-layout .post-header,
.post-layout .post-body,
.post-layout .post-nav {
  width: min(100%, 44rem);
  margin-inline: auto;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.post-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  letter-spacing: -0.02em;
  margin: 2rem 0 0.75rem;
}

.post-body h3 {
  font-size: 1.08rem;
  margin: 1.5rem 0 0.55rem;
}

.post-body p,
.post-body li {
  color: var(--ink-soft);
}

.post-body p {
  margin: 0 0 1rem;
}

.post-body ul,
.post-body ol {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
}

.post-body li {
  margin-bottom: 0.4rem;
}

.post-body pre,
.post-body .code-block {
  margin: 0 0 1.25rem;
  padding: 1rem 1.05rem;
  overflow-x: auto;
  background: #14201c;
  color: #e8f2ef;
  border-radius: var(--radius);
  font-size: 0.88rem;
  line-height: 1.55;
}

.post-body code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.post-body p code,
.post-body li code {
  padding: 0.1em 0.35em;
  background: var(--accent-soft);
  border-radius: 3px;
  color: var(--ink);
}

.post-body pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.post-body .note {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  color: var(--ink-soft);
}

.post-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* ——— Trait bands ——— */
.traits {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .traits {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trait {
  padding: 1.35rem 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.trait:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.trait-visual {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  margin: -0.15rem -0.15rem 1rem;
  background: var(--bg-soft);
}

.trait-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.trait h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.trait p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ——— Skills / chips ——— */
.skill-groups {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .skill-groups {
    grid-template-columns: repeat(2, 1fr);
  }
}

.skill-group h3 {
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chips li {
  padding: 0.4rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ——— Project list (not cards in hero; interaction containers) ——— */
.project-list {
  display: grid;
  gap: 1rem;
}

.project {
  display: grid;
  gap: 0.85rem;
  padding: 1.35rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  transition: border-color 0.2s, box-shadow 0.25s var(--ease);
}

.project:hover {
  box-shadow: var(--shadow);
  border-left-color: var(--gold);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.project h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0;
  letter-spacing: -0.02em;
}

.project p {
  margin: 0;
  color: var(--ink-soft);
}

.tag {
  color: var(--accent);
}

@media (min-width: 800px) {
  .project {
    grid-template-columns: 8.5rem 1fr;
    gap: 1.25rem;
    align-items: start;
  }
}

/* ——— Stats strip ——— */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
}

@media (min-width: 700px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  padding: 1rem 0.25rem;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.stat span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ——— CV ——— */
.cv-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cv-toolbar p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.cv-doc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 2rem;
  box-shadow: var(--shadow);
}

@media (min-width: 720px) {
  .cv-doc {
    padding: 2.5rem 2.75rem 3rem;
  }
}

.cv-header {
  padding-bottom: 1.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid var(--ink);
}

.cv-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  margin: 0 0 0.35rem;
  letter-spacing: -0.03em;
}

.cv-title {
  margin: 0 0 1rem;
  color: var(--accent);
  font-weight: 650;
}

.cv-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.cv-contacts a {
  color: inherit;
  text-decoration: none;
}

.cv-contacts a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.cv-section {
  margin-bottom: 1.85rem;
}

.cv-section h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.01em;
}

.cv-section p {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
}

.cv-job {
  margin-bottom: 1.5rem;
}

.cv-job:last-child { margin-bottom: 0; }

.cv-job-head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.55rem;
}

@media (min-width: 640px) {
  .cv-job-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
  }
}

.cv-job h3 {
  margin: 0;
  font-size: 1.05rem;
}

.cv-job .org {
  color: var(--accent);
  font-weight: 650;
}

.cv-job .when {
  font-size: 0.88rem;
  color: var(--muted);
  white-space: nowrap;
}

.cv-job ul {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.cv-job li {
  margin-bottom: 0.35rem;
}

.cv-job li::marker {
  color: var(--accent);
}

.edu-item,
.ref-item {
  margin-bottom: 0.85rem;
}

.edu-item strong,
.ref-item strong {
  display: block;
  color: var(--ink);
}

.edu-item span,
.ref-item span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ——— Contact ——— */
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 760px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
  }
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-list .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.contact-list a,
.contact-list span.value {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05rem;
}

.contact-list a:hover {
  color: var(--accent);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.social-row a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.social-row a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cta-band {
  margin: 1rem 0 4rem;
  padding: 2rem 1.35rem;
  background:
    linear-gradient(135deg, rgba(10, 107, 107, 0.12), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.5rem;
}

.cta-band p {
  margin: 0 auto 1.25rem;
  max-width: 34rem;
  color: var(--ink-soft);
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 700px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

/* ——— Reveal on scroll ——— */
.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ——— Print (CV) — fallback if native print is used ——— */
@media print {
  @page {
    size: A4;
    margin: 14mm 16mm;
  }

  html,
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 10.5pt;
  }

  body * {
    visibility: hidden;
  }

  .cv-doc,
  .cv-doc * {
    visibility: visible;
  }

  .cv-doc {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
  }

  .site-header,
  .site-footer,
  .page-hero,
  .cv-toolbar,
  .nav-toggle,
  .skip-link,
  .section-head {
    display: none !important;
  }

  a,
  a:visited {
    color: inherit !important;
    text-decoration: none !important;
  }

  a[href]::after,
  a[href]::before {
    content: none !important;
  }
}
