/* =============================================================
   Chen Mediation — dark luxury design system
   "Resolution Through Understanding"
   Private advisory aesthetic: near-black, gold, Playfair + Inter.
   ============================================================= */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/playfair-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces (dark, layered for depth) */
  --bg:            #111315;  /* primary background */
  --bg-2:          #16191C;  /* subtle alt band */
  --bg-3:          #1B1E22;  /* reading / secondary */
  --panel:         #23272D;  /* raised panel / card */
  --panel-2:       #282D34;  /* hovered / nested panel */

  /* Ink */
  --ink:           #F5F5F2;  /* primary text */
  --ink-2:         #D7D7D1;  /* secondary text */
  --ink-3:         #A2A6AB;  /* muted / meta */

  /* Gold */
  --gold:          #BFA06A;  /* accent gold */
  --gold-2:        #8A7651;  /* muted gold */
  --gold-soft:     rgba(191,160,106,0.14);
  --gold-line:     rgba(191,160,106,0.32);

  /* Lines */
  --line:          #31363D;
  --line-soft:     rgba(255,255,255,0.07);

  /* Typography */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Rhythm */
  --wrap:   1200px;
  --narrow: 760px;
  --section-y: clamp(72px, 9vw, 128px);
  --radius: 14px;
  --radius-sm: 10px;

  --shadow: 0 24px 60px -28px rgba(0,0,0,0.75);
  --shadow-soft: 0 18px 44px -30px rgba(0,0,0,0.8);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-feature-settings: "kern" 1, "liga" 1, "cv05" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.12rem; letter-spacing: 0; }

p { margin: 0 0 1.15em; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: #d8bd8c; }
strong { color: var(--ink); font-weight: 600; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.2em; }
li { margin: 0.35em 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: var(--gold); color: #14110b; }

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--gold); color: #14110b;
  padding: 10px 18px; border-radius: 8px; font-weight: 600;
  z-index: 200; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }
.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;
}

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.narrow { max-width: var(--narrow); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--bg-2); }
.section--deep { background: #0C0E0F; }
.section--panel { background: var(--bg-3); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
  display: inline-flex; align-items: center; gap: 0.7em;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--gold-line);
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: ""; width: 26px; height: 1px; background: var(--gold-line);
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.65;
  color: var(--ink-2);
}
.section-head { max-width: 720px; }
.section-head--center { max-width: 760px; margin-inline: auto; text-align: center; }
.gold { color: var(--gold); }
.serif-accent { font-family: var(--serif); font-style: italic; color: var(--gold); font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.02em; line-height: 1;
  padding: 1.05em 1.9em; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(180deg, #cbac74 0%, var(--gold) 55%, var(--gold-2) 130%);
  color: #14110b;
  box-shadow: 0 12px 30px -14px rgba(191,160,106,0.6);
}
.btn--primary:hover { color: #14110b; box-shadow: 0 18px 40px -14px rgba(191,160,106,0.7); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: var(--gold-line);
}
.btn--ghost:hover { color: var(--gold); border-color: var(--gold); background: var(--gold-soft); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.btn-row--center { justify-content: center; }

.textlink {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 600; letter-spacing: 0.01em;
}
.textlink svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.textlink:hover svg { transform: translateX(4px); }

/* ============================================================
   HEADER + NAV + MEGA MENU
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(17,19,21,0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(13,15,16,0.92);
  border-bottom-color: var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; height: 78px;
}
.brand { display: inline-flex; align-items: center; gap: 0.72rem; flex-shrink: 0; }
.brand:hover { color: inherit; }
.brand-mark { height: 54px; width: 54px; display: block; flex-shrink: 0; }
.brand-word { display: flex; flex-direction: column; line-height: 0.98; }
.bw-name { font-family: var(--serif); font-size: 1.34rem; font-weight: 500; color: var(--gold); letter-spacing: 0.01em; }
.bw-sub { font-family: var(--serif); font-size: 1.34rem; font-weight: 500; color: var(--ink); letter-spacing: 0.01em; margin-top: 1px; }
.brand--footer .brand-mark { height: 60px; width: 60px; }
.brand--footer .bw-name, .brand--footer .bw-sub { font-size: 1.55rem; }
.footer-brand .brand { margin-bottom: 1.2rem; }

.nav-menu { display: flex; align-items: center; gap: 0.35rem; margin: 0; padding: 0; list-style: none; height: 100%; }
.nav-item { position: static; height: 100%; display: flex; align-items: center; }
.nav-link {
  font-family: var(--sans); font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.01em; color: var(--ink-2);
  padding: 0.6rem 1.05rem; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 0.4em; height: 40px;
  background: transparent; border: 0; cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-link:hover, .nav-item.is-open .nav-link, .nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--gold); }
.nav-caret { width: 10px; height: 10px; opacity: 0.6; transition: transform 0.3s var(--ease); }
.nav-item.is-open .nav-caret { transform: rotate(180deg); }

.nav-cta { flex-shrink: 0; }
.nav-cta .btn { padding: 0.78em 1.4em; font-size: 0.88rem; }

/* Mega menu panel */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background-color: #14181B;
  background-image: linear-gradient(180deg, #16191C 0%, #121518 100%);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  z-index: 90;
}
.nav-item.is-open .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-inner {
  display: grid; grid-template-columns: 1.05fr 2.4fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: 2.4rem 2.6rem;
}
.mega-feature {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.6rem; isolation: isolate; border: 1px solid var(--line);
  background: var(--panel);
}
.mega-feature::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  background-image: var(--mega-img);
  filter: grayscale(0.35) contrast(1.02);
}
.mega-feature::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,14,15,0.35) 0%, rgba(12,14,15,0.92) 92%);
}
/* Portrait feature (About): show her face in colour, gradient only for text legibility */
.mega-feature--face::before { filter: none; background-position: 50% 20%; }
.mega-feature--face::after { background: linear-gradient(180deg, rgba(12,14,15,0.12) 0%, rgba(12,14,15,0.55) 55%, rgba(12,14,15,0.94) 100%); }
.mega-feature .eyebrow { margin-bottom: 0.5rem; }
.mega-feature h3 { font-size: 1.4rem; margin: 0 0 0.3rem; }
.mega-feature p { font-size: 0.9rem; color: var(--ink-2); margin: 0; }
/* Follow the number of groups, do not assume two. Hard-coding 2 meant the
   Services menu, which has three groups, wrapped its third onto a second row.
   That doubled the grid to 634px when its tallest column was 384, and the
   feature image stretches to match, so the whole panel measured 1120x714 and
   ended 63px PAST THE FOLD at 1280x720 (2026-08-08). A menu that gains a group
   must not silently gain a row. */
