/* ============================================
   DESIGN SYSTEM
   BlocQuant luxury aesthetic × iSynergy identity
   ============================================ */
:root {
  --navy-deep: #0B1A2E;
  --navy-dark: #0F2240;
  --navy-mid: #14305A;
  --navy-brand: #00368F;
  --gold: #B8974B;
  --gold-light: #D4B87A;
  --gold-dim: rgba(184, 151, 75, 0.15);
  --white: #fff;
  --white-90: rgba(255,255,255,.9);
  --white-70: rgba(255,255,255,.7);
  --white-50: rgba(255,255,255,.5);
  --white-20: rgba(255,255,255,.2);
  --white-10: rgba(255,255,255,.1);
  --white-05: rgba(255,255,255,.05);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.45, 0, 0.55, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--navy-deep);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ============================================
   BLOCQUANT-STYLE ANIMATIONS
   ============================================ */

/* Word-by-word hero reveal */
.word { display: inline-block; opacity: 0; transform: translateY(30px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.word.visible { opacity: 1; transform: translateY(0); }

/* Scroll reveal — fade up */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .15s; }
.reveal-delay-2 { transition-delay: .3s; }
.reveal-delay-3 { transition-delay: .45s; }
.reveal-delay-4 { transition-delay: .6s; }
.reveal-delay-5 { transition-delay: .75s; }

/* Line draw animation */
.line-draw { width: 0; transition: width 1.2s var(--ease-out); }
.line-draw.visible { width: 60px; }

/* Fade in from left/right */
.reveal-left { opacity:0; transform: translateX(-40px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal-left.visible { opacity:1; transform: translateX(0); }
.reveal-right { opacity:0; transform: translateX(40px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal-right.visible { opacity:1; transform: translateX(0); }

/* Scale reveal */
.reveal-scale { opacity:0; transform: scale(0.95); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal-scale.visible { opacity:1; transform: scale(1); }

/* Counter animation handled by JS */

/* Page transition */
.page-section { display: none; }
.page-section.active {
  display: block;
  animation: pageIn 0.8s var(--ease-out) forwards;
}
@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================
   NAVIGATION (BlocQuant-style)
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 28px 56px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.6s var(--ease-smooth);
  background: transparent;
}
.nav.scrolled {
  background: rgba(11, 26, 46, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 18px 56px;
  border-bottom: 1px solid var(--white-10);
}
.nav-logo {
  display: inline-block;
  text-decoration: none;
}
.nav-logo img {
  height: 46px; width: auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
  filter: brightness(0) invert(1); /* Converts blue logo to white for dark bg */
}
.nav-logo:hover img { transform: scale(1.03); opacity: 0.9; }
/* Footer logo */
.footer-brand .nav-logo img { height: 40px; }
.footer-brand .nav-logo { margin-bottom: 20px; display: inline-block; }
.footer-brand-text {
  font-size: 14px; color: rgba(255,255,255,.3);
  line-height: 1.7; max-width: 260px; margin-top: 16px;
}

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--white-50); text-decoration: none;
  font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; font-weight: 500;
  transition: color 0.4s ease; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.4s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  padding: 11px 30px !important;
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
  transition: all 0.4s ease !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold) !important; color: var(--navy-deep) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; }
.nav-toggle span { width: 24px; height: 1.5px; background: var(--white); transition: all 0.3s ease; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(11,26,46,.98);
  backdrop-filter: blur(24px);
  z-index: 999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 28px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  color: var(--white); text-decoration: none;
  font-family: var(--font-serif); font-size: 26px;
  transition: color 0.3s ease;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: none; color: var(--white);
  font-size: 32px; cursor: pointer;
}

/* ============================================
   HERO (BlocQuant full-viewport dramatic)
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center; position: relative;
  overflow: hidden; padding: 120px 48px 60px;
}

/* ============================================
   VIDEO BACKGROUND (shared by hero + subpage-hero)
   ============================================ */
.video-bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
.video-bg iframe {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 56.25vw;   /* 16:9 */
  min-height: 100%;
  min-width: 177.78vh; /* 16:9 inverse */
  border: none;
  pointer-events: none;
}
.video-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(11, 26, 46, 0.62);
  pointer-events: none;
}

/* Animated gradient bg */
.hero-bg {
  position: absolute; inset: 0; z-index: 1;
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0,54,143,.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(184,151,75,.07) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 80%, rgba(0,54,143,.08) 0%, transparent 55%);
  animation: bgPulse 8s ease-in-out infinite alternate;
}
@keyframes bgPulse {
  0% { opacity: .7; }
  100% { opacity: 1; }
}
/* Particle field */
.hero-bg::after {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background:
    radial-gradient(1.5px 1.5px at 15% 25%, rgba(184,151,75,.25), transparent),
    radial-gradient(1px 1px at 35% 65%, rgba(255,255,255,.1), transparent),
    radial-gradient(1.5px 1.5px at 55% 15%, rgba(184,151,75,.18), transparent),
    radial-gradient(1px 1px at 75% 45%, rgba(255,255,255,.08), transparent),
    radial-gradient(1px 1px at 25% 75%, rgba(184,151,75,.2), transparent),
    radial-gradient(1px 1px at 85% 85%, rgba(255,255,255,.06), transparent),
    radial-gradient(1.5px 1.5px at 45% 55%, rgba(184,151,75,.12), transparent),
    radial-gradient(1px 1px at 65% 35%, rgba(255,255,255,.08), transparent);
  animation: drift 25s linear infinite;
}
@keyframes drift {
  0% { transform: translate(0,0) rotate(0deg); }
  50% { transform: translate(-1.5%,-1.5%) rotate(0.5deg); }
  100% { transform: translate(0,0) rotate(0deg); }
}

/* Outer glow ring (BlocQuant vibe) */
.hero::after {
  content: ''; position: absolute; inset: 0;
  border: 1px solid transparent;
  background: linear-gradient(var(--navy-deep), var(--navy-deep)) padding-box,
              linear-gradient(135deg, rgba(184,151,75,.15), transparent 40%, transparent 60%, rgba(0,54,143,.15)) border-box;
  pointer-events: none; z-index: -1;
}

.hero-content { position: relative; z-index: 2; max-width: 880px; }

.hero-label {
  font-size: 11px; letter-spacing: .4em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 36px; font-weight: 500;
  opacity: 0; animation: fadeUp .8s var(--ease-out) .3s forwards;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 400; line-height: 1.15;
  margin-bottom: 32px; color: var(--white);
}
.hero-title em { font-style: italic; color: var(--gold); }

.hero-subtitle {
  font-size: 16px; color: var(--white-50);
  max-width: 560px; margin: 0 auto 52px;
  line-height: 1.9; font-weight: 300;
  opacity: 0; animation: fadeUp .8s var(--ease-out) 1.8s forwards;
}

.hero-ctas {
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
  opacity: 0; animation: fadeUp .8s var(--ease-out) 2.2s forwards;
}

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

.hero-scroll {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  font-size: 9px; letter-spacing: .35em;
  text-transform: uppercase; color: var(--white-50);
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
  text-decoration: none; transition: color .3s ease;
  opacity: 0; animation: fadeUp .8s var(--ease-out) 2.6s forwards;
}
.hero-scroll:hover { color: var(--white-70); }
.hero-scroll .arrow {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2.5s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .4; transform: scaleY(.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* BlocQuant "by invitation" line */
.hero-exclusive {
  font-size: 10px; letter-spacing: .35em;
  text-transform: uppercase; color: var(--white-20);
  margin-top: 20px;
  opacity: 0; animation: fadeUp .8s var(--ease-out) 2.4s forwards;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 42px; font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase;
  font-weight: 500; text-decoration: none;
  transition: all 0.4s var(--ease-out);
  cursor: pointer; font-family: var(--font-sans);
  position: relative; overflow: hidden;
}
.btn-outline {
  border: 1px solid var(--gold); color: var(--gold); background: transparent;
}
.btn-outline::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gold); transform: scaleX(0);
  transform-origin: left; transition: transform 0.5s var(--ease-out);
  z-index: -1;
}
.btn-outline:hover { color: var(--navy-deep); }
.btn-outline:hover::before { transform: scaleX(1); }
.btn-gold {
  border: 1px solid var(--gold); color: var(--navy-deep);
  background: var(--gold); transition: background 0.3s ease, color 0.3s ease;
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn-filled {
  background: var(--gold); color: var(--navy-deep);
  border: 1px solid var(--gold);
}
.btn-filled:hover { background: var(--gold-light); border-color: var(--gold-light); }

/* ============================================
   SECTION BREATHER (BlocQuant dark spacers)
   ============================================ */
.breather {
  height: 15vh;
  background: var(--navy-deep);
  position: relative;
}
.breather::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(0,54,143,.04) 0%, transparent 70%);
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 120px 48px; position: relative; }
.section-dark { background: var(--navy-deep); }
.section-darker { background: #071320; }
.section-navy { background: var(--navy-dark); }

.section-label {
  font-size: 11px; letter-spacing: .4em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 20px; font-weight: 500;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.8vw, 50px);
  font-weight: 400; line-height: 1.2; margin-bottom: 24px;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-subtitle {
  font-size: 16px; color: var(--white-60, rgba(255,255,255,.6));
  max-width: 600px; line-height: 1.85; font-weight: 300;
}
.section-divider { width: 60px; height: 1px; background: var(--gold); margin: 28px 0; }
.container { max-width: 1200px; margin: 0 auto; }

/* ============================================
   ABOUT (Homepage)
   ============================================ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}

/* Globe container */
.globe-container {
  position: relative; width: 100%; aspect-ratio: 1;
  max-width: 520px; margin: 0 auto;
  filter: drop-shadow(0 0 40px rgba(0,54,143,0.3)) drop-shadow(0 0 80px rgba(184,151,75,0.1));
}
#globeViz {
  width: 100%; height: 100%;
}
#globeViz canvas { cursor: grab; }
#globeViz canvas:active { cursor: grabbing; }

