/* ==========================================================================
   BASANTANI GROUP LLP — Master Stylesheet
   Design language: Luxury dark + gold
   Author: built for Aryan Basantani
   --------------------------------------------------------------------------
   TABLE OF CONTENTS
   01. Design tokens (colours, type, spacing)
   02. Reset & base
   03. Typography
   04. Utility & layout helpers
   05. Buttons & links
   06. Preloader
   07. Cursor
   08. Scroll progress bar
   09. Navigation
   10. Hero sections
   11. Section headers
   12. Cards (project / service / value / blog)
   13. Stats & counters
   14. Timeline
   15. Team
   16. Family tree
   17. Testimonials
   18. Marquee
   19. Contact & forms
   20. Footer
   21. Lightbox
   22. Scroll reveal animations
   23. Keyframes
   24. Responsive
   ========================================================================== */

/* ==========================================================================
   01. DESIGN TOKENS
   Change these values to re-skin the entire website at once.
   ========================================================================== */
:root {
  /* Core palette */
  --ink:            #08080A;   /* deepest background */
  --ink-2:          #0E0E12;   /* alternating section background */
  --surface:        #16161C;   /* card background */
  --surface-2:      #1F1F27;   /* raised card background */
  --line:           rgba(255, 255, 255, 0.09);
  --line-strong:    rgba(212, 175, 55, 0.35);

  /* Gold accent ramp */
  --gold:           #D4AF37;
  --gold-soft:      #E8CE7A;
  --gold-deep:      #A6821C;
  --gold-glow:      rgba(212, 175, 55, 0.22);

  /* Text */
  --text:           #F4F2ED;
  --text-muted:     #A6A4A0;
  --text-dim:       #6E6C69;

  /* Type */
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;

  /* Layout */
  --container: 1280px;
  --radius: 4px;
  --radius-lg: 10px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.6s;

  --nav-h: 86px;
}

/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll { overflow: hidden; }

img,
picture,
video,
svg { display: block; max-width: 100%; }

ul, ol { list-style: none; }

a { color: inherit; text-decoration: none; }

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--gold-deep), var(--gold));
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-soft); }

/* ==========================================================================
   03. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.9rem, 7.2vw, 6.4rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
h4 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }

p { color: var(--text-muted); }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.85;
  color: var(--text-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.eyebrow::before {
  content: '';
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.eyebrow.center::after {
  content: '';
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.gold { color: var(--gold); }

.serif-italic {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-soft);
}

/* Gold gradient text */
.text-gradient {
  background: linear-gradient(100deg, var(--gold-soft), var(--gold), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   04. UTILITY & LAYOUT
   ========================================================================== */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.container-wide {
  width: min(100% - 2.5rem, 1600px);
  margin-inline: auto;
}

.section { padding: var(--space-xl) 0; }
.section-sm { padding: var(--space-lg) 0; }
.section-alt { background: var(--ink-2); }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mt-md { margin-top: var(--space-md); }
.maxw-680 { max-width: 680px; }
.maxw-780 { max-width: 780px; }

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

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.wrap { flex-wrap: wrap; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  border: 0;
  margin: var(--space-lg) 0;
}

/* Decorative gold ornament */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.ornament::before,
.ornament::after {
  content: '';
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament span {
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--gold);
}

/* ==========================================================================
   05. BUTTONS
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.05rem 2.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease),
              transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  z-index: 0;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}

.btn:hover { transform: translateY(-3px); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: translateY(-1px); }

/* Primary — solid gold */
.btn-primary {
  background: linear-gradient(100deg, var(--gold), var(--gold-deep));
  color: var(--ink);
  box-shadow: 0 8px 30px -12px var(--gold-glow);
}
.btn-primary::before { background: var(--text); }
.btn-primary:hover {
  color: var(--ink);
  box-shadow: 0 16px 40px -12px var(--gold-glow);
}

/* Ghost — outlined */
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn-ghost::before {
  background: linear-gradient(100deg, var(--gold), var(--gold-deep));
}
.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--gold);
}

