/* Anwar Ali Bakhurji Law Firm — v2
   Typographic, no photography. Brand forest + brass from the logo.
   Display: Noto Kufi Arabic (ar) / Inter Tight (en), light weights at large sizes.
   Text: IBM Plex Sans Arabic. Logical properties throughout so RTL and LTR share one sheet. */

:root {
  --night: #1b261d;
  --forest: #233226;
  --olive: #42533e;
  --brass: #a3854f;
  --brass-hi: #cdb383;
  --bone: #e9e8e1;
  --paper: #f1f1ec;
  --white: #fbfbf8;
  --ink: #161d17;
  --muted: #5d665b;
  --line: #d5d5cc;
  --line-dk: rgba(233, 232, 225, .14);
  --on-dk: #e9e8e1;
  --on-dk-2: rgba(233, 232, 225, .62);

  --text: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --disp: "Noto Kufi Arabic", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --wrap: 1360px;
  --g: clamp(18px, 4.2vw, 64px);
  --sec: clamp(88px, 12vw, 180px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}
:lang(en) { --disp: "Inter Tight", "Helvetica Neue", Arial, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--text); font-size: 1.0625rem; line-height: 1.85;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
:lang(en) body { line-height: 1.65; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
bdi { unicode-bidi: isolate; }
::selection { background: var(--brass-hi); color: var(--night); }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -80px; z-index: 200; background: var(--brass); color: var(--white); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--g) * 2); margin-inline: auto; padding-inline: var(--g); }
.sec { padding-block: var(--sec); }

/* Type -------------------------------------------------------------- */
.display { font-family: var(--disp); font-weight: 200; letter-spacing: 0; }
:lang(en) .display { font-weight: 300; letter-spacing: -.035em; }
.h2 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.6rem); line-height: 1.3; text-wrap: balance; }
:lang(en) .h2 { line-height: 1.02; }
.h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); font-weight: 500; line-height: 1.5; }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(48px, 7vw, 104px); }
.sec-intro { margin: 0; color: var(--muted); max-width: 46ch; }

/* Word reveal: each word slides up inside its own mask. */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .14em .2em; margin-block: -.14em -.2em; }
.w > span { display: inline-block; }
.js .reveal-words .w > span { transform: translateY(108%); transition: transform 1.1s var(--ease) calc(var(--d, 0) * 55ms); }
.js .reveal-words.in .w > span { transform: none; }

.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Buttons ----------------------------------------------------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  min-height: 54px; padding: 0 1.7em; border: 1px solid transparent; border-radius: 999px;
  font-size: .98rem; font-weight: 500; text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease), background-color .45s var(--ease);
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; flex: none; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover::before { transform: none; }
.btn--light { background: var(--bone); color: var(--night); }
.btn--light::before { background: var(--brass-hi); }
.btn--dark { background: var(--night); color: var(--bone); margin-top: 1rem; }
.btn--dark::before { background: var(--olive); }
.btn--line { border-color: var(--line); color: var(--ink); }
.btn--line::before { background: var(--night); }
.btn--line:hover { color: var(--bone); border-color: var(--night); }
.btn--text { padding-inline: .4em; color: var(--on-dk); min-height: 54px; }
.btn--text::before { display: none; }
.btn--text::after { content: ""; position: absolute; inset-inline: .4em; bottom: 14px; height: 1px; background: currentColor; transform-origin: var(--o, right); transition: transform .5s var(--ease); }
:lang(en) .btn--text::after { --o: left; }
.btn--text:hover::after { transform: scaleX(.3); }
.btn--block { width: 100%; }

.link { color: var(--olive); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .35em; text-decoration-color: var(--brass); }