/* Glowing dot accent */
.glow-dot {
  position: absolute; width: 6px; height: 6px;
  background: var(--gold); border-radius: 50%;
  box-shadow: 0 0 20px rgba(184,151,75,.5), 0 0 60px rgba(184,151,75,.2);
  animation: pulse 3s ease infinite;
  z-index: 2; pointer-events: none;
}
@keyframes pulse {
  0%,100% { opacity:.6; transform:scale(1); }
  50% { opacity:1; transform:scale(1.3); }
}

/* Hero banner bar */
.hero-banner {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,54,143,.15);
  border-top: 1px solid var(--white-10);
  border-bottom: 1px solid var(--white-10);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  z-index: 2;
}
.hero-banner-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px; gap: 32px;
}
.hero-banner-item {
  display: flex; align-items: center; gap: 14px;
  flex: 1; justify-content: center;
}
.hero-banner-icon {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--gold); flex-shrink: 0;
}
.hero-banner-text {
  font-size: 12px; letter-spacing: .08em;
  color: var(--white-70); line-height: 1.4;
}
.hero-banner-text strong {
  display: block; color: var(--white);
  font-size: 13px; font-weight: 600;
  letter-spacing: .02em;
}
.hero-banner-divider {
  width: 1px; height: 36px;
  background: var(--white-10); flex-shrink: 0;
}

