/* ==========================================================================
   Kallie.com - Modern Portal & Family Archive Stylesheet
   ========================================================================== */

:root {
  --k-navy: #0b1f3f;
  --k-navy-soft: #143260;
  --k-blue: #1456b8;
  --k-blue-hover: #0e3f8a;
  --k-sky: #0284c7;
  --k-amber: #d97706;
  --k-amber-soft: #fef3c7;
  --k-bg: #f5f7fb;
  --k-surface: #ffffff;
  --k-surface-alt: #f8fafc;
  --k-border: #e2e8f0;
  --k-border-strong: #cbd5e1;
  --k-text: #0f172a;
  --k-text-body: #334155;
  --k-text-muted: #64748b;
  --k-radius: 14px;
  --k-radius-sm: 9px;
  --k-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.04);
  --k-shadow-hover: 0 8px 28px rgba(11, 31, 63, 0.12);
  --k-max: 1120px;
}

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

html {
  scroll-behavior: smooth;
  /* Keep anchor targets (#companies, #ventures) from landing under the sticky header */
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  padding: 0;
  background: var(--k-bg);
  color: var(--k-text-body);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: var(--k-blue);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

a:hover {
  color: var(--k-blue-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--k-amber);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--k-navy);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 9999;
}

.skip-link:focus {
  left: 16px;
  color: #ffffff;
}

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

/* ---------- Header & Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--k-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--k-text);
}

.brand:hover {
  color: var(--k-text);
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(20, 86, 184, 0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.brand:hover .brand-logo-img {
  transform: rotate(-4deg) scale(1.06);
  box-shadow: 0 6px 18px rgba(20, 86, 184, 0.36);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--k-navy) 0%, var(--k-blue) 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 12px rgba(20, 86, 184, 0.25);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--k-navy);
}

.brand-sub {
  font-size: 12px;
  color: var(--k-text-muted);
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  color: var(--k-text-body);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 13px;
  border-radius: 8px;
}

.site-nav a:hover {
  color: var(--k-navy);
  background: #eef2f9;
}

.site-nav a.is-current {
  color: var(--k-blue);
  background: #e8f0fe;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--k-border-strong);
  color: var(--k-navy);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---------- Hero Banner ---------- */
.hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(56, 189, 248, 0.22), transparent 46%),
    radial-gradient(circle at 12% 90%, rgba(245, 158, 11, 0.16), transparent 42%),
    linear-gradient(135deg, #07152e 0%, #0d2754 52%, #143f82 100%);
  color: #ffffff;
  padding: 64px 0 58px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 36px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fcd34d;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 5px 12px;
  border-radius: 999px;
  margin: 0 0 16px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.hero-lead {
  margin: 0 0 26px;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 16px 18px;
  backdrop-filter: blur(6px);
}

.hero-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.76);
  margin-top: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}

.btn-primary {
  background: #ffffff;
  color: var(--k-navy);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.btn-primary:hover {
  background: #f1f5f9;
  color: var(--k-navy);
  transform: translateY(-1px);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-navy {
  background: var(--k-navy);
  color: #ffffff;
}

.btn-navy:hover {
  background: var(--k-blue);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-soft {
  background: #eef3fb;
  color: var(--k-navy);
  border-color: #d6e2f5;
}

.btn-soft:hover {
  background: #e0eaf9;
  color: var(--k-blue);
}

/* ---------- Sections ---------- */
.section {
  padding: 54px 0;
}

.section--alt {
  background: var(--k-surface);
  border-top: 1px solid var(--k-border);
  border-bottom: 1px solid var(--k-border);
}

.section-header {
  max-width: 680px;
  margin-bottom: 30px;
}

.section-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--k-amber);
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 31px);
  line-height: 1.2;
  color: var(--k-navy);
  letter-spacing: -0.015em;
}

.section-lead {
  margin: 0;
  color: var(--k-text-muted);
  font-size: 15.5px;
}

/* ---------- Company Cards ---------- */
.company-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.company-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--k-surface);
  border: 1px solid var(--k-border);
  border-radius: var(--k-radius);
  padding: 24px;
  box-shadow: var(--k-shadow);
  color: inherit;
  position: relative;
}

.company-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--k-shadow-hover);
  transform: translateY(-3px);
  color: inherit;
}

.company-card--featured {
  grid-column: span 2;
  background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
  border-color: #cbdcf7;
}

.company-card--wide {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border-color: #bae6fd;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}

.company-card--wide .company-card-main {
  flex: 1 1 auto;
  min-width: 0;
}

.company-card--wide .company-head {
  margin-bottom: 10px;
}

.company-card--wide p {
  margin-bottom: 0;
  max-width: 72ch;
}

.company-card--wide .company-card-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-shrink: 0;
}

.company-card--wide .tag-list {
  justify-content: flex-end;
  margin-top: 0;
}

.company-grid-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.company-card--spotlight {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border-color: #bae6fd;
}

