/* ============================================
   ASHFORD & CRANE
   Navy-centred design system · dual theme
   ============================================ */

/* ===== Theme tokens ===== */
:root {
  /* Brand */
  --navy-900: #0b1426;
  --navy-800: #111d36;
  --navy-700: #16284a;
  --navy-600: #1f3563;
  --navy-500: #2a4a87;
  --navy-400: #4267a8;
  --navy-300: #7090c4;
  --navy-200: #a8bcd8;
  --navy-100: #d6e0ec;
  --navy-50:  #eef2f8;

  --gold-700: #8a6f3c;
  --gold-600: #a88a4f;
  --gold-500: #c9a96e;
  --gold-400: #d6bb86;
  --gold-300: #e3cea2;

  --accent: #b8434f;

  /* Type */
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:  'DM Mono', 'SF Mono', 'Courier New', monospace;
  /* Arabic typography (auto-applied via [lang="ar"]) */
  --serif-ar: 'Amiri', 'Cormorant Garamond', 'Times New Roman', serif;
  --sans-ar:  'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
  --mono-ar:  'IBM Plex Sans Arabic', 'DM Mono', monospace;

  /* Spacing */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 48px; --s-6: 64px; --s-7: 96px; --s-8: 128px;

  /* Layout */
  --max-w: 1320px;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 2px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --t-fast: .25s; --t-mid: .4s; --t-slow: .8s;

  /* === LIGHT THEME (default) === */
  --bg:        #f5f3ec;
  --bg-2:      #ebe7d9;
  --bg-3:      #e1dcca;
  --surface:   #faf8f2;
  --surface-2: #ffffff;
  --ink:       #0b1426;
  --ink-soft:  #2a3957;
  --ink-muted: #5b6a87;
  --ink-faint: #8a96ac;
  --line:      rgba(11,20,38,.14);
  --line-soft: rgba(11,20,38,.08);
  --gold:      var(--gold-600);
  --accent-c:  var(--accent);
  --shadow-sm: 0 1px 2px rgba(11,20,38,.06);
  --shadow-md: 0 12px 30px -18px rgba(11,20,38,.25);
  --shadow-lg: 0 30px 60px -30px rgba(11,20,38,.3);

  --inverse-bg:   var(--navy-900);
  --inverse-bg-2: var(--navy-800);
  --inverse-ink:  #e8ecf3;
  --inverse-line: rgba(232,236,243,.14);

  color-scheme: light;
}

[data-theme="dark"] {
  --bg:        #07101f;
  --bg-2:      #0b1426;
  --bg-3:      #111d36;
  --surface:   #0e1827;
  --surface-2: #142035;
  --ink:       #e6ecf5;
  --ink-soft:  #c5cfe0;
  --ink-muted: #8e9bb3;
  --ink-faint: #5e6b85;
  --line:      rgba(214,224,236,.12);
  --line-soft: rgba(214,224,236,.06);
  --gold:      var(--gold-400);
  --accent-c:  #d96272;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 12px 30px -18px rgba(0,0,0,.6);
  --shadow-lg: 0 30px 60px -30px rgba(0,0,0,.7);

  --inverse-bg:   #02060d;
  --inverse-bg-2: #050b16;
  --inverse-ink:  #e6ecf5;
  --inverse-line: rgba(214,224,236,.1);

  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --bg: #07101f; --bg-2: #0b1426; --bg-3: #111d36;
    --surface: #0e1827; --surface-2: #142035;
    --ink: #e6ecf5; --ink-soft: #c5cfe0; --ink-muted: #8e9bb3; --ink-faint: #5e6b85;
    --line: rgba(214,224,236,.12); --line-soft: rgba(214,224,236,.06);
    --gold: var(--gold-400); --accent-c: #d96272;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 12px 30px -18px rgba(0,0,0,.6);
    --shadow-lg: 0 30px 60px -30px rgba(0,0,0,.7);
    --inverse-bg: #02060d; --inverse-bg-2: #050b16;
    --inverse-ink: #e6ecf5; --inverse-line: rgba(214,224,236,.1);
    color-scheme: dark;
  }
}

/* ===== Reset ===== */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 90px;
}
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  font-size: 16px;
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease);
}
img,svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
ul { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--navy-700); color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy-900); color: #fff;
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 12px;
  z-index: 1000;
  white-space: nowrap;
}
.skip-link:focus { left: 16px; top: 16px; }
[dir="rtl"] .skip-link { left: auto; right: -9999px; }
[dir="rtl"] .skip-link:focus { left: auto; right: 16px; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ===================== NAV ===================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  background: transparent;
  transition: background var(--t-mid) var(--ease),
              padding var(--t-mid) var(--ease),
              backdrop-filter var(--t-mid),
              border-color var(--t-mid);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  padding: 12px 0;
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: flex; align-items: baseline; gap: 12px;
  position: relative;
}
.brand-mark {
  font-family: var(--serif);
  font-size: 26px; font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink);
  line-height: 1;
  position: relative;
  padding-right: 2px;
}
.brand-mark::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform-origin: left;
  transition: transform var(--t-mid) var(--ease);
}
.nav__brand:hover .brand-mark::after { transform: scaleX(1.2); }
[dir="rtl"] .brand-mark::after {
  background: linear-gradient(-90deg, var(--gold), transparent);
  transform-origin: right;
}
.brand-mark.big { font-size: 56px; }
.brand-full {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  line-height: 1;
}
.brand-full .amp { color: var(--gold); font-style: normal; }

