/* ==========================================================================
   The Future Law — Design System
   1. Tokens      6. Header / navigation   11. Process
   2. Base        7. Hero                  12. Team
   3. Layout      8. Trust strip           13. Insights
   4. Type        9. About                 14. Contact / forms
   5. Controls   10. Practice areas        15. Footer / utility
   ========================================================================== */

/* 1. TOKENS ============================================================== */

:root {
  /* Ink — midnight navy-charcoal, the primary surface */
  --ink-950: #080D14;
  --ink-900: #0D141E;
  --ink-800: #141D29;
  --ink-700: #1D2837;
  --ink-600: #2A3747;
  --ink-500: #3E4C5E;

  /* Slate — muted text on dark */
  --slate-400: #74818F;
  --slate-300: #9AA5B2;
  --slate-200: #BDC5CE;

  /* Ivory — warm paper */
  --ivory-50:  #FCFAF6;
  --ivory-100: #F4F1EA;
  --ivory-200: #E8E3D8;
  --ivory-300: #D6CFC0;

  /* Brass — restrained accent. -700 is the only brass safe for text on ivory. */
  --brass-700: #83653A;
  --brass-500: #B08D57;
  --brass-400: #C3A273;
  --brass-300: #DAC69F;

  --state-error: #B4453C;
  --state-ok: #4A7C59;

  /* Semantic */
  --bg: var(--ivory-100);
  --bg-raised: var(--ivory-50);
  --fg: var(--ink-900);
  --fg-muted: #4E5A68;
  --rule: rgba(13, 20, 30, 0.14);
  --rule-strong: rgba(13, 20, 30, 0.28);
  --rule-dark: rgba(244, 241, 234, 0.16);

  /* Context-aware aliases: components used on both surfaces read these */
  --muted-ctx: var(--fg-muted);
  --rule-ctx: var(--rule);
  --accent-ctx: var(--brass-700);

  /* Type */
  --font-display: "Source Serif 4", "Iowan Old Style", "Charter", Georgia, serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --t-xs: 0.75rem;
  --t-sm: 0.8125rem;
  --t-base: 1rem;
  --t-md: 1.0625rem;
  --t-lg: clamp(1.0625rem, 0.35vw + 0.98rem, 1.25rem);
  --t-xl: clamp(1.375rem, 0.8vw + 1.18rem, 1.625rem);
  --d-sm: clamp(1.625rem, 1.5vw + 1.2rem, 2.125rem);
  --d-md: clamp(1.875rem, 2.4vw + 1.25rem, 2.75rem);
  --d-lg: clamp(2.125rem, 3.6vw + 1.15rem, 3.625rem);
  --d-xl: clamp(2.375rem, 4.4vw + 1.05rem, 4.5rem);

  /* Space */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;     --s-7: 2.75rem;  --s-8: 4rem;
  --s-9: 5.5rem;   --s-10: 7.5rem;  --s-11: 10rem;

  --section-y: clamp(4.5rem, 8vw, 8.5rem);
  --container: 78rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);

  --radius-sm: 2px;
  --radius: 3px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.45s;

  --header-h: 84px;
  --header-h-compact: 64px;
}

/* 2. BASE ================================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-compact) + 1.5rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ui);
  font-size: var(--t-md);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }

::selection { background: var(--brass-300); color: var(--ink-950); }

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

.skip-link {
  position: absolute; left: var(--s-4); top: var(--s-4);
  transform: translateY(-200%);
  background: var(--ink-900); color: var(--ivory-100);
  padding: 0.75rem 1.25rem; z-index: 200;
  font-size: var(--t-sm); letter-spacing: 0.02em;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

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

/* 3. LAYOUT ============================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: 88rem; }
.container--narrow { max-width: 46rem; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 5vw, 5rem); }
.section--dark, .on-dark, .footer {
  --muted-ctx: var(--slate-300);
  --rule-ctx: var(--rule-dark);
  --accent-ctx: var(--brass-400);
}
.section--dark { background: var(--ink-900); color: var(--ivory-100); }
.section--dark .section-label { color: var(--slate-300); }
.section--paper { background: var(--ivory-50); }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }

/* Section label sits in the document margin, like a ruled brief */
.section-label {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: var(--t-sm);
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  margin: 0 0 var(--s-5);
  font-weight: 500;
}
.section-label::before {
  content: ""; width: 2.25rem; height: 1px;
  background: var(--brass-500); flex: none;
}

.grid { display: grid; gap: var(--s-6); }

/* 4. TYPE ================================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.014em;
  margin: 0;
  text-wrap: balance;
}

.display {
  font-size: var(--d-xl);
  line-height: 1.08;
  letter-spacing: -0.026em;
}
.h1 { font-size: var(--d-lg); }
.h2 { font-size: var(--d-md); line-height: 1.14; }
.h3 { font-size: var(--d-sm); line-height: 1.18; }
.h4 { font-size: var(--t-xl); line-height: 1.24; }

.lede {
  font-size: var(--t-lg);
  line-height: 1.6;
  color: var(--muted-ctx);
  max-width: 34ch;
  margin: 0;
}

p { margin: 0 0 1.15em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

.prose { max-width: 40rem; }
.prose--article { max-width: none; }
.prose h2 { font-size: var(--d-sm); margin-top: 2.5em; margin-bottom: 0.5em; }
.prose h3 { font-size: var(--t-xl); margin-top: 2em; margin-bottom: 0.4em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { color: var(--fg-muted); }
.prose ul { padding-left: 0; list-style: none; margin: 1.5em 0; }
.prose ul li {
  position: relative; padding-left: 1.6rem; margin-bottom: 0.7em;
  color: var(--fg-muted); max-width: 62ch;
}
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 0.6rem; height: 1px; background: var(--brass-500);
}

.quiet { color: var(--muted-ctx); }
.tiny { font-size: var(--t-sm); line-height: 1.5; }

/* 5. CONTROLS ============================================================ */

.btn {
  --btn-bg: var(--ink-900);
  --btn-fg: var(--ivory-50);
  --btn-bd: var(--ink-900);
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 0.95rem 1.6rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: var(--t-base); font-weight: 600; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform 0.5s var(--ease-out);
  will-change: transform;
}
.btn .btn-arrow { transition: transform 0.4s var(--ease-out); flex: none; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn--primary:hover { --btn-bg: var(--brass-700); --btn-bd: var(--brass-700); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink-900); --btn-bd: var(--rule-strong); }
.btn--ghost:hover { --btn-bd: var(--ink-900); --btn-bg: rgba(13,20,30,0.04); }