/* Text link with animated underline */
.link-underline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 4px;
}
.link-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.link-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.link-underline .arrow { transition: transform 0.4s var(--ease); }
.link-underline:hover .arrow { transform: translateX(6px); }

/* ==========================================================================
   06. PRELOADER
   ========================================================================== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: var(--ink);
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}
#preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-inner { text-align: center; }
.preloader-mark {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 1.5rem;
  animation: fadeUp 1s var(--ease) both;
}
.preloader-bar {
  width: min(280px, 60vw);
  height: 2px;
  background: var(--line);
  overflow: hidden;
  margin-inline: auto;
}
.preloader-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft));
  transition: width 0.3s linear;
}
.preloader-pct {
  margin-top: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
}

/* ==========================================================================
   07. CUSTOM CURSOR (desktop only)
   ========================================================================== */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease), height 0.35s var(--ease),
              opacity 0.35s var(--ease), background 0.35s var(--ease);
}
.cursor-ring.grow {
  width: 74px;
  height: 74px;
  background: var(--gold-glow);
}
@media (max-width: 1024px), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ==========================================================================
   08. SCROLL PROGRESS
   ========================================================================== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft));
  z-index: 9998;
  transition: width 0.1s linear;
}

/* ==========================================================================
   09. NAVIGATION
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 900;
  display: flex;
  align-items: center;
  transition: background 0.5s var(--ease), height 0.5s var(--ease),
              border-color 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  height: 70px;
  background: rgba(8, 8, 10, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: min(100% - 2.5rem, 1600px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  transition: background 0.45s var(--ease), color 0.45s var(--ease),
              transform 0.6s var(--ease);
}
.logo:hover .logo-mark {
  background: var(--gold);
  color: var(--ink);
  transform: rotate(90deg);
}
.logo-text { line-height: 1.15; }
.logo-name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: 0.06em;
  color: var(--text);
}
.logo-sub {
  font-size: 0.55rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}
.nav-links a {
  position: relative;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.35s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta { display: none; }
@media (min-width: 1180px) { .nav-cta { display: inline-flex; } }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 950;
}
.burger span {
  display: block;
  height: 1.5px;
  width: 26px;
  background: var(--text);
  transition: transform 0.45s var(--ease), opacity 0.3s var(--ease),
              width 0.45s var(--ease);
}
.burger span:nth-child(2) { width: 18px; margin-left: auto; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); width: 26px; }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 940;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  clip-path: circle(0% at calc(100% - 42px) 42px);
  transition: clip-path 0.75s var(--ease);
}
.mobile-menu.open { clip-path: circle(150% at calc(100% - 42px) 42px); }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  color: var(--text);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s;
}
.mobile-menu.open a { opacity: 1; transform: translateY(0); }
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .mm-contact {
  margin-top: 2rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .burger { display: flex; }
}

/* ==========================================================================
   10. HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-bg {
  position: absolute;
  inset: -8% 0 0 0;
  height: 116%;
  z-index: 0;
  will-change: transform;
}
.hero-bg img,
.hero-bg .img-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slowZoom 22s var(--ease-in-out) infinite alternate;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(8,8,10,0.94) 0%, rgba(8,8,10,0.72) 45%, rgba(8,8,10,0.35) 100%),
    linear-gradient(to top, var(--ink) 2%, transparent 55%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, 1600px);
  margin-inline: auto;
  padding: 4rem 0;
}
.hero-title { max-width: 15ch; margin-bottom: 1.75rem; }
.hero-sub { max-width: 52ch; margin-bottom: 2.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Line-by-line reveal for hero headline */
.reveal-line {
  display: block;
  overflow: hidden;
}
.reveal-line > span {
  display: block;
  transform: translateY(110%);
  animation: lineUp 1.1s var(--ease) forwards;
}
.reveal-line:nth-child(1) > span { animation-delay: 0.35s; }
.reveal-line:nth-child(2) > span { animation-delay: 0.5s; }
.reveal-line:nth-child(3) > span { animation-delay: 0.65s; }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.scroll-cue .bar {
  width: 1px;
  height: 56px;
  background: linear-gradient(var(--gold), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue .bar::after {
  content: '';
  position: absolute;
  top: -56px;
  left: 0;
  width: 100%;
  height: 56px;
  background: var(--gold-soft);
  animation: scrollDot 2.2s var(--ease-in-out) infinite;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: calc(var(--nav-h) + 4rem) 0 4.5rem;
}
.page-hero .hero-bg { inset: -6% 0 0 0; height: 112%; }
.page-hero .hero-overlay {
  background:
    linear-gradient(to top, var(--ink) 4%, rgba(8,8,10,0.55) 55%, rgba(8,8,10,0.75) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.breadcrumb {
  display: flex;
  gap: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 1.4rem;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--gold); }

/* Image placeholder fallback — shows until real photos are dropped in */
.img-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(120% 120% at 20% 10%, #2a2a33 0%, #101014 55%, #08080A 100%);
  color: var(--text-dim);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  position: relative;
}
.img-fallback::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.4;
}
.img-fallback span { position: relative; z-index: 1; padding: 0 1rem; }

/* ==========================================================================
   11. SECTION HEADER
   ========================================================================== */
.section-head { margin-bottom: 3.5rem; }
.section-head.center { text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { margin-bottom: 1.1rem; }
.section-head p { max-width: 62ch; }
.section-head.center p { margin-inline: auto; }

.split-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Big watermark number/word behind sections */
.watermark {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(8rem, 22vw, 20rem);
  line-height: 1;
  color: rgba(255,255,255,0.022);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ==========================================================================
   12. CARDS
   ========================================================================== */

/* --- Project card --- */
.project-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.5s var(--ease), transform 0.6s var(--ease),
              box-shadow 0.6s var(--ease);
}
.project-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.9);
}
.project-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.project-media img,
.project-media .img-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter 0.7s var(--ease);
}
.project-card:hover .project-media img,
.project-card:hover .project-media .img-fallback {
  transform: scale(1.08);
  filter: brightness(0.75);
}
.project-status {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.35rem 0.9rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(8,8,10,0.72);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  color: var(--gold);
  border-radius: 100px;
}
.project-status.completed { color: #7ED6A5; border-color: rgba(126,214,165,0.35); }
.project-status.ongoing   { color: var(--gold); }
.project-status.upcoming  { color: #8AB4F8; border-color: rgba(138,180,248,0.35); }

.project-body { padding: 1.6rem 1.7rem 1.9rem; }
.project-loc {
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.project-body h3 { margin-bottom: 0.6rem; }
.project-body p { font-size: 0.92rem; }
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 1.3rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}
.project-meta div { line-height: 1.3; }
.project-meta .k {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}
.project-meta .v { font-size: 0.9rem; color: var(--text); }

/* Featured wide project card */
.project-card.wide { grid-column: span 2; }
.project-card.wide .project-media { aspect-ratio: 16 / 9; }

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: 0.65rem 1.5rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.4s var(--ease);
}
.filter-btn:hover { border-color: var(--line-strong); color: var(--text); }
.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.filter-hidden {
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

/* --- Service card --- */
.service-card {
  position: relative;
  padding: 2.6rem 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.6s var(--ease), border-color 0.5s var(--ease),
              background 0.5s var(--ease);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.service-card:hover::before { transform: scaleX(1); }
.service-num {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: rgba(212,175,55,0.16);
  margin-bottom: 1.2rem;
  transition: color 0.5s var(--ease);
}
.service-card:hover .service-num { color: rgba(212,175,55,0.4); }
.service-card h3 { margin-bottom: 0.8rem; }
.service-card p { font-size: 0.93rem; }
.service-list {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.55rem;
}
.service-list li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  background: var(--gold);
}

/* --- Value card (About) --- */
.value-card {
  padding: 2.2rem 1.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), transparent);
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.value-card:hover { border-color: var(--line-strong); transform: translateY(-6px); }
.value-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
  margin-bottom: 1.4rem;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
.value-card:hover .value-icon { background: var(--gold); color: var(--ink); }
.value-card h4 { margin-bottom: 0.6rem; }
.value-card p { font-size: 0.9rem; }

/* --- Blog card --- */
.blog-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.6s var(--ease), border-color 0.5s var(--ease);
}
.blog-card:hover { transform: translateY(-8px); border-color: var(--line-strong); }
.blog-media { aspect-ratio: 16/10; overflow: hidden; }
.blog-media img,
.blog-media .img-fallback {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.blog-card:hover .blog-media img,
.blog-card:hover .blog-media .img-fallback { transform: scale(1.07); }
.blog-body { padding: 1.6rem 1.7rem 1.9rem; }
.blog-tag {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.blog-body h3 { font-size: 1.35rem; margin-bottom: 0.7rem; }
.blog-body p { font-size: 0.9rem; }
.blog-date {
  margin-top: 1.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

/* --- Image + text split block --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
}
.split-media img,
.split-media .img-fallback {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.split-media:hover img,
.split-media:hover .img-fallback { transform: scale(1.05); }
.split-media::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(212,175,55,0.28);
  pointer-events: none;
}
.split-media.tall { aspect-ratio: 3/4; }
.split-media.wide { aspect-ratio: 4/3; }

/* Floating badge over image */
.float-badge {
  position: absolute;
  right: -22px;
  bottom: 40px;
  z-index: 3;
  padding: 1.6rem 1.8rem;
  background: var(--gold);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 24px 50px -22px rgba(0,0,0,0.9);
  text-align: center;
}
.float-badge .n {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  display: block;
}
.float-badge .l {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* ==========================================================================
   13. STATS & COUNTERS
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, var(--surface), transparent);
}
.stat {
  padding: 2.6rem 1.6rem;
  text-align: center;
  border-right: 1px solid var(--line);
  transition: background 0.5s var(--ease);
}
.stat:last-child { border-right: 0; }
.stat:hover { background: rgba(212,175,55,0.05); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.4vw, 3.9rem);
  line-height: 1;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.stat-label {
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ==========================================================================
   14. TIMELINE
   ========================================================================== */
.timeline { position: relative; padding-left: 2.6rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(var(--gold), var(--line), transparent);
}
.tl-item {
  position: relative;
  padding-bottom: 3rem;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -2.6rem;
  top: 0.5rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--ink);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.tl-item:hover::before {
  background: var(--gold);
  box-shadow: 0 0 0 6px var(--gold-glow);
}
.tl-year {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.tl-item h4 { margin-bottom: 0.5rem; }
.tl-item p { font-size: 0.92rem; }

/* ==========================================================================
   15. TEAM
   ========================================================================== */
.team-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.6s var(--ease), border-color 0.5s var(--ease);
}
.team-card:hover { transform: translateY(-8px); border-color: var(--line-strong); }
.team-media { aspect-ratio: 3/4; overflow: hidden; position: relative; }
.team-media img,
.team-media .img-fallback {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.35);
  transition: transform 1s var(--ease), filter 0.7s var(--ease);
}
.team-card:hover .team-media img,
.team-card:hover .team-media .img-fallback {
  transform: scale(1.06);
  filter: grayscale(0);
}
.team-body { padding: 1.5rem 1.6rem 1.8rem; }
.team-body h3 { margin-bottom: 0.25rem; }
.team-role {
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.team-body p { font-size: 0.9rem; }
.team-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.team-social a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-muted);
  transition: all 0.4s var(--ease);
}
.team-social a:hover {
  background: var(--gold); color: var(--ink); border-color: var(--gold);
}

/* Leadership feature block */
.leader {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: center;
}
.leader.reverse .leader-media { order: 2; }
.leader-media {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius);
}
.leader-media img,
.leader-media .img-fallback { width:100%; height:100%; object-fit: cover; }
.leader-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,10,0.6), transparent 45%);
}
.leader-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.5;
  color: var(--text);
  padding-left: 1.6rem;
  border-left: 2px solid var(--gold);
  margin: 1.8rem 0;
}

