/* ==========================================================================
   Thabela Inc. Attorneys — site styles
   Palette taken from the company profile: deep navy, royal navy, gold, cream.
   ========================================================================== */

:root {
  --navy-950: #050d24;
  --navy-900: #081536;
  --navy-800: #0c1d47;
  --navy-700: #13296a;
  --navy-600: #1d3b8a;
  --gold-600: #a8802f;
  --gold-500: #c49a45;
  --gold-400: #d8b566;
  --gold-300: #ead39a;
  --cream-100: #fbf8f1;
  --cream-200: #f5efe2;
  --cream-300: #ece3cf;
  --ink: #0f1d3d;
  --body: #4a5468;
  --muted: #6c7588;
  --line: #e4e0d6;
  --white: #ffffff;

  --gold-grad: linear-gradient(135deg, #ead39a 0%, #c49a45 45%, #a8802f 100%);
  --navy-grad: linear-gradient(160deg, #13296a 0%, #0c1d47 45%, #050d24 100%);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(8, 21, 54, 0.06);
  --shadow: 0 18px 40px -18px rgba(8, 21, 54, 0.28);
  --shadow-lg: 0 40px 80px -30px rgba(5, 13, 36, 0.45);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--gold-500); color: var(--navy-950); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--gold-grad); border-radius: 2px; }
.on-dark .eyebrow, .eyebrow.light { color: var(--gold-400); }
.display { font-size: clamp(2.4rem, 5.4vw, 4.4rem); letter-spacing: -.01em; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--body); }
.serif-lead { font-family: var(--serif); font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.55; color: var(--ink); }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.italic { font-style: italic; }
.text-center { text-align: center; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 32px; height: 2px; background: var(--gold-grad); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: .01em;
  border: 1px solid transparent; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-gold { background: var(--gold-grad); color: var(--navy-950); box-shadow: 0 10px 24px -10px rgba(196, 154, 69, .7); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(196, 154, 69, .8); }
.btn-outline { border-color: rgba(255,255,255,.35); color: var(--white); background: rgba(255,255,255,.04); backdrop-filter: blur(6px); }
.btn-outline:hover { border-color: var(--gold-400); color: var(--gold-300); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn-ghost { color: var(--navy-800); border-color: var(--line); background: var(--white); }
.btn-ghost:hover { border-color: var(--gold-500); color: var(--gold-600); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--navy-700); font-weight: 600; font-size: 15px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s; }
.link-arrow:hover { color: var(--gold-600); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */
.topbar {
  background: var(--navy-950); color: rgba(255,255,255,.72); font-size: 13px;
  border-bottom: 1px solid rgba(196,154,69,.18);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 42px; }
.topbar-list { display: flex; gap: 28px; align-items: center; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: var(--gold-300); }
.topbar svg { width: 14px; height: 14px; color: var(--gold-400); flex-shrink: 0; }
.topbar-motto { font-family: var(--serif); font-style: italic; color: var(--gold-300); letter-spacing: .02em; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 21, 54, .96);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(196,154,69,.22);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent); opacity: .6;
}
.site-header.scrolled { box-shadow: 0 12px 30px -12px rgba(0,0,0,.45); background: rgba(5, 13, 36, .97); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(196,154,69,.55), 0 8px 20px -6px rgba(0,0,0,.6); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--white); letter-spacing: .06em; }
.brand-sub { font-size: 10.5px; font-weight: 600; letter-spacing: .38em; color: var(--gold-400); margin-top: 4px; text-transform: uppercase; }