.on-dark .btn--primary,
.section--dark .btn--primary { --btn-bg: var(--ivory-50); --btn-fg: var(--ink-950); --btn-bd: var(--ivory-50); }
.on-dark .btn--primary:hover,
.section--dark .btn--primary:hover { --btn-bg: var(--brass-400); --btn-bd: var(--brass-400); }
.on-dark .btn--ghost,
.section--dark .btn--ghost { --btn-fg: var(--ivory-100); --btn-bd: var(--rule-dark); }
.on-dark .btn--ghost:hover,
.section--dark .btn--ghost:hover { --btn-bd: var(--brass-400); --btn-bg: rgba(244,241,234,0.06); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-4); }

/* Text link with a rule that draws in */
.link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: inherit; text-decoration: none;
  font-weight: 600; font-size: var(--t-base);
  position: relative; padding-bottom: 3px;
}
.link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; opacity: 0.28;
  transform-origin: right; transform: scaleX(1);
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease);
}
.link:hover::after { opacity: 1; transform-origin: left; }
.link .btn-arrow { transition: transform 0.4s var(--ease-out); }
.link:hover .btn-arrow { transform: translateX(4px); }
.link--brass { color: var(--brass-700); }
.section--dark .link--brass, .on-dark .link--brass { color: var(--brass-400); }

/* 6. HEADER ============================================================== */

.progress {
  position: fixed; inset: 0 auto auto 0; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: left;
  background: var(--brass-500); z-index: 120;
}

.header {
  position: fixed; inset: 0 0 auto 0; z-index: 110;
  height: var(--header-h);
  display: flex; align-items: center;
  color: var(--ivory-50);
  transition: height var(--dur) var(--ease), background var(--dur) var(--ease),
              color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.header::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: var(--rule-dark); opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.header.is-solid {
  height: var(--header-h-compact);
  background: rgba(13, 20, 30, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
}
.header.is-solid::after { opacity: 1; }
.header--inner { background: var(--ink-900); }

.header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-5); width: 100%;
}

.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: inherit; flex: none;
}
/* Header lockup: horizontal, so the wordmark stays legible in a slim bar.
   Height is fixed and width derives from the intrinsic ratio, so the mark can
   never blow out of the header if the stylesheet loads late. */
.brand-logo {
  height: 38px; width: auto; max-width: min(56vw, 260px);
  flex: none; object-fit: contain; object-position: left center;
  transition: height var(--dur) var(--ease), opacity 0.3s var(--ease);
}
.brand { flex: none; min-width: 0; }
.brand:hover .brand-logo { opacity: 0.85; }
.header.is-solid .brand-logo { height: 30px; }

/* Footer keeps the full stacked lockup, tagline included. */
.brand-logo--stacked { height: 88px; max-width: 100%; }
.footer .brand { display: inline-block; }

@media (max-width: 1023px) { .brand-logo { height: 34px; } .header.is-solid .brand-logo { height: 28px; } }
@media (max-width: 480px)  { .brand-logo { height: 30px; } .brand-logo--stacked { height: 76px; } }



.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav-list {
  display: flex; align-items: center; gap: clamp(1rem, 1.8vw, 2rem);
  list-style: none; margin: 0; padding: 0;
}
.nav-list a {
  text-decoration: none; font-size: 0.9375rem; font-weight: 500;
  letter-spacing: 0.005em; opacity: 0.82; position: relative;
  padding-block: 0.4rem; white-space: nowrap;
  transition: opacity 0.3s var(--ease);
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--brass-400);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-list a:hover { opacity: 1; }
.nav-list a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-list a[aria-current="page"] { opacity: 1; }
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }

.header .btn {
  padding: 0.7rem 1.2rem; font-size: 0.9375rem;
  --btn-bg: transparent; --btn-fg: var(--ivory-50); --btn-bd: rgba(244,241,234,0.34);
}
.header .btn:hover { --btn-bg: var(--brass-500); --btn-bd: var(--brass-500); --btn-fg: var(--ink-950); }

.nav-toggle {
  display: none; align-items: center; gap: 0.6rem;
  background: none; border: 0; color: inherit; cursor: pointer;
  font-family: var(--font-ui); font-size: 0.9375rem; font-weight: 600;
  padding: 0.5rem 0; letter-spacing: 0.02em;
}
.nav-toggle-bars { width: 22px; height: 10px; position: relative; }
.nav-toggle-bars span {
  position: absolute; left: 0; width: 100%; height: 1.5px;
  background: currentColor; transition: transform 0.4s var(--ease-out), opacity 0.2s;
}
.nav-toggle-bars span:first-child { top: 0; }
.nav-toggle-bars span:last-child { bottom: 0; }
[aria-expanded="true"] .nav-toggle-bars span:first-child { transform: translateY(4.25px) rotate(45deg); }
[aria-expanded="true"] .nav-toggle-bars span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 105;
  background: var(--ink-950); color: var(--ivory-100);
  padding: calc(var(--header-h) + 2rem) 0 2rem;
  display: flex; flex-direction: column;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease-out);
  overflow-y: auto;
  visibility: hidden;
}
.drawer.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.drawer .container { display: flex; flex-direction: column; height: 100%; }
.drawer-list { list-style: none; margin: 0 0 auto; padding: 0; }
.drawer-list li { border-bottom: 1px solid var(--rule-dark); }
.drawer-list a {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1.05rem 0; text-decoration: none;
  font-family: var(--font-display); font-size: 1.75rem; line-height: 1.2;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease-out);
}
.drawer.is-open .drawer-list a { opacity: 1; transform: none; }
.drawer-list a .idx {
  font-family: var(--font-ui); font-size: var(--t-xs);
  color: var(--brass-400); font-weight: 600;
}
.drawer-foot { margin-top: 2.5rem; display: grid; gap: 1.25rem; }
.drawer-foot .btn { justify-content: center; }

/* 7. HERO ================================================================ */

.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: flex; align-items: flex-end;
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  background: var(--ink-950);
  color: var(--ivory-50);
  overflow: hidden;
  isolation: isolate;
}

/* Hero photograph: Supreme Court of Pakistan, colour-graded to the palette.
   The building is centred and brightly lit, so the overlay darkens hardest on
   the left where the headline sits, and again at the base. */
