/* =========================================================
   binmuharib.com — local redesign prototype (2026-11-12)
   Editorial / quiet-authority direction. RTL first.
   ========================================================= */

:root {
  --ink: #0f1a24;
  --navy: #182a3a;
  --slate: #2e4a62;
  --paper: #f5f0e7;
  --paper-2: #efe8db;
  --bone: #e5dccb;
  --gold: #b48c50;
  --gold-2: #d1b27c;
  --gold-ink: #7d5f33;
  --muted: #5b6874;
  --muted-light: #a9b3bb;
  --line: rgba(15, 26, 36, 0.14);
  --line-strong: rgba(15, 26, 36, 0.28);
  --line-light: rgba(245, 240, 231, 0.14);

  --serif: "Amiri", "Noto Naskh Arabic", "Times New Roman", serif;
  --sans: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --gutter: clamp(20px, 4.2vw, 72px);
  --maxw: 1360px;
  --hdr: 92px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.9;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* paper grain — a print feel, very low contrast */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--gold-2); color: var(--ink); }

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

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

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- type ---------- */
.serif { font-family: var(--serif); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--gold-ink);
}
.eyebrow .dash {
  width: 44px;
  height: 1px;
  background: currentColor;
  transform-origin: right center;
}
.dark .eyebrow { color: var(--gold-2); }

.h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(38px, 4.6vw, 72px);
  line-height: 1.3;
  letter-spacing: -0.005em;
}

/* word split helpers (words only — Arabic letters must stay joined) */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.14em 0 0.22em;
  margin: -0.14em 0 -0.22em;
}
.wi { display: inline-block; will-change: transform; }

/* ---------- links & buttons ---------- */
.link-u {
  position: relative;
  display: inline-block;
}
.link-u::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s var(--ease-out);
}
.link-u:hover::after,
.link-u:focus-visible::after { transform: scaleX(1); transform-origin: right center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 16px;
  padding-block: 6px;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.4s, color 0.4s, gap 0.5s var(--ease-out);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.6s var(--ease-out); }
.link-arrow:hover { gap: 18px; border-color: var(--gold); }
.link-arrow:hover svg { transform: translateX(-4px); }
.dark .link-arrow { border-color: var(--line-light); }
.dark .link-arrow:hover { border-color: var(--gold-2); }

.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 58px;
  padding-inline: 30px 26px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 500;
  font-size: 16px;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.6s var(--ease-out);
}
.btn:hover::before,
.btn:focus-visible::before { transform: translateY(0); }
.btn:hover { color: var(--ink); }

.btn-roll {
  display: grid;
  height: 1.9em;
  overflow: hidden;
  line-height: 1.9;
}
.btn-roll > span {
  grid-area: 1 / 1;
  transition: transform 0.6s var(--ease-out);
}
.btn-roll > span + span { transform: translateY(100%); }
.btn:hover .btn-roll > span:first-child,
.btn:focus-visible .btn-roll > span:first-child { transform: translateY(-100%); }
.btn:hover .btn-roll > span + span,
.btn:focus-visible .btn-roll > span + span { transform: translateY(0); }

.btn .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-2);
  transition: background 0.4s;
}
.btn:hover .dot { background: var(--ink); }

.btn--ghost {
  --bg: transparent;
  --fg: var(--ink);
  border: 1px solid var(--line-strong);
}
.dark .btn--ghost { --fg: var(--paper); border-color: var(--line-light); }
.btn--light { --bg: var(--paper); --fg: var(--ink); }

/* ---------- preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
}
.preloader-in { display: grid; justify-items: center; gap: 22px; }
.preloader img { width: 88px; opacity: 0; }
.preloader-line {
  width: 140px;
  height: 1px;
  background: var(--line-light);
  overflow: hidden;
}
.preloader-line i {
  display: block;
  height: 100%;
  background: var(--gold-2);
  transform: scaleX(0);
  transform-origin: right center;
}
html:not(.js-anim) .preloader { display: none; }

/* ---------- header ---------- */
.hdr {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 60;
  height: var(--hdr);
  transition: background-color 0.5s, box-shadow 0.5s, transform 0.6s var(--ease-out);
}
.hdr.is-solid {
  background: rgba(245, 240, 231, 0.9);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.hdr.is-hidden { transform: translateY(-100%); }
.hdr--dark:not(.is-solid) { color: var(--paper); }
.hdr--dark:not(.is-solid) .brand img { filter: brightness(0) invert(0.93) sepia(0.25); }
.hdr--dark:not(.is-solid) .nl::after { background: var(--gold-2); }
.hdr-in {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
.hdr-nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 34px); }
.hdr-nav--end { justify-content: flex-end; }
.nl {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  padding-block: 8px;
}
.nl::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s var(--ease-out);
}
.nl:hover::after,
.nl.is-current::after { transform: scaleX(1); transform-origin: right center; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img:first-child { width: 52px; height: auto; }
.brand img:last-child { width: 168px; height: auto; }
.menu-btn {
  display: none;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  justify-self: end;
}
.menu-btn i {
  position: relative;
  width: 26px;
  height: 10px;
}
.menu-btn i::before,
.menu-btn i::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out);
}
.menu-btn i::before { top: 0; }
.menu-btn i::after { top: 8px; }
.menu-btn[aria-expanded="true"] i::before { top: 4px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { top: 4px; transform: rotate(-45deg); }

/* mobile nav overlay */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--ink);
  color: var(--paper);
  padding: calc(var(--hdr) + 24px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}
.mnav.is-open { visibility: visible; }
.mnav ul { display: grid; gap: 6px; }
.mnav a.ml {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--serif);
  font-size: clamp(32px, 9vw, 46px);
  line-height: 1.45;
}
.mnav a.ml small {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--gold-2);
}
.mnav-foot { display: grid; gap: 6px; font-size: 14px; color: var(--muted-light); }
.mnav-foot a { color: var(--paper); }
body.menu-open .hdr { color: var(--paper); background: transparent; box-shadow: none; }
body.menu-open .brand img { filter: brightness(0) invert(0.94) sepia(0.2); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--hdr) + clamp(24px, 4vh, 56px));
  padding-bottom: 28px;
  display: flex;
  flex-direction: column;
}
.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
}
.hero-copy { display: grid; gap: clamp(26px, 3.4vh, 40px); align-content: center; }
.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(42px, 5vw, 86px);
  line-height: 1.38;
  letter-spacing: -0.01em;
}
.hero-title .ln { display: block; }
.hero-title .ln--accent { color: var(--slate); font-weight: 400; }
.hero-title .ln--accent em {
  font-style: normal;
  position: relative;
  color: var(--ink);
  font-weight: 700;
}
.hero-title .ln--accent em svg {
  position: absolute;
  inset-inline: -2%;
  bottom: 0.02em;
  width: 104%;
  height: 0.28em;
  overflow: visible;
}
.hero-title .ln--accent em path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.2;
  stroke-linecap: round;
}
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; }