/* ==========================================================================
   16. FAMILY TREE
   ========================================================================== */
.tree-wrap {
  position: relative;
  overflow-x: auto;
  padding: 2rem 0 3rem;
  -webkit-overflow-scrolling: touch;
}
.tree {
  position: relative;
  min-width: 940px;
  margin-inline: auto;
  width: fit-content;
}
.tree-gen {
  position: relative;
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: 3.4rem 0;
}
.tree-gen-label {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

/* Couple grouping with a joining bar */
.couple {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 2.4rem;
}
.couple::before {
  content: '';
  position: absolute;
  top: 62px;
  left: 25%;
  right: 25%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
/* The founder's portrait is larger, so the marriage bar sits slightly lower */
.couple:has(.founder)::before { top: 74px; }

/* Node */
.node {
  position: relative;
  z-index: 2;
  width: 172px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.5s var(--ease);
}
.node:hover { transform: translateY(-8px); }

.node-photo {
  position: relative;
  width: 124px;
  height: 124px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--line);
  background: var(--surface);
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.node:hover .node-photo,
.node.is-open .node-photo {
  border-color: var(--gold);
  box-shadow: 0 0 0 6px var(--gold-glow), 0 18px 34px -18px rgba(0,0,0,0.9);
}
.node-photo img,
.node-photo .img-fallback {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.4);
  transition: transform 0.8s var(--ease), filter 0.6s var(--ease);
}
.node:hover .node-photo img,
.node:hover .node-photo .img-fallback { transform: scale(1.08); filter: grayscale(0); }
.node-photo .img-fallback {
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: 0.05em;
  color: var(--gold);
  text-transform: none;
}
.node-photo .img-fallback::after { background-size: 24px 24px; }

.node-name {
  font-family: var(--font-display);
  font-size: 1.16rem;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.node-role {
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.node-hint {
  margin-top: 0.5rem;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.node:hover .node-hint { opacity: 1; }

/* Founder highlight */
.node.founder .node-photo {
  width: 148px; height: 148px;
  border-color: var(--gold);
}
.node.founder .node-photo::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.3);
  animation: pulseRing 3.2s var(--ease-in-out) infinite;
}
.node.founder .node-name { font-size: 1.35rem; }

/* SVG connector layer */
.tree-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.tree-lines path {
  fill: none;
  stroke: rgba(212,175,55,0.42);
  stroke-width: 1.2;
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
}
.tree-lines.drawn path {
  animation: drawLine 1.4s var(--ease) forwards;
}
.tree-lines.drawn path:nth-child(2) { animation-delay: 0.12s; }
.tree-lines.drawn path:nth-child(3) { animation-delay: 0.24s; }
.tree-lines.drawn path:nth-child(4) { animation-delay: 0.36s; }
.tree-lines.drawn path:nth-child(5) { animation-delay: 0.48s; }
.tree-lines.drawn path:nth-child(6) { animation-delay: 0.60s; }

/* Bio panel */
.bio-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(460px, 100%);
  height: 100%;
  z-index: 960;
  background: var(--ink-2);
  border-left: 1px solid var(--line-strong);
  transform: translateX(100%);
  transition: transform 0.7s var(--ease);
  overflow-y: auto;
  padding: 3.4rem 2.6rem;
}
.bio-panel.open { transform: translateX(0); }
.bio-backdrop {
  position: fixed;
  inset: 0;
  z-index: 955;
  background: rgba(0,0,0,0.68);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.bio-backdrop.open { opacity: 1; visibility: visible; }
.bio-close {
  position: absolute;
  top: 1.6rem; right: 1.8rem;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.4s var(--ease);
}
.bio-close:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.bio-photo {
  width: 140px; height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  margin-bottom: 1.6rem;
}
.bio-photo img,
.bio-photo .img-fallback { width:100%; height:100%; object-fit: cover; }
.bio-photo .img-fallback { font-family: var(--font-display); font-size: 2rem; color: var(--gold); }
#bio-name { margin-bottom: 0.4rem; }
#bio-role {
  font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.6rem;
}
#bio-text { font-size: 0.95rem; }
.bio-facts {
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
}
.bio-facts div .k {
  display: block;
  font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 0.2rem;
}
.bio-facts div .v { color: var(--text); font-size: 0.95rem; }

/* Legend */
.tree-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.8rem;
  margin-top: 2rem;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.tree-legend span { display: inline-flex; align-items: center; gap: 0.55rem; }
.tree-legend i {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid var(--gold); display: inline-block;
}
.tree-legend i.solid { background: var(--gold); }

/* ==========================================================================
   17. TESTIMONIALS
   ========================================================================== */
.tst-wrap { position: relative; max-width: 900px; margin-inline: auto; text-align: center; }
.tst-slide {
  display: none;
  animation: fadeUp 0.8s var(--ease) both;
}
.tst-slide.active { display: block; }
.tst-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 2.15rem);
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 2rem;
}
.tst-author { font-size: 0.95rem; color: var(--gold); }
.tst-meta { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); }
.tst-dots { display: flex; justify-content: center; gap: 0.6rem; margin-top: 2.4rem; }
.tst-dot {
  width: 34px; height: 2px;
  background: var(--line);
  cursor: pointer;
  transition: background 0.4s var(--ease);
}
.tst-dot.active { background: var(--gold); }

