/* ============================================================
   KCLC v2 — "The Official Chambers"
   Near-black stage · ivory panels · crimson seal
   Cinzel (engraved) · Cormorant Garamond (serif) · Plus Jakarta Sans (UI)
   ============================================================ */

:root {
  --stage: #0c0c0e;
  --stage-2: #101013;
  --footer: #070709;
  --ivory: #faf9f6;
  --ivory-2: #f2f0ea;
  --ivory-3: #e9e6df;
  --crimson: #c01224;
  --crimson-dark: #990e1c;
  --line-dark: rgba(250, 249, 246, 0.14);
  --line-dark-soft: rgba(250, 249, 246, 0.08);
  --line-ivory: rgba(12, 12, 14, 0.14);
  --w-white: #ffffff;
  --w-80: rgba(250, 249, 246, 0.8);
  --w-60: rgba(250, 249, 246, 0.62);
  --w-40: rgba(250, 249, 246, 0.42);
  --ink-80: rgba(12, 12, 14, 0.8);
  --ink-60: rgba(12, 12, 14, 0.62);

  --cinzel: "Cinzel", Georgia, serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --t-fast: 200ms;
  --t-med: 450ms;
  --t-slow: 800ms;
  --stagger: 90ms;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--w-80);
  background: var(--stage);
  -webkit-font-smoothing: antialiased;
}
body.on-ivory { background: var(--ivory); color: var(--ink-80); }