.hero-art { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-art picture, .hero-art img {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
.hero-art img { object-fit: cover; object-position: center 38%; }
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,13,20,0.94) 0%, rgba(8,13,20,0.80) 34%,
                    rgba(8,13,20,0.46) 66%, rgba(8,13,20,0.62) 100%),
    linear-gradient(180deg, rgba(8,13,20,0.86) 0%, rgba(8,13,20,0.30) 34%,
                    rgba(8,13,20,0.55) 74%, rgba(8,13,20,0.92) 100%),
    radial-gradient(90% 70% at 78% 14%, rgba(176,141,87,0.20), transparent 62%);
}
.grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.28; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.hero-inner { position: relative; width: 100%; }
.hero-rule {
  width: 100%; height: 1px; background: var(--brass-500);
  transform: scaleX(0); transform-origin: left;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.hero-eyebrow {
  font-size: var(--t-sm); letter-spacing: 0.05em;
  color: var(--brass-300); margin: 0 0 1.25rem; font-weight: 500;
}
.hero h1 { max-width: 17ch; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.hero h1 em { font-style: italic; color: var(--brass-300); }
.hero-sub {
  font-size: var(--t-lg); color: var(--slate-200);
  max-width: 46ch; margin-bottom: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.6;
}
.hero-note {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem; border-top: 1px solid var(--rule-dark);
  display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem;
  font-size: var(--t-sm); color: var(--slate-300);
}
.hero-note strong { color: var(--ivory-100); font-weight: 600; }

/* Inner-page hero */
.page-hero {
  background: var(--ink-900); color: var(--ivory-50);
  padding-top: calc(var(--header-h) + clamp(3rem, 6vw, 5.5rem));
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  position: relative; overflow: hidden; isolation: isolate;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 120% at 92% 0%, rgba(176,141,87,0.22), transparent 60%),
    repeating-linear-gradient(90deg, rgba(244,241,234,0.03) 0 1px, transparent 1px 72px);
}
.page-hero h1 { max-width: 20ch; margin-bottom: 1.25rem; }
.page-hero .lede { color: var(--slate-200); max-width: 48ch; }

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  list-style: none; margin: 0 0 clamp(1.5rem, 3vw, 2.5rem); padding: 0;
  font-size: var(--t-sm); color: var(--slate-400);
}
.crumbs a { text-decoration: none; opacity: 0.9; }
.crumbs a:hover { color: var(--brass-300); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }

/* 8. TRUST STRIP ========================================================= */

.trust { background: var(--ivory-50); border-bottom: 1px solid var(--rule); }
.trust-grid {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
}
.trust-statement {
  font-family: var(--font-display); font-size: var(--d-sm);
  line-height: 1.2; letter-spacing: -0.016em; margin: 0 0 1.25rem;
}
.trust-pillars { display: grid; gap: clamp(1.75rem, 3vw, 2.75rem); }
.pillar { border-top: 1px solid var(--rule-strong); padding-top: 1.1rem; }
.pillar h3 {
  font-family: var(--font-ui); font-size: var(--t-base); font-weight: 700;
  letter-spacing: 0.01em; margin-bottom: 0.4rem;
}
.pillar p { font-size: var(--t-base); color: var(--fg-muted); max-width: 34ch; }

/* 9. ABOUT =============================================================== */

.about-grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.about-statement { font-size: var(--d-md); line-height: 1.16; letter-spacing: -0.018em; }
.about-body > p { margin-bottom: 1.4em; color: var(--fg-muted); }

.portrait {
  position: relative; background: var(--ink-800);
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 5;
  display: grid; place-items: end stretch;
}
.portrait::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(160deg, rgba(176,141,87,0.08), transparent 40%),
    linear-gradient(180deg, transparent 62%, rgba(8,13,20,0.30) 100%);
}
/* Plinth: a hairline the figure appears to stand on */
.portrait picture { position: absolute; inset: 0; }
.portrait img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  /* Full-bleed photograph. If a cut-out portrait on a transparent background
     is supplied instead, switch to `contain` / `center bottom`. */
  object-fit: cover; object-position: center center;
}
.portrait-fallback {
  position: absolute; inset: auto 0 0 0; z-index: 2; padding: 1.5rem;
  display: none; gap: 0.35rem; color: var(--slate-300);
  font-size: var(--t-sm);
}
.portrait--fallback .portrait-fallback { display: grid; }
.portrait--fallback::after { display: none; }
.portrait-fallback strong {
  font-family: var(--font-display); font-size: 1.5rem; color: var(--ivory-50);
  font-weight: 600;
}
.fact-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0; }
.fact-list li {
  display: grid; gap: 0.15rem 1.5rem; padding: 0.9rem 0;
  border-top: 1px solid var(--rule);
}
.fact-list dt, .fact-list .k {
  font-size: var(--t-sm); color: var(--fg-muted); font-weight: 500;
}
.fact-list .v { font-weight: 600; }

/* 10. PRACTICE AREAS ===================================================== */

.pa { position: relative; }
.pa-layout { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }

.pa-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-dark); }
.pa-item { border-bottom: 1px solid var(--rule-dark); }
.pa-trigger {
  width: 100%; display: flex; align-items: baseline; gap: 1.25rem;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: clamp(0.9rem, 1.6vw, 1.35rem) 0;
  color: var(--slate-300);
  font-family: var(--font-display); font-size: clamp(1.3125rem, 1.9vw, 1.75rem);
  line-height: 1.2; font-weight: 600;
  transition: color 0.4s var(--ease), padding-left 0.5s var(--ease-out);
}
.pa-trigger .num {
  font-family: var(--font-ui); font-size: var(--t-xs); font-weight: 700;
  letter-spacing: 0.06em; color: var(--slate-400); flex: none;
  transition: color 0.4s var(--ease);
}
.pa-trigger:hover, .pa-trigger:focus-visible { color: var(--ivory-50); }
.pa-item.is-active .pa-trigger { color: var(--ivory-50); padding-left: 0.75rem; }
.pa-item.is-active .pa-trigger .num { color: var(--brass-400); }

.pa-panel-wrap { position: relative; min-height: 20rem; }
.pa-panel {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.55s var(--ease-out);
  display: flex; flex-direction: column;
}
.pa-panel.is-active { opacity: 1; visibility: visible; transform: none; position: relative; }
.pa-visual {
  aspect-ratio: 16 / 10; border-radius: var(--radius);
  background: var(--ink-800); position: relative; overflow: hidden;
  margin-bottom: 1.5rem;
}
.pa-visual::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(176,141,87,0.34), transparent 55%),
    repeating-linear-gradient(var(--pa-angle, 78deg), rgba(244,241,234,0.09) 0 1px, transparent 1px 26px);
}

