/* =====================================================
   Anthony Dozier — personal site
   Palette: CCS navy + crystal cyan, paired with warm umber/cream
   ===================================================== */

:root {
  /* CCS brand */
  --navy: #0B2545;
  --navy-deep: #061629;
  --crystal: #3DA5D9;
  --crystal-light: #6FC0E6;
  --crystal-soft: rgba(61,165,217,0.14);

  /* Warm intimate accents */
  --cream: #F5EFE6;
  --paper: #FAF6EF;
  --umber: #8B6B47;
  --umber-deep: #4A3520;
  --terra: #C8754A;
  --gold: #D9A441;

  /* Neutrals */
  --ink: #14213D;
  --ink-soft: #3A4A6B;
  --slate: #5E6B85;
  --slate-soft: #94A0B8;
  --hairline: rgba(11, 37, 69, 0.10);
  --hairline-strong: rgba(11, 37, 69, 0.22);
  --hairline-dark: rgba(255,255,255,0.12);

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* Layout */
  --container: 1180px;
  --container-narrow: 760px;
  --header-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}
.container-narrow { max-width: var(--container-narrow); }

/* ---------- Typography defaults ---------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--terra);
  margin: 0 0 16px;
}
.eyebrow-dark { color: var(--terra); }
.eyebrow-light { color: var(--crystal-light); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 20px;
}
.section-title-light { color: #fff; }

.section-lede {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
}
.section-lede-light { color: rgba(255,255,255,0.78); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 40px);
  background: transparent;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), box-shadow 0.35s var(--ease);
  color: #fff;
}
.site-header.is-scrolled {
  background: rgba(11, 37, 69, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.site-header.is-light {
  color: var(--navy);
}
.site-header.is-light.is-scrolled {
  background: rgba(250, 246, 239, 0.86);
  box-shadow: 0 1px 0 var(--hairline);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand svg { flex-shrink: 0; }

.primary-nav {
  display: none;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}
.primary-nav a {
  position: relative;
  padding: 6px 0;
  opacity: 0.78;
  transition: opacity 0.2s var(--ease);
}
.primary-nav a:hover,
.primary-nav a.is-active { opacity: 1; }
.primary-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.audio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.85;
  transition: opacity 0.2s, background 0.2s;
}
.audio-toggle:hover { opacity: 1; background: rgba(255,255,255,0.08); }
.site-header.is-light .audio-toggle:hover { background: rgba(11,37,69,0.06); }
.audio-toggle .icon-pause { display: none; }
.audio-toggle.is-playing .icon-play { display: none; }
.audio-toggle.is-playing .icon-pause { display: inline-block; }

.menu-toggle {
  display: inline-flex;
  padding: 6px;
  border-radius: 8px;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--navy-deep);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 22px; }
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.01em;
}
.menu-close {
  position: absolute;
  top: 20px; right: 20px;
  padding: 8px;
  border-radius: 999px;
  color: #fff;
}

@media (min-width: 900px) {
  .primary-nav { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--crystal);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(61,165,217,0.55);
}
.btn-primary:hover { background: var(--crystal-light); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.45);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.8); }

.btn-dark {
  background: var(--navy);
  color: #fff;
}
.btn-dark:hover { background: var(--navy-deep); transform: translateY(-1px); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: saturate(0.95);
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 600px at 8% 95%, rgba(11,37,69,0.85), transparent 65%),
    linear-gradient(180deg, rgba(11,37,69,0.55) 0%, rgba(6,22,41,0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
  padding: calc(var(--header-h) + 40px) clamp(20px, 4vw, 40px) 120px;
}
.hero-content .eyebrow {
  color: var(--crystal-light);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: clamp(46px, 9vw, 116px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  color: #fff;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--crystal-light);
  font-variation-settings: "opsz" 144, "SOFT" 80;
}
.hero-sub {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  max-width: 58ch;
  color: rgba(255,255,255,0.84);
  margin: 0 0 36px;
}
.hero-sub a {
  color: var(--crystal-light);
  border-bottom: 1px solid rgba(111,192,230,0.4);
}
.hero-sub a:hover { border-color: var(--crystal-light); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 14px;
  z-index: 1;
}
.scroll-cue span {
  display: block;
  width: 2px;
  height: 8px;
  background: rgba(255,255,255,0.7);
  margin: 8px auto 0;
  border-radius: 1px;
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* =====================================================
   Sections (shared)
   ===================================================== */
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section-head { margin-bottom: clamp(48px, 6vw, 80px); max-width: 760px; }