.company-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.company-brand-row {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.company-logo-box {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--k-border);
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.company-logo-box img {
  width: 48px;
  height: 48px;
  max-width: none;
  object-fit: contain;
  display: block;
}

.company-title-group {
  min-width: 0;
}

.company-title-group h3 {
  margin: 0 0 2px;
  font-size: 18px;
  line-height: 1.25;
  color: var(--k-navy);
}

.company-title-group .company-domain {
  margin-bottom: 0;
}

.venture-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.venture-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eef4ff;
  color: var(--k-blue);
  border: 1px solid #dbe7fb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.venture-badge--amber {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}

.venture-badge--emerald {
  background: #d1fae5;
  color: #047857;
  border-color: #a7f3d0;
}

.venture-badge--violet {
  background: #ede9fe;
  color: #6d28d9;
  border-color: #ddd6fe;
}

.company-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: #eef4ff;
  color: var(--k-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.company-icon--amber {
  background: #fef3c7;
  color: #b45309;
}

.company-icon--teal {
  background: #e0f2fe;
  color: #0369a1;
}

.company-icon--violet {
  background: #ede9fe;
  color: #6d28d9;
}

.company-icon--emerald {
  background: #d1fae5;
  color: #047857;
}

.company-arrow {
  color: var(--k-text-muted);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.18s ease, color 0.18s ease;
}

.company-card:hover .company-arrow {
  color: var(--k-blue);
  transform: translate(2px, -2px);
}

.company-card h3 {
  margin: 0 0 6px;
  font-size: 19px;
  color: var(--k-navy);
}

.company-domain {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--k-blue);
  margin-bottom: 10px;
}

.company-card p {
  margin: 0 0 18px;
  font-size: 14.5px;
  color: var(--k-text-body);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 3px 9px;
  border-radius: 999px;
}

/* Secondary Ventures Grid */
.subsection-title {
  margin: 34px 0 14px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--k-text-muted);
}

.venture-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.venture-card {
  display: flex;
  flex-direction: column;
  background: var(--k-surface);
  border: 1px solid var(--k-border);
  border-radius: var(--k-radius-sm);
  padding: 18px;
  box-shadow: var(--k-shadow);
  color: inherit;
}

.venture-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--k-shadow-hover);
  transform: translateY(-2px);
  color: inherit;
}

.venture-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.venture-card h4 {
  margin: 0;
  font-size: 15.5px;
  color: var(--k-navy);
}

.venture-card .company-domain {
  font-size: 12px;
  margin-bottom: 8px;
}

.venture-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--k-text-muted);
  line-height: 1.55;
}

/* ---------- Personal Showcase Cards ---------- */
.personal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.personal-card {
  display: flex;
  flex-direction: column;
  background: var(--k-surface);
  border: 1px solid var(--k-border);
  border-radius: var(--k-radius);
  overflow: hidden;
  box-shadow: var(--k-shadow);
  color: inherit;
}

.personal-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--k-shadow-hover);
  transform: translateY(-3px);
  color: inherit;
}

.personal-media {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #0f172a;
}

.personal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.personal-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(11, 31, 63, 0.82);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.personal-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.personal-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--k-navy);
}

.personal-body p {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--k-text-body);
}

.personal-link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--k-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Subpage Hero & Breadcrumb ---------- */
.subpage-hero {
  background: linear-gradient(135deg, #091a36 0%, #123368 100%);
  color: #ffffff;
  padding: 34px 0 36px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: #93c5fd;
  font-weight: 600;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.subpage-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.18;
  color: #ffffff;
}

.subpage-hero p {
  margin: 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.84);
  max-width: 66ch;
}

.subpage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* ---------- Spotlight & Content Cards ---------- */
.card {
  background: var(--k-surface);
  border: 1px solid var(--k-border);
  border-radius: var(--k-radius);
  padding: 26px;
  box-shadow: var(--k-shadow);
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.portrait-card {
  background: var(--k-surface);
  border: 1px solid var(--k-border);
  border-radius: var(--k-radius);
  overflow: hidden;
  box-shadow: var(--k-shadow);
  margin: 0;
}

.portrait-card button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #0f172a;
  cursor: zoom-in;
  overflow: hidden;
}

.portrait-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.portrait-card button:hover img {
  transform: scale(1.02);
}

.portrait-card figcaption {
  padding: 14px 18px;
  font-size: 14px;
  color: var(--k-text-body);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sparky-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: center;
}

.sparky-photo-frame {
  border-radius: var(--k-radius);
  overflow: hidden;
  border: 1px solid var(--k-border);
  box-shadow: var(--k-shadow);
  background: #0f172a;
}

.sparky-photo-frame img {
  width: 100%;
  height: auto;
}