.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu a {
  position: relative; padding: 10px 16px; color: rgba(255,255,255,.82); font-size: 15px; font-weight: 500; border-radius: 8px;
  transition: color .2s ease;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav-menu a:hover { color: var(--white); }
.nav-menu a:hover::after, .nav-menu a[aria-current="page"]::after { transform: scaleX(1); }
.nav-menu a[aria-current="page"] { color: var(--gold-300); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { display: flex; align-items: center; gap: 10px; color: var(--white); font-size: 14px; }
.nav-phone .ico {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(196,154,69,.45); color: var(--gold-400);
}
.nav-phone .ico svg { width: 16px; height: 16px; }
.nav-phone small { display: block; font-size: 11px; color: rgba(255,255,255,.55); letter-spacing: .08em; text-transform: uppercase; }
.nav-phone strong { font-weight: 600; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(196,154,69,.4);
  background: transparent; color: var(--white); align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s, background .3s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(92vh, 860px); display: flex; align-items: center;
  color: var(--white); background: var(--navy-900);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
@media (min-width: 1121px) {
  .hero-media { left: 30%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%); mask-image: linear-gradient(90deg, transparent 0%, #000 30%); }
  .hero-media img { object-position: 45% center; }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(6,15,40,1) 0%, rgba(6,15,40,1) 35%, rgba(8,21,54,.72) 44%, rgba(8,21,54,.15) 70%, rgba(8,21,54,.05) 100%),
      linear-gradient(0deg, rgba(5,13,36,.8) 0%, transparent 30%);
  }
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5,13,36,.96) 0%, rgba(8,21,54,.88) 34%, rgba(8,21,54,.45) 62%, rgba(8,21,54,.15) 100%),
    linear-gradient(0deg, rgba(5,13,36,.85) 0%, transparent 35%);
}
.hero-rings {
  position: absolute; right: -180px; top: -220px; width: 760px; height: 760px; z-index: -1; pointer-events: none; opacity: .35;
  border-radius: 50%; border: 1px solid rgba(196,154,69,.5);
  box-shadow: 0 0 0 70px transparent, inset 0 0 0 70px transparent;
}
.hero-rings::before, .hero-rings::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(196,154,69,.4); }
.hero-rings::before { inset: 80px; }
.hero-rings::after { inset: 160px; }
.hero-inner { position: relative; padding: clamp(80px, 12vh, 140px) 0 clamp(120px, 16vh, 170px); max-width: 680px; }
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 em { font-style: italic; font-weight: 500; }
.hero .lead { color: rgba(255,255,255,.8); max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-motto { display: flex; gap: 14px; align-items: center; margin-bottom: 26px; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-300); font-weight: 600; }
.hero-motto i { width: 5px; height: 5px; background: var(--gold-500); border-radius: 50%; display: inline-block; }

.hero-badge {
  position: absolute; right: var(--gutter); bottom: clamp(130px, 17vh, 180px);
  display: flex; align-items: center; gap: 16px; padding: 16px 22px 16px 16px; border-radius: 18px;
  background: rgba(8,21,54,.62); border: 1px solid rgba(196,154,69,.35); backdrop-filter: blur(10px);
  max-width: 320px;
}
.hero-badge img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--gold-500); }
.hero-badge strong { display: block; color: var(--white); font-family: var(--serif); font-size: 16px; }
.hero-badge span { font-size: 12.5px; color: rgba(255,255,255,.7); line-height: 1.45; display: block; }

/* stat strip overlapping hero */
.stats-wrap { position: relative; z-index: 5; margin-top: -78px; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border-top: 3px solid transparent; border-image: var(--gold-grad) 1; border-image-slice: 1;
  overflow: hidden;
}
.stats { border-image: none; border-top: 0; position: relative; }
.stats::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold-grad); }
.stat { padding: 30px 28px; display: flex; gap: 16px; align-items: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num { font-family: var(--serif); font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 700; line-height: 1; color: var(--navy-800); }
.stat-num sup { font-size: .5em; color: var(--gold-500); vertical-align: super; line-height: 0; }
.stat-label { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.stat-label strong { color: var(--ink); display: block; font-size: 14.5px; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-sm { padding: clamp(56px, 7vw, 88px) 0; }
.bg-cream { background: var(--cream-100); }
.bg-navy { background: var(--navy-grad); color: rgba(255,255,255,.78); }
.bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--white); }
.bg-navy .lead { color: rgba(255,255,255,.75); }
.bg-navy-pattern { position: relative; overflow: hidden; }
.bg-navy-pattern::before {
  content: ""; position: absolute; width: 900px; height: 900px; border-radius: 50%; left: -420px; bottom: -520px;
  border: 1px solid rgba(196,154,69,.22); box-shadow: 0 0 0 90px rgba(196,154,69,.0), 0 0 0 91px rgba(196,154,69,.14), 0 0 0 180px transparent, 0 0 0 181px rgba(196,154,69,.1);
  pointer-events: none;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.grid-2.top { align-items: start; }

/* ---------- Intro / about split ---------- */
.media-stack { position: relative; padding: 0 0 48px 0; }
.media-stack .main {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/4.4; background: var(--cream-300);
}
.media-stack .main img { width: 100%; height: 100%; object-fit: cover; }
.media-stack::before {
  content: ""; position: absolute; right: -18px; top: 28px; bottom: 76px; width: 60%; border-radius: var(--radius-lg);
  background: var(--gold-grad); z-index: -1;
}
.media-stack .float-card {
  position: absolute; left: -28px; bottom: 0; background: var(--navy-grad); color: var(--white);
  padding: 22px 26px; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: flex; gap: 18px; align-items: center;
  max-width: 330px; border: 1px solid rgba(196,154,69,.3);
}
.float-card .big { font-family: var(--serif); font-size: 46px; font-weight: 700; line-height: 1; }
.float-card p { margin: 0; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.78); }

.check-list { display: grid; gap: 14px; margin: 28px 0 34px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.check-list .tick {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: var(--cream-200); color: var(--gold-600); border: 1px solid var(--cream-300); margin-top: 1px;
}
.check-list .tick svg { width: 14px; height: 14px; }
.bg-navy .check-list li { color: rgba(255,255,255,.88); }
.bg-navy .check-list .tick { background: rgba(196,154,69,.14); border-color: rgba(196,154,69,.35); color: var(--gold-400); }

.signature { display: flex; align-items: center; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.signature img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--gold-400); }
.signature strong { display: block; font-family: var(--serif); color: var(--ink); font-size: 18px; }
.signature span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; }