/* --- Photographic practice-area panels --------------------------------- */
.pa-visual--photo { background: var(--ink-900); }
.pa-visual--photo picture, .pa-visual--photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
.pa-visual--photo img {
  object-fit: cover;
  /* Pulls six separately-shot photographs into one palette */
  filter: saturate(0.72) contrast(1.06) brightness(0.94);
  transform: scale(1.01);
  transition: transform 1.2s var(--ease-out), filter 0.6s var(--ease);
}
/* Sits over the photograph: darkens the base so the numeral and the panel
   below stay legible, and carries the brass rake across the top corner. */
.pa-visual--photo::before {
  background:
    linear-gradient(160deg, rgba(176,141,87,0.22), transparent 46%),
    linear-gradient(180deg, rgba(8,13,20,0.18) 0%, rgba(8,13,20,0.32) 45%, rgba(8,13,20,0.80) 100%),
    /* keeps the numeral legible whatever the photograph does in that corner */
    radial-gradient(60% 70% at 12% 100%, rgba(8,13,20,0.72), transparent 70%);
  z-index: 1;
}
.pa-visual--photo span {
  z-index: 2; color: rgba(244,241,234,0.62);
  text-shadow: 0 2px 18px rgba(8,13,20,0.85);
}
.pa-panel.is-active .pa-visual--photo img { transform: scale(1.04); }

/* The tall crop on the practice pages sits in a light section, so it needs
   less darkening — only enough to hold the numeral. */
.pa-visual--tall { aspect-ratio: 4 / 5; }
.pa-visual--tall::before {
  background:
    linear-gradient(160deg, rgba(176,141,87,0.16), transparent 44%),
    linear-gradient(180deg, transparent 40%, rgba(8,13,20,0.70) 100%),
    radial-gradient(58% 62% at 14% 100%, rgba(8,13,20,0.62), transparent 72%);
}
.pa-visual--tall img { filter: saturate(0.78) contrast(1.04); }

@media (prefers-reduced-motion: reduce) {
  .pa-visual--photo img, .pa-panel.is-active .pa-visual--photo img { transform: none; }
}
.pa-visual span {
  position: absolute; left: 1.25rem; bottom: 1rem;
  font-family: var(--font-display); font-size: 3.5rem; line-height: 1;
  color: rgba(244,241,234,0.14); font-weight: 600;
}
.pa-panel h3 { font-size: var(--t-xl); margin-bottom: 0.65rem; color: var(--ivory-50); }
.pa-panel p { color: var(--slate-300); margin-bottom: 1.5rem; max-width: 46ch; }
.pa-panel .link { color: var(--brass-400); align-self: flex-start; }

/* Mobile / no-JS fallback list */
.pa-cards { display: grid; gap: 1px; background: var(--rule-dark); border-block: 1px solid var(--rule-dark); }
.pa-card {
  background: var(--ink-900); padding: 1.5rem 0; text-decoration: none;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  color: var(--ivory-100);
}
.pa-card .num { font-size: var(--t-xs); color: var(--brass-400); font-weight: 700; }
.pa-card h3 { font-size: 1.5rem; }
.pa-card p { font-size: var(--t-base); color: var(--slate-300); margin: 0.5rem 0 0; }

/* 11. PRINCIPLES + PROCESS =============================================== */

.principles { display: grid; gap: 0; counter-reset: p; }
.principle {
  display: grid; gap: 0.5rem 2.5rem; padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-top: 1px solid var(--rule);
}
.principle:last-child { border-bottom: 1px solid var(--rule); }
.principle h3 { font-size: var(--t-xl); }
.principle p { color: var(--fg-muted); max-width: 52ch; }

.process { counter-reset: step; }
.steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.step { position: relative; padding: 0 0 2rem 3.25rem; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute; left: 0; top: -0.15rem;
  font-size: var(--t-sm); font-weight: 700; color: var(--accent-ctx);
  letter-spacing: 0.05em;
}
.step::after {
  content: ""; position: absolute; left: 0.55rem; top: 1.5rem; bottom: 0;
  width: 1px; background: var(--rule-ctx);
}
.step:last-child { padding-bottom: 0; }
.step:last-child::after { display: none; }
.step h3 { font-size: var(--t-xl); margin-bottom: 0.4rem; }
.step p { color: var(--muted-ctx); font-size: var(--t-base); max-width: 40ch; }

/* 12. TEAM + CREDIBILITY ================================================= */

.team-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.member { display: grid; gap: 1.25rem; }
.member .portrait { aspect-ratio: 3 / 4; }
.member h3 { font-size: var(--t-xl); }
.member .role { font-size: var(--t-sm); color: var(--brass-700); font-weight: 600; margin-bottom: 0.75rem; }
.section--dark .member .role { color: var(--brass-400); }
.member p { color: var(--fg-muted); font-size: var(--t-base); }
.section--dark .member p { color: var(--slate-300); }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; padding: 0; list-style: none; }
.tags li {
  font-size: var(--t-sm); padding: 0.3rem 0.7rem;
  border: 1px solid var(--rule); border-radius: 999px; color: var(--fg-muted);
}
.section--dark .tags li { border-color: var(--rule-dark); color: var(--slate-300); }

.credibility { display: grid; gap: 0; }
.cred-item { padding: clamp(1.5rem, 3vw, 2.25rem) 0; border-top: 1px solid var(--rule-ctx); }
.cred-item:last-child { border-bottom: 1px solid var(--rule-ctx); }
.cred-item h3 { font-size: var(--d-sm); margin-bottom: 0.5rem; }
.cred-item p { color: var(--muted-ctx); max-width: 46ch; }

/* 13. INSIGHTS =========================================================== */

.insight-grid { display: grid; gap: 0; }
.insight {
  display: grid; gap: 0.5rem; padding: clamp(1.5rem, 3vw, 2rem) 0;
  border-top: 1px solid var(--rule); text-decoration: none;
  transition: padding-left 0.5s var(--ease-out);
}
.insight:last-child { border-bottom: 1px solid var(--rule); }
a.insight:hover { padding-left: 0.6rem; }
.insight-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
  font-size: var(--t-sm); color: var(--fg-muted);
}
.insight-meta .cat { color: var(--brass-700); font-weight: 600; }
.insight h3 { font-size: var(--d-sm); max-width: 22ch; }
.insight p { color: var(--fg-muted); font-size: var(--t-base); max-width: 56ch; }

/* 14. CTA / CONTACT / FORMS ============================================== */

.cta-band {
  background: var(--ink-950); color: var(--ivory-50);
  position: relative; overflow: hidden; isolation: isolate;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 120% at 85% 100%, rgba(176,141,87,0.26), transparent 62%),
    repeating-linear-gradient(96deg, rgba(244,241,234,0.035) 0 1px, transparent 1px 58px);
}
.cta-band h2 { max-width: 18ch; margin-bottom: 1.25rem; }
.cta-band p { color: var(--slate-200); max-width: 44ch; margin-bottom: 2rem; }

