:root {
  --bg: #0a1a1a;
  --bg-soft: #0f2424;
  --surface: #f8faf9;
  --surface-2: #eef4f2;
  --ink: #0c1616;
  --ink-muted: #4d6361;
  --accent: #e07a5f;
  --accent-2: #2d9d9d;
  --accent-glow: rgba(224, 122, 95, 0.4);
  --gold: #c9a962;
  --gold-soft: rgba(201, 169, 98, 0.15);
  --line: rgba(255, 255, 255, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
  --max: 1180px;
  --shadow-sm: 0 4px 20px rgba(12, 31, 31, 0.06);
  --shadow-md: 0 16px 48px rgba(12, 31, 31, 0.1);
  --shadow-lg: 0 28px 80px rgba(12, 31, 31, 0.14);
  --shadow-glow: 0 20px 60px rgba(45, 157, 157, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(45, 157, 157, 0.1), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(224, 122, 95, 0.09), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(201, 169, 98, 0.03), transparent 60%);
  z-index: -1;
}

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

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.3s var(--ease), opacity 0.3s var(--ease);
}

a:hover {
  color: var(--accent);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 200;
  background: rgba(12, 31, 31, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
}

.topbar--overlay:not(.scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}

.topbar.scrolled {
  background: rgba(10, 26, 26, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: 0.03em;
  transition: transform 0.3s var(--ease);
}

.logo:hover {
  color: #fff;
  transform: translateY(-1px);
}

.topnav {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.topnav a {
  display: block;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.35s var(--ease);
}

.topnav a:hover,
.topnav a.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.splash {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  background: var(--bg);
  color: #fff;
  overflow: hidden;
}

.splash-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10, 26, 26, 0.55) 0%, rgba(10, 26, 26, 0.88) 55%, rgba(10, 26, 26, 0.95) 100%),
    url("../img/enhanced/hero-banner.png") center / cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 18s var(--ease) infinite alternate;
}

.splash-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(45, 157, 157, 0.25), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(224, 122, 95, 0.2), transparent 35%);
  pointer-events: none;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

.splash-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: end;
}

.splash-copy {
  padding-bottom: 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: fadeUp 0.8s var(--ease) both;
}

.chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.splash h1 {
  margin: 0 0 1rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.95;
  font-weight: 400;
  animation: fadeUp 0.9s var(--ease) 0.1s both;
}

.splash-lead {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.92);
  animation: fadeUp 0.9s var(--ease) 0.2s both;
}

.splash-text {
  margin: 0 0 2rem;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.72);
  animation: fadeUp 0.9s var(--ease) 0.3s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: fadeUp 0.9s var(--ease) 0.4s both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-fill {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px var(--accent-glow);
}

.btn-fill:hover {
  color: #fff;
  background: #cf6a52;
}

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.hero-visual {
  position: relative;
  animation: fadeUp 1s var(--ease) 0.25s both;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -12% -8% auto auto;
  width: 72%;
  height: 72%;
  border-radius: 30% 70% 62% 38% / 42% 36% 64% 58%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  opacity: 0.45;
  filter: blur(10px);
  animation: blobFloat 8s ease-in-out infinite alternate;
}

@keyframes blobFloat {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(-12px, 16px) rotate(6deg); }
}

.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

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

.photo-card.hero-shot img {
  object-position: 42% 35%;
}

.photo-card.profile-shot img {
  object-position: center 12%;
  transform: scale(1.08);
}

.photo-card.profile-shot:hover img {
  transform: scale(1.1);
}

/* Metrics strip */
.metrics {
  margin-top: -3rem;
  position: relative;
  z-index: 5;
  padding-bottom: 1rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.metric {
  position: relative;
  padding: 1.65rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(15, 26, 26, 0.06);
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  overflow: hidden;
}

.metric::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  opacity: 0.85;
}

.metric:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.metric strong {
  display: block;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent-2);
}

.metric span {
  display: block;
  margin-top: 0.45rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

/* Sections */
.block-dark > .container {
  position: relative;
  z-index: 1;
}

.block {
  padding: 6rem 0;
}

.block-dark {
  background: linear-gradient(165deg, var(--bg) 0%, var(--bg-soft) 50%, #0d2222 100%);
  color: #fff;
  position: relative;
}

.block-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 100% 0%, rgba(45, 157, 157, 0.08), transparent 50%);
  pointer-events: none;
}

.block-dark .eyebrow,
.block-dark h2,
.block-dark h3 {
  color: #fff;
}

.block-dark p,
.block-dark li,
.block-dark .sub {
  color: rgba(255, 255, 255, 0.76);
}

