/* Dr. Yurth — Boulder Longevity Institute
   Clinical Depth theme (dark, editorial, tech-grid) */

@font-face {
  font-family: 'Overused Grotesk';
  src: url('../fonts/OverusedGrotesk-VF.woff2') format('woff2-variations');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #05070a;
  --bg-2: #0a0d13;
  --surface: rgba(255,255,255,.03);
  --surface-2: rgba(255,255,255,.05);
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.16);
  --ink: #ffffff;
  --ink-2: #e6ecf2;
  --muted: #94a3b8;
  --muted-2: rgba(255,255,255,.55);
  --accent: #765580;
  --accent-2: #34d399;
  --gold: #c9a24a;
  --grid: #1e293b;
  --radius: 2px;
  --shadow-xl: 0 30px 80px -20px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Overused Grotesk', sans-serif;
  color: var(--ink-2);
  background: var(--bg);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

::selection { background: rgba(16,185,129,.3); color: var(--accent-2); }

/* Global background grid */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: .12;
  z-index: -2;
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(circle at 50% 30%, transparent 0%, var(--bg) 75%);
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4, h5 {
  font-family: 'Overused Grotesk', sans-serif;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.1;
}
h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,.35);
}

.eyebrow, .mono-label {
  font-family: 'Overused Grotesk', sans-serif;
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  display: inline-block;
  margin-bottom: 1.25rem;
}
.mono-label { color: var(--muted); }

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px; height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 14px;
  transform: translateY(-2px);
}

.text-muted-ink { color: var(--muted); }
.serif-italic { font-family: 'Overused Grotesk', sans-serif; font-style: italic; }

a { color: var(--accent-2); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }

/* ==================== NAV ==================== */
.navbar-yurth {
  background: rgba(5,7,10,.75);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  transition: padding .3s, background .3s;
}
.navbar-yurth.scrolled { padding: .55rem 0; background: rgba(5,7,10,.92); }

.navbar-brand-name {
  font-family: 'Overused Grotesk', sans-serif;
  font-size: 1.3rem;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.navbar-brand-name small {
  display: block;
  font-family: 'Overused Grotesk', sans-serif;
  font-size: .58rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  margin-top: 4px;
}
.navbar-yurth .nav-link {
  font-family: 'Overused Grotesk', sans-serif;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65) !important;
  font-weight: 500;
  padding: .5rem 1rem !important;
  position: relative;
  transition: color .2s;
}
.navbar-yurth .nav-link:hover,
.navbar-yurth .nav-link.active { color: #fff !important; }
.navbar-yurth .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 1px;
  background: var(--accent);
}
.navbar-toggler {
  color: #fff;
  border: 1px solid var(--border) !important;
}
.navbar-toggler-icon {
  filter: invert(1) brightness(2);
}

/* ==================== BUTTONS ==================== */
.btn {
  font-family: 'Overused Grotesk', sans-serif;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 1.1rem 2rem;
  border-radius: 0;
  border-width: 1px;
  border-style: solid;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.btn svg { width: 14px; height: 14px; transition: transform .3s; }
.btn:hover svg { transform: translateX(4px); }

.btn-primary-yurth {
  background: #fff;
  color: #000 !important;
  border-color: #fff;
}
.btn-primary-yurth::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--accent);
  transform: translateY(100%);
  transition: transform .35s ease;
  z-index: -1;
}
.btn-primary-yurth:hover { color: #000 !important; }
.btn-primary-yurth:hover::before { transform: translateY(0); }

.btn-outline-yurth,
.btn-ghost-yurth {
  background: transparent;
  color: #fff !important;
  border-color: var(--border-strong);
}
.btn-outline-yurth:hover,
.btn-ghost-yurth:hover {
  background: rgba(255,255,255,.06);
  border-color: var(--accent);
  color: #fff !important;
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
}
.hero-frame {
  position: relative;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.hero-visual {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-right: 1px solid var(--border);
  background:
    radial-gradient(120% 100% at 30% 20%, rgba(16,185,129,.18), transparent 60%),
    linear-gradient(160deg, #0f172a 0%, #020617 100%);
}
.hero-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 50%);
  z-index: 1;
}
.hero-portrait-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .85;
  transition: transform 1.2s ease;
  filter: grayscale(.3) contrast(1.05);
}
.hero-visual:hover .hero-portrait-svg { transform: scale(1.05); }