.contact-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; }
.contact-list li { padding: 1.1rem 0; border-top: 1px solid var(--rule); display: grid; gap: 0.2rem; }
.contact-list li:last-child { border-bottom: 1px solid var(--rule); }
.contact-list .k { font-size: var(--t-sm); color: var(--fg-muted); }
.contact-list .v { font-weight: 600; font-size: var(--t-lg); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--brass-700); }

.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--t-sm); font-weight: 600; }
.field .hint { font-size: var(--t-sm); color: var(--fg-muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--t-base);
  padding: 0.85rem 0.95rem;
  background: var(--ivory-50); color: var(--fg);
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  width: 100%;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brass-500);
  box-shadow: 0 0 0 3px rgba(176,141,87,0.18);
}
.field .err { font-size: var(--t-sm); color: var(--state-error); min-height: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--state-error); }
.form-row { display: grid; gap: 1.25rem; }
.form-note { font-size: var(--t-sm); color: var(--fg-muted); max-width: 46ch; }
.form-status { font-size: var(--t-base); font-weight: 600; }
.form-status[data-state="ok"] { color: var(--state-ok); }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* FAQ */
.faq { display: grid; }
.faq-item { border-top: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: 1.25rem 0; font-family: var(--font-display);
  font-size: var(--t-xl); font-weight: 600; line-height: 1.3; color: var(--fg);
}
.faq-q .sign { position: relative; width: 14px; height: 14px; flex: none; margin-top: 0.5rem; }
.faq-q .sign::before, .faq-q .sign::after {
  content: ""; position: absolute; background: var(--brass-700);
  left: 0; top: 6px; width: 14px; height: 1.5px;
  transition: transform 0.4s var(--ease-out);
}
.faq-q .sign::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .sign::after { transform: rotate(0deg); }
.faq-a { overflow: hidden; height: 0; transition: height 0.4s var(--ease-out); }
.faq-a > div { padding: 0 0 1.5rem; color: var(--fg-muted); max-width: 60rem; }
.faq-a p { max-width: 62ch; }

/* 15. FOOTER + UTILITY =================================================== */

.footer {
  background: var(--ink-950); color: var(--slate-300);
  padding-block: clamp(3.5rem, 6vw, 5.5rem) 2rem;
  font-size: var(--t-base);
}
.footer-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.footer h2 {
  font-family: var(--font-ui); font-size: var(--t-sm); font-weight: 700;
  color: var(--ivory-100); letter-spacing: 0.03em; margin-bottom: 1.1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer a { text-decoration: none; transition: color 0.3s var(--ease); }
.footer a:hover { color: var(--brass-400); }
.footer .brand { color: var(--ivory-50); margin-bottom: 1rem; }
.footer-blurb { font-size: var(--t-base); max-width: 32ch; color: var(--slate-400); }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem;
  padding-bottom: 3.25rem;
  border-top: 1px solid var(--rule-dark);
  display: flex; flex-wrap: wrap; gap: 0.75rem 2rem;
  align-items: center; justify-content: space-between;
  font-size: var(--t-sm); color: var(--slate-400);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.5rem; }

.wa {
  position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 90; display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 1.1rem; border-radius: 999px;
  background: var(--ink-900); color: var(--ivory-50);
  text-decoration: none; font-size: var(--t-sm); font-weight: 600;
  box-shadow: 0 10px 30px rgba(8,13,20,0.28);
  border: 1px solid var(--rule-dark);
  /* Held back until the visitor has scrolled past the hero — a fixed button
     lands on the headline or the CTAs on short screens otherwise. */
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: transform 0.45s var(--ease-out), opacity 0.35s var(--ease),
              visibility 0.35s, background 0.3s var(--ease);
}
.wa.is-visible { opacity: 1; visibility: visible; transform: none; }
.wa.is-visible:hover { transform: translateY(-2px); background: var(--brass-700); }
.no-js .wa { opacity: 1; visibility: visible; transform: none; }