.nav__links {
  display: flex; gap: 36px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
}
.nav__links a {
  position: relative;
  padding: 8px 0;
  color: var(--ink-soft);
  transition: color var(--t-fast);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.active { color: var(--ink); }
.nav__links a.active::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 2px;
  height: 1.5px; background: var(--gold);
}

.nav__right { display: flex; align-items: center; gap: 16px; }

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  transition: border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--ink); color: var(--ink); transform: rotate(15deg); }
.theme-toggle svg { width: 18px; height: 18px; transition: opacity var(--t-fast), transform var(--t-mid); }
.theme-toggle .icon-sun { opacity: 0; position: absolute; transform: scale(.5) rotate(-90deg); }
.theme-toggle .icon-moon { opacity: 1; transform: scale(1) rotate(0); }
[data-theme="dark"] .theme-toggle .icon-sun { opacity: 1; transform: scale(1) rotate(0); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: scale(.5) rotate(90deg); }

.nav__cta {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.nav__cta:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }

.nav__burger {
  display: none;
  width: 40px; height: 40px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 50%;
  flex-shrink: 0;
}
.nav__burger span {
  position: absolute; left: 12px; right: 12px;
  height: 1.5px; background: var(--ink);
  transition: transform var(--t-fast) var(--ease), top var(--t-fast), bottom var(--t-fast);
}
.nav__burger span:nth-child(1) { top: 14px; }
.nav__burger span:nth-child(2) { bottom: 14px; }
.nav__burger.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav__burger.open span:nth-child(2) { bottom: 19px; transform: rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--bg);
  padding: 110px var(--pad) 40px;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  transform: translateY(-110%);
  transition: transform var(--t-slow) var(--ease-out);
  z-index: 90;
  max-height: 100vh;
  overflow-y: auto;
}
.nav__mobile.open { transform: translateY(0); box-shadow: var(--shadow-lg); }
.nav__mobile a {
  font-family: var(--serif);
  font-size: 32px;
  font-style: italic;
  font-weight: 400;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}
.nav__mobile a:last-of-type { border-bottom: 0; }
.nav__mobile .nav__cta {
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
  align-self: flex-start;
  margin-top: 24px;
  border: 1px solid var(--ink);
  padding: 14px 26px;
  color: var(--bg);
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 160px 0 80px;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
}

/* Animated mesh-gradient backdrop — slow drift, subtle but distinctive */
.hero::before {
  content: '';
  position: absolute; inset: -10%;
  background:
    radial-gradient(ellipse 50% 40% at 85% 15%, color-mix(in srgb, var(--gold) 28%, transparent), transparent 55%),
    radial-gradient(ellipse 45% 35% at 12% 85%, color-mix(in srgb, var(--navy-500) 20%, transparent), transparent 55%),
    radial-gradient(ellipse 35% 30% at 50% 50%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 50%);
  filter: blur(8px);
  animation: mesh-drift 22s var(--ease) infinite alternate;
  pointer-events: none;
  z-index: -1;
}
[data-theme="dark"] .hero::before {
  background:
    radial-gradient(ellipse 50% 40% at 85% 15%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 55%),
    radial-gradient(ellipse 45% 35% at 12% 85%, color-mix(in srgb, var(--navy-400) 15%, transparent), transparent 55%),
    radial-gradient(ellipse 35% 30% at 50% 50%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 50%);
}
@keyframes mesh-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-3%, 2%) scale(1.05); }
  100% { transform: translate(2%, -2%) scale(1.02); }
}

/* Decorative sweeping line — appears on scroll, adds editorial feel */
.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 8%;
  width: 1px; height: 0;
  background: linear-gradient(180deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
  animation: line-sweep 1.6s 1.2s var(--ease-out) forwards;
  z-index: 0;
}
@keyframes line-sweep { to { height: 65%; } }

.hero__grain {
  position: absolute; inset: 0;
  opacity: .35;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, color-mix(in srgb, var(--ink) 3%, transparent) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
  z-index: 0;
}
[data-theme="dark"] .hero__grain { mix-blend-mode: screen; opacity: .15; }

.hero__grid {
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  z-index: 2;
}
.hero__meta {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--ink-muted);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 56px;
  flex-wrap: wrap;
  animation: fade-up 1s var(--ease) both;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-c); }
.bar { opacity: .4; }

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 10vw, 152px);
  line-height: .92;
  letter-spacing: -.025em;
  color: var(--ink);
}
.hero__title .line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: fade-up 1.1s var(--ease-out) forwards;
}
.hero__title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
  position: relative;
  display: inline-block;
}
/* Subtle glow halo behind the gold accent words — creative touch */
.hero__title em::before {
  content: '';
  position: absolute;
  inset: -10% -5%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--gold) 22%, transparent), transparent 70%);
  filter: blur(20px);
  z-index: -1;
  opacity: 0;
  animation: halo-fade 1.4s 1.2s var(--ease-out) forwards;
}
@keyframes halo-fade { to { opacity: 1; } }
.line-1 { animation-delay: .1s; }
.line-2 { animation-delay: .25s; padding-left: clamp(20px, 8vw, 120px); }
.line-3 { animation-delay: .4s; }
.line-4 { animation-delay: .55s; padding-left: clamp(40px, 14vw, 220px); }