.hero-media {
  position: relative;
  justify-self: start;
  width: min(100%, 470px);
  aspect-ratio: 2 / 3;
  max-height: calc(100svh - var(--hdr) - 150px);
}
.arch {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 999px 999px 4px 4px;
  background: var(--bone);
}
.arch img {
  width: 100%;
  height: 118%;
  object-fit: cover;
  object-position: 82% 50%;
  transform-origin: 70% 50%;
  filter: saturate(0.78) sepia(0.08) contrast(1.03);
}
.arch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 26, 36, 0) 55%, rgba(15, 26, 36, 0.35));
}
.arch-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: translate(-22px, 22px);
  pointer-events: none;
}
.arch-line path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.hero-badge {
  position: absolute;
  inset-inline-end: -28px;
  bottom: 12%;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
}
.hero-badge img { width: 54px; }
.hero-badge svg {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  animation: spin 26s linear infinite;
}
.hero-badge text {
  font-family: var(--sans);
  font-size: 11.6px;
  letter-spacing: 0.06em;
  fill: var(--gold-2);
}
@keyframes spin { to { transform: rotate(-360deg); } }

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: end;
  margin-top: clamp(28px, 5vh, 56px);
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.pillars li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 0 6px;
  font-size: 16px;
  font-weight: 500;
}
.pillars li + li { padding-inline-start: 22px; border-inline-start: 1px solid var(--line); }
.pillars .num { font-family: var(--serif); color: var(--gold); font-size: 18px; }
.scroll-cue {
  justify-self: start;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--muted);
}
.scroll-cue i {
  position: relative;
  width: 1px;
  height: 64px;
  background: var(--line);
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 40%;
  background: var(--ink);
  animation: cue 2.2s var(--ease-io) infinite;
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(260%); }
}

/* ---------- practice areas index (under the home hero) ---------- */
.practice {
  background: #0b1219;
  color: var(--paper);
  border-top: 1px solid var(--line-light);
}
.practice-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.practice-list li + li { border-inline-start: 1px solid var(--line-light); }
.practice-list a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: clamp(24px, 2.6vw, 38px) clamp(14px, 1.6vw, 26px);
}
.practice-list li:first-child a { padding-inline-start: 0; }
.practice-list li:last-child a { padding-inline-end: 0; }
.practice-list a::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline: 0;
  height: 1px;
  background: var(--gold-2);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.7s var(--ease-out);
}
.practice-list a:hover::before,
.practice-list a:focus-visible::before { transform: scaleX(1); }
.pa-t {
  font-family: var(--serif);
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.5;
  color: #e9e4da;
  transition: color 0.4s;
}
.practice-list a:hover .pa-t,
.practice-list a:focus-visible .pa-t { color: var(--gold-2); }
.practice-list svg {
  position: absolute;
  top: clamp(24px, 2.6vw, 38px);
  inset-inline-end: clamp(14px, 1.6vw, 26px);
  width: 16px;
  height: 16px;
  color: var(--gold-2);
  opacity: 0;
  transform: translate(6px, 6px);
  transition: opacity 0.4s, transform 0.6s var(--ease-out);
}
.practice-list li:last-child svg { inset-inline-end: 0; }
.practice-list a:hover svg,
.practice-list a:focus-visible svg { opacity: 1; transform: translate(0, 0); }

@media (max-width: 980px) {
  .practice-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .practice-list li + li { border-inline-start: 0; }
  .practice-list li:nth-child(even) { border-inline-start: 1px solid var(--line-light); }
  .practice-list li:nth-child(n + 3) { border-top: 1px solid var(--line-light); }
  .practice-list a,
  .practice-list li:first-child a,
  .practice-list li:last-child a { padding: 20px 16px; }
  .practice-list li:nth-child(odd) a { padding-inline-start: 0; }
  .practice-list svg,
  .practice-list li:last-child svg { inset-inline-end: 16px; top: 22px; opacity: 0.6; transform: none; }
}

/* ---------- section scaffolding ---------- */
.section { padding-block: clamp(96px, 12vw, 180px); position: relative; }
.dark { background: var(--ink); color: var(--paper); }
.dark .muted { color: var(--muted-light); }
.navy { background: var(--navy); color: var(--paper); }
.muted { color: var(--muted); }

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 96px);
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 100px);
}
.sec-head .eyebrow { grid-column: 1 / -1; margin-bottom: -8px; }
.sec-head p { font-size: 18px; max-width: 60ch; }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  grid-template-areas:
    "head portrait"
    "body portrait";
  gap: clamp(36px, 5vw, 100px) clamp(36px, 6vw, 120px);
}
.about-head { grid-area: head; display: grid; gap: 34px; }
.statement {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.6;
}
.statement .wi { opacity: 1; }
.js-anim .statement[data-fill] .w { overflow: visible; }
.portrait {
  grid-area: portrait;
  position: relative;
  align-self: start;
  position: sticky;
  top: calc(var(--hdr) + 24px);
}
.portrait-frame {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #0b0b0c;
  aspect-ratio: 840 / 960;
}
.portrait-frame img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: 50% 20%;
}
.portrait figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.portrait .signature { width: min(260px, 60%); filter: contrast(1.05); }
.portrait figcaption span { font-size: 14px; color: var(--muted); }
.about-body { grid-area: body; display: grid; gap: 26px; align-content: start; max-width: 62ch; }
.about-body .lead { font-size: 20px; line-height: 1.85; color: var(--ink); }
.years {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: center;
  padding-block: 28px;
  border-block: 1px solid var(--line);
}
.years-num {
  font-family: var(--serif);
  font-size: clamp(64px, 7vw, 110px);
  line-height: 1;
  color: var(--gold);
  min-width: 1.6em;
}
.years p { font-size: 17px; }
.about-links { display: flex; flex-wrap: wrap; gap: 14px 32px; }

/* ---------- why us (sticky steps) ---------- */
.why { background: var(--paper-2); padding-block: clamp(72px, 8vw, 120px); }
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 110px);
}
.why-aside {
  position: sticky;
  top: calc(var(--hdr) + 32px);
  align-self: start;
  display: grid;
  gap: 18px;
}
.why .h2 { font-size: clamp(34px, 3.4vw, 54px); }
.why-aside p.sub { font-size: 17px; max-width: 30ch; }
.why-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--serif);
  color: var(--muted);
  font-size: 18px;
}
.why-count .cur {
  position: relative;
  display: inline-block;
  width: 0.9em;
  height: 1.3em;
  overflow: hidden;
  font-size: 46px;
  line-height: 1.3;
  color: var(--ink);
}
.why-count .cur span { position: absolute; inset: 0; text-align: center; }
.why-list { position: relative; padding-inline-start: 40px; }
.why-track {
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}
.why-fill {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: top center;
  transform: scaleY(0);
}
.why-item {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 2px 18px;
  padding-block: clamp(20px, 2.2vw, 30px);
  border-bottom: 1px solid var(--line);
  transition: opacity 0.6s var(--ease-out);
}
.why-item:first-of-type { padding-top: 0; }
.why-item:last-of-type { border-bottom: 0; padding-bottom: 0; }
.js-anim .why-item { opacity: 0.32; }
.js-anim .why-item.is-active { opacity: 1; }
.why-item::before {
  content: "";
  position: absolute;
  inset-inline-start: -44px;
  top: calc(clamp(20px, 2.2vw, 30px) + 8px);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 1px solid var(--gold);
  transition: background 0.4s;
}
.why-item:first-of-type::before { top: 8px; }
.why-item.is-active::before { background: var(--gold); }
.why-n {
  grid-row: span 3;
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
  color: var(--gold);
}
.why-stage { font-size: 12px; font-weight: 500; color: var(--gold-ink); }
.why-item h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.55;
  font-weight: 700;
}
.why-item p.d { font-size: 15.5px; line-height: 1.85; color: var(--muted); max-width: 64ch; }

