/* ---------- ROOT + THEME (Light Mode Only) ---------- */

:root {
  --bg: #f8f9fa;
  --bg-alt: #ffffff;
  --bg-soft: #f0f0f5;
  --text: #14151b;
  --text-light: #ffffff;
  --muted: #55586b;
  --accent: #d4af37;
  --accent-soft: rgba(212, 175, 55, 0.15);
  --border-soft: #d6d7e2;
  /* Multi-layer shadows for richer depth */
  --shadow-soft:
    0 1px 2px rgba(0,0,0,0.04),
    0 4px 12px rgba(0,0,0,0.06),
    0 16px 40px rgba(0,0,0,0.08),
    0 2px 8px rgba(212,175,55,0.06);
  --shadow-strong:
    0 2px 4px rgba(0,0,0,0.05),
    0 8px 20px rgba(0,0,0,0.10),
    0 24px 56px rgba(0,0,0,0.14),
    0 4px 16px rgba(212,175,55,0.09);
  --shadow-card:
    0 1px 3px rgba(0,0,0,0.04),
    0 6px 18px rgba(0,0,0,0.07),
    0 2px 6px rgba(212,175,55,0.05);
  --shadow-hover:
    0 4px 8px rgba(0,0,0,0.06),
    0 16px 40px rgba(0,0,0,0.14),
    0 32px 64px rgba(0,0,0,0.10),
    0 0 0 1px rgba(212,175,55,0.18),
    0 8px 24px rgba(212,175,55,0.10);
}

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

img,
svg,
canvas {
  max-width: 100%;
}

body.page {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f0f0f5 100%);
  color: var(--text);
  overflow-x: hidden;
}

/* ---------- FLOATING WHATSAPP BUTTON ---------- */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #25d366;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  z-index: 11000;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  background: #20bd5a;
}

.whatsapp-float:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

.disclaimer-modal:not(.hidden) ~ .whatsapp-float {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 768px) {
  .whatsapp-float {
    right: 16px !important;
    bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    width: 54px !important;
    height: 54px !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 99999 !important;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* page fade-in */
.page-fade {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: #fff;
  opacity: 1;
  z-index: 9999;
  animation: pageFade 0.9s ease forwards;
}
@keyframes pageFade {
  to { opacity: 0; }
}

/* ---------- ACCESSIBILITY ---------- */

/* Skip to main content link */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: #14151b;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  z-index: 10000;
  border-radius: 0 0 4px 0;
}

.skip-to-main:focus {
  top: 0;
}

/* ---------- TYPOGRAPHY ---------- */

h1, h2, h3, h4 {
  font-family: "Playfair Display", serif;
  margin: 0;
}

p {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}

.section {
  padding: 80px min(5vw, 80px);
}

.section-title {
  font-size: clamp(2.2rem, 3vw, 2.7rem);
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* animated gold stroke under headings */
.stroke-gold {
  position: relative;
}
.stroke-gold::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  background-size: 200% 100%;
  animation: strokeMove 2.8s infinite;
}
@keyframes strokeMove {
  0% { background-position: 200% 0; opacity: 0; }
  20% { opacity: 1; }
  80% { background-position: 0 0; opacity: 1; }
  100% { opacity: 0; }
}

.section-intro {
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
}

/* ---------- NAVBAR ---------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px min(5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.nav-logo {
  height: 42px;
  object-fit: contain;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.92rem;
}

.nav-right a {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
  position: relative;
}
.nav-right a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav-right a:hover::after {
  width: 100%;
}

/* Dropdown styles - hover based */
.nav-dropdown {
  position: relative;
  display: inline-block;
  height: fit-content;
}

.nav-dropdown-toggle {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.nav-dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

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

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 1001;
  padding: 12px 0;
  pointer-events: none;
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
  z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-menu a {
  display: block;
  padding: 14px 24px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.nav-dropdown-menu a:first-child {
  border-radius: 8px 8px 0 0;
}

.nav-dropdown-menu a:last-child {
  border-radius: 0 0 8px 8px;
}

.nav-dropdown-menu a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}


/* ---------- HERO ---------- */

.nav-dropdown-menu a:last-child {
  border-radius: 0 0 8px 8px;
}

.nav-dropdown-menu a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}


/* ---------- HERO ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  padding: 110px min(5vw, 80px) 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--text-light);
  background-image: url("../img/about-hero.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,15,0.92) 0%, rgba(10,10,15,0.7) 50%, rgba(10,10,15,0.85) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
  pointer-events: none;
}

.hero h1 {
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-kicker {
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}

.hero-body {
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.hero-locations {
  color: rgba(255,255,255,0.8);
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.hero-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(24px, 8vw, 140px);
  width: min(100%, 1280px);
  margin: 0 auto;
  z-index: 2;
}

.hero-text {
  flex: 1 1 560px;
  min-width: 0;
  max-width: 600px;
  overflow-wrap: anywhere;
}

.hero-founder {
  flex: 0 1 380px;
  margin-left: auto;
}

/* Hero background video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  z-index: 0;
  pointer-events: none;
}

.hero-gif-bg {
  background-image: url("/assets/hero.gif");
  background-size: cover;
  background-position: center 32%;
  background-repeat: no-repeat;
}

.hero-video-play-hint {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 10px 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.hero-video-play-hint.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .hero-video {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background-color: #000;
    transform: none;
  }

  .hero-gif-bg {
    background-size: 185%;
    background-position: center 65%;
  }

  .hero-video-play-hint {
    bottom: 16px;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    padding: 9px 14px;
  }

  /* Keep the hero background image visible as fallback if video hasn't loaded */
  .hero {
    background-image: url("../img/about-hero.jpg");
    background-size: cover;
    background-position: center;
  }
}