/* Header ------------------------------------------------------------ */
.hdr { position: fixed; inset-inline: 0; top: 0; z-index: 60; color: var(--on-dk); transition: background-color .5s, color .5s, transform .6s var(--ease); }
.hdr-in { display: flex; align-items: center; gap: 2rem; height: 128px; padding-inline: var(--g); max-width: calc(var(--wrap) + var(--g) * 2); margin-inline: auto; transition: height .5s var(--ease); }
.brand { flex: none; }
.logo { height: 96px; width: auto; transition: height .5s var(--ease); }
.logo--dark { display: none; }
.nav { margin-inline-start: auto; }
.nav ul { display: flex; gap: clamp(1.1rem, 2.4vw, 2.6rem); }
.nav ul a { position: relative; text-decoration: none; font-size: .93rem; padding-block: .4em; opacity: .82; transition: opacity .3s; }
.nav ul a:hover, .nav ul a[aria-current="true"] { opacity: 1; }
.nav ul a[aria-current="true"]::before { content: ""; position: absolute; top: 50%; inset-inline-start: -12px; width: 4px; height: 4px; margin-top: -2px; background: var(--brass-hi); transform: rotate(45deg); }
.nav-foot { display: none; }
.hdr-act { display: flex; align-items: center; gap: 1.4rem; }
.lang { text-decoration: none; font-size: .9rem; opacity: .8; }
.lang:hover { opacity: 1; }
.pill { display: inline-flex; align-items: center; min-height: 42px; padding: 0 1.25em; border: 1px solid currentColor; border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 500; transition: background-color .4s, color .4s, border-color .4s; }
.pill:hover { background: var(--bone); color: var(--night); border-color: var(--bone); }
.menu-btn { display: none; width: 46px; height: 46px; place-items: center; background: none; border: 1px solid currentColor; border-radius: 999px; cursor: pointer; color: inherit; }
.menu-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.hdr.is-solid { background: rgba(241, 241, 236, .9); color: var(--ink); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 rgba(22, 29, 23, .08); }
.hdr.is-solid .hdr-in { height: 92px; }
.hdr.is-solid .logo { height: 70px; }
.hdr.is-solid .logo--light { display: none; }
.hdr.is-solid .logo--dark { display: block; }
.hdr.is-solid .pill:hover { background: var(--night); color: var(--bone); border-color: var(--night); }
.hdr.is-hidden { transform: translateY(-100%); }

/* Hero ---------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(120% 80% at 70% 0%, #2a3a2d 0%, var(--night) 60%); color: var(--on-dk);
  padding: 180px var(--g) 0;
}
.lattice { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 30%, rgba(0,0,0,.25) 62%, transparent 88%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 30%, rgba(0,0,0,.25) 62%, transparent 88%); }
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 50% at 50% 50%, transparent, rgba(27, 38, 29, .55)); }
.hero-in { width: 100%; max-width: var(--wrap); margin-inline: auto; }
.hero-title { font-size: clamp(2.5rem, 1rem + 6.6vw, 8.4rem); line-height: 1.32; margin-bottom: clamp(32px, 5vh, 64px); }
:lang(en) .hero-title { font-size: clamp(2.6rem, 1rem + 6.4vw, 8rem); line-height: 1; }
.hero-title .line { display: block; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 2rem 4rem; align-items: end; padding-bottom: clamp(36px, 6vh, 64px); }
.hero-lead { margin: 0; max-width: 52ch; color: var(--on-dk-2); font-size: clamp(1rem, .95rem + .25vw, 1.15rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; justify-content: flex-end; align-items: center; }
.facts { width: 100%; max-width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-dk); }
.facts > div { padding: 22px 0 30px; display: flex; flex-direction: column; gap: .1rem; }
.facts > div + div { padding-inline-start: clamp(16px, 3vw, 40px); border-inline-start: 1px solid var(--line-dk); }
.facts dt { font-weight: 500; color: var(--on-dk); }
.facts dd { font-size: .88rem; color: var(--on-dk-2); line-height: 1.6; }

/* The orchestrated opening: words rise, then the details. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .w > span { animation: up 1.3s var(--ease) both; animation-delay: calc(.35s + var(--d, 0) * 75ms); }
  .js .hero [data-rise] { animation: fade 1.2s var(--ease) both; animation-delay: 1.15s; }
  .js .hero .facts[data-rise] { animation-delay: 1.4s; }
}
@keyframes up { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Statement (scroll-lit) -------------------------------------------- */
.statement { background: var(--paper); padding-block: clamp(110px, 16vw, 240px) clamp(80px, 10vw, 150px); }
.kicker { font-size: .95rem; font-weight: 500; color: var(--brass); margin-bottom: clamp(24px, 3vw, 40px); max-width: 40ch; }
.statement-text { font-family: var(--disp); font-weight: 200; font-size: clamp(1.6rem, 1rem + 2.5vw, 3.5rem); line-height: 1.65; margin: 0; max-width: 30ch; text-wrap: pretty; }
:lang(en) .statement-text { font-weight: 300; line-height: 1.25; letter-spacing: -.02em; max-width: 26ch; }
.js .statement-text .sw { color: rgba(22, 29, 23, .14); transition: color .5s linear; }
.js .statement-text .sw.lit { color: var(--ink); }