/* Reveal — one restrained fade+rise, opt-out safe */
.reveal { opacity: 0; transform: translateY(18px); }
.js .reveal { transition: opacity 0.7s var(--ease), transform 0.8s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   BREAKPOINTS — intentional layouts, not shrunken desktop
   ========================================================================== */

@media (max-width: 1023px) {
  .nav-list, .header .btn { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .trust-pillars { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .principle { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
  .fact-list li { grid-template-columns: 10rem 1fr; }
  .contact-list li { grid-template-columns: 9rem 1fr; align-items: baseline; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .drawer-list a { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .trust-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .trust-pillars { align-content: start; }
  .about-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .about-grid--offset { grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); }
  .pa-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: start; }
  .pa-cards { display: none; }
  .insight-grid--cols { grid-template-columns: repeat(3, 1fr); gap: 0 clamp(1.5rem, 3vw, 2.5rem); }
  .insight-grid--cols .insight { border-bottom: 1px solid var(--rule); }
  .contact-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }

  /* Horizontal process timeline */
  .steps { grid-template-columns: repeat(5, 1fr); gap: clamp(1rem, 2vw, 2rem); }
  .step { padding: 2.5rem 0 0 0; }
  .step::before { top: 0; }
  .step::after { left: 0; top: 1.6rem; bottom: auto; width: 100%; height: 1px; }
  .step:last-child::after { display: block; }
  .step h3 { font-size: var(--t-lg); }
}

@media (min-width: 1280px) {
  .pa-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5rem; }
}

/* No JS: show every practice panel stacked */
.no-js .pa-panel { position: relative; opacity: 1; visibility: visible; transform: none; margin-bottom: 2rem; }
.no-js .pa-list { display: none; }
.no-js .faq-a { height: auto; }

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

@media print {
  .header, .drawer, .wa, .progress, .hero-art, .grain { display: none !important; }
  body { background: #fff; color: #000; }
  .section--dark, .cta-band, .footer { background: #fff !important; color: #000 !important; }
}

/* ==========================================================================
   16. ADDITIONS — location card, photography bands, article pages
   ========================================================================== */

.location-card {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 2rem; padding: 1.15rem 1.25rem;
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  background: var(--ivory-50); text-decoration: none;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.location-card:hover { border-color: var(--brass-500); background: rgba(176,141,87,0.06); }
.location-card > span:nth-child(2) { display: grid; gap: 0.1rem; margin-right: auto; }
.location-card strong { font-weight: 600; }
.location-card .tiny { color: var(--fg-muted); }
.location-pin {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: none;
  border-radius: 50%; background: var(--ink-900); color: var(--brass-400);
}
.location-card .btn-arrow { flex: none; transition: transform 0.4s var(--ease-out); }
.location-card:hover .btn-arrow { transform: translateX(4px); }

/* Photograph band */
.figure-band {
  border-radius: var(--radius); overflow: hidden; background: var(--ink-800);
}
.figure-band img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
}
.contact-grid .figure-band,
#contact .figure-band {
  display: none !important;
}

/* Photograph behind the consultation band */
.cta-photo {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.16; filter: grayscale(1) contrast(1.1);
}
.cta-band::before { background:
    linear-gradient(90deg, rgba(8,13,20,0.97) 30%, rgba(8,13,20,0.72) 100%),
    radial-gradient(70% 120% at 85% 100%, rgba(176,141,87,0.24), transparent 62%); }

.role-line {
  font-size: var(--t-sm); font-weight: 600; letter-spacing: 0.01em;
  color: var(--accent-ctx); margin: 0.5rem 0 1rem;
}

/* Article pages */
.article-meta { font-size: var(--t-sm); color: var(--slate-300); margin: 1.25rem 0 0; }
.prose--article > p:first-of-type {
  font-size: var(--t-lg); line-height: 1.62; color: var(--fg);
}
.prose--article h2 {
  font-size: var(--t-xl); margin-top: 2.2em; margin-bottom: 0.45em;
  padding-top: 1.6rem; border-top: 1px solid var(--rule);
}
.article-note {
  margin-top: 2.5rem; padding-left: 1.25rem;
  border-left: 2px solid var(--brass-500);
  font-size: var(--t-sm); color: var(--fg-muted);
}

a.insight { color: inherit; }
a.insight .link::after { opacity: 0.28; }
a.insight:hover .link::after { opacity: 1; }

/* Card links must not stretch to the grid column, or their underline reads
   as a second section rule. */
a.insight .link { justify-self: start; }

/* ==========================================================================
   17. ANSWER BLOCKS + MOBILE REFINEMENTS
   ========================================================================== */

/* Answer-first summary: the passage search engines and AI assistants quote */
.answer-box {
  background: var(--ivory-50);
  border-left: 2px solid var(--brass-500);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 2.5rem;
}
.section--paper .answer-box { background: var(--ivory-100); }
.answer-box h2 {
  font-family: var(--font-ui); font-size: var(--t-sm); font-weight: 700;
  letter-spacing: 0.02em; color: var(--brass-700);
  margin: 0 0 0.6rem; padding: 0; border: 0;
}
.answer-box p { margin: 0; color: var(--fg); font-size: var(--t-base); max-width: 64ch; }

.faq-wide { max-width: 52rem; }

/* --- Mobile: touch targets, tap spacing, no accidental zoom -------------- */
@media (max-width: 767px) {
  .hero-art img { object-position: center 30%; }
  .hero-art::after {
    background:
      linear-gradient(180deg, rgba(8,13,20,0.86) 0%, rgba(8,13,20,0.58) 30%,
                      rgba(8,13,20,0.48) 52%, rgba(8,13,20,0.90) 88%,
                      rgba(8,13,20,0.97) 100%),
      radial-gradient(130% 55% at 50% 22%, rgba(176,141,87,0.14), transparent 72%);
  }
  .footer-bottom { padding-bottom: 4.5rem; }
  .footer ul { gap: 0.15rem; }
  .footer ul a,
  .footer-bottom ul a { display: inline-block; padding-block: 0.65rem; }
  .footer-bottom { gap: 0.5rem 1.5rem; }
  .contact-list li { padding-block: 0.95rem; }
  .contact-list a { display: inline-block; padding-block: 0.45rem; }
  .crumbs { gap: 0.35rem 0.6rem; }
  .crumbs a { display: inline-block; padding-block: 0.35rem; }
  .btn { width: 100%; justify-content: space-between; }
  .btn-row { gap: 0.75rem; }
  .btn-row .form-status { width: 100%; }
  .faq-q { padding-block: 1.15rem; gap: 1rem; }
  .link { padding-block: 0.6rem; }
  .nav-toggle { padding: 0.9rem 0; }
  .brand { padding-block: 0.5rem; }
  .drawer-foot a { display: inline-block; padding-block: 0.4rem; }
  .tiny a { display: inline-block; padding-block: 0.65rem; }
  .prose a, .footer-blurb a { padding-block: 0.35rem; display: inline-block; }
  .pa-card { padding-block: 1.35rem; }
  .location-card { padding: 1.25rem; }
  .hero-note { gap: 0.4rem 1.5rem; flex-direction: column; }
  .steps { gap: 0; }
}

/* iOS zooms any input under 16px on focus — keep them at or above it */
@media (max-width: 767px) {
  .field input, .field select, .field textarea { font-size: 16px; padding: 0.95rem; }
}

/* Very small handsets */
@media (max-width: 359px) {
  :root { --gutter: 1rem; }
  .brand-logo { height: 26px; }
  .nav-toggle { font-size: 0.875rem; }
}

/* Wider than the container: keep the measure readable on large screens */
@media (min-width: 1600px) {
  .hero h1 { max-width: 15ch; }
}

/* Google Maps embed on the contact pages */
.map-embed {
  width: 100%; aspect-ratio: 16 / 10; border: 0;
  border-radius: var(--radius); margin-top: 1.25rem;
  background: var(--ivory-200);
  filter: grayscale(0.35) contrast(1.02);
}
@media (max-width: 767px) { .map-embed { aspect-ratio: 4 / 3; } }

/* ==========================================================================
   18. SERVICES — dropdown nav, hub grid, page layout
   ========================================================================== */

/* --- Desktop dropdown ---------------------------------------------------- */
.nav-list .has-sub { position: relative; }
.nav-list .has-sub > a { display: inline-flex; align-items: center; gap: 0.35rem; }
.sub-caret { flex: none; transition: transform 0.3s var(--ease); opacity: 0.7; }
.has-sub[data-open="true"] .sub-caret { transform: rotate(180deg); }

.sub-menu {
  position: absolute; top: calc(100% + 0.9rem); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 34rem; padding: 0.75rem;
  background: var(--ink-900); color: var(--ivory-100);
  border: 1px solid var(--rule-dark); border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(8, 13, 20, 0.45);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease-out), visibility 0.25s;
  z-index: 10;
}
.sub-menu::before {
  content: ""; position: absolute; inset: -0.9rem 0 auto 0; height: 0.9rem;
}
.has-sub[data-open="true"] .sub-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.sub-menu ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.1rem 0.75rem;
}
.sub-menu a {
  display: block; padding: 0.6rem 0.75rem; border-radius: 2px;
  font-size: 0.9375rem; font-weight: 500; text-decoration: none;
  color: var(--slate-200); white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.sub-menu a:hover { background: rgba(244, 241, 234, 0.07); color: var(--ivory-50); }
.sub-menu .sub-all { grid-column: 1 / -1; border-top: 1px solid var(--rule-dark); margin-top: 0.4rem; padding-top: 0.4rem; }
.sub-menu .sub-all a { color: var(--brass-400); font-weight: 600; }

/* --- Mobile drawer group -------------------------------------------------- */
.drawer-sub-toggle {
  width: 100%; display: flex; align-items: baseline; gap: 1rem;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 1.05rem 0; color: inherit;
  font-family: var(--font-display); font-size: 1.75rem; line-height: 1.2; font-weight: 600;
}
.drawer-sub-toggle .sub-caret { margin-left: auto; align-self: center; transition: transform 0.35s var(--ease-out); }
.drawer-sub-toggle[aria-expanded="true"] .sub-caret { transform: rotate(180deg); }
.drawer-sub { overflow: hidden; height: 0; transition: height 0.4s var(--ease-out); }
.drawer-sub ul { list-style: none; margin: 0; padding: 0 0 1rem; display: grid; gap: 0.1rem; }
.drawer-sub a {
  display: block; padding: 0.7rem 0 0.7rem 2.4rem;
  font-family: var(--font-ui); font-size: 1rem; font-weight: 500;
  color: var(--slate-200); text-decoration: none;
}
.drawer-sub a:hover { color: var(--brass-400); }

/* --- Service tiles -------------------------------------------------------- */
.svc-grid {
  display: grid; gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius); overflow: hidden;
}
.on-dark .svc-grid, .section--dark .svc-grid {
  background: var(--rule-dark); border-color: var(--rule-dark);
}
.svc-tile {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--bg-raised); text-decoration: none; color: inherit;
  transition: background 0.35s var(--ease), transform 0.5s var(--ease-out);
}
.svc-tile--dark { background: var(--ink-900); }
.svc-tile:hover { background: var(--ivory-100); }
.svc-tile--dark:hover { background: var(--ink-800); }
.svc-num {
  font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.06em;
  color: var(--accent-ctx);
}
.svc-tile h2, .svc-tile h3 { margin: 0.15rem 0 0; }
.svc-tile p { font-size: var(--t-base); color: var(--muted-ctx); margin: 0; }
.svc-tile .link { margin-top: auto; padding-top: 1rem; justify-self: start; font-size: 0.9375rem; }
.svc-tile .link::after { display: none; }

