/* ============================================
   V3 — Académico Sobrio
   Paleta: verde bosque profundo, crema cálido, cobre.
   Tipografía: serif académica (Crimson Pro) + sans (Outfit).
   Religioso: presencia clara — cruz + vers\u00edculo destacado +
   sección Fe & educación.
   ============================================ */

:root {
  --c-forest-900: #142b22;
  --c-forest-800: #1c3a2e;
  --c-forest-700: #244c3c;
  --c-forest-600: #356856;
  --c-forest-300: #8eb09f;
  --c-cream-50:   #f7f0e1;
  --c-cream-100:  #f0e8d5;
  --c-cream-200:  #e6dabe;
  --c-paper:      #fdfaf2;
  --c-copper-600: #a45a2b;
  --c-copper-500: #c97442;
  --c-copper-300: #e0a37b;
  --c-ink-900:    #18221d;
  --c-ink-700:    #2c3a32;
  --c-ink-500:    #5a6b62;
  --c-ink-400:    #8a958e;
  --c-rule:       rgba(20, 43, 34, 0.14);

  --bg:        var(--c-paper);
  --surface:   #ffffff;
  --surface-2: var(--c-cream-100);
  --text:      var(--c-ink-900);
  --text-soft: var(--c-ink-500);
  --text-mute: var(--c-ink-400);
  --accent:    var(--c-forest-800);
  --accent-2:  var(--c-copper-500);
  --primary:   var(--c-forest-900);
  --rule:      var(--c-rule);

  --shadow-sm: 0 1px 2px rgba(20, 43, 34, .05);
  --shadow-md: 0 14px 32px -16px rgba(20, 43, 34, .28), 0 4px 10px -6px rgba(20, 43, 34, .12);
  --shadow-lg: 0 36px 70px -28px rgba(20, 43, 34, .42);

  --font-display: "Crimson Pro", "Lora", Georgia, serif;
  --font-sans:    "Outfit", "Manrope", system-ui, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 9vw, 132px);
}

[data-theme="dark"] {
  --bg:        #0b1612;
  --surface:   #122019;
  --surface-2: #16271e;
  --text:      #efe6cf;
  --text-soft: #a8b3a9;
  --text-mute: #6f7d72;
  --rule:      rgba(239, 230, 207, 0.13);
  --accent:    var(--c-forest-300);
  --accent-2:  var(--c-copper-300);
  --primary:   var(--c-forest-900);
  --shadow-md: 0 18px 40px -22px rgba(0,0,0,.7);
  --shadow-lg: 0 40px 80px -32px rgba(0,0,0,.85);
}

/* ============================================
   Body & typography
   ============================================ */
body {
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 92% 4%, rgba(53,104,86,.05), transparent 38%),
    radial-gradient(circle at 0% 22%, rgba(201,116,66,.05), transparent 40%);
  transition: background 300ms ease, color 300ms ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.08;
}
h1 { font-size: clamp(46px, 6.8vw, 96px); }
h2 { font-size: clamp(34px, 4.4vw, 60px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); }
h4 { font-size: 14px; font-family: var(--font-sans); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--text-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.eyebrow::before {
  content: "";
  width: 32px; height: 1px;
  background: currentColor;
}

[data-theme="dark"] .eyebrow { color: var(--accent-2); }

.container {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { margin-top: 16px; }
.section-head p { color: var(--text-soft); font-size: 18px; line-height: 1.55; margin-top: 16px; max-width: 56ch; }

/* ============================================
   Cross marker (recurring motif)
   ============================================ */
.cross-mark {
  display: inline-block;
  width: 12px;
  height: 16px;
  position: relative;
}
.cross-mark::before, .cross-mark::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.cross-mark::before { left: 50%; transform: translateX(-50%); top: 0; bottom: 0; width: 1.6px; }
.cross-mark::after  { top: 30%; transform: translateY(-50%); left: 0; right: 0; height: 1.6px; }

/* ============================================
   Top bar (above header) — pequeña dignidad institucional
   ============================================ */
.topbar {
  background: var(--primary);
  color: var(--c-cream-50);
  font-size: 12.5px;
  letter-spacing: .04em;
}
.topbar-row {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar-row > div { display: flex; align-items: center; gap: 18px; }
.topbar-row .latin {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--c-copper-300);
  letter-spacing: .04em;
}
.topbar-row a { color: var(--c-cream-50); opacity: .85; transition: opacity 200ms ease; }
.topbar-row a:hover { opacity: 1; color: var(--c-copper-300); }

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }

.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
}
.brand-crest {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--c-cream-50);
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid var(--accent-2);
}
.brand-crest .cross-mark { color: var(--c-copper-300); }
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: .01em;
}
.brand-name span {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-menu a {
  position: relative;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: color 180ms ease;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--accent-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
}
.nav-menu a:hover { color: var(--accent); }
.nav-menu a.is-active::after { transform: scaleX(1); }
.nav-menu a.is-active { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
  border: 1px solid var(--rule);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.theme-toggle:hover { background: var(--surface-2); border-color: var(--accent-2); color: var(--accent-2); }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 22px; height: 1.6px;
  background: var(--text);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-weight: 600;
  font-size: 14.5px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform 180ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--accent);
  color: var(--c-cream-50);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { background: var(--c-forest-700); }
[data-theme="dark"] .btn--primary { background: var(--accent-2); color: var(--c-forest-900); }
[data-theme="dark"] .btn--primary:hover { background: var(--c-copper-300); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--rule);
}
.btn--ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }
.btn--copper { background: var(--accent-2); color: var(--c-cream-50); }
.btn--copper:hover { background: var(--c-copper-600); }
.btn svg { width: 16px; height: 16px; }

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: clamp(56px, 8vw, 96px) 0 0;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: end;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--rule);
  border-radius: 99px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 28px;
}
.hero-tag .cross-mark { color: var(--accent-2); }