.hero__rule {
  margin: 56px 0 36px;
  width: 0; height: 1px;
  background: var(--gold);
  animation: rule-grow 1.2s .8s var(--ease-out) forwards;
}
@keyframes rule-grow { to { width: 120px; } }

.hero__caption {
  font-family: var(--serif);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink-soft);
  opacity: 0;
  animation: fade-up 1s 1s var(--ease-out) forwards;
  max-width: 60ch;
}

.hero__actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 36px;
  opacity: 0;
  animation: fade-up 1s 1.15s var(--ease-out) forwards;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  border: 1px solid transparent;
  position: relative;
  white-space: nowrap;
  cursor: pointer;
  border-radius: var(--radius);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn--primary:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--gold {
  background: var(--gold);
  color: var(--navy-900);
  border-color: var(--gold);
}
.btn--gold:hover { background: transparent; color: var(--gold); border-color: var(--gold); }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 88px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  opacity: 0;
  animation: fade-up 1s 1.3s var(--ease-out) forwards;
}
.stat { display: flex; flex-direction: column; gap: 12px; }
.stat__row { display: flex; align-items: baseline; gap: 4px; }
.stat__num {
  font-family: var(--serif);
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--ink);
}
.stat__plus {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--gold);
  line-height: 1;
}
.stat__plus--lead { margin-right: 2px; }
.stat__label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-muted);
}

.hero__columns {
  position: absolute;
  right: -60px; top: 50%;
  transform: translateY(-50%);
  width: 220px; height: 70%;
  color: var(--gold);
  opacity: .1;
  pointer-events: none;
  z-index: 1;
}
[data-theme="dark"] .hero__columns { opacity: .08; }
.column-svg svg { width: 100%; height: 100%; }

.hero__scroll {
  position: absolute;
  left: var(--pad);
  bottom: 28px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: var(--ink-faint);
  z-index: 3;
}
.scroll-line {
  width: 60px; height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.scroll-line::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 30%;
  background: var(--gold);
  animation: scroll-pulse 2.4s var(--ease) infinite;
}
@keyframes scroll-pulse {
  0% { left: -30%; }
  100% { left: 130%; }
}

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* ===================== MARQUEE ===================== */
.marquee {
  background: var(--inverse-bg);
  color: var(--inverse-ink);
  border-top: 1px solid var(--inverse-line);
  border-bottom: 1px solid var(--inverse-line);
  overflow: hidden;
  padding: 26px 0;
  position: relative;
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--inverse-bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--inverse-bg), transparent); }
.marquee__track {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  animation: marquee 40s linear infinite;
  width: max-content;
  direction: ltr;  /* keep track LTR so animation math works regardless of page dir */
}
.marquee__track span:nth-child(even) { color: var(--gold-500); font-style: normal; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ===================== PHILOSOPHY ===================== */
.philosophy {
  padding: clamp(80px, 12vw, 140px) 0;
  background: var(--bg);
  position: relative;
}
.philosophy::before {
  content: '';
  position: absolute; left: 50%; top: 0;
  width: 1px; height: 80px;
  background: var(--gold);
  transform: translateX(-50%);
}
.philosophy__grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 80px;
  align-items: start;
}
.philosophy__label {
  display: flex; flex-direction: column; gap: 12px;
  position: sticky; top: 120px;
}
.num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--gold);
}
.lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.section-eyebrow {
  font-family: var(--serif);
  font-size: clamp(14px, 1.2vw, 16px);
  text-transform: uppercase;
  letter-spacing: .3em;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 28px;
}
.lede {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--ink);
  max-width: 26ch;
}
.lede em { font-style: italic; color: var(--gold); }

.philosophy__signature {
  margin-top: 56px;
  display: flex; gap: 20px; align-items: center;
}
.sig {
  width: 100px;
  color: var(--accent-c);
}
.sig svg { width: 100%; height: auto; }
.sig-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
}
.sig-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 4px;
}

/* ===================== PRACTICE LIST ===================== */
.practice-section {
  padding: clamp(80px, 12vw, 140px) 0;
  background: var(--inverse-bg);
  color: var(--inverse-ink);
  position: relative;
  overflow: hidden;
}
.practice-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(201,169,110,.08), transparent 50%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(184,67,79,.05), transparent 50%);
  pointer-events: none;
}
.section-head {
  margin-bottom: 72px;
  position: relative;
  z-index: 1;
}
.num-mark {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: var(--gold-500);
  margin-bottom: 24px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6.5vw, 100px);
  line-height: .95;
  font-weight: 400;
  letter-spacing: -.02em;
}
.section-title span { display: block; }
.section-title em { font-style: italic; color: var(--gold-500); }
.section-title span:nth-child(2) { padding-left: clamp(40px, 10vw, 140px); }