/* Principles --------------------------------------------------------- */
.principles { padding-top: 0; }
.principles-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(48px, 8vw, 140px); }
.impacts .h3 { color: var(--olive); margin-bottom: 1.4rem; }
.impacts li { padding-block: 1.25rem; border-top: 1px solid var(--line); font-size: clamp(1.05rem, .95rem + .45vw, 1.35rem); line-height: 1.6; }
.impacts li:last-child { border-bottom: 1px solid var(--line); }
.values { display: grid; gap: 2.6rem; align-content: start; padding-top: .3rem; }
.value { display: grid; grid-template-columns: 9ch 1fr; gap: 1.5rem; }
:lang(en) .value { grid-template-columns: 12ch 1fr; }
.value dt { font-family: var(--disp); font-weight: 300; font-size: 1.35rem; line-height: 1.5; color: var(--olive); }
.value dd { color: var(--muted); }

/* Practice areas ----------------------------------------------------- */
.areas-sec { background: var(--white); }
.areas { border-top: 1px solid var(--ink); }
.area { border-bottom: 1px solid var(--line); }
.area-btn {
  position: relative; isolation: isolate; width: 100%;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 48px; gap: 2rem; align-items: center;
  padding: clamp(22px, 2.4vw, 34px) 0; background: none; border: 0; cursor: pointer; text-align: start;
  transition: color .5s var(--ease), padding .6s var(--ease);
}
.area-btn::before { content: ""; position: absolute; inset: 0 calc(var(--g) * -.5); z-index: -1; background: var(--night); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.area-name { font-family: var(--disp); font-weight: 300; font-size: clamp(1.35rem, 1rem + 1.4vw, 2.25rem); line-height: 1.4; }
:lang(en) .area-name { letter-spacing: -.02em; line-height: 1.15; }
.area-short { color: var(--muted); font-size: .95rem; line-height: 1.75; max-width: 56ch; transition: color .5s; }
.area-ico { justify-self: end; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; transition: border-color .5s, background-color .5s, transform .6s var(--ease); }
.area-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
@media (hover: hover) {
  .area-btn:hover { color: var(--bone); padding-inline: clamp(12px, 1.6vw, 28px); }
  .area-btn:hover::before { transform: scaleY(1); }
  .area-btn:hover .area-short { color: var(--on-dk-2); }
  .area-btn:hover .area-ico { border-color: var(--brass-hi); background: var(--brass-hi); color: var(--night); transform: rotate(90deg); }
}

/* Approach (a real sequence, numbered) ------------------------------- */
.approach { background: var(--night); color: var(--on-dk); }
.approach .sec-intro { color: var(--on-dk-2); }
.approach-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 8vw, 140px); align-items: start; }
.approach-head { position: sticky; top: 130px; }
.approach-head .h2 { margin-bottom: 1.5rem; }
.steps { position: relative; padding-inline-start: clamp(28px, 4vw, 56px); }
.steps-rail { position: absolute; inset-inline-start: 0; top: 8px; bottom: 8px; width: 1px; background: var(--line-dk); }
.steps-fill { position: absolute; inset: 0; background: var(--brass-hi); transform-origin: top; transform: scaleY(var(--p, 0)); }
.step { position: relative; display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding-block: 0 clamp(48px, 6vw, 84px); }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; top: .9rem; inset-inline-start: calc(clamp(28px, 4vw, 56px) * -1 - 4px); width: 9px; height: 9px; background: var(--night); border: 1px solid var(--brass-hi); transform: rotate(45deg); transition: background-color .4s; }
.step.on::before { background: var(--brass-hi); }
.step-n { font-family: "Inter Tight", sans-serif; font-weight: 200; font-size: 2rem; line-height: 1.2; color: var(--brass-hi); font-variant-numeric: tabular-nums; }
.step-t { font-family: var(--disp); font-weight: 300; font-size: clamp(1.3rem, 1.05rem + .8vw, 1.85rem); line-height: 1.5; margin-bottom: .6rem; }
:lang(en) .step-t { line-height: 1.2; letter-spacing: -.015em; }
.step p { margin: 0; color: var(--on-dk-2); max-width: 52ch; }