::selection { background: var(--crimson); color: #fff; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--crimson); color: #fff; padding: 10px 18px; z-index: 200; font-size: 13px; }
.skip:focus { left: 12px; top: 12px; }

/* ---------- official primitives ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--cinzel); font-size: 11px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--crimson); }
.kicker.center::after { content: ""; width: 26px; height: 2px; background: var(--crimson); }
.on-ivory .kicker { color: var(--ink-60); }
.on-dark .kicker, .kicker.on-dark { color: var(--w-60); }

.btn {
  display: inline-block; text-decoration: none; cursor: pointer; text-align: center;
  font-family: var(--sans); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 16px 34px; border-radius: 0;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-crimson { background: var(--crimson); color: #fff; box-shadow: inset 0 0 0 1px rgba(250, 249, 246, 0.32); }
.btn-crimson:hover { background: var(--crimson-dark); }
.btn-ghost { border: 1px solid var(--line-dark); color: var(--w-80); background: transparent; }
.btn-ghost:hover { border-color: var(--w-80); color: #fff; }
.btn-ink { background: var(--stage); color: var(--ivory); }
.btn-ink:hover { background: #1c1c20; }
.btn-ivory-outline { border: 1px solid var(--line-ivory); color: var(--ink-80); }
.btn-ivory-outline:hover { border-color: var(--stage); }

.serif-display {
  font-family: var(--serif); font-weight: 500;
  letter-spacing: 0.01em; line-height: 1.12;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.section { padding: clamp(88px, 12vh, 148px) 0; }
.section-dark { background: var(--stage); }
.section-ivory { background: var(--ivory); color: var(--ink-80); }
.section-ivory-2 { background: var(--ivory-2); color: var(--ink-80); }
.rule { height: 1px; background: var(--line-dark); }
.on-ivory .rule, .rule.ivory { background: var(--line-ivory); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(12, 12, 14, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark-soft);
}
.header-inner {
  max-width: 1360px; margin: 0 auto; padding: 0 clamp(20px, 3.4vw, 44px);
  display: flex; align-items: center; gap: 28px; height: 86px;
}
.monogram { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.monogram .kc {
  font-family: var(--cinzel); font-weight: 700; font-size: 21px; color: #fff;
  border-bottom: 2px solid var(--crimson); padding-bottom: 2px; line-height: 1;
}
.monogram .wm { display: flex; flex-direction: column; gap: 1px; }
.monogram .wm b {
  font-family: var(--cinzel); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.16em; color: #fff; text-transform: uppercase; line-height: 1.25;
}
.monogram .wm span { font-size: 9px; letter-spacing: 0.2em; color: var(--w-40); text-transform: uppercase; }
.site-nav { display: flex; gap: clamp(14px, 2vw, 30px); margin-left: auto; }
.site-nav a {
  text-decoration: none; font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--w-60);
  padding: 6px 0; border-bottom: 1px solid transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.site-nav a:hover { color: #fff; }
.site-nav a.is-active { color: #fff; border-bottom-color: var(--crimson); }
.header-cta { margin-left: clamp(8px, 1.4vw, 22px); }
.header-cta .btn { padding: 12px 24px; }
.nav-toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav-toggle i, .nav-toggle i::before, .nav-toggle i::after {
  content: ""; position: absolute; left: 8px; right: 8px; height: 1.5px; background: #fff; transition: transform var(--t-fast) var(--ease);
}
.nav-toggle i { top: 19px; }
.nav-toggle i::before { top: -6px; } .nav-toggle i::after { top: 6px; }

.mobile-nav {
  display: none; position: absolute; top: 86px; left: 0; right: 0;
  background: var(--stage); border-bottom: 1px solid var(--line-dark);
  padding: 18px 24px 26px; flex-direction: column; gap: 4px;
}
.mobile-nav.open { display: flex; }

/* ---------- page hero ---------- */
.page-hero { position: relative; display: grid; place-items: center; text-align: center; min-height: clamp(420px, 62vh, 620px); overflow: hidden; }
.page-hero .bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: saturate(0.82) contrast(1.04);
}
.page-hero .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,12,14,0.86) 0%, rgba(12,12,14,0.58) 55%, rgba(12,12,14,0.92) 100%); }
.page-hero .hero-content { position: relative; z-index: 2; padding: clamp(90px, 14vh, 140px) 24px; max-width: 900px; }
.page-hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(38px, 5.4vw, 64px); line-height: 1.14; color: #fff;
  margin: 22px 0 18px; text-wrap: balance;
}
.page-hero .hero-sub { font-family: var(--serif); font-size: clamp(19px, 2vw, 24px); font-weight: 400; color: var(--w-80); font-style: italic; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

/* ---------- register rows (no cards) ---------- */
.reg { border-top: 1px solid var(--line-dark); }
.on-ivory .reg { border-top-color: var(--line-ivory); }
.reg-row {
  display: grid; grid-template-columns: 74px 1fr auto; gap: clamp(14px, 3vw, 40px);
  align-items: center; width: 100%; text-align: left;
  padding: 30px 6px; border-bottom: 1px solid var(--line-dark);
  transition: background var(--t-fast) var(--ease);
  position: relative;
}
.on-ivory .reg-row { border-bottom-color: var(--line-ivory); }
.reg-row::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1.5px; width: 0; background: var(--crimson); transition: width var(--t-med) var(--ease); }
.reg-row:hover::after, .reg-row.open::after { width: 100%; }
.reg-num { font-family: var(--serif); font-size: 30px; font-weight: 300; color: var(--w-40); transition: color var(--t-fast) var(--ease); }
.on-ivory .reg-num { color: rgba(12,12,14,0.32); }
.reg-row:hover .reg-num, .reg-row.open .reg-num { color: var(--crimson); }
.reg-t { font-family: var(--serif); font-weight: 600; font-size: clamp(21px, 2.4vw, 28px); line-height: 1.2; color: #fff; }
.on-ivory .reg-t { color: var(--stage); }
.reg-s { display: block; margin-top: 6px; font-family: var(--sans); font-size: 13.5px; font-weight: 400; color: var(--w-60); letter-spacing: 0.01em; }
.on-ivory .reg-s { color: var(--ink-60); }
.reg-meta { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--w-40); font-weight: 600; text-align: right; }
.on-ivory .reg-meta { color: var(--ink-60); }
.reg-body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 550ms var(--ease), opacity 550ms var(--ease); }
.reg-body > div { overflow: hidden; }
.reg-row-wrap.open .reg-body { grid-template-rows: 1fr; opacity: 1; }
.reg-row-wrap.open > .reg-row { background: rgba(192, 18, 36, 0.04); }
.reg-detail { display: grid; gap: 26px; padding: 6px 6px 38px calc(74px + clamp(14px, 3vw, 40px)); max-width: 860px; }
.reg-detail p { font-family: var(--serif); font-size: 19px; line-height: 1.65; color: var(--w-80); }
.on-ivory .reg-detail p { color: var(--ink-80); }
.reg-detail h4 { font-family: var(--cinzel); font-size: 11px; letter-spacing: 0.24em; color: var(--w-60); text-transform: uppercase; margin-bottom: 12px; }
.reg-detail ul { list-style: none; columns: 2; column-gap: 40px; }
.reg-detail li { font-size: 14.5px; padding: 8px 0; border-bottom: 1px dashed var(--line-dark); break-inside: avoid; color: var(--w-80); }
.on-ivory .reg-detail li { border-bottom-color: var(--line-ivory); color: var(--ink-80); }
.reg-statutes { font-size: 13px; color: var(--w-60); font-style: italic; font-family: var(--serif); font-size: 16px; }
.on-ivory .reg-statutes { color: var(--ink-60); }
.reg-detail .btn { justify-self: start; margin-top: 4px; }