.mega-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.2rem 2rem; align-content: start; }
.mega-col h4 {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2);
  margin: 0.4rem 0 0.6rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line-soft);
}
.mega-link {
  display: block; padding: 0.62rem 0.7rem; border-radius: 9px; margin: 0 -0.7rem;
  color: var(--ink-2); transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.mega-link:hover { background: var(--gold-soft); color: var(--ink); }
.mega-link .ml-title { font-weight: 600; color: var(--ink); font-size: 0.95rem; display: block; }
.mega-link:hover .ml-title { color: var(--gold); }
.mega-link .ml-sub { font-size: 0.8rem; color: var(--ink-3); display: block; margin-top: 0.1rem; }

/* Header burger (mobile) */
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  border-radius: 10px; background: transparent; cursor: pointer;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-toggle span { position: relative; width: 20px; height: 2px; background: var(--ink); display: block; transition: 0.25s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); transition: 0.25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- Mobile drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(6,7,8,0.6);
  backdrop-filter: blur(2px); opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s; z-index: 150;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(88vw, 400px);
  background: #131619; border-left: 1px solid var(--line);
  transform: translateX(100%); visibility: hidden;
  transition: transform 0.34s var(--ease), visibility 0.34s var(--ease);
  z-index: 160; display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #131619; }
.drawer-head img, .drawer-head svg { height: 34px; width: auto; }
.drawer-head .bw-name { font-size: 1.3rem; }
.drawer-close { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--ink); font-size: 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.drawer-body { padding: 0.8rem 1.4rem 2rem; }
.drawer-acc { border-bottom: 1px solid var(--line-soft); }
.drawer-acc > button, .drawer > .drawer-body > a.drawer-top {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: 1.05rem; color: var(--ink);
  padding: 1.05rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.drawer-acc-caret { width: 14px; height: 14px; color: var(--gold); transition: transform 0.28s var(--ease); flex-shrink: 0; }
.drawer-acc.is-open .drawer-acc-caret { transform: rotate(180deg); }
.drawer-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s var(--ease); }
.drawer-acc.is-open .drawer-panel { grid-template-rows: 1fr; }
.drawer-panel-inner { overflow: hidden; }
.drawer-panel a { display: block; padding: 0.55rem 0; color: var(--ink-2); font-size: 0.95rem; }
.drawer-panel a:hover { color: var(--gold); }
.drawer-panel .dp-group { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2); margin: 0.8rem 0 0.2rem; }
.drawer-cta { padding: 1.4rem; margin-top: auto; border-top: 1px solid var(--line); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: var(--bg);
  padding-block: clamp(20px, 3vw, 44px) clamp(44px, 6vw, 80px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1100px 620px at 76% 18%, rgba(191,160,106,0.16), transparent 62%),
    radial-gradient(760px 520px at 8% 96%, rgba(191,160,106,0.05), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero-copy { max-width: 640px; }
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.7rem); margin-bottom: 0.35em; }
.hero h1 .serif-accent { display: block; }
.hero-sub { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--ink-2); max-width: 42ch; margin-bottom: 1.7rem; }
.hero-trust {
  margin-top: 1.9rem; display: flex; flex-wrap: wrap; gap: 1.2rem 2rem;
  padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.hero-trust-item { display: flex; flex-direction: column; gap: 0.15rem; }
.hero-trust-item .ht-num { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); line-height: 1; }
.hero-trust-item .ht-label { font-size: 0.8rem; color: var(--ink-3); letter-spacing: 0.02em; }

/* Editorial portrait: offset gold frame + corner ticks (echo the seal), crisp corners */
.hero-figure {
  position: relative; margin: 22px 22px 0 auto; width: min(100%, 460px);
}
.hero-media {
  position: relative; z-index: 1; aspect-ratio: 4 / 4.4; overflow: hidden;
  border: 1px solid var(--line); border-radius: 2px; box-shadow: var(--shadow);
}
/* Full-width image, clipped by the box (no object-fit, which glitches here) */
.hero-img { display: block; width: 100%; height: auto; transform: translateY(-9%); }
.hf-frame {
  position: absolute; inset: -22px -22px 22px 22px; z-index: 0;
  border: 1px solid var(--gold-line); pointer-events: none;
}
.hf-tick { position: absolute; width: 20px; height: 20px; z-index: 3; pointer-events: none; }
.hf-tick--tl { top: -22px; left: 22px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.hf-tick--br { right: -22px; bottom: 22px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.hf-eyebrow {
  position: absolute; z-index: 3; top: 44%; left: -46px; transform: rotate(-90deg); transform-origin: left center;
  font-family: var(--sans); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold-2); white-space: nowrap;
}
.hero-figcard {
  position: absolute; left: 16px; bottom: 16px; right: 16px; z-index: 2;
  background: rgba(14,16,17,0.78); backdrop-filter: blur(10px);
  border: 1px solid var(--gold-line); border-left: 2px solid var(--gold); border-radius: 2px;
  padding: 0.9rem 1.2rem; display: flex; align-items: center; gap: 0.9rem;
}
.hero-figcard .hf-mono {
  width: 30px; height: 30px; flex-shrink: 0; border: 1px solid var(--gold-line); border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 34%, var(--gold) 35%, var(--gold) 41%, transparent 42%),
    conic-gradient(from -50deg at 50% 50%, var(--gold) 0 260deg, transparent 260deg 360deg);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 30%, #000 31%); mask: radial-gradient(circle at 50% 50%, transparent 30%, #000 31%);
  display: none;
}
.hero-figcard .hf-name { font-family: var(--serif); color: var(--ink); font-size: 1.08rem; line-height: 1.1; }
.hero-figcard .hf-role { font-size: 0.75rem; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px; }