/* Founder ------------------------------------------------------------ */
.founder { background: var(--bone); padding-block: var(--sec); }
.founder-quote { margin: 0 0 clamp(56px, 8vw, 112px); }
.founder-quote p { margin: 0; font-size: clamp(2.2rem, 1rem + 5vw, 6.4rem); line-height: 1.35; color: var(--olive); max-width: 18ch; text-wrap: balance; }
:lang(en) .founder-quote p { line-height: 1.02; }
.founder-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: clamp(32px, 5vw, 80px); border-top: 1px solid #cbcac0; padding-top: 2rem; }
.founder-name { font-family: var(--disp); font-weight: 400; font-size: clamp(1.4rem, 1.1rem + .8vw, 1.9rem); line-height: 1.45; }
.founder-role { color: var(--brass); font-weight: 500; margin-top: .3rem; }
.founder-copy p { color: #3a4339; }
.creds li { padding-block: .8rem; border-bottom: 1px solid #cbcac0; font-size: .95rem; font-weight: 500; }
.creds li:first-child { padding-top: 0; }

/* Team --------------------------------------------------------------- */
.team { background: var(--white); }
.tgroup + .tgroup { margin-top: clamp(48px, 6vw, 80px); }
.tgroup-h { font-size: .95rem; font-weight: 500; color: var(--brass); margin-bottom: 1rem; }
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 56px); border-top: 1px solid var(--ink); }
.people li { border-bottom: 1px solid var(--line); }
.person { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; padding: 1.2rem 0; background: none; border: 0; text-align: start; cursor: pointer; }
.person-name { font-family: var(--disp); font-weight: 400; font-size: 1.12rem; line-height: 1.6; transition: color .3s, transform .5s var(--ease); }
.person-role { font-size: .88rem; color: var(--muted); line-height: 1.55; }
@media (hover: hover) { .person:hover .person-name { color: var(--olive); transform: translateX(calc(var(--dirx, -1) * 6px)); } }
:lang(en) { --dirx: 1; }

/* FAQ ---------------------------------------------------------------- */
.faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
.faq-head { position: sticky; top: 130px; }
.faq-head .h2 { margin-bottom: 1.2rem; }
.faq-head .btn { margin-top: 1.8rem; }
.qa { border-top: 1px solid var(--ink); }
.qa-item { border-bottom: 1px solid var(--line); }
.qa-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.4rem 0; cursor: pointer; font-size: clamp(1.02rem, .96rem + .3vw, 1.2rem); font-weight: 500; }
.qa-item summary::-webkit-details-marker { display: none; }
.qa-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; transition: transform .5s var(--ease), background-color .4s, border-color .4s; }
.qa-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.qa-item[open] .qa-ico { transform: rotate(45deg); background: var(--night); border-color: var(--night); color: var(--bone); }
.qa-a { padding-bottom: 1.5rem; }
.qa-a p { margin: 0; color: var(--muted); max-width: 64ch; }

/* Contact ------------------------------------------------------------ */
.contact { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: var(--on-dk); padding-block: var(--sec); }
.lattice--quiet { opacity: .55; -webkit-mask-image: linear-gradient(to top, #000, transparent 70%); mask-image: linear-gradient(to top, #000, transparent 70%); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
.contact-info .h2 { margin-bottom: 1.6rem; }
.contact-lead { color: var(--on-dk-2); max-width: 50ch; }
.channels { margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line-dk); }
.channels a { display: grid; grid-template-columns: 7rem 1fr auto; align-items: center; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line-dk); text-decoration: none; transition: padding .5s var(--ease), color .3s; }
.channels small { font-size: .85rem; color: var(--on-dk-2); }
.channels bdi { font-family: "Inter Tight", sans-serif; font-weight: 300; font-size: clamp(1.15rem, 1rem + .6vw, 1.6rem); text-align: start; }
.channels svg { width: 22px; height: 22px; fill: none; stroke: var(--brass-hi); stroke-width: 1.4; transition: transform .5s var(--ease); }
[dir="rtl"] .channels svg { transform: scaleX(-1); }
@media (hover: hover) { .channels a:hover { padding-inline-start: 12px; color: var(--brass-hi); } }
.offices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: clamp(32px, 4vw, 56px); }
.offices h3 { font-size: .95rem; font-weight: 500; color: var(--on-dk); margin-bottom: .3rem; }
.offices em { font-style: normal; font-size: .78rem; color: var(--brass-hi); margin-inline-start: .3em; }
.offices p { margin: 0; font-size: .88rem; line-height: 1.7; color: var(--on-dk-2); }