/* ---------- services ---------- */
.services .sec-head p { color: var(--muted-light); }
.svc-kinds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.svc-kinds li {
  border: 1px solid var(--line-light);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 14px;
  color: var(--paper);
}
.svc-list { border-top: 1px solid var(--line-light); }
.svc { border-bottom: 1px solid var(--line-light); }
.svc summary {
  list-style: none;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto 64px;
  align-items: center;
  gap: 24px;
  padding-block: clamp(28px, 3.4vw, 46px);
  cursor: pointer;
  position: relative;
}
.svc summary::-webkit-details-marker { display: none; }
.svc summary::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * var(--gutter));
  background: rgba(245, 240, 231, 0.04);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.svc summary:hover::before { opacity: 1; }
.svc-n { font-family: var(--serif); color: var(--gold-2); font-size: 22px; }
.svc h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 68px);
  line-height: 1.3;
  transition: transform 0.7s var(--ease-out), color 0.5s;
}
.svc summary:hover h3 { transform: translateX(-14px); }
.svc[open] h3 { color: var(--gold-2); }
.svc-tags { font-size: 14px; color: var(--muted-light); text-align: start; white-space: nowrap; transition: opacity 0.4s; }
.svc[open] .svc-tags { opacity: 0; }
.svc-toggle {
  justify-self: end;
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  transition: background 0.5s, border-color 0.5s, transform 0.7s var(--ease-out);
}
.svc-toggle::before,
.svc-toggle::after {
  content: "";
  position: absolute;
  inset: 50% 18px auto;
  height: 1px;
  background: currentColor;
}
.svc-toggle::after { transform: rotate(90deg); transition: transform 0.6s var(--ease-out); }
.svc[open] .svc-toggle { background: var(--gold-2); border-color: var(--gold-2); color: var(--ink); transform: rotate(180deg); }
.svc[open] .svc-toggle::after { transform: rotate(0deg); }
.acc-body { overflow: hidden; }
.svc-body {
  display: grid;
  grid-template-columns: 90px minmax(0, 6fr) minmax(0, 4fr);
  gap: 24px clamp(24px, 4vw, 80px);
  padding-bottom: clamp(36px, 4vw, 60px);
}
.svc-body > :first-child { grid-column: 2; }
.svc-body p { color: #d7dde1; font-size: 17px; max-width: 64ch; }
.svc-body h4 { font-family: var(--serif); font-size: 24px; color: var(--paper); margin-bottom: 6px; }
.svc-body .sub + .sub { margin-top: 26px; }
.svc-side { display: grid; gap: 22px; align-content: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a,
.chips span {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-light);
  font-size: 14px;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.chips a:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.svc-actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }

/* ---------- purpose: dark, photo behind, pinned while the statement lights up ---------- */
.purpose { position: relative; background: var(--ink); color: var(--paper); }
.js-anim .purpose { height: 240vh; }
.purpose-sticky {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding-block: 120px;
}
.js-anim .purpose-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; padding-block: 0; }
.purpose-media { position: absolute; inset: 0; margin: 0; }
.purpose-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  filter: grayscale(1) contrast(1.08) brightness(0.55);
  transform-origin: 50% 45%;
}
.purpose-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(15, 26, 36, 0.45) 0%, rgba(15, 26, 36, 0.88) 100%),
    linear-gradient(180deg, var(--ink) 0%, rgba(15, 26, 36, 0) 22%, rgba(15, 26, 36, 0) 78%, var(--ink) 100%);
}
.purpose-in { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; }
.purpose .eyebrow { justify-content: center; margin-bottom: 34px; color: var(--gold-2); }
.purpose-q {
  font-family: var(--serif);
  font-size: clamp(30px, 3.7vw, 58px);
  line-height: 1.75;
  max-width: 24ch;
  color: #f7f3ec;
}
.purpose-mark {
  position: relative;
  width: 140px;
  height: 1px;
  margin-top: 46px;
  background: linear-gradient(90deg, rgba(209, 178, 124, 0), var(--gold-2), rgba(209, 178, 124, 0));
}
.purpose-mark::after {
  content: "";
  position: absolute;
  inset: -3px 0 0;
  margin-inline: auto;
  width: 7px;
  height: 7px;
  background: var(--gold-2);
  transform: rotate(45deg);
}

/* ---------- workflow (stacking cards) ---------- */
.workflow { background: var(--paper); }
.stack { display: grid; gap: 28px; }
.stack-card {
  position: sticky;
  top: calc(var(--hdr) + 28px + var(--i) * 26px);
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 80px);
  min-height: clamp(320px, 42vh, 440px);
  padding: clamp(32px, 4.4vw, 64px);
  border-radius: 6px;
  background: var(--bone);
  transform-origin: 50% 0;
  will-change: transform;
}
.stack-card:nth-child(2) { background: #dcd2bf; }
.stack-card:nth-child(3) { background: var(--navy); color: var(--paper); }
.sc-n {
  font-family: var(--serif);
  font-size: clamp(110px, 13vw, 200px);
  line-height: 0.9;
  color: var(--gold);
}
.stack-card h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.45;
  margin-bottom: 18px;
}
.stack-card p { font-size: 18px; max-width: 54ch; color: inherit; opacity: 0.85; }
.stack-card .sc-body { align-self: end; }
.workflow-cta { margin-top: clamp(48px, 6vw, 80px); display: flex; justify-content: center; }

/* ---------- business block ---------- */
.biz { overflow: hidden; }
.biz-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 140px);
  align-items: center;
}
.biz-copy { display: grid; gap: 28px; }
.biz-copy p.lead { color: #d3dae0; font-size: 18px; max-width: 46ch; }
.biz-links { border-top: 1px solid var(--line-light); }
.biz-links a {
  display: grid;
  grid-template-columns: 44px 1fr 56px;
  align-items: center;
  gap: 18px;
  padding-block: clamp(22px, 2.6vw, 34px);
  border-bottom: 1px solid var(--line-light);
  position: relative;
  overflow: hidden;
}
.biz-links a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.65s var(--ease-out);
  z-index: 0;
}
.biz-links a > * { position: relative; z-index: 1; transition: color 0.5s, transform 0.65s var(--ease-out); }
.biz-links a:hover::before { transform: scaleY(1); }
.biz-links a:hover > * { color: var(--ink); }
.biz-links a:hover .bl-t { transform: translateX(-10px); }
.biz-links .bl-n { font-family: var(--serif); color: var(--gold-2); font-size: 20px; padding-inline-start: 6px; }
.biz-links .bl-t { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 38px); line-height: 1.45; }
.biz-links svg { width: 26px; height: 26px; justify-self: end; margin-inline-end: 8px; }