/* =====================================================
   STORY
   ===================================================== */
.section-story { background: var(--paper); }
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
}
@media (min-width: 1000px) {
  .story-grid {
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
    gap: 88px;
  }
}

.story-narrative .chapter {
  border-top: 1px solid var(--hairline);
  padding-top: 56px;
  margin-top: 56px;
}
.story-narrative .chapter:first-child { border-top: none; padding-top: 0; margin-top: 0; }

.chapter-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 72;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 32px;
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.chapter-num {
  font-size: 0.55em;
  color: var(--terra);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.chapter-sub {
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--umber);
  font-weight: 600;
  margin: 36px 0 16px;
}

.story-narrative p {
  font-size: 18px;
  line-height: 1.72;
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 64ch;
}
.story-narrative p em { color: var(--terra); font-style: italic; }
.story-narrative p strong { color: var(--navy); }

.pullquote {
  margin: 40px 0;
  padding: 28px 32px;
  border-left: 3px solid var(--terra);
  background: linear-gradient(90deg, rgba(200,117,74,0.06), transparent);
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-variation-settings: "opsz" 72, "SOFT" 80;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.story-figure {
  margin: 56px 0;
}
.story-figure img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 30px 60px -30px rgba(20, 33, 61, 0.4);
}
.story-figure figcaption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--umber);
  font-style: italic;
  letter-spacing: 0.02em;
}

.story-timeline {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  padding: 28px 28px 24px;
  background: var(--cream);
  border: 1px solid rgba(139,107,71,0.18);
  border-radius: 6px;
  font-size: 14px;
}
.timeline-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--umber);
  font-weight: 700;
  margin: 0 0 18px;
}
.story-timeline ol {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.story-timeline ol::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(139,107,71,0.3);
}
.story-timeline li {
  position: relative;
  padding: 0 0 18px 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.story-timeline li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--terra);
  box-shadow: 0 0 0 3px var(--cream);
}
.story-timeline li:last-child { padding-bottom: 0; }
.story-timeline li:last-child::before { background: var(--navy); }
.year {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--umber-deep);
}
.event { color: var(--ink-soft); line-height: 1.5; }
.event em { color: var(--terra); font-style: italic; font-weight: 600; }

/* =====================================================
   WORK
   ===================================================== */
.section-work {
  background: var(--navy);
  color: #fff;
}
.section-work .eyebrow { color: var(--crystal-light); }

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 88px;
}
.pillar {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 32px 28px;
  border-radius: 6px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pillar:hover { background: rgba(255,255,255,0.07); border-color: rgba(111,192,230,0.4); }
.pillar-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 300;
  font-style: italic;
  color: var(--crystal-light);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.pillar h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: #fff;
  line-height: 1.25;
}
.pillar p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
}

.work-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-top: 56px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
@media (min-width: 900px) {
  .work-feature { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; }
}

.work-feature h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 20px;
  color: #fff;
}
.work-feature p {
  color: rgba(255,255,255,0.78);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 24px;
}
.work-feature p strong { color: var(--crystal-light); font-weight: 600; }

.divisions {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 10px;
}
.divisions li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 15px;
  color: rgba(255,255,255,0.85);
}
.divisions li span {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--crystal-light);
  font-weight: 500;
  width: 24px;
}

.video-embed {
  aspect-ratio: 16/9;
  background: var(--navy-deep);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  overflow: hidden;
}
.video-embed video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #061523;
}
.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 24px;
}
.video-placeholder p { margin: 0; font-size: 14px; }
.video-placeholder .video-meta { font-size: 12px; color: rgba(255,255,255,0.35); }
.video-placeholder code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
}

/* =====================================================
   LAB
   ===================================================== */
.section-lab {
  position: relative;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.lab-bg { position: absolute; inset: 0; z-index: -1; }
.lab-bg img { width: 100%; height: 100%; object-fit: cover; }
.lab-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,22,41,0.92) 0%, rgba(6,22,41,0.70) 55%, rgba(6,22,41,0.35) 100%);
}

.lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 660px;
}
.lab-copy p {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  margin: 0 0 20px;
  max-width: 52ch;
}
.lab-copy p strong { color: var(--crystal-light); font-weight: 600; }