.block-tint {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-top {
  margin-bottom: 3rem;
}

.section-top.center {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.block-dark .eyebrow {
  color: #f2b8a7;
}

h2.title {
  margin: 0 0 0.75rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  font-weight: 400;
}

.sub {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.section-top .sub,
.heritage-intro .sub,
.policy-intro .sub {
  margin-top: 0.5rem;
}

h1.title {
  margin: 0 0 0.75rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  font-weight: 400;
}

/* About */
.about-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

.profile-stack {
  position: relative;
}

.profile-stack .caption {
  margin-top: 1rem;
  text-align: center;
  color: var(--ink-muted);
  font-weight: 600;
}

.copy p {
  margin: 0 0 1.1rem;
}

.quote {
  margin: 1.5rem 0;
  padding: 1.2rem 1.4rem;
  border-left: 4px solid var(--accent);
  background: linear-gradient(90deg, rgba(224, 122, 95, 0.12), transparent);
  border-radius: 0 14px 14px 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.35rem;
  color: var(--ink);
}

.contact-box {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid rgba(15, 26, 26, 0.06);
  box-shadow: var(--shadow-sm);
}

.contact-box strong {
  color: var(--ink);
}

.contact-box span {
  color: var(--ink-muted);
  font-size: 0.96rem;
}

/* Experience timeline */
.journey {
  display: grid;
  gap: 1.25rem;
}

.journey-card {
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.journey-card:hover {
  transform: translateX(8px);
  border-color: rgba(224, 122, 95, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.journey-card h3 {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f2b8a7;
}

.journey-list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 0.9rem;
}

.journey-item::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(224, 122, 95, 0.15);
}

.journey-item strong {
  display: block;
  color: #fff;
}

.journey-item span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
}

/* Cards grid */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.cards-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
}

.card {
  position: relative;
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(15, 26, 26, 0.06);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(45, 157, 157, 0.04), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(45, 157, 157, 0.3);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.96rem;
}

.card a {
  color: inherit;
}

.card a:hover {
  color: var(--accent-2);
}

.quote-card {
  position: relative;
  padding-top: 2.5rem;
}

.quote-card::before {
  content: "\201C";
  position: absolute;
  top: 0.75rem;
  left: 1.25rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.25;
  pointer-events: none;
}

.quote-card p {
  margin: 0 0 1rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.55;
  font-style: italic;
}

.quote-card footer {
  color: var(--ink-muted);
  font-weight: 700;
  font-size: 0.92rem;
}

/* Video */
.film {
  margin-top: 2.5rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(15, 26, 26, 0.06);
  box-shadow: var(--shadow-md);
}

.film h3 {
  margin: 0 0 1rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.5rem;
}

.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Inner page hero */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 3.5rem) 0 3.5rem;
  background: var(--bg);
  color: #fff;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10, 26, 26, 0.92) 0%, rgba(15, 36, 36, 0.85) 100%);
  pointer-events: none;
}

.page-hero--heritage .page-hero-bg {
  background:
    linear-gradient(135deg, rgba(10, 26, 26, 0.88) 0%, rgba(15, 36, 36, 0.78) 100%),
    url("../img/enhanced/GrandFather.jpg") center / cover no-repeat;
  filter: saturate(0.7);
}