.stat-row { display: flex; gap: 48px; margin-top: 48px; }
.stat { text-align: center; }
.stat-number {
  font-family: var(--font-serif); font-size: 40px;
  color: var(--gold); font-weight: 400;
}
.stat-label {
  font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--white-50); margin-top: 6px;
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2px; margin-top: 64px;
}
.service-card {
  padding: 56px 48px; background: var(--white-05);
  border: 1px solid var(--white-10);
  transition: all 0.6s var(--ease-out);
  position: relative; overflow: hidden;
  cursor: pointer; text-decoration: none; color: var(--white); display: block;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.service-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(184,151,75,.04), transparent 70%);
  opacity: 0; transition: opacity 0.6s ease;
}
.service-card:hover { background: var(--white-10); border-color: rgba(184,151,75,.2); }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { opacity: 1; }

.service-card-number {
  font-family: var(--font-serif); font-size: 52px;
  color: rgba(184,151,75,.35); font-weight: 400; line-height: 1;
  margin-bottom: 24px; transition: color 0.6s ease;
}
.service-card:hover .service-card-number { color: var(--gold); }

.service-card h3 {
  font-family: var(--font-serif); font-size: 23px;
  font-weight: 500; margin-bottom: 14px; line-height: 1.3;
  position: relative; z-index: 1;
}
.service-card p {
  font-size: 15px; color: var(--white-50); line-height: 1.8;
  font-weight: 300; position: relative; z-index: 1;
}
.service-card .arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px; font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); font-weight: 500;
  transition: gap 0.4s var(--ease-out);
  position: relative; z-index: 1;
}
.service-card:hover .arrow-link { gap: 16px; }