/* ---------- knowledge ---------- */
.lib-head,
.blog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.lib-head h3,
.blog-head h3 { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 40px); }
.blog-head p { color: var(--muted); }
.blog-list { border-top: 1px solid var(--line); }
.blog-list a {
  display: grid;
  grid-template-columns: 70px 1fr 60px;
  align-items: center;
  gap: 20px;
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
  transition: padding 0.6s var(--ease-out), color 0.4s;
}
.blog-list a:hover { padding-inline-start: 18px; color: var(--slate); }
.blog-list .bn { font-family: var(--serif); color: var(--gold); font-size: 20px; }
.blog-list .bt { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 32px); line-height: 1.5; }
.blog-list svg { width: 24px; height: 24px; justify-self: end; transition: transform 0.6s var(--ease-out); }
.blog-list a:hover svg { transform: translateX(-8px); }

/* ---------- footer ---------- */
.ftr {
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(40px, 5vw, 70px);
  overflow: hidden;
  border-top: 1px solid var(--line-light);
}
.ftr-top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(2, minmax(0, 2fr)) minmax(0, 3fr);
  gap: 32px;
  padding-bottom: 48px;
}
.ftr-brand img { width: 72px; margin-bottom: 18px; }
.ftr-brand p { color: var(--muted-light); font-size: 15px; max-width: 32ch; }
.ftr h5 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold-2);
}
.ftr ul { display: grid; gap: 6px; font-size: 15px; }
.ftr ul a { color: #dfe4e8; }
.ftr-lic li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-light); padding-bottom: 6px; }
.ftr-lic span { color: var(--muted-light); }
.ftr-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-block: 26px 34px;
  border-top: 1px solid var(--line-light);
  font-size: 14px;
  color: var(--muted-light);
}
.ftr-bottom nav { display: flex; gap: 22px; }
.ftr-bottom a { color: #dfe4e8; }

/* ---------- companies page ---------- */
.p-hero {
  position: relative;
  padding-top: calc(var(--hdr) + clamp(50px, 8vh, 110px));
  padding-bottom: clamp(70px, 9vw, 130px);
  overflow: hidden;
}
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--muted-light); margin-bottom: 40px; }
.crumbs a { color: var(--paper); }
.p-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(36px, 6vw, 110px);
  align-items: end;
}
.p-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(42px, 6vw, 96px);
  line-height: 1.32;
}
.p-firm { color: var(--gold-2); font-size: 15px; margin-top: 18px; }
.p-lead { color: #d3dae0; font-size: 18px; margin-bottom: 30px; }
.p-index {
  display: grid;
  border-top: 1px solid var(--line-light);
  margin-top: 26px;
}
.p-index a {
  display: flex;
  justify-content: space-between;
  padding-block: 12px;
  border-bottom: 1px solid var(--line-light);
  font-size: 15px;
  color: #dfe4e8;
}
.p-index a span { font-family: var(--serif); color: var(--gold-2); }
.p-hero .arch-ghost {
  position: absolute;
  inset-inline-end: -26vw;
  top: 24%;
  width: 46vw;
  max-width: 640px;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(209, 178, 124, 0.22);
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}
.p-hero .arch-ghost + .arch-ghost { inset-inline-end: -21vw; top: 32%; opacity: 0.6; }

.scope-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 120px);
}
.scope-grid .h2 { font-size: clamp(34px, 3.8vw, 58px); }
.scope-intro p { font-size: 19px; margin-top: 24px; color: var(--muted); }
.scope-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}
.scope-list li:first-child { border-top: 1px solid var(--line); }
.scope-list li span { font-family: var(--serif); color: var(--gold); font-size: 20px; }

.topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.topic {
  padding: clamp(32px, 4vw, 60px) clamp(0px, 2vw, 40px) clamp(32px, 4vw, 60px) 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  align-content: start;
  position: relative;
}
.topic:nth-child(odd) { padding-inline-end: clamp(24px, 4vw, 70px); border-inline-end: 1px solid var(--line); }
.topic:nth-child(even) { padding-inline-start: clamp(24px, 4vw, 70px); }
.topic h3 { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 36px); line-height: 1.45; }
.topic p { color: var(--muted); }
.topic .tn { font-family: var(--serif); color: var(--gold); font-size: 20px; }
.topic .t-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 6px; }

.cover {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 120px);
  align-items: center;
}
.cover p { font-size: 19px; color: #d3dae0; }

.packages { background: var(--paper-2); }
.pk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.pk {
  position: relative;
  border-radius: 6px;
  padding: clamp(28px, 2.8vw, 42px);
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  gap: 22px;
  transition: transform 0.8s var(--ease-out), box-shadow 0.8s var(--ease-out);
}
.pk:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -40px rgba(15, 26, 36, 0.45); }
.pk--mid { background: var(--bone); }
.pk--full { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pk-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.pk h3 { font-family: var(--serif); font-size: 32px; line-height: 1.4; }
.pk .pk-i { font-family: var(--serif); color: var(--gold); font-size: 20px; }
.pk-desc { color: var(--muted); min-height: 3.8em; }
.pk--full .pk-desc { color: var(--muted-light); }
.pk-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-block: 18px;
  border-block: 1px solid var(--line);
}
.pk--full .pk-price,
.pk--full .pk-facts div { border-color: var(--line-light); }
.pk-price b {
  font-family: var(--serif);
  font-size: clamp(52px, 4.8vw, 76px);
  line-height: 1;
  font-weight: 700;
  direction: ltr;
}
.pk-price small { font-size: 14px; color: var(--muted); }
.pk--full .pk-price small { color: var(--muted-light); }
.pk-facts { display: grid; margin: 0; }
.pk-facts div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.pk-facts dt { color: var(--muted); font-weight: 500; }
.pk--full .pk-facts dt { color: var(--muted-light); }
.pk-facts dd { margin: 0; }
.pk .btn { justify-self: start; }
.pk--full .btn { --bg: var(--gold-2); --fg: var(--ink); }
.pk--full .btn::before { background: var(--paper); }
.pk-more summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding-top: 6px;
  font-weight: 500;
}
.pk-more summary::-webkit-details-marker { display: none; }
.pk-more summary i {
  position: relative;
  width: 14px;
  height: 14px;
}
.pk-more summary i::before,
.pk-more summary i::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: currentColor;
  transition: transform 0.5s var(--ease-out);
}
.pk-more summary i::after { transform: rotate(90deg); }
.pk-more[open] summary i::after { transform: rotate(0); }
.pk-more .acc-in { padding-top: 18px; display: grid; gap: 18px; }
.pk-more h4 { font-size: 14px; font-weight: 600; color: var(--gold-ink); margin-bottom: 6px; }
.pk--full .pk-more h4 { color: var(--gold-2); }
.pk-more li { position: relative; padding-inline-start: 18px; font-size: 15px; line-height: 1.8; }
.pk-more li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.85em;
  width: 7px;
  height: 1px;
  background: var(--gold);
}