/* ==========================================================================
   18. MARQUEE
   ========================================================================== */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.9rem 0;
  background: var(--ink-2);
}
.marquee-track {
  display: flex;
  gap: 3.4rem;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 3.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  color: var(--text-dim);
  white-space: nowrap;
}
.marquee-item i {
  width: 7px; height: 7px;
  transform: rotate(45deg);
  background: var(--gold);
  flex-shrink: 0;
}

/* ==========================================================================
   19. CONTACT & FORMS
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4.5rem;
}
.contact-item {
  display: flex;
  gap: 1.2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-item:last-child { border-bottom: 0; }
.contact-ico {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
  transition: background 0.45s var(--ease), color 0.45s var(--ease);
}
.contact-item:hover .contact-ico { background: var(--gold); color: var(--ink); }
.contact-item .k {
  font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 0.25rem;
}
.contact-item .v { color: var(--text); font-size: 1rem; line-height: 1.5; }
.contact-item .v a:hover { color: var(--gold); }

.form-card {
  padding: 2.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.field { position: relative; margin-bottom: 1.6rem; }
.field label {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.95rem 1rem;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.field select { cursor: pointer; }
.field select option { background: var(--ink); }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-dim); }
.field.error input,
.field.error textarea,
.field.error select { border-color: #E06C6C; }
.field .err {
  display: none;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: #E06C6C;
}
.field.error .err { display: block; }

.form-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.form-success {
  display: none;
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(126,214,165,0.4);
  border-radius: var(--radius);
  background: rgba(126,214,165,0.07);
  color: #7ED6A5;
  font-size: 0.9rem;
}
.form-success.show { display: block; animation: fadeUp 0.5s var(--ease) both; }

.map-embed {
  width: 100%;
  aspect-ratio: 21/9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  filter: grayscale(1) invert(0.92) contrast(0.86);
  transition: filter 0.7s var(--ease);
}
.map-embed:hover { filter: grayscale(0.2) invert(0.9) contrast(0.9); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(160deg, var(--surface), var(--ink));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band::before,
.cta-band::after {
  content: '';
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow), transparent 68%);
  filter: blur(30px);
}
.cta-band::before { top: -220px; left: -140px; }
.cta-band::after  { bottom: -240px; right: -140px; }
.cta-band .container { position: relative; z-index: 2; }

/* ==========================================================================
   20. FOOTER
   ========================================================================== */