/* --- Service page: body + sticky aside ------------------------------------ */
.svc-layout { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.svc-aside { display: grid; gap: 1.25rem; }
.svc-card {
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem); background: var(--ivory-50);
}
.svc-card h2 { margin: 0 0 0.5rem; }
.svc-actions { display: grid; gap: 0.6rem; margin-top: 1rem; }
.svc-actions .btn { justify-content: center; padding-inline: 1rem; font-size: 0.9375rem; }
.svc-docs { list-style: none; margin: 1rem 0 1rem; padding: 0; display: grid; gap: 0.55rem; }
.svc-docs li {
  position: relative; padding-left: 1.4rem;
  font-size: var(--t-sm); color: var(--fg-muted); line-height: 1.5;
}
.svc-docs li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 0.6rem; height: 1px; background: var(--brass-500);
}

.footer-disclaimer { color: var(--slate-400); max-width: 46ch; }

@media (min-width: 640px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .svc-layout { grid-template-columns: minmax(0, 1fr) 20rem; }
  .svc-aside { position: sticky; top: calc(var(--header-h-compact) + 2rem); }
}
@media (max-width: 1023px) {
  .sub-menu { display: none; }
}

/* ==========================================================================
   19. GALLERY — masonry grid, filter tabs, lightbox
   ========================================================================== */

.gal-tabs {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.gal-tab {
  font: inherit; font-size: 0.9375rem; font-weight: 600;
  padding: 0.6rem 1.1rem; cursor: pointer;
  background: transparent; color: var(--fg-muted);
  border: 1px solid var(--rule); border-radius: 999px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.gal-tab:hover { color: var(--fg); border-color: var(--rule-strong); }
.gal-tab.is-active {
  background: var(--ink-900); border-color: var(--ink-900); color: var(--ivory-50);
}

/* Columns-based masonry: no gaps, no library, correct on every width. */
.gal-grid { column-gap: clamp(0.5rem, 1.2vw, 1rem); columns: 1; }
.gal-item {
  margin: 0 0 clamp(0.5rem, 1.2vw, 1rem);
  break-inside: avoid; -webkit-column-break-inside: avoid;
  display: block;
}
.gal-item[hidden] { display: none; }

.gal-open {
  display: block; position: relative; width: 100%; padding: 0; cursor: pointer;
  background: var(--ink-800); border: 0; border-radius: var(--radius);
  overflow: hidden; isolation: isolate;
}
.gal-open img {
  width: 100%; height: auto; display: block;
  transition: transform 0.7s var(--ease-out), filter 0.4s var(--ease);
  filter: saturate(0.9);
}
.gal-open::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 13, 20, 0.78) 100%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.gal-open:hover img, .gal-open:focus-visible img { transform: scale(1.04); filter: saturate(1); }
.gal-open:hover::after, .gal-open:focus-visible::after { opacity: 1; }

.gal-cap {
  position: absolute; inset: auto 0 0 0; z-index: 1;
  display: grid; gap: 0.15rem; padding: 1rem 1.1rem;
  text-align: left; color: var(--ivory-50);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.45s var(--ease-out);
}
.gal-open:hover .gal-cap, .gal-open:focus-visible .gal-cap { opacity: 1; transform: none; }
.gal-cap-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; }
.gal-cap-cat { font-size: var(--t-xs); letter-spacing: 0.05em; color: var(--brass-300); }

.gal-empty { color: var(--fg-muted); padding: 3rem 0; }