.lab-stats {
  display: flex;
  gap: 44px;
  margin: 40px 0 32px;
  flex-wrap: wrap;
}
.lab-stats > div { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(36px, 4.4vw, 56px);
  letter-spacing: -0.03em;
  color: var(--crystal-light);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
}

.lab-foot {
  margin-top: 24px;
  font-style: italic;
  color: rgba(255,255,255,0.65);
}

/* =====================================================
   LIFE
   ===================================================== */
.section-life { background: var(--cream); }

.life-figure {
  margin: 0 0 64px;
}
.life-figure img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 30px 60px -30px rgba(20, 33, 61, 0.35);
}

.life-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  border-top: 1px solid rgba(139,107,71,0.25);
}
.life-card {
  padding: 32px 24px 28px;
  border-right: 1px solid rgba(139,107,71,0.18);
  border-bottom: 1px solid rgba(139,107,71,0.18);
  background: rgba(245,239,230,0.5);
  transition: background 0.3s var(--ease);
}
.life-card:hover { background: rgba(255,255,255,0.55); }
.life-card:last-child { border-right: none; }

.life-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 12px;
}
.life-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

@media (max-width: 700px) {
  .life-card { border-right: none; }
}

/* =====================================================
   NEXT
   ===================================================== */
.section-next {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-next::before {
  content: "";
  position: absolute;
  top: -10%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--crystal-soft), transparent 65%);
  pointer-events: none;
}
.next-inner {
  max-width: 760px;
  position: relative;
}
.next-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
  color: #fff;
}
.next-body {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  margin: 0 0 20px;
  max-width: 62ch;
}
.next-body em {
  color: var(--crystal-light);
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 500;
}

/* =====================================================
   CONTACT
   ===================================================== */
.section-contact { background: var(--paper); }
.contact-head { text-align: center; margin-left: auto; margin-right: auto; }
.contact-head .section-title { max-width: 18ch; margin-left: auto; margin-right: auto; }

.contact-form {
  display: grid;
  gap: 20px;
}
.form-row {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--umber-deep);
  letter-spacing: 0.02em;
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(139,107,71,0.25);
  border-radius: 4px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-weight: 400;
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--crystal);
  box-shadow: 0 0 0 3px rgba(61,165,217,0.18);
}
.contact-form textarea { resize: vertical; min-height: 120px; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 8px;
}
.form-note { margin: 0; font-size: 13px; color: var(--umber); }
.form-note a { color: var(--terra); border-bottom: 1px solid rgba(200,117,74,0.4); }

.form-status {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--terra);
  min-height: 1em;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 36px;
  font-size: 14px;
}
.footer-inner {
  display: grid;
  gap: 28px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 800px) {
  .footer-inner { grid-template-columns: 1fr auto 1fr; }
  .footer-copy { grid-column: 1 / -1; }
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-name { color: #fff; font-weight: 600; margin: 0; }
.footer-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  margin: 2px 0 0;
  color: var(--crystal-light);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: flex-end;
}
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.footer-links a:hover { color: var(--crystal-light); border-color: var(--crystal-light); }
.footer-copy {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.02em;
}

@media (max-width: 800px) {
  .footer-links { justify-content: flex-start; }
}

/* =====================================================
   Reveal animations
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
  html { scroll-behavior: auto; }
}

/* selection */
::selection { background: var(--crystal); color: #fff; }

/* =====================================================
   RESUME section (cream paper, dark ink — feels like a real CV)
   ===================================================== */
.section-resume {
  background: linear-gradient(180deg, var(--paper) 0%, #F0E9DE 100%);
  color: var(--ink);
}
.resume-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 3.5rem;
  margin-top: 3rem;
  align-items: start;
}
@media (max-width: 900px) {
  .resume-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.timeline-resume {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline-resume::before {
  content: "";
  position: absolute;
  left: 110px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--crystal) 0%, var(--umber) 100%);
  opacity: 0.4;
}
@media (max-width: 720px) {
  .timeline-resume::before { left: 8px; }
}
.job {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.5rem;
  margin-bottom: 2.8rem;
  position: relative;
}
@media (max-width: 720px) {
  .job { grid-template-columns: 1fr; gap: 0.5rem; padding-left: 1.5rem; }
}
.job-meta {
  position: relative;
  padding-top: 0.4rem;
}
.job-meta::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--crystal);
  box-shadow: 0 2px 6px rgba(11,37,69,0.15);
}
@media (max-width: 720px) {
  .job-meta::after { left: -19px; right: auto; top: 6px; }
}
.job-dates {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--umber-deep);
}
.job-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.job-co {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--terra);
  margin: 0 0 0.85rem 0;
  letter-spacing: 0.01em;
}
.job-body p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 0.8rem 0;
}
.job-bullets {
  margin: 0;
  padding-left: 1.1rem;
}
.job-bullets li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.job-bullets li::marker {
  color: var(--crystal);
}
.job-bullets strong {
  color: var(--navy);
  font-weight: 600;
}