/* ============================================================
   FIGFRAME — reusable editorial framed photo (site-wide motif)
   ============================================================ */
.figframe { position: relative; width: 100%; max-width: 460px; margin: 22px auto 22px; }
.figframe--right { margin-right: 22px; margin-left: auto; }
.figframe--left { margin-left: 22px; margin-right: auto; }
.ff-media { position: relative; z-index: 1; aspect-ratio: 4 / 4.4; overflow: hidden; border: 1px solid var(--line); border-radius: 2px; box-shadow: var(--shadow); }
.ff-img { display: block; width: 100%; height: auto; transform: translateY(-6%); }
.ff-frame { position: absolute; inset: -18px -18px 18px 18px; z-index: 0; border: 1px solid var(--gold-line); pointer-events: none; }
.figframe--left .ff-frame { inset: -18px 18px 18px -18px; }
.ff-tick { position: absolute; width: 18px; height: 18px; z-index: 3; pointer-events: none; }
.ff-tick--tl { top: -18px; left: 18px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.ff-tick--br { right: -18px; bottom: 18px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.ff-eyebrow { position: absolute; z-index: 3; top: 44%; left: -42px; transform: rotate(-90deg); transform-origin: left center; font-family: var(--sans); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-2); white-space: nowrap; }
.ff-cap { position: absolute; left: 14px; bottom: 14px; right: 14px; z-index: 2; background: rgba(14,16,17,0.78); backdrop-filter: blur(10px); border: 1px solid var(--gold-line); border-left: 2px solid var(--gold); border-radius: 2px; padding: 0.8rem 1.1rem; font-size: 0.9rem; color: var(--ink); }

/* ============================================================
   SECTION BACKGROUNDS — no flat sections
   ============================================================ */
.section--photo { position: relative; overflow: hidden; }
.section--photo::before { content: ""; position: absolute; inset: 0; z-index: 0; background-image: var(--sec-img); background-size: cover; background-position: center; filter: grayscale(0.25) contrast(1.02); }
.section--photo::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(12,13,14,0.9) 0%, rgba(12,13,14,0.82) 50%, rgba(12,13,14,0.92) 100%); }
.section--photo > .wrap { position: relative; z-index: 1; }
/* Recurring gold corner-tick motif for section heads (ties sections together) */
.section-head--ticked { position: relative; padding-top: 22px; }
.section-head--ticked::before { content: ""; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.hairline-band { height: 1px; background: linear-gradient(90deg, transparent, var(--gold-line), transparent); margin: 0; border: 0; }

/* ============================================================
   PAGE HERO (interior)
   ============================================================ */
.page-hero { position: relative; padding-block: clamp(40px, 6vw, 72px) clamp(44px, 6vw, 76px); background: var(--bg); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 460px at 82% 6%, rgba(191,160,106,0.12), transparent 60%);
}
.page-hero .wrap { position: relative; }
/* Photographic interior hero: treated image + left-weighted scrim for legible copy */
.page-hero--img { padding-block: clamp(72px, 9vw, 130px); min-height: 44vh; display: flex; align-items: center; }
.page-hero--img::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--hero-img); background-size: cover; background-position: center;
  filter: grayscale(0.08) contrast(1.05) saturate(1.05);
}
.page-hero--img::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(90deg, rgba(11,13,14,0.92) 0%, rgba(11,13,14,0.62) 46%, rgba(11,13,14,0.18) 100%),
    linear-gradient(180deg, rgba(17,19,21,0.2) 0%, rgba(17,19,21,0.45) 100%);
}
.page-hero--img .wrap { width: 100%; }
.page-hero--img .wrap { position: relative; z-index: 1; }
.page-hero--img .eyebrow { color: var(--gold); }
.page-hero h1 { max-width: 20ch; margin-bottom: 0.35em; }
.page-hero .lede { max-width: 60ch; }
.page-hero .btn-row { margin-top: 1.8rem; }
.breadcrumb { margin-bottom: 1.6rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; font-size: 0.82rem; color: var(--ink-3); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: var(--gold-2); }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--gold); }