.flex-policy {
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, 3fr) repeat(3, minmax(0, 3fr));
  border-block: 1px solid var(--line);
}
.flex-policy > * { padding: 26px 22px; }
.flex-policy > * + * { border-inline-start: 1px solid var(--line); }
.flex-policy h3 { font-family: var(--serif); font-size: 28px; padding-inline-start: 0; }
.flex-policy strong { display: block; font-family: var(--serif); font-size: 21px; font-weight: 700; margin-bottom: 4px; }
.flex-policy span { color: var(--muted); font-size: 15px; }

.prep {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 120px);
}
.prep ol { counter-reset: p; }
.prep li {
  counter-increment: p;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}
.prep li::before {
  content: counter(p, arabic-indic);
  font-family: var(--serif);
  color: var(--gold);
  font-size: 22px;
}
.prep .note {
  margin-top: 26px;
  padding: 22px 24px;
  border-inline-start: 2px solid var(--gold);
  background: var(--paper-2);
  color: var(--muted);
}
.related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 70px);
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.related h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 12px; }
.related ul { display: grid; gap: 4px; }
.related a { display: inline-block; padding-block: 6px; font-size: 16px; }

/* ---------- initial states (only when animations run) ---------- */
.js-anim [data-reveal]:not(.is-revealed) { opacity: 0; transform: translateY(36px); }
.js-anim [data-split] .wi { transform: translateY(115%); }
.js-anim .arch { clip-path: inset(100% 0 0 0 round 999px 999px 4px 4px); }
.js-anim .arch-line path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js-anim .eyebrow .dash { transform: scaleX(0); }
.js-anim .hero-title .ln--accent em path { stroke-dasharray: 1; stroke-dashoffset: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hdr-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .hdr-in { grid-template-columns: auto 1fr; }
  .brand { grid-column: 1; }
  .menu-btn { grid-column: 2; }
}

@media (max-width: 980px) {
  :root { --hdr: 76px; }
  body { font-size: 16px; }
  .hero-grid,
  .hero-foot,
  .sec-head,
  .about-grid,
  .why-grid,
  .biz-grid,
  .p-hero-grid,
  .scope-grid,
  .cover,
  .prep { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: auto; }
  .hero-media { justify-self: center; width: min(78vw, 420px); max-height: none; margin-top: 10px; }
  .hero-badge { inset-inline-end: -12px; width: 96px; height: 96px; }
  .scroll-cue { display: none; }
  .about-grid { grid-template-areas: "head" "portrait" "body"; }
  .portrait { position: relative; top: 0; max-width: 520px; }
  .why-aside { position: relative; top: 0; }
  .svc summary { grid-template-columns: 50px minmax(0, 1fr) 48px; gap: 14px; }
  .svc-tags { display: none; }
  .svc-toggle { width: 46px; height: 46px; }
  .svc-toggle::before, .svc-toggle::after { inset: 50% 14px auto; }
  .svc-body { grid-template-columns: minmax(0, 1fr); }
  .svc-body > :first-child { grid-column: auto; }
  .stack-card { grid-template-columns: minmax(0, 1fr); min-height: 0; top: calc(var(--hdr) + 16px + var(--i) * 18px); }
  .sc-n { font-size: 96px; }
  .ftr-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr-brand { grid-column: 1 / -1; }
  .pk-grid { grid-template-columns: minmax(0, 1fr); }
  .flex-policy { grid-template-columns: minmax(0, 1fr); }
  .flex-policy > * + * { border-inline-start: 0; border-top: 1px solid var(--line); }
  .flex-policy > * { padding-inline: 0; }
  .topics { grid-template-columns: minmax(0, 1fr); }
  .topic:nth-child(odd),
  .topic:nth-child(even) { padding-inline: 0; border-inline-end: 0; }
  .related { grid-template-columns: minmax(0, 1fr); }
  .p-hero .arch-ghost { width: 80vw; inset-inline-end: -40vw; }
}

@media (max-width: 600px) {
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillars li + li { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--line); }
  .pillars li { padding-block: 14px; }
  .why-list { padding-inline-start: 30px; }
  .why-item { grid-template-columns: 40px 1fr; gap: 2px 14px; }
  .why-item::before { inset-inline-start: -34px; }
  .why-n { font-size: 34px; }
  .blog-list a { grid-template-columns: 40px 1fr 30px; }
  .biz-links a { grid-template-columns: 34px 1fr 36px; }
  .btn { height: 54px; padding-inline: 24px 22px; }
  .years { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pk-facts div { grid-template-columns: 96px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge svg,
  .scroll-cue i::after { animation: none; }
  .btn::before,
  .btn-roll > span,
  .biz-links a::before,
  .svc h3,
  .pk { transition: none; }
}

/* =========================================================
   Main pages: about / services / library / blog / contact
   ========================================================= */

/* ---------- shared page hero variants ---------- */
.p-hero--light { background: var(--paper); color: var(--ink); }
.p-hero--light .crumbs,
.crumbs--light { color: var(--muted); }
.p-hero--light .crumbs a,
.crumbs--light a { color: var(--ink); }
.p-hero--light .p-lead { color: var(--muted); }
.p-hero--light .p-firm { color: var(--gold-ink); }
.p-hero--light .p-index { border-color: var(--line); }
.p-hero--light .p-index a { color: var(--ink); border-color: var(--line); }
.p-hero--light .arch-ghost { border-color: rgba(180, 140, 80, 0.3); }
.p-hero--short { padding-bottom: clamp(40px, 5vw, 70px); }
.p-loc { margin-top: 6px; font-size: 15px; color: var(--muted); }
.dark .p-loc,
.navy .p-loc { color: var(--muted-light); }
.crumbs--light { margin-bottom: 0; }

/* ---------- about ---------- */
.hero--about .hero-copy { gap: 22px; }
.hero--about h1.eyebrow { margin: 0; font-family: var(--sans); }
.about-role { font-size: 18px; font-weight: 500; color: var(--gold-ink); margin-bottom: 6px; }
.hero-title--name { font-size: clamp(46px, 5.6vw, 92px); }
.hero-lead { font-size: 18px; line-height: 1.95; color: var(--muted); max-width: 58ch; }
.hero-media--portrait { margin-bottom: 40px; }
.arch--dark { background: #0b0b0c; }
.arch--dark img { object-position: 50% 16%; filter: none; }
.arch--dark::after { display: none; }
.arch-cap {
  position: absolute;
  inset-inline: 0;
  bottom: -42px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.quals-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 120px);
}
.quals-head {
  position: sticky;
  top: calc(var(--hdr) + 40px);
  align-self: start;
  display: grid;
  gap: 18px;
}
.quals-list li {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 20px;
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
  transition: padding 0.6s var(--ease-out);
}
.quals-list li:first-child { border-top: 1px solid var(--line); }
.quals-list li:hover { padding-inline-start: 12px; }
.q-n { font-family: var(--serif); font-size: 46px; line-height: 1; color: var(--gold); }
.quals-list h3 { font-family: var(--serif); font-size: clamp(24px, 2.3vw, 34px); line-height: 1.5; }
.quals-list p { color: var(--muted); margin-top: 4px; }

.exp { background: var(--paper-2); }
.exp-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 120px);
}
.exp-grid > div:first-child { display: grid; gap: 18px; align-content: start; }
.exp-body { display: grid; gap: 26px; }
.exp-body .lead { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 36px); line-height: 1.75; }
.exp-body .lead a {
  color: var(--slate);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
}
.chips--light a,
.chips--light span { border-color: var(--line-strong); color: var(--ink); }
.chips--light a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.creds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-light);
}
.cred {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: clamp(28px, 3vw, 48px) clamp(20px, 2.6vw, 44px);
}
.cred:first-child { padding-inline-start: 0; }
.cred + .cred { border-inline-start: 1px solid var(--line-light); }
.cred h3 { font-family: var(--serif); font-size: 30px; color: var(--gold-2); }
.cred ul { display: grid; gap: 10px; }
.cred li { position: relative; padding-inline-start: 20px; font-size: 17px; }
.cred li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.95em;
  width: 9px;
  height: 1px;
  background: var(--gold-2);
}
.cred p { color: var(--muted-light); }
.lic-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-light);
}
.lic-list li::before { display: none; }
.lic-list span { color: var(--muted-light); font-size: 15px; }
.lic-list b { font-family: var(--serif); font-size: 26px; font-weight: 700; direction: ltr; }
.cred-social { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 6px; }