.hero-title {
  font-size: clamp(54px, 7.4vw, 112px);
  line-height: .96;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.hero-title em {
  font-style: italic;
  font-family: var(--font-display);
  color: var(--accent);
}
.hero-title .underline {
  position: relative;
  display: inline-block;
}
.hero-title .underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 6px;
  background: var(--c-copper-300);
  z-index: -1;
  opacity: .55;
}
[data-theme="dark"] .hero-title .underline::after { background: var(--c-copper-500); opacity: .35; }

.hero-lead {
  font-size: 19.5px;
  color: var(--text-soft);
  max-width: 50ch;
  line-height: 1.55;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  font-size: 14px;
  color: var(--text-soft);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--accent-2); }

/* Hero portrait card */
.hero-card {
  background: var(--primary);
  color: var(--c-cream-50);
  padding: 32px;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--accent-2);
}
.hero-card::after {
  content: "✝";
  position: absolute;
  font-family: var(--font-display);
  font-size: 380px;
  line-height: 1;
  color: rgba(224, 163, 123, .07);
  right: -60px;
  bottom: -120px;
  pointer-events: none;
}
.hero-card .photo {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--c-forest-600), var(--c-forest-900));
  border-radius: 4px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.hero-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  filter: saturate(.95);
}
.hero-card .photo::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(224, 163, 123, .55);
  pointer-events: none;
  z-index: 2;
}
.hero-card .photo-caption {
  position: absolute;
  left: 18px; bottom: 18px;
  z-index: 3;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--c-cream-50);
  letter-spacing: .02em;
  text-shadow: 0 2px 8px rgba(0,0,0,.55);
}
.hero-card .photo-caption::before {
  content: "";
  display: inline-block;
  width: 22px; height: 1px;
  background: var(--c-copper-300);
  vertical-align: middle;
  margin-right: 10px;
}

.about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.hero-card-monogram {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 4px;
  color: var(--c-cream-50);
  letter-spacing: .02em;
}
.hero-card-role {
  font-size: 12.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-copper-300);
}
.hero-card-rule {
  height: 1px;
  background: rgba(224, 163, 123, .25);
  margin: 18px 0;
}
.hero-card-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: var(--c-cream-50);
  position: relative;
  z-index: 1;
}

/* ============================================
   Verse band (visible religious accent)
   ============================================ */
.verse-band {
  background: var(--primary);
  color: var(--c-cream-50);
  padding: clamp(80px, 9vw, 120px) var(--gutter);
  text-align: center;
  margin-top: clamp(80px, 9vw, 120px);
  position: relative;
  overflow: hidden;
}
.verse-band::before, .verse-band::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-copper-300), transparent);
  opacity: .5;
}
.verse-band::before { left: 0; }
.verse-band::after  { right: 0; }
.verse-band .cross {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--c-copper-300);
  line-height: 1;
  margin-bottom: 14px;
}
.verse-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.25;
  max-width: 28ch;
  margin: 0 auto;
  color: var(--c-cream-50);
  letter-spacing: -.005em;
}
.verse-cite {
  margin-top: 24px;
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--c-copper-300);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.verse-cite::before, .verse-cite::after {
  content: "";
  width: 26px; height: 1px;
  background: var(--c-copper-300);
}