.hero-kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2.8rem, 4vw, 3.4rem);
}

.hero-brand {
  display: inline-block;
  white-space: nowrap;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero-sub {
  display: block;
  font-size: 1.15rem;
  margin-top: 10px;
  font-weight: 300;
  min-height: 1.6em;
}

.hero-body {
  margin-top: 16px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero-locations {
  margin-top: 18px;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #ffffff;
}

.founder-info {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* founder card */
.hero-founder {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.founder-mobile-section {
  display: none;
}

.founder-card {
  background: rgba(255,255,255,0.95);
  border-radius: 22px;
  border: 1px solid rgba(212,175,55,0.6);
  padding: 16px;
  display: grid;
  grid-template-columns: 110px auto;
  gap: 14px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-strong);
  transform-style: preserve-3d;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.founder-card h3,
.founder-card p {
  color: var(--text);
}
.founder-card:hover {
  transform: translateY(-6px) rotateX(6deg) rotateY(-6deg);
  box-shadow: 0 28px 60px rgba(0,0,0,0.25);
}

.founder-img-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  position: relative;
  width: 110px;
  height: 110px;
}

.founder-card-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.founder-card-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.3);
  object-position: center bottom;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.founder-card-slide.active {
  opacity: 1;
}

.founder-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.3);
  object-position: center bottom;
}

.founder-info h3 {
  margin-bottom: 4px;
}
.founder-info p {
  margin-bottom: 10px;
}

.link-button {
  border: none;
  background: none;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

.link-button:hover {
  transform: translateX(4px);
  color: #c4a030;
}

.founder-btn {
  font-size: 0.88rem;
  padding: 11px 22px;
  background: radial-gradient(circle at top left, #f1d074, var(--accent));
  color: #140f02;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 12px 35px rgba(212,175,55,0.45);
  transition: all 0.3s ease;
}

.founder-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 45px rgba(212,175,55,0.6);
}

/* ---------- BUTTONS ---------- */

.btn {
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 0.88rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.btn-gold {
  background: radial-gradient(circle at top left, #f1d074, var(--accent));
  color: #140f02;
  box-shadow: 0 12px 35px rgba(212,175,55,0.45);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 45px rgba(212,175,55,0.6);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255,255,255,0.4);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
}

/* Practice Areas buttons in black */
.practice .btn-outline {
  color: #000;
  border-color: #000;
}
.practice .btn-outline:hover {
  background: #000;
  color: #fff;
}

/* ---------- BRAND CAROUSEL ---------- */

.brands {
  background: var(--bg-alt);
}

.carousel {
  overflow: hidden;
  position: relative;
}

.carousel::before,
.carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.carousel::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-alt), transparent);
}

.carousel::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-alt), transparent);
}

.carousel-track {
  display: flex;
  gap: 60px;
  padding: 20px 0;
  animation: scrollBrands 45s linear infinite;
  width: max-content;
  will-change: transform;
}

.carousel-track.paused {
  animation-play-state: paused;
}

.carousel img {
  height: 120px;
  width: auto;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: 0.85;
  transition: filter 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.carousel img:hover,
.carousel img.active {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-6px) scale(1.05);
}

/* Touch device specific styles */
@media (hover: none) {
  .carousel img {
    filter: grayscale(10%);
    opacity: 0.9;
  }
  
  .carousel img.active {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes scrollBrands {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- CARDS / 3D HOVER ---------- */

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

.practice .card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
}

.practice .depth {
  background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.25), rgba(245, 240, 235, 0.95));
}