.floating-badge {
  position: absolute;
  top: 1.5rem; left: 1.5rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem 1rem;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  font-family: 'Overused Grotesk', sans-serif;
  font-size: .62rem;
  color: rgba(255,255,255,.7);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.pulse-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16,185,129,.7);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,.7); }
  70% { box-shadow: 0 0 0 12px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.visual-caption {
  position: absolute;
  bottom: 2rem; left: 2rem; right: 2rem;
  z-index: 2;
}
.visual-caption .cred {
  font-family: 'Overused Grotesk', sans-serif;
  font-size: .65rem;
  color: var(--accent);
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.visual-caption h2 {
  font-family: 'Overused Grotesk', sans-serif;
  font-style: italic;
  color: #fff;
  font-size: 2rem;
  margin: 0;
  font-weight: 400;
}

.hero-content {
  padding: 4rem 3rem;
  position: relative;
}
.hero-content .protocol-tag {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-family: 'Overused Grotesk', sans-serif;
  font-size: .62rem;
  color: rgba(255,255,255,.22);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-rule {
  display: inline-block;
  width: 48px; height: 1px;
  background: var(--accent);
  margin-bottom: 2rem;
}
.hero-title {
  font-family: 'Overused Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  color: #fff;
  margin-bottom: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.hero-title em, .hero-title .accent {
  font-style: italic;
  font-weight: 400;
  color: #d6bfdd;
}
.hero-sub {
  font-family: 'Overused Grotesk', sans-serif;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 30rem;
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.7;
}

/* Hero stats */
.hero-stats {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.hero-stats .stat .label {
  font-family: 'Overused Grotesk', sans-serif;
  color: var(--accent);
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: .55rem;
}
.hero-stats .stat .val {
  font-family: 'Overused Grotesk', sans-serif;
  color: rgba(255,255,255,.85);
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 300;
  line-height: 1.5;
}
@media (max-width: 767px) {
  .hero { padding: 2.5rem 0 3rem; }
  .hero-content { padding: 2.5rem 1.5rem; }
  .hero-visual { min-height: 380px; border-right: 0; border-bottom: 1px solid var(--border); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats .stat:nth-child(3) { display: none; }
}

@media (max-width: 991.98px) {
  .navbar-yurth .navbar-collapse {
    margin-top: 1rem;
    padding: .75rem;
    background: rgba(5,7,10,.98);
    border: 1px solid var(--border);
  }
  .navbar-yurth .nav-link { padding: .85rem 1rem !important; }
  .navbar-yurth .nav-link.active::after { left: 1rem; transform: none; bottom: .45rem; }
  .hero-content .protocol-tag { position: static; display: block; margin-bottom: 1.5rem; }
}

@media (max-width: 575.98px) {
  section { padding: 4rem 0; }
  .navbar-brand-name { font-size: 1.05rem; }
  .navbar-brand-name small { font-size: .48rem; letter-spacing: .18em; }
  .brand-mark { width: 34px; height: 34px; }
  .hero-title { font-size: clamp(2.25rem, 12vw, 3.25rem); }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats .stat:nth-child(3) { display: block; }
  .newsletter { padding: 2.25rem 1.25rem; }
  .focus-card, .feature-card, .talk-card { padding: 1.5rem; }
  .credential-list li { flex-direction: column; gap: .35rem; }
  .credential-list .cred-label { min-width: 0; }
  .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==================== SECTIONS ==================== */
section { padding: 6rem 0; position: relative; }
.section-sm { padding: 4rem 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-dark { background: linear-gradient(180deg, var(--bg) 0%, #0d1017 100%); border-top: 1px solid var(--border); }

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  margin-bottom: 1rem;
  color: #fff;
}

.rule { height: 1px; background: var(--border); border: 0; margin: 2rem 0; }

.lead-serif {
  font-family: 'Overused Grotesk', sans-serif;
  font-style: italic;
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  line-height: 1.5;
  color: rgba(255,255,255,.88);
  font-weight: 400;
}

/* ==================== CARDS ==================== */
.focus-card {
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  height: 100%;
  transition: all .35s ease;
  position: relative;
  overflow: hidden;
}
.focus-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s ease;
}
.focus-card:hover {
  border-color: var(--border-strong);
  background: rgba(255,255,255,.045);
  transform: translateY(-4px);
}
.focus-card:hover::before { transform: scaleX(1); }
.focus-card .num {
  font-family: 'Overused Grotesk', sans-serif;
  font-size: .68rem;
  letter-spacing: .25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.focus-card h3 {
  font-size: 1.4rem;
  color: #fff;
  margin: 0 0 1rem;
}
.focus-card p { color: var(--muted); font-size: .95rem; }

.feature-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  transition: all .3s;
  color: var(--ink-2);
}
.feature-card:hover {
  border-color: var(--accent);
  background: rgba(255,255,255,.05);
  transform: translateY(-3px);
}
.feature-card h3, .feature-card h4 { color: #fff; }
.feature-card a { color: var(--muted); }
.feature-card a:hover { color: var(--accent); }

/* logo row */
.logos-row {
  display: flex; flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
  justify-content: center;
  opacity: .5;
}
.logo-placeholder {
  font-family: 'Overused Grotesk', sans-serif;
  font-style: italic;
  color: rgba(255,255,255,.65);
  font-size: 1.05rem;
  letter-spacing: .04em;
  transition: color .2s, opacity .2s;
}
.logo-placeholder:hover { color: var(--accent); opacity: 1; }

/* credential list */
.credential-list { list-style: none; padding: 0; margin: 0; }
.credential-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  display: flex; gap: 1.5rem;
  color: var(--ink-2);
}
.credential-list li:last-child { border-bottom: 0; }
.credential-list .cred-label {
  font-family: 'Overused Grotesk', sans-serif;
  font-size: .65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  min-width: 150px;
  padding-top: 4px;
}

/* talks */
.talk-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  padding: 2.25rem;
  margin-bottom: 1.5rem;
  transition: all .3s;
}
.talk-card:hover { background: rgba(255,255,255,.05); transform: translateX(4px); }
.talk-card h3 { font-size: 1.35rem; margin-bottom: .75rem; color: #fff; }
.talk-card p { color: var(--muted); }
.talk-card-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  cursor: pointer;
  list-style: none;
}
.talk-card-summary::-webkit-details-marker { display: none; }
.talk-card-summary .mono-label {
  display: block;
  margin-bottom: .7rem;
}
.talk-card-title {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
.talk-card-toggle {
  position: relative;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border: 1px solid rgba(118,85,128,.35);
  border-radius: 50%;
}
.talk-card-toggle::before,
.talk-card-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: .75rem;
  height: 1px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform .25s ease;
}
.talk-card-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.talk-card[open] .talk-card-toggle::after { transform: translate(-50%, -50%) rotate(0); }
.talk-card-content { padding-top: 1.25rem; }
.talk-card-content > :last-child { margin-bottom: 0; }
.talk-card-summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 8px;
}
.talk-card .audience {
  font-family: 'Overused Grotesk', sans-serif;
  font-size: .7rem;
  color: var(--accent);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* engagement */
.engagement {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding .25s;
}
.engagement:hover { padding-left: 1rem; }
.engagement .date {
  font-family: 'Overused Grotesk', sans-serif;
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--accent);
  text-transform: uppercase;
}
.engagement h4 { font-size: 1.1rem; margin-bottom: .25rem; color: #fff; }
.engagement .meta {
  font-family: 'Overused Grotesk', sans-serif;
  font-size: .85rem;
  color: var(--muted);
}
@media (max-width: 576px) { .engagement { grid-template-columns: 1fr; gap: .35rem; } }

/* ==================== FORMS ==================== */
.form-yurth .form-label {
  font-family: 'Overused Grotesk', sans-serif;
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: .5rem;
}
.form-yurth .form-control,
.form-yurth .form-select {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  padding: .95rem 1rem;
  font-family: 'Overused Grotesk', sans-serif;
  color: #fff;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.form-yurth .form-control::placeholder { color: rgba(255,255,255,.35); }
.form-yurth .form-control:focus,
.form-yurth .form-select:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 3px rgba(16,185,129,.15);
  outline: 0;
  color: #fff;
}
.form-check-input {
  background-color: rgba(255,255,255,.06);
  border-color: var(--border-strong);
}
.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}
.form-check-label { color: var(--muted); }

/* ==================== BLOG ==================== */
.post-card { border-bottom: 1px solid var(--border); padding: 2rem 0; transition: padding .25s; }
.post-card:hover { padding-left: 1rem; }
.post-card:first-child { padding-top: 0; }
.post-card .cat {
  font-family: 'Overused Grotesk', sans-serif;
  font-size: .65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}
.post-card h3 { font-size: 1.5rem; margin: .5rem 0 .75rem; color: #fff; }
.post-card h3 a { color: #fff; }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { color: var(--muted); }
.post-card .date {
  font-family: 'Overused Grotesk', sans-serif;
  font-size: .72rem;
  color: rgba(255,255,255,.4);
}

/* media card */
.media-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
  transition: all .3s;
  color: var(--ink-2);
}
.media-card:hover {
  border-color: var(--accent);
  background: rgba(255,255,255,.05);
  transform: translateY(-3px);
}
.media-card .type {
  font-family: 'Overused Grotesk', sans-serif;
  font-size: .65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}
.media-card h4 { color: #fff; }

/* newsletter */
.newsletter {
  background:
    radial-gradient(80% 80% at 20% 0%, rgba(16,185,129,.14), transparent 60%),
    #0a0d13;
  border: 1px solid var(--border);
  color: #fff;
  padding: 4rem 3rem;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.newsletter h2 { color: #fff; }
.newsletter p { color: var(--muted); }
.newsletter .form-control {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: #fff;
}
.newsletter .form-control::placeholder { color: rgba(255,255,255,.4); }
.newsletter .form-control:focus {
  background: rgba(255,255,255,.1);
  border-color: var(--accent);
  color: #fff;
}

/* ==================== FOOTER ==================== */
.footer {
  background: #030507;
  color: rgba(255,255,255,.6);
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--border);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.footer h5 {
  color: #fff;
  font-family: 'Overused Grotesk', sans-serif;
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 1.25rem;
}
.footer a { color: rgba(255,255,255,.55); }
.footer a:hover { color: var(--accent); }
.footer ul { list-style: none; padding: 0; }
.footer ul li { padding: .35rem 0; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 3rem;
  font-size: .8rem;
  font-family: 'Overused Grotesk', sans-serif;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
}

/* ==================== SCROLL REVEAL ==================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* utility */
.text-white { color: #fff !important; }

/* ==================== IMAGERY ==================== */
.brand-mark {
  width: 40px; height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(16,185,129,.25));
}
.brand-logo-horizontal {
  display: block;
  width: clamp(175px, 15vw, 225px);
  height: auto;
  object-fit: contain;
}
.navbar-yurth.scrolled .brand-mark { width: 32px; height: 32px; }
.brand-text { display: inline-block; line-height: 1.1; }

.hero-portrait-overlay {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
}

.image-band {
  position: relative;
  padding: 8rem 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.image-band::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(1,35,77,.97) 0%, rgba(1,35,77,.88) 52%, rgba(1,42,101,.58) 100%);
  z-index: 0;
}
.image-band > .container { position: relative; z-index: 1; }
@media (max-width: 768px) {
  .image-band { background-attachment: scroll; padding: 5rem 0; }
}

/* Brand logo tiles (Featured in) */
.logos-row img.brand-logo {
  height: 34px;
  width: auto;
  opacity: .65;
  filter: grayscale(1) brightness(1.6);
  transition: opacity .2s, filter .2s;
}
.logos-row img.brand-logo:hover { opacity: 1; filter: grayscale(0) brightness(1); }

/* Page hero image (subpages) */
.page-hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border: 1px solid var(--border);
  margin-top: 2.5rem;
  filter: brightness(.75) contrast(1.05);
}

/* ==================== LIGHT THEME OVERRIDE ==================== */
:root {
  --bg: #ffffff;
  --bg-2: #ffffff;
  --surface: rgba(1,35,77,.03);
  --surface-2: rgba(1,35,77,.06);
  --border: rgba(1,35,77,.12);
  --border-strong: rgba(1,35,77,.28);
  --ink: #01234d;
  --ink-2: #191919;
  --muted: #4b4b4b;
  --muted-2: rgba(1,35,77,.62);
  --accent: #765580;
  --accent-2: #064d9f;
  --gold: #f59737;
  --grid: #d9d9d9;
  --shadow-xl: 0 30px 80px -30px rgba(1,35,77,.28);
}

body { color: var(--ink-2); background: var(--bg); font-weight: 400; }
body::before { opacity: .35; }
body::after { background: radial-gradient(circle at 50% 20%, transparent 0%, var(--bg) 80%); }

h1, h2, h3, h4, h5 { color: var(--ink); }
h1 em, h2 em, h3 em { color: rgba(6,77,159,.52); }
::selection { background: rgba(245,151,55,.28); color: var(--ink); }

/* Nav */
.navbar-yurth { background: rgba(255,255,255,.9); border-bottom: 1px solid var(--border); padding: .7rem 0; }
.navbar-yurth.scrolled { background: rgba(255,255,255,.96); padding: .45rem 0; }
.navbar-brand-name { color: var(--ink) !important; }
.navbar-yurth .nav-link { color: rgba(1,35,77,.68) !important; }
.navbar-yurth .nav-link:hover,
.navbar-yurth .nav-link.active { color: var(--ink) !important; }
.navbar-toggler { color: var(--ink); border-color: var(--border) !important; }
.navbar-toggler-icon { filter: none; }

/* Buttons */
.btn-primary-yurth {
  background: var(--accent);
  color: #fff !important;
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(118,85,128,.22);
}
.btn-primary-yurth::before { background: var(--accent-2); }
.btn-primary-yurth:hover { color: #fff !important; }
.btn-outline-yurth,
.btn-ghost-yurth { color: var(--ink) !important; border-color: var(--border-strong); }
.btn-outline-yurth:hover,
.btn-ghost-yurth:hover { background: rgba(6,77,159,.07); color: var(--ink) !important; }

/* Hero */
.hero-frame { background: #fff; box-shadow: var(--shadow-xl); }
.hero-visual {
  background:
    radial-gradient(120% 100% at 30% 20%, rgba(245,151,55,.16), transparent 60%),
    linear-gradient(160deg, #ebebeb 0%, #d9d9d9 100%);
}
.hero-visual::after { background: linear-gradient(to top, #fff 0%, transparent 55%); }
.hero-portrait-svg { opacity: 1; filter: none; }
.floating-badge { background: rgba(255,255,255,.85); color: var(--ink-2); border-color: var(--border); }
.visual-caption h2 { color: var(--ink); text-shadow: 0 1px 20px rgba(255,255,255,.6); }
.hero-content .protocol-tag { color: rgba(1,35,77,.42); }
.hero-title { color: var(--ink); }
.hero-title em, .hero-title .accent { color: #d6bfdd; }
.hero-sub { color: var(--muted); }
.hero-stats .stat .val { color: var(--ink); }

/* Sections */
.section-alt { background: #ebebeb; }
.section-dark { background: linear-gradient(135deg, #01234d 0%, #012a65 100%); }
.section-dark .section-title { color: #fff; }
.section-dark .text-muted-ink { color: rgba(255,255,255,.72); }
.section-dark .eyebrow { color: var(--accent); }
.lead-serif { color: var(--ink); }

#inquiry .form-label {
  color: #d6bfdd;
  font-weight: 600;
}
#inquiry .eyebrow,
#inquiry .mono-label {
  color: #d6bfdd;
}

/* Academy CTA */
.academy-cta {
  padding-block: clamp(5rem, 8vw, 8rem);
}
.academy-cta .section-title {
  max-width: 900px;
  font-size: clamp(2.5rem, 4.5vw, 4.75rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.academy-cta .text-muted-ink {
  max-width: 760px;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
}
.academy-cta .btn-primary-yurth {
  min-width: 290px;
  padding: 1.25rem 1.65rem;
  background: var(--accent);
  border-color: rgba(255,255,255,.2);
  color: #fff !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.2);
}
.academy-cta .btn-primary-yurth::before {
  background: #fff;
}
.academy-cta .btn-primary-yurth:hover {
  color: #01234d !important;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}

@media (max-width: 991.98px) {
  .academy-cta .btn-primary-yurth { min-width: 0; }
}

/* Cards */
.focus-card { background: #fff; }
.focus-card:hover { background: #fff; }
.focus-card h3 { color: var(--ink); }
.focus-card p { color: var(--muted); }
.feature-card { background: #fff; color: var(--ink-2); }
.feature-card:hover { background: #fff; }
.feature-card h3, .feature-card h4 { color: var(--ink); }
.feature-card a { color: var(--muted); }

/* Logos row */
.logos-row { opacity: .75; }
.logo-placeholder { color: rgba(1,35,77,.72); }
.logos-row img.brand-logo { filter: grayscale(1) brightness(.6); }

/* Credentials */
.credential-list li { color: var(--ink-2); }

/* Talks */
.talk-card { background: #fff; }
.talk-card:hover { background: #fff; }
.talk-card h3 { color: var(--ink); }
.talk-card p { color: var(--muted); }
.engagement h4 { color: var(--ink); }
.engagement .meta { color: var(--muted); }

/* Forms */
.form-yurth .form-control,
.form-yurth .form-select { background: #fff; color: var(--ink); }
.form-yurth .form-control::placeholder { color: rgba(1,35,77,.38); }
.form-yurth .form-control:focus,
.form-yurth .form-select:focus { background: #fff; color: var(--ink); box-shadow: 0 0 0 3px rgba(245,151,55,.2); }
.form-check-input { background-color: #fff; border-color: var(--border-strong); }
.form-check-label { color: var(--muted); }

/* Blog */
.post-card h3, .post-card h3 a { color: var(--ink); }
.post-card p { color: var(--muted); }
.post-card .date { color: rgba(1,35,77,.55); }

/* Media */
.media-card { background: #fff; color: var(--ink-2); }
.media-card:hover { background: #fff; }
.media-card h4 { color: var(--ink); }

/* Newsletter */
.newsletter {
  background:
    radial-gradient(80% 80% at 20% 0%, rgba(245,151,55,.15), transparent 60%),
    #fff;
  color: var(--ink);
}
.newsletter h2 { color: var(--ink); }
.newsletter p { color: var(--muted); }
.newsletter .form-control { background: #fff; color: var(--ink); border-color: var(--border); }
.newsletter .form-control::placeholder { color: rgba(1,35,77,.42); }
.newsletter .form-control:focus { background: #fff; color: var(--ink); }

/* Section titles + leads on light theme */
.section-title { color: var(--ink); }
.section-title em { color: rgba(6,77,159,.55); }
.lead-serif { color: var(--ink); }
.eyebrow { color: var(--accent); }
.mono-label { color: var(--muted); }

/* CTA / newsletter-style blocks on cream */
.cta, .cta h2, .cta .section-title { color: var(--ink); }
.cta p { color: var(--muted); }

/* Image band overlay text */
.image-band, .image-band h2, .image-band p { color: #fff; }
.image-band .section-title em { color: #f59737; }
.image-band .btn-outline-yurth {
  color: #fff !important;
  border-color: rgba(255,255,255,.72);
}
.image-band .btn-outline-yurth:hover {
  color: #01234d !important;
  background: #f59737;
  border-color: #f59737;
}

/* Footer — LIGHT */
.footer {
  background: #01234d;
  color: rgba(255,255,255,.72);
  border-top: 1px solid var(--border);
}
.footer::before { display: block; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.footer h5 { color: #fff; }
.footer p { color: rgba(255,255,255,.68); }
.footer a { color: rgba(255,255,255,.72); }
.footer a:hover { color: var(--accent); }
.footer-bottom { color: rgba(255,255,255,.52); border-top: 1px solid rgba(255,255,255,.14); }

/* Utility */
.text-white { color: var(--ink) !important; }
.text-muted-ink { color: var(--muted); }

/* Page hero image */
.page-hero-img { filter: none; }
.speaking-hero-image {
  height: 460px;
  object-position: 50% 28%;
}
.media-hero-image {
  height: 420px;
  object-position: 50% 52%;
}
.brand-mark { filter: drop-shadow(0 0 12px rgba(245,151,55,.25)); }
.pulse-dot { background: var(--accent); }
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(245,151,55,.7); }
  70% { box-shadow: 0 0 0 12px rgba(245,151,55,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,151,55,0); }
}

/* About portrait uses a dedicated vertical crop so the subject's face remains visible. */
.about-portrait-frame {
  width: min(100%, 31rem);
  margin-left: auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #ebebeb;
}
.about-portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 8%;
}

@media (max-width: 991.98px) {
  .speaking-hero-image { height: 520px; object-position: 50% 24%; }
  .about-portrait-frame {
    width: min(100%, 34rem);
    margin: 0 auto;
    aspect-ratio: 4 / 5;
  }
  .navbar-yurth .navbar-toggler {
    width: 48px;
    height: 44px;
    padding: .45rem;
    border: 1px solid rgba(1,35,77,.3) !important;
    border-radius: 4px;
    box-shadow: none;
  }
  .navbar-yurth .navbar-toggler:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(118,85,128,.15);
  }
  .navbar-yurth .navbar-collapse {
    margin-top: .75rem;
    padding: .5rem 1rem;
    background: #fff;
    border: 1px solid rgba(1,35,77,.12);
    box-shadow: 0 18px 40px rgba(1,35,77,.1);
  }
  .navbar-yurth .navbar-nav { gap: 0; }
  .navbar-yurth .nav-item:not(:last-child) {
    border-bottom: 1px solid rgba(1,35,77,.08);
  }
  .navbar-yurth .nav-link {
    padding: 1rem .75rem !important;
    color: rgba(1,35,77,.76) !important;
    font-size: .78rem;
  }
  .navbar-yurth .nav-link:hover,
  .navbar-yurth .nav-link.active {
    color: var(--accent) !important;
    background: rgba(118,85,128,.06);
  }
  .navbar-yurth .nav-link.active::after {
    left: .75rem;
    bottom: .55rem;
    width: 24px;
    transform: none;
  }
}

/* Final responsive overrides (kept after theme variants for predictable cascade). */
@media (max-width: 575.98px) {
  .speaking-hero-image { height: 430px; }
  .media-hero-image { height: 300px; object-position: 48% 50%; }
  .brand-logo-horizontal { width: min(175px, 56vw); }
  section { padding: 4rem 0; }
  .focus-card, .feature-card, .talk-card { padding: 1.5rem; }
  .credential-list li { flex-direction: column; gap: .35rem; }
  .credential-list .cred-label { min-width: 0; }
  .newsletter { padding: 2.25rem 1.25rem; }
  .btn { width: 100%; justify-content: center; }
}