/* ---------- Album Tabs & Photo Gallery ---------- */
.album-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.album-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.album-tab {
  background: var(--k-surface);
  border: 1px solid var(--k-border-strong);
  color: var(--k-text-body);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.album-tab:hover {
  border-color: var(--k-blue);
  color: var(--k-blue);
}

.album-tab.is-active {
  background: var(--k-navy);
  border-color: var(--k-navy);
  color: #ffffff;
}

.album-count {
  font-size: 13.5px;
  color: var(--k-text-muted);
  font-weight: 600;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.photo-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--k-border);
  background: #e2e8f0;
  padding: 0;
  cursor: zoom-in;
  display: block;
  width: 100%;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.photo-tile:hover img {
  transform: scale(1.06);
}

.photo-tile-num {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
}

/* ---------- Lightbox Modal ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(7, 15, 30, 0.92);
  backdrop-filter: blur(6px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  z-index: 1002;
}

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

.lightbox-btn {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 8px;
  cursor: pointer;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
  max-height: calc(100vh - 130px);
  margin-top: 28px;
}

.lightbox-img {
  max-width: calc(100% - 110px);
  max-height: calc(100vh - 150px);
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  object-fit: contain;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-prev {
  left: 4px;
}

.lightbox-next {
  right: 4px;
}

.lightbox-caption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  text-align: center;
}

/* ---------- Pedigree Table ---------- */
.pedigree-scroll {
  overflow-x: auto;
  background: var(--k-surface);
  border: 1px solid var(--k-border);
  border-radius: var(--k-radius);
  box-shadow: var(--k-shadow);
  padding: 16px;
}

.pedigree-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--k-text-muted);
}

.pedigree-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 12.5px;
}

.pedigree-table th {
  background: var(--k-navy);
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11.5px;
  padding: 10px 8px;
  border: 1px solid #1e3a6d;
}

.pedigree-table td {
  border: 1px solid #cbd5e1;
  padding: 7px 9px;
  text-align: center;
  vertical-align: middle;
  background: #ffffff;
  color: var(--k-text);
  line-height: 1.35;
}

.pedigree-table td.is-champ {
  background: #fffbeb;
  border-color: #f59e0b;
}

.ped-name {
  display: block;
  font-weight: 700;
}

.ped-name--champ {
  color: #b91c1c;
}

.ped-role {
  display: inline-block;
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.ped-role--sire {
  background: #dbeafe;
  color: #1e40af;
}

.ped-role--dam {
  background: #fce7f3;
  color: #9d174d;
}

/* ---------- Alex's October Poem Page ---------- */
.poem-stage {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  background-color: #2b1810;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.poem-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 15, 7, 0.45) 0%, rgba(43, 21, 9, 0.58) 100%);
}

.poem-card {
  position: relative;
  z-index: 1;
  max-width: 620px;
  width: 100%;
  background: rgba(255, 251, 244, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 240, 212, 0.8);
  border-radius: 18px;
  padding: 44px 40px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  color: #2c1810;
}

.poem-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #b45309;
}

.poem-title {
  margin: 0 0 24px;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 44px);
  color: #7c2d12;
  letter-spacing: 0.01em;
}

.poem-stanza {
  margin: 0 0 22px;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.75;
  color: #291811;
}

.poem-stanza:last-of-type {
  margin-bottom: 28px;
}

/* ---------- Brianna's Monster Mash Page ---------- */
.halloween-stage {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  background-color: #0b110d;
  background-size: cover;
  background-position: center;
}

.halloween-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(14, 30, 18, 0.72) 0%, rgba(5, 8, 12, 0.9) 100%);
}

.halloween-card {
  position: relative;
  z-index: 1;
  max-width: 520px;
  width: 100%;
  background: rgba(15, 23, 20, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(74, 222, 128, 0.32);
  border-radius: 18px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  color: #ecfdf5;
}

.halloween-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #86efac;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.32);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.halloween-title {
  margin: 0 0 20px;
  font-size: clamp(26px, 4.5vw, 34px);
  color: #4ade80;
  text-shadow: 0 2px 18px rgba(74, 222, 128, 0.28);
}

.halloween-photo {
  margin: 0 auto 22px;
  max-width: 310px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(74, 222, 128, 0.4);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}

.halloween-photo img {
  width: 100%;
  height: auto;
}

.audio-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
}

.audio-panel audio {
  width: 100%;
  display: block;
}

.audio-label {
  font-size: 13px;
  color: #bbf7d0;
  margin: 0 0 10px;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--k-navy);
  color: rgba(255, 255, 255, 0.78);
  padding: 40px 0 26px;
  margin-top: auto;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.site-footer h4 {
  margin: 0 0 10px;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #fcd34d;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  padding-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .company-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-card--featured {
    grid-column: span 2;
  }

  .company-card--wide {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .company-card--wide .company-card-aside {
    align-items: flex-start;
  }

  .company-card--wide .tag-list {
    justify-content: flex-start;
  }

  .venture-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sparky-intro,
  .spotlight-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--k-border);
    padding: 12px 20px 16px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
  }

  .site-nav.is-open {
    display: flex;
  }

  .company-grid,
  .company-grid-duo,
  .venture-grid,
  .personal-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .company-card--featured {
    grid-column: span 1;
  }

  .hero {
    padding: 44px 0 42px;
  }

  .poem-card {
    padding: 30px 22px;
  }

  .poem-stanza {
    font-size: 17px;
  }

  .lightbox-img {
    max-width: 100%;
  }

  .lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
}