/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px 30px; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; overflow: hidden;
  display: flex; flex-direction: column;
}
.service-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold-grad);
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card .num { position: absolute; right: 26px; top: 22px; font-family: var(--serif); font-size: 44px; font-weight: 700; color: var(--cream-200); line-height: 1; transition: color .3s; }
.service-card:hover .num { color: var(--cream-300); }
.icon-tile {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 24px;
  background: var(--navy-grad); color: var(--gold-400); box-shadow: 0 10px 20px -10px rgba(8,21,54,.6);
}
.icon-tile svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.32rem; margin-bottom: 12px; }
.service-card p { font-size: 15px; color: var(--body); flex: 1; }
.service-card .link-arrow { margin-top: 8px; }

/* ---------- Feature (office) ---------- */
.feature-office { position: relative; }
.office-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9; background: var(--navy-800);
}
.office-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.office-frame:hover img { transform: scale(1.03); }
.office-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(196,154,69,.4); pointer-events: none; }
.office-caption {
  position: absolute; left: 24px; bottom: 24px; right: 24px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
}
.office-caption .pill {
  background: rgba(5,13,36,.72); backdrop-filter: blur(8px); color: var(--white); padding: 12px 18px; border-radius: 12px;
  border: 1px solid rgba(196,154,69,.35); font-size: 14px; display: flex; gap: 10px; align-items: center;
}
.office-caption .pill svg { width: 16px; height: 16px; color: var(--gold-400); }
.office-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.office-point { display: flex; gap: 16px; align-items: flex-start; }
.office-point .icon-tile { width: 48px; height: 48px; margin: 0; flex-shrink: 0; }
.office-point .icon-tile svg { width: 22px; height: 22px; }
.office-point h4 { font-size: 1.1rem; margin-bottom: 4px; }
.office-point p { font-size: 14.5px; margin: 0; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; padding: 30px 28px; border-radius: var(--radius); background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1); transition: background .3s, border-color .3s, transform .3s;
}
.step:hover { background: rgba(255,255,255,.07); border-color: rgba(196,154,69,.4); transform: translateY(-4px); }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--gold-grad); color: var(--navy-950); font-family: var(--serif); font-weight: 700; font-size: 15px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p { font-size: 14.5px; margin: 0; color: rgba(255,255,255,.7); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 18px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--cream-300); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; color: var(--white); font-family: var(--serif); font-style: italic; font-size: 15px;
  background: linear-gradient(0deg, rgba(5,13,36,.85), transparent);
}
.gallery figcaption::before { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--gold-400); vertical-align: middle; margin-right: 10px; }
.g-a { grid-column: span 7; grid-row: span 3; }
.g-b { grid-column: span 5; grid-row: span 3; }
.g-c { grid-column: span 4; grid-row: span 2; }
.g-d { grid-column: span 4; grid-row: span 2; }
.g-e { grid-column: span 4; grid-row: span 2; }