.practice-list { position: relative; z-index: 1; }
.practice-row {
  display: grid;
  grid-template-columns: 80px 1fr 1.6fr 50px;
  gap: 32px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid rgba(232,236,243,.12);
  cursor: pointer;
  transition: padding var(--t-mid) var(--ease), background var(--t-mid) var(--ease);
  position: relative;
}
.practice-row:last-of-type { border-bottom: 1px solid rgba(232,236,243,.12); }
.practice-row::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(201,169,110,.06), transparent);
  transition: width var(--t-slow) var(--ease-out);
}
.practice-row:hover { padding-left: 24px; }
.practice-row:hover::before { width: 100%; }
.practice-row__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .15em;
  color: var(--gold-500);
  position: relative; z-index: 1;
}
.practice-row__title {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 400;
  letter-spacing: -.01em;
  position: relative; z-index: 1;
  transition: color var(--t-fast), font-style var(--t-fast);
}
.practice-row:hover .practice-row__title {
  color: var(--gold-500);
  font-style: italic;
}
.practice-row__desc {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(232,236,243,.7);
  max-width: 56ch;
  position: relative; z-index: 1;
}
.practice-row__arrow {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--gold-500);
  text-align: right;
  transition: transform var(--t-mid) var(--ease);
  position: relative; z-index: 1;
}
.practice-row:hover .practice-row__arrow { transform: translateX(10px); }

.practice-foot {
  margin-top: 56px;
  text-align: right;
  position: relative; z-index: 1;
}
.link-arrow {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .18em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  transition: gap var(--t-fast), color var(--t-fast);
}
.link-arrow:hover { gap: 18px; color: var(--gold-500); }
.link-arrow span { font-family: var(--serif); font-size: 18px; }

/* ===================== QUOTES ===================== */
.quotes {
  padding: clamp(80px, 12vw, 140px) 0;
  background: var(--bg-2);
  color: var(--ink);
}
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.quote {
  background: var(--surface);
  padding: 44px 36px 36px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.quote::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold) 25%, var(--gold) 75%, transparent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--t-slow) var(--ease-out);
}
[dir="rtl"] .quote::before { left: auto; right: 0; }
.quote:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--gold) 40%, var(--line));
}
.quote:hover::before { transform: scaleY(1); }
.quote__mark {
  font-family: var(--serif);
  font-size: 76px;
  line-height: 1;
  color: var(--gold);
  position: absolute;
  top: 16px; left: 22px;
  opacity: .3;
}
.quote blockquote {
  font-family: var(--serif);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  font-style: italic;
  margin-top: 28px;
  margin-bottom: 28px;
  flex: 1;
  color: var(--ink);
}
.quote figcaption {
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.cite-name {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 500;
  color: var(--ink);
}
.cite-org {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--gold);
}

/* ===================== ATTORNEYS PREVIEW ===================== */
.attorneys-preview {
  padding: clamp(80px, 12vw, 140px) 0;
  background: var(--bg);
  color: var(--ink);
}
.attorneys-preview .section-title em { color: var(--gold); }
.att-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.att-card {
  display: flex; flex-direction: column;
  transition: transform var(--t-mid) var(--ease);
  cursor: pointer;
}
.att-card:hover { transform: translateY(-6px); }
.att-card__portrait {
  aspect-ratio: 4/5;
  overflow: hidden;
  margin-bottom: 18px;
  position: relative;
  border-radius: var(--radius);
  background: var(--inverse-bg);
  box-shadow: 0 1px 3px rgba(11,20,38,.08);
  transition: box-shadow var(--t-mid) var(--ease);
}
[data-theme="dark"] .att-card__portrait {
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.att-card:hover .att-card__portrait {
  box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--gold) 60%, transparent),
              0 2px 8px rgba(11,20,38,.12);
}
.att-card__portrait::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  z-index: 2;
  pointer-events: none;
  transition: border-color var(--t-mid);
}
.att-card:hover .att-card__portrait::before {
  border-color: color-mix(in srgb, var(--gold) 70%, transparent);
}
.att-card__portrait::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7,16,31,.5));
  pointer-events: none;
}
.att-card__portrait svg { width: 100%; height: 100%; }
.att-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.005em;
  color: var(--ink);
}
.att-card__role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 6px 0 10px;
}
.att-card__bio {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* ===================== CTA ===================== */
.cta {
  padding: clamp(80px, 12vw, 140px) 0;
  background: var(--inverse-bg);
  color: var(--inverse-ink);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 100%, rgba(201,169,110,.16), transparent 60%);
  pointer-events: none;
}
.cta__inner {
  text-align: center;
  position: relative; z-index: 1;
  max-width: 740px;
  margin: 0 auto;
}
.cta__eye {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--gold-500);
  margin-bottom: 28px;
}
.cta__title {
  font-family: var(--serif);
  font-size: clamp(36px, 5.5vw, 76px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -.015em;
}
.cta__title em { font-style: italic; color: var(--gold-500); }
.cta__sub {
  font-family: var(--serif);
  font-size: clamp(16px, 1.4vw, 19px);
  font-style: italic;
  margin: 26px 0 44px;
  color: rgba(232,236,243,.75);
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--inverse-bg-2);
  color: var(--inverse-ink);
  padding: 80px 0 36px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 64px;
  margin-bottom: 56px;
}
.footer__brand p {
  margin-top: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: rgba(232,236,243,.7);
  line-height: 1.5;
  max-width: 28ch;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__cols h4 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: var(--gold-500);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer__cols ul li {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.9;
  color: rgba(232,236,243,.78);
  transition: color var(--t-fast);
}
.footer__cols ul li:hover, .footer__cols a:hover { color: var(--gold-500); }

.footer__rule {
  height: 1px;
  background: rgba(232,236,243,.1);
  margin-bottom: 28px;
}
.footer__bottom {
  display: flex; justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(232,236,243,.5);
}
.footer__legal a { transition: color var(--t-fast); }
.footer__legal a:hover { color: var(--gold-500); }

/* ===================== INNER PAGES ===================== */
.page-hero {
  padding: 180px 0 90px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 90% 10%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 55%);
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__eye {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: var(--gold);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 14px;
}
.page-hero__eye::before {
  content: ''; width: 28px; height: 1px; background: var(--gold);
}
.page-hero__title {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 130px);
  line-height: .95;
  font-weight: 400;
  letter-spacing: -.02em;
  max-width: 14ch;
  color: var(--ink);
}
.page-hero__title em { font-style: italic; color: var(--gold); }
.page-hero__sub {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  margin-top: 36px;
  max-width: 60ch;
  color: var(--ink-soft);
}