.practice .card .btn-outline {
  margin-top: auto;
  align-self: flex-end;
  padding: 6px 12px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.depth {
  background: radial-gradient(circle at top left, var(--accent-soft), var(--bg-alt));
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  padding: 22px 22px 24px;
  transform: translateY(0) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  font-weight: 300;
}
.depth:hover {
  transform: translateY(-10px) rotateX(6deg) rotateY(-5deg);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: var(--shadow-hover);
}

/* On touch devices, disable 3D hover that causes layout issues while scrolling */
@media (hover: none) {
  .depth:hover {
    transform: none;
  }
  .linkedin-grid .depth:hover {
    transform: none;
    box-shadow: var(--shadow-soft);
  }
}

/* ---------- FOUNDER SECTION ---------- */
.founder-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.founder-slideshow {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

.founder-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.founder-slide.active {
  opacity: 1;
}

.founder-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.founder-bio {
  padding: 32px;
}

.founder-bio h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: var(--text);
}

.founder-bio .founder-title {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 500;
}

.founder-bio p {
  margin-bottom: 16px;
  line-height: 1.8;
  color: var(--muted);
}

.founder-bio p:last-child {
  margin-bottom: 0;
}

/* ---------- SECTION BACKGROUNDS ---------- */

.practice {
  position: relative;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  padding-top: 140px;
}

.practice::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/practice_areas.png');
  background-size: 40%;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.practice > * {
  position: relative;
  z-index: 1;
}

.cases {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: url("../img/bg-2.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-light);
}

.cases::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,21,27,0.9) 0%, rgba(20,21,27,0.75) 100%);
  z-index: 0;
}

.cases > * {
  position: relative;
  z-index: 1;
}

.cases .section-title,
.cases .case-card h3,
.cases .case-card p,
.cases .link-button {
  color: var(--text-light);
}

.cases .case-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
}

.cases .case-card:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.cases .case-tag {
  background: rgba(212,175,55,0.3);
  color: var(--text-light);
}

.testimonials {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  overflow: hidden;
}

.team {
  position: relative;
  background-image: url("../img/bg-3.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-light);
}

.team::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,21,27,0.88) 0%, rgba(20,21,27,0.7) 100%);
  z-index: 0;
}

.team > * {
  position: relative;
  z-index: 1;
}

.team .section-title,
.team .section-intro {
  color: var(--text-light);
}

.team-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
}

.team-card h3,
.team-card p {
  color: var(--text-light);
}

.team-card:hover {
  border-color: var(--accent);
}

/* ---------- CASE STUDIES ---------- */

.cases-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.case-card h3 {
  margin-bottom: 10px;
}
.case-card p {
  margin-bottom: 12px;
}

.case-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 10px;
}

/* ---------- TESTIMONIALS ---------- */

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-alt);
  border-radius: 24px;
  padding: 40px 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border: 1px solid var(--border-soft);
  overflow: hidden;
}

.testimonial-inner {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial {
  min-width: 100%;
  padding: 20px 40px;
  opacity: 1;
}

.testimonial p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text);
  font-style: italic;
  position: relative;
}

.testimonial p::before {
  content: '"';
  position: absolute;
  left: -20px;
  top: -10px;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
  font-family: "Playfair Display", serif;
}

.testimonial h4 {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
}