/* ---------- stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { text-align: center; padding: 8px 20px; border-left: 1px solid var(--line-dark); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(42px, 5vw, 64px); font-weight: 500; color: #fff; line-height: 1; }
.stat b em { font-style: normal; color: var(--crimson); }
.stat span { display: block; margin-top: 12px; font-family: var(--cinzel); font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--w-60); }

/* ---------- editorial split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 76px); align-items: center; }
.split.rev { grid-template-columns: 0.95fr 1.05fr; }
.split .img-frame { position: relative; }
.split .img-frame img { width: 100%; height: auto; filter: saturate(0.85) contrast(1.03); }
.img-keyline { position: absolute; inset: 14px; border: 1px solid rgba(250, 249, 246, 0.35); pointer-events: none; }
.img-keyline.dark { border-color: rgba(12, 12, 14, 0.3); }
.ed-title { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.15; color: #fff; margin: 18px 0 20px; }
.on-ivory .ed-title { color: var(--stage); }
.ed-copy { font-family: var(--serif); font-size: 19px; line-height: 1.7; color: var(--w-80); max-width: 56ch; }
.on-ivory .ed-copy { color: var(--ink-80); }
.dropcap::first-letter { font-family: var(--serif); font-size: 3.1em; font-weight: 600; color: var(--crimson); float: left; line-height: 0.82; padding-right: 10px; padding-top: 4px; }

/* ---------- three columns ---------- */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(26px, 4vw, 56px); }
.cols4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(26px, 4vw, 56px); }
.pillar { border-top: 1px solid var(--line-ivory); padding-top: 26px; }
.section-dark .pillar { border-top-color: var(--line-dark); }
.pillar h3 { font-family: var(--serif); font-weight: 600; font-size: 23px; color: var(--stage); margin: 12px 0 10px; }
.section-dark .pillar h3 { color: #fff; }
.pillar p { font-size: 14.5px; color: var(--ink-60); }
.section-dark .pillar p { color: var(--w-60); }
.pillar .num { font-family: var(--serif); font-size: 26px; font-weight: 300; color: var(--crimson); }

/* ---------- quote band ---------- */
.quote-band { text-align: center; max-width: 880px; margin: 0 auto; }
.quote-band blockquote { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.3; color: #fff; font-style: italic; }
.quote-band cite { display: block; margin-top: 24px; font-family: var(--cinzel); font-style: normal; font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--w-60); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--cinzel); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-60); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 14.5px; color: var(--ink-80);
  background: #fff; border: 1px solid var(--line-ivory); border-radius: 0;
  padding: 13px 14px; transition: border-color var(--t-fast) var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--crimson); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-note { font-size: 12px; color: var(--ink-60); line-height: 1.6; }
