:root {
  --ink: #0d1824;
  --ink-2: #142638;
  --ink-3: #1c3145;
  --paper: #fbfaf7;
  --sand: #eee7dc;
  --sand-2: #e3d7c6;
  --gold: #b58a52;
  --gold-light: #d4b483;
  --line: rgba(13, 24, 36, 0.18);
  --line-dark: rgba(255, 255, 255, 0.15);
  --muted: #61707c;
  --max: 1440px;
  --gutter: clamp(20px, 4vw, 72px);
  --serif: "Libre Caslon Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button { color: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 9999;
  padding: 10px 14px;
  color: var(--ink);
  background: white;
  border-radius: 2px;
}
.skip-link:focus { top: 16px; }

.container-wide {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.section-dark, .section-ink, .section-dark-soft { color: white; }
.section-dark { background: var(--ink); }
.section-ink { background: #09131d; }
.section-dark-soft { background: var(--ink-2); }
.section-light { background: var(--paper); }
.section-sand { background: var(--sand); }

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow-gold { color: var(--gold-light); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
h1 { font-size: clamp(3.6rem, 8.2vw, 8.7rem); }
h2 { font-size: clamp(2.7rem, 5vw, 5.4rem); }
h3 { line-height: 1.12; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.button:hover { transform: translateY(-2px); }
.button-light { background: white; color: var(--ink); }
.button-light:hover { background: var(--gold-light); }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: var(--ink-3); }
.button-outline { border-color: var(--ink); }
.button-outline:hover { color: white; background: var(--ink); }

.text-link {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 0.9rem;
  font-weight: 600;
}
.text-link span { transition: transform .22s var(--ease); }
.text-link:hover span { transform: translate(3px, -3px); }
.text-link-light { color: white; border-color: rgba(255,255,255,.65); }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 92px;
  color: white;
  transition: background-color .25s ease, height .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  height: 74px;
  background: rgba(9, 19, 29, .96);
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  backdrop-filter: blur(12px);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 auto; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-family: var(--serif); font-size: 1.22rem; font-weight: 400; letter-spacing: .01em; }
.brand-copy span { margin-top: 5px; font-size: .57rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.primary-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 38px); }
.primary-nav a { position: relative; font-size: .8rem; font-weight: 600; letter-spacing: .035em; }
.primary-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: var(--gold-light);
  transition: right .25s var(--ease);
}
.primary-nav a:hover::after { right: 0; }
.nav-cta { border: 1px solid rgba(255,255,255,.6); padding: 10px 16px; }
.nav-cta:hover { background: white; color: var(--ink); }
.menu-toggle { display: none; }

/* Hero */
.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 180px 0 82px;
}
.hero-art { position: absolute; inset: 0; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .83; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,13,20,.92) 0%, rgba(5,13,20,.73) 47%, rgba(5,13,20,.28) 74%, rgba(5,13,20,.08) 100%),
    linear-gradient(0deg, rgba(5,13,20,.62) 0%, rgba(5,13,20,0) 46%);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, .4fr);
  align-items: end;
  gap: 60px;
}
.hero-copy { max-width: 1100px; }
.hero-copy h1 { margin-bottom: 28px; max-width: 1050px; }
.hero-intro { max-width: 690px; margin-bottom: 38px; font-size: clamp(1.05rem, 1.55vw, 1.3rem); color: rgba(255,255,255,.86); }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-note { border-top: 1px solid rgba(255,255,255,.5); padding-top: 15px; align-self: end; }
.hero-note span { display: block; margin-bottom: 18px; color: var(--gold-light); font-size: .76rem; }
.hero-note p { margin: 0; font-size: .92rem; color: rgba(255,255,255,.78); }
.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 31px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.64);
}
.scroll-cue span { width: 42px; height: 1px; background: rgba(255,255,255,.5); }