.testimonial-controls {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot:hover {
  background: rgba(212,175,55,0.3);
  transform: scale(1.2);
}

.dot.active {
  background: var(--accent);
  transform: scale(1.1);
}

/* ---------- TEAM ---------- */

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

.team-card {
  text-align: center;
}
.team-photo-wrap {
  width: 110px;
  height: 110px;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 auto 12px;
  border: 2px solid var(--accent);
}
.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- CONTACT ---------- */

.contact {
  background: var(--bg-alt);
  background-image: url('../img/confidential_enquries.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 140px;
}

.contact-inner {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin-top: 16px;
}
.contact-list li {
  margin-bottom: 6px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--bg-soft);
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.9rem;
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* ---------- FOOTER ---------- */

.footer {
  padding: 60px min(5vw, 80px) 32px;
  background: linear-gradient(135deg, #0f1014 0%, #1a1b20 100%);
  color: #f5f5f5;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand {
  flex-shrink: 0;
}

.footer-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
}

.footer-nav {
  display: flex;
  gap: 80px;
  margin-left: auto;
}

.footer-nav-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #d4a574;
  margin-bottom: 20px;
}

.footer-nav-col > a,
.footer-nav-col a[href^="pages"],
.footer-nav-col a[href^="mailto"] {
  display: block !important;
  color: #c5c7d0 !important;
  text-decoration: none !important;
  font-size: 0.9rem !important;
  margin-bottom: 12px !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  padding-left: 0 !important;
  transform: translateX(0) !important;
}

.footer-nav-col > a:hover,
.footer-nav-col a[href^="pages"]:hover,
.footer-nav-col a[href^="mailto"]:hover {
  color: #ffffff !important;
  transform: translateX(8px) !important;
}

.footer-nav-col > a::before,
.footer-nav-col a[href^="pages"]::before,
.footer-nav-col a[href^="mailto"]::before {
  content: '' !important;
  position: absolute !important;
  left: -8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 0 !important;
  height: 1px !important;
  background: linear-gradient(90deg, #d4a574 0%, transparent 100%) !important;
  transition: width 0.3s ease !important;
}

.footer-nav-col > a:hover::before,
.footer-nav-col a[href^="pages"]:hover::before,
.footer-nav-col a[href^="mailto"]:hover::before {
  width: 4px !important;
}

.footer-locations {
  font-size: 0.9rem;
  color: #9ea0ad;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.footer-social {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.footer-social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c5c7d0;
  transition: all 0.3s ease;
  margin-bottom: 0;
  padding-left: 0;
}

.footer-social .social-link::before {
  display: none;
}

.footer-social .social-link:hover {
  color: #d4a574;
  transform: translateY(-2px);
  padding-left: 0;
}

.footer-social .social-link svg {
  transition: all 0.3s ease;
}

.footer-social .social-link:hover svg {
  filter: drop-shadow(0 2px 8px rgba(212, 165, 116, 0.3));
}

.footer-bottom {
  padding-top: 28px;
  text-align: center;
  font-size: 0.8rem;
  color: #7a7c89;
  letter-spacing: 0.05em;
}

/* Footer responsive rules moved to mobile-first section below */

/* ---------- LINKEDIN INSIGHTS ---------- */

.linkedin-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.linkedin-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.linkedin-feed-status {
  max-width: 760px;
  margin: 0 auto 28px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(10, 102, 194, 0.14);
  background: linear-gradient(135deg, rgba(10, 102, 194, 0.06), rgba(212, 175, 55, 0.08));
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

.linkedin-feed-status.is-hidden {
  display: none;
}

.linkedin-feed-status.is-error {
  border-color: rgba(180, 64, 53, 0.18);
  background: linear-gradient(135deg, rgba(180, 64, 53, 0.08), rgba(212, 175, 55, 0.08));
}

/* CSS-only fallback: force LinkedIn cards visible after 2s even if JS fails */
@keyframes linkedin-fallback-show {
  to { opacity: 1; transform: translateY(0); }
}
.linkedin-section .linkedin-card.reveal,
.linkedin-section .linkedin-feed-status.reveal {
  animation: linkedin-fallback-show 0.8s ease 2s forwards;
}
.linkedin-section .reveal.visible {
  animation: none;
  opacity: 1;
  transform: translateY(0);
}

.linkedin-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.linkedin-card:hover {
  border-color: #0a66c2;
}

.linkedin-card:hover .linkedin-icon {
  color: #0a66c2;
}

.linkedin-card:hover .linkedin-read-more {
  color: #0a66c2;
  transform: translateX(4px);
}

.linkedin-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.linkedin-icon {
  color: var(--accent);
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.linkedin-date {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.linkedin-card-title {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  margin: 0;
}

.linkedin-card-excerpt {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.linkedin-card-placeholder {
  cursor: default;
}

.linkedin-card-placeholder:hover {
  border-color: var(--border-soft);
}

.linkedin-card-placeholder:hover .linkedin-icon,
.linkedin-card-placeholder:hover .linkedin-read-more {
  color: var(--accent);
  transform: none;
}

.linkedin-card-media {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(20, 21, 27, 0.08), rgba(212, 175, 55, 0.1));
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.linkedin-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.linkedin-empty-state {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.linkedin-empty-state p {
  margin-top: 12px;
}

.linkedin-read-more {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.linkedin-carousel-scrollbar {
  display: none;
}

@media (max-width: 768px) {
  .linkedin-grid {
    display: flex;
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 16px 16px;
    scrollbar-width: none;  /* hide default scrollbar — custom one below */
    margin: 0 -16px;       /* bleed into section padding for edge-to-edge feel */
  }

  .linkedin-grid::-webkit-scrollbar {
    display: none;
  }

  /* Force each LinkedIn card to be a proper visible card */
  .linkedin-grid .linkedin-card {
    flex: 0 0 82vw;
    max-width: 340px;
    min-width: 260px;
    scroll-snap-align: center;
    /* Ensure card is styled properly */
    background: var(--bg-alt, #ffffff);
    border: 1px solid var(--border-soft, #d6d7e2);
    border-radius: 18px;
    padding: 22px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07), 0 1px 3px rgba(212,175,55,0.08);
    /* Override any reveal hiding */
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }

  .linkedin-grid .linkedin-card-title {
    font-size: 1.05rem;
  }

  .linkedin-grid .linkedin-card-excerpt {
    font-size: 0.85rem;
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }

  .linkedin-empty-state {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: start;
  }

  /* Custom scrollbar indicator */
  .linkedin-carousel-scrollbar {
    display: block;
    position: relative;
    width: min(220px, 52vw);
    height: 4px;
    margin: 14px auto 0;
    border-radius: 999px;
    background: rgba(20, 21, 27, 0.14);
    overflow: hidden;
  }

  .linkedin-carousel-thumb {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 36px;
    border-radius: inherit;
    background: linear-gradient(90deg, #e0bf59, #d4af37);
    transform: translateX(0);
    transition: transform 0.28s ease, width 0.28s ease;
  }
}

/* ---------- MODALS ---------- */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1200;
}
.modal.open {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- DISCLAIMER MODAL ---------- */

.disclaimer-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.disclaimer-modal.hidden {
  display: none;
}

.disclaimer-content {
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 36px 40px 32px;
  background: #fefdfb;
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.4);
}

.disclaimer-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 20px;
  text-align: center;
}

.disclaimer-text {
  margin-bottom: 24px;
  color: var(--text);
  line-height: 1.7;
}

.disclaimer-text p {
  margin-bottom: 16px;
}

.disclaimer-text p:last-child {
  margin-bottom: 0;
}

.disclaimer-text strong {
  font-weight: 600;
  color: var(--text);
}

.disclaimer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}

.disclaimer-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 1;
}

.disclaimer-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--gold);
}

.disclaimer-checkbox span {
  font-size: 0.95rem;
  color: var(--text);
  user-select: none;
}

.disclaimer-footer .btn {
  padding: 10px 28px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.disclaimer-footer .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  /* Mobile optimizations */
  .disclaimer-content {
    padding: 28px 24px 24px;
  }
  
  .disclaimer-content h2 {
    font-size: 1.5rem;
  }
  
  .disclaimer-footer {
    flex-direction: column;
    align-items: stretch;
  }
  
  .disclaimer-footer .btn {
    width: 100%;
  }
}

.modal-content {
  max-width: 540px;
  padding: 26px 26px 24px;
  position: relative;
  background: #fef9f3;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-content p + p {
  margin-top: 10px;
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 12px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ---------- REVEAL ON SCROLL ---------- */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ================================================================
   RESPONSIVE — MOBILE-FIRST ARCHITECTURE
   ================================================================
   Layout philosophy: Base overrides below set every structural
   property to its MOBILE default. Min-width queries then
   progressively enhance for larger viewports.

   Breakpoints (mobile-first → desktop):
   Base  = 0–479px   (mobile portrait — smallest screens)
   sm    = 480px+     (large phones, small landscape)
   md    = 768px+     (tablets)
   lg    = 1024px+    (small desktops, landscape tablets)
   xl    = 1280px+    (large desktops)

   Orientation helpers handle edge-cases for rotated devices.
   ================================================================ */

/* ---------- MOBILE BASE (default state) ---------- */

.section {
  padding: 48px 16px;
}

.section-title {
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  letter-spacing: 0.12em;
}

.section-divider + .section {
  padding-top: 40px;
}

/* Navbar — stacked column on mobile */
.navbar {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: max(8px, env(safe-area-inset-top)) 12px 8px;
  width: 100%;
}

.nav-logo {
  height: 34px;
}

.nav-right {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  justify-content: stretch;
  overflow: visible;
  white-space: normal;
  font-size: 0.74rem;
}

.nav-right a,
.nav-dropdown-toggle {
  display: block;
  width: 100%;
  text-align: center;
  padding: 6px 4px;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

.nav-dropdown {
  width: 100%;
  text-align: center;
}

.nav-dropdown-menu {
  left: 50%;
  right: auto;
  width: min(74vw, 290px);
  min-width: 235px;
  max-width: calc(100vw - 36px);
  border-radius: 14px;
  padding: 8px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
  transform: translateX(-50%) translateY(-10px);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-dropdown-menu a {
  text-align: left;
  white-space: normal;
  padding: 12px 14px;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  border-radius: 10px;
  line-height: 1.35;
}

/* Hero — full-height mobile with stacked inner layout */
#hero.hero {
  padding-top: calc(150px + env(safe-area-inset-top));
}

main > :first-child:not(.hero) {
  margin-top: 104px;
}

.hero {
  min-height: 100svh;
  padding: 118px 14px 40px;
  background-attachment: scroll;
}

.hero-bg {
  background-attachment: scroll;
  background-size: cover;
  filter: none;
}

.hero-inner {
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

.hero-text {
  flex: 1 1 auto;
  max-width: 100%;
}

.hero-founder {
  flex: 0 0 auto;
  width: 100%;
  margin-left: 0;
  justify-content: center;
}

#hero .hero-founder {
  display: none;
}

.founder-mobile-section {
  display: block;
  padding-top: 20px;
  margin-top: 0;
  position: relative;
  z-index: 1;
  background: #0a0a0f;
}

.founder-mobile-section .hero-founder {
  justify-content: center;
}

.hero h1 {
  font-size: clamp(1.9rem, 10vw, 2.7rem);
  line-height: 1.2;
}

.hero-sub {
  font-size: clamp(1rem, 5vw, 1.3rem);
  min-height: 2.1em;
}

.hero-body {
  font-size: 0.9rem;
  max-width: 100%;
}

.hero-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}

.hero-locations {
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  line-height: 1.6;
}

.hero-actions,
.hero-cta {
  width: 100%;
  gap: 12px;
  margin-top: 200px;
}

.hero-actions .btn,
.hero-cta .btn {
  width: 100%;
  text-align: center;
  white-space: normal;
}

/* Buttons — compact on mobile */
.btn {
  padding: 9px 16px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
}

/* Founder card — compact on mobile */
.founder-card {
  grid-template-columns: 68px 1fr;
  padding: 10px;
  gap: 8px;
  width: min(100%, 300px);
  border-radius: 18px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.founder-card:hover,
.founder-card:focus-within,
.founder-card:active {
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.35),
    0 8px 32px rgba(212,175,55,0.3),
    0 20px 56px rgba(212,175,55,0.15);
}

.founder-img-wrap {
  width: 68px;
  height: 68px;
  border-radius: 14px;
}

.founder-info h3 {
  font-size: 1rem;
  line-height: 1.2;
}

.founder-info p {
  margin-bottom: 8px;
  font-size: 0.78rem;
}

.founder-btn {
  font-size: 0.68rem;
  padding: 8px 14px;
  letter-spacing: 0.12em;
}

.founder-card-slide,
.founder-img-wrap img,
.founder-slide img {
  object-position: center 22%;
}

.founder-section {
  grid-template-columns: 1fr;
  gap: 32px;
}

.founder-slideshow {
  height: 300px;
}

/* Cards — single-column stack on mobile */
.cards-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Depth — compact mobile padding */
.depth {
  padding: 18px;
  font-size: 0.85rem;
}

.depth p {
  font-size: 0.85rem;
  line-height: 1.5;
}

.depth h3 {
  font-size: 0.95rem;
}

/* Carousel — smaller logos on mobile with GPU acceleration */
.carousel {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  contain: layout style;
}

.carousel-track {
  gap: 30px;
  padding: 15px 0;
  animation-duration: 35s;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.carousel img {
  height: 80px;
  min-width: 80px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.carousel::before,
.carousel::after {
  width: 40px;
}

/* Contact — single column on mobile */
.contact-inner {
  grid-template-columns: minmax(0, 1fr);
}

/* Practice bg — scroll on mobile for performance */
.practice::before {
  background-attachment: scroll;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

/* Footer — stacked + centred on mobile */
.footer {
  padding: 40px 16px 24px;
}

.footer-top {
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.footer-brand {
  text-align: center;
}

.footer-nav {
  flex-direction: column;
  gap: 32px;
  align-items: center;
  margin-left: 0;
  width: 100%;
}

.footer-nav-col {
  text-align: center;
}

.footer-nav-col a {
  display: block !important;
  margin-left: auto;
  margin-right: auto;
}

.footer-social {
  justify-content: center;
}


/* ==========================================================
   sm: 480px+  (large phones)
   ========================================================== */

@media (min-width: 480px) {
  .section {
    padding: 52px 18px;
  }

  .hero {
    padding: 128px 18px 50px;
    min-height: 96svh;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .hero-sub {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
  }

  .hero-body {
    font-size: 0.95rem;
  }

  .hero-kicker {
    font-size: 0.85rem;
  }

  .hero-locations {
    letter-spacing: 0.12em;
  }

  .btn {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
  }

  .founder-card {
    grid-template-columns: 96px 1fr;
    padding: 14px;
    gap: 12px;
  }

  .founder-img-wrap {
    width: 96px;
    height: 96px;
  }

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

  .founder-slideshow {
    height: 400px;
  }

  .carousel img {
    height: 90px;
  }

  .section-divider + .section {
    padding-top: 48px;
  }
}


/* ==========================================================
   md: 768px+  (tablets)
   ========================================================== */

@media (min-width: 768px) {
  .section {
    padding: 64px min(4vw, 48px);
  }

  .section-title {
    font-size: clamp(2rem, 3vw, 2.7rem);
    letter-spacing: 0.18em;
  }

  .section-divider + .section {
    padding-top: 56px;
  }

  /* Navbar — horizontal row on tablets+ */
  .navbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 14px min(4vw, 40px);
  }

  .nav-logo {
    height: 42px;
  }

  .nav-right {
    display: flex;
    gap: 16px;
    width: auto;
    font-size: 0.92rem;
    white-space: normal;
  }

  .nav-right a,
  .nav-dropdown-toggle {
    display: inline-block;
    width: auto;
    text-align: left;
    padding: 0;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
  }

  .nav-dropdown {
    width: auto;
    text-align: left;
  }

  /* Dropdown — positioned below toggle on desktop */
  .nav-dropdown-menu {
    left: 0;
    right: auto;
    width: auto;
    min-width: 240px;
    max-width: none;
    border-radius: 8px;
    padding: 12px 0;
    border: 1px solid var(--border-soft);
    background: var(--bg-alt);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    backdrop-filter: none;
    transform: translateY(-10px);
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown.active .nav-dropdown-menu {
    transform: translateY(0);
  }

  .nav-dropdown-menu a {
    text-align: left;
    white-space: nowrap;
    padding: 14px 24px;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    border-radius: 0;
    line-height: normal;
  }

  .nav-dropdown-menu a:first-child {
    border-radius: 8px 8px 0 0;
  }

  .nav-dropdown-menu a:last-child {
    border-radius: 0 0 8px 8px;
  }

  /* Hero — taller, wider padding */
  #hero.hero {
    padding-top: 110px;
  }

  main > :first-child:not(.hero) {
    margin-top: 80px;
  }

  .hero {
    min-height: 88svh;
    padding: 110px min(4vw, 48px) 70px;
  }

  #hero .hero-founder {
    display: flex;
  }

  .founder-mobile-section {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 4vw, 3.2rem);
  }

  .hero-sub {
    font-size: 1.15rem;
    min-height: 1.6em;
  }

  .hero-body {
    font-size: 1rem;
    max-width: 540px;
  }

  .hero-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
  }

  .hero-locations {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
  }

  .hero-actions,
  .hero-cta {
    width: auto;
  }

  .hero-actions .btn,
  .hero-cta .btn {
    width: auto;
    white-space: nowrap;
  }

  /* Buttons — full size on tablets+ */
  .btn {
    padding: 11px 22px;
    font-size: 0.88rem;
    letter-spacing: 0.2em;
  }

  /* Founder card — full size on tablets+ */
  .founder-card {
    grid-template-columns: 110px auto;
    padding: 16px;
    gap: 14px;
    width: auto;
  }

  .founder-img-wrap {
    width: 110px;
    height: 110px;
  }

  .founder-img-wrap img {
    transform: scale(0.85);
    object-position: center center;
  }

  .founder-card-slide,
  .founder-slide img {
    object-position: center bottom;
  }

  #founder .founder-slide img[src*="founder-maneet.jpg"] {
    object-position: center 65%;
  }

  .founder-section {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .founder-slideshow {
    height: 500px;
  }

  /* Cards — multi-column grid on tablets+ */
  .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
  }

  /* Depth — standard padding */
  .depth {
    padding: 22px 22px 24px;
    font-size: inherit;
  }

  .depth p {
    font-size: inherit;
    line-height: 1.6;
  }

  .depth h3 {
    font-size: inherit;
  }

  /* Carousel — larger logos */
  .carousel-track {
    gap: 60px;
    padding: 20px 0;
    animation-duration: 45s;
  }

  .carousel img {
    height: 120px;
    min-width: auto;
  }

  .carousel::before,
  .carousel::after {
    width: 100px;
  }

  /* Contact — two-column */
  .contact-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  }

  /* Practice bg — fixed on tablets+ */
  .practice::before {
    background-attachment: fixed;
    background-size: 40%;
    background-position: center;
  }

  /* Footer — horizontal row on tablets+ */
  .footer {
    padding: 60px min(5vw, 80px) 32px;
  }

  .footer-top {
    flex-direction: row;
    align-items: flex-start;
    gap: 60px;
  }

  .footer-brand {
    text-align: left;
  }

  .footer-nav {
    flex-direction: row;
    gap: 60px;
    margin-left: auto;
    width: auto;
    align-items: flex-start;
  }

  .footer-nav-col {
    text-align: left;
  }

  .footer-social {
    justify-content: flex-start;
  }
}


/* ==========================================================
   lg: 1024px+  (small desktops, landscape tablets)
   ========================================================== */

@media (min-width: 1024px) {
  .section {
    padding: 80px min(5vw, 80px);
  }

  .navbar {
    padding: 14px min(5vw, 80px);
  }

  .nav-right {
    gap: 26px;
  }

  .nav-right a,
  .nav-dropdown-toggle {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
  }

  /* Hero — side-by-side layout */
  .hero {
    min-height: 92vh;
    padding: 110px min(5vw, 80px) 80px;
    background-attachment: fixed;
  }

  .hero-bg {
    background-attachment: fixed;
  }

  .hero-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: clamp(24px, 8vw, 140px);
  }

  .hero-text {
    flex: 1 1 560px;
    max-width: 600px;
  }

  .hero-founder {
    flex: 0 1 430px;
    margin-left: auto;
    justify-content: flex-end;
  }

  .founder-card {
    grid-template-columns: 130px 1fr;
    padding: 20px;
    gap: 16px;
  }

  .founder-img-wrap {
    width: 130px;
    height: 130px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 4vw, 3.4rem);
  }

  .hero-locations {
    letter-spacing: 0.3em;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
  }
}


/* ==========================================================
   xl: 1280px+  (large desktops)
   ========================================================== */

@media (min-width: 1280px) {
  .section {
    padding: 80px 80px;
  }

  .footer-nav {
    gap: 80px;
  }
}


/* ==========================================================
   ORIENTATION: Mobile Landscape
   Shorter viewport — compress vertical spacing, fit nav in row
   ========================================================== */

@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 32px;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .hero-body {
    font-size: 0.85rem;
  }

  .hero-kicker {
    font-size: 0.7rem;
    margin-bottom: 6px;
  }

  .hero-actions .btn {
    padding: 8px 14px;
    font-size: 0.72rem;
  }

  .section {
    padding: 36px 16px;
  }

  .founder-card {
    grid-template-columns: 72px 1fr;
    padding: 10px;
    gap: 8px;
  }

  .founder-img-wrap {
    width: 72px;
    height: 72px;
  }

  /* Navbar fits in one row in landscape */
  .navbar {
    flex-direction: row;
    align-items: center;
    padding: 8px 12px;
    gap: 0;
  }

  .nav-right {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: auto;
  }

  .nav-right a,
  .nav-dropdown-toggle {
    font-size: 0.68rem;
    padding: 4px 6px;
    width: auto;
  }

  .nav-dropdown {
    width: auto;
  }

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


/* ==========================================================
   ORIENTATION: Tablet Portrait
   Narrower than landscape — stack hero, scroll nav if needed
   ========================================================== */

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .navbar {
    gap: 10px;
  }

  .nav-right {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .nav-right::-webkit-scrollbar {
    display: none;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-founder {
    width: 100%;
  }

  .founder-card {
    width: min(100%, 520px);
  }
}


/* ==========================================================
   ORIENTATION: Tablet Landscape
   Wider + shorter — hero side-by-side, compact spacing
   ========================================================== */

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .hero {
    min-height: 80vh;
    padding-top: 96px;
  }

  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }

  .hero-text {
    flex: 1 1 55%;
  }

  .hero-founder {
    flex: 0 1 40%;
  }

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

/* ================================================================
   GOLD SECTION DIVIDERS
   Thin ornamental lines with a centred diamond ornament
   ================================================================ */

.section-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 min(5vw, 80px);
  height: 36px;
  overflow: visible;
  z-index: 1;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.5) 25%,
    rgba(212, 175, 55, 0.5) 75%,
    transparent 100%
  );
}