.resume-side {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}
.side-card {
  background: #fff;
  border: 1px solid var(--hairline-strong);
  border-radius: 14px;
  padding: 1.8rem 1.6rem;
  box-shadow: 0 4px 20px rgba(11,37,69,0.06);
}
.side-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 1.1rem 0;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--crystal);
  display: inline-block;
}
.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.side-list li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--hairline);
}
.side-list li:last-child { border-bottom: none; }
.side-list li strong { color: var(--navy); font-weight: 600; }

/* =====================================================
   SKILLS section (navy ground, glowing bars)
   ===================================================== */
.section-skills {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 2.5rem;
  margin-top: 2.8rem;
}
@media (max-width: 720px) {
  .skills-grid { grid-template-columns: 1fr; gap: 1.2rem; }
}
.skill-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}
.skill-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.005em;
}
.skill-pct {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--crystal-light);
}
.skill-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
}
.skill-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--crystal) 0%, var(--crystal-light) 100%);
  border-radius: 99px;
  box-shadow: 0 0 12px rgba(61,165,217,0.5);
}

.skill-clusters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}
@media (max-width: 800px) {
  .skill-clusters { grid-template-columns: 1fr; }
}
.cluster {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.6rem;
}
.cluster h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--crystal-light);
  margin: 0 0 1rem 0;
  letter-spacing: -0.005em;
}
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chips li {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  background: rgba(61,165,217,0.12);
  border: 1px solid rgba(61,165,217,0.25);
  padding: 0.42rem 0.85rem;
  border-radius: 99px;
  letter-spacing: 0.005em;
}

/* =====================================================
   EDUCATION section (cream)
   ===================================================== */
.section-education {
  background: var(--cream);
  color: var(--ink);
}
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 800px) {
  .edu-grid { grid-template-columns: 1fr; }
}
.edu-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--crystal);
  border-radius: 12px;
  padding: 1.8rem 1.8rem;
  box-shadow: 0 4px 16px rgba(11,37,69,0.05);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.edu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(11,37,69,0.10);
}
.edu-card-future {
  border-left-color: var(--terra);
  background: linear-gradient(180deg, #fff 0%, #FAF3E9 100%);
}
.edu-dates {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--umber-deep);
  margin: 0 0 0.5rem 0;
}
.edu-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.3rem 0;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.edu-school {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--terra);
  margin: 0 0 0.85rem 0;
}
.edu-card p:last-child {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

/* =====================================================
   GALLERY section (warm cream backdrop, masonry-ish grid)
   ===================================================== */
.section-gallery {
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  color: var(--ink);
}
/* Horizontal scrolling photo strip — full uncropped images */
.gallery-grid {
  display: flex;
  gap: 18px;
  margin-top: 3rem;
  padding: 1rem 0 1.8rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--umber) transparent;
}
.gallery-grid::-webkit-scrollbar {
  height: 10px;
}
.gallery-grid::-webkit-scrollbar-track {
  background: rgba(11,37,69,0.06);
  border-radius: 99px;
}
.gallery-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--crystal) 0%, var(--umber) 100%);
  border-radius: 99px;
}
.gallery-item {
  position: relative;
  margin: 0;
  flex: 0 0 auto;
  width: auto;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 6px 20px rgba(11,37,69,0.12);
  scroll-snap-align: start;
  cursor: zoom-in;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  line-height: 0;
}
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(11,37,69,0.18);
}
.gallery-item img {
  height: 420px;
  width: auto;
  max-width: none;
  display: block;
  object-fit: contain;
}
.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 1rem 0.9rem;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #fff;
  text-align: center;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(11,22,41,0.92) 100%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.gallery-item:hover figcaption,
.gallery-item:focus-within figcaption {
  opacity: 1;
  transform: translateY(0);
}
/* span helpers are no-ops in the scroll strip */
.gallery-tall, .gallery-wide { }

@media (max-width: 700px) {
  .gallery-item img { height: 320px; }
}