.form-ok { border: 1px solid var(--line-ivory); background: #fff; padding: 18px; font-size: 13px; }
.form-ok b { color: var(--crimson); }
.form-err { color: var(--crimson); font-size: 13px; }

/* dark inline form (home appointment) */
.dark-form .field label { color: var(--w-60); }
.dark-form .field input, .dark-form .field select {
  background: rgba(250, 249, 246, 0.05); border-color: var(--line-dark); color: var(--w-80);
}
.dark-form .field input::placeholder { color: var(--w-40); }
.dark-form .field input:focus, .dark-form .field select:focus { border-color: var(--crimson); }
.dark-form .field select option { color: var(--ink-80); }

/* ---------- faq ---------- */
.faq-item { border-bottom: 1px solid var(--line-ivory); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: left; padding: 22px 4px; font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--stage); }
.faq-q i { font-style: normal; color: var(--crimson); font-size: 22px; transition: transform var(--t-med) var(--ease); }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 450ms var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a p { padding: 0 4px 24px; font-size: 15px; color: var(--ink-60); max-width: 70ch; }

/* ---------- testimonials ---------- */
.testis { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.4vw, 48px); }
.testi { border-top: 2px solid var(--crimson); padding-top: 26px; }
.testi blockquote { font-family: var(--serif); font-size: 18.5px; line-height: 1.66; color: var(--ink-80); font-style: italic; }
.testi cite { display: block; margin-top: 18px; font-style: normal; font-family: var(--cinzel); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-60); }
.testi cite span { display: block; margin-top: 4px; font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.06em; color: rgba(12,12,14,0.42); text-transform: none; }

/* ---------- article ---------- */
.art-meta { display: flex; gap: 14px; align-items: center; font-family: var(--cinzel); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-60); }
.art-meta .cat { color: var(--crimson); }
.art-meta i { font-style: normal; color: rgba(12,12,14,0.28); }
.featured-art { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 4.6vw, 64px); align-items: center; }
.featured-art h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.18; color: var(--stage); margin: 16px 0 14px; }
.featured-art p { font-family: var(--serif); font-size: 18.5px; line-height: 1.66; color: var(--ink-80); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.tags span { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-60); border: 1px solid var(--line-ivory); padding: 6px 10px; }
.art-open { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 550ms var(--ease); }
.art-open > div { overflow: hidden; }
.art-row-wrap.open .art-open { grid-template-rows: 1fr; }
.art-open-inner { padding: 4px 6px 34px calc(74px + clamp(14px, 3vw, 40px)); max-width: 820px; }
.art-open-inner p { font-family: var(--serif); font-size: 18px; line-height: 1.7; color: var(--ink-80); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4.6vw, 64px); align-items: stretch; }
.loc-block { border-top: 1px solid var(--line-ivory); padding-top: 24px; margin-bottom: 34px; }
.loc-block h3 { font-family: var(--cinzel); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--crimson); margin-bottom: 12px; }
.loc-block p { font-family: var(--serif); font-size: 19px; line-height: 1.6; color: var(--ink-80); }
.loc-block a { color: var(--ink-80); text-decoration: none; border-bottom: 1px solid var(--crimson); transition: color var(--t-fast) var(--ease); }
.loc-block a:hover { color: var(--crimson); }
.map-frame { position: relative; border: 1px solid var(--line-ivory); height: 100%; min-height: 480px; overflow: hidden; display: flex; flex-direction: column; }
.map-frame iframe { width: 100%; height: 100%; min-height: 480px; flex: 1 1 auto; border: 0; display: block; filter: grayscale(0.3) contrast(1.02); }
@media (min-width: 1001px) {
  .map-frame iframe { position: absolute; inset: 0; }
}
.map-card {
  position: absolute; left: 18px; bottom: 18px; background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line-ivory); padding: 14px 18px; max-width: 340px; z-index: 2;
}
.map-card b { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-80); }
.map-card b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--crimson); }
.map-card p { font-size: 11.5px; color: var(--ink-60); margin-top: 6px; line-height: 1.5; }
.map-card a { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--crimson); text-decoration: none; }