/* ============================================
   TEAM
   ============================================ */
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; margin-top: 64px;
}
.team-card {
  background: var(--white-05); border: 1px solid var(--white-10);
  padding: 52px 36px; text-align: center;
  transition: all 0.6s var(--ease-out); position: relative;
}
.team-card::before {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 2px; background: var(--gold);
  transform: scaleX(0); transition: transform 0.6s var(--ease-out);
}
.team-card:hover { border-color: rgba(184,151,75,.2); transform: translateY(-6px); }
.team-card:hover::before { transform: scaleX(1); }

.team-avatar {
  width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-brand), var(--navy-mid));
  margin: 0 auto 24px; display: flex;
  align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 22px;
  color: var(--gold); border: 1px solid var(--gold-dim);
  transition: border-color 0.4s ease;
}
.team-card:hover .team-avatar { border-color: var(--gold); }

.team-card h3 { font-family: var(--font-serif); font-size: 19px; font-weight: 500; margin-bottom: 4px; }
.team-card .role {
  font-size: 11px; letter-spacing: .12em; color: var(--gold);
  text-transform: uppercase; font-weight: 500; margin-bottom: 16px;
}
.team-card p { font-size: 14px; color: var(--white-50); line-height: 1.7; font-weight: 300; }

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 64px;
}
.portfolio-card {
  aspect-ratio: 4/3; position: relative; overflow: hidden;
  border: 1px solid var(--white-10);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-deep));
  transition: all 0.6s var(--ease-out); cursor: pointer;
}
.portfolio-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(184,151,75,.05), transparent 60%);
  opacity: 0; transition: opacity 0.6s ease;
}
.portfolio-card:hover { border-color: rgba(184,151,75,.25); transform: scale(1.02); }
.portfolio-card:hover::before { opacity: 1; }

/* Logo centred on dark card */
.portfolio-card-logo-img {
  max-width: 58%; max-height: 80px; object-fit: contain;
  position: relative; z-index: 1;
  filter: brightness(0) invert(1); opacity: 0.82;
  transition: transform 0.6s var(--ease-out), opacity 0.4s ease;
}
.portfolio-card:hover .portfolio-card-logo-img {
  transform: translateY(-6px); opacity: 1;
}

/* Building-image background for image-only cards */
.portfolio-card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.35; transition: opacity 0.6s ease;
}
.portfolio-card:hover .portfolio-card-bg { opacity: 0.5; }

/* "View More" overlay (appears on hover) */
.portfolio-card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(11,26,46,.95), transparent);
  display: flex; justify-content: space-between; align-items: center;
  opacity: 0; transform: translateY(10px);
  transition: all 0.5s var(--ease-out);
}
.portfolio-card:hover .portfolio-card-overlay { opacity: 1; transform: translateY(0); }
.portfolio-card-overlay span {
  font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold);
}
.portfolio-card-overlay .portfolio-card-title {
  font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--white-70);
  font-family: var(--font-sans); font-weight: 400;
}