.section-divider-ornament {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.section-divider-ornament i {
  display: block;
  background: var(--accent);
  transform: rotate(45deg);
  border-radius: 1px;
}

.section-divider-ornament i:nth-child(1),
.section-divider-ornament i:nth-child(3) {
  width: 4px;
  height: 4px;
  opacity: 0.45;
}

.section-divider-ornament i:nth-child(2) {
  width: 7px;
  height: 7px;
  opacity: 0.72;
}

/* Dark-background variant (inside dark sections) */
.section-divider.divider-light::before,
.section-divider.divider-light::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.7) 25%,
    rgba(212, 175, 55, 0.7) 75%,
    transparent 100%
  );
}

.section-divider.divider-light .section-divider-ornament i {
  opacity: 0.9;
}

/* Sections that immediately follow a divider get tighter top padding */
.section-divider + .section {
  padding-top: 56px;
}

/* ================================================================
   SMOOTH SECTION TRANSITIONS
   Gradient veils at top & bottom of content sections
   so adjacent sections bleed gracefully into each other
   ================================================================ */

/* Light sections: fade in/out against the off-white page background */
.section-fade {
  position: relative;
  isolation: isolate;
}

.section-fade::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 56px;
  background: linear-gradient(to bottom, rgba(248, 249, 250, 0.7), transparent);
  pointer-events: none;
  z-index: 0;
}

