/* =========================================================
   FIRST 1 MERIDIAN LEGAL — Stylesheet
   Palette: Slate Blue + Warm Ivory + Copper (restrained)
   ========================================================= */
/* Self-hosted fonts (SIL Open Font License) */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Serif Devanagari"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/noto-serif-devanagari-devanagari-500-normal.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }

:root {
  --slate: #193832;
  --slate-deep: #193832;
  --ivory: #F5F3EE;
  --copper: #C6A15B;
  --charcoal: #12291F;
  --white: #FFFFFF;
  --text: #43524C;
  --border: #E8D7B4;

  --ivory-muted: rgba(245, 243, 238, .72);
  --ivory-faint: rgba(245, 243, 238, .16);
  --error: #9B3D2E;

  --serif: "Cormorant Garamond", "Noto Serif Devanagari", "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Noto Serif Devanagari", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --section: clamp(72px, 9vw, 120px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { font-variant-numeric: lining-nums; font-family: var(--serif); font-weight: 500; color: var(--slate); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); }
address { font-style: normal; }
::selection { background: var(--slate); color: var(--ivory); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--white); color: var(--slate-deep); padding: 10px 16px; font-weight: 600; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

/* ---------- Labels, dividers, links ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--slate);
  margin: 0 0 22px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--copper); flex: none; }
.on-dark .eyebrow, .eyebrow.light { color: var(--ivory-muted); }
.rule { width: 56px; height: 1px; background: var(--copper); border: 0; margin: 28px 0; }
.lead { font-size: 1.12rem; line-height: 1.75; }
.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--slate); text-decoration: none; padding-bottom: 4px;
  border-bottom: 1px solid var(--border); transition: border-color .3s var(--ease), gap .3s var(--ease);
}
.text-link .icon { width: 16px; height: 16px; color: var(--copper); }
.text-link:hover { border-color: var(--copper); gap: 14px; }
.on-dark .text-link { color: var(--ivory); border-color: var(--ivory-faint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px;
  font-family: var(--sans); font-size: .9rem; font-weight: 600; letter-spacing: .06em;
  text-decoration: none; border: 1px solid transparent; border-radius: 1px;
  cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-copper { background: var(--copper); color: var(--white); border-color: var(--copper); }
.btn-copper:hover { background: #a56b47; border-color: #a56b47; }
.btn-outline-light { color: var(--ivory); border-color: rgba(245,243,238,.45); background: transparent; }
.btn-outline-light:hover { border-color: var(--copper); color: var(--white); }
.btn-outline { color: var(--slate); border-color: var(--slate); background: transparent; }
.btn-outline:hover { background: var(--slate); color: var(--ivory); }
.btn-ghost-dark { color: var(--slate); border-color: var(--border); background: transparent; }
.btn-ghost-dark:hover { border-color: var(--slate); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .8rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--slate-deep);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid rgba(245,243,238,.08);
}
.has-hero .site-header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; }
.has-hero .site-header.scrolled, .site-header.scrolled { background: var(--slate-deep); border-bottom-color: rgba(245,243,238,.08); box-shadow: 0 10px 30px -18px rgba(0,0,0,.6); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.wordmark { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ivory); }
.wordmark-mark { width: 40px; height: 40px; flex: none; color: var(--ivory); }
.wordmark-text { display: flex; flex-direction: column; line-height: 1; }
.wm-top { font-variant-numeric: lining-nums; font-family: var(--serif); font-size: 1.32rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.wm-bottom { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-family: var(--sans); font-size: .62rem; font-weight: 500; letter-spacing: .5em; text-transform: uppercase; color: var(--ivory-muted); }
.wm-bottom::before, .wm-bottom::after { content: ""; height: 1px; flex: 1; background: var(--copper); opacity: .85; }
.wm-bottom::after { margin-right: .5em; }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav > ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a {
  display: block; padding: 10px 0; text-decoration: none; color: var(--ivory);
  font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  position: relative;
}
.site-nav > ul > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.site-nav > ul > li > a:hover::after, .site-nav > ul > li > a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav .sub {
  position: absolute; top: 100%; left: -24px; min-width: 330px; list-style: none; margin: 0; padding: 14px 0;
  background: var(--white); border-top: 2px solid var(--copper); box-shadow: 0 24px 50px -20px rgba(18,41,31,.45);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.site-nav .has-sub:hover .sub, .site-nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.site-nav .sub a { display: block; padding: 9px 24px; color: var(--slate); text-decoration: none; font-size: .9rem; transition: color .2s, padding .2s; }
.site-nav .sub a:hover { color: var(--copper); padding-left: 28px; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; height: 1.5px; background: var(--ivory); margin: 5px 0; transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; background: var(--slate-deep); color: var(--ivory);
  min-height: min(100vh, 940px); display: flex; align-items: stretch; overflow: hidden;
  padding-top: var(--header-h);
}
.hero::before { /* faint architectural grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(245,243,238,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(245,243,238,.035) 1px, transparent 1px);
  background-size: 96px 96px; mask-image: linear-gradient(90deg, transparent, #000 40%, #000);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: 64px; align-items: center; width: 100%; padding-top: 48px; padding-bottom: 96px; }
.hero h1 { color: var(--ivory); margin-bottom: 28px; font-size: clamp(2.4rem, 4.5vw, 4rem); }
.hero h1 em { font-style: italic; color: var(--ivory-muted); display: block; }
.hero .eyebrow { color: var(--ivory-muted); }
.hero p.lead { color: rgba(245,243,238,.8); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.hero-art { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: center; }
.hero-art .frame { position: relative; width: 100%; max-width: 420px; aspect-ratio: 600 / 760; }
.hero-art .frame::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; border: 1px solid rgba(183,121,83,.45); pointer-events: none; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art.has-photo .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(38,55,70,.15), rgba(38,55,70,.55)); }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--ivory-faint); }
.hero-foot .container { display: flex; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(245,243,238,.6); }
.hero-foot .practices span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; background: var(--copper); border-radius: 50%; vertical-align: middle; margin-right: 18px; }
.hero-foot .practices { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; background: var(--slate-deep); color: var(--ivory); padding: clamp(64px, 8vw, 110px) 0 clamp(56px, 7vw, 90px); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -40px; width: 520px; height: 640px; background: url("../img/art/hero-facade.svg") no-repeat center / contain; opacity: .35; pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--ivory); max-width: 15em; font-size: clamp(2.3rem, 4.6vw, 3.8rem); }
.page-hero p { color: rgba(245,243,238,.78); max-width: 40em; font-size: 1.08rem; margin: 0; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 28px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(245,243,238,.6); }
.breadcrumb a { color: rgba(245,243,238,.85); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 4px; }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--copper); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.bg-ivory { background: var(--ivory); }
.bg-white { background: var(--white); }
.bg-slate { background: var(--slate); color: var(--ivory); }
.bg-deep { background: var(--slate-deep); color: var(--ivory); }
.bg-slate h2, .bg-slate h3, .bg-deep h2, .bg-deep h3 { color: var(--ivory); }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { font-size: 1.08rem; margin: 0; }

/* Two-column intro */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(48px, 7vw, 104px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-media { position: relative; }
.split-media .media { aspect-ratio: 560 / 640; overflow: hidden; background: #F8EACD; }
.split-media .media img { width: 100%; height: 100%; object-fit: cover; }
.split-media::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--border); z-index: -1; }
.split-media .caption { position: absolute; left: -1px; bottom: 32px; background: var(--slate-deep); color: var(--ivory); padding: 18px 26px; font-family: var(--serif); font-size: 1.15rem; font-style: italic; max-width: 80%; }
.split-media .caption small { display: block; font-family: var(--sans); font-style: normal; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ivory-muted); margin-bottom: 4px; }
.prose p { max-width: 38em; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--copper); }