/* ---------- policy pages ---------- */
.policy { max-width: 860px; margin: 0 auto; }
.policy-sec { border-top: 1px solid var(--line-ivory); padding: 34px 0; }
.policy-sec .num { font-family: var(--serif); font-size: 26px; font-weight: 300; color: var(--crimson); }
.policy-sec h3 { font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--stage); margin: 10px 0 12px; }
.policy-sec p { font-size: 15px; color: var(--ink-60); line-height: 1.75; margin-bottom: 10px; max-width: 72ch; }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--footer); border-top: 1px solid rgba(250, 249, 246, 0.08); padding: 72px 0 34px; overflow: hidden; }
.footer-mark { position: absolute; right: 18px; bottom: -30px; font-family: var(--serif); font-weight: 700; font-size: 240px; line-height: 1; color: rgba(250, 249, 246, 0.03); pointer-events: none; user-select: none; }
.footer-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(30px, 4vw, 56px); }
.footer-grid h4 { font-family: var(--cinzel); font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { text-decoration: none; font-size: 13px; color: var(--w-60); transition: color var(--t-fast) var(--ease); }
.footer-grid a:hover { color: #fff; }
.footer-brand p { font-size: 12.5px; color: var(--w-60); line-height: 1.7; max-width: 34ch; margin-top: 18px; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid rgba(250, 249, 246, 0.16); color: var(--w-60); font-size: 12px; font-weight: 700;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.footer-social a:hover { border-color: var(--w-80); color: #fff; }
.footer-contact { font-size: 12.5px; color: var(--w-60); line-height: 1.8; }
.footer-contact b { color: var(--w-80); font-weight: 600; }
.footer-base { position: relative; z-index: 2; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(250, 249, 246, 0.08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 11.5px; color: var(--w-40); }
.footer-base button { text-decoration: underline; text-underline-offset: 3px; font-size: inherit; color: inherit; }
.footer-base button:hover { color: #fff; }

/* ---------- dialogs ---------- */
dialog { border: 0; padding: 0; background: transparent; color: inherit; margin: 0; }
dialog:not([open]) { display: none !important; }
dialog[open] {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  z-index: 1000;
}
dialog::backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 9, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
}
.dialog-ivory {
  background: var(--ivory);
  color: var(--ink-80);
  width: min(560px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.dialog-ivory .inner { padding: 44px 46px; text-align: center; }
.dialog-ivory h2 { font-family: var(--serif); font-weight: 600; font-size: 30px; color: var(--stage); margin: 16px 0 14px; }
.dialog-ivory p { font-size: 14px; color: var(--ink-60); line-height: 1.7; margin-bottom: 12px; }
.dialog-ivory .seal-line { display: flex; justify-content: center; }
.dialog-ivory .btn { margin-top: 14px; }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; display: grid; place-items: center; font-size: 20px; color: var(--ink-60); }
.dialog-close:hover { color: var(--stage); }

/* consultation modal */
.dialog-consult {
  width: min(920px, 94vw);
  max-height: 90vh;
  background: var(--ivory);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  overflow: hidden;
}
.dialog-consult[open] { display: flex !important; }
.consult-side { width: 300px; flex-shrink: 0; background: var(--stage); color: var(--w-80); padding: 40px 32px; display: flex; flex-direction: column; }
.consult-side .kicker { color: var(--w-60); }
.consult-side-heading { font-family: var(--serif); font-weight: 600; font-size: 26px; color: #fff; margin: 14px 0 18px; line-height: 1.25; }
.consult-toggle { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; width: 100%; padding: 0; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: default; }
.consult-toggle-text { flex: 1; }
.consult-chevron { display: none; }
.consult-side-details { display: block; }
.consult-side p { font-size: 12.5px; color: var(--w-60); line-height: 1.7; }
.consult-steps { display: flex; gap: 10px; margin-top: auto; padding-top: 28px; }
.consult-steps span { width: 30px; height: 30px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgba(250,249,246,0.1); color: var(--w-40); }
.consult-steps span.on { background: var(--crimson); color: #fff; }
.consult-main { flex: 1; padding: 40px 42px; overflow-y: auto; position: relative; }
.consult-main h3 { font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--stage); margin-bottom: 22px; }
.consult-review { border: 1px solid var(--line-ivory); background: #fff; font-size: 13px; }
.consult-review div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 14px; border-bottom: 1px solid rgba(12,12,14,0.08); }
.consult-review div:last-child { border-bottom: 0; }
.consult-review span { color: var(--ink-60); }
.consult-review b { color: var(--stage); font-weight: 600; text-align: right; }
.consult-review b.crimson { color: var(--crimson); }
.consult-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ink-60); line-height: 1.6; }
.checkline input { margin-top: 3px; accent-color: var(--crimson); }
.step-pane { display: grid; gap: 18px; }
.step-pane[hidden] { display: none; }

/* practice detail */
.dialog-area { width: min(680px, 94vw); max-height: 88vh; overflow-y: auto; background: var(--ivory); color: var(--ink-80); box-shadow: 0 30px 80px rgba(0,0,0,0.55); }
.dialog-area .inner { padding: 44px 46px; }
.dialog-area h2 { font-family: var(--serif); font-weight: 600; font-size: 32px; color: var(--stage); margin: 14px 0 12px; }
.dialog-area p { font-family: var(--serif); font-size: 17.5px; line-height: 1.7; color: var(--ink-80); margin-bottom: 14px; }
.dialog-area ul { list-style: none; margin: 14px 0; columns: 1; }
.dialog-area li { font-size: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line-ivory); }
.dialog-area li::before { content: "—"; color: var(--crimson); margin-right: 10px; }

/* ---------- reveals ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .split, .split.rev, .featured-art { grid-template-columns: 1fr; }
  .cols3, .cols4 { grid-template-columns: 1fr; gap: 34px; }
  .testis { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr; gap: 30px; }
  .stat { border-left: 0; border-top: 1px solid var(--line-dark); padding-top: 26px; }
  .stat:first-child { border-top: 0; padding-top: 8px; }
  .dialog-consult { width: min(580px, 94vw); max-height: 90vh; overflow-y: auto; }
  .dialog-consult[open] { display: block !important; }
  .consult-side { display: flex !important; flex-direction: column; width: 100%; flex-shrink: 0; padding: 24px 28px 22px; }
  .consult-side-heading { font-size: 22px; margin: 10px 0 0; }
  .consult-toggle { cursor: pointer; }
  .consult-toggle:focus-visible { outline: 2px solid var(--w-80); outline-offset: 4px; }
  .consult-chevron { display: block; flex: 0 0 auto; width: 13px; height: 13px; margin-top: 5px; border-right: 2px solid var(--w-80); border-bottom: 2px solid var(--w-80); transform: rotate(45deg); transition: transform 0.3s ease; }
  .consult-side.open .consult-chevron { transform: rotate(-135deg); }
  .consult-side-details { display: none; margin-top: 14px; }
  .consult-side.open .consult-side-details { display: block; }
  .consult-address { display: none; }
  .consult-steps { margin-top: 20px; padding-top: 0; }
  .consult-main { max-height: none; overflow-y: visible; padding: 28px 28px 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .map-frame { height: 440px; min-height: 440px; }
  .map-frame iframe { height: 440px; min-height: 440px; }
}
@media (max-width: 760px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { text-decoration: none; padding: 13px 4px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--w-80); border-bottom: 1px solid var(--line-dark-soft); }
  .mobile-nav .btn { margin-top: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .reg-row { grid-template-columns: 44px 1fr; }
  .reg-meta { grid-column: 2; text-align: left; margin-top: 4px; }
  .reg-detail { padding-left: 6px; grid-template-columns: 1fr; }
  .reg-detail ul { columns: 1; }
  .header-inner { height: 74px; }
  .mobile-nav { top: 74px; }
  .art-open-inner { padding-left: 6px; }
  .dialog-ivory .inner, .dialog-area .inner, .consult-main { padding: 30px 24px; }
  .consult-side { padding: 22px 24px 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .map-frame { height: auto; min-height: 0; }
  .map-frame iframe { height: 360px; min-height: 360px; }
  .map-card { position: static; max-width: none; border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .reg-body, .faq-a, .art-open { transition: none; }
}