/* ---------- Clients ---------- */
.clients { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.client {
  padding: 26px 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  transition: border-color .3s, box-shadow .3s;
}
.client:hover { border-color: var(--gold-400); box-shadow: var(--shadow-sm); }
.client .idx { font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1; margin-bottom: 14px; display: block; }
.client h4 { font-family: var(--sans); font-size: 15.5px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.client p { font-size: 14px; margin: 0; color: var(--muted); line-height: 1.55; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg);
  padding: clamp(44px, 6vw, 72px); color: var(--white); background: var(--navy-900);
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
.cta-band .bg { position: absolute; inset: 0; z-index: -2; }
.cta-band .bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(5,13,36,.97) 0%, rgba(8,21,54,.9) 50%, rgba(8,21,54,.6) 100%); }
.cta-band::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold-grad); }
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.78); margin: 0; max-width: 560px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--white);
  padding: clamp(96px, 14vw, 160px) 0 clamp(80px, 10vw, 120px); background: var(--navy-900);
}
.page-hero .bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(5,13,36,.96) 0%, rgba(8,21,54,.86) 45%, rgba(8,21,54,.55) 100%);
}
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold-grad); }
.page-hero h1 { color: var(--white); font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 18px; max-width: 820px; }
.page-hero .lead { color: rgba(255,255,255,.78); max-width: 640px; margin: 0; }
.breadcrumb { display: flex; gap: 10px; align-items: center; font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 26px; letter-spacing: .04em; }
.breadcrumb a:hover { color: var(--gold-300); }
.breadcrumb span[aria-current] { color: var(--gold-300); }
.breadcrumb svg { width: 12px; height: 12px; opacity: .6; }

/* ==========================================================================
   About page
   ========================================================================== */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value {
  padding: 40px 32px; border-radius: var(--radius); text-align: center; background: var(--white); border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.value::after { content: ""; position: absolute; bottom: 0; left: 30%; right: 30%; height: 3px; background: var(--gold-grad); border-radius: 3px 3px 0 0; }
.value .icon-tile { margin: 0 auto 22px; width: 64px; height: 64px; border-radius: 50%; }
.value h3 { font-size: 1.6rem; }
.value p { font-size: 15px; margin: 0; }

.director {
  display: grid; grid-template-columns: 400px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start;
}
.director-card { position: sticky; top: calc(var(--header-h) + 24px); }
.director-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/4.4; box-shadow: var(--shadow); }
.director-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.director-meta {
  margin: -60px 20px 0; position: relative; background: var(--navy-grad); border-radius: var(--radius); padding: 26px 26px 24px; color: rgba(255,255,255,.8);
  border: 1px solid rgba(196,154,69,.3); box-shadow: var(--shadow-lg);
}
.director-meta h3 { color: var(--white); font-size: 1.45rem; margin-bottom: 4px; }
.director-meta .role { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-400); font-weight: 600; }
.director-meta ul { margin: 18px 0; display: grid; gap: 10px; font-size: 14px; }
.director-meta li { display: flex; gap: 10px; }
.director-meta li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); margin-top: 9px; flex-shrink: 0; }
.director-meta .exp { display: flex; align-items: center; gap: 14px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.director-meta .exp b { font-family: var(--serif); font-size: 40px; line-height: 1; }
.director-meta .exp span { font-size: 13px; line-height: 1.4; }

.bio-block { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.bio-block:last-child { border: 0; margin: 0; padding: 0; }
.bio-block h3 { display: flex; align-items: center; gap: 14px; font-size: 1.35rem; }
.bio-block h3::before { content: ""; width: 26px; height: 2px; background: var(--gold-grad); flex-shrink: 0; }
.bio-block p { margin: 0; }
.quote-box {
  margin-top: 32px; padding: 28px 30px; border-radius: var(--radius); background: var(--cream-100); border: 1px solid var(--gold-300);
  font-family: var(--serif); font-size: 1.15rem; color: var(--ink); line-height: 1.6; position: relative;
}
.quote-box .label { display: block; font-family: var(--sans); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; margin-bottom: 10px; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.member {
  background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  transition: transform .35s, box-shadow .35s; display: flex; flex-direction: column;
}
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.member-photo { aspect-ratio: 4/3.6; overflow: hidden; position: relative; background: var(--cream-300); }
.member-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold-grad); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .8s; }
.member:hover .member-photo img { transform: scale(1.05); }
.member-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.member-body h3 { font-size: 1.25rem; margin-bottom: 4px; }
.member-role { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-600); font-weight: 700; margin-bottom: 14px; }
.member-quals { font-family: var(--serif); font-style: italic; font-size: 13.5px; color: var(--ink); background: var(--cream-100); padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; line-height: 1.5; }
.member-body p { font-size: 14.5px; margin: 0; }