/* ============================================================
   CARDS + GRIDS
   ============================================================ */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.9rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--gold-line); background: var(--panel-2); }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: 1.28rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; color: var(--ink-2); margin-bottom: 1rem; }
.card .textlink { font-size: 0.9rem; }
.card-num { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); display: block; margin-bottom: 0.6rem; }

/* Icon chip (line, no clichés) */
.chip-ico {
  width: 46px; height: 46px; border-radius: 12px; display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 1.1rem;
  background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold);
}
.chip-ico svg { width: 22px; height: 22px; }

/* Service card with image */
.svc-card { padding: 0; display: flex; flex-direction: column; }
.svc-card .svc-media { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; position: relative; }
.svc-card .svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); filter: grayscale(0.3); }
.svc-card:hover .svc-media img { transform: scale(1.05); filter: grayscale(0.1); }
.svc-card .svc-body { padding: 1.6rem 1.7rem 1.9rem; display: flex; flex-direction: column; flex: 1; }
.svc-card .svc-body h3 { font-size: 1.22rem; }
.svc-card .textlink { margin-top: auto; }

/* Value / feature row */
.feature { display: flex; gap: 1.1rem; align-items: flex-start; }
.feature .chip-ico { margin-bottom: 0; flex-shrink: 0; }
.feature h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.feature p { font-size: 0.92rem; margin: 0; color: var(--ink-2); }

/* Process steps */
.steps { counter-reset: step; display: grid; gap: 1.3rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; align-items: start; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line-soft); }
.step:last-child { border-bottom: 0; padding-bottom: 0; }
.step-num {
  counter-increment: step; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--gold-line); color: var(--gold); font-family: var(--serif);
  font-size: 1.3rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--gold-soft);
}
.step-num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.step p { margin: 0; font-size: 0.95rem; color: var(--ink-2); }

/* ============================================================
   SPLIT / ABOUT
   ============================================================ */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--rev { grid-template-columns: 1.1fr 0.9fr; }
.split-figure { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-soft); aspect-ratio: 4/5; }
.split-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.credential-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.9rem; }
.credential-list li { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.96rem; color: var(--ink-2); margin: 0; }
.credential-list svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }

/* ============================================================
   PROSE (long-form reading — warm graphite panel)
   ============================================================ */
.prose { max-width: 72ch; color: var(--ink-2); font-size: 1.07rem; line-height: 1.82; }
.prose > * + * { margin-top: 1.35em; }
/* Editorial lead: first paragraph larger + gold drop cap */
.prose > p:first-child { font-size: 1.24rem; line-height: 1.62; color: var(--ink); }
.prose > p:first-child::first-letter { font-family: var(--serif); font-weight: 500; font-size: 3.6rem; line-height: 0.72; float: left; margin: 0.06em 0.14em 0 0; color: var(--gold); }
@media (prefers-reduced-motion: no-preference) { }
.prose h2 { font-size: clamp(1.55rem, 2.4vw, 2rem); margin-top: 2.2em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.8em; color: var(--ink); }
.prose p { margin: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.5em 0; }
.prose li::marker { color: var(--gold); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold-line); }
.prose strong { color: var(--ink); }
.prose blockquote {
  margin: 1.6em 0; padding: 1.2rem 1.6rem; border-left: 2px solid var(--gold);
  background: var(--gold-soft); border-radius: 0 10px 10px 0;
  font-family: var(--serif); font-size: 1.2rem; font-style: italic; color: var(--ink);
}
.prose blockquote p { margin: 0; }

/* Answer box (AI-extractable) */
.answer-box {
  background: var(--panel); border: 1px solid var(--gold-line); border-radius: var(--radius);
  padding: 1.6rem 1.8rem; margin: 1.8em 0;
}
.answer-box .ab-label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 0.6rem; }
.answer-box p:last-child { margin-bottom: 0; }
.plain-english {
  background: var(--bg-2); border: 1px solid var(--line); border-left: 2px solid var(--gold-2);
  border-radius: 0 10px 10px 0; padding: 1.3rem 1.6rem; margin: 1.6em 0;
}
.plain-english .pe-label { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.05rem; margin-bottom: 0.4rem; }
.plain-english p:last-child { margin-bottom: 0; font-size: 0.98rem; }