.firm-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 120px);
}
.firm-grid > div:first-child { display: grid; gap: 18px; align-content: start; }
.firm-name { font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 3.6vw, 56px); line-height: 1.5; }
.firm-body { display: grid; gap: 26px; align-content: start; }
.statement--sm { font-size: clamp(24px, 2.4vw, 36px); line-height: 1.75; }
.firm-body > p:not(.statement) { font-size: 18px; color: var(--muted); }

/* horizontal scroll strip */
.hscroll { position: relative; background: var(--ink); color: var(--paper); }
.hscroll-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 4vh, 48px);
  padding-top: calc(var(--hdr) * 0.6);
}
.hscroll .eyebrow { color: var(--gold-2); }
.hscroll-track {
  display: flex;
  gap: 22px;
  width: max-content;
  padding-inline: var(--gutter);
  will-change: transform;
}
.hcard {
  width: min(540px, 40vw);
  min-height: min(58vh, 520px);
  padding: clamp(30px, 3vw, 52px);
  border-radius: 6px;
  background: var(--navy);
  border: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
}
.hcard--gold { background: var(--gold-2); color: var(--ink); border-color: var(--gold-2); }
.hc-n { font-family: var(--serif); font-size: clamp(80px, 8vw, 120px); line-height: 0.9; color: var(--gold-2); }
.hcard--gold .hc-n { color: var(--ink); opacity: 0.85; }
.hcard h3 { font-family: var(--serif); font-size: clamp(36px, 3.4vw, 54px); line-height: 1.3; margin-bottom: 14px; }
.hcard p { font-size: 18px; color: #d3dae0; }
.hcard ul { display: grid; gap: 6px; }
.hcard li { display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: clamp(20px, 1.9vw, 26px); }
.hcard li::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.6; flex-shrink: 0; }
.hscroll-progress { height: 1px; margin-inline: var(--gutter); background: var(--line-light); }
.hscroll-progress i { display: block; height: 100%; background: var(--gold-2); transform-origin: right center; transform: scaleX(0); }

.approach-q {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 70px);
  line-height: 1.5;
  max-width: 22ch;
  margin-top: 20px;
}
.approach-lines {
  counter-reset: a;
  max-width: 920px;
  margin-top: clamp(48px, 6vw, 90px);
  margin-inline-start: auto;
}
.approach-lines li {
  counter-increment: a;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
  font-size: 20px;
  line-height: 1.9;
}
.approach-lines li::before { content: counter(a, arabic-indic); font-family: var(--serif); font-size: 24px; color: var(--gold); }
.approach-cta { display: flex; justify-content: flex-end; margin-top: 34px; }
.cta-band { background: var(--paper-2); }
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 120px);
  align-items: end;
}
.cta-grid p { font-size: 18px; color: var(--muted); margin-bottom: 28px; }

/* ---------- services hub ---------- */
.svcp-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: clamp(36px, 6vw, 110px);
}
.svcp-nav {
  position: sticky;
  top: calc(var(--hdr) + 40px);
  align-self: start;
  display: grid;
  gap: 22px;
}
.svcp-nav h2.eyebrow { margin: 0; }
.svcp-nav nav { position: relative; display: grid; border-inline-start: 1px solid var(--line); }
.svcp-nav a {
  display: flex;
  gap: 14px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.4s;
}
.svcp-nav a span { font-family: var(--serif); color: var(--gold); }
.svcp-nav a.is-active,
.svcp-nav a:hover { color: var(--ink); }
.svcp-ind {
  position: absolute;
  inset-inline-start: -1px;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--gold);
}
.grp {
  padding-bottom: clamp(70px, 8vw, 120px);
  margin-bottom: clamp(70px, 8vw, 120px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.grp:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.grp header { display: flex; align-items: baseline; gap: 22px; margin-bottom: 24px; }
.grp-n { font-family: var(--serif); font-size: 26px; color: var(--gold); }
.grp h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(38px, 4.4vw, 68px); line-height: 1.3; }
.grp-lead { font-size: 19px; line-height: 1.95; max-width: 72ch; }
.grp-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-block: 36px;
  padding-block: 28px;
  border-block: 1px solid var(--line);
}
.mini { font-size: 13px; font-weight: 600; color: var(--gold-ink); margin-bottom: 14px; }
.grp-links ul { display: grid; gap: 2px; }
.grp-links a { display: inline-block; padding-block: 5px; font-weight: 500; }
.ticks { display: grid; gap: 8px; }
.ticks li { position: relative; padding-inline-start: 22px; }
.ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.75em;
  width: 10px;
  height: 6px;
  border-inline-start: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(-45deg);
}
.subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.sub {
  position: relative;
  overflow: hidden;
  padding: 30px 30px 32px;
  border-radius: 6px;
  background: var(--paper-2);
  border: 1px solid transparent;
  display: grid;
  gap: 10px;
  align-content: start;
  transition: background 0.5s, border-color 0.5s, transform 0.7s var(--ease-out);
}
.sub:hover { background: var(--paper); border-color: var(--line); transform: translateY(-4px); }
.sub h3 { font-family: var(--serif); font-size: 26px; line-height: 1.45; padding-inline-end: 50px; }
.sub p { color: var(--muted); font-size: 16px; }
.sub .link-arrow { justify-self: start; margin-top: 8px; }
.sub-n {
  position: absolute;
  inset-inline-end: 24px;
  top: 16px;
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  color: var(--bone);
  transition: color 0.5s, transform 0.7s var(--ease-out);
}
.sub:hover .sub-n { color: var(--gold-2); transform: translateY(-4px); }

/* ---------- library ---------- */
.tabs-wrap { display: grid; justify-items: start; gap: 12px; }
.tabs {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.tabs button {
  position: relative;
  z-index: 1;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.4s;
}
.tabs button[aria-selected="true"] { color: var(--paper); }
.tabs button:hover:not([aria-selected="true"]) { color: var(--ink); }
.tab-ind {
  position: absolute;
  z-index: 0;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--ink);
}
.tabs-hint { font-size: 14px; color: var(--muted); }
.tab-panel { margin-top: clamp(56px, 7vw, 96px); }
.panel-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 24px clamp(36px, 6vw, 110px);
  align-items: end;
  margin-bottom: 44px;
}
.panel-head p { font-size: 18px; color: var(--muted); }
.year-jump { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.year-jump span { margin-inline-end: 8px; }
.year-jump a {
  padding: 4px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.year-jump a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.coll { padding-block: 44px; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.coll-head { display: flex; align-items: center; gap: 28px; margin-bottom: 30px; }
.coll-year { font-family: var(--serif); font-size: clamp(58px, 6vw, 96px); line-height: 1; color: var(--gold); }
.coll-year small { font-size: 0.34em; color: var(--gold-ink); margin-inline-start: 4px; }
.coll-head h3 { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.4; }
.coll-head p { font-size: 15px; color: var(--muted); }
.vols { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 14px; }
.vol {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 206px;
  padding: 14px 10px;
  border-radius: 3px 9px 9px 3px;
  background: var(--navy);
  color: var(--paper);
  overflow: hidden;
  box-shadow: inset -6px 0 0 rgba(0, 0, 0, 0.18);
  transition: transform 0.7s var(--ease-out), box-shadow 0.7s var(--ease-out);
}
.vol::before,
.vol::after {
  content: "";
  position: absolute;
  inset-inline: 10px;
  height: 1px;
  background: rgba(209, 178, 124, 0.55);
  box-shadow: 0 4px 0 rgba(209, 178, 124, 0.3);
}
.vol::before { top: 50px; }
.vol::after { bottom: 46px; }
.vol-y { font-family: var(--serif); font-size: 15px; color: var(--gold-2); }
.vol-l { margin-block: auto; font-family: var(--serif); font-size: 21px; line-height: 1.35; text-align: center; }
.vol-pdf { font-size: 11.5px; color: var(--muted-light); }
.vol:hover { transform: translateY(-10px) rotate(-1.5deg); box-shadow: inset -6px 0 0 rgba(0, 0, 0, 0.18), 0 26px 40px -24px rgba(15, 26, 36, 0.7); }
.vols li:nth-child(4n + 2) .vol { background: var(--slate); }
.vols li:nth-child(4n + 3) .vol { background: #4a3328; }
.vols li:nth-child(4n) .vol { background: var(--ink); }
.more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-weight: 500;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.more-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.src-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.src-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: clamp(28px, 3vw, 46px);
  border-radius: 6px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.src-card .link-arrow { justify-self: start; margin-top: 6px; }
.src-card--official {
  margin-top: 44px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 40px;
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.src-card--official > div { display: grid; gap: 10px; }
.src-tag { font-size: 13px; font-weight: 600; color: var(--gold-ink); }
.src-card--official .src-tag { color: var(--gold-2); }
.src-card h3 { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 40px); line-height: 1.4; }
.src-org { font-size: 15px; color: var(--muted); }
.src-card .d { color: var(--muted); }
.src-card--official .src-org,
.src-card--official .d { color: var(--muted-light); }
.lib-foot {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 24px clamp(36px, 6vw, 110px);
  margin-top: clamp(70px, 8vw, 120px);
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.lib-foot h3 { font-family: var(--serif); font-size: 28px; }
.note-muted { margin-top: 16px; font-size: 15px; color: var(--muted); }

/* ---------- blog ---------- */
.posts { border-top: 1px solid var(--line); }
.post {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 40px;
  gap: 24px;
  align-items: center;
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
}
.post::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 calc(-1 * var(--gutter));
  background: var(--paper-2);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.6s var(--ease-out);
}
.post:hover::before { transform: scaleY(1); }
.post-n { font-family: var(--serif); font-size: 22px; color: var(--gold); }
.post-body { display: grid; gap: 6px; }
.post-t { font-family: var(--serif); font-size: clamp(23px, 2.3vw, 34px); line-height: 1.5; transition: color 0.4s; }
.post-x { color: var(--muted); max-width: 80ch; }
.post svg { width: 26px; height: 26px; justify-self: end; transition: transform 0.6s var(--ease-out); }
.post:hover .post-t { color: var(--slate); }
.post:hover svg { transform: translateX(-8px); }
.posts li:first-child .post { padding-block: 46px; }
.posts li:first-child .post-t { font-size: clamp(32px, 3.6vw, 56px); line-height: 1.4; }
.blog-more { display: flex; justify-content: center; margin-top: 30px; }

/* ---------- contact page ---------- */
.cp-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 110px);
  align-items: start;
}
.cp-direct {
  position: sticky;
  top: calc(var(--hdr) + 30px);
  display: grid;
  gap: 22px;
}
.cp-direct h2 { font-family: var(--serif); font-size: clamp(32px, 3vw, 46px); line-height: 1.4; }
.cp-direct > p { font-size: 18px; color: var(--muted); }
.cp-links { display: grid; gap: 12px; }
.cp-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.3;
  transition: background 0.5s, transform 0.7s var(--ease-out);
}
.cp-link small { display: block; margin-top: 4px; font-family: var(--sans); font-size: 14px; color: var(--muted-light); }
.cp-link svg { width: 26px; height: 26px; flex-shrink: 0; transition: transform 0.6s var(--ease-out); }
.cp-link:hover { background: var(--slate); transform: translateY(-3px); }
.cp-link:hover svg { transform: translate(-4px, -4px); }
.cp-office { display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.cp-office h3 { font-size: 14px; font-weight: 600; color: var(--gold-ink); }
.cp-office p { font-family: var(--serif); font-size: 22px; line-height: 1.6; }
.cp-office .link-arrow { justify-self: start; }

.cp-form {
  padding: clamp(28px, 3.6vw, 58px);
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 50px 90px -70px rgba(15, 26, 36, 0.5);
}
.cp-form h2 { font-family: var(--serif); font-size: clamp(32px, 3vw, 46px); line-height: 1.4; }
.cp-form .form-sub { margin-top: 8px; color: var(--muted); }
.steps-bar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block: 34px 32px;
  border-bottom: 1px solid var(--line);
}
.steps-bar li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.4s;
}
.steps-bar li span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-family: var(--serif);
  font-size: 15px;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.steps-bar li.is-active { color: var(--ink); }