/* ============================================
   PORTFOLIO DETAIL PAGES
   ============================================ */
.portfolio-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold); text-decoration: none; font-weight: 500;
  margin-bottom: 48px; transition: gap 0.3s ease;
}
.portfolio-back:hover { gap: 14px; }
.portfolio-back::before { content: '←'; font-size: 14px; }

.portfolio-detail-intro {
  max-width: 840px; margin: 0 auto 72px; text-align: center;
}
.portfolio-detail-intro h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 400; color: var(--white); margin-bottom: 24px;
}
.portfolio-detail-intro h2 em { font-style: italic; color: var(--gold); }
.portfolio-detail-intro p {
  font-size: 16px; color: var(--white-50); line-height: 1.85;
}

.portfolio-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center; margin-bottom: 64px;
}
.portfolio-detail-grid.reverse { direction: rtl; }
.portfolio-detail-grid.reverse > * { direction: ltr; }

.portfolio-detail-text h3 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2vw, 26px); font-weight: 400;
  color: var(--white); margin-bottom: 20px;
}
.portfolio-detail-text h3 em { font-style: italic; color: var(--gold); }
.portfolio-detail-text p {
  font-size: 15px; color: var(--white-50); line-height: 1.9; margin-bottom: 16px;
}
.portfolio-detail-text p:last-child { margin-bottom: 0; }

.portfolio-detail-image {
  position: relative; overflow: hidden; border-radius: 2px;
}
.portfolio-detail-image img {
  width: 100%; display: block;
  border: 1px solid var(--white-10);
  transition: transform 0.6s var(--ease-out);
}
.portfolio-detail-image:hover img { transform: scale(1.02); }

.portfolio-detail-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--white-10);
  border: 1px solid var(--white-10); margin-bottom: 64px;
}
.portfolio-stat {
  background: var(--navy-deep); padding: 36px 32px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.portfolio-stat-value {
  font-family: var(--font-serif); font-size: 36px;
  font-weight: 400; color: var(--gold); line-height: 1.15;
  flex: 1; display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.portfolio-stat-label {
  font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--white-50); font-weight: 500;
  flex-shrink: 0;
}

/* Brand / logo-centred showcase pages */
.portfolio-brand-section {
  max-width: 760px; margin: 0 auto; text-align: center;
}
.portfolio-logo-showcase {
  background: #fff; border-radius: 4px;
  padding: 48px 64px; display: inline-block;
  margin-bottom: 48px;
  box-shadow: 0 4px 32px rgba(0,0,0,.18);
}
.portfolio-logo-showcase img {
  max-width: 300px; max-height: 100px;
  object-fit: contain; display: block;
}
.portfolio-brand-section p {
  font-size: 16px; color: var(--white-50);
  line-height: 1.9; margin-bottom: 18px; text-align: left;
}
.portfolio-brand-section .portfolio-vision {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--white-05); border-left: 2px solid var(--gold);
  padding: 20px 24px; border-radius: 0 4px 4px 0;
  margin-top: 8px; text-align: left;
}
.portfolio-vision-label {
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; white-space: nowrap; margin-top: 2px;
}
.portfolio-vision p { margin-bottom: 0; font-size: 15px; }

.portfolio-brand-tags {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 40px;
}
.portfolio-tag {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(184,151,75,.3);
  padding: 6px 16px; font-weight: 500;
}

@media (max-width: 768px) {
  .portfolio-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .portfolio-detail-grid.reverse { direction: ltr; }
  .portfolio-detail-stats { grid-template-columns: 1fr; }
  .portfolio-logo-showcase { padding: 32px; }
  .portfolio-logo-showcase img { max-width: 220px; }
}

/* ============================================
   TAX FEATURES
   ============================================ */