.team-group-label { display: flex; align-items: center; gap: 18px; margin: 56px 0 24px; }
.team-group-label:first-of-type { margin-top: 0; }
.team-group-label h3 { margin: 0; font-size: 1.35rem; white-space: nowrap; }
.team-group-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.experience-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.exp-card { padding: 36px 34px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); }
.exp-card .icon-tile { background: var(--gold-grad); color: var(--navy-950); }
.exp-card h3 { font-size: 1.4rem; }
.exp-card p { color: rgba(255,255,255,.75); font-size: 15px; }
.exp-card p:last-child { margin: 0; }

.controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.control { padding: 30px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.control h3 { font-size: 1.2rem; }
.control p { font-size: 14.5px; margin: 0; }
.control .icon-tile { width: 48px; height: 48px; }
.control .icon-tile svg { width: 22px; height: 22px; }

/* ==========================================================================
   Services page
   ========================================================================== */
.svc-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.svc-nav a {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--gold-400); color: var(--navy-800); font-size: 14px; font-weight: 600;
  background: var(--white); transition: background .25s, color .25s;
}
.svc-nav a:hover { background: var(--navy-800); color: var(--gold-300); border-color: var(--navy-800); }
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding: clamp(48px, 6vw, 80px) 0; scroll-margin-top: calc(var(--header-h) + 20px); }
.svc-detail + .svc-detail { border-top: 1px solid var(--line); }
.svc-detail.reverse .svc-media { order: 2; }
.svc-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5/4; box-shadow: var(--shadow); background: var(--navy-grad); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-media .tag {
  position: absolute; left: 20px; top: 20px; background: rgba(5,13,36,.78); color: var(--gold-300); backdrop-filter: blur(6px);
  font-family: var(--serif); font-weight: 700; font-size: 22px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(196,154,69,.5);
}
.svc-copy h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.svc-copy .check-list { margin: 22px 0 28px; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-panel {
  background: var(--navy-grad); color: rgba(255,255,255,.8); border-radius: var(--radius-lg); padding: clamp(32px, 4vw, 44px);
  position: relative; overflow: hidden; border: 1px solid rgba(196,154,69,.25);
}
.contact-panel::after {
  content: ""; position: absolute; right: -140px; bottom: -140px; width: 320px; height: 320px; border-radius: 50%;
  border: 1px solid rgba(196,154,69,.25); box-shadow: 0 0 0 40px transparent, 0 0 0 41px rgba(196,154,69,.15);
}
.contact-panel h2 { color: var(--white); font-size: 1.8rem; }
.contact-person { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-person .name { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; display: block; }
.contact-person small { color: rgba(255,255,255,.6); font-size: 13.5px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; position: relative; z-index: 1; }
.contact-item .ico { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(196,154,69,.5); display: grid; place-items: center; color: var(--gold-400); flex-shrink: 0; }
.contact-item .ico svg { width: 18px; height: 18px; }
.contact-item .k { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-400); font-weight: 600; margin-bottom: 4px; }
.contact-item a, .contact-item address { color: var(--white); font-style: normal; font-size: 15.5px; line-height: 1.6; }
.contact-item a:hover { color: var(--gold-300); }
.firm-no { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); position: relative; z-index: 1; }
.firm-no span { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 600; }
.firm-no b { font-family: var(--serif); font-size: 26px; }

.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.8rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.field label .req { color: var(--gold-600); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink); padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--cream-100); transition: border-color .2s, box-shadow .2s, background .2s; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a8802f' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); background: var(--white); box-shadow: 0 0 0 4px rgba(196,154,69,.15); }
.field .error { font-size: 12.5px; color: #b3261e; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b3261e; }
.field.invalid .error { display: block; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--navy-800); flex-shrink: 0; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }
.form-status { margin-top: 18px; padding: 14px 18px; border-radius: 12px; background: var(--cream-200); color: var(--ink); font-size: 14.5px; display: none; }
.form-status.show { display: block; }

.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); aspect-ratio: 21/8; background: var(--cream-200); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.85); }

.quick-contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quick { display: flex; gap: 16px; align-items: center; padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: border-color .3s, transform .3s, box-shadow .3s; }
.quick:hover { border-color: var(--gold-400); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.quick .icon-tile { margin: 0; width: 52px; height: 52px; flex-shrink: 0; }
.quick small { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-600); font-weight: 700; }
.quick strong { color: var(--ink); font-size: 15.5px; word-break: break-word; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.65); font-size: 14.5px; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold-grad); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 80px; padding-bottom: 56px; }
.footer-brand img { width: 88px; height: 88px; border-radius: 50%; margin-bottom: 20px; box-shadow: 0 0 0 2px rgba(196,154,69,.5); }
.footer-brand p { max-width: 320px; }
.footer-motto { font-family: var(--serif); font-style: italic; color: var(--gold-300); font-size: 17px; }
.site-footer h4 { color: var(--white); font-size: 1.1rem; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--gold-grad); }
.footer-links { display: grid; gap: 10px; }
.footer-links a:hover { color: var(--gold-300); }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; }
.footer-contact svg { width: 16px; height: 16px; color: var(--gold-400); flex-shrink: 0; margin-top: 4px; }
.footer-contact a:hover { color: var(--gold-300); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; font-size: 13px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom a { color: var(--gold-400); }
.footer-bottom a:hover { color: var(--gold-300); }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--gold-grad); color: var(--navy-950); display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .3s, transform .3s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Image fallback (if a remote stock image fails to load) ---------- */
img.img-failed { opacity: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; transform: none; }
  * { transition-duration: .01ms !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1120px) {
  .nav-phone { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-badge { display: none; }
}
@media (max-width: 980px) {
  :root { --header-h: 74px; }
  .topbar-motto, .topbar .hide-md { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn { display: none; }
  .nav-menu {
    position: fixed; left: 0; right: 0; top: var(--menu-top, var(--header-h)); bottom: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 24px var(--gutter) 40px;
    background: var(--navy-950); opacity: 0; transform: translateY(-12px); transition: opacity .3s ease, transform .3s ease, visibility 0s .3s; overflow-y: auto; visibility: hidden;
  }
  .nav-open .nav-menu { opacity: 1; transform: none; visibility: visible; transition: opacity .3s ease, transform .3s ease; }
  .nav-menu a { font-size: 20px; font-family: var(--serif); padding: 16px 4px; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .nav-menu a::after { display: none; }
  .nav-menu .mobile-cta { display: flex !important; margin-top: 24px; border: 0; font-family: var(--sans); font-size: 16px; padding: 16px 26px; border-radius: 999px; color: var(--navy-950); justify-content: center; }
  .nav-open { overflow: hidden; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid-2, .director, .contact-grid, .svc-detail { grid-template-columns: 1fr; }
  .svc-detail.reverse .svc-media { order: 0; }
  .director-card { position: static; max-width: 460px; }
  .services-grid, .team-grid, .controls, .values { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .office-points { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .media-stack { max-width: 520px; }
  .media-stack .float-card { left: 16px; }
  .quick-contacts { grid-template-columns: 1fr; }
  .map-wrap { aspect-ratio: 4/3; }
  .gallery { grid-auto-rows: 100px; }
  .g-a, .g-b { grid-column: span 12; }
  .g-c, .g-d { grid-column: span 6; }
  .g-e { grid-column: span 12; }
}
@media (min-width: 981px) { .nav-menu .mobile-cta { display: none !important; } }
@media (max-width: 640px) {
  .topbar .container { justify-content: center; }
  .topbar .hide-sm { display: none; }
  .brand img { width: 46px; height: 46px; }
  .brand-name { font-size: 19px; }
  .brand-sub { font-size: 9px; letter-spacing: .3em; }
  .hero { min-height: auto; }
  .hero-inner { padding: 72px 0 128px; }
  .hero-media img { object-position: 100% center; }
  .hero::before { background: linear-gradient(180deg, rgba(5,13,36,.82) 0%, rgba(8,21,54,.9) 45%, rgba(5,13,36,.97) 100%); }
  .signature { flex-wrap: wrap; }
  .signature .link-arrow { margin-left: 0 !important; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat { padding: 22px 24px; }
  .services-grid, .team-grid, .controls, .values, .process, .clients, .experience-cards, .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; padding-top: 64px; }
  .gallery { grid-auto-rows: 90px; gap: 12px; }
  .g-c, .g-d { grid-column: span 12; }
  .media-stack::before { right: -8px; }
  .media-stack .float-card { left: 12px; right: 12px; max-width: none; }
  .office-caption { left: 12px; right: 12px; bottom: 12px; }
  .office-caption .pill.hide-sm { display: none; }
  .cta-actions .btn { width: 100%; }
}