/* Shared headings */
.section-heading { margin-bottom: clamp(42px, 5vw, 78px); }
.split-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .58fr); gap: 70px; align-items: end; }
.split-heading p:last-child { margin: 0 0 8px; max-width: 500px; color: var(--muted); }
.section-dark-soft .split-heading p:last-child { color: rgba(255,255,255,.68); }
.section-heading h2 { margin-bottom: 0; }

/* Featured */
.featured { padding: clamp(90px, 10vw, 160px) 0; }
.feature-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 24px; }
.feature-card { border: 1px solid var(--line); background: #fff; }
.feature-card-large { display: grid; grid-template-rows: minmax(340px, 1fr) auto; min-height: 700px; }
.card-visual {
  min-height: 360px;
  position: relative;
  overflow: hidden;
  background-image: url('assets/dubai-shared-housing-banner-featured.webp');
}
.card-visual::after {
  content: "";
  position: absolute;
  width: 52%; height: 115%;
  right: 7%; bottom: -25%;
  border: 1px solid rgba(255,255,255,.5);
  transform: rotate(19deg);
  box-shadow: 0 0 0 36px rgba(255,255,255,.035), 0 0 0 72px rgba(255,255,255,.028);
}
.feature-card-copy { padding: clamp(28px, 4vw, 52px); }
.meta-row { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 22px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.feature-card h3 { max-width: 700px; margin-bottom: 16px; font-family: var(--serif); font-size: clamp(2.3rem, 3.3vw, 4rem); font-weight: 400; letter-spacing: -.025em; }
.feature-card p { max-width: 760px; color: var(--muted); }
.feature-stack { display: grid; gap: 24px; }
.feature-card-compact { min-height: 338px; padding: clamp(28px, 3.3vw, 48px); display: flex; flex-direction: column; justify-content: flex-end; }
.feature-card-compact h3 { font-size: clamp(2rem, 2.8vw, 3.15rem); }
.feature-card-compact .text-link { margin-top: auto; width: fit-content; }
.feature-card-dark { background: var(--ink-2); color: white; border-color: var(--ink-2); }
.feature-card-dark p, .feature-card-dark .meta-row { color: rgba(255,255,255,.65); }

/* Lawyer finder */
.lawyer-finder { padding: clamp(90px, 9vw, 150px) 0; }
.finder-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(60px, 8vw, 140px); }
.finder-intro h2 { margin-bottom: 28px; }
.finder-intro p { max-width: 520px; color: rgba(255,255,255,.68); }
.finder-intro .text-link { margin-top: 18px; }
.finder-panel label { display: block; margin-bottom: 10px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.select-wrap { position: relative; margin-bottom: 34px; }
.select-wrap::after { content: "⌄"; position: absolute; right: 20px; top: 50%; transform: translateY(-54%); pointer-events: none; }
.select-wrap select {
  width: 100%;
  appearance: none;
  padding: 18px 52px 18px 18px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 0;
  color: white;
  background: transparent;
  outline: none;
}
.select-wrap select option { color: var(--ink); }
.lawyer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
  border-top: 1px solid var(--line-dark);
  transition: padding .25s var(--ease), color .25s ease;
}
.lawyer-row:last-child { border-bottom: 1px solid var(--line-dark); }
.lawyer-row:hover { padding-left: 10px; color: var(--gold-light); }
.lawyer-row div { display: grid; }
.lawyer-row strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 400; }
.lawyer-row span:not(.arrow) { font-size: .76rem; color: rgba(255,255,255,.55); }
.lawyer-row[hidden] { display: none; }
.finder-empty { color: rgba(255,255,255,.7); }
.finder-empty a { text-decoration: underline; }