.tax-features {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-top: 64px;
}
.tax-feature {
  padding: 44px 28px; border: 1px solid var(--white-10);
  background: var(--white-05); text-align: center;
  transition: all 0.6s var(--ease-out);
}
.tax-feature:hover { border-color: rgba(184,151,75,.2); }
.tax-feature-icon {
  width: 52px; height: 52px; margin: 0 auto 20px;
  border: 1px solid var(--gold-dim); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--gold);
  transition: all 0.4s ease;
}
.tax-feature:hover .tax-feature-icon { border-color: var(--gold); background: var(--gold-dim); }
.tax-feature h4 { font-family: var(--font-serif); font-size: 16px; font-weight: 500; margin-bottom: 10px; }
.tax-feature p { font-size: 13px; color: var(--white-50); line-height: 1.65; }

/* ============================================
   FAMILY OFFICE DIVISIONS
   ============================================ */
.divisions-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2px; margin-top: 64px;
}
.division-card {
  padding: 44px 40px; background: var(--white-05);
  border: 1px solid var(--white-10);
  transition: all 0.6s var(--ease-out);
  position: relative; overflow: hidden;
}
.division-card::before {
  content: ''; position: absolute; left: 0; top: 0;
  width: 2px; height: 100%; background: var(--gold);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.6s var(--ease-out);
}
.division-card:hover { border-color: rgba(184,151,75,.2); background: var(--white-10); }
.division-card:hover::before { transform: scaleY(1); }
.division-card h4 { font-family: var(--font-serif); font-size: 18px; margin-bottom: 8px; }
.division-card p { font-size: 14px; color: var(--white-50); line-height: 1.7; }

/* ============================================
   EVENTS
   ============================================ */
.events-empty {
  text-align: center; padding: 100px 40px;
  border: 1px solid var(--white-10); background: var(--white-05);
}
.events-empty h3 { font-family: var(--font-serif); font-size: 28px; margin-bottom: 16px; }
.events-empty p { color: var(--white-50); font-size: 15px; }

/* ============================================
   SUBPAGE HERO
   ============================================ */
.subpage-hero {
  min-height: 45vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center; padding: 180px 48px 80px;
  position: relative; overflow: hidden;
}
.subpage-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(0,54,143,.1) 0%, transparent 65%);
}
.subpage-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: linear-gradient(to right, transparent, var(--white-10), transparent);
}
.subpage-hero > *:not(.video-bg) { position: relative; z-index: 1; }
.subpage-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.5vw, 54px); font-weight: 400;
}
.subpage-hero h1 em { font-style: italic; color: var(--gold); }
.subpage-hero .section-divider { margin: 24px auto; }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  padding: 120px 48px; text-align: center;
  position: relative; overflow: hidden;
  background: linear-gradient(to bottom, #071320 0%, var(--navy-dark) 30%);
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(184,151,75,.05) 0%, transparent 55%);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner .section-subtitle { margin: 0 auto 44px; text-align: center; }

/* ============================================
   DISCLAIMER
   ============================================ */
.disclaimer {
  padding: 56px 48px; background: var(--navy-dark);
  border-top: 1px solid var(--white-10);
  border-bottom: 1px solid var(--white-10);
}
.disclaimer h4 { font-family: var(--font-serif); font-size: 16px; color: var(--gold); margin-bottom: 14px; }
.disclaimer p {
  font-size: 13px; color: var(--white-30, rgba(255,255,255,.3));
  line-height: 1.8; max-width: 900px; margin: 0 auto; text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 80px 48px 36px; background: #060E1A;
  border-top: 1px solid var(--white-10);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px; max-width: 1200px; margin: 0 auto;
}
/* footer-brand styles consolidated above */
.footer h5 {
  font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--white-70);
  margin-bottom: 20px; font-weight: 600;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: var(--white-30, rgba(255,255,255,.35)); text-decoration: none;
  font-size: 14px; transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--gold); }