.footer {
  background: var(--ink-2);
  padding: 5rem 0 0;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}
.footer h5 {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.footer-links { display: grid; gap: 0.75rem; }
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.35s var(--ease), padding-left 0.35s var(--ease);
}
.footer-links a:hover { color: var(--gold); padding-left: 6px; }
.footer p { font-size: 0.9rem; }
.footer-socials { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.footer-socials a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-muted);
  transition: all 0.4s var(--ease);
}
.footer-socials a:hover {
  background: var(--gold); color: var(--ink);
  border-color: var(--gold); transform: translateY(-3px);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--text-dim);
}
.footer-bottom a:hover { color: var(--gold); }

/* Back to top */
#to-top {
  position: fixed;
  right: 1.8rem; bottom: 1.8rem;
  z-index: 890;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(8,8,10,0.8);
  backdrop-filter: blur(8px);
  color: var(--gold);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all 0.5s var(--ease);
}
#to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#to-top:hover { background: var(--gold); color: var(--ink); }

/* ==========================================================================
   21. LIGHTBOX
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 980;
  display: grid;
  place-items: center;
  padding: 4vw;
  background: rgba(4,4,6,0.94);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img,
.lightbox .img-fallback {
  max-width: 100%;
  max-height: 84vh;
  width: auto;
  object-fit: contain;
  border: 1px solid var(--line-strong);
  animation: zoomIn 0.5s var(--ease) both;
}
.lightbox .img-fallback { width: min(80vw, 900px); height: 60vh; }
.lightbox-cap {
  position: absolute;
  bottom: 5vh;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.lightbox-close {
  position: absolute;
  top: 2.2rem; right: 2.4rem;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  transition: all 0.4s var(--ease);
}
.lightbox-close:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* Gallery strip */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.gallery-item img,
.gallery-item .img-fallback {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
}
.gallery-item:hover img,
.gallery-item:hover .img-fallback { transform: scale(1.1); filter: brightness(0.7); }
.gallery-item::after {
  content: '+';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 200;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item.tall { grid-row: span 2; aspect-ratio: 1/2; }

/* ==========================================================================
   22. SCROLL REVEAL
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: translateY(0); }

[data-reveal="left"]  { transform: translateX(-48px); }
[data-reveal="right"] { transform: translateX(48px); }
[data-reveal="left"].in,
[data-reveal="right"].in { transform: translateX(0); }

[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal="scale"].in { transform: scale(1); }

[data-reveal="mask"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--ease);
}
[data-reveal="mask"].in { clip-path: inset(0 0 0% 0); }

/* Stagger children */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
[data-stagger].in > * { opacity: 1; transform: translateY(0); }
[data-stagger].in > *:nth-child(1) { transition-delay: 0.05s; }
[data-stagger].in > *:nth-child(2) { transition-delay: 0.15s; }
[data-stagger].in > *:nth-child(3) { transition-delay: 0.25s; }
[data-stagger].in > *:nth-child(4) { transition-delay: 0.35s; }
[data-stagger].in > *:nth-child(5) { transition-delay: 0.45s; }
[data-stagger].in > *:nth-child(6) { transition-delay: 0.55s; }
[data-stagger].in > *:nth-child(7) { transition-delay: 0.65s; }
[data-stagger].in > *:nth-child(8) { transition-delay: 0.75s; }

/* ==========================================================================
   23. KEYFRAMES
   ========================================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lineUp {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}
@keyframes slowZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}
@keyframes scrollDot {
  0%   { top: -56px; }
  100% { top: 56px; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes pulseRing {
  0%   { transform: scale(1);    opacity: 0.9; }
  70%  { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}
@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   24. RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  :root { --space-xl: 5rem; --nav-h: 74px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .leader, .contact-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .split.reverse .split-media,
  .leader.reverse .leader-media { order: 0; }
  .split-media, .leader-media { aspect-ratio: 4/3; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .project-card.wide { grid-column: span 1; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .float-badge { right: 12px; bottom: 12px; padding: 1.1rem 1.3rem; }
  .float-badge .n { font-size: 2rem; }
}

@media (max-width: 720px) {
  :root { --space-xl: 4rem; --space-lg: 3rem; }
  body { font-size: 15px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 1.8rem 1.4rem; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.tall { grid-row: span 1; aspect-ratio: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { min-height: 92vh; }
  .page-hero { min-height: 52vh; }
  .bio-panel { padding: 3rem 1.6rem; }
  .marquee-item { font-size: 1.35rem; gap: 2rem; }
  .marquee-track { gap: 2rem; }
  #to-top { right: 1rem; bottom: 1rem; width: 42px; height: 42px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], [data-stagger] > * { opacity: 1 !important; transform: none !important; }
  [data-reveal="mask"] { clip-path: none !important; }
}

/* Print */
@media print {
  .nav, .footer, #to-top, #preloader, .cursor-dot, .cursor-ring,
  #scroll-progress, .scroll-cue { display: none !important; }
  body { background: #fff; color: #000; }
}