.steps-bar li.is-active span,
.steps-bar li.is-done span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.steps-fill {
  position: absolute;
  bottom: -1px;
  inset-inline: 0;
  height: 2px;
  background: var(--gold);
  transform-origin: right center;
  transform: scaleX(0.3333);
}
.step { min-width: 0; margin: 0; padding: 0; border: 0; }
.step legend { padding: 0; margin-bottom: 20px; font-family: var(--serif); font-size: 26px; }
.step-text { font-size: 18px; color: var(--muted); max-width: 56ch; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 22px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--muted); }
.field input,
.field select {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  outline: none;
  transition: border-color 0.4s;
  -webkit-appearance: none;
  appearance: none;
}
.field input[dir="ltr"] { text-align: right; }
.field select {
  padding-left: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237d5f33' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 4px center;
  cursor: pointer;
}
.field input::placeholder { color: #a6adb3; }
.field input:focus,
.field select:focus { border-color: var(--gold); }
.field [aria-invalid="true"] { border-color: #a1452f; }
.review { display: grid; margin: 0 0 24px; }
.review div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.review dt { font-size: 14px; color: var(--muted); }
.review dd { margin: 0; font-weight: 500; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 6px; flex-shrink: 0; accent-color: var(--ink); }
.check input[aria-invalid="true"] { outline: 2px solid #a1452f; outline-offset: 2px; }
.fine { margin-top: 10px; font-size: 14px; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.btn-plain {
  height: 58px;
  padding-inline: 26px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-weight: 500;
  transition: background 0.4s, color 0.4s;
}
.btn-plain:hover { background: var(--ink); color: var(--paper); }
.form-note { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* ---------- responsive (main pages) ---------- */
@media (max-width: 980px) {
  .quals-grid,
  .exp-grid,
  .firm-grid,
  .cta-grid,
  .svcp-grid,
  .panel-head,
  .lib-foot,
  .cp-grid { grid-template-columns: minmax(0, 1fr); }
  .quals-head,
  .svcp-nav,
  .cp-direct { position: relative; top: 0; }
  .creds-grid { grid-template-columns: minmax(0, 1fr); }
  .cred,
  .cred:first-child { padding-inline: 0; }
  .cred + .cred { border-inline-start: 0; border-top: 1px solid var(--line-light); }
  .hscroll-sticky { position: relative; height: auto; padding-block: 90px; }
  .hscroll-track { flex-direction: column; width: auto; }
  .hcard { width: auto; min-height: 0; }
  .hscroll-progress { display: none; }
  .svcp-nav nav { grid-auto-flow: column; overflow-x: auto; border-inline-start: 0; border-bottom: 1px solid var(--line); }
  .svcp-nav a { white-space: nowrap; padding-inline: 14px; }
  .svcp-ind { display: none; }
  .grp-meta,
  .subgrid,
  .src-grid { grid-template-columns: minmax(0, 1fr); }
  .src-card--official { grid-template-columns: minmax(0, 1fr); }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .review div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .post { grid-template-columns: 44px minmax(0, 1fr) 28px; gap: 14px; }
  .approach-lines li { grid-template-columns: 40px 1fr; font-size: 18px; }
}
@media (max-width: 600px) {
  .tabs { border-radius: 18px; }
  .tabs button { padding: 10px 16px; font-size: 15px; }
  .steps-bar li { font-size: 12px; gap: 6px; flex-direction: column; align-items: flex-start; }
  .vols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vol { height: 180px; }
}

/* =========================================================
   Home hero — cinematic photo
   ========================================================= */
.hv {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: var(--hdr);
  padding-bottom: 26px;
}
.hv-title { font-size: clamp(42px, 6vw, 104px); line-height: 1.5; color: var(--paper); }
.hv-title .ln--soft { font-weight: 400; color: var(--gold-2); }
.hv-c { justify-content: flex-end; }
.hv-c-media { position: absolute; inset: 0; z-index: 0; margin: 0; overflow: hidden; background: var(--ink); }
.hv-c-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 60%;
  filter: grayscale(1) contrast(1.12) brightness(0.8);
  transform-origin: 66% 56%;
  animation: hv-kb 24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hv-c-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #1b3146;
  mix-blend-mode: color;
}
.hv-c-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(0deg, rgba(10, 17, 24, 0.95) 0%, rgba(10, 17, 24, 0.6) 42%, rgba(10, 17, 24, 0.3) 70%, rgba(10, 17, 24, 0.55) 100%),
    linear-gradient(270deg, rgba(10, 17, 24, 0.55) 0%, rgba(10, 17, 24, 0) 60%);
}
@keyframes hv-kb { from { transform: scale(1.16); } to { transform: scale(1.02); } }
.js-anim .hv-c-media { opacity: 0; }
.hv-c-bottom {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 28px 48px;
  align-items: end;
  padding-bottom: clamp(30px, 7vh, 80px);
}
.hv-c .hv-title { font-size: clamp(40px, 5.2vw, 90px); }
.hv-c-side { display: grid; gap: 24px; justify-items: start; padding-bottom: 18px; }
.hv-c .hero-cta { flex-direction: column; align-items: flex-start; gap: 22px; }

@media (max-width: 980px) {
  .hv-c-bottom { grid-template-columns: minmax(0, 1fr); }
  .hv-c .hero-cta { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .hv-c-media img { object-position: 84% 52%; transform-origin: 84% 52%; }
}
@media (prefers-reduced-motion: reduce) {
  .hv-c-media img { animation: none; transform: scale(1.02); }
}

/* =========================================================
   Home · judicial library — expanding panels
   ========================================================= */
.panels {
  display: flex;
  gap: 14px;
  height: clamp(420px, 42vw, 560px);
  margin-bottom: clamp(80px, 9vw, 140px);
}
.panel {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  transition: flex 0.9s var(--ease-out);
}
.panels:not(:hover) .panel:nth-child(2),
.panels .panel:hover,
.panels .panel:focus-visible { flex: 2.3; }
.panels:hover .panel:not(:hover) { flex: 0.85; }
.panel > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(0.75);
  transform: scale(1.06);
  transition: transform 1.2s var(--ease-out);
}
.panel:hover > img { transform: scale(1); }
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 17, 24, 0.92) 0%, rgba(10, 17, 24, 0.35) 55%, rgba(27, 49, 70, 0.35) 100%);
}
.panel-in {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding: clamp(22px, 2.4vw, 34px);
}
.panel-tag { font-size: 13px; color: var(--gold-2); }
.panel h4 { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 34px); line-height: 1.4; white-space: nowrap; }
.panel p {
  max-width: 40ch;
  color: #cfd6dc;
  font-size: 15px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.5s, max-height 0.6s var(--ease-out);
}
.panels:not(:hover) .panel:nth-child(2) p,
.panel:hover p,
.panel:focus-visible p { max-height: 6em; opacity: 1; transition-delay: 0.25s; }
.panel-open { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--paper); }
.panel-open svg { width: 16px; height: 16px; transition: transform 0.6s var(--ease-out); }
.panel:hover .panel-open svg { transform: translateX(-6px); }

@media (max-width: 980px) {
  .panels { flex-direction: column; height: auto; }
  .panel,
  .panels .panel:hover,
  .panels:not(:hover) .panel:nth-child(2),
  .panels:hover .panel:not(:hover) { flex: none; height: 300px; }
  .panel p { max-height: 6em; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .panel,
  .panel > img,
  .panel p { transition: none; }
}

/* keep the hidden attribute authoritative over component display rules */
[hidden] { display: none; }