.footer-contact p {
  font-size: 13px; color: var(--white-30, rgba(255,255,255,.35));
  margin-bottom: 8px; display: flex; align-items: flex-start; gap: 10px;
}
.footer-contact .icon { color: var(--gold); font-size: 13px; flex-shrink: 0; margin-top: 3px; }
.footer-bottom {
  max-width: 1200px; margin: 48px auto 0;
  padding-top: 24px; border-top: 1px solid var(--white-05);
  font-size: 12px; color: rgba(255,255,255,.2); letter-spacing: .05em;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-legal { display: flex; align-items: center; gap: 16px; }
.footer-legal a {
  color: rgba(255,255,255,.2); text-decoration: none;
  font-size: 12px; letter-spacing: .05em;
  transition: color 0.3s ease;
}
.footer-legal a:hover { color: var(--gold); }
.footer-legal .sep { color: rgba(255,255,255,.1); }

/* ============================================
   LEGAL PAGES (Privacy Policy / Terms)
   ============================================ */
.legal-content {
  max-width: 840px; margin: 0 auto;
}
.legal-content h2 {
  font-family: var(--font-serif); font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 400; color: var(--white); margin: 48px 0 16px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h2 em { font-style: italic; color: var(--gold); }
.legal-content p {
  font-size: 15px; color: var(--white-50); line-height: 1.85; margin-bottom: 16px;
}
.legal-content ul {
  list-style: none; padding: 0; margin-bottom: 20px;
}
.legal-content ul li {
  font-size: 15px; color: var(--white-50); line-height: 1.8;
  padding-left: 20px; position: relative; margin-bottom: 8px;
}
.legal-content ul li::before {
  content: '—'; position: absolute; left: 0; color: var(--gold); font-size: 12px;
}
.legal-effective {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 36px; font-weight: 500;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .globe-container { max-width: 360px; }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 3px; }
  .tax-features { grid-template-columns: repeat(2, 1fr); }
  .divisions-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { padding: 20px 32px; }
  .section, .hero { padding-left: 32px; padding-right: 32px; }
  .hero-banner-inner { flex-wrap: wrap; padding: 16px 32px; }
  .hero-banner-divider { display: none; }
  .hero-banner-item { flex: 0 0 48%; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .section, .hero, .subpage-hero { padding-left: 20px; padding-right: 20px; }
  .nav { padding: 16px 20px; }
  .team-grid, .portfolio-grid, .tax-features, .footer-grid { grid-template-columns: 1fr; }
  .stat-row { flex-direction: column; gap: 24px; align-items: center; }
  .hero-ctas { flex-direction: column; align-items: center; margin-bottom: 12px; }
  .breather { height: 8vh; }

  /* Hero: extra bottom padding so content clears the 2x2 banner */
  .hero { padding-bottom: 200px; }

  /* Hero banner: 2x2 grid on mobile */
  .hero-banner-inner { display: grid; grid-template-columns: 1fr 1fr; padding: 16px 20px; gap: 0; }
  .hero-banner-item { flex: unset; justify-content: center; padding: 14px 8px; border: 1px solid var(--white-10); margin: -1px 0 0 -1px; }
  .hero-banner-divider { display: none; }

  .globe-container { max-width: 280px; }

  /* Center standalone buttons in about preview */
  .about-grid .btn { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }

  /* Section titles centered on mobile for better readability */
  .section-label, .section-title { text-align: center; }
  .section-divider { margin-left: auto; margin-right: auto; }

  /* Portfolio detail responsive */
  .portfolio-detail-stats { grid-template-columns: 1fr; gap: 1px; }
  .portfolio-back { font-size: 12px; }

  /* CTA banner padding */
  .cta-banner { padding: 80px 20px; }

  /* Footer bottom: stack cleanly */
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
  .footer { padding: 60px 20px 32px; }

  /* Legal pages */
  .legal-content h2 { font-size: 20px; }

  /* Disclaimer */
  .disclaimer { padding: 40px 20px; }
}