/* ============================================================
   DAQ LEGAL GROUP
   Editorial-luxury aesthetic — deep navy, ivory, gold accent
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Palette */
  --navy: #0A1628;
  --navy-deep: #060E1C;
  --navy-soft: #152237;
  --navy-line: #1E2D45;
  --ivory: #F5F1EA;
  --ivory-warm: #EBE4D7;
  --ivory-deep: #DFD6C5;
  --cream: #FAF7F1;
  --gold: #B8956A;
  --gold-light: #D4B68C;
  --gold-dark: #8E6F4A;
  --ink: #0A1628;
  --ink-muted: #5A6275;
  --ink-soft: #8A8F9C;
  --line: rgba(10, 22, 40, 0.12);
  --line-on-dark: rgba(245, 241, 234, 0.14);

  /* Type */
  --font-display: "Cormorant Garamond", "Adobe Garamond", "Georgia", serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --font-arabic: "Noto Kufi Arabic", "Segoe UI", sans-serif;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 10vw, 140px);
  --radius: 2px;

  /* Easings */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

input, textarea, select { font: inherit; color: inherit; }

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

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

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Page loader ---------- */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--cream);
  display: grid;
  place-items: center;
  z-index: 10000;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s var(--ease-out);
}
.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
}
.loader-inner {
  text-align: center;
  display: grid;
  gap: 32px;
  justify-items: center;
  animation: loaderFade 1.2s var(--ease-out) forwards;
}
@keyframes loaderFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.loader-logo {
  width: clamp(220px, 32vw, 360px);
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}
.loader-line {
  width: 0;
  height: 1px;
  background: var(--gold);
  animation: loaderLine 2s var(--ease-out) forwards;
}
@keyframes loaderLine {
  to { width: 200px; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: padding 0.4s var(--ease-out), background 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 10px 0;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
/* Header container: keep at standard width — too wide spreads things out awkwardly */
.site-header .container {
  max-width: 1440px;
  padding: 0 clamp(24px, 3vw, 48px);
}
/* Inside hero (dark) the header is light-on-dark */
.site-header.on-dark {
  color: var(--ivory);
}
.site-header.on-dark.scrolled {
  background: rgba(10, 22, 40, 0.85);
  color: var(--ivory);
  border-bottom-color: var(--line-on-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 60px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.brand-icon {
  height: 44px;
  max-height: 44px;
  width: auto;
  display: block;
  flex-shrink: 0;
  transition: height 0.4s var(--ease-out), max-height 0.4s var(--ease-out);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: inherit;
}
.brand-tagline {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.8;
  margin-top: 4px;
}
.site-header.scrolled .brand-icon { height: 36px; max-height: 36px; }
.site-header.scrolled .brand-name { font-size: 22px; }
.site-header.scrolled .brand-tagline { font-size: 10px; }

@media (max-width: 1024px) {
  .brand-icon { height: 38px; max-height: 38px; }
  .brand-name { font-size: 22px; }
  .brand-tagline { font-size: 10px; letter-spacing: 0.24em; }
  .site-header.scrolled .brand-icon { height: 32px; max-height: 32px; }
  .site-header.scrolled .brand-name { font-size: 19px; }
}
@media (max-width: 768px) {
  .brand { gap: 9px; }
  .brand-icon { height: 32px; max-height: 32px; }
  .brand-name { font-size: 18px; }
  .brand-tagline { font-size: 9px; letter-spacing: 0.2em; }
  .site-header.scrolled .brand-icon { height: 28px; max-height: 28px; }
  .site-header.scrolled .brand-name { font-size: 16px; }
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: clamp(20px, 2.4vw, 38px);
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
  transition: color 0.3s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1.5px;
  width: 0;
  background: var(--gold);
  transition: width 0.4s var(--ease-out);
}
.main-nav a:hover::after { width: 100%; }
.main-nav a:hover { color: var(--gold); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.lang-toggle {
  font-size: 13px;
  letter-spacing: 0.12em;
  padding: 9px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.75;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s;
}
.lang-toggle:hover {
  opacity: 1;
  color: var(--gold);
  border-color: var(--gold);
}

@media (max-width: 1024px) {
  .main-nav a { font-size: 12px; letter-spacing: 0.12em; }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(380px, 88%);
  height: 100vh;
  background: var(--navy);
  color: var(--ivory);
  z-index: 99;
  padding: 100px 40px 40px;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: 28px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-on-dark);
  transition: color 0.3s, padding-left 0.3s;
}
.mobile-menu nav a:hover { color: var(--gold); padding-left: 8px; }
.mobile-menu .mobile-lang {
  font-family: var(--font-arabic);
  font-size: 22px;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: clamp(140px, 18vh, 200px) 0 80px;
  background: var(--navy);
  color: var(--ivory);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #060E1C; /* fallback while video loads */
}

/* ============================================================
   HERO VIDEO BACKGROUND
   ============================================================ */

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  /* very subtle, slow desaturate to keep palette consistent with navy/gold */
  filter: brightness(0.85) saturate(0.9) contrast(1.05);
  /* Smooth fade-in as it loads */
  opacity: 0;
  animation: heroVideoFadeIn 1.4s ease-out 0.2s forwards;
}
@keyframes heroVideoFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Dark overlay — soft, uniform tint so the video shows through the entire hero
   while keeping text readable. No visible bands or transitions. */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* Light vertical vignette only — gentle, no harsh bottom band */
    linear-gradient(180deg,
      rgba(6, 14, 28, 0.40) 0%,
      rgba(10, 22, 40, 0.30) 35%,
      rgba(10, 22, 40, 0.40) 75%,
      rgba(10, 22, 40, 0.55) 100%),
    /* Soft diagonal tint to harmonise with brand */
    linear-gradient(135deg,
      rgba(10, 22, 40, 0.20) 0%,
      rgba(10, 22, 40, 0.10) 50%,
      rgba(10, 22, 40, 0.25) 100%);
}

/* Respect reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .hero-video { animation-play-state: paused; }
}

/* Mobile — slightly stronger overlay so text stays legible on small viewports */
@media (max-width: 768px) {
  .hero-video-overlay {
    background:
      linear-gradient(180deg,
        rgba(6, 14, 28, 0.50) 0%,
        rgba(10, 22, 40, 0.40) 35%,
        rgba(10, 22, 40, 0.50) 75%,
        rgba(10, 22, 40, 0.65) 100%);
  }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(20px, 3vw, 36px);
  max-width: 1000px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(184, 149, 106, 0.18);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(64px, 10.5vw, 150px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0;
  text-shadow: 0 2px 30px rgba(6, 14, 28, 0.4);
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.hero-lede {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.6;
  max-width: 640px;
  color: rgba(245, 241, 234, 0.88);
  margin: 0;
  text-shadow: 0 1px 12px rgba(6, 14, 28, 0.4);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}
.btn svg { transition: transform 0.35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: rgba(245, 241, 234, 0.3);
  color: var(--ivory);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-block { width: 100%; }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: clamp(40px, 6vw, 80px);
  padding-top: 36px;
  border-top: 1px solid var(--line-on-dark);
  max-width: 720px;
}
.meta-num {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
  font-weight: 300;
  color: var(--gold);
}
.meta-num span {
  font-size: 0.5em;
  vertical-align: super;
  margin-left: 2px;
}
.meta-label {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.65);
  line-height: 1.4;
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.6);
  transition: color 0.3s;
  z-index: 3;
}
.scroll-cue:hover { color: var(--gold); }
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--gold) 50%, transparent);
  animation: scrollLine 4s var(--ease-in-out) infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Marquee removed ---------- */


/* ---------- Sections (general) ---------- */
.section {
  padding: var(--section-y) 0;
  position: relative;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 24px);
  margin-bottom: clamp(48px, 6vw, 80px);
  align-items: start;
}

.section-meta {
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.section-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1;
  color: var(--gold);
  font-weight: 300;
}
.section-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.012em;
  font-weight: 400;
  margin: 0 0 28px;
  color: var(--navy);
  max-width: 900px;
}
.section-title em {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}

.section-intro {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 680px;
  margin: 0;
}

.section-body p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-muted);
}
.section-body p.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ---------- About / Pillars ---------- */
.about {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  margin: 10px 0 12px;
}
.pillar p {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
.pillar-num {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.12em;
}

/* ---------- Practice ---------- */
.practice {
  background: var(--ivory);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.practice-card {
  position: relative;
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
  transition: background 0.4s var(--ease-out);
  cursor: pointer;
  overflow: hidden;
}
.practice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out);
  z-index: 0;
}
.practice-card:hover::before { transform: translateY(0); }
.practice-card > * { position: relative; z-index: 1; transition: color 0.4s var(--ease-out); }
.practice-card:hover h3,
.practice-card:hover p,
.practice-card:hover .practice-card-num,
.practice-card:hover .practice-card-arrow { color: var(--ivory); }
.practice-card:hover .practice-card-num { color: var(--gold); }
.practice-card:hover .practice-card-arrow {
  color: var(--gold);
  transform: translateX(8px);
}

.practice-card-num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 18px;
}
.practice-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 14px;
  line-height: 1.15;
}
.practice-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
}
.practice-card-arrow {
  position: absolute;
  bottom: 32px;
  right: 32px;
  font-size: 22px;
  color: var(--ink-muted);
  transition: transform 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

/* ---------- Philosophy ---------- */
.philosophy {
  background: var(--navy);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}
.philosophy::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 60%);
  opacity: 0.12;
  filter: blur(60px);
  pointer-events: none;
}
.philosophy .section-num { color: var(--gold); }
.philosophy .section-label { color: rgba(245, 241, 234, 0.5); }
.philosophy .section-title { color: var(--ivory); margin-top: 18px; }
.philosophy .section-title em { color: var(--gold); }
.philosophy .lede {
  color: rgba(245, 241, 234, 0.78);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.7;
  margin-top: 24px;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.signature-block {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line-on-dark);
  max-width: 500px;
}
.sig-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
}
.sig-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--ivory);
}
.sig-title {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.6);
  margin-top: 4px;
}

.philosophy-visual {
  position: relative;
  height: 480px;
}
.visual-stack { position: relative; height: 100%; }
.stack-card {
  position: absolute;
  background: var(--navy-soft);
  border: 1px solid var(--line-on-dark);
  padding: 24px 28px;
  width: 280px;
  border-radius: var(--radius);
  transition: transform 0.5s var(--ease-out);
}
.stack-card:hover { transform: translateY(-6px) !important; }
.stack-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.stack-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-style: italic;
  color: var(--ivory);
}
.stack-card-1 { top: 20px; left: 0; transform: rotate(-2deg); }
.stack-card-2 { top: 130px; left: 80px; transform: rotate(1deg); }
.stack-card-3 { top: 240px; left: 30px; transform: rotate(-1deg); }
.stack-card-4 { top: 350px; left: 110px; transform: rotate(2deg); }

/* ---------- People ---------- */
.people {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 80px;
}
.partner-card {
  padding: 48px 0;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  align-items: start;
  position: relative;
}
.partner-card:first-child { padding-right: 48px; border-right: 1px solid var(--line); }
.partner-card:last-child { padding-left: 48px; }

.partner-portrait {
  width: 160px;
  height: 200px;
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  overflow: hidden;
}
.portrait-initials {
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--gold);
  font-weight: 300;
  letter-spacing: 0.05em;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.portrait-initials img {
  width: 78%;
  height: auto;
  max-height: 78%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 12px rgba(184, 149, 106, 0.18));
}
.portrait-decoration {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(184, 149, 106, 0.15) 0%, transparent 50%),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(184, 149, 106, 0.04) 14px 15px);
}

.partner-role {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}
.partner-name {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 500;
  margin: 0 0 16px;
  line-height: 1.1;
}
.partner-bio {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0 0 24px;
}

.partner-credentials {
  display: grid;
  gap: 12px;
}
.credential {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.cred-label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.cred-value {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
}

.departments {
  display: grid;
  gap: 64px;
}
.dept-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}
.dept-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 500;
  margin: 0;
  font-style: italic;
  color: var(--navy);
}
.dept-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.dept-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}
.member-card {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 18px;
  padding: 24px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.member-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -10px rgba(10, 22, 40, 0.12);
}
.member-portrait {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  overflow: hidden;
}
.member-portrait img {
  width: 78%;
  height: auto;
  max-height: 90%;
  object-fit: contain;
  display: block;
}
.member-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
}
.member-role {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 4px 0 10px;
  font-weight: 600;
}
.member-card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
}

/* ---------- Insights ---------- */
.insights {
  background: var(--ivory);
}
.insights-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.insight-card {
  background: var(--ivory);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  transition: background 0.4s var(--ease-out);
  position: relative;
}
.insight-card:hover { background: var(--cream); }
.insight-feature {
  grid-row: span 2;
  background: var(--navy);
  color: var(--ivory);
  padding: 48px 40px;
}
.insight-feature:hover { background: var(--navy-soft); }
.insight-feature .insight-tag {
  background: rgba(184, 149, 106, 0.18);
  color: var(--gold);
}
.insight-feature .insight-excerpt { color: rgba(245, 241, 234, 0.75); }
.insight-feature .insight-meta { color: rgba(245, 241, 234, 0.6); }

.insight-tag {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(10, 22, 40, 0.05);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  align-self: flex-start;
}
.insight-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  margin: 0;
  line-height: 1.2;
}
.insight-feature .insight-title {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
}
.insight-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
}
.insight-meta {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}
.dot-sep {
  width: 3px; height: 3px;
  background: currentColor;
  border-radius: 50%;
  display: inline-block;
}

/* ---------- AI CTA Section ---------- */
.ai-cta {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ai-cta-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.ai-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 20px;
}
.ai-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.ai-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  margin: 0 0 24px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.ai-cta h2 em { color: var(--gold); font-style: italic; }
.ai-cta p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-muted);
  margin: 0 0 32px;
  max-width: 520px;
}

.ai-chat-preview {
  background: var(--navy);
  border-radius: 6px;
  padding: 28px;
  display: grid;
  gap: 14px;
  box-shadow: 0 30px 60px -20px rgba(10, 22, 40, 0.25);
  position: relative;
}
.chat-bubble {
  padding: 14px 18px;
  border-radius: 12px;
  max-width: 88%;
  display: grid;
  gap: 6px;
}
.chat-bubble.bot {
  background: var(--navy-soft);
  color: var(--ivory);
  justify-self: start;
  border-top-left-radius: 4px;
}
.chat-bubble.user {
  background: var(--gold);
  color: var(--navy);
  justify-self: end;
  border-top-right-radius: 4px;
}
.chat-bubble p { margin: 0; font-size: 14px; line-height: 1.5; }
.chat-mark {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
}
.chat-typing {
  display: inline-flex;
  gap: 4px;
  padding: 14px 18px;
  background: var(--navy-soft);
  border-radius: 12px;
  border-top-left-radius: 4px;
  justify-self: start;
}
.chat-typing span {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: typing 1.4s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ---------- Contact ---------- */
.contact {
  background: var(--cream);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.office-card {
  background: var(--navy);
  color: var(--ivory);
  padding: 40px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.office-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(184, 149, 106, 0.2) 0%, transparent 70%);
  pointer-events: none;
}
.office-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 600;
}
.office-address {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 32px;
}
.office-address div { display: block; }
.office-channels {
  display: grid;
  gap: 1px;
  background: var(--line-on-dark);
  margin: 0 -40px -40px;
}
.channel {
  background: var(--navy);
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s, padding-left 0.3s;
}
.channel:hover {
  background: var(--navy-soft);
  padding-left: 44px;
}
.channel-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.5);
}
.channel-value {
  font-size: 14px;
  color: var(--ivory);
  font-weight: 500;
}

.direct-emails {
  margin-top: 32px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
}
.direct-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 16px;
}
.direct-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s;
}
.direct-link:last-child { border-bottom: 0; }
.direct-link:hover { padding-left: 6px; }
.direct-link span:first-child {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
}
.direct-email {
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

/* Form */
.contact-form {
  display: grid;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field {
  display: grid;
  gap: 8px;
}
.field-label {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.field input,
.field textarea,
.field select {
  padding: 14px 16px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.3s, background 0.3s;
  font-family: inherit;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 0;
  border-color: var(--gold);
  background: var(--cream);
}

.form-footer {
  display: grid;
  gap: 20px;
  margin-top: 12px;
}
.form-disclaimer {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  font-style: italic;
}
.form-status {
  min-height: 24px;
  font-size: 14px;
  padding: 0 4px;
}
.form-status.success { color: #2d6a4f; }
.form-status.error { color: #9d2521; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--ivory);
  padding: 80px 0 32px;
  border-top: 1px solid var(--line-on-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line-on-dark);
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.footer-icon {
  height: 60px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.footer-brand-text {
  display: flex;
  flex-direction: column;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-bottom: 10px;
}
.footer-brand-sub {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.6);
  margin-top: 4px;
  font-weight: 500;
}
@media (max-width: 768px) {
  .footer-icon { height: 48px; }
  .footer-brand-name { font-size: 20px; }
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-nav-col { display: flex; flex-direction: column; gap: 12px; }
.footer-nav-title {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}
.footer-nav-col a,
.footer-nav-col span {
  font-size: 14px;
  color: rgba(245, 241, 234, 0.7);
  transition: color 0.3s;
}
.footer-nav-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 12px;
  color: rgba(245, 241, 234, 0.5);
}
.footer-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ---------- AI Floating Chat ---------- */
.ai-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 14px 18px;
  background: var(--navy);
  color: var(--ivory);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  box-shadow: 0 14px 40px -8px rgba(10, 22, 40, 0.45);
  z-index: 98;
  transition: transform 0.3s var(--ease-out), background 0.3s;
}
.ai-fab svg { color: var(--gold); }
.ai-fab:hover { transform: translateY(-3px); background: var(--gold); color: var(--navy); }
.ai-fab:hover svg { color: var(--navy); }

.ai-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
.ai-modal.open { opacity: 1; pointer-events: auto; }
.ai-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.65);
  backdrop-filter: blur(6px);
}
.ai-modal-panel {
  position: absolute;
  bottom: 0; right: 0;
  width: min(440px, 100%);
  height: min(720px, 100vh);
  background: var(--cream);
  display: flex;
  flex-direction: column;
  border-radius: 16px 0 0 0;
  box-shadow: -20px 0 60px -10px rgba(10, 22, 40, 0.35);
  transform: translateX(20px);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.4s var(--ease-out);
  overflow: hidden;
}
.ai-modal.open .ai-modal-panel {
  transform: translateX(0);
  opacity: 1;
}
.ai-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--navy);
  color: var(--ivory);
}
.ai-modal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ai-modal-brand .brand-mark { color: var(--gold); }
.ai-modal-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.1;
}
.ai-modal-sub {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.55);
  margin-top: 3px;
}
.ai-modal-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(245, 241, 234, 0.7);
  transition: background 0.3s, color 0.3s;
}
.ai-modal-close:hover {
  background: rgba(245, 241, 234, 0.1);
  color: var(--gold);
}

.ai-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--cream);
}
.ai-modal-body .chat-bubble {
  max-width: 90%;
  border-radius: 14px;
}
.ai-modal-body .chat-bubble.bot {
  background: var(--ivory);
  color: var(--ink);
  border: 1px solid var(--line);
}
.ai-modal-body .chat-bubble.bot .chat-mark { color: var(--gold); }
.ai-modal-body .chat-bubble.bot p { color: var(--ink); }
.ai-modal-body .chat-bubble.user {
  background: var(--navy);
  color: var(--ivory);
}
.chat-disclaimer {
  font-size: 11px !important;
  color: var(--ink-soft) !important;
  font-style: italic;
  margin-top: 4px !important;
}

.ai-modal-suggestions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 24px;
  border-top: 1px solid var(--line);
}
.suggestion {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink);
  background: var(--ivory);
  transition: all 0.3s;
}
.suggestion:hover {
  background: var(--navy);
  color: var(--ivory);
  border-color: var(--navy);
}

.ai-modal-input {
  display: flex;
  align-items: center;
  padding: 16px 20px 20px;
  gap: 10px;
  border-top: 1px solid var(--line);
}
.ai-modal-input input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ivory);
  font-size: 14px;
  transition: border-color 0.3s;
}
.ai-modal-input input:focus { outline: 0; border-color: var(--gold); }
.ai-modal-input button {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  transition: background 0.3s, transform 0.3s;
}
.ai-modal-input button:hover { background: var(--gold); color: var(--navy); transform: scale(1.05); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="100"] { transition-delay: 0.1s; }
.reveal[data-delay="250"] { transition-delay: 0.25s; }
.reveal[data-delay="400"] { transition-delay: 0.4s; }
.reveal[data-delay="550"] { transition-delay: 0.55s; }

/* On-load hero anim */
.hero .reveal { opacity: 0; transform: translateY(30px); }
body.loaded .hero .reveal {
  opacity: 1; transform: translateY(0);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .lang-toggle { display: none; }

  .section-grid { grid-template-columns: 1fr; gap: 24px; }
  .section-meta { position: static; flex-direction: row; align-items: baseline; gap: 16px; }
  .section-num { font-size: 36px; }

  .practice-grid { grid-template-columns: repeat(2, 1fr); }

  .philosophy-grid { grid-template-columns: 1fr; }
  .philosophy-visual { height: 380px; }

  .partners-grid { grid-template-columns: 1fr; }
  .partner-card:first-child { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .partner-card:last-child { padding-left: 0; }
  .partner-card { grid-template-columns: 120px 1fr; gap: 24px; padding: 36px 0; }
  .partner-portrait { width: 120px; height: 150px; }
  .portrait-initials { font-size: 42px; }

  .insights-grid { grid-template-columns: 1fr 1fr; }
  .insight-feature { grid-row: span 1; grid-column: span 2; }

  .ai-cta-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-nav { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .hero { padding-top: 130px; }
  .hero-title { font-size: clamp(46px, 14vw, 80px); }
  .hero-meta { grid-template-columns: 1fr; gap: 24px; }
  .meta-num { font-size: 36px; }

  .practice-grid { grid-template-columns: 1fr; }
  .practice-card { padding: 32px 24px; }

  .pillars { grid-template-columns: 1fr; gap: 24px; }

  .insights-grid { grid-template-columns: 1fr; }
  .insight-feature { grid-column: span 1; }
  .insight-feature .insight-title { font-size: 26px; }

  .partner-card { grid-template-columns: 1fr; }
  .partner-portrait { width: 100%; max-width: 180px; height: 220px; }
  .credential { grid-template-columns: 1fr; gap: 4px; }

  .form-row { grid-template-columns: 1fr; }

  .footer-nav { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .office-card { padding: 28px; }
  .office-channels { margin: 0 -28px -28px; }
  .channel { padding: 16px 28px; }
  .office-address { font-size: 18px; }

  .ai-fab { bottom: 20px; right: 20px; padding: 12px 18px 12px 16px; font-size: 11px; }
  .ai-fab span { display: none; }
  .ai-fab { padding: 14px; }

  .ai-modal-panel { width: 100%; height: 100vh; border-radius: 0; }

  .scroll-cue { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   EMBEDDED AI LEGAL GUIDE SECTION
   ============================================================ */

.ai-guide-section {
  background: var(--navy);
  padding: var(--section-y) 0;
  position: relative;
  overflow: hidden;
}
.ai-guide-section::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 60%);
  opacity: 0.08; filter: blur(80px); pointer-events: none;
}

/* Section header */
.ai-guide-header { margin-bottom: 48px; }
.ai-guide-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 20px;
}
.ai-guide-eyebrow .ai-dot {
  width: 6px; height: 6px; background: var(--gold); border-radius: 50%;
  animation: ai-blink 2s ease-in-out infinite;
}
@keyframes ai-blink { 0%,100%{opacity:0.4} 50%{opacity:1} }
.ai-guide-section .section-title { color: var(--ivory); }
.ai-guide-section .section-title em { color: var(--gold); font-style: italic; }
.ai-guide-section .section-num { color: var(--gold); }
.ai-guide-section .section-label { color: rgba(245,241,234,0.5); }

/* Disclaimer bar */
.ai-disclaimer-bar {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(184,149,106,0.1); border: 1px solid rgba(184,149,106,0.3);
  border-radius: 2px; padding: 16px 22px; margin-bottom: 28px;
  font-size: 13px; line-height: 1.6; color: rgba(245,241,234,0.75);
}
.ai-disclaimer-bar svg { color: var(--gold); flex-shrink: 0; margin-top: 1px; }
.ai-disclaimer-bar strong { color: var(--gold); }

/* Input panel */
.ai-input-panel {
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-on-dark);
  border-radius: 4px; padding: clamp(28px,4vw,48px);
  margin-bottom: 24px;
}
.ai-input-panel-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; margin-bottom: 22px; flex-wrap: wrap;
}
.ai-input-title {
  font-family: var(--font-display); font-size: clamp(22px,3vw,30px);
  font-weight: 500; color: var(--ivory); line-height: 1.1;
}
.ai-input-sub { font-size: 14px; color: rgba(245,241,234,0.6); margin-top: 6px; }
.ai-avail-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border: 1px solid var(--line-on-dark);
  border-radius: 999px; font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; font-weight: 700; color: var(--gold); flex-shrink: 0;
}

.ai-example-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.ai-chip {
  padding: 8px 14px; border: 1px solid rgba(245,241,234,0.2);
  border-radius: 999px; font-size: 12px; color: rgba(245,241,234,0.65);
  background: transparent; cursor: pointer; transition: all 0.3s;
}
.ai-chip:hover {
  background: rgba(184,149,106,0.15); border-color: var(--gold); color: var(--gold);
}

#aiSituationInput {
  width: 100%; min-height: 140px; padding: 18px 20px;
  background: rgba(255,255,255,0.06); border: 1.5px solid var(--line-on-dark);
  border-radius: 2px; font-size: 15px; font-family: var(--font-body);
  line-height: 1.7; color: var(--ivory); resize: vertical;
  transition: border-color 0.3s, background 0.3s;
}
#aiSituationInput::placeholder { color: rgba(245,241,234,0.35); }
#aiSituationInput:focus {
  outline: 0; border-color: var(--gold);
  background: rgba(255,255,255,0.09);
}

.ai-submit-row {
  display: flex; align-items: center; gap: 16px;
  margin-top: 16px; flex-wrap: wrap;
}
.btn-ai-analyse {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; background: var(--gold); color: var(--navy);
  border-radius: 2px; font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 700; transition: all 0.35s var(--ease-out);
  border: 0; cursor: pointer;
}
.btn-ai-analyse:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-ai-analyse:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.ai-privacy { font-size: 11px; color: rgba(245,241,234,0.45); }

/* Loading */
.ai-loading {
  display: none; text-align: center;
  padding: 48px 24px;
}
.ai-loading.visible { display: block; }
.ai-thinking-dots { display: inline-flex; gap: 6px; margin-bottom: 18px; }
.ai-thinking-dots span {
  width: 10px; height: 10px; background: var(--gold); border-radius: 50%;
  animation: ai-thinking 1.4s ease-in-out infinite;
}
.ai-thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-thinking-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ai-thinking {
  0%,60%,100%{transform:translateY(0);opacity:0.35}
  30%{transform:translateY(-8px);opacity:1}
}
.ai-thinking-label {
  font-family: var(--font-display); font-size: 20px;
  font-style: italic; color: rgba(245,241,234,0.6);
}

/* Results */
.ai-results { display: none; margin-top: 8px; }
.ai-results.visible { display: block; animation: fadeInUp 0.5s var(--ease-out) forwards; }
@keyframes fadeInUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }

.ai-not-advice {
  display: flex; align-items: center; gap: 10px;
  background: rgba(184,149,106,0.1); border: 1px solid rgba(184,149,106,0.25);
  border-radius: 2px; padding: 12px 18px; margin-bottom: 20px;
  font-size: 12px; font-weight: 600; color: var(--gold); letter-spacing: 0.06em;
}

.ai-result-card {
  background: var(--ivory); border-radius: 4px; overflow: hidden; margin-bottom: 20px;
}
.ai-result-header {
  background: var(--navy-soft); border-bottom: 1px solid var(--line-on-dark);
  padding: 20px 28px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.ai-field-label {
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 4px;
}
.ai-field-name {
  font-family: var(--font-display); font-size: 26px; font-weight: 500; color: var(--ivory);
}

/* Urgency badges */
.ai-urgency {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; font-size: 11px;
  font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; flex-shrink: 0;
}
.ai-urgency-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ai-urgency.low  { background: #E8F5EE; color: #2D6A4F; }
.ai-urgency.medium { background: #FFF8E1; color: #D4A017; }
.ai-urgency.high { background: #FDE8E8; color: #C0392B; }

.ai-result-body { padding: 28px; display: grid; gap: 24px; }

.ai-block-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
  font-weight: 700; color: var(--gold); padding-bottom: 10px;
  border-bottom: 1px solid var(--line); margin-bottom: 12px;
}
.ai-block-text {
  font-size: 15px; line-height: 1.75; color: var(--ink-muted);
}

.ai-result-list { list-style: none; display: grid; gap: 8px; }
.ai-result-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; line-height: 1.6; color: var(--ink-muted);
}
.ai-result-list li::before { content: "→"; color: var(--gold); font-weight: 700; flex-shrink: 0; }

.ai-consult-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--ivory); padding: 22px 28px; border-radius: 2px;
  display: flex; align-items: center; gap: 20px; justify-content: space-between;
}
.ai-consult-type {
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 5px;
}
.ai-consult-name {
  font-family: var(--font-display); font-size: 24px; font-weight: 500;
}
.ai-consult-reason { font-size: 13px; color: rgba(245,241,234,0.7); margin-top: 6px; line-height: 1.5; }
.ai-consult-icon {
  width: 48px; height: 48px; background: rgba(184,149,106,0.2); border-radius: 50%;
  display: grid; place-items: center; color: var(--gold); flex-shrink: 0;
}

/* Attorney cards (inside AI results) */
.ai-attorneys-title {
  font-family: var(--font-display); font-size: 26px; font-weight: 500;
  margin: 24px 0 18px; color: var(--ivory);
  display: flex; align-items: center; gap: 16px;
}
.ai-attorneys-title::after { content: ""; flex: 1; height: 1px; background: var(--line-on-dark); }

.ai-attorneys-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}

.ai-attorney-card {
  background: var(--ivory); border-radius: 4px; overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.ai-attorney-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -8px rgba(6,14,28,0.4);
}
.ai-attorney-top {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  padding: 20px; display: flex; gap: 16px; align-items: flex-start;
}
.ai-attorney-portrait {
  width: 64px; height: 80px; border-radius: 2px; flex-shrink: 0;
  background: rgba(184,149,106,0.15); display: grid; place-items: center;
  color: var(--gold); font-family: var(--font-display); font-size: 24px;
  font-weight: 300; position: relative; overflow: hidden;
}
.ai-attorney-portrait-bg {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(184,149,106,0.06) 12px 13px);
}
.ai-attorney-role {
  font-size: 9px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 5px;
}
.ai-attorney-name {
  font-family: var(--font-display); font-size: 18px; font-weight: 500;
  color: var(--ivory); line-height: 1.2; margin-bottom: 8px;
}
.ai-attorney-badges { display: flex; gap: 5px; flex-wrap: wrap; }
.ai-attorney-badge {
  padding: 3px 9px; background: rgba(184,149,106,0.18); color: var(--gold);
  border-radius: 999px; font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
}

.ai-attorney-body { padding: 18px 20px; }
.ai-attorney-exp { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; font-weight: 600; }
.ai-attorney-bio { font-size: 13px; line-height: 1.55; color: var(--ink-muted); margin-bottom: 16px; }
.ai-attorney-ctas { display: grid; gap: 7px; }

.ai-cta-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px; background: #25D366; color: #fff; border-radius: 2px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  transition: background 0.3s;
}
.ai-cta-whatsapp:hover { background: #128C7E; }
.ai-cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.ai-cta-email, .ai-cta-book {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px; border-radius: 2px; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 700; transition: all 0.3s;
}
.ai-cta-email { border: 1.5px solid var(--line); color: var(--ink); background: var(--cream); }
.ai-cta-email:hover { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.ai-cta-book { background: var(--gold); color: var(--navy); }
.ai-cta-book:hover { background: var(--gold-light); }

/* Reset button */
.ai-reset-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border: 1.5px solid var(--line-on-dark);
  color: rgba(245,241,234,0.7); border-radius: 2px; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  margin-top: 20px; transition: all 0.3s; background: transparent; cursor: pointer;
}
.ai-reset-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================================
   Section containers — minimal positioning context
   ============================================================ */
.about, .practice, .people, .insights, .contact,
.hero, .philosophy, .ai-guide-section {
  position: relative;
  overflow: hidden;
}
.about > .container,
.practice > .container,
.people > .container,
.insights > .container,
.contact > .container,
.hero > .container,
.philosophy > .container,
.ai-guide-section > .container {
  position: relative;
  z-index: 2;
}

.site-footer { position: relative; }
.site-footer > .container { position: relative; z-index: 2; }

/* Smoother section transitions */
.section + .section { border-top: none; }

/* Text-style hero stat (e.g. DIAC, accreditation acronyms) */
.meta-num.meta-num-text {
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: 0.04em;
  font-weight: 400;
}