/* Practice page */
.practice-detail {
  padding: 90px 0 clamp(80px, 12vw, 140px);
  background: var(--bg);
}
.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.practice-card {
  background: var(--surface);
  padding: 44px 40px;
  display: flex; flex-direction: column;
  min-height: 300px;
  transition: background var(--t-mid) var(--ease), color var(--t-mid) var(--ease);
  position: relative;
  overflow: hidden;
}
/* Decorative gold corner accent */
.practice-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 28px 28px 0;
  border-color: transparent var(--gold) transparent transparent;
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease);
}
.practice-card:hover::before { opacity: .9; }
[dir="rtl"] .practice-card::before {
  right: auto; left: 0;
  border-width: 0 0 28px 28px;
  border-color: transparent transparent transparent var(--gold);
}
.practice-card:hover {
  background: var(--inverse-bg);
  color: var(--inverse-ink);
}
.practice-card:hover .practice-card__num,
.practice-card:hover .practice-card__title em { color: var(--gold-500); }
.practice-card:hover .practice-card__title { color: var(--inverse-ink); }
.practice-card__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--gold);
  margin-bottom: 28px;
  transition: color var(--t-mid);
}
.practice-card__title {
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 32px);
  font-weight: 400;
  letter-spacing: -.01em;
  margin-bottom: 16px;
  color: var(--ink);
  transition: color var(--t-mid);
}
.practice-card__title em { font-style: italic; color: var(--gold); transition: color var(--t-mid); }
.practice-card__body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin-bottom: 28px;
  transition: color var(--t-mid);
}
.practice-card:hover .practice-card__body { color: rgba(232,236,243,.75); }
.practice-card__list {
  margin-top: auto;
  border-top: 1px solid currentColor;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-muted);
  line-height: 1.7;
}
.practice-card:hover .practice-card__list { color: rgba(232,236,243,.65); }

/* Attorneys page */
.attorneys-page {
  padding: 90px 0 clamp(80px, 12vw, 140px);
  background: var(--bg);
}
.att-filter {
  display: flex; flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 56px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.att-filter__chip {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: all var(--t-fast) var(--ease);
}
.att-filter__chip:hover { border-color: var(--ink); color: var(--ink); }
.att-filter__chip.active {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.attorneys-page .att-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}

/* Insights */
.insights-page {
  padding: 90px 0 clamp(80px, 12vw, 140px);
  background: var(--bg);
}
.insight-feat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 72px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--line);
}
.insight-feat__img {
  aspect-ratio: 5/4;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.insight-feat__img::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(201,169,110,.4), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(184,67,79,.25), transparent 50%);
}
.insight-feat__img::after {
  content: 'INSIGHT';
  position: absolute;
  top: 22px; left: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--gold-500);
}
.insight-feat__cat {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.insight-feat__title {
  font-family: var(--serif);
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -.015em;
  margin-bottom: 22px;
  color: var(--ink);
}
.insight-feat__title em { font-style: italic; color: var(--gold); }
.insight-feat__excerpt {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  margin-bottom: 28px;
  color: var(--ink-soft);
}
.insight-feat__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.insight-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 32px;
}
.insight-card {
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform var(--t-mid) var(--ease);
}
.insight-card:hover { transform: translateY(-4px); }
.insight-card__img {
  aspect-ratio: 4/3;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  border-radius: var(--radius);
}
.insight-card__img::before {
  content: '';
  position: absolute; inset: 0;
  transition: transform var(--t-slow) var(--ease);
}
.insight-card:nth-child(1) .insight-card__img::before {
  background: radial-gradient(circle at 60% 40%, rgba(201,169,110,.45), transparent 50%);
}
.insight-card:nth-child(2) .insight-card__img::before {
  background: radial-gradient(circle at 30% 60%, rgba(184,67,79,.4), transparent 55%);
}
.insight-card:nth-child(3) .insight-card__img::before {
  background: radial-gradient(circle at 50% 50%, rgba(201,169,110,.35), transparent 60%);
}
.insight-card:nth-child(4) .insight-card__img::before {
  background: radial-gradient(circle at 70% 30%, rgba(201,169,110,.55), transparent 50%);
}
.insight-card:nth-child(5) .insight-card__img::before {
  background: radial-gradient(circle at 40% 60%, rgba(184,67,79,.35), transparent 55%);
}
.insight-card:nth-child(6) .insight-card__img::before {
  background: radial-gradient(circle at 60% 50%, rgba(201,169,110,.4), transparent 60%);
}
.insight-card:hover .insight-card__img::before { transform: scale(1.08); }
.insight-card__cat {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.insight-card__title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -.005em;
  margin-bottom: 14px;
  color: var(--ink);
  transition: color var(--t-fast);
}
.insight-card:hover .insight-card__title { color: var(--gold); }
.insight-card__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: auto;
  padding-top: 12px;
}