/* ============================================
   About
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}
.about-photo {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  color: var(--text-mute);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: .04em;
}
.about-photo::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--accent-2);
  opacity: .45;
}

.about-body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.about-body p.first { font-size: 22px; line-height: 1.5; color: var(--text); font-family: var(--font-display); font-style: italic; max-width: 32ch; }
.about-body p strong { color: var(--text); font-weight: 600; }

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -.01em;
}
[data-theme="dark"] .fact strong { color: var(--accent-2); }
.fact span {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--text-soft);
}

/* ============================================
   Services — academic catalog style
   ============================================ */
.section--alt {
  background: var(--surface-2);
}
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}
.service {
  padding: 36px 36px 32px;
  position: relative;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  background: var(--surface);
  transition: background 220ms ease;
}
.service:hover { background: var(--surface-2); }
.service:nth-child(2n) { border-right: 0; }
.service:nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 720px) {
  .service { border-right: 0; }
  .service:nth-last-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .service:last-child { border-bottom: 0; }
}

.service-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
}
.service-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  color: var(--accent-2);
  font-weight: 500;
}
.service h3 { font-size: 26px; flex: 1; }
.service p {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 18px;
  max-width: 50ch;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service-tags span {
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid var(--rule);
  border-radius: 99px;
  color: var(--text-soft);
}

/* ============================================
   Faith & education (visible religious section)
   ============================================ */
.faith {
  background: var(--primary);
  color: var(--c-cream-50);
  position: relative;
  overflow: hidden;
}
.faith::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(201, 116, 66, .12), transparent 40%),
    radial-gradient(circle at 12% 80%, rgba(53, 104, 86, .25), transparent 38%);
  pointer-events: none;
}
.faith .container { position: relative; z-index: 1; }
.faith .eyebrow { color: var(--c-copper-300); }
.faith h2, .faith h3 { color: var(--c-cream-50); }
.faith p { color: rgba(247, 240, 225, .8); }

.faith-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}
.faith-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.35;
  color: var(--c-cream-50);
  margin-bottom: 28px;
  max-width: 26ch;
}
.faith-body p {
  font-size: 16.5px;
  line-height: 1.75;
  margin-bottom: 18px;
}

.pillars {
  display: grid;
  gap: 22px;
}
.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  padding: 26px;
  background: rgba(247, 240, 225, .05);
  border: 1px solid rgba(247, 240, 225, .08);
  border-left: 3px solid var(--c-copper-300);
  border-radius: 4px;
  transition: background 220ms ease;
}
.pillar:hover { background: rgba(247, 240, 225, .08); }
.pillar-roman {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 32px;
  font-weight: 500;
  color: var(--c-copper-300);
  line-height: 1;
  min-width: 40px;
}
.pillar h3 { font-size: 22px; margin-bottom: 8px; }
.pillar p { font-size: 15px; line-height: 1.65; color: rgba(247, 240, 225, .72); }

/* ============================================
   Experience — academic CV style
   ============================================ */
.cv {
  display: grid;
  gap: 0;
}
.cv-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 36px;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.cv-row:first-child { border-top: 1px solid var(--rule); }
.cv-period {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent);
  letter-spacing: -.01em;
  font-style: italic;
}
.cv-period span {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 6px;
}
[data-theme="dark"] .cv-period { color: var(--accent); }
.cv-content h3 { font-size: 26px; margin-bottom: 4px; }
.cv-place {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 14px;
}
.cv-place strong { color: var(--text); font-weight: 600; }
.cv-place::before {
  content: "";
  width: 10px;
  height: 1px;
  background: var(--accent-2);
}
.cv-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 64ch;
}
.cv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.cv-tags span {
  font-size: 11.5px;
  padding: 3px 10px;
  border: 1px solid var(--rule);
  border-radius: 99px;
  color: var(--text-soft);
}

