/* =============================================
   JANESH ROHIRA — BIODATA WEBSITE
   Design System: Warm Ivory × Deep Onyx × Gold Amber
   ============================================= */

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

:root {
  --ivory: #FAF7F2;
  --cream: #F2EDE4;
  --warm-white: #FFFDF8;
  --onyx: #0F0E0C;
  --charcoal: #1A1916;
  --mid: #3D3A34;
  --muted: #8C8780;
  --gold: #C9984A;
  --gold-light: #E8BF7A;
  --gold-pale: #F5E4C3;
  --terracotta: #B85C38;
  --sage: #6B7F6A;
  --blush: #D4A5A5;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --radius: 16px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--ivory);
  color: var(--onyx);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
}

/* =============================================
   NOISE TEXTURE OVERLAY
   ============================================= */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* =============================================
   CUSTOM CURSOR
   ============================================= */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: multiply;
}

.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s linear, width 0.3s var(--ease-out), height 0.3s var(--ease-out), opacity 0.3s;
  opacity: 0.5;
}

body:has(a:hover) .cursor,
body:has(button:hover) .cursor {
  width: 14px;
  height: 14px;
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.3s;
}

.nav.scrolled {
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 48px;
  border-bottom: 1px solid rgba(201, 152, 74, 0.12);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--onyx);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--mid);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover {
  color: var(--onyx);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--onyx);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--onyx);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-out);
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--ivory);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.2s;
}

.mobile-link:hover {
  color: var(--gold-light);
}

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 100px 72px 60px;
  gap: 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,152,74,0.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(184,92,56,0.1) 0%, transparent 70%);
  bottom: 100px;
  left: -80px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(107,127,106,0.1) 0%, transparent 70%);
  top: 50%;
  left: 40%;
  animation: orbFloat 12s ease-in-out infinite 2s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 20px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  transition-delay: 0.1s;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 0.95;
  color: var(--onyx);
  margin-bottom: 28px;
  transition-delay: 0.2s;
}

.name-first {
  display: block;
}

.name-last {
  display: block;
  color: var(--gold);
  font-style: italic;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 300;
  color: var(--mid);
  line-height: 1.6;
  max-width: 420px;
  margin-bottom: 32px;
  transition-delay: 0.3s;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
  transition-delay: 0.4s;
}

.pill {
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--mid);
  background: var(--cream);
  border: 1px solid rgba(201,152,74,0.25);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.pill:hover {
  background: var(--gold-pale);
  border-color: var(--gold);
  color: var(--onyx);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--onyx);
  text-decoration: none;
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 4px;
  transition: color 0.2s, gap 0.2s;
  transition-delay: 0.5s;
}

.hero-cta:hover {
  color: var(--gold);
  gap: 14px;
}

/* Hero photo */
.hero-photo-frame {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition-delay: 0.3s;
}

.hero-photo-ring {
  position: absolute;
  width: 110%;
  height: 110%;
  border: 1.5px solid rgba(201,152,74,0.3);
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  animation: morphRing 8s ease-in-out infinite;
}

@keyframes morphRing {
  0%, 100% { border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%; }
  25% { border-radius: 40% 60% 30% 70% / 60% 40% 70% 30%; }
  50% { border-radius: 70% 30% 50% 50% / 30% 70% 50% 50%; }
  75% { border-radius: 30% 70% 60% 40% / 70% 30% 40% 60%; }
}

.hero-photo {
  width: 100%;
  max-width: 480px;
  height: 580px;
  object-fit: cover;
  object-position: 62% top; /* shifted right to show full face */
  border-radius: 50% 50% 45% 45% / 40% 40% 60% 60%;
  filter: saturate(1.05);
  box-shadow: 0 30px 80px rgba(15,14,12,0.18), 0 0 0 1px rgba(201,152,74,0.1);
}

/* Scroll hint — simple bouncing arrow */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  color: rgba(201,152,74,0.6);
  animation: scrollBounce 2s ease-in-out infinite;
  transition: opacity 0.5s;
  user-select: none;
  line-height: 1;
}

.hero-scroll-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* =============================================
   SHARED SECTION STYLES
   ============================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--onyx);
  margin-bottom: 56px;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

/* =============================================
   PHILOSOPHY SECTION
   ============================================= */
.philosophy {
  padding: 120px 0;
  background: var(--onyx);
}

.philosophy .section-label {
  color: var(--gold-light);
}