/* --- Lightbox ------------------------------------------------------------ */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute; inset: 0; background: rgba(8, 13, 20, 0.95);
  backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.35s var(--ease);
}
.lightbox.is-open .lightbox-backdrop { opacity: 1; }
.lightbox-inner {
  position: relative; z-index: 1;
  width: min(96vw, 1200px); max-height: 94svh;
  display: grid; place-items: center;
  opacity: 0; transform: scale(0.97); transition: opacity 0.35s var(--ease), transform 0.4s var(--ease-out);
}
.lightbox.is-open .lightbox-inner { opacity: 1; transform: none; }
.lb-figure { margin: 0; display: grid; gap: 0.9rem; justify-items: center; }
.lb-figure img {
  max-width: 100%; max-height: 80svh; width: auto; height: auto;
  border-radius: var(--radius); background: var(--ink-800);
}
.lb-cap {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0.5rem 1rem;
  color: var(--slate-200); font-size: var(--t-sm);
}
.lb-count { color: var(--slate-400); }
.lb-btn {
  position: absolute; z-index: 2; display: grid; place-items: center;
  width: 46px; height: 46px; cursor: pointer;
  background: rgba(244, 241, 234, 0.08); color: var(--ivory-50);
  border: 1px solid var(--rule-dark); border-radius: 50%;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.lb-btn:hover { background: rgba(244, 241, 234, 0.18); border-color: var(--brass-400); }
.lb-close { top: -4px; right: 0; }
.lb-prev { left: -4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: -4px; top: 50%; transform: translateY(-50%); }

@media (max-width: 767px) {
  .lb-close { top: 0; right: 0; }
  .lb-prev { left: 0; top: auto; bottom: -4px; transform: none; }
  .lb-next { right: 0; top: auto; bottom: -4px; transform: none; }
  .lb-figure { padding-bottom: 3.5rem; }
  .gal-cap { opacity: 1; transform: none; }
  .gal-open::after { opacity: 1; }
}

@media (min-width: 560px)  { .gal-grid { columns: 2; } }
@media (min-width: 900px)  { .gal-grid { columns: 3; } }
@media (min-width: 1280px) { .gal-grid { columns: 4; } }

/* ==========================================================================
   20. SERVICE PAGE HERO — photographic, one image per service
   ========================================================================== */

.page-hero--photo {
  padding-top: calc(var(--header-h) + clamp(4rem, 8vw, 7rem));
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
.page-hero-art { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.page-hero-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 42%;
  filter: saturate(0.82) contrast(1.06) brightness(1.08);
}
/* Darkest on the left where the headline sits, and again at the base. Light
   enough on the right that the picture itself still reads. */
.page-hero--photo::before {
  background:
    linear-gradient(90deg, rgba(8,13,20,0.92) 0%, rgba(8,13,20,0.72) 34%,
                    rgba(8,13,20,0.28) 68%, rgba(8,13,20,0.42) 100%),
    linear-gradient(180deg, rgba(8,13,20,0.62) 0%, rgba(8,13,20,0.10) 34%,
                    rgba(8,13,20,0.72) 100%),
    radial-gradient(80% 70% at 86% 12%, rgba(176,141,87,0.20), transparent 62%);
}
@media (max-width: 767px) {
  .page-hero--photo::before {
    background:
      linear-gradient(180deg, rgba(8,13,20,0.80) 0%, rgba(8,13,20,0.42) 28%,
                      rgba(8,13,20,0.76) 68%, rgba(8,13,20,0.94) 100%),
      radial-gradient(120% 55% at 50% 18%, rgba(176,141,87,0.16), transparent 72%);
  }
}

/* Gallery items keep their real proportions — the image decides its height. */
.gal-open img { aspect-ratio: auto; }

/* ==========================================================================
   21. SERVICE PAGE HERO (2-COLUMN WITH RELEVANT IMAGE CARD)
   ========================================================================== */

.svc-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (min-width: 960px) {
  .svc-hero-grid {
    grid-template-columns: 1.18fr 0.82fr;
    gap: 3.5rem;
  }
}

.svc-hero-text {
  max-width: 58ch;
}

.svc-num-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-300);
  background: rgba(176, 141, 87, 0.14);
  border: 1px solid rgba(176, 141, 87, 0.32);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1.25rem;
}

.svc-hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  margin-top: 1.75rem;
}

.svc-hero-visual {
  position: relative;
  width: 100%;
}

.svc-hero-frame {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(176, 141, 87, 0.35);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  background: var(--ink-800, #141c2b);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.svc-hero-frame:hover {
  transform: translateY(-3px);
  border-color: var(--brass-400);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 24px rgba(176, 141, 87, 0.22);
}

.svc-hero-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .svc-hero-img {
    height: 350px;
  }
}

@media (min-width: 1200px) {
  .svc-hero-img {
    height: 380px;
  }
}

.svc-hero-cap {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 13, 20, 0.92) 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-ui);
  font-size: var(--t-xs);
  color: var(--ivory-100);
}

.svc-hero-tag {
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brass-300);
}

.svc-hero-subtag {
  color: var(--slate-300);
  font-size: 0.7rem;
}

/* ==========================================================================
   22. HOMEPAGE GALLERY SLIDER
   ========================================================================== */

.section--gallery-slider {
  background: var(--ink-900);
  color: var(--ivory-50);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  position: relative;
  overflow: hidden;
}

.section--gallery-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, rgba(176, 141, 87, 0.12), transparent 70%);
  pointer-events: none;
}

.gal-slider-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 768px) {
  .gal-slider-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.gal-slider-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.gal-slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(176, 141, 87, 0.35);
  color: var(--ivory-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.gal-slider-btn:hover {
  background: var(--brass-500);
  border-color: var(--brass-500);
  color: var(--ink-950, #080d14);
  transform: translateY(-2px);
}

.gal-slider-btn:active {
  transform: translateY(0);
}

.gal-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.5rem 0 1rem;
}

.gal-slider-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}

.gal-slider-track::-webkit-scrollbar {
  display: none;
}

.gal-slide {
  flex: 0 0 85%;
  scroll-snap-align: start;
  position: relative;
}

@media (min-width: 640px) {
  .gal-slide {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

@media (min-width: 1024px) {
  .gal-slide {
    flex: 0 0 calc(33.333% - 1rem);
  }
}

.gal-slide-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(176, 141, 87, 0.25);
  background: var(--ink-800, #141c2b);
  aspect-ratio: 4 / 3;
  display: block;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.gal-slide-card:hover {
  transform: translateY(-4px);
  border-color: var(--brass-400);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 18px rgba(176, 141, 87, 0.25);
}

.gal-slide-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gal-slide-card:hover img {
  transform: scale(1.05);
}

.gal-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 13, 20, 0.92) 100%);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.gal-slide-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brass-300);
  margin-bottom: 0.25rem;
}

.gal-slide-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ivory-50);
  line-height: 1.3;
  margin: 0;
}
