/* =========================================================
   billyemartinjr.com — v4 redesign, 2026-06-11
   Premium editorial: dark-first, Fraunces display + Inter,
   aurora accents, fade-up motion, pill topbar, light bands.
   Shared by every page on the site.
   ========================================================= */

:root {
  --ink: #071120;
  --ink-2: #0c1c31;
  --ink-3: #122844;
  --teal: #2d8a9a;
  --teal-bright: #3fc1d4;
  --teal-glow: #6de4f0;
  --teal-deep: #16606e;
  --cream: #faf6ee;
  --cream-2: #f2ebdd;
  --navy: #15294b;
  --slate: #44546a;
  --slate-2: #6b7a90;
  --amber: #e8b14a;
  --coral: #d96a5b;
  --line-dark: rgba(255,255,255,0.1);
  --line-light: rgba(21,41,75,0.13);
  --r-md: 16px;
  --r-lg: 26px;
  --shadow-lg: 0 30px 60px -20px rgba(7,17,32,0.35);
  --shadow-md: 0 16px 40px -16px rgba(7,17,32,0.22);
  --ease: cubic-bezier(.22,.61,.21,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: 'Inter', system-ui, sans-serif;
  background: var(--ink); color: var(--navy);
  font-size: 16.5px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; }
.serif-i { font-style: italic; font-weight: 500; }
a { color: var(--teal-deep); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 28px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: .5rem 1rem; border-radius: 8px; }

.eyebrow, .page-eyebrow, .section-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal-bright); font-family: 'Inter', system-ui, sans-serif;
}
.eyebrow::before, .page-eyebrow::before, .section-eyebrow::before {
  content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px;
}
.on-light .eyebrow, .on-light .section-eyebrow { color: var(--teal-deep); }

/* ---------- reveal-on-scroll + hero fade ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; } .reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; } .reveal[data-d="4"] { transition-delay: .32s; }
.fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp 1s var(--ease) forwards; }
.fade-up.d1 { animation-delay: .12s; } .fade-up.d2 { animation-delay: .26s; }
.fade-up.d3 { animation-delay: .4s; }  .fade-up.d4 { animation-delay: .54s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .fade-up { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- floating glass topbar ---------- */
.topbar {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1160px, calc(100% - 24px)); z-index: 50;
  background: rgba(10,19,35,0.78);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.09); border-radius: 18px;
  box-shadow: 0 14px 38px -18px rgba(0,0,0,0.65);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 11px 18px; gap: 1rem; position: relative; }