.section-fade::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 56px;
  background: linear-gradient(to top, rgba(248, 249, 250, 0.7), transparent);
  pointer-events: none;
  z-index: 0;
}

/* Ensure child content sits above the fade veils */
.section-fade > * {
  position: relative;
  z-index: 1;
}

/* html-level smooth scroll (applied site-wide) */
html {
  scroll-behavior: smooth;
}

/* ================================================================
   CARD ICONS — MINIMAL STROKE ICONS
   ================================================================ */

.card-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  flex-shrink: 0;
  stroke-width: 1.5px;
  transition: transform 0.35s ease, opacity 0.35s ease;
  opacity: 0.85;
  display: block;
  margin-bottom: 14px;
}

.depth:hover .card-icon {
  transform: translateY(-4px) scale(1.1);
  opacity: 1;
}

/* Practice area cards: flex column so icon → title → desc → btn */
.practice .card,
.card-with-icon {
  display: flex;
  flex-direction: column;
}

/* Why-row cards: icon beside text */
.why-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.why-card .card-icon {
  margin-bottom: 0;
  margin-top: 3px;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.why-card .why-card-body {
  flex: 1;
  min-width: 0;
}

/* ================================================================
   ENHANCED .practice CARD GRADIENT
   ================================================================ */

.practice .depth {
  background: radial-gradient(
    ellipse at top left,
    rgba(212, 175, 55, 0.18) 0%,
    rgba(245, 240, 235, 0.98) 70%
  );
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.practice .depth:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(212, 175, 55, 0.5);
}

/* MINIMAL LINE ICONS FOR CARDS */
.card-icon {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.15) rotate(2deg);
  opacity: 1;
}