/* Table of contents / meta */
.article-meta { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; font-size: 0.82rem; color: var(--ink-3); margin-bottom: 1.6rem; }
.article-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.article-meta .gold { color: var(--gold); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: 1.08rem; color: var(--ink);
  padding: 1.4rem 3rem 1.4rem 0; position: relative; display: flex; gap: 1rem;
}
.faq-q::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px;
  margin-top: -6px; background: no-repeat center/contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BFA06A' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  transition: transform 0.3s var(--ease);
}
.faq-item.is-open .faq-q::after { transform: rotate(180deg); }
.faq-q .faq-mark { color: var(--gold); font-family: var(--serif); flex-shrink: 0; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.32s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p { color: var(--ink-2); padding-bottom: 1.4rem; margin: 0; font-size: 0.98rem; }
.faq-a-inner p:first-child { padding-top: 0.2rem; }

/* ============================================================
   BAND (gold CTA moment)
   ============================================================ */
.band { position: relative; overflow: hidden; background: #0C0E0F; text-align: center; }
.band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(760px 400px at 50% 0%, rgba(191,160,106,0.16), transparent 62%);
}
.band .wrap { position: relative; }
.band h2 { max-width: 18ch; margin-inline: auto; }
.band .lede { max-width: 54ch; margin-inline: auto; margin-bottom: 2rem; }
.band-note { margin-top: 1.4rem; font-size: 0.85rem; color: var(--ink-3); }

/* ============================================================
   LOCATIONS
   ============================================================ */
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.loc-pill {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.4rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.loc-pill:hover { border-color: var(--gold-line); background: var(--panel-2); transform: translateY(-2px); }
.loc-pill .lp-name { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); }
.loc-pill .lp-sub { font-size: 0.78rem; color: var(--ink-3); }
.loc-pill svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.6rem); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-2); margin-bottom: 0.5rem; }
.field label .req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); font-family: var(--sans); font-size: 0.98rem; padding: 0.85rem 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: 0.8rem; color: var(--ink-3); margin-top: 1rem; }
/* Contact page: form embedded in the hero, above the fold (engine standard) */
.contact-hero { padding-block: clamp(20px, 3vw, 44px) clamp(36px, 5vw, 64px); }
.contact-hero.page-hero--img { min-height: 0; display: block; padding-block: clamp(24px, 3.5vw, 48px) clamp(40px, 5vw, 68px); }
.contact-hero .breadcrumb { margin-bottom: 1.2rem; }
.contact-grid { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: clamp(2rem, 4vw, 3.4rem); align-items: start; }
.contact-intro h1 { font-size: clamp(2rem, 3.4vw, 3rem); margin-bottom: 0.35em; }
.contact-intro .lede { font-size: 1.08rem; margin-bottom: 1.8rem; }
.contact-form { position: relative; z-index: 1; }
.contact-form .field { margin-bottom: 0.9rem; }
.contact-form textarea { min-height: 104px; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-intro .contact-aside { display: none; }
}
.contact-aside { display: grid; gap: 1.15rem; align-content: start; margin-top: 1.6rem; }
.contact-line { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-line svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.contact-line .cl-label { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.contact-line .cl-val { color: var(--ink); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #0C0E0F; border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 88px); }
/* Centered, stacked footer */
.footer-center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; }
/* Stacked, centered footer logo: mark on top, wordmark centered below */
.footer-center .brand--footer { margin: 0; flex-direction: column; align-items: center; gap: 0.55rem; }
.footer-center .brand--footer .brand-word { align-items: center; text-align: center; }
.footer-center .brand--footer .brand-mark { height: 64px; width: 64px; }
.footer-tag { color: var(--ink-3); font-size: 0.95rem; line-height: 1.6; max-width: 46ch; margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 2rem; padding-top: 0.4rem; border-top: 1px solid var(--line-soft); width: 100%; max-width: 640px; }
.footer-nav a { font-family: var(--sans); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em; color: var(--ink-2); padding-top: 1.2rem; }
.footer-nav a:hover { color: var(--gold); }
.footer-center .footer-social { justify-content: center; margin: 0; }
.footer-meta { color: var(--ink-3); font-size: 0.85rem; margin: 0; }
.footer-center .footer-meta a { color: var(--ink-2); }
.footer-center .footer-meta a:hover { color: var(--gold); }
.footer-center .footer-disclaimer { border-top: 1px solid var(--line-soft); padding: 1.8rem 0 0; margin: 0.4rem 0 0; max-width: 84ch; text-align: center; }
.footer-center .footer-bottom { flex-direction: column; align-items: center; justify-content: center; gap: 0.7rem; border-top: 0; padding: 0.4rem 0 1.2rem; width: 100%; }
.footer-center .fb-links { justify-content: center; }
.footer-center .digilu-trust-bar { width: 100%; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand img, .footer-brand svg { height: 42px; margin-bottom: 1.2rem; }
.footer-brand p { font-size: 0.92rem; color: var(--ink-3); max-width: 34ch; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.3rem; }
.footer-social a.social-link {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 9px; color: var(--ink-3);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.footer-social a.social-link:hover { border-color: var(--gold); color: var(--gold); }
.footer-social a.social-link svg { width: 18px; height: 18px; }
.footer-col h4 { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 0.55rem 0; }
.footer-col a { color: var(--ink-2); font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold); }
.footer-contact { font-size: 0.9rem; color: var(--ink-3); line-height: 1.9; }
.footer-contact a { color: var(--ink-2); }
.footer-disclaimer { font-size: 0.8rem; color: var(--ink-3); line-height: 1.7; border-top: 1px solid var(--line-soft); padding: 1.8rem 0; max-width: 100%; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; justify-content: space-between; align-items: center; padding: 1.4rem 0; border-top: 1px solid var(--line-soft); font-size: 0.82rem; color: var(--ink-3); }
.footer-bottom a { color: var(--ink-3); }
.footer-bottom a:hover { color: var(--gold); }
.footer-bottom .fb-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* Digilu trust bar (mandatory last row) */
.digilu-trust-bar { border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; padding: 22px 16px; }

/* ============================================================
   REVEAL animation
   ============================================================ */
/* Progressive enhancement: reveals only hide when JS is active, so content
   is never lost if JS fails or is disabled. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
.js .reveal[data-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .card:hover, .loc-pill:hover { transform: none; }
  * { scroll-behavior: auto !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .mega-inner { grid-template-columns: 1fr; }
  .mega-feature { min-height: 180px; }
}
@media (max-width: 900px) {
  .nav-menu, .nav-cta.desk { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { width: min(100%, 420px); margin: 14px auto 8px; order: -1; }
  .hero-media { aspect-ratio: 4 / 3.9; }
  .hf-frame { inset: -12px -12px 12px 12px; }
  .hf-tick--tl { top: -12px; left: 12px; } .hf-tick--br { right: -12px; bottom: 12px; }
  .hf-eyebrow { display: none; }
  .hero--about .breadcrumb { margin-bottom: 1rem; }
  .split, .split--rev { grid-template-columns: 1fr; }
  .split-figure { order: -1; max-width: 420px; aspect-ratio: 4/3.6; }
  .split--rev .split-figure { order: -1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .loc-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  /* figframe--left sets margin-left:22 + width:100%, pushing its right edge (and the
     decorative ff-tick that sits 18px OUTSIDE that edge) past a 390px viewport.
     Center it and leave ~22px gutters so the corner ticks stay on-screen. */
  .figframe, .figframe--left, .figframe--right { max-width: calc(100% - 44px); margin-left: auto; margin-right: auto; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .loc-grid { grid-template-columns: 1fr; }
  .nav { height: 66px; }
  .btn { width: 100%; }
  .btn-row .btn { width: 100%; }
  .hero-trust { gap: 1.2rem 1.6rem; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