.brand-link { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-name { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.22rem; color: var(--cream); line-height: 1.12; letter-spacing: .01em; }
.brand-name small { display: block; font-family: 'Inter', system-ui, sans-serif; font-weight: 600; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--teal-bright); margin-top: 3px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--cream); cursor: pointer; padding: .2rem .5rem; }
.main-nav ul { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: .55rem .8rem; border-radius: 10px;
  font-size: .92rem; font-weight: 600; color: rgba(250,246,238,0.82); text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
.main-nav a:hover { background: rgba(63,193,212,0.12); color: var(--teal-glow); }
.main-nav a.active { color: var(--teal-glow); background: rgba(63,193,212,0.1); }
.main-nav a.nav-cta {
  background: linear-gradient(120deg, var(--teal-deep), var(--teal)); color: #fff;
  border-radius: 999px; padding: .55rem 1.15rem;
  box-shadow: 0 6px 18px -6px rgba(63,193,212,0.5);
}
.main-nav a.nav-cta:hover { background: linear-gradient(120deg, var(--teal), var(--teal-bright)); color: #fff; }
@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: rgba(13,24,42,0.97); border-radius: 16px; border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 50px -18px rgba(0,0,0,0.7); padding: .8rem; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.7rem; border-radius: 999px; font-weight: 700; font-size: .98rem;
  text-decoration: none; cursor: pointer; border: 0; font-family: inherit;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-glow {
  background: linear-gradient(115deg, var(--teal-bright), var(--teal-deep)); color: #fff;
  box-shadow: 0 12px 34px -10px rgba(63,193,212,0.55);
}
.btn-glow:hover { box-shadow: 0 18px 44px -10px rgba(63,193,212,0.7); color: #fff; }
.btn-ghost-w { background: rgba(255,255,255,0.07); color: #fff; border: 1px solid rgba(255,255,255,0.22); backdrop-filter: blur(6px); }
.btn-ghost-w:hover { background: rgba(255,255,255,0.14); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 12px 30px -12px rgba(21,41,75,0.5); }
.btn-navy:hover { background: var(--ink-3); color: #fff; }
.btn-outline-n { background: transparent; color: var(--navy); border: 1.5px solid rgba(21,41,75,0.3); }
.btn-outline-n:hover { border-color: var(--navy); background: rgba(21,41,75,0.05); color: var(--navy); }

/* ---------- bands + section heads ---------- */
.band-light { background: var(--cream); color: var(--navy); position: relative; }
.band-white { background: #fff; color: var(--navy); position: relative; }
.band-cream2 { background: var(--cream-2); color: var(--navy); position: relative; }
.band-dark { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); color: #fff; position: relative; overflow: hidden; }
.first-light { border-radius: 34px 34px 0 0; margin-top: -34px; z-index: 2; }
section.pad { padding: 5.5rem 0; }
.sec-head { max-width: 780px; margin-bottom: 3rem; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.12; margin: 1.1rem 0 1rem; text-wrap: balance; }
.sec-title .serif-i { color: var(--teal-deep); }
.on-dark .sec-title .serif-i { color: var(--teal-glow); }
.sec-sub { font-size: 1.06rem; color: var(--slate); margin: 0 0 1rem; line-height: 1.65; }
.sec-sub:last-child { margin-bottom: 0; }
.on-dark .sec-sub { color: rgba(235,243,250,0.72); }

/* ---------- aurora hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  padding: 10.5rem 0 0; background: var(--ink);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
}
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none; }
.aurora-1 { width: 640px; height: 640px; top: -220px; right: -160px;
  background: radial-gradient(circle, rgba(63,193,212,0.55), transparent 65%);
  animation: drift1 22s ease-in-out infinite alternate; }
.aurora-2 { width: 520px; height: 520px; bottom: -180px; left: -160px;
  background: radial-gradient(circle, rgba(22,96,110,0.7), transparent 65%);
  animation: drift2 27s ease-in-out infinite alternate; }
.aurora-3 { width: 380px; height: 380px; top: 30%; left: 42%;
  background: radial-gradient(circle, rgba(232,177,74,0.18), transparent 65%);
  animation: drift3 19s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-120px, 90px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(110px, -70px) scale(1.1); } }
@keyframes drift3 { to { transform: translate(-80px, -60px) scale(1.25); } }

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4rem; align-items: center;
  padding-bottom: 6.5rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.08; margin: 1.3rem 0 1.4rem;
  font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; color: #fff;
}
.hero h1 .grad {
  font-style: italic; font-weight: 500;
  background: linear-gradient(100deg, var(--teal-glow), var(--teal-bright) 55%, var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: rgba(235,243,250,0.78);
  max-width: 58ch; margin: 0 0 1.2rem; line-height: 1.68;
}
.hero-sub a { color: var(--teal-glow); }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.9rem; }
.hero-portrait-frame { position: relative; }
.hero-portrait {
  max-width: 350px; width: 100%; border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: var(--shadow-lg), 0 0 80px -20px rgba(63,193,212,0.35);
  aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; display: block;
}
.hero-portrait-frame::before {
  content: ""; position: absolute; inset: -14px; border-radius: 32px;
  border: 1px solid rgba(63,193,212,0.25); pointer-events: none;
}
@media (max-width: 900px) {
  .hero { padding-top: 8.5rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .hero .eyebrow { justify-content: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-portrait-frame { margin: 0 auto; order: -1; }
  .hero-portrait { max-width: 240px; }
}

/* ---------- numbered ghost list (credentials / principles) ---------- */
.diff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 2.5rem; border-top: 1px solid var(--line-light); }
.on-dark .diff-grid { border-top-color: var(--line-dark); }
.diff-item { padding: 2.1rem 0; border-bottom: 1px solid var(--line-light); display: grid; grid-template-columns: 86px 1fr; gap: 1.2rem; align-items: start; }
.on-dark .diff-item { border-bottom-color: var(--line-dark); }
.diff-ghost {
  font-family: 'Fraunces', serif; font-size: 3.4rem; font-weight: 500; line-height: .9;
  color: transparent; -webkit-text-stroke: 1.3px rgba(45,138,154,0.45);
}
.on-dark .diff-ghost { -webkit-text-stroke-color: rgba(109,228,240,0.5); }
.diff-item h3, .diff-item h4 { margin: .2rem 0 .5rem; font-size: 1.14rem; font-weight: 700; color: var(--navy); font-family: 'Inter', system-ui, sans-serif; }
.on-dark .diff-item h3, .on-dark .diff-item h4 { color: #fff; }
.diff-item p { margin: 0; font-size: .93rem; color: var(--slate); line-height: 1.62; }
.on-dark .diff-item p { color: rgba(235,243,250,0.74); }
@media (max-width: 720px) { .diff-item { grid-template-columns: 64px 1fr; } }

/* ---------- destination cards (home pillars + publications) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.3rem; }
.svc-card {
  position: relative; display: flex; flex-direction: column; gap: .7rem;
  background: #fff; border: 1px solid var(--line-light); border-radius: var(--r-lg);
  padding: 2.1rem 1.9rem 1.8rem; text-decoration: none; color: inherit; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.svc-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: rgba(45,138,154,0.4); }
.svc-num { font-size: .76rem; font-weight: 800; letter-spacing: .16em; color: var(--teal-deep); text-transform: uppercase; }
.svc-card h3 { font-size: 1.42rem; margin: 0; line-height: 1.2; }
.svc-card p { margin: 0; font-size: .94rem; color: var(--slate); line-height: 1.62; flex: 1; }
.svc-link { font-weight: 700; font-size: .92rem; color: var(--teal-deep); display: inline-flex; align-items: center; gap: .4rem; margin-top: .5rem; text-decoration: none; }
.svc-link .arr { transition: transform .25s var(--ease); }
.svc-card:hover .svc-link .arr { transform: translateX(5px); }
.svc-card::after {
  content: ""; position: absolute; bottom: -70px; right: -70px; width: 180px; height: 180px;
  border-radius: 50%; background: radial-gradient(circle, rgba(63,193,212,0.14), transparent 70%);
  opacity: 0; transition: opacity .35s; pointer-events: none;
}
.svc-card:hover::after { opacity: 1; }
.on-dark .svc-card { background: rgba(255,255,255,0.045); border-color: var(--line-dark); color: #fff; }
.on-dark .svc-card h3 { color: #fff; }
.on-dark .svc-card p { color: rgba(235,243,250,0.74); }
.on-dark .svc-num, .on-dark .svc-link { color: var(--teal-glow); }

/* ---------- stat strip (career numbers) ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.stat-card {
  background: rgba(255,255,255,0.045); border: 1px solid var(--line-dark); border-radius: var(--r-lg);
  padding: 1.9rem 1.6rem 1.6rem; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stat-num {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: clamp(2.4rem, 3.6vw, 3.2rem);
  line-height: 1; color: var(--teal-glow); margin-bottom: .7rem; letter-spacing: -0.02em;
}
.stat-claim { font-size: .93rem; color: rgba(235,243,250,0.75); line-height: 1.6; }
.on-light .stat-card { background: #fff; border-color: var(--line-light); }
.on-light .stat-num { color: var(--teal-deep); }
.on-light .stat-claim { color: var(--slate); }

/* ---------- legacy section/container compatibility (articles, subpages) ---------- */
.section { background: #fff; color: var(--navy); padding: 4.5rem 0; }
.section .container, .section .container-wide, .section .container-narrow { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
main .page-head + .section, main .page-head + section { border-radius: 34px 34px 0 0; margin-top: -34px; position: relative; z-index: 2; }
.section.alt { background: var(--cream); }
.section-heading { max-width: 780px; margin: 0 0 3rem; }
.section-heading h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.12; margin: 1rem 0 1rem; }
.section-heading p { color: var(--slate); font-size: 1.05rem; max-width: 68ch; }

/* ---------- page head (subpages + articles): dark editorial band ---------- */
.page-head {
  position: relative; overflow: hidden; color: #fff;
  padding: 9.5rem 0 6rem; background: var(--ink);
}
.page-head::before {
  content: ""; position: absolute; width: 560px; height: 560px; top: -240px; right: -140px;
  border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none;
  background: radial-gradient(circle, rgba(63,193,212,0.5), transparent 65%);
}
.page-head::after {
  content: ""; position: absolute; width: 460px; height: 460px; bottom: -220px; left: -140px;
  border-radius: 50%; filter: blur(90px); opacity: .45; pointer-events: none;
  background: radial-gradient(circle, rgba(22,96,110,0.65), transparent 65%);
}
.page-head-inner { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.page-head h1 {
  font-size: clamp(2rem, 4.4vw, 3.3rem); margin: 1rem 0 .8rem; color: #fff;
  letter-spacing: -0.02em; line-height: 1.1; max-width: 24ch; text-wrap: balance;
}
.page-head .lede { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: rgba(235,243,250,0.78); max-width: 62ch; margin: 0; line-height: 1.65; }
.page-head .article-meta { font-size: .9rem; color: rgba(235,243,250,0.6); margin-top: .4rem; font-weight: 500; letter-spacing: .04em; }

/* ---------- prose / article body ---------- */
.prose, .wp-content, .article-body { max-width: 72ch; font-size: 1.06rem; line-height: 1.78; color: #20304b; }
.article-body, .wp-shell { margin-inline: auto; }
.prose p, .wp-content p, .article-body p { margin: 0 0 1.3rem; }
.prose h2, .wp-content h2, .article-body h2 { font-size: 1.8rem; margin: 2.6rem 0 1rem; color: var(--navy); }
.prose h3, .wp-content h3, .article-body h3,
.prose h4, .wp-content h4, .article-body h4 { font-size: 1.35rem; margin: 2.1rem 0 .75rem; color: var(--navy); font-family: 'Fraunces', Georgia, serif; font-weight: 600; }
.prose a, .wp-content a, .article-body a { color: var(--teal-deep); }
.prose img, .wp-content img { border-radius: var(--r-md); margin: 1.5rem 0; border: 1px solid var(--line-light); }
.prose strong, .article-body strong { color: var(--navy); }
.article-meta { font-size: .9rem; color: var(--slate-2); }
.back-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 2rem; font-weight: 700; font-size: .95rem; color: var(--teal-deep); text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* substack share/subscribe buttons inside imported posts */
.article-body .button-wrapper, .wp-content .button-wrapper { margin: .4rem 0; }
.article-body a.button, .wp-content a.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: .92rem;
  background: var(--navy); color: #fff; text-decoration: none;
  transition: background .18s ease, transform .18s var(--ease);
}
.article-body a.button:hover, .wp-content a.button:hover { background: var(--ink-3); transform: translateY(-1px); }

/* imported substack images: uniform rendering */
.article-body img, .wp-content img { width: 100%; height: auto; max-width: 100%; display: block; border-radius: var(--r-md); border: 1px solid var(--line-light); }
.article-body .captioned-image-container, .wp-content .captioned-image-container { margin: 1.9rem 0; display: flex; justify-content: center; }
.article-body .captioned-image-container figure, .wp-content .captioned-image-container figure { margin: 0; width: 100%; max-width: 680px; }
.article-body .captioned-image-container .image2-inset, .wp-content .captioned-image-container .image2-inset { width: 100%; }
.article-body .captioned-image-container picture, .wp-content .captioned-image-container picture { display: block; width: 100%; }
.article-body .captioned-image-container img, .wp-content .captioned-image-container img { width: 100%; height: auto; max-height: 560px; object-fit: contain; background: var(--cream); }
.image-link-expand { display: none; }

/* carousel (imported galleries) */
.carousel { position: relative; margin: 1.9rem 0; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-light); background: #07111f; aspect-ratio: 3 / 2; max-width: 100%; }
.carousel-track { position: absolute; inset: 0; }
.carousel-slide { position: absolute; inset: 0; margin: 0; display: none; }
.carousel-slide.is-active { display: block; }
.carousel-slide img { width: 100%; height: 100%; object-fit: contain; border: 0; border-radius: 0; background: #07111f; display: block; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(7,17,32,0.6); color: #fff; border: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; z-index: 2; line-height: 1; }
.carousel-btn:hover { background: rgba(7,17,32,0.85); }
.carousel-btn-prev { left: .75rem; }
.carousel-btn-next { right: .75rem; }
.carousel-dots { position: absolute; bottom: .75rem; left: 0; right: 0; display: flex; justify-content: center; gap: .4rem; z-index: 2; }
.carousel-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.5); cursor: pointer; padding: 0; }
.carousel-dots button.is-active { background: #fff; }
@media (min-width: 900px) {
  .article-body, .wp-content { max-width: 76ch; }
  .article-body .captioned-image-container figure, .wp-content .captioned-image-container figure { max-width: 740px; }
}

/* ---------- journey timeline (about) ---------- */
.journey { max-width: 860px; margin: 0; position: relative; padding-left: 2.2rem; }
.journey::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(180deg, var(--teal-bright), rgba(45,138,154,0.08));
}
.journey-era, .journey-summary { position: relative; margin: 0 0 2.6rem; }
.journey-era::before, .journey-summary::before {
  content: ""; position: absolute; left: -2.2rem; top: .45rem; width: 16px; height: 16px;
  margin-left: 0; border-radius: 50%; background: var(--cream);
  border: 2px solid var(--teal); box-shadow: 0 0 16px -2px rgba(63,193,212,0.5);
}
.journey-era .era-label { font-size: .76rem; text-transform: uppercase; letter-spacing: .16em; color: var(--teal-deep); font-weight: 700; margin-bottom: .45rem; }
.journey-era h3 { font-size: 1.5rem; margin: 0 0 .3rem; color: var(--navy); }
.journey-era .era-role { font-size: .95rem; color: var(--slate-2); margin-bottom: .7rem; font-weight: 600; }
.journey-era p { font-size: .99rem; color: var(--slate); line-height: 1.68; margin: 0 0 .75rem; max-width: 68ch; }
.journey-summary { background: #fff; border: 1px solid var(--line-light); border-left: 3px solid var(--teal); padding: 1.3rem 1.5rem; border-radius: 0 var(--r-md) var(--r-md) 0; }
.journey-summary p { font-size: .99rem; color: var(--slate); line-height: 1.68; margin: 0; }

/* ---------- testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: 1fr; gap: 1.8rem; max-width: 860px; margin: 0 auto; }
.testimonial, .testimonial-card {
  background: #fff; border: 1px solid var(--line-light); border-radius: var(--r-lg);
  padding: 2.2rem 2.4rem; box-shadow: 0 6px 18px -12px rgba(7,17,32,0.12); position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.testimonial:hover, .testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.testimonial::before {
  content: "\201C"; position: absolute; top: .6rem; right: 1.4rem;
  font-family: 'Fraunces', serif; font-size: 4.6rem; line-height: 1;
  color: rgba(45,138,154,0.16); pointer-events: none;
}
.testimonial-header { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line-light); }
.testimonial-avatar {
  width: 72px !important; height: 72px !important; border-radius: 50%;
  object-fit: cover; object-position: center top; flex-shrink: 0;
  border: 2px solid var(--teal); box-shadow: 0 0 0 4px rgba(63,193,212,0.14);
}
.testimonial-who { flex: 1; min-width: 0; }
.testimonial-who h4, .testimonial-who .name { font-weight: 700; color: var(--navy); font-size: 1.08rem; line-height: 1.3; display: block; margin: 0; font-family: 'Fraunces', Georgia, serif; letter-spacing: 0; }
.testimonial-who .role, .testimonial-who .title { font-size: .88rem; color: var(--slate-2); line-height: 1.4; display: block; margin-top: 3px; font-weight: 500; }
.testimonial-quote { font-size: 1.03rem; line-height: 1.72; color: #20304b; margin: 0 0 1rem; position: relative; padding-left: 1.25rem; border-left: 3px solid var(--teal); }
.testimonial-date { font-size: .84rem; color: var(--slate-2); margin: 0; text-align: right; font-weight: 500; }

/* ---------- blog index: search, filters, post grid ---------- */
.blog-search { margin: 0 0 1rem; }
.blog-search input {
  width: 100%; max-width: 540px; padding: .8rem 1.2rem; font-size: .96rem; font-family: inherit;
  color: var(--navy); background: #fff; border: 1px solid var(--line-light); border-radius: 999px;
  transition: border-color .15s, box-shadow .15s;
}
.blog-search input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(63,193,212,0.18); }
.blog-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .75rem; align-items: center; }
.blog-filters-year { margin: 0 0 2.4rem; }
.blog-filter {
  background: #fff; color: var(--slate); border: 1px solid var(--line-light);
  padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer;
  font-size: .88rem; font-weight: 600; font-family: inherit; transition: all .18s ease;
}
.blog-filter:hover { border-color: var(--teal); color: var(--teal-deep); }
.blog-filter.active { background: linear-gradient(120deg, var(--teal-deep), var(--teal)); color: #fff; border-color: transparent; box-shadow: 0 6px 18px -6px rgba(63,193,212,0.5); }
.blog-count { color: var(--slate-2); font-size: .88rem; margin-left: auto; font-weight: 600; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.post-card {
  display: block; background: #fff; border: 1px solid var(--line-light); border-radius: var(--r-lg);
  overflow: hidden; color: inherit; text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(45,138,154,0.4); }
.post-card-hero { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--cream-2); border: 0; border-radius: 0; margin: 0; }
.post-card-hero-placeholder { width: 100%; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--cream), var(--cream-2)); }
.post-card-body { padding: 1.35rem 1.45rem 1.45rem; }
.post-card-eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--teal-deep); font-weight: 700; margin-bottom: .5rem; }
.post-card-title { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.16rem; margin: 0 0 .55rem; line-height: 1.3; color: var(--navy); }
.post-card-excerpt { font-size: .91rem; color: var(--slate); margin: 0 0 .6rem; line-height: 1.55; }
.post-card-date { font-size: .8rem; color: var(--slate-2); font-weight: 500; }
.post-card.hidden { display: none; }

/* ---------- contact block (home) ---------- */
.contact-band { position: relative; overflow: hidden; color: #fff; padding: 5.5rem 0; background: linear-gradient(120deg, var(--teal-deep) 0%, var(--ink-2) 70%); }
.contact-band::before {
  content: ""; position: absolute; top: -180px; right: -120px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(63,193,212,0.35), transparent 65%); filter: blur(60px);
  animation: drift2 24s ease-in-out infinite alternate;
}
.contact-inner { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; gap: 3rem; align-items: center; max-width: 980px; margin: 0 auto; }
.contact-photo {
  width: 190px; height: 190px; border-radius: 50%; object-fit: cover; object-position: center top;
  border: 3px solid rgba(255,255,255,0.25); box-shadow: 0 18px 40px -14px rgba(0,0,0,0.5);
}
.contact-title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 .8rem; color: #fff; line-height: 1.15; }
.contact-info { font-size: 1.02rem; line-height: 1.85; color: rgba(235,243,250,0.85); }
.contact-info p { margin: 0 0 .55rem; }
.contact-info a { color: #fff; font-weight: 600; }
.contact-info strong { color: #fff; }
@media (max-width: 720px) {
  .contact-inner { grid-template-columns: 1fr; text-align: center; }
  .contact-photo { margin: 0 auto; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(235,243,250,0.65); padding: 3.4rem 0 2.6rem; border-top: 1px solid var(--line-dark); }
.site-footer .footer-inner, .site-footer .wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: .9rem; }
.site-footer p { margin: .3rem 0; }
.site-footer a { color: rgba(235,243,250,0.85); text-decoration: none; font-weight: 500; }
.site-footer a:hover { color: var(--teal-glow); }

.text-center { text-align: center; }