.gallery-hint {
  margin-top: 0.5rem;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  text-align: center;
}
.gallery-hint span {
  display: inline-block;
  animation: gallery-nudge 1.8s var(--ease) infinite;
}
@keyframes gallery-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 12, 22, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 2rem;
  cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  object-fit: contain;
}
.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.18); }

/* =====================================================
   BLOG section (warm cream/paper card grid)
   ===================================================== */
.section-blog {
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  color: var(--ink);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 3rem;
}
@media (max-width: 950px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
}
.blog-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 1.9rem 1.7rem 1.8rem;
  box-shadow: 0 4px 16px rgba(11,37,69,0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.blog-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--crystal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s var(--ease);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(11,37,69,0.10);
  border-color: var(--hairline-strong);
}
.blog-card:hover::before { transform: scaleX(1); }

.blog-card-featured {
  grid-column: span 2;
  background: linear-gradient(135deg, #fff 0%, #FAF3E9 100%);
  border-left: 4px solid var(--terra);
}
.blog-card-featured::before { background: var(--terra); }
@media (max-width: 950px) {
  .blog-card-featured { grid-column: span 2; }
}
@media (max-width: 640px) {
  .blog-card-featured { grid-column: span 1; }
}
.blog-card-featured h3 {
  font-size: 1.9rem;
}
.blog-card-featured p {
  font-size: 16px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.85rem;
}
.blog-tag {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--crystal);
  background: var(--crystal-soft);
  padding: 0.32rem 0.7rem;
  border-radius: 99px;
}
.blog-card-featured .blog-tag {
  color: var(--terra);
  background: rgba(200, 117, 74, 0.12);
}
.blog-card-meta time {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--slate);
}

.blog-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 0.7rem 0;
}
.blog-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 1.2rem 0;
  flex: 1;
}
.blog-card em {
  font-style: italic;
  color: var(--umber-deep);
}
.blog-readmore {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--crystal);
  margin-top: auto;
}
.blog-card-featured .blog-readmore { color: var(--terra); }
.blog-card:hover .blog-readmore span { transform: translateX(4px); display: inline-block; transition: transform 0.3s var(--ease); }

.blog-foot {
  margin-top: 2.5rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--slate);
  letter-spacing: 0.005em;
}
.blog-foot a {
  color: var(--navy);
  font-weight: 600;
  border-bottom: 1px solid var(--crystal);
  text-decoration: none;
  transition: color 0.2s ease;
}
.blog-foot a:hover { color: var(--crystal); }

/* ============ PRAYER SECTION ============ */
.section-prayer {
  background: linear-gradient(180deg, var(--navy-deep) 0%, #07192f 60%, var(--navy-deep) 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 12vw, 140px) 0;
}
.section-prayer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(61,165,217,0.18), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(217,164,65,0.10), transparent 55%);
  pointer-events: none;
}
.prayer-card {
  position: relative;
  background: rgba(245, 239, 230, 0.04);
  border: 1px solid rgba(245, 239, 230, 0.14);
  border-radius: 18px;
  padding: clamp(36px, 5vw, 64px) clamp(28px, 5vw, 64px);
  backdrop-filter: blur(6px);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.prayer-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--crystal), transparent);
  border-radius: 3px;
}
.prayer-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--crystal-light);
  margin: 0 0 14px;
  text-align: center;
}
.prayer-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.1;
  color: var(--cream);
  text-align: center;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}
.prayer-lede {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(245,239,230,0.82);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 36px;
}
.prayer-body {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.75;
  color: var(--cream);
  margin: 0 auto 32px;
  max-width: 620px;
  padding: 0;
  border: none;
  text-align: center;
}
.prayer-body p {
  margin: 0 0 1em;
}
.prayer-body p:last-child {
  margin-bottom: 0;
}
.prayer-amen {
  font-style: italic;
  color: var(--crystal-light);
  margin-top: 1.4em !important;
  letter-spacing: 0.02em;
}
.prayer-signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  text-align: center;
  margin: 0 0 36px;
}
.prayer-scripture {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(245,239,230,0.65);
  text-align: center;
  font-style: italic;
  max-width: 560px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(245,239,230,0.12);
}
.prayer-cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crystal-light);
}
@media (max-width: 600px) {
  .prayer-card {
    border-radius: 14px;
  }
  .prayer-body {
    font-size: 1.05rem;
  }
}