.philosophy .section-title {
  color: var(--ivory);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 80px;
}

.philosophy-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--cream);
  border-left: 2px solid var(--gold);
  padding-left: 28px;
  margin-bottom: 20px;
}

.philosophy-quote blockquote strong {
  color: var(--gold-light);
  font-weight: 400;
}

.philosophy-quote cite {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: normal;
  letter-spacing: 0.05em;
}

.philosophy-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(250,247,242,0.72);
  margin-bottom: 20px;
}

.philosophy-text strong {
  color: var(--ivory);
  font-weight: 500;
}

.philosophy-motto {
  font-family: var(--font-display);
  font-size: 1.1rem !important;
  font-style: italic;
  color: var(--gold-light) !important;
  opacity: 1 !important;
}

.traits-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 48px;
  border-top: 1px solid rgba(250,247,242,0.08);
}

.trait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.6);
  transition: color 0.2s;
}

.trait:hover {
  color: var(--gold-light);
}

.trait-emoji {
  font-size: 2rem;
}

/* =============================================
   VITALS SECTION
   ============================================= */
.vitals {
  padding: 120px 0;
  background: var(--warm-white);
}

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

.vital-card {
  background: var(--ivory);
  border: 1px solid rgba(201,152,74,0.15);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.vital-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.vital-card:hover {
  border-color: rgba(201,152,74,0.4);
  box-shadow: 0 8px 32px rgba(201,152,74,0.1);
  transform: translateY(-3px);
}

.vital-card:hover::before {
  transform: scaleX(1);
}

.vital-card--wide {
  grid-column: span 2;
}

.vital-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.vital-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.vital-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--onyx);
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vital-sub {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 400;
}

/* =============================================
   LIFE CHAPTERS
   ============================================= */
.life {
  padding: 120px 0;
  background: var(--ivory);
}

.life-chapters {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.chapter {
  display: grid;
  grid-template-columns: 80px 1fr 400px;
  align-items: start;
  gap: 48px;
  padding: 72px 0;
  border-bottom: 1px solid rgba(201,152,74,0.12);
  position: relative;
}

.chapter--reverse {
  grid-template-columns: 400px 1fr 80px;
}

.chapter--reverse .chapter-num {
  order: 3;
  text-align: right;
}

.chapter--reverse .chapter-body {
  order: 2;
}

.chapter--reverse .chapter-photo {
  order: 1;
}

.chapter-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(201,152,74,0.2);
  line-height: 1;
  position: sticky;
  top: 100px;
}

.chapter-body {
  padding-top: 8px;
}

.chapter-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--onyx);
  margin-bottom: 20px;
  line-height: 1.2;
}

.chapter-body p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--mid);
}

.chapter-photo {
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 100px;
  height: 320px;
}

.chapter-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

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

/* =============================================
   FAMILY SECTION
   ============================================= */
.family {
  padding: 120px 0;
  background: var(--cream);
}

.family-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.family-card {
  background: var(--warm-white);
  border: 1px solid rgba(201,152,74,0.2);
  border-radius: var(--radius);
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 220px;
  transition: box-shadow 0.3s, transform 0.3s;
}

.family-card:hover {
  box-shadow: 0 12px 40px rgba(201,152,74,0.12);
  transform: translateY(-4px);
}

.family-icon {
  font-size: 3rem;
}

.family-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.family-relation {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.family-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--onyx);
  text-align: center;
}

.family-occ {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  letter-spacing: 0.02em;
}

.family-connector {
  font-size: 1.8rem;
}

.family-center {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.family-type-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-pale);
  border: 1px solid rgba(201,152,74,0.3);
  border-radius: var(--radius-pill);
  padding: 8px 20px;
}

.family-note {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

/* =============================================
   GALLERY SECTION
   ============================================= */
.gallery-section {
  padding: 120px 0 0;
  background: var(--onyx);
}

.gallery-section .section-label {
  color: var(--gold-light);
}

.gallery-section .section-title {
  color: var(--ivory);
}

.gallery-feed {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 3px;
  margin-top: 56px;
}

.gallery-item {
  grid-row: var(--r) / span var(--rs, 1);
  grid-column: var(--c) / span var(--cs, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), filter 0.4s;
  filter: saturate(0.9);
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: saturate(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15,14,12,0.8) 0%, transparent 100%);
  color: var(--ivory);
  font-size: 0.85rem;
  font-weight: 400;
  padding: 24px 20px 16px;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15,14,12,0.96);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: 1px solid rgba(250,247,242,0.2);
  color: var(--ivory);
  font-size: 1.2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(201,152,74,0.2);
  border-color: var(--gold);
}