.form { background: rgba(233, 232, 225, .035); border: 1px solid var(--line-dk); border-radius: 20px; padding: clamp(24px, 3.4vw, 48px); display: grid; gap: 1.25rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.fld { display: grid; gap: .45rem; min-width: 0; border: 0; padding: 0; margin: 0; }
.fld > label, .fld legend { font-size: .88rem; color: var(--on-dk-2); padding: 0; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 52px; padding: .7rem 1rem; background: rgba(233, 232, 225, .05); border: 1px solid rgba(233, 232, 225, .16); border-radius: 12px; color: var(--on-dk); transition: border-color .3s, background-color .3s; }
.fld textarea { resize: vertical; min-height: 128px; line-height: 1.7; }
.fld select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23cdb383' stroke-width='1.6'/%3E%3C/svg%3E"); background-size: 18px; background-repeat: no-repeat; background-position: left 14px center; padding-inline-end: 2.75rem; }
:lang(en) .fld select { background-position: right 14px center; }
.fld select option { color: var(--ink); background: var(--white); }
.fld input::placeholder, .fld textarea::placeholder { color: rgba(233, 232, 225, .34); }
.fld input:hover, .fld select:hover, .fld textarea:hover { border-color: rgba(233, 232, 225, .32); }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--brass-hi); background: rgba(233, 232, 225, .08); }
.fld [aria-invalid="true"] { border-color: #e2a48c; }
.fld-err { margin: 0; font-size: .84rem; color: #f0bba6; }
.seg legend { margin-bottom: .5rem; }
.seg-opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.seg-opts label { position: relative; cursor: pointer; }
.seg-opts input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-opts span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 1.15rem; border: 1px solid rgba(233, 232, 225, .2); border-radius: 999px; font-size: .9rem; transition: all .3s; }
.seg-opts label:hover span { border-color: rgba(233, 232, 225, .45); }
.seg-opts input:checked + span { background: var(--bone); color: var(--night); border-color: var(--bone); }
.seg-opts input:focus-visible + span { outline: 2px solid var(--brass-hi); outline-offset: 2px; }
.form-foot { margin-top: .3rem; }
.form-note { font-size: .84rem; color: var(--on-dk-2); margin: .9rem 0 0; }
.form-status { font-size: .9rem; color: var(--brass-hi); margin: .6rem 0 0; }

/* Careers ------------------------------------------------------------ */
.careers { background: var(--bone); padding-block: clamp(64px, 8vw, 112px); }
.careers-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 112px); align-items: end; }
.careers .h3 { margin-bottom: .8rem; }
.careers p { color: var(--muted); max-width: 62ch; margin: 0; }
.careers-lines li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 0; border-top: 1px solid #cbcac0; font-size: .95rem; }
.careers-lines li:last-child { border-bottom: 1px solid #cbcac0; }

/* Footer ------------------------------------------------------------- */
.ftr { background: #141c16; color: var(--on-dk-2); padding-top: clamp(64px, 8vw, 112px); font-size: .92rem; }
.ftr-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line-dk); }
.ftr-top img { height: 96px; width: auto; }
.ftr-top p { max-width: 46ch; margin: 0; }
.ftr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; padding-block: 3rem; }
.ftr-h { font-size: .88rem; font-weight: 500; color: var(--on-dk); margin-bottom: 1rem; }
.ftr li { margin-bottom: .55rem; }
.ftr a { text-decoration: none; transition: color .3s; }
.ftr a:hover { color: var(--on-dk); }
.ftr-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.5rem; border-top: 1px solid var(--line-dk); font-size: .84rem; }
.ftr-base p { margin: 0; }

