@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');
:root {
  --ink: #080A0B;
  --night: #102A32;
  --night-2: #183741;
  --paper: #F1F2EF;
  --paper-2: #E8E9E5;
  --muted: #656363;
  --dust: #91827D;
  --rose: #C5B5BD;
  --copper: #986351;
  --brown: #50372E;
  --gold: #D3BC74;
  --gold-2: #F2D991;
  --line: rgba(8,10,11,.13);
  --shadow: 0 18px 60px rgba(8,10,11,.10);
  --radius: 2px;
  --container: min(1240px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Noto Sans Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
}
html[dir="ltr"] body { font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; line-height: 1.65; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
img, svg { max-width: 100%; display: block; }
::selection { background: var(--gold); color: var(--ink); }

.container { width: var(--container); margin-inline: auto; }
.section { padding: 120px 0; position: relative; }
.section.compact { padding: 84px 0; }
.section.dark { background: var(--night); color: #fff; }
.section.ink { background: var(--ink); color: #fff; }
.section.wash { background: #ebece8; }
.section-border { border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 600;
  color: var(--copper);
}
html[dir="rtl"] .eyebrow { letter-spacing: 0; }
.eyebrow::before { content: ''; width: 42px; height: 1px; background: currentColor; }
.eyebrow.light { color: var(--gold-2); }

.display {
  margin: 18px 0 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(54px, 7.1vw, 108px);
  line-height: .95;
  letter-spacing: -.035em;
}
html[dir="rtl"] .display {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-weight: 400;
  font-size: clamp(43px, 5.8vw, 82px);
  line-height: 1.35;
  letter-spacing: -.045em;
}

.title-xl {
  margin: 16px 0 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(46px, 5.4vw, 78px);
  line-height: 1;
  letter-spacing: -.025em;
}
html[dir="rtl"] .title-xl { font-family: 'Noto Kufi Arabic', sans-serif; font-size: clamp(38px, 4.8vw, 64px); line-height: 1.35; }

.title-lg {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(40px, 4.5vw, 68px);
  line-height: 1.05;
  letter-spacing: -.02em;
}
html[dir="rtl"] .title-lg { font-family: 'Noto Kufi Arabic', sans-serif; font-size: clamp(34px, 4vw, 56px); line-height: 1.4; }

.title-md {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 34px;
  line-height: 1.1;
  margin: 0;
}
html[dir="rtl"] .title-md { font-family: 'Noto Kufi Arabic', sans-serif; font-size: 27px; line-height: 1.45; }

.lead { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.8; color: #454545; }
.dark .lead, .ink .lead { color: rgba(255,255,255,.72); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-weight: 600; font-size: 14px;
  padding-bottom: 7px; border-bottom: 1px solid currentColor;
}
.link-arrow .arrow { transition: transform .25s ease; }
html[dir="rtl"] .link-arrow:hover .arrow { transform: translateX(-5px); }
html[dir="ltr"] .link-arrow:hover .arrow { transform: translateX(5px); }

/* Header */
.site-header {
  position: absolute; top: 0; inset-inline: 0; z-index: 50;
  color: #fff;
  transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}
.site-header.is-sticky {
  position: fixed; background: rgba(241,242,239,.94); color: var(--ink);
  backdrop-filter: blur(16px); box-shadow: 0 1px 0 rgba(8,10,11,.10);
}
.header-inner { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.brand img { width: 48px; height: 48px; transform: scale(1.9); transform-origin: center; }
.brand-copy { line-height: 1.25; margin-inline-start: 14px; }
.brand-copy strong { display: block; font-size: 13px; font-weight: 600; }
.brand-copy span { display: block; font-size: 10px; opacity: .72; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 13px; font-weight: 500; }
.nav a { position: relative; opacity: .8; transition: opacity .2s ease; white-space: nowrap; }
.nav a:hover, .nav a.active { opacity: 1; }
.nav a::after { content: ''; position: absolute; height: 1px; background: var(--gold); inset-inline-start: 0; bottom: -8px; width: 0; transition: width .25s ease; }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch, .menu-toggle {
  background: transparent; border: 1px solid currentColor; border-radius: 999px; cursor: pointer;
  min-width: 52px; height: 38px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; opacity: .9;
}
.menu-toggle { display: none; min-width: 38px; padding: 0; }

/* Hero */
.hero {
  min-height: 860px; height: 100svh; max-height: 980px;
  background: var(--night); color: #fff; position: relative; overflow: hidden;
  display: grid; align-items: end;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 86px 100%,
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 100% 86px,
    radial-gradient(circle at 80% 20%, rgba(211,188,116,.13), transparent 30%),
    linear-gradient(120deg, transparent 48%, rgba(255,255,255,.03) 49%, transparent 50%);
  opacity: .65;
}
.hero::after {
  content: '';
  position: absolute; width: 58vw; height: 58vw; max-width: 750px; max-height: 750px;
  inset-inline-end: -11vw; top: 13%;
  border: 1px solid rgba(211,188,116,.28);
  transform: rotate(45deg);
  box-shadow: inset 0 0 0 52px rgba(16,42,50,.1), inset 0 0 0 53px rgba(211,188,116,.11), inset 0 0 0 125px rgba(16,42,50,.1), inset 0 0 0 126px rgba(211,188,116,.09);
}
.hero-mark {
  position: absolute; inset-inline-end: 7vw; top: 20%; width: 320px; height: 500px;
  opacity: .22; pointer-events: none;
}
.hero-mark span { position: absolute; inset-inline: 0; margin: auto; border: 1px solid var(--gold); border-bottom: 0; }
.hero-mark span:nth-child(1) { width: 100%; height: 100%; }
.hero-mark span:nth-child(2) { width: 74%; height: 82%; top: 18%; }
.hero-mark span:nth-child(3) { width: 49%; height: 64%; top: 36%; }
.hero-mark span:nth-child(4) { width: 24%; height: 46%; top: 54%; }
.hero-mark span:nth-child(5) { width: 8%; height: 11%; top: 64%; background: var(--gold); }
.hero-inner { position: relative; z-index: 2; padding-bottom: 92px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, .45fr); gap: 80px; align-items: end; }
.hero .display { max-width: 890px; }
.hero-sub { max-width: 600px; margin: 30px 0 0; color: rgba(255,255,255,.72); font-size: 17px; }
.hero-side { border-inline-start: 1px solid rgba(255,255,255,.2); padding-inline-start: 30px; }
.hero-stat { font-family: 'Cormorant Garamond', serif; font-size: 78px; line-height: .9; color: var(--gold-2); }
html[dir="rtl"] .hero-stat { font-family: 'Noto Kufi Arabic', sans-serif; font-size: 66px; }
.hero-stat-copy { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,.72); max-width: 230px; }
.hero-bottom { margin-top: 48px; display: flex; gap: 24px; flex-wrap: wrap; }
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  min-height: 52px; padding: 0 24px; border: 1px solid var(--gold); border-radius: var(--radius);
  font-size: 14px; font-weight: 600; transition: all .25s ease;
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-2); border-color: var(--gold-2); transform: translateY(-2px); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }

/* Page hero */
.page-hero { min-height: 590px; padding: 190px 0 95px; background: var(--night); color: white; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0/86px 100%; opacity:.7; }
.page-hero::after { content: ''; position:absolute; width:420px; height:420px; border:1px solid rgba(211,188,116,.2); transform:rotate(45deg); inset-inline-end:-90px; top:130px; box-shadow: inset 0 0 0 70px transparent, inset 0 0 0 71px rgba(211,188,116,.12); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero-copy { max-width: 880px; }
.page-hero .lead { max-width: 720px; margin-top: 28px; }

/* Intro / split */
.split { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 100px; align-items: start; }
.split.reverse { grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); }
.split .sticky { position: sticky; top: 140px; }
.copy p { margin: 0 0 24px; font-size: 17px; color: #444; }
.copy strong { color: var(--ink); }

.rule-list { margin-top: 54px; border-top: 1px solid var(--line); }
.rule-item { display: grid; grid-template-columns: 80px 1fr; gap: 26px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.rule-no { color: var(--copper); font-family: 'Cormorant Garamond', serif; font-size: 26px; }
.rule-item h3 { margin: 0 0 8px; font-size: 20px; font-weight: 600; }
.rule-item p { margin: 0; color: var(--muted); font-size: 15px; }

/* Practices */
.section-head { display: grid; grid-template-columns: 1.1fr .7fr; gap: 80px; align-items: end; margin-bottom: 64px; }
.section-head p { margin: 0; color: var(--muted); font-size: 16px; }
.practices-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.practice-card { min-height: 340px; padding: 30px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; transition: background .3s ease, color .3s ease; }
.practice-card::before { content: ''; position: absolute; inset: auto -40px -70px auto; width: 170px; height: 170px; border: 1px solid rgba(152,99,81,.18); transform: rotate(45deg); transition: transform .45s ease, border-color .3s ease; }
.practice-card:hover { background: var(--night); color: #fff; }
.practice-card:hover::before { transform: rotate(45deg) scale(1.25); border-color: rgba(211,188,116,.34); }
.practice-no { font-size: 12px; color: var(--copper); font-weight: 600; }
.practice-card:hover .practice-no { color: var(--gold-2); }
.practice-card h3 { font-size: 23px; line-height: 1.45; margin: 68px 0 18px; font-weight: 500; }
.practice-card p { font-size: 14px; color: var(--muted); margin: 0; max-width: 310px; }
.practice-card:hover p { color: rgba(255,255,255,.65); }
.practice-link { position: absolute; inset-inline-start: 30px; bottom: 28px; font-size: 13px; font-weight: 600; opacity: .8; }

/* Approach */
.approach-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; }
.approach-steps { border-top: 1px solid rgba(255,255,255,.2); }
.approach-step { padding: 35px 0; border-bottom: 1px solid rgba(255,255,255,.16); display:grid; grid-template-columns: 76px 1fr; gap:28px; }
.approach-step .n { color: var(--gold-2); font-family:'Cormorant Garamond',serif; font-size:30px; }
.approach-step h3 { margin:0 0 10px; font-size:22px; font-weight:500; }
.approach-step p { margin:0; color:rgba(255,255,255,.62); font-size:15px; }

/* Metrics */
.metrics { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-bottom:1px solid var(--line); }
.metric { padding: 48px 36px; border-inline-end: 1px solid var(--line); }
.metric:last-child { border-inline-end: 0; }
.metric strong { display:block; font-family:'Cormorant Garamond',serif; font-size:64px; line-height:1; font-weight:500; color: var(--copper); }
html[dir="rtl"] .metric strong { font-family:'Noto Kufi Arabic',sans-serif; font-size:54px; }
.metric span { display:block; margin-top:14px; color:var(--muted); font-size:14px; }

/* Legal ecosystem */
.ecosystem-grid { display:grid; grid-template-columns: repeat(2,1fr); gap:14px; margin-top:55px; }
.eco-card { background:#fff; border:1px solid var(--line); padding:30px; min-height:180px; display:grid; grid-template-columns:64px 1fr auto; gap:20px; align-items:start; transition:transform .25s ease, box-shadow .25s ease; }
.eco-card:hover { transform:translateY(-3px); box-shadow: var(--shadow); }
.eco-icon { width:56px; height:56px; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; font-family:'Cormorant Garamond',serif; font-size:24px; color:var(--copper); }
.eco-card h3 { margin:0 0 8px; font-size:19px; font-weight:600; }
.eco-card p { margin:0; color:var(--muted); font-size:14px; }
.eco-card .out { font-size:18px; color:var(--copper); }

/* Practice detail */
.practice-detail-list { border-top:1px solid var(--line); }
.practice-detail { display:grid; grid-template-columns:110px .75fr 1.25fr; gap:38px; padding:44px 0; border-bottom:1px solid var(--line); }
.practice-detail .no { color:var(--copper); font-family:'Cormorant Garamond',serif; font-size:28px; }
.practice-detail h2 { margin:0; font-size:25px; font-weight:500; line-height:1.4; }
.practice-detail ul { list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:10px; }
.practice-detail li { border:1px solid var(--line); padding:7px 11px; font-size:13px; color:var(--muted); background:rgba(255,255,255,.3); }

/* About founder block */
.founder-card { background:var(--night); color:#fff; padding:64px; display:grid; grid-template-columns: 1fr .8fr; gap:70px; position:relative; overflow:hidden; }
.founder-card::after { content:''; position:absolute; width:330px; height:330px; border:1px solid rgba(211,188,116,.2); transform:rotate(45deg); inset-inline-end:-130px; bottom:-140px; }
.founder-name { font-family:'Cormorant Garamond',serif; font-size:52px; line-height:1; margin:14px 0 22px; }
html[dir="rtl"] .founder-name { font-family:'Noto Kufi Arabic',sans-serif; font-size:39px; line-height:1.4; }
.founder-card p { color:rgba(255,255,255,.68); margin:0; }
.founder-monogram { display:flex; align-items:center; justify-content:center; min-height:260px; position:relative; z-index:2; }
.founder-monogram img { width:180px; height:180px; filter:drop-shadow(0 14px 24px rgba(0,0,0,.2)); }

/* Contact */
.contact-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:90px; align-items:start; }
.contact-list { margin-top:45px; border-top:1px solid var(--line); }
.contact-row { display:grid; grid-template-columns:115px 1fr; gap:20px; padding:24px 0; border-bottom:1px solid var(--line); }
.contact-row span:first-child { color:var(--muted); font-size:13px; }
.contact-row a, .contact-row div { font-weight:500; }
.form-card { background:#fff; padding:46px; box-shadow:var(--shadow); }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.field { display:flex; flex-direction:column; gap:9px; }
.field.full { grid-column:1/-1; }
.field label { font-size:12px; font-weight:600; color:var(--muted); }
.field input, .field textarea, .field select { width:100%; border:0; border-bottom:1px solid var(--line); background:transparent; padding:12px 0; outline:none; color:var(--ink); transition:border-color .2s ease; }
.field input:focus, .field textarea:focus, .field select:focus { border-color:var(--copper); }
.field textarea { min-height:130px; resize:vertical; }
.form-card .btn-primary { margin-top:26px; cursor:pointer; }
.form-note { font-size:12px; color:var(--muted); margin-top:14px; }

/* CTA */
.cta { padding:110px 0; background:var(--night); color:#fff; position:relative; overflow:hidden; }
.cta::before { content:''; position:absolute; width:420px; height:420px; border:1px solid rgba(211,188,116,.18); transform:rotate(45deg); inset-inline-end:-120px; top:-160px; box-shadow: inset 0 0 0 70px transparent, inset 0 0 0 71px rgba(211,188,116,.11); }
.cta-inner { position:relative; z-index:2; display:grid; grid-template-columns:1fr auto; gap:60px; align-items:end; }
.cta h2 { max-width:820px; }

/* Footer */
.footer { background:var(--ink); color:#fff; padding:70px 0 28px; }
.footer-top { display:grid; grid-template-columns:1.2fr .8fr .8fr; gap:70px; padding-bottom:60px; }
.footer-brand { max-width:440px; }
.footer-brand .brand { color:#fff; }
.footer-brand p { color:rgba(255,255,255,.55); margin-top:24px; font-size:14px; }
.footer h4 { font-size:12px; color:var(--gold-2); text-transform:uppercase; letter-spacing:.12em; margin:0 0 22px; }
html[dir="rtl"] .footer h4 { letter-spacing:0; }
.footer-links { display:flex; flex-direction:column; gap:10px; font-size:14px; color:rgba(255,255,255,.65); }
.footer-links a:hover { color:#fff; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.13); padding-top:24px; display:flex; justify-content:space-between; gap:20px; color:rgba(255,255,255,.45); font-size:12px; }

/* Floating actions */
.floating-actions { position:fixed; inset-inline-end:24px; bottom:24px; z-index:60; display:flex; flex-direction:column; gap:10px; }
.float-btn { width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center; box-shadow:0 10px 30px rgba(0,0,0,.20); transition:transform .2s ease; }
.float-btn:hover { transform:translateY(-3px); }
.float-btn.whatsapp { background:#25D366; color:white; }
.float-btn.call { background:var(--gold); color:var(--ink); }
.float-btn svg { width:22px; height:22px; }

/* Reveal */
.reveal { opacity:0; transform:translateY(18px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in { opacity:1; transform:none; }

/* Languages */
.lang-en { display:none !important; }
html[lang="en"] .lang-en { display:initial !important; }
html[lang="en"] .lang-ar { display:none !important; }
html[lang="en"] .lang-en.block { display:block !important; }
html[lang="ar"] .lang-ar.block { display:block !important; }

@media (max-width: 1050px) {
  :root { --container: min(100% - 36px, 980px); }
  .nav { display:none; }
  .menu-toggle { display:inline-flex; }
  .nav.mobile-open { display:flex; position:fixed; inset:0; background:var(--night); z-index:100; flex-direction:column; justify-content:center; gap:28px; font-size:20px; }
  .nav.mobile-open a { color:#fff; }
  .header-actions { position:relative; z-index:110; }
  .hero { min-height:760px; height:auto; padding-top:140px; }
  .hero-grid { grid-template-columns:1fr; gap:50px; }
  .hero-side { border-inline-start:0; border-top:1px solid rgba(255,255,255,.2); padding-inline-start:0; padding-top:28px; display:flex; gap:22px; align-items:end; }
  .hero-mark { inset-inline-end:-50px; opacity:.14; }
  .split, .split.reverse, .approach-grid, .contact-grid { grid-template-columns:1fr; gap:55px; }
  .split .sticky { position:static; }
  .practices-grid { grid-template-columns:repeat(2,1fr); }
  .section-head { grid-template-columns:1fr; gap:28px; }
  .founder-card { grid-template-columns:1fr; }
  .practice-detail { grid-template-columns:70px 1fr; }
  .practice-detail ul { grid-column:2; }
  .footer-top { grid-template-columns:1fr 1fr; }
  .footer-brand { grid-column:1/-1; }
}

@media (max-width: 680px) {
  :root { --container: calc(100vw - 28px); }
  .section { padding:82px 0; }
  .section.compact { padding:60px 0; }
  .header-inner { min-height:78px; }
  .brand { min-width:0; }
  .brand img { width:42px; height:42px; }
  .brand-copy { display:none; margin-inline-start:0; }
  .hero { padding-top:100px; min-height:720px; }
  .hero-inner { padding-bottom:55px; }
  .hero-bottom { gap:12px; }
  .btn-primary, .btn-ghost { min-height:48px; padding-inline:18px; }
  .hero-stat { font-size:60px; }
  .hero-mark { width:220px; height:350px; }
  .page-hero { min-height:510px; padding:150px 0 70px; }
  .practices-grid { grid-template-columns:1fr; }
  .practice-card { min-height:280px; }
  .practice-card h3 { margin-top:42px; }
  .metrics { grid-template-columns:1fr; }
  .metric { border-inline-end:0; border-bottom:1px solid var(--line); }
  .metric:last-child { border-bottom:0; }
  .ecosystem-grid { grid-template-columns:1fr; }
  .eco-card { grid-template-columns:52px 1fr auto; padding:24px; }
  .practice-detail { grid-template-columns:52px 1fr; gap:18px; padding:32px 0; }
  .founder-card { padding:36px 28px; }
  .form-card { padding:30px 22px; }
  .form-grid { grid-template-columns:1fr; }
  .field.full { grid-column:auto; }
  .cta { padding:82px 0; }
  .cta-inner { grid-template-columns:1fr; gap:35px; }
  .footer-top { grid-template-columns:1fr; gap:38px; }
  .footer-brand { grid-column:auto; }
  .footer-bottom { flex-direction:column; }
  .floating-actions { inset-inline-end:14px; bottom:14px; }
  .float-btn { width:48px; height:48px; }
  .rule-item { grid-template-columns:55px 1fr; }
}

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

/* ===== 2026 refinement: content, current-site imagery and responsive UX ===== */
.skip-link {
  position: fixed; inset-inline-start: 16px; top: 12px; z-index: 500;
  transform: translateY(-160%); background: #fff; color: var(--ink);
  padding: 10px 16px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.skip-link:focus { transform: translateY(0); }

.copy { min-width: 0; }
.copy p, .section-head p, .hero-sub { max-width: 68ch; }

.editorial-split {
  display: grid; grid-template-columns: minmax(320px,.88fr) minmax(0,1.12fr);
  gap: clamp(54px,7vw,110px); align-items: center;
}
.visual-panel {
  position: relative; min-height: 520px; overflow: hidden; background: var(--night);
  border: 1px solid rgba(8,10,11,.08); box-shadow: 0 22px 70px rgba(8,10,11,.10);
}
.visual-panel > img { width:100%; height:100%; position:absolute; inset:0; object-fit:cover; filter:saturate(.82) contrast(1.03); }
.visual-panel::after { content:''; position:absolute; inset:0; background:linear-gradient(180deg, transparent 50%, rgba(8,10,11,.28)); pointer-events:none; }
.visual-fallback { position:absolute; inset:0; display:none; place-items:center; background:var(--night); }
.visual-fallback img { width:min(54%,260px); opacity:.72; }
.visual-panel.image-missing > img { display:none; }
.visual-panel.image-missing .visual-fallback { display:grid; }
.visual-panel.portrait { min-height: 620px; }

.practice-top { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; min-height:58px; }
.practice-icon { width:50px; height:50px; object-fit:contain; opacity:.72; filter:grayscale(1) sepia(.25); transition:filter .25s ease, opacity .25s ease, transform .25s ease; }
.practice-card:hover .practice-icon { filter:brightness(0) invert(1); opacity:.82; transform:translateY(-2px); }
.practice-card h3 { margin-top:44px; }

.practice-detail-head { display:flex; align-items:flex-start; gap:18px; }
.practice-detail-head img { width:42px; height:42px; object-fit:contain; opacity:.68; filter:grayscale(1) sepia(.35); }
.practice-detail .no { min-width:40px; }
.practice-detail h2 { text-wrap:balance; }
.practice-detail li { max-width: 100%; }

.principles-grid { display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid var(--line); border-inline-start:1px solid var(--line); }
.principle { min-height:285px; padding:32px; border-inline-end:1px solid var(--line); border-bottom:1px solid var(--line); background:rgba(255,255,255,.2); }
.principle > span { font-family:'Cormorant Garamond',serif; font-size:25px; color:var(--copper); }
.principle h3 { margin:54px 0 14px; font-size:21px; font-weight:600; line-height:1.55; }
.principle p { margin:0; font-size:14px; color:var(--muted); }

.partner-section { background:#f5f5f1; }
.partners-grid { display:grid; grid-template-columns:repeat(5,1fr); border-top:1px solid var(--line); border-inline-start:1px solid var(--line); }
.partner-logo { min-height:180px; padding:26px 20px; border-inline-end:1px solid var(--line); border-bottom:1px solid var(--line); display:flex; flex-direction:column; justify-content:center; align-items:center; gap:16px; text-align:center; }
.partner-logo img { max-width:120px; width:auto; height:70px; object-fit:contain; filter:grayscale(1); opacity:.75; transition:.25s ease; }
.partner-logo:hover img { filter:grayscale(0); opacity:1; }
.partner-logo span { font-size:12px; color:var(--muted); line-height:1.55; }
.partner-logo.image-missing { display:none; }

.contact-actions { margin-top:30px; display:flex; gap:16px; align-items:center; flex-wrap:wrap; }
.form-title { margin:18px 0 30px; }
.service-intro { padding-bottom:90px; }

/* Better touch, focus and form ergonomics */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline:2px solid var(--gold); outline-offset:3px; }
.nav a, .lang-switch, .menu-toggle, .btn-primary, .btn-ghost, .float-btn { min-height:44px; }
.field input, .field textarea { width:100%; border-radius:0; }
.field textarea { min-height:150px; resize:vertical; }

/* Prevent long URLs/English words from forcing horizontal scroll */
.contact-row, .footer-links, .eco-card, .practice-detail, .practice-card { min-width:0; }
.contact-row a, .footer-links a, .eco-card p { overflow-wrap:anywhere; }

@media (max-width: 1180px) {
  .partners-grid { grid-template-columns:repeat(3,1fr); }
  .principles-grid { grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 1050px) {
  .editorial-split { grid-template-columns:1fr; gap:50px; }
  .visual-panel { min-height: clamp(360px,58vw,560px); }
  .visual-panel.portrait { min-height: clamp(420px,70vw,650px); }
  .practice-detail { grid-template-columns:90px 1fr; }
  .practice-detail > div:last-child { grid-column:2; }
  .practice-detail-head { grid-row:1 / span 2; flex-direction:column; }
}

@media (max-width: 760px) {
  .principles-grid { grid-template-columns:1fr; }
  .partners-grid { grid-template-columns:repeat(2,1fr); }
  .partner-logo { min-height:150px; padding:22px 16px; }
  .partner-logo img { height:58px; max-width:105px; }
  .hero .display { max-width: 13ch; }
  html[dir="rtl"] .hero .display { max-width: 14ch; }
  .hero-sub { font-size:16px; }
  .hero-side { max-width:100%; }
}

@media (max-width: 680px) {
  .title-xl { font-size:clamp(38px,12vw,50px); }
  html[dir="rtl"] .title-xl { font-size:clamp(31px,9.2vw,42px); }
  .title-lg { font-size:clamp(34px,10.6vw,46px); }
  html[dir="rtl"] .title-lg { font-size:clamp(29px,8.1vw,38px); }
  .display { font-size:clamp(47px,14vw,64px); }
  html[dir="rtl"] .display { font-size:clamp(36px,10.6vw,48px); line-height:1.42; }
  .hero { min-height:min(860px,100svh); padding-top:108px; }
  .hero-grid { gap:36px; }
  .hero-inner { padding-bottom:42px; }
  .hero-bottom { display:grid; grid-template-columns:1fr; width:100%; max-width:360px; }
  .btn-primary, .btn-ghost { width:100%; }
  .page-hero { min-height:460px; padding:132px 0 64px; }
  .editorial-split { gap:36px; }
  .visual-panel, .visual-panel.portrait { min-height:360px; }
  .practice-card { padding:26px 24px; min-height:300px; }
  .practice-card h3 { margin-top:30px; font-size:22px; }
  .practice-detail { grid-template-columns:1fr; gap:18px; }
  .practice-detail-head { grid-row:auto; flex-direction:row; align-items:center; }
  .practice-detail > div:last-child, .practice-detail ul { grid-column:1; }
  .practice-detail h2 { font-size:22px; }
  .practice-detail ul { gap:8px; }
  .practice-detail li { width:100%; padding:9px 11px; }
  .principle { min-height:240px; padding:26px 24px; }
  .principle h3 { margin-top:36px; }
  .partners-grid { grid-template-columns:1fr 1fr; }
  .partner-logo { min-height:138px; }
  .contact-actions { align-items:stretch; }
  .contact-actions .btn-primary { width:100%; }
  .contact-actions .link-arrow { min-height:44px; align-items:center; }
  .eco-card { min-height:auto; }
  .footer-bottom { padding-bottom:72px; }
}

@media (max-width: 390px) {
  :root { --container: calc(100vw - 24px); }
  .header-inner { min-height:72px; }
  .brand img { width:38px; height:38px; }
  .lang-switch { min-width:46px; padding-inline:10px; }
  .hero-mark { inset-inline-end:-92px; }
  .partners-grid { grid-template-columns:1fr; }
  .partner-logo { min-height:126px; }
  .form-card { padding:28px 18px; }
  .floating-actions { inset-inline-end:12px; bottom:12px; }
}

@supports (padding: max(0px)) {
  .floating-actions { bottom:max(24px, env(safe-area-inset-bottom)); }
  @media (max-width:680px) { .floating-actions { bottom:max(14px, env(safe-area-inset-bottom)); } }
}

/* v3 responsive and content-media audit */
img { height:auto; }
.practice-icon, .practice-detail-head img { width:42px; height:42px; object-fit:contain; filter:grayscale(1) sepia(.15); opacity:.82; }
.practice-top { display:flex; align-items:center; justify-content:space-between; gap:18px; min-height:44px; }
.practice-card:hover .practice-icon { filter:none; opacity:1; }
.visual-panel { position:relative; min-height:560px; overflow:hidden; background:var(--night); }
.visual-panel > img { width:100%; height:100%; position:absolute; inset:0; object-fit:cover; object-position:center; }
.visual-panel::after { content:''; position:absolute; inset:0; background:linear-gradient(180deg, transparent 45%, rgba(8,10,11,.45)); pointer-events:none; }
.visual-fallback { position:absolute; inset:0; display:none; align-items:center; justify-content:center; background:var(--night); }
.visual-fallback img { width:min(42%,220px); filter:drop-shadow(0 12px 32px rgba(0,0,0,.22)); }
.visual-panel.image-missing > img { display:none; }
.visual-panel.image-missing .visual-fallback { display:flex; }
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
  .reveal{opacity:1;transform:none}
}
@media (max-width:680px){
  .site-header .brand{display:flex;flex:0 0 auto}
  .site-header .brand img{width:40px;height:40px}
  .header-inner{gap:12px}
  .header-actions{margin-inline-start:auto}
  .visual-panel{min-height:340px}
  .practice-top{min-height:40px}
  .practice-icon,.practice-detail-head img{width:36px;height:36px}
}
@media (max-width:390px){ .hero-side{padding-bottom:6px} }


/* ===== v4: IBM Plex Sans Arabic + complete one-page homepage + Saudi hero ===== */
html { scroll-padding-top: 96px; }
.onepage-anchor { scroll-margin-top: 94px; }

body,
button, input, textarea, select,
html[dir="ltr"] body {
  font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.display, .title-xl, .title-lg, .title-md,
html[dir="rtl"] .display, html[dir="rtl"] .title-xl, html[dir="rtl"] .title-lg, html[dir="rtl"] .title-md,
.hero-stat, html[dir="rtl"] .hero-stat,
.metric strong, .rule-no, .approach-step .n, .principle > span {
  font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif;
}
html[dir="ltr"] body { line-height: 1.68; }

.hero {
  min-height: 820px;
  height: auto;
  max-height: none;
  padding: 145px 0 92px;
  align-items: center;
}
.hero::after { display:none; }
.hero-mark { display:none; }
.hero-inner { padding-bottom:0; }
.hero-grid {
  grid-template-columns: minmax(0,1.05fr) minmax(380px,.78fr);
  gap: clamp(42px,5vw,82px);
  align-items: center;
}
.hero-copy { min-width:0; }
.hero .display {
  max-width: 760px;
  font-size: clamp(50px,5.4vw,78px);
  line-height:1.14;
  letter-spacing:-.025em;
}
html[dir="rtl"] .hero .display {
  max-width: 780px;
  font-size: clamp(43px,4.9vw,68px);
  line-height:1.38;
  letter-spacing:-.025em;
}
.hero-sub { max-width: 720px; font-size:17px; line-height:1.95; }
.hero-visual {
  position:relative;
  margin:0;
  min-height: 620px;
  overflow:hidden;
  border:1px solid rgba(211,188,116,.28);
  box-shadow:0 30px 80px rgba(0,0,0,.28);
  background:#081519;
}
.hero-visual > img {
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  object-position:center;
  filter:saturate(.78) contrast(1.05);
}
.hero-visual-overlay {
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(8,10,11,.05) 30%, rgba(8,10,11,.82) 100%),
    linear-gradient(90deg, rgba(16,42,50,.22), transparent 55%);
}
.hero-photo-copy {
  position:absolute; inset-inline-start:28px; bottom:32px; z-index:2;
  display:flex; flex-direction:column; gap:3px;
}
.hero-photo-copy span { font-size:12px; color:rgba(255,255,255,.68); }
.hero-photo-copy strong { font-size:25px; color:#fff; font-weight:500; }
.hero-image-stat {
  position:absolute; inset-inline-end:24px; top:24px; z-index:2;
  width:145px; padding:18px 18px 16px;
  background:rgba(8,10,11,.66); backdrop-filter:blur(10px);
  border:1px solid rgba(211,188,116,.28);
}
.hero-image-stat strong { display:block; font-size:42px; line-height:1; color:var(--gold-2); font-weight:500; }
.hero-image-stat span { display:block; margin-top:8px; font-size:11px; line-height:1.55; color:rgba(255,255,255,.72); }

.vision-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-top:1px solid var(--line);
  border-inline-start:1px solid var(--line);
}
.vision-grid .principle { min-height:300px; }
.contact-list-dark { margin-top:42px; border-color:rgba(255,255,255,.16); }
.contact-list-dark .contact-row { border-color:rgba(255,255,255,.15); }
.contact-list-dark .contact-row > span { color:rgba(255,255,255,.58); }
.contact-list-dark a, .contact-list-dark div { color:#fff; }
#contact .form-card { background:var(--paper); color:var(--ink); }
#contact .lead { color:rgba(255,255,255,.74); }
#contact .btn-ghost { color:#fff; }
.image-credit {
  padding:18px 0 0;
  font-size:10px;
  line-height:1.6;
  color:rgba(255,255,255,.38);
}

@media (max-width:1180px) {
  .hero-grid { grid-template-columns:minmax(0,1fr) minmax(340px,.72fr); gap:42px; }
  .hero-visual { min-height:560px; }
}

@media (max-width:1050px) {
  .hero { min-height:auto; padding:130px 0 76px; }
  .hero-grid { grid-template-columns:1fr; gap:44px; }
  .hero-visual { min-height:500px; width:min(100%,760px); }
  .hero .display, html[dir="rtl"] .hero .display { max-width:900px; }
  .vision-grid { grid-template-columns:1fr; }
  .vision-grid .principle { min-height:auto; }
}

@media (max-width:680px) {
  html { scroll-padding-top:78px; }
  .onepage-anchor { scroll-margin-top:76px; }
  .hero { padding:105px 0 58px; min-height:auto; }
  .hero-grid { gap:34px; }
  .hero .display { font-size:clamp(43px,13vw,58px); line-height:1.18; }
  html[dir="rtl"] .hero .display { font-size:clamp(35px,10.5vw,46px); line-height:1.46; max-width:none; }
  .hero-sub { font-size:15.5px; line-height:1.9; }
  .hero-visual { min-height:360px; }
  .hero-image-stat { width:126px; inset-inline-end:16px; top:16px; padding:14px; }
  .hero-image-stat strong { font-size:34px; }
  .hero-photo-copy { inset-inline-start:18px; bottom:20px; }
  .hero-photo-copy strong { font-size:21px; }
  .vision-grid .principle { padding:26px 24px; }
}

@media (max-width:390px) {
  .hero-visual { min-height:315px; }
  .hero-image-stat { width:112px; }
  .hero-image-stat span { font-size:10px; }
}


/* FINAL HERO — local KAFD image, clearly visible */
.hero {
  position: relative !important;
  min-height: 820px !important;
  background:
    linear-gradient(90deg, rgba(5,18,23,.16) 0%, rgba(5,18,23,.44) 48%, rgba(5,18,23,.86) 100%),
    url('kafd-hero.jpg') center 48% / cover no-repeat !important;
}
html[dir="ltr"] .hero {
  background:
    linear-gradient(90deg, rgba(5,18,23,.86) 0%, rgba(5,18,23,.44) 52%, rgba(5,18,23,.16) 100%),
    url('kafd-hero.jpg') center 48% / cover no-repeat !important;
}
.hero::before { background: none !important; opacity: 0 !important; }
.hero::after { display: none !important; }
.hero .hero-grid { display:block !important; }
.hero .hero-copy { max-width:790px !important; position:relative; z-index:2; }
.hero .hero-visual { display:none !important; }
.hero .hero-sub { max-width:690px !important; color:rgba(255,255,255,.88) !important; }
.hero .display, .hero .hero-sub { text-shadow:0 2px 24px rgba(0,0,0,.42); }
.hero-experience {
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-42%);
  width:185px;
  z-index:3;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.50);
  color:#fff;
}
html[dir="ltr"] .hero-experience { left:auto; right:0; }
.hero-experience strong { display:block; font-size:72px; line-height:.95; font-weight:400; color:var(--gold-2); }
.hero-experience span { display:block; margin-top:12px; font-size:14px; line-height:1.6; color:rgba(255,255,255,.86); }
@media (max-width:1050px) {
  .hero { min-height:760px !important; }
  .hero-experience { display:none !important; }
}
@media (max-width:680px) {
  .hero {
    min-height:720px !important;
    background:
      linear-gradient(180deg, rgba(5,18,23,.32) 0%, rgba(5,18,23,.56) 44%, rgba(5,18,23,.88) 100%),
      url('kafd-hero.jpg') 56% center / cover no-repeat !important;
  }
  .hero .hero-copy { padding-top:28px; }
}


/* Client notes — 2026-10-04 */
.hero-firm-name {
  max-width: 760px;
  line-height: 1.7;
}

/* Keep the experience marker visible on every viewport. */
.hero-experience {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-end;
  align-self: end;
  justify-self: start;
  position: relative;
  z-index: 3;
  color: #fff;
  min-width: 190px;
  padding: 18px 0 4px;
  border-top: 1px solid rgba(255,255,255,.38);
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero-experience strong {
  font-size: clamp(46px,5vw,76px);
  line-height: .95;
  font-weight: 500;
  letter-spacing: -.04em;
}
.hero-experience > span {
  margin-top: 10px;
  max-width: 180px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,.88);
}

/* Remove the unnecessarily large vertical void between About and the next section. */
#about.section {
  padding-bottom: clamp(42px,5vw,70px) !important;
}
#about + .section {
  padding-top: clamp(42px,5vw,70px) !important;
}
#about .editorial-split {
  align-items: center !important;
}

@media (max-width: 900px) {
  .hero .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 26px !important;
  }
  .hero-experience {
    display: flex !important;
    width: min(100%, 360px);
    min-width: 0;
    justify-self: stretch;
    align-self: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-top: 4px;
    padding: 18px 0 0;
  }
  .hero-experience strong {
    flex: 0 0 auto;
    font-size: 42px;
  }
  .hero-experience > span {
    margin-top: 0;
    max-width: 190px;
    font-size: 13px;
  }
  #about.section {
    padding-bottom: 36px !important;
  }
  #about + .section {
    padding-top: 36px !important;
  }
}

/* Profile practice copy */
.profile-practice-details .practice-detail{padding-block:clamp(44px,5vw,70px)}
.practice-summary{max-width:920px;margin:14px 0 20px;color:var(--muted);font-size:16px;line-height:1.9}
.practice-scope{margin:18px 0 12px;font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--copper)}
html[dir="rtl"] .practice-scope{letter-spacing:0}

/* Profile partners */
.profile-pillars .section-head{margin-bottom:48px}
.profile-expertise .copy p{color:rgba(255,255,255,.75)}
.profile-partners-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.profile-partners-grid .partner-logo{min-height:200px;padding:24px 18px}
.profile-partners-grid .partner-logo>img{width:auto;height:72px;max-width:150px;object-fit:contain;filter:grayscale(1) contrast(.9);opacity:.82;margin-inline:auto}
.profile-partners-grid .partner-logo:hover>img{filter:grayscale(0);opacity:1}
.partner-wordmark{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.partner-wordmark-mark{min-width:72px;min-height:72px;padding:0 12px;display:grid;place-items:center;border:1px solid rgba(8,10,11,.15);color:var(--night);font-size:22px;font-weight:700;background:rgba(255,255,255,.55)}
.profile-partners-grid .partner-logo>span{margin-top:18px;max-width:230px;line-height:1.55}
@media(max-width:1050px){.profile-partners-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.profile-partners-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-partners-grid .partner-logo{min-height:170px;padding:18px 12px}.profile-partners-grid .partner-logo>img{height:58px;max-width:120px}.partner-wordmark-mark{min-width:60px;min-height:60px;font-size:18px}}


/* Compact one-page pass — preserve content, reduce scrolling */
.section {
  padding-block: clamp(62px, 6vw, 82px) !important;
}
.section.compact {
  padding-block: clamp(48px, 5vw, 64px) !important;
}
.section-head {
  margin-bottom: clamp(30px, 3.5vw, 44px) !important;
  gap: clamp(28px, 4vw, 52px) !important;
}

/* Slightly shorter first screen while keeping the KAFD hero prominent. */
.hero {
  min-height: 680px !important;
  height: 88svh !important;
  max-height: 820px !important;
}
.hero-inner { padding-bottom: clamp(48px, 6vw, 70px) !important; }
.hero-bottom { margin-top: 28px !important; }
.hero-sub { margin-top: 20px !important; }

/* About + working principles */
#about .copy p { margin-bottom: 16px !important; }
.profile-pillars .section-head { margin-bottom: 28px !important; }
.profile-pillars .principle {
  padding: 24px !important;
  min-height: 0 !important;
}
.profile-pillars .principle p { margin-bottom: 0 !important; }
.profile-expertise .copy p { margin-bottom: 16px !important; }

/* Practice areas: 9 long sections become a compact card grid. */
.profile-practice-details {
  padding-block: clamp(50px, 5vw, 70px) !important;
}
.profile-practice-details .practice-detail-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1px !important;
  background: var(--line);
  border: 1px solid var(--line);
}
.profile-practice-details .practice-detail {
  padding: 26px !important;
  min-height: 0 !important;
  background: var(--paper);
  border: 0 !important;
  display: flex;
  flex-direction: column;
}
.profile-practice-details .practice-detail-head {
  margin-bottom: 18px !important;
}
.profile-practice-details .practice-detail-head img {
  width: 42px !important;
  height: 42px !important;
}
.profile-practice-details .practice-detail h2 {
  margin-bottom: 10px !important;
  font-size: clamp(22px, 2vw, 30px) !important;
}
.profile-practice-details .practice-summary {
  margin: 0 0 18px !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
}
.practice-scope-details {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.practice-scope-details summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--copper);
  user-select: none;
}
.practice-scope-details summary::-webkit-details-marker { display: none; }
.scope-toggle {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
  transition: transform .2s ease;
}
.practice-scope-details[open] .scope-toggle { transform: rotate(45deg); }
.practice-scope-body {
  padding-top: 14px;
}
.practice-scope-body .practice-scope {
  margin-top: 0 !important;
}
.practice-scope-body ul {
  margin-block: 8px 0 !important;
  padding-inline-start: 20px !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
}

/* Partners: denser visual wall instead of tall logo cards. */
.profile-partners-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}
.profile-partners-grid .partner-logo {
  min-height: 145px !important;
  padding: 18px 12px !important;
}
.profile-partners-grid .partner-logo > img {
  height: 54px !important;
  max-width: 115px !important;
}
.profile-partners-grid .partner-logo > span {
  margin-top: 12px !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}
.profile-partners-grid .partner-wordmark-mark {
  min-width: 54px !important;
  min-height: 54px !important;
  font-size: 16px !important;
}

/* Knowledge/resource cards and office section tighter, without removing features. */
#knowledge .ecosystem-grid { gap: 12px !important; }
#knowledge .eco-card { padding: 20px !important; }
.office-section, #contact { padding-block: clamp(56px, 5vw, 76px) !important; }

@media (max-width: 1050px) {
  .profile-practice-details .practice-detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .profile-partners-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .section { padding-block: 46px !important; }
  .section-head { margin-bottom: 26px !important; }
  .hero {
    height: auto !important;
    min-height: 690px !important;
    max-height: none !important;
  }
  .hero-inner { padding-bottom: 42px !important; }
  .profile-pillars .principle { padding: 20px !important; }
  .profile-practice-details .practice-detail-list {
    grid-template-columns: 1fr !important;
  }
  .profile-practice-details .practice-detail { padding: 22px !important; }
  .profile-partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .profile-partners-grid .partner-logo { min-height: 130px !important; }
}

/* Single-column contact after form removal */
.contact-grid-single {
  grid-template-columns: minmax(0, 1fr) !important;
  max-width: 900px;
  margin-inline: auto;
}