.lightbox-close {
  top: 24px;
  right: 24px;
}

.lightbox-prev {
  left: 24px;
  font-size: 1.8rem;
}

.lightbox-next {
  right: 24px;
  font-size: 1.8rem;
}

/* =============================================
   SEEKING SECTION
   ============================================= */
.seeking {
  padding: 120px 0;
  background: var(--warm-white);
}

.seeking-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.seeking-text p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--mid);
  margin-bottom: 20px;
}

.seeking-text strong {
  color: var(--onyx);
  font-weight: 500;
}

.seeking-text em {
  color: var(--gold);
  font-style: italic;
}

.seeking-values {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.value-chip {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--onyx);
  background: transparent;
  border: 1.5px solid rgba(201,152,74,0.4);
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
}

.value-chip:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--warm-white);
  transform: translateY(-2px);
}

/* =============================================
   CONNECT SECTION
   ============================================= */
.connect {
  padding: 120px 0 0;
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}

.connect-inner {
  text-align: center;
  padding-bottom: 80px;
}

.connect-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.connect-heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  color: var(--ivory);
  margin-bottom: 28px;
  line-height: 1;
}

.connect-heading em {
  font-style: normal;
}

.connect-sub {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(250,247,242,0.6);
  max-width: 560px;
  margin: 0 auto 56px;
}

.connect-details {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.connect-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.connect-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.connect-val {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ivory);
}

.connect-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  height: 360px;
}

.cpg-item {
  overflow: hidden;
}

.cpg-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.7s var(--ease-out), filter 0.4s;
  filter: saturate(0.8) brightness(0.85);
}

.cpg-item:hover img {
  transform: scale(1.05);
  filter: saturate(1) brightness(1);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--onyx);
  padding: 36px 48px;
  border-top: 1px solid rgba(250,247,242,0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ivory);
  font-weight: 300;
}

.footer-line {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.footer-line em {
  color: rgba(201,152,74,0.7);
  font-style: normal;
}

/* =============================================
   PDF FLOATING ACTION BUTTON
   ============================================= */
.pdf-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--onyx);
  color: var(--gold-light);
  text-decoration: none;
  border: 1px solid rgba(201,152,74,0.3);
  border-radius: var(--radius-pill);
  padding: 12px 20px 12px 16px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 4px 24px rgba(15,14,12,0.3);
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
  outline: none;
}

.pdf-fab:hover {
  background: var(--gold);
  color: var(--onyx);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,152,74,0.35);
}