/* Practice grid */
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.practice-card {
  position: relative; display: flex; flex-direction: column; background: var(--white);
  padding: 44px 38px 38px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  transition: background-color .35s var(--ease);
}
.bg-white .practice-card { background: var(--white); }
.practice-card::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.practice-card:hover::before, .practice-card:focus-within::before { transform: scaleX(1); }
.practice-card:hover { background: #FFF8EA; }
.practice-card > .icon { color: var(--copper); width: 34px; height: 34px; margin-bottom: 28px; }
.practice-card h3 { margin-bottom: 14px; }
.practice-card h3 a { text-decoration: none; color: inherit; }
.practice-card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.practice-card p { font-size: .95rem; flex: 1; margin-bottom: 28px; }
.practice-card .text-link { align-self: flex-start; position: relative; z-index: 1; }
.practice-num { position: absolute; top: 40px; right: 36px; font-variant-numeric: lining-nums; font-family: var(--serif); font-size: 1rem; color: #A7ADB2; letter-spacing: .06em; }

/* Highlights */
.highlights-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(245,243,238,.18); }
.highlight { padding: 40px 32px 8px 0; border-right: 1px solid rgba(245,243,238,.14); margin-right: 32px; }
.highlight:last-child { border-right: 0; margin-right: 0; }
.highlight .figure { font-variant-numeric: lining-nums; font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--ivory); line-height: 1; margin-bottom: 18px; }
.highlight .figure .accent { color: var(--copper); }
.highlight p { font-size: .9rem; letter-spacing: .02em; color: rgba(245,243,238,.75); margin: 0; }
.highlights-note { margin-top: 48px; font-size: .82rem; color: rgba(245,243,238,.6); max-width: 52em; }

/* Approach steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.step { padding: 0 36px 0 0; margin-right: 36px; border-right: 1px solid var(--border); }
.step:last-child { border-right: 0; margin-right: 0; }
.step-num { font-variant-numeric: lining-nums; font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--copper); margin-bottom: 24px; display: flex; align-items: center; gap: 16px; }
.step-num::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.step h3 { margin-bottom: 12px; }
.step p { font-size: .95rem; margin: 0; }
.steps-detail .step p + p { margin-top: .9em; }

/* Forums */
.forums { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.forum-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.forum-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.forum-list .name { font-family: var(--serif); font-size: 1.45rem; color: var(--slate); line-height: 1.25; }
.forum-list .abbr { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text); white-space: nowrap; }
.forum-list .abbr::before { content: ""; display: inline-block; width: 18px; height: 1px; background: var(--copper); vertical-align: middle; margin-right: 10px; }
.fine { font-size: .85rem; color: var(--text); opacity: .9; }

/* Languages */
.languages { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 56px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.languages h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin-bottom: 8px; }
.languages p { margin: 0; }
.lang-labels { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; }
.lang-labels li { padding: 6px 34px; border-left: 1px solid var(--border); text-align: center; }
.lang-labels li:first-child { border-left: 0; }
.lang-labels .native { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--slate); line-height: 1.2; }
.lang-labels .en { display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; margin-top: 4px; }

/* Contact block */
.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; box-shadow: 0 40px 80px -50px rgba(18,41,31,.45); }
.contact-info { background: var(--slate-deep); color: var(--ivory); padding: clamp(36px, 5vw, 64px); position: relative; overflow: hidden; }
.contact-info::after { content: ""; position: absolute; right: -140px; bottom: -120px; width: 380px; height: 480px; background: url("../img/art/hero-facade.svg") no-repeat center / contain; opacity: .18; pointer-events: none; }
.contact-info > * { position: relative; z-index: 1; }
.contact-info h2, .contact-info h3 { color: var(--ivory); }
.contact-info p { color: rgba(245,243,238,.78); }
.contact-info address { font-size: 1.02rem; line-height: 1.8; color: var(--ivory); margin: 28px 0; padding-left: 20px; border-left: 1px solid var(--copper); }
.contact-lines { list-style: none; margin: 0 0 28px; padding: 0; }
.contact-lines li { margin-bottom: 10px; }
.contact-lines a { display: inline-flex; align-items: center; gap: 12px; color: var(--ivory); text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 4px; }
.contact-lines .icon { color: var(--copper); }
.contact-form-panel { background: var(--white); padding: clamp(32px, 5vw, 64px); }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.field .req { color: var(--copper); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--charcoal);
  background: var(--white); border: 1px solid #CFCAC0; border-radius: 1px;
  padding: 13px 14px; transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23B77953' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--slate); box-shadow: 0 0 0 3px rgba(25,56,50,.12); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.field-error { font-size: .84rem; color: var(--error); min-height: 0; }