.page-hero--privacy .page-hero-bg {
  background:
    linear-gradient(135deg, rgba(10, 26, 26, 0.94) 0%, rgba(15, 36, 36, 0.88) 100%),
    radial-gradient(circle at 80% 20%, rgba(45, 157, 157, 0.15), transparent 50%);
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.page-hero .eyebrow {
  color: #f2b8a7;
}

.page-hero .title {
  color: #fff;
  margin-bottom: 0.85rem;
}

.page-hero .sub {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.75;
}

.page-hero .sub a {
  color: #a8e0e0;
}

.page-hero .sub a:hover {
  color: #fff;
}

/* Privacy policy */
.policy-page {
  padding: 3rem 0 4rem;
}

.policy-intro {
  margin-bottom: 2.5rem;
  max-width: 720px;
}

.policy-intro .sub {
  margin-top: 0.65rem;
}

.policy-card {
  position: relative;
  margin-bottom: 1.25rem;
  padding: 1.65rem 1.75rem 1.65rem 2rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(15, 26, 26, 0.06);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.policy-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}

.policy-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.policy-card h2 {
  margin: 0 0 0.75rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
}

.policy-card p,
.policy-card li {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.policy-card p {
  margin: 0 0 1rem;
}

.policy-card p:last-child {
  margin-bottom: 0;
}

.policy-card ul {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
}

.policy-card li {
  margin-bottom: 0.35rem;
}

.policy-card code {
  font-size: 0.9em;
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* Family history page */
.heritage-page {
  padding: 3rem 0 4rem;
}

.heritage-page .container {
  width: min(100% - 1.25rem, 1280px);
}

.heritage-intro {
  margin-bottom: 2.5rem;
  max-width: 620px;
}

.heritage-intro .sub {
  margin-top: 0.65rem;
}

.family-name-band {
  margin-bottom: 2.5rem;
  padding: 2.25rem 2rem 2.5rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--bg) 0%, var(--bg-soft) 55%, #0d2828 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.family-name-band::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(201, 169, 98, 0.12), transparent 65%);
  pointer-events: none;
}

.family-name-band .eyebrow {
  color: #f2b8a7;
}

.family-name-band .title {
  margin: 0 0 0.75rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.1;
  font-weight: 400;
}

.family-name-band .sub {
  margin: 0 0 2rem;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
  font-size: 1rem;
}

.family-name-band .sub strong {
  color: #fff;
}

.family-lineage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
}

.lineage-node {
  position: relative;
  padding: 1.25rem 1rem 1.3rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.lineage-node:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.lineage-node:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  top: 50%;
  right: -0.65rem;
  transform: translateY(-50%);
  color: rgba(201, 169, 98, 0.7);
  font-size: 0.85rem;
  z-index: 2;
}

.lineage-gen {
  display: block;
  margin-bottom: 0.35rem;
  color: #f2b8a7;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lineage-node strong {
  display: block;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.2;
  font-weight: 400;
}

.lineage-alias {
  display: block;
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  line-height: 1.35;
}

.lineage-node--current {
  background: linear-gradient(145deg, rgba(45, 157, 157, 0.28), rgba(45, 157, 157, 0.12));
  border-color: rgba(45, 157, 157, 0.5);
  box-shadow: 0 0 0 1px rgba(45, 157, 157, 0.2), var(--shadow-glow);
}

.family-name-note {
  margin: 0 0 0.65rem;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.family-name-note:last-child {
  margin-bottom: 0;
}

.family-name-note strong {
  color: #fff;
}

.heritage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.heritage-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(15, 26, 26, 0.06);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.heritage-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent-2));
  z-index: 2;
}

.heritage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.heritage-frame {
  overflow: hidden;
  background: #1a2e2e;
}

.heritage-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: sepia(0.08) contrast(1.05) saturate(1.05);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}

.heritage-card:hover .heritage-frame img {
  transform: scale(1.06);
  filter: sepia(0) contrast(1.08) saturate(1.1);
}

.heritage-frame img.pos-top { object-position: center top; }
.heritage-frame img.pos-face { object-position: center 22%; }
.heritage-frame img.pos-center { object-position: center center; }

.heritage-body {
  padding: 1.1rem 1.2rem 1.25rem;
}

.heritage-body .gen {
  margin: 0 0 0.25rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.heritage-body h2 {
  margin: 0 0 0.75rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.2;
}

.heritage-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.heritage-body li {
  padding-left: 0.95rem;
  position: relative;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.heritage-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
}

/* Footer */
.footer {
  padding: 3.5rem 0 2.25rem;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem 3rem;
  align-items: start;
  width: 100%;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  max-width: 360px;
}

.footer-logo {
  display: block;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer .container {
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.footer-links {
  display: flex;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

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

.footer small,
.footer .share {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
}

.footer .share a {
  color: #f2b8a7;
}

/* Page transition */
body.page-enter {
  animation: pageIn 0.7s var(--ease) both;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .splash-grid,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .metrics-grid,
  .cards-3,
  .cards-2 {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 420px;
    margin-inline: auto;
  }

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

  .family-lineage {
    grid-template-columns: 1fr 1fr;
  }

  .lineage-node:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 68px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  #site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 199;
    background: rgba(12, 31, 31, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.75rem 1rem 1.25rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  }

  body.nav-open #site-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .topnav {
    flex-direction: column;
    gap: 0.35rem;
  }

  .topnav a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .splash {
    padding-top: calc(var(--header-h) + 2rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .family-lineage {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    justify-content: center;
  }

  .heritage-grid {
    gap: 0.65rem;
  }

  .heritage-body {
    padding: 0.75rem 0.65rem 0.85rem;
  }

  .heritage-body h2 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .heritage-body .gen {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .heritage-body li {
    font-size: 0.78rem;
    padding-left: 0.75rem;
    line-height: 1.35;
  }

  .heritage-body li::before {
    top: 0.45rem;
    width: 4px;
    height: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .splash-bg,
  .hero-visual::before,
  .reveal,
  body.page-enter {
    animation: none;
    transition: none;
  }
  .reveal { opacity: 1; transform: none; }
}