.pdf-fab svg {
  flex-shrink: 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 100px 48px 80px;
    text-align: center;
    gap: 40px;
  }

  .hero-content { order: 2; }
  .hero-photo-frame { order: 1; max-width: 280px; margin: 0 auto; }
  .hero-photo { max-width: 280px; height: 340px; }
  .hero-pills { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-tagline { margin-left: auto; margin-right: auto; }

  .vitals-grid { grid-template-columns: repeat(2, 1fr); }
  .vital-card--wide { grid-column: span 2; }

  .philosophy-grid { grid-template-columns: 1fr; gap: 40px; }
  .seeking-content { grid-template-columns: 1fr; gap: 40px; }

  .chapter {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .chapter--reverse {
    grid-template-columns: 1fr;
  }
  .chapter--reverse .chapter-num,
  .chapter--reverse .chapter-body,
  .chapter--reverse .chapter-photo {
    order: unset;
  }
  .chapter-photo { height: 260px; position: relative; top: 0; }
  .chapter-num { position: relative; top: 0; font-size: 2.5rem; }
}

@media (max-width: 768px) {
  /* Nav */
  .nav { padding: 16px 20px; }
  .nav.scrolled { padding: 12px 20px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  /* Layout */
  .container { padding: 0 20px; }
  .hero { padding: 80px 20px 72px; gap: 32px; }
  .hero-photo { max-width: 240px; height: 290px; }
  .hero-photo-frame { max-width: 240px; }

  /* Typography scale */
  .hero-name { font-size: clamp(2.8rem, 12vw, 4rem); }
  .hero-tagline { font-size: 0.95rem; max-width: 100%; }
  .section-title { font-size: clamp(1.9rem, 7vw, 2.6rem); margin-bottom: 36px; }

  /* Sections */
  .philosophy { padding: 80px 0; }
  .vitals { padding: 80px 0; }
  .life { padding: 80px 0; }
  .family { padding: 80px 0; }
  .gallery-section { padding: 80px 0 0; }
  .seeking { padding: 80px 0; }
  .connect { padding: 80px 0 0; }

  /* Vitals */
  .vitals-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .vital-card--wide { grid-column: span 2; }
  .vital-card { padding: 20px 18px; }

  /* Chapters */
  .chapter { padding: 48px 0; }
  .chapter-num { font-size: 2rem; }
  .chapter-photo { height: 220px; }

  /* Family */
  .family-layout { flex-direction: column; align-items: center; }
  .family-card { padding: 28px 36px; min-width: unset; width: 100%; max-width: 320px; }
  .family-connector { transform: rotate(90deg); }

  /* Gallery */
  .gallery-feed {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
    margin-top: 32px;
  }
  .gallery-item { grid-row: unset !important; grid-column: unset !important; }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }

  /* Seeking */
  .seeking-values { justify-content: flex-start; }
  .value-chip { padding: 9px 18px; font-size: 0.78rem; }

  /* Connect */
  .connect-photo-grid { grid-template-columns: 1fr 1fr 1fr; height: 200px; }
  .connect-details { gap: 24px; }

  /* Footer */
  .footer { padding: 28px 20px; }
  .footer-inner { flex-direction: column; gap: 10px; text-align: center; }

  /* Traits */
  .traits-row { gap: 24px; }
  .trait-emoji { font-size: 1.6rem; }
  .trait { font-size: 0.72rem; }

  /* PDF FAB */
  .pdf-fab { bottom: 20px; right: 20px; padding: 11px 16px 11px 14px; font-size: 0.7rem; }
}

@media (max-width: 480px) {
  /* Vitals to 1 col */
  .vitals-grid { grid-template-columns: 1fr; gap: 10px; }
  .vital-card--wide { grid-column: span 1; }

  /* Hero tighter */
  .hero { padding: 72px 16px 64px; }
  .hero-photo { max-width: 200px; height: 240px; }
  .hero-photo-frame { max-width: 200px; }
  .hero-pills { gap: 8px; }
  .pill { padding: 6px 14px; font-size: 0.68rem; }

  /* Chapter */
  .chapter { padding: 40px 0; }
  .section-title { font-size: 1.75rem; }

  /* Gallery 1-col fallback */
  .gallery-feed { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-item:nth-child(1) { grid-column: span 1; grid-row: span 1; }

  /* Connect photo grid – hide middle on very small screens */
  .connect-photo-grid { grid-template-columns: 1fr 1fr; }
  .cpg-item:last-child { display: none; }

  /* Family card full width */
  .family-card { max-width: 100%; padding: 24px 20px; }

  /* Container tighter */
  .container { padding: 0 16px; }
  .philosophy .container,
  .vitals .container,
  .life .container,
  .family .container,
  .gallery-section .container,
  .seeking .container,
  .connect .container { padding: 0 16px; }
}

/* =============================================
   STAGGER DELAYS FOR GRID ITEMS
   ============================================= */
.vitals-grid .vital-card:nth-child(1) { transition-delay: 0s; }
.vitals-grid .vital-card:nth-child(2) { transition-delay: 0.07s; }
.vitals-grid .vital-card:nth-child(3) { transition-delay: 0.14s; }
.vitals-grid .vital-card:nth-child(4) { transition-delay: 0.21s; }
.vitals-grid .vital-card:nth-child(5) { transition-delay: 0.28s; }
.vitals-grid .vital-card:nth-child(6) { transition-delay: 0.35s; }
.vitals-grid .vital-card:nth-child(7) { transition-delay: 0.42s; }
.vitals-grid .vital-card:nth-child(8) { transition-delay: 0.49s; }
.vitals-grid .vital-card:nth-child(9) { transition-delay: 0.56s; }

.traits-row .trait:nth-child(1) { transition-delay: 0s; }
.traits-row .trait:nth-child(2) { transition-delay: 0.05s; }
.traits-row .trait:nth-child(3) { transition-delay: 0.1s; }
.traits-row .trait:nth-child(4) { transition-delay: 0.15s; }
.traits-row .trait:nth-child(5) { transition-delay: 0.2s; }

.value-chip { cursor: default; }

/* Mobile cursor: disable custom cursor on touch devices */
@media (hover: none) {
  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
}