.field-help { font-size: .82rem; }
.field label.consent, .consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text); line-height: 1.6; }
.consent input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--slate); flex: none; }
.consent a { color: var(--slate); text-decoration-color: var(--copper); }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { font-size: .85rem; border-left: 2px solid var(--copper); padding: 4px 0 4px 14px; margin: 26px 0 0; }
.form-actions { display: flex; align-items: center; gap: 20px; margin-top: 28px; flex-wrap: wrap; }
.alert { padding: 18px 20px; margin-bottom: 28px; border: 1px solid var(--border); background: var(--ivory); font-size: .95rem; }
.alert strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--slate); margin-bottom: 4px; }
.alert-success { border-left: 3px solid var(--slate); }
.alert-error { border-left: 3px solid var(--error); }

.map-frame { margin-top: 0; border: 0; width: 100%; height: 420px; filter: grayscale(.85) contrast(1.02); display: block; }

/* Practice detail */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: clamp(48px, 7vw, 96px); align-items: start; }
.scope-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.scope-list li { position: relative; padding: 16px 0 16px 36px; border-bottom: 1px solid var(--border); }
.scope-list li::before { content: ""; position: absolute; left: 0; top: 29px; width: 18px; height: 1px; background: var(--copper); }
.note-box { margin-top: 36px; padding: 22px 24px; background: var(--ivory); border-left: 2px solid var(--copper); font-size: .95rem; }
.aside-card { position: sticky; top: calc(var(--header-h) + 24px); background: var(--slate-deep); color: var(--ivory); padding: 36px 32px; }
.aside-card h2 { color: var(--ivory); font-size: 1.7rem; }
.aside-card p { color: rgba(245,243,238,.78); font-size: .95rem; }
.aside-card .btn { width: 100%; margin-top: 8px; }
.aside-nav { margin-top: 28px; background: var(--white); border: 1px solid var(--border); padding: 26px 28px; }
.aside-nav h3 { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); margin-bottom: 12px; }
.aside-nav ul { list-style: none; margin: 0; padding: 0; }
.aside-nav li a { display: block; padding: 9px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); font-size: .92rem; }
.aside-nav li:last-child a { border-bottom: 0; }
.aside-nav li a:hover, .aside-nav li a[aria-current="page"] { color: var(--slate); }
.aside-nav li a[aria-current="page"] { font-weight: 600; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related a { display: block; padding: 28px; background: var(--white); border: 1px solid var(--border); text-decoration: none; transition: border-color .3s; }
.related a:hover { border-color: var(--copper); }
.related .icon { color: var(--copper); margin-bottom: 18px; }
.related span { font-family: var(--serif); font-size: 1.3rem; color: var(--slate); line-height: 1.25; display: block; }

/* CTA band */
.cta-band { background: var(--slate); color: var(--ivory); }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 72px; padding-bottom: 72px; flex-wrap: wrap; }
.cta-band h2 { color: var(--ivory); margin: 0 0 8px; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.cta-band p { margin: 0; color: rgba(245,243,238,.78); }

/* Values (about) */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--border); }
.value { padding: 36px 28px 8px 0; }
.value + .value { padding-left: 28px; border-left: 1px solid var(--border); }
.value h3 { font-size: 1.45rem; }
.value h3::before { content: ""; display: block; width: 28px; height: 1px; background: var(--copper); margin-bottom: 18px; }
.value p { font-size: .94rem; margin: 0; }

/* Legal pages */
.legal-doc { max-width: 820px; }
.legal-doc h2 { font-size: 1.8rem; margin-top: 2em; }
.legal-doc .updated { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: rgba(245,243,238,.7); padding-top: 88px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1.1fr .8fr 1fr; gap: 48px; padding-bottom: 56px; }
.footer-brand p { max-width: 26em; margin-top: 26px; }
.footer-est { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(245,243,238,.5); }
.footer-h { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ivory); margin: 8px 0 22px; padding-bottom: 14px; position: relative; }
.footer-h::after { content: ""; position: absolute; left: 0; bottom: 0; width: 24px; height: 1px; background: var(--copper); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a, .footer-contact a, .footer-bottom a, .footer-disclaimer a { color: rgba(245,243,238,.72); text-decoration: none; transition: color .2s; }
.footer-links a:hover, .footer-contact a:hover, .footer-bottom a:hover, .footer-disclaimer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 4px; }
.footer-address { line-height: 1.8; color: rgba(245,243,238,.78); margin-bottom: 18px; }
.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li { margin-bottom: 8px; }
.footer-contact a { display: inline-flex; gap: 10px; align-items: center; }
.footer-contact .icon { color: var(--copper); }
.footer-disclaimer, .footer-bottom { background: linear-gradient(rgba(245,243,238,.1), rgba(245,243,238,.1)) no-repeat center top / calc(100% - var(--gutter) * 2) 1px; }
.footer-disclaimer { padding-top: 28px; padding-bottom: 28px; font-size: .8rem; line-height: 1.7; color: rgba(245,243,238,.55); }
.footer-disclaimer p { margin: 0; max-width: 72em; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 28px; font-size: .78rem; color: rgba(245,243,238,.5); }
.footer-bottom p { margin: 0; }
.wordmark-footer .wordmark-mark { color: var(--ivory); }