/* Drawer (practice areas and profiles) ------------------------------- */
.drawer { position: fixed; inset: 0 auto 0 auto; inset-inline-end: 0; margin: 0; padding: 0; border: 0; width: min(640px, 100vw); height: 100dvh; max-height: 100dvh; max-width: 100vw; background: var(--white); color: var(--ink); overflow: auto; overscroll-behavior: contain; }
.drawer::backdrop { background: rgba(20, 28, 22, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.drawer-in { position: relative; padding: clamp(80px, 10vh, 112px) clamp(24px, 4vw, 56px) 56px; }
.drawer-x { position: absolute; top: 24px; inset-inline-end: 24px; width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: transform .5s var(--ease), background-color .3s, color .3s; }
.drawer-x:hover { transform: rotate(90deg); background: var(--night); color: var(--bone); border-color: var(--night); }
.drawer-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.d-kicker { color: var(--brass); font-weight: 500; font-size: .9rem; margin-bottom: .6rem; }
.d-title { font-family: var(--disp); font-weight: 300; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.8rem); line-height: 1.35; margin-bottom: 1.4rem; }
:lang(en) .d-title { line-height: 1.1; letter-spacing: -.025em; }
.d-lead { font-size: 1.15rem; color: var(--olive); line-height: 1.75; }
.drawer-body p { color: #39423a; }
@media (prefers-reduced-motion: no-preference) {
  .drawer[open] { animation: drawer-in .6s var(--ease); }
  [dir="rtl"] .drawer[open] { animation-name: drawer-in-rtl; }
  .drawer[open]::backdrop { animation: fade-bd .5s ease; }
}
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes drawer-in-rtl { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes fade-bd { from { opacity: 0; } }
html.locked { overflow: hidden; }

/* Responsive --------------------------------------------------------- */
@media (max-width: 1080px) {
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .founder-grid { grid-template-columns: 1fr 1fr; }
  .creds { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .creds li:first-child { padding-top: .8rem; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hdr-act .lang, .hdr-act .pill { display: none; }
  .menu-btn { display: grid; }
  .nav { position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; justify-content: center; gap: 2.5rem; padding: 110px var(--g) 40px; background: var(--night); color: var(--on-dk); clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io); }
  .nav ul { flex-direction: column; gap: .3rem; }
  .nav ul a { font-family: var(--disp); font-weight: 200; font-size: clamp(2rem, 9vw, 3rem); opacity: 1; line-height: 1.5; }
  .nav ul a[aria-current="true"]::before { display: none; }
  .nav-foot { display: flex; gap: 1.5rem; flex-wrap: wrap; color: var(--brass-hi); }
  .nav-foot a { text-decoration: none; }
  .menu-open .nav { clip-path: inset(0 0 0 0); }
  .menu-open .hdr { color: var(--on-dk); background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
  .menu-open .hdr .logo--light { display: block; }
  .menu-open .hdr .logo--dark { display: none; }

  .hero { padding-top: 120px; }
  .hero-foot { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero-cta { justify-content: flex-start; }
  .facts { grid-template-columns: 1fr; }
  .facts > div { padding: 14px 0; flex-direction: row; gap: 1rem; align-items: baseline; }
  .facts > div + div { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--line-dk); }
  .facts dt { flex: none; min-width: 9.5rem; }

  .sec-head, .principles-grid, .approach-grid, .faq-grid, .contact-grid, .careers-grid { grid-template-columns: 1fr; }
  .sec-head { gap: 1.2rem; }
  .approach-head, .faq-head { position: static; }
  .area-btn { grid-template-columns: 1fr 44px; gap: .4rem 1rem; }
  .area-short { grid-column: 1; grid-row: 2; font-size: .9rem; }
  .area-ico { grid-column: 2; grid-row: 1 / span 2; width: 44px; height: 44px; }
  .offices { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hdr-in { height: 96px; }
  .logo { height: 68px; }
  .hdr.is-solid .hdr-in { height: 80px; }
  .hdr.is-solid .logo { height: 58px; }
  .hero-cta .btn--light { flex: 1 1 100%; }
  .value { grid-template-columns: 1fr; gap: .3rem; }
  .people { grid-template-columns: 1fr; }
  .founder-grid { grid-template-columns: 1fr; }
  .creds { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: .2rem; }
  .row2 { grid-template-columns: 1fr; }
  .channels a { grid-template-columns: 1fr auto; }
  .channels small { grid-column: 1 / -1; }
  .offices { grid-template-columns: 1fr; }
  .ftr-grid { grid-template-columns: 1fr; }
  .area-short { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal-words .w > span, .js [data-reveal] { transform: none; opacity: 1; }
  .js .statement-text .sw { color: var(--ink); }
}