/* Contact */
.contact-page {
  padding: 90px 0 clamp(80px, 12vw, 140px);
  background: var(--bg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: start;
}
.contact-info { position: sticky; top: 110px; }
.contact-info h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  margin-top: 36px;
}
.contact-info h3:first-child { margin-top: 0; }
.contact-info p, .contact-info a {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
}
.contact-info a:hover { color: var(--gold); }

.offices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 12px;
}
.office h4 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--ink);
}
.office p {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.form-card {
  background: var(--inverse-bg);
  color: var(--inverse-ink);
  padding: 52px 44px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.form-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at top right, rgba(201,169,110,.14), transparent 60%);
  pointer-events: none;
}
.form-card > * { position: relative; z-index: 1; }
.form-card h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 14px;
}
.form-card h2 em { font-style: italic; color: var(--gold-500); }
.form-card > p {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  color: rgba(232,236,243,.72);
  margin-bottom: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--gold-500);
}
.field input, .field textarea, .field select {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(232,236,243,.18);
  padding: 10px 0;
  color: var(--inverse-ink);
  outline: none;
  transition: border-color var(--t-fast);
  width: 100%;
}
.field select option { color: #0b1426; background: #f5f3ec; }
.field input::placeholder, .field textarea::placeholder { color: rgba(232,236,243,.35); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-bottom-color: var(--gold-500);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-card .btn {
  margin-top: 12px;
  width: 100%;
  justify-content: center;
}
.form-disclaimer {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  line-height: 1.7;
  color: rgba(232,236,243,.5);
  font-style: normal !important;
}

#formStatus {
  display: none;
  margin-top: 22px;
  padding: 16px 20px;
  background: rgba(201,169,110,.14);
  border-left: 2px solid var(--gold-500);
  color: var(--gold-500);
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
  .footer__top { grid-template-columns: 1fr; gap: 44px; }
  .philosophy__grid { grid-template-columns: 120px 1fr; gap: 36px; }
  .att-grid { grid-template-columns: repeat(3, 1fr); }
  .attorneys-page .att-grid { grid-template-columns: repeat(3, 1fr); }
  .insight-list { grid-template-columns: repeat(2, 1fr); }
  .practice-row { grid-template-columns: 60px 1fr 1.2fr 40px; gap: 24px; }
  .practice-row__title { font-size: clamp(22px, 3vw, 30px); }
}
@media (max-width: 880px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; align-items: center; justify-content: center; }
  .nav__mobile { display: flex; }

  .hero { padding: 120px 0 60px; min-height: auto; }
  .hero__columns { display: none; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .line-2 { padding-left: 24px; }
  .line-4 { padding-left: 56px; }

  .practice-row {
    grid-template-columns: 56px 1fr 32px;
    gap: 16px;
    padding: 24px 0;
  }
  .practice-row__desc {
    grid-column: 2 / 4;
    font-size: 14px;
  }
  .practice-row:hover { padding-left: 12px; }
  .practice-row__title { font-size: 24px; }

  .quote-grid { grid-template-columns: 1fr; gap: 20px; }
  .quote { padding: 36px 28px 28px; }
  .att-grid { grid-template-columns: repeat(2, 1fr); }
  .attorneys-page .att-grid { grid-template-columns: repeat(2, 1fr); }
  .insight-list { grid-template-columns: 1fr; }
  .insight-feat { grid-template-columns: 1fr; gap: 28px; padding-bottom: 56px; margin-bottom: 56px; }

  .practice-grid { grid-template-columns: 1fr; }
  .practice-card { padding: 36px 28px; min-height: auto; }

  .philosophy__grid { grid-template-columns: 1fr; gap: 24px; }
  .philosophy__label { position: static; flex-direction: row; gap: 16px; }

  .section-title span:nth-child(2) { padding-left: 24px; }

  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .contact-info { position: static; }
  .form-card { padding: 36px 24px; }
  .form-row { grid-template-columns: 1fr; gap: 22px; }
  .offices-grid { grid-template-columns: 1fr; }

  .footer__cols { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer__bottom { flex-direction: column; }
}
@media (max-width: 540px) {
  .brand-full { display: none; }
  .nav__inner { gap: 12px; }
  .nav__right { gap: 8px; }
  .nav__mobile a { font-size: 28px; padding: 14px 0; }

  .hero__stats { grid-template-columns: 1fr 1fr; gap: 22px; }
  .stat__num { font-size: 38px; }

  .att-grid, .attorneys-page .att-grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }

  .hero__title { font-size: clamp(40px, 13vw, 64px); }
  .line-2, .line-4 { padding-left: 16px; }

  .hero__actions .btn { padding: 14px 22px; font-size: 10px; }
  .att-filter { gap: 6px; padding-bottom: 28px; margin-bottom: 36px; }
  .att-filter__chip { padding: 8px 14px; font-size: 10px; }

  .form-card { padding: 28px 20px; }
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .marquee__track { animation: none; }
}

@media print {
  .nav, .nav__mobile, .marquee, .cta, .hero__scroll { display: none; }
  body { background: white; color: black; }
}

/* =============================================================
   ARABIC + RTL OVERRIDES
   Applied automatically when <html lang="ar" dir="rtl">
   ============================================================= */

[lang="ar"] body,
[lang="ar"] .field input,
[lang="ar"] .field textarea,
[lang="ar"] .field select,
[lang="ar"] .nav__links,
[lang="ar"] .att-card__bio,
[lang="ar"] .practice-row__desc,
[lang="ar"] .insight-card__title,
[lang="ar"] .att-card h3 {
  font-family: var(--sans-ar);
  font-feature-settings: 'kern' 1, 'liga' 1;
}

/* Display headlines use Amiri serif for grandeur */
[lang="ar"] .hero__title,
[lang="ar"] .page-hero__title,
[lang="ar"] .section-title,
[lang="ar"] .lede,
[lang="ar"] .insight-feat__title,
[lang="ar"] .practice-row__title,
[lang="ar"] .practice-card__title,
[lang="ar"] .quote blockquote,
[lang="ar"] .cta__title,
[lang="ar"] .form-card h2,
[lang="ar"] .insight-card__title,
[lang="ar"] .hero__caption,
[lang="ar"] .page-hero__sub,
[lang="ar"] .att-card h3,
[lang="ar"] .brand-mark,
[lang="ar"] .brand-full,
[lang="ar"] .footer__cols ul li,
[lang="ar"] .contact-info p,
[lang="ar"] .contact-info a,
[lang="ar"] .footer__brand p,
[lang="ar"] .form-card > p,
[lang="ar"] .nav__mobile a,
[lang="ar"] .cite-org,
[lang="ar"] .sig-name,
[lang="ar"] .insight-feat__excerpt,
[lang="ar"] .office h4,
[lang="ar"] .office p {
  font-family: var(--serif-ar);
  font-style: normal !important;  /* italic doesn't exist in Arabic */
  letter-spacing: 0;
}

/* Mono labels — Arabic uses sans, not letter-spaced uppercase */
[lang="ar"] .nav__cta,
[lang="ar"] .btn,
[lang="ar"] .nav__links a,
[lang="ar"] .num-mark,
[lang="ar"] .num,
[lang="ar"] .lbl,
[lang="ar"] .stat__label,
[lang="ar"] .att-card__role,
[lang="ar"] .practice-row__num,
[lang="ar"] .cite-name,
[lang="ar"] .att-filter__chip,
[lang="ar"] .footer__cols h4,
[lang="ar"] .contact-info h3,
[lang="ar"] .insight-feat__cat,
[lang="ar"] .insight-feat__meta,
[lang="ar"] .insight-card__cat,
[lang="ar"] .insight-card__meta,
[lang="ar"] .practice-card__num,
[lang="ar"] .practice-card__list,
[lang="ar"] .field label,
[lang="ar"] .form-disclaimer,
[lang="ar"] .footer__bottom,
[lang="ar"] .footer__legal,
[lang="ar"] .sig-role,
[lang="ar"] .hero__meta,
[lang="ar"] .hero__scroll,
[lang="ar"] .cta__eye,
[lang="ar"] .page-hero__eye,
[lang="ar"] .section-eyebrow,
[lang="ar"] .link-arrow {
  font-family: var(--sans-ar);
  text-transform: none;       /* Arabic has no case */
  letter-spacing: 0;          /* No tracking in Arabic */
  font-weight: 500;
}

/* Italics — Arabic alternative is to color the gold accent only */
[lang="ar"] em {
  font-style: normal;
}

/* === RTL: directional flips === */
[dir="rtl"] .hero__title .line-2 { padding-left: 0; padding-right: clamp(20px, 8vw, 120px); }
[dir="rtl"] .hero__title .line-4 { padding-left: 0; padding-right: clamp(40px, 14vw, 220px); }
[dir="rtl"] .section-title span:nth-child(2) { padding-left: 0; padding-right: clamp(40px, 10vw, 140px); }

[dir="rtl"] .nav__links a.active::after { left: auto; right: 0; }

/* Flip arrow icons in buttons & links — only flip the arrow span, not the text span */
[dir="rtl"] .btn svg,
[dir="rtl"] .practice-row__arrow {
  transform: scaleX(-1);
}
[dir="rtl"] .link-arrow span:last-child {
  transform: scaleX(-1);
  display: inline-block;  /* allow transform */
}
[dir="rtl"] .btn:hover svg { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .practice-row:hover .practice-row__arrow { transform: scaleX(-1) translateX(10px); }

/* Hero columns SVG: move to left edge */
[dir="rtl"] .hero__columns { right: auto; left: -60px; }

/* Scroll indicator: move to right side */
[dir="rtl"] .hero__scroll { left: auto; right: var(--pad); }

/* Marquee stays LTR (set on track) so it scrolls consistently regardless of page direction. */

/* Practice row hover: indent from the right */
[dir="rtl"] .practice-row:hover { padding-left: 0; padding-right: 24px; }
[dir="rtl"] .practice-row::before {
  background: linear-gradient(-90deg, rgba(201,169,110,.06), transparent);
}

/* Skip link: move to right */
[dir="rtl"] .skip-link:focus { left: auto; right: 16px; }

/* Quote mark — move to right side */
[dir="rtl"] .quote__mark { left: auto; right: 22px; }

/* Page-hero rule: position before instead of after */
[dir="rtl"] .page-hero__eye::before {
  /* still appears at the start of the line, which is now the right */
}

/* Insight feat label position */
[dir="rtl"] .insight-feat__img::after { left: auto; right: 22px; }

/* Form: align placeholder text */
[dir="rtl"] .field input,
[dir="rtl"] .field textarea,
[dir="rtl"] .field select {
  text-align: right;
}

/* Footer copyright row stays LTR for technical strings, but content reads RTL */
[dir="rtl"] .footer__bottom { text-align: right; }

/* Restore tabular numerics in stats — Arabic-Indic numerals are translated, but width should stay aligned */
[lang="ar"] .stat__num,
[lang="ar"] .stat__plus {
  font-family: var(--serif-ar);
  font-feature-settings: 'tnum' 1;
}

/* Increase line height for Arabic body — Arabic letters need vertical breathing room */
[lang="ar"] .lede,
[lang="ar"] .hero__caption,
[lang="ar"] .page-hero__sub,
[lang="ar"] .quote blockquote,
[lang="ar"] .practice-card__body,
[lang="ar"] .insight-feat__excerpt,
[lang="ar"] .att-card__bio,
[lang="ar"] .practice-row__desc {
  line-height: 1.75;
}

/* Tighten Arabic display headlines slightly — Amiri runs tall */
[lang="ar"] .hero__title { line-height: 1.05; }
[lang="ar"] .section-title { line-height: 1.05; }
[lang="ar"] .page-hero__title { line-height: 1.08; }

/* Language toggle button — text-based, sits beside theme toggle */
.lang-toggle {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  font-weight: 500;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
  flex-shrink: 0;
  white-space: nowrap;
}
.lang-toggle:hover { border-color: var(--ink); color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
[lang="ar"] .lang-toggle {
  font-family: var(--sans);  /* "English" stays Latin */
  letter-spacing: .04em;
  text-transform: none;
}
/* When current lang is en, the toggle shows Arabic — use Arabic font */
[lang="en"] .lang-toggle {
  font-family: var(--sans-ar);
  font-size: 13px;
  letter-spacing: 0;
}

@media (max-width: 540px) {
  .lang-toggle { padding: 0 12px; height: 36px; font-size: 10px; }
}

/* ===================== TRUST STRIP ===================== */
.trust {
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 24px 0;
}
.trust .container {
  display: flex; align-items: center; gap: 36px;
  flex-wrap: wrap; justify-content: center;
  text-align: center;
}
.trust__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ink-muted);
  flex-shrink: 0;
}
.trust__items {
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap; justify-content: center;
}
.trust__item {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.trust__divider {
  color: var(--gold);
  opacity: .55;
  font-size: 16px;
}

[lang="ar"] .trust__item {
  font-family: var(--serif-ar);
  font-style: normal;
}
[lang="ar"] .trust__label {
  font-family: var(--sans-ar);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  font-size: 12px;
}

@media (max-width: 640px) {
  .trust .container { gap: 16px; }
  .trust__items { gap: 12px; }
  .trust__item { font-size: 13px; }
  .trust__divider { display: none; }
}

/* ===================== SPA PAGE TRANSITIONS ===================== */
/* Each .page wraps an entire view; only one is visible at a time */
.page {
  animation: page-fade-in .55s var(--ease-out);
}
.page[hidden] {
  display: none !important;
}
@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Active state on nav links */
.nav__links a {
  position: relative;
  padding: 8px 0;
  color: var(--ink-soft);
  transition: color var(--t-fast);
}
.nav__links a.active {
  color: var(--ink);
}
.nav__links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1.5px;
  background: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  .page { animation: none; }
}