/* ---------- Entry disclaimer ---------- */
.entry-disclaimer { position: fixed; inset: 0; z-index: 300; background: rgba(18,41,31,.82); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.entry-disclaimer[hidden] { display: none; }
.ed-panel { background: var(--white); max-width: 620px; width: 100%; max-height: calc(100vh - 40px); overflow: auto; padding: clamp(28px, 5vw, 48px); border-top: 3px solid var(--copper); }
.ed-panel h2 { font-size: 2rem; }
.ed-panel ul { padding-left: 1.1em; font-size: .93rem; }
.ed-panel li { margin-bottom: .6em; }
.ed-panel li::marker { color: var(--copper); }
.ed-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
body.ed-open { overflow: hidden; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .reveal { transition-duration: 1.1s; }
.js .reveal.d1 { transition-delay: .12s; } .js .reveal.d2 { transition-delay: .24s; } .js .reveal.d3 { transition-delay: .36s; }
.js .media-reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease); }
.js .media-reveal.in { clip-path: inset(0 0 0 0); }

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

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .site-nav > ul { gap: 22px; }
  .site-nav { gap: 24px; }
  .wm-top { font-size: 1.15rem; }
}
@media (max-width: 1060px) {
  :root { --header-h: 74px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--slate-deep);
    flex-direction: column; align-items: stretch; gap: 0; padding: 20px var(--gutter) 40px; overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s;
  }
  .site-nav.open { transform: none; visibility: visible; }
  .site-nav > ul { flex-direction: column; gap: 0; }
  .site-nav > ul > li > a { padding: 18px 0; font-size: .9rem; border-bottom: 1px solid var(--ivory-faint); }
  .site-nav > ul > li > a::after { display: none; }
  .site-nav .sub { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; box-shadow: none; border: 0; padding: 6px 0 12px 14px; min-width: 0; }
  .site-nav .sub a { color: rgba(245,243,238,.72); padding: 8px 0; font-size: .92rem; }
  .site-nav .sub a:hover { padding-left: 0; color: var(--white); }
  .nav-cta { margin-top: 28px; }
  body.nav-open { overflow: hidden; }
  .has-hero .site-header.menu-open { background: var(--slate-deep); }

  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding-bottom: 120px; }
  .hero-art .frame { max-width: 380px; }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .highlight:nth-child(2) { border-right: 0; margin-right: 0; }
  .highlight { padding-bottom: 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .step:nth-child(2) { border-right: 0; margin-right: 0; }
  .split, .forums, .contact-wrap, .detail-grid { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .split-media { max-width: 560px; }
  .aside-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .value:nth-child(3) { padding-left: 0; border-left: 0; }
  .languages { grid-template-columns: 1fr; }
  .related { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  :root { --gutter: 16px; }
  body { font-size: 15.5px; }
  .wm-top { font-size: 1rem; letter-spacing: .1em; }
  .wordmark-mark { width: 34px; height: 34px; }
  .wordmark { gap: 10px; }
  .hero { min-height: auto; }
  .hero-grid { padding-top: 32px; }
  .hero-actions .btn { width: 100%; }
  .hero-art .frame { max-width: 300px; }
  .hero-art .frame::before { inset: -12px 12px 12px -12px; }
  .hero-foot .practices { display: none; }
  .hero-foot .container { justify-content: center; font-size: .68rem; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice-card { padding: 36px 26px 30px; }
  .highlights-grid { grid-template-columns: 1fr; }
  .highlight { border-right: 0; margin-right: 0; border-bottom: 1px solid rgba(245,243,238,.14); padding: 28px 0; }
  .steps { grid-template-columns: 1fr; row-gap: 40px; }
  .step { border-right: 0; margin-right: 0; padding-right: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .forum-list .name { font-size: 1.22rem; }
  .forum-list li { flex-direction: column; gap: 4px; }
  .lang-labels li { padding: 6px 18px; }
  .lang-labels .native { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .values { grid-template-columns: 1fr; }
  .value + .value { padding-left: 0; border-left: 0; }
  .related { grid-template-columns: 1fr; }
  .split-media::before { inset: 14px -10px -14px 10px; }
  .split-media .caption { padding: 14px 18px; font-size: 1rem; }
  .cta-band .btn { width: 100%; }
  .page-hero::after { width: 320px; height: 400px; right: -120px; opacity: .22; }
  .map-frame { height: 320px; }
}

/* refinements */
.section-head .eyebrow, .page-hero .eyebrow { font-size: .74rem; margin: 0 0 22px; color: inherit; }
.section-head .eyebrow { color: var(--slate); }
.on-dark .section-head .eyebrow, .page-hero .eyebrow { color: var(--ivory-muted); }
.prose .eyebrow + h2, .eyebrow + h2 { margin-top: 0; }
.prose .scope-list { padding-left: 0; }
.split-media .caption, .lang-labels .native, .forum-list .name { font-variant-numeric: lining-nums; }


/* =========================================================
   THEME v2 — Sage beige pages · Gold highlights · Thick borders · Effects
   ========================================================= */
:root {
  --page: #FFF3DD;        /* beige */
  --page-alt: #F7E7C8;    /* deeper beige */
  --card: #FFFAF0;        /* cream card */
  --gold: #C6A15B;
  --gold-light: #E8D5A6;
  --gold-deep: #9C7A33;
  --gold-grad: linear-gradient(135deg, #A9843A 0%, #E6CC8A 45%, #C6A15B 60%, #9C7A33 100%);
  --ink: #193832;
  --bw: 3px;              /* thick border */
}
body { background: var(--page); }
.bg-ivory { background: var(--page); }
.bg-white { background: var(--page-alt); }
::selection { background: var(--gold); color: var(--ink); }
h1, h2, h3 { color: var(--ink); }

/* Scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 150; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; background: var(--gold-grad); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* Eyebrows & rules in gold */
.eyebrow { color: var(--gold-deep); }
.eyebrow::before { height: 2px; background: var(--gold-grad); }
.on-dark .eyebrow, .page-hero .eyebrow, .on-dark .section-head .eyebrow, .hero .eyebrow { color: var(--gold-light); }
.section-head .eyebrow { color: var(--gold-deep); }
.rule { height: 3px; width: 72px; background: var(--gold-grad); }
.section-head h2::after { content: ""; display: block; width: 0; height: 3px; margin-top: 22px; background: var(--gold-grad); transition: width 1.1s var(--ease) .3s; }
.section-head.center h2::after { margin-left: auto; margin-right: auto; }
.section-head.in h2::after, .section-head .in h2::after, .section-head h2.in::after, .js .reveal.in h2::after { width: 88px; }
html:not(.js) .section-head h2::after { width: 88px; }

/* Buttons: gold */
.btn { border-radius: 2px; position: relative; overflow: hidden; isolation: isolate; }
.btn-copper { background: var(--gold-grad); background-size: 200% 100%; background-position: 0 0; color: var(--ink); border: 2px solid var(--gold-deep); font-weight: 700; transition: background-position .6s var(--ease), box-shadow .3s, transform .3s; }
.btn-copper:hover { background: var(--gold-grad); background-size: 200% 100%; background-position: 100% 0; border-color: var(--gold-deep); box-shadow: 0 10px 30px -10px rgba(198,161,91,.8); transform: translateY(-2px); }
.btn::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(110deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); z-index: -1; transition: left .7s var(--ease); }
.btn:hover::after { left: 140%; }
.btn-outline-light { border: 2px solid var(--gold); color: var(--gold-light); }
.btn-outline-light:hover { background: rgba(198,161,91,.12); color: var(--white); border-color: var(--gold-light); }
.btn-outline { border: 2px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--gold-light); }

/* Header */
.site-header.scrolled, .no-hero .site-header { background: #193832; border-bottom: 2px solid var(--gold); }
.site-nav > ul > li > a::after { height: 2px; background: var(--gold-grad); }
.site-nav .sub { border-top: 3px solid var(--gold); background: var(--card); }
.site-nav .sub a:hover { color: var(--gold-deep); }
.wm-bottom::before, .wm-bottom::after { background: var(--gold); }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 600px at 78% 40%, #24493F 0%, transparent 60%), radial-gradient(800px 500px at 10% 100%, rgba(198,161,91,.10), transparent 60%), var(--ink); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 40%), rgba(230,204,138,.13), transparent 60%); transition: background .2s; }
.hero h1 em {
  font-style: italic; color: transparent;
  background: linear-gradient(100deg, #B8913A 0%, #F0DCA4 30%, #C6A15B 50%, #F0DCA4 70%, #B8913A 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text;
  animation: goldShimmer 6s linear infinite;
}
@keyframes goldShimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 36px 0 0; }
.hero-chips li { display: flex; align-items: baseline; gap: 10px; padding: 10px 18px; border: 2px solid rgba(198,161,91,.55); background: rgba(198,161,91,.07); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); }
.hero-chips strong { font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0; color: var(--white); font-weight: 600; font-variant-numeric: lining-nums; }
.hero-art .frame { padding: 22px; border: var(--bw) solid var(--gold); background: linear-gradient(180deg, rgba(198,161,91,.06), rgba(198,161,91,0)); box-shadow: 0 0 0 8px rgba(198,161,91,.08), 0 40px 80px -40px rgba(0,0,0,.7); animation: floatY 7s ease-in-out infinite; }
.hero-art .frame::before { inset: 10px; border: 1px solid rgba(198,161,91,.45); }
.hero-art .frame svg { width: 100%; height: 100%; }
.corner { position: absolute; width: 26px; height: 26px; border: 3px solid var(--gold-light); }
.corner.tl { top: -9px; left: -9px; border-right: 0; border-bottom: 0; }
.corner.tr { top: -9px; right: -9px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: -9px; left: -9px; border-right: 0; border-top: 0; }
.corner.br { bottom: -9px; right: -9px; border-left: 0; border-top: 0; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-foot { border-top: 2px solid rgba(198,161,91,.35); background: rgba(0,0,0,.12); }
.hero-foot .container { color: var(--gold-light); }

/* Line-drawing animation */
.js .draw-svg .d, .js .draw-svg path, .js .draw-svg circle, .js .draw-svg ellipse { stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 3.2s cubic-bezier(.4,.1,.2,1); }
.js .draw-svg.drawn .d, .js .draw-svg.drawn path, .js .draw-svg.drawn circle, .js .draw-svg.drawn ellipse { stroke-dashoffset: 0; }
.draw-svg path[fill]:not([fill="none"]) { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }

/* ---------- Ticker ---------- */
.ticker { background: var(--gold-grad); border-top: 3px solid var(--gold-deep); border-bottom: 3px solid var(--gold-deep); overflow: hidden; white-space: nowrap; position: relative; }
.ticker-track { display: inline-flex; align-items: center; gap: 28px; padding: 16px 0; animation: tick 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.ticker i { font-style: normal; color: var(--ink); opacity: .6; font-size: .9rem; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Split media frames ---------- */
.split-media .media { border: var(--bw) solid var(--gold); padding: 10px; background: var(--card); box-shadow: 0 30px 60px -35px rgba(18,41,31,.45); }
.split-media .media img { border: 1px solid rgba(156,122,51,.35); }
.split-media::before { inset: 26px -26px -26px 26px; border: var(--bw) solid var(--ink); opacity: .85; }
.split-media .caption { background: var(--ink); border-left: 4px solid var(--gold); bottom: 40px; left: -14px; }
.split-media .caption small { color: var(--gold-light); }
.seal { position: absolute; top: -40px; right: -36px; width: 128px; height: 128px; filter: drop-shadow(0 14px 22px rgba(18,41,31,.35)); z-index: 2; }
.seal svg { width: 100%; height: 100%; }
.seal-ring { transform-origin: 60px 60px; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Practice cards ---------- */
.practice-grid { border: 0; gap: 26px; }
.practice-card { background: var(--card); border: 2px solid var(--border); border-top: 5px solid var(--gold); padding: 40px 34px 34px; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s; overflow: hidden; }
.practice-card::before { top: auto; bottom: 0; height: 4px; background: var(--gold-grad); }
.practice-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--cx, 50%) var(--cy, 0%), rgba(230,204,138,.25), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.practice-card:hover { transform: translateY(-8px); box-shadow: 0 28px 50px -24px rgba(18,41,31,.45); border-color: var(--gold); background: #FFFDF6; }
.practice-card:hover::after { opacity: 1; }
.icon-badge { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--gold); background: var(--ink); color: var(--gold-light); margin-bottom: 26px; box-shadow: 0 0 0 6px rgba(198,161,91,.15); transition: transform .6s var(--ease), background .4s, color .4s; }
.icon-badge .icon { width: 30px; height: 30px; }
.practice-card:hover .icon-badge { transform: rotateY(360deg); background: var(--gold); color: var(--ink); }
.practice-num { font-size: 2.6rem; top: 26px; right: 28px; color: rgba(198,161,91,.35); font-weight: 600; }
.practice-card .text-link { border-bottom: 2px solid var(--gold); color: var(--ink); }

/* ---------- Highlights ---------- */
.bg-slate { background: linear-gradient(160deg, #21463C, #193832 70%); position: relative; overflow: hidden; }
.bg-slate::before { content: ""; position: absolute; right: -120px; top: -60px; width: 520px; height: 520px; border: 3px solid rgba(198,161,91,.18); border-radius: 50%; pointer-events: none; }
.bg-slate::after { content: ""; position: absolute; right: -40px; top: 20px; width: 360px; height: 360px; border: 1px solid rgba(198,161,91,.18); border-radius: 50%; pointer-events: none; }
.highlights-grid { border-top: 0; gap: 22px; position: relative; z-index: 1; }
.highlight { border: var(--bw) solid rgba(198,161,91,.6) !important; margin: 0 !important; padding: 34px 28px !important; background: rgba(255,255,255,.03); transition: transform .4s var(--ease), background .4s, border-color .4s; text-align: center; }
.highlight:hover { transform: translateY(-6px); background: rgba(198,161,91,.10); border-color: var(--gold-light) !important; }
.highlight .figure { color: transparent; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; font-weight: 600; font-size: clamp(2.8rem, 4.6vw, 3.8rem); }
.highlight .figure .accent { color: var(--gold-light); -webkit-text-fill-color: var(--gold-light); }
.highlight p { color: var(--ivory); text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; }
.highlights-note { position: relative; z-index: 1; text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Approach timeline ---------- */
.timeline { position: relative; padding-top: 36px !important; }
.timeline::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: rgba(156,122,51,.25); }
.timeline::after { content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 100%; background: var(--gold-grad); transform-origin: left; transform: scaleX(var(--tl, 0)); transition: transform .2s linear; }
.timeline .step { position: relative; border-right: 0; background: var(--card); border: 2px solid var(--border); border-bottom: 4px solid var(--gold); padding: 30px 26px; margin-right: 22px; transition: transform .4s var(--ease), box-shadow .4s; }
.timeline .step:last-child { margin-right: 0; }
.timeline .step::before { content: ""; position: absolute; top: -45px; left: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--page); border: 3px solid var(--gold); box-shadow: 0 0 0 5px rgba(198,161,91,.2); }
.timeline .step:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -24px rgba(18,41,31,.45); }
.step-num { color: transparent; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; font-weight: 600; font-size: 3.2rem; }
.step-num::after { background: rgba(156,122,51,.3); height: 2px; }

/* ---------- Forums ---------- */
.forum-list { border-top: 3px solid var(--gold); }
.forum-list li { position: relative; padding: 20px 16px; border-bottom: 2px solid var(--border); transition: background .35s, padding .35s; overflow: hidden; }
.forum-list li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--gold-grad); transform: scaleY(0); transition: transform .35s var(--ease); }
.forum-list li:hover { background: var(--card); padding-left: 28px; }
.forum-list li:hover::before { transform: scaleY(1); }
.forum-list .name { color: var(--ink); }
.forum-list .abbr { color: var(--gold-deep); }
.forum-list .abbr::before { background: var(--gold); height: 2px; }

/* ---------- Languages ---------- */
.languages { border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold); }
.lang-labels li { border-left: 2px solid rgba(198,161,91,.5); transition: transform .3s var(--ease); }
.lang-labels li:hover { transform: translateY(-4px); }
.lang-labels .native { color: var(--ink); }
.lang-labels .en { color: var(--gold-deep); font-weight: 600; }

/* ---------- Skyline band ---------- */
.skyline-band { background: var(--ink); color: var(--ivory); padding: 90px 0 0; position: relative; overflow: hidden; border-top: 4px solid var(--gold); }
.skyline-quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.35; text-align: center; max-width: 30em; margin: 0 auto 50px; color: var(--ivory); }
.skyline-quote::before { content: "“"; display: none; }
.skyline-art { width: 100%; max-width: 1600px; margin: 0 auto; }
.skyline-art svg { width: 100%; height: auto; display: block; }

/* ---------- Contact ---------- */
.contact-wrap { border: var(--bw) solid var(--gold); box-shadow: 0 0 0 10px rgba(198,161,91,.12), 0 50px 90px -50px rgba(18,41,31,.6); }
.contact-info { background: var(--ink); }
.contact-info address { border-left: 3px solid var(--gold); }
.contact-lines .icon { color: var(--gold); }
.contact-form-panel { background: var(--card); }
.field input, .field select, .field textarea { border: 2px solid #E0CDA6; background-color: #FFFEF8; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(198,161,91,.22); }
.form-notice { border-left: 3px solid var(--gold); }
.consent input { accent-color: var(--gold-deep); }
.field .req { color: var(--gold-deep); }

/* ---------- Inner pages ---------- */
.page-hero { background: radial-gradient(900px 400px at 85% 30%, #24493F, transparent 60%), var(--ink); border-bottom: 4px solid var(--gold); }
.breadcrumb li + li::before { color: var(--gold); }
.aside-card { background: var(--ink); border: var(--bw) solid var(--gold); }
.aside-nav { background: var(--card); border: 2px solid var(--border); border-top: 4px solid var(--gold); }
.related a { background: var(--card); border: 2px solid var(--border); border-top: 4px solid var(--gold); transition: transform .35s var(--ease), box-shadow .35s; }
.related a:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -24px rgba(18,41,31,.45); border-color: var(--gold); }
.related .icon { color: var(--gold-deep); }
.scope-list { border-top: 3px solid var(--gold); }
.scope-list li { border-bottom: 2px solid var(--border); transition: background .3s, padding .3s; }
.scope-list li:hover { background: var(--card); padding-left: 44px; }
.scope-list li::before { height: 2px; background: var(--gold); }
.note-box { background: var(--card); border-left: 4px solid var(--gold); }
.values { border-top: 0; gap: 22px; }
.value { background: var(--card); border: 2px solid var(--border) !important; border-top: 5px solid var(--gold) !important; padding: 34px 28px !important; transition: transform .4s var(--ease); }
.value:hover { transform: translateY(-6px); }
.value h3::before { background: var(--gold-grad); height: 3px; }
.cta-band { background: var(--gold-grad); border-top: 3px solid var(--gold-deep); border-bottom: 3px solid var(--gold-deep); }
.cta-band h2 { color: var(--ink); }
.cta-band p { color: #1F3A33; }
.cta-band .btn-copper { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }
.cta-band .btn-copper:hover { background: #21463C; color: var(--white); }
.legal-doc h2 { border-bottom: 2px solid var(--gold); padding-bottom: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: #12291F; border-top: 5px solid var(--gold); }
.footer-h::after { background: var(--gold-grad); height: 2px; width: 34px; }
.footer-contact .icon { color: var(--gold); }

/* Entry disclaimer */
.ed-panel { background: var(--card); border: var(--bw) solid var(--gold); border-top-width: 6px; }

/* Back to top */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--gold); background: var(--ink); color: var(--gold-light); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(16px); transition: opacity .35s, transform .35s; }
.to-top.show { opacity: 1; transform: none; }
.to-top:hover { background: var(--gold); color: var(--ink); }

/* Reveal variants */
.js .reveal { transform: translateY(28px); }
.js .reveal.from-left { transform: translateX(-40px); }
.js .reveal.from-right { transform: translateX(40px); }
.js .practice-card.reveal { transform: translateY(40px) scale(.97); }
.js .reveal.in { transform: none; }

@media (max-width: 1060px) {
  .timeline::before, .timeline::after, .timeline .step::before { display: none; }
  .timeline .step { margin-right: 0; }
  .steps.timeline { gap: 18px; }
  .seal { width: 100px; height: 100px; right: -10px; top: -30px; }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .practice-grid { gap: 18px; }
  .hero-chips li { padding: 8px 12px; }
  .hero-art .frame { padding: 14px; }
  .highlights-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .highlight { padding: 24px 12px !important; }
  .ticker span { font-size: 1.1rem; }
  .split-media::before { inset: 14px -10px -14px 10px; }
  .seal { width: 84px; height: 84px; right: -6px; top: -26px; }
  .contact-wrap { box-shadow: 0 0 0 5px rgba(198,161,91,.12); }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 em, .ticker-track, .seal-ring, .hero-art .frame { animation: none !important; }
  .js .draw-svg path, .js .draw-svg circle, .js .draw-svg ellipse { stroke-dashoffset: 0 !important; }
}
/* media reveal: opacity/scale (clip-path hides the element from IntersectionObserver) */
.js .media-reveal { clip-path: none; opacity: 0; transform: scale(.94) translateY(20px); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); }
.js .media-reveal.in { clip-path: none; opacity: 1; transform: none; }
@media (max-width: 1060px) {
  .site-nav .sub { background: transparent; border-top: 0; border-left: 2px solid var(--gold); margin: 4px 0 10px; padding: 4px 0 4px 16px; }
  .site-nav .sub a { color: rgba(255,243,221,.8); }
  .site-nav .sub a:hover { color: var(--gold-light); }
}

/* =========================================================
   WIDER BORDERS (v3)
   ========================================================= */
:root { --bw: 6px; }
.site-header.scrolled, .no-hero .site-header { border-bottom-width: 4px; }
.scroll-progress { height: 5px; }
.btn { border-width: 3px !important; }
.btn-outline-light, .btn-outline { border-width: 3px; }
.hero-chips li { border-width: 3px; }
.hero-art .frame { border-width: 6px; }
.hero-art .frame::before { inset: 14px; border-width: 2px; }
.corner { width: 34px; height: 34px; border-width: 5px; }
.corner.tl { top: -14px; left: -14px; } .corner.tr { top: -14px; right: -14px; }
.corner.bl { bottom: -14px; left: -14px; } .corner.br { bottom: -14px; right: -14px; }
.hero-foot { border-top-width: 4px; }
.ticker { border-top-width: 6px; border-bottom-width: 6px; }
.rule { height: 5px; }
.section-head h2::after { height: 5px; }
.eyebrow::before { height: 3px; }
.split-media .media { border-width: 6px; }
.split-media::before { border-width: 6px; }
.split-media .caption { border-left-width: 6px; }
.practice-card { border-width: 4px; border-top-width: 9px; }
.practice-card::before { height: 6px; }
.icon-badge { border-width: 4px; }
.practice-card .text-link { border-bottom-width: 3px; }
.highlight { border-width: 6px !important; }
.bg-slate::before { border-width: 5px; }
.timeline::before, .timeline::after { height: 5px; }
.timeline .step { border-width: 4px; border-bottom-width: 8px; }
.timeline .step::before { width: 20px; height: 20px; border-width: 5px; top: -48px; }
.forum-list { border-top-width: 6px; }
.forum-list li { border-bottom-width: 3px; }
.forum-list li::before { width: 7px; }
.languages { border-top-width: 6px; border-bottom-width: 6px; }
.lang-labels li { border-left-width: 3px; }
.skyline-band { border-top-width: 7px; }
.contact-wrap { border-width: 6px; }
.contact-info address { border-left-width: 5px; }
.field input, .field select, .field textarea { border-width: 3px; }
.form-notice { border-left-width: 5px; }
.page-hero { border-bottom-width: 7px; }
.aside-card { border-width: 6px; }
.aside-nav { border-width: 3px; border-top-width: 8px; }
.related a { border-width: 3px; border-top-width: 8px; }
.scope-list { border-top-width: 6px; }
.scope-list li { border-bottom-width: 3px; }
.note-box { border-left-width: 7px; }
.value { border-width: 3px !important; border-top-width: 9px !important; }
.cta-band { border-top-width: 6px; border-bottom-width: 6px; }
.legal-doc h2 { border-bottom-width: 4px; }
.site-footer { border-top-width: 8px; }
.footer-h::after { height: 4px; }
.ed-panel { border-width: 6px; border-top-width: 10px; }
.to-top { border-width: 3px; }
@media (max-width: 680px) {
  :root { --bw: 5px; }
  .practice-card { border-top-width: 8px; }
}
/* make the wider borders clearly visible in gold */
.practice-card, .timeline .step, .value, .related a, .aside-nav { border-color: #DCC089; }
.practice-card { border-top-color: var(--gold); }
.timeline .step { border-bottom-color: var(--gold); }
.value { border-top-color: var(--gold) !important; }
.related a, .aside-nav { border-top-color: var(--gold); }
.practice-card:hover, .related a:hover, .timeline .step:hover { border-color: var(--gold); }
.highlight { border-color: var(--gold) !important; }
.hero-chips li { border-color: var(--gold); }
.forum-list li, .scope-list li { border-bottom-color: #DCC089; }
.field input, .field select, .field textarea { border-color: #DCC089; }
.lang-labels li { border-left-color: var(--gold); }

/* ---------- WhatsApp ---------- */
.btn-whatsapp { background: #1F7A4D; color: #fff; border: 3px solid var(--gold) !important; gap: 10px; }
.btn-whatsapp:hover { background: #25A162; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 28px -10px rgba(37,161,98,.7); }
.btn-whatsapp .wa-icon { flex: none; }
.contact-info .btn-whatsapp { margin: 4px 0 24px; }
.aside-card .btn-whatsapp { width: 100%; margin-top: 12px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 95;
  display: inline-flex; align-items: center; gap: 10px; height: 60px; padding: 0 22px 0 15px;
  border-radius: 999px; background: #1F7A4D; color: #fff; text-decoration: none;
  border: 4px solid var(--gold); box-shadow: 0 14px 34px -10px rgba(18,41,31,.55);
  font: 600 .9rem/1 var(--sans); letter-spacing: .03em;
  transition: transform .3s var(--ease), background .3s;
  animation: waPulse 2.8s ease-out infinite;
}
.wa-float:hover { background: #25A162; transform: translateY(-3px); }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(198,161,91,.55), 0 14px 34px -10px rgba(18,41,31,.55); } 70% { box-shadow: 0 0 0 16px rgba(198,161,91,0), 0 14px 34px -10px rgba(18,41,31,.55); } 100% { box-shadow: 0 0 0 0 rgba(198,161,91,0), 0 14px 34px -10px rgba(18,41,31,.55); } }
body:has(.wa-float) .to-top { bottom: 92px; right: 26px; }
.footer-contact .wa-icon { color: var(--gold); }
@media (max-width: 680px) {
  .wa-float { height: 56px; width: 56px; padding: 0; justify-content: center; right: 16px; bottom: 16px; }
  .wa-float .wa-label { display: none; }
  body:has(.wa-float) .to-top { bottom: 84px; right: 20px; }
  .cta-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } }
.map-frame { border-top: 6px solid var(--gold); border-bottom: 6px solid var(--gold); filter: grayscale(.6) sepia(.15); background: var(--page-alt); }

/* ---------- Brand logo ---------- */
.wordmark { gap: 0; }
.logo-img { display: block; height: 62px; width: auto; transition: height .35s var(--ease); }
.site-header.scrolled .logo-img { height: 52px; }
.footer-logo-img { display: block; width: 250px; height: auto; }
.wordmark-footer { margin-bottom: 4px; }
.ed-logo { display: block; width: 200px; height: auto; margin: 0 auto 22px; }
@media (max-width: 1180px) { .logo-img { height: 54px; } }
@media (max-width: 680px) {
  .logo-img, .site-header.scrolled .logo-img { height: 44px; }
  .footer-logo-img { width: 220px; }
  .ed-logo { width: 150px; }
}
.seal { position: absolute; }
.seal-emblem { position: absolute; left: 50%; top: 50%; width: 64%; height: auto; transform: translate(-50%, -50%); }
.seal { width: 150px; height: 150px; top: -52px; right: -46px; }
@media (max-width: 1060px) { .seal { width: 116px; height: 116px; right: -10px; top: -36px; } }
@media (max-width: 680px) { .seal { width: 96px; height: 96px; right: -6px; top: -30px; } }
/* centre a lone last card in the 3-column practice grid */
@media (min-width: 1061px) { .practice-grid > .practice-card:last-child:nth-child(3n+1) { grid-column: 2; } }
@media (min-width: 681px) and (max-width: 1060px) { .practice-grid > .practice-card:last-child:nth-child(2n+1) { grid-column: 1 / -1; max-width: calc(50% - 13px); justify-self: center; width: 100%; } }