/* About */
.about-home { padding: clamp(90px, 10vw, 160px) 0 0; }
.about-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(55px, 8vw, 130px); align-items: center; }
.about-visual { min-height: 560px; position: relative; overflow: hidden; background: var(--ink-2); }
.about-visual img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.visual-caption {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 2;
  color: white;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.about-copy h2 { margin-bottom: 34px; }
.about-copy .lead { font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.55; }
.about-copy p { color: #455563; }
.about-copy .button { margin-top: 14px; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(70px, 8vw, 130px);
  border-top: 1px solid rgba(13,24,36,.28);
}
.stat { min-height: 220px; padding: 34px 28px 36px 0; border-right: 1px solid rgba(13,24,36,.2); }
.stat:not(:first-child) { padding-left: 28px; }
.stat:last-child { border-right: none; }
.stat strong { display: block; margin-bottom: 24px; font-family: var(--serif); font-size: clamp(3rem, 5vw, 5.2rem); font-weight: 400; letter-spacing: -.04em; }
.stat span { display: block; max-width: 260px; font-size: .84rem; color: #58646e; }

/* Expertise */
.expertise { padding: clamp(100px, 11vw, 170px) 0; }
.expertise-heading { display: grid; grid-template-columns: 1fr .6fr; gap: 70px; align-items: end; }
.expertise-heading > p { margin: 0 0 8px; color: var(--muted); }
.tab-list { display: flex; gap: 28px; border-bottom: 1px solid var(--line); }
.tab-list button {
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 0 14px;
  background: none;
  cursor: pointer;
  font-weight: 700;
  color: #6a7680;
}
.tab-list button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.tab-panel { margin-top: 16px; }
.tab-panel a {
  min-height: 84px;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  transition: padding .2s var(--ease), background .2s ease;
}
.tab-panel a:hover { padding-inline: 12px; background: #f2eee8; }
.tab-panel a span { font-size: .7rem; color: var(--gold); }
.tab-panel strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.3vw, 2.45rem); }
.tab-panel em { font-style: normal; font-size: 1.2rem; }

/* Principles */
.principles { padding: clamp(95px, 10vw, 155px) 0; }
.principle-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.principle { min-height: 340px; padding: 34px 30px 30px 0; border-right: 1px solid var(--line-dark); }
.principle:not(:first-child) { padding-left: 30px; }
.principle:last-child { border-right: none; }
.principle > span { color: var(--gold-light); font-size: .7rem; }
.principle h3 { margin: 85px 0 16px; font-family: var(--serif); font-size: 2.35rem; font-weight: 400; }
.principle p { color: rgba(255,255,255,.63); font-size: .92rem; }

/* Insights */
.insights { padding: clamp(95px, 10vw, 155px) 0; }
.insights-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.insight-card { border-top: 1px solid var(--line); }
.insight-image { display: block; aspect-ratio: 16/10; margin-top: 20px; overflow: hidden; position: relative; }
.insight-image::before, .insight-image::after { content: ""; position: absolute; transition: transform .45s var(--ease); }
.insight-image::before { inset: 0; background: linear-gradient(135deg, #d8d0c2, #71818c 60%, #162838); }
.insight-image::after { width: 80%; height: 80%; right: -18%; bottom: -25%; border: 1px solid rgba(255,255,255,.58); transform: rotate(21deg); }
.insight-image-two::before { background: linear-gradient(140deg, #1c3145, #84949b 50%, #ded6c9); }
.insight-image-three::before { background: linear-gradient(140deg, #b8aa98, #435a69 52%, #0f1e2c); }
.insight-card:hover .insight-image::after { transform: rotate(25deg) scale(1.08); }
.insight-body { padding: 24px 0 10px; }
.insight-body h3 { font-family: var(--serif); font-size: clamp(1.6rem, 2.2vw, 2.25rem); font-weight: 400; }
.insight-body p { color: var(--muted); }
.insight-body h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* Careers */
.careers-banner { padding: clamp(80px, 9vw, 140px) 0; }
.careers-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(50px, 8vw, 130px); }
.careers-art { min-height: 470px; position: relative; overflow: hidden; background: #cfc3b2; }
.careers-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.careers-copy h2 { margin-bottom: 28px; }
.careers-copy p { max-width: 550px; color: #53606b; font-size: 1.05rem; }
.careers-copy .button { margin-top: 16px; }

/* Contact */
.contact-band { padding: clamp(90px, 10vw, 150px) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr .68fr; gap: clamp(60px, 9vw, 150px); align-items: start; }
.contact-intro h2 { margin-bottom: 26px; max-width: 780px; }
.contact-intro p { max-width: 580px; color: rgba(255,255,255,.68); font-size: 1.05rem; }
.contact-intro .button { margin-top: 20px; }
.office-card { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.3); }
.office-label { font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--gold-light); }
.office-card h3 { margin: 16px 0 24px; font-family: var(--serif); font-size: 2.3rem; font-weight: 400; }
.office-card address { font-style: normal; color: rgba(255,255,255,.7); }
.office-links { display: grid; gap: 5px; margin: 25px 0 30px; }
.office-links a:hover { color: var(--gold-light); }

/* Footer */
.site-footer { color: rgba(255,255,255,.74); background: #050c12; }
.footer-top { display: grid; grid-template-columns: 1fr .7fr; gap: 80px; padding-top: 70px; padding-bottom: 70px; }
.brand-footer { color: white; }
.footer-brand > p { max-width: 360px; margin: 28px 0 0; font-size: .9rem; color: rgba(255,255,255,.5); }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px; }
.footer-links h3 { margin-bottom: 20px; color: white; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.footer-links a { display: block; padding: 6px 0; font-size: .86rem; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.12); font-size: .72rem; color: rgba(255,255,255,.42); }
.footer-bottom p { margin: 0; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .primary-nav { gap: 18px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-stack { grid-template-columns: repeat(2, 1fr); }
  .finder-grid, .about-grid, .contact-grid { gap: 70px; }
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .principle:nth-child(2) { border-right: none; }
  .principle:nth-child(3), .principle:nth-child(4) { border-top: 1px solid var(--line-dark); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid rgba(13,24,36,.2); }
}

@media (max-width: 900px) {
  .site-header { height: 76px; }
  .site-header.is-scrolled { height: 68px; }
  .brand-copy strong { font-size: 1.05rem; }
  .brand-copy span { font-size: .5rem; }
  .brand-mark { width: 36px; height: 36px; }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    border: 0;
    background: transparent;
    padding: 9px 0 9px 9px;
    cursor: pointer;
  }
  .menu-label { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
  .menu-icon { width: 26px; height: 18px; display: grid; align-content: center; gap: 6px; }
  .menu-icon i { display: block; width: 100%; height: 1px; background: currentColor; transition: transform .25s ease; }
  .menu-toggle[aria-expanded="true"] .menu-icon i:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .primary-nav {
    position: fixed;
    inset: 76px 0 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 26px var(--gutter) 60px;
    background: #09131d;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .35s var(--ease), visibility .35s;
  }
  .site-header.is-scrolled .primary-nav { inset-block-start: 68px; }
  .primary-nav.is-open { transform: translateX(0); visibility: visible; }
  .primary-nav a { padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-family: var(--serif); font-size: 1.8rem; font-weight: 400; }
  .primary-nav a::after { display: none; }
  .nav-cta { margin-top: 24px; border: 1px solid rgba(255,255,255,.35) !important; padding: 16px !important; text-align: center; font-family: var(--sans) !important; font-size: .82rem !important; font-weight: 700 !important; text-transform: uppercase; }

  .hero { min-height: 94svh; padding-top: 140px; padding-bottom: 62px; }
  .hero-shade { background: linear-gradient(90deg, rgba(5,13,20,.92), rgba(5,13,20,.5)), linear-gradient(0deg, rgba(5,13,20,.7), transparent 55%); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-note { display: none; }
  .scroll-cue { display: none; }

  .split-heading, .expertise-heading { grid-template-columns: 1fr; gap: 26px; }
  .finder-grid, .about-grid, .careers-grid, .contact-grid, .footer-top { grid-template-columns: 1fr; }
  .finder-grid { gap: 55px; }
  .about-grid, .careers-grid { gap: 44px; }
  .about-visual, .careers-art { min-height: 430px; }
  .insight-grid { grid-template-columns: 1fr; gap: 54px; }
  .insight-card { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; }
  .insight-image { margin-top: 20px; }
  .insight-body { padding-top: 20px; }
  .footer-top { gap: 55px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 15px; }
  h1 { font-size: clamp(3.05rem, 14vw, 4.7rem); line-height: .98; }
  h2 { font-size: clamp(2.6rem, 12vw, 4rem); }
  .brand-copy span { display: none; }
  .hero { min-height: 88svh; padding: 126px 0 52px; }
  .hero-art img { object-position: 62% center; }
  .hero-copy h1 { margin-bottom: 22px; }
  .hero-intro { font-size: 1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 19px; }
  .button { width: 100%; }

  .featured, .lawyer-finder, .expertise, .principles, .insights, .contact-band { padding-block: 78px; }
  .about-home { padding-top: 78px; }
  .feature-card-large { min-height: 0; }
  .card-visual { min-height: 290px; }
  .feature-stack { grid-template-columns: 1fr; }
  .feature-card-compact { min-height: 300px; }
  .feature-card h3 { font-size: 2.35rem; }
  .meta-row { gap: 10px; font-size: .62rem; }

  .lawyer-row { min-height: 76px; }
  .lawyer-row strong { font-size: 1.3rem; }

  .about-visual, .careers-art { min-height: 340px; }
  .stat-grid, .principle-grid { grid-template-columns: 1fr; }
  .stat, .stat:not(:first-child), .principle, .principle:not(:first-child) { padding: 28px 0; border-right: 0; border-bottom: 1px solid rgba(13,24,36,.2); }
  .principle, .principle:not(:first-child) { border-color: var(--line-dark); }
  .stat:nth-child(3), .stat:nth-child(4), .principle:nth-child(3), .principle:nth-child(4) { border-top: 0; }
  .stat:last-child, .principle:last-child { border-bottom: 0; }
  .stat { min-height: 150px; }
  .stat strong { margin-bottom: 10px; }
  .principle { min-height: 0; }
  .principle h3 { margin: 40px 0 10px; }

  .tab-panel a { min-height: 72px; grid-template-columns: 38px 1fr auto; }
  .tab-panel strong { font-size: 1.45rem; }

  .insights-heading { align-items: flex-start; flex-direction: column; }
  .insight-card { grid-template-columns: 1fr; gap: 0; }
  .insight-body h3 { font-size: 1.8rem; }

  .office-card h3 { font-size: 2rem; }
  .footer-links { gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   OPTION 03 — MODERN EMERALD
   Contemporary, warmer and more digital/card-based.
   ========================================================= */
:root {
  --ink: #102b27;
  --ink-2: #173b35;
  --ink-3: #245249;
  --paper: #f5f7f2;
  --sand: #e7eadf;
  --sand-2: #d9ddcf;
  --gold: #b28b4c;
  --gold-light: #d6b471;
  --line: rgba(16,43,39,.14);
  --line-dark: rgba(255,255,255,.14);
  --muted: #66756f;
  --max: 1320px;
}
body { background: #f5f7f2; }
.site-header { height: 84px; }
.site-header.is-scrolled { height: 87px; background: rgba(12,37,33,.94); }
.header-inner { width: min(calc(100% - 36px), 1380px); }
.nav-cta, .button { border-radius: 999px; }
.nav-cta { padding-inline: 20px; }

.hero {
  min-height: 96svh;
  background: #102b27;
  padding-bottom: 74px;
}
.hero-art { inset: 22px; border-radius: 24px; overflow: hidden; }
.hero-art img { opacity: .73; }
.hero-shade {
  inset: 22px;
  border-radius: 24px;
  background:
    linear-gradient(90deg,rgba(5,31,27,.96) 0%,rgba(5,31,27,.78) 46%,rgba(5,31,27,.25) 78%,rgba(5,31,27,.08)),
    linear-gradient(0deg,rgba(5,31,27,.65),transparent 48%);
}
.hero-grid { padding-inline: 30px; }
.hero-copy h1 { max-width: 980px; font-size: clamp(3.7rem,7.5vw,7.8rem); }
.hero-note {
  padding: 24px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(16,43,39,.38);
  backdrop-filter: blur(12px);
}
.scroll-cue { right: calc(var(--gutter) + 28px); }

.featured { background: #f5f7f2; }
.feature-grid { gap: 20px; }
.feature-card { border: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 14px 40px rgba(16,43,39,.08); }
.feature-card-large { min-height: 680px; }
.feature-card-compact { border-radius: 20px; }
.feature-card-dark { background: #173b35; }
.card-visual { border-radius: 0; }

.lawyer-finder { background: #0b2723; }
.finder-panel {
  padding: clamp(26px,3vw,42px);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  background: rgba(255,255,255,.035);
}
.select-wrap select { border-radius: 12px; }
.lawyer-row { padding-inline: 10px; }
.lawyer-row:hover { padding-left: 18px; }

.section-sand { background: #e7eadf; }
.about-visual, .careers-art { border-radius: 22px; }
.about-copy .button { border-radius: 999px; }
.stat-grid { gap: 12px; border-top: 0; }
.stat, .stat:not(:first-child) {
  min-height: 210px;
  padding: 28px;
  border: 1px solid rgba(16,43,39,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.42);
}
.stat strong { color: #183f38; }

.tabs { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.tab-panel a { padding-inline: 12px; border-radius: 12px; }
.tab-panel a:hover { padding-inline: 18px; background: #eff3eb; }

.principles { background: #173b35; }
.principle-grid { gap: 14px; border-top: 0; }
.principle, .principle:not(:first-child) {
  min-height: 330px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
}
.principle h3 { margin-top: 72px; }

.insight-card { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.insight-image { margin-top: 0; border-radius: 12px; }
.insight-body { padding-inline: 4px; }
.contact-band { background: #0b2723; }
.office-card { padding: 28px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; }
.site-footer { background: #061916; }

@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(n) { border: 1px solid rgba(16,43,39,.12); }
  .principle-grid { grid-template-columns: repeat(2,1fr); }
  .principle:nth-child(n) { border: 1px solid rgba(255,255,255,.12); }
}
@media (max-width: 900px) {
  .site-header { height: 72px; }
  .hero-art, .hero-shade { inset: 12px; border-radius: 18px; }
  .hero-grid { padding-inline: 12px; }
  .primary-nav { inset-block-start: 72px; background: #0b2723; }
  .site-header.is-scrolled .primary-nav { inset-block-start: 68px; }
}
@media (max-width: 640px) {
  .header-inner { width: calc(100% - 28px); }
  .hero { min-height: 90svh; }
  .hero-art, .hero-shade { inset: 8px; border-radius: 16px; }
  .hero-grid { padding-inline: 4px; }
  .finder-panel, .tabs, .office-card { padding: 20px; }
  .stat-grid, .principle-grid { grid-template-columns: 1fr; }
  .stat, .stat:not(:first-child), .principle, .principle:not(:first-child) { border: 1px solid rgba(16,43,39,.12); }
  .principle, .principle:not(:first-child) { border-color: rgba(255,255,255,.12); }
  .insight-card { padding: 12px; }
}

/* =========================================================
   Mobile sidebar navigation fix
   - backdrop-filter on the scrolled header turned it into the
     containing block for the fixed nav, clipping its background.
   - Give the drawer a solid, full-height background.
   ========================================================= */
@media (max-width: 900px) {
  .site-header,
  .site-header.is-scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header.is-scrolled { height: 68px; background: #0b2723; }
  body.menu-open .site-header { background: #0b2723; }

  .primary-nav {
    top: 72px;
    right: 0;
    bottom: 0;
    left: 0;
    height: calc(100dvh - 72px);
    overflow-y: auto;
    background-color: #0b2723 !important;
    box-shadow: 0 20px 40px rgba(0,0,0,.35);
    z-index: 999;
  }
  .site-header.is-scrolled .primary-nav {
    top: 68px;
    height: calc(100dvh - 68px);
  }
  .primary-nav a { color: #fff; }
}