/* ============================================
   Credentials
   ============================================ */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cred {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 28px;
  border-radius: var(--radius-md);
  position: relative;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.cred:hover {
  transform: translateY(-3px);
  border-color: var(--accent-2);
  box-shadow: var(--shadow-md);
}
.cred-seal {
  position: absolute;
  top: 22px; right: 24px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--accent-2);
}
.cred-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.cred h3 { font-size: 20px; margin-bottom: 6px; line-height: 1.25; }
.cred .meta { color: var(--text-soft); font-size: 14px; }

/* ============================================
   Portfolio
   ============================================ */
.portfolio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.work {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 280ms ease, box-shadow 280ms ease;
}
.work:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.work-cover {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
}
.work:nth-child(1) .work-cover { background: linear-gradient(155deg, var(--c-forest-700), var(--c-forest-900)); }
.work:nth-child(2) .work-cover { background: linear-gradient(155deg, var(--c-copper-300), var(--c-copper-600)); }
.work:nth-child(3) .work-cover { background: linear-gradient(155deg, #d3c6a3, #836a3d); }
.work:nth-child(4) .work-cover { background: linear-gradient(155deg, var(--c-forest-300), #5a786a); }

.work-cover::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255,255,255,.18);
  pointer-events: none;
}
.work-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.work-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20,43,34,.45) 0%, rgba(20,43,34,0) 35%);
  z-index: 1;
  pointer-events: none;
}
.work-cover-glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.9);
}
.work-cover-glyph svg { width: 78px; height: 78px; }
.work-tag {
  position: absolute;
  top: 22px; left: 22px;
  z-index: 2;
  background: rgba(255,255,255,.12);
  color: var(--c-cream-50);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,.22);
}
.work-body { padding: 26px 28px 28px; }
.work-body h3 { font-size: 24px; margin-bottom: 8px; }
.work-body p { color: var(--text-soft); font-size: 15.5px; line-height: 1.65; }
.work-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 16px;
  font-size: 13px; color: var(--text-mute);
}
.work-meta span { display: inline-flex; align-items: center; gap: 6px; }
.work-meta span::before { content: ""; width: 4px; height: 4px; background: var(--accent-2); border-radius: 50%; }

/* ============================================
   Contact
   ============================================ */
.contact-frame {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}
.contact-meta p.lead {
  font-size: 18.5px;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 36ch;
  margin: 16px 0 32px;
}
.channels { display: grid; gap: 14px; }
.channel {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--radius-sm);
  transition: transform 200ms ease, border-color 200ms ease;
}
.channel:hover { transform: translateX(4px); }
.channel .ico {
  width: 42px; height: 42px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--accent);
  display: grid; place-items: center;
}
[data-theme="dark"] .channel .ico { color: var(--accent); }
.channel .ico svg { width: 18px; height: 18px; }
.channel .meta { display: flex; flex-direction: column; }
.channel .meta strong { font-size: 15px; font-weight: 600; color: var(--text); }
.channel .meta span { font-size: 13px; color: var(--text-soft); }

.form {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 36px;
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow-md);
}
.field { display: grid; gap: 6px; }
.field label {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 600;
}
.field input, .field textarea {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--text);
  transition: border-color 200ms ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-status { font-size: 13.5px; color: var(--text-soft); min-height: 18px; }
.form-status[data-state="success"] { color: var(--accent-2); }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--primary);
  color: var(--c-cream-50);
  padding: 56px 0 28px;
}
.site-footer a { color: rgba(247, 240, 225, .75); transition: color 200ms ease; }
.site-footer a:hover { color: var(--c-copper-300); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-grid h4 { color: var(--c-copper-300); margin-bottom: 12px; }
.footer-grid p { color: rgba(247, 240, 225, .75); font-size: 14.5px; max-width: 36ch; line-height: 1.6; }
.footer-grid ul li { margin-bottom: 8px; font-size: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(247, 240, 225, .12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(247, 240, 225, .55);
}
.footer-bottom em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--c-copper-300);
  font-size: 14px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .faith-grid,
  .contact-frame { grid-template-columns: 1fr; }
  .services,
  .cred-grid,
  .portfolio { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cv-row { grid-template-columns: 1fr; gap: 14px; }
  .topbar-row > div:last-child { display: none; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    padding: 12px var(--gutter) 24px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
  }
  .nav-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-menu a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .nav-menu a:last-child { border: 0; }
  .nav-menu a::after { display: none; }

  .footer-grid { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr 1fr; }
  .form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .brand-name span { display: none; }
}
