/* Mhlaba & Associates — brand system "Refine": quill, navy, brass, ivory. */

:root {
  --ink-navy: #0F1F3A;
  --quill-navy: #16294B;
  --brass: #B08A4E;
  --brass-dark: #7A5C2B;
  --brass-light: #C9A86A;
  --ivory: #F7F4EE;
  --stone: #EFEBE3;
  --rule: #D9D2C3;
  --slate: #5B6472;
  --body: #3A4352;
  --white: #FFFFFF;
  --error: #9B1C1C;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --caps: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --card-shadow: 0 1px 2px rgba(15, 31, 58, 0.05), 0 14px 30px -18px rgba(15, 31, 58, 0.22);
  color-scheme: light;
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--ivory); color: var(--body); font: 400 17px/1.6 var(--sans); font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink-navy); outline-offset: 3px; border-radius: 2px; }
.site-header :focus-visible, .hero :focus-visible, .focus__detail :focus-visible, .site-footer :focus-visible, .dock :focus-visible, .area--ask:focus-visible { outline-color: var(--brass-light); }

.skip { position: absolute; left: 12px; top: -64px; z-index: 100; padding: 12px 16px; background: var(--brass); color: var(--ink-navy); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.i { width: 18px; height: 18px; flex: none; }

/* ---------- Type ---------- */
.h1, .h2, .h3 { font-family: var(--serif); font-weight: 600; color: var(--ink-navy); text-wrap: balance; }
.h1 { font-size: clamp(44px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.012em; }
.h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -0.008em; }
.h3 { font-size: clamp(23px, 2.2vw, 28px); line-height: 1.15; }
.eyebrow { font: 500 11.5px/1.5 var(--caps); letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass-dark); }
.lede { font-size: 19px; line-height: 1.55; }
.measure { max-width: 780px; }
.measure > * + *, .section__head > * + * { margin-top: 18px; }

/* ---------- Layout ---------- */
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--stone { background: var(--stone); }
.section--flush-top { padding-top: 0; }
.section__head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section__more { margin-top: clamp(28px, 4vw, 44px); }
.split { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .split--form { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .split .section__head { margin-bottom: 0; position: sticky; top: 120px; }
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid transparent; border-radius: 3px; cursor: pointer;
  font: 600 16px/1.2 var(--sans); text-decoration: none; text-align: center;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--brass { background: var(--brass); color: var(--ink-navy); }
.btn--brass:hover { background: var(--brass-light); }
.btn--outline { border-color: rgba(247, 244, 238, 0.6); color: var(--ivory); }
.btn--outline:hover { background: var(--ivory); border-color: var(--ivory); color: var(--ink-navy); }
.btn--navy { background: var(--ink-navy); color: var(--ivory); }
.btn--navy:hover { background: var(--quill-navy); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font: 600 16.5px/1.3 var(--sans); color: var(--brass-dark); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 5px;
  transition: color 0.2s;
}
.link .i { transition: transform 0.25s var(--ease); }
.link:hover { color: var(--ink-navy); }
.link:hover .i { transform: translateX(4px); }

/* ---------- Logo lockup ---------- */
.brand { display: inline-block; text-decoration: none; }
.lockup { display: inline-flex; align-items: center; gap: 12px; color: var(--ivory); }
.lockup__quill { width: auto; height: 44px; filter: brightness(0) invert(0.96); }
.lockup__text { display: flex; flex-direction: column; }
.lockup__top { font: 700 23px/1 var(--serif); letter-spacing: 0.16em; }
.lockup__bottom { margin-top: 5px; font: 500 8.5px/1 var(--caps); letter-spacing: 0.42em; }
.lockup--full .lockup__quill { height: 62px; }
.lockup--full .lockup__top { font-size: 30px; }
.lockup--full .lockup__bottom { font-size: 10px; margin-top: 7px; }
.lockup__rule { height: 1px; margin-top: 10px; background: var(--brass); }
.lockup__tag { margin-top: 9px; font: 400 8.5px/1 var(--caps); letter-spacing: 0.5em; text-transform: uppercase; color: rgba(247, 244, 238, 0.78); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink-navy); color: var(--ivory); border-bottom: 1px solid rgba(247, 244, 238, 0.1); }
.site-header__bar { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); margin-left: auto; }
.nav a:not(.btn) { position: relative; display: inline-flex; align-items: center; min-height: 44px; font: 600 16px/1 var(--sans); text-decoration: none; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--brass-light); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { margin-left: 6px; }
.header-phone, .menu-btn { display: none; }
@media (max-width: 1040px) {
  .site-header__bar { min-height: 64px; }
  .lockup__quill { height: 38px; }
  .lockup__top { font-size: 20px; }
  .header-phone { display: inline-flex; align-items: center; gap: 8px; min-width: 44px; min-height: 44px; justify-content: center; margin-left: auto; font: 600 15.5px/1 var(--sans); text-decoration: none; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px 0 8px; background: none; border: 0; cursor: pointer; font: 600 16px/1 var(--sans); color: var(--ivory); }
  .menu-btn__icon { position: relative; width: 20px; height: 12px; }
  .menu-btn__icon::before, .menu-btn__icon::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform 0.25s var(--ease), top 0.25s var(--ease); }
  .menu-btn__icon::before { top: 0; }
  .menu-btn__icon::after { top: 10px; }
  .menu-btn[aria-expanded="true"] .menu-btn__icon::before { top: 5px; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-btn__icon::after { top: 5px; transform: rotate(-45deg); }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    display: block; padding: 4px var(--gutter) 24px;
    background: var(--ink-navy); border-bottom: 1px solid rgba(247, 244, 238, 0.14);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s 0.25s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav a:not(.btn) { display: flex; min-height: 54px; font-size: 19px; border-bottom: 1px solid rgba(247, 244, 238, 0.12); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { display: flex; margin: 20px 0 0; }
}
@media (max-width: 430px) { .header-phone span { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink-navy); color: var(--ivory); padding-block: clamp(48px, 8vw, 112px) clamp(56px, 8vw, 112px); }
.hero__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 2.4s ease; pointer-events: none; }
.hero__film.is-on { opacity: 0.36; }
.hero__grid { position: relative; z-index: 1; display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.hero .eyebrow { color: var(--brass-light); }
.eyebrow--rule { display: flex; align-items: center; gap: 14px; }
.eyebrow--rule::before { content: ""; flex: none; width: 40px; height: 1px; background: var(--brass); transform-origin: left; animation: rule-in 0.9s var(--ease) 0.15s both; }
@keyframes rule-in { from { transform: scaleX(0); } }
.hero .h1 { margin-top: 22px; color: var(--ivory); }
.hero__intro { margin-top: 24px; max-width: 35em; font-size: clamp(17px, 1.5vw, 19px); color: rgba(247, 244, 238, 0.9); }
.hero .actions { margin-top: 30px; }
.hero__wa { margin-top: 18px; font-size: 16px; color: rgba(247, 244, 238, 0.82); }
.hero__wa a { display: inline-flex; align-items: center; min-height: 44px; color: var(--brass-light); text-underline-offset: 4px; }

.steps-card { background: var(--quill-navy); border: 1px solid rgba(247, 244, 238, 0.14); padding: clamp(24px, 3vw, 38px); }
.steps-card__title { font: 600 clamp(24px, 2.2vw, 28px)/1.12 var(--serif); color: var(--ivory); }
.steps-card__list { margin-top: 24px; counter-reset: step; }
.steps-card__list li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding-bottom: 22px; counter-increment: step; animation: step-in 0.6s var(--ease) both; animation-delay: calc(0.35s + var(--n) * 0.4s); }
.steps-card__list li:nth-child(1) { --n: 0; }
.steps-card__list li:nth-child(2) { --n: 1; }
.steps-card__list li:nth-child(3) { --n: 2; padding-bottom: 0; }
.steps-card__list li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--brass-light); border-radius: 50%; font: 600 23px/1 var(--serif); padding-bottom: 2px; color: var(--brass-light); background: var(--quill-navy); position: relative; z-index: 1; }
.steps-card__list li:not(:last-child)::after { content: ""; position: absolute; left: 19.5px; top: 40px; bottom: 0; width: 1px; background: rgba(201, 168, 106, 0.55); transform-origin: top; animation: line-down 0.5s ease-out both; animation-delay: calc(0.75s + var(--n) * 0.4s); }
.steps-card__list span { padding-top: 7px; color: rgba(247, 244, 238, 0.92); }
@keyframes step-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes line-down { from { transform: scaleY(0); } }

/* ---------- Credentials ---------- */
.creds { background: var(--stone); border-bottom: 1px solid var(--rule); }
.creds__list { display: grid; gap: 0; padding-block: 8px; }
.creds__list li { position: relative; padding: 16px 0 16px 22px; font: 600 15.5px/1.4 var(--sans); color: var(--ink-navy); border-bottom: 1px solid var(--rule); }
.creds__list li:last-child { border-bottom: 0; }
.creds__list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 1px; background: var(--brass); }
@media (min-width: 860px) {
  .creds__list { grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 32px; }
  .creds__list li { border-bottom: 0; padding-block: 18px; }
}

/* ---------- Focus panel ---------- */
.focus { display: grid; background: var(--white); border: 1px solid var(--rule); box-shadow: var(--card-shadow); }
@media (min-width: 900px) { .focus { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.focus__lead, .focus__detail { padding: clamp(28px, 5vw, 64px); }
.focus__lead > * + * { margin-top: 18px; }
.focus__detail { background: var(--ink-navy); color: var(--ivory); display: flex; flex-direction: column; justify-content: space-between; gap: 36px; }
.focus__items a { position: relative; display: block; padding: 18px 44px 18px 0; text-decoration: none; border-bottom: 1px solid rgba(247, 244, 238, 0.16); }
.focus__items li:first-child a { padding-top: 0; }
.focus__name { display: block; font: 600 clamp(24px, 2.2vw, 28px)/1.15 var(--serif); color: var(--ivory); transition: color 0.2s; }
.focus__line { display: block; margin-top: 6px; color: rgba(247, 244, 238, 0.82); }
.focus__items .i { position: absolute; right: 4px; top: 50%; margin-top: -9px; color: var(--brass-light); transition: transform 0.25s var(--ease); }
.focus__items li:first-child .i { margin-top: -18px; }
.focus__items a:hover .focus__name { color: var(--brass-light); }
.focus__items a:hover .i { transform: translateX(5px); }
.limit__bar { position: relative; height: 6px; background: rgba(247, 244, 238, 0.18); }
.limit__notice { position: absolute; left: 0; top: 0; bottom: 0; width: 16.67%; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) 0.2s; }
.limit__bar::after { content: ""; position: absolute; left: 16.67%; top: -5px; bottom: -5px; width: 1px; background: var(--brass-light); }
.limit.is-in .limit__notice { transform: none; }
.limit__labels { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding-left: 16.67%; font: 500 10.5px/1.4 var(--caps); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(247, 244, 238, 0.8); }
.numbered li::before, .journey__n, .steps-card__list li::before { font-variant-numeric: lining-nums; }
.limit__six { color: var(--brass-light); }
.limit__note { margin-top: 18px; color: var(--brass-light); }

/* ---------- Practice area cards ---------- */
.areas { display: grid; gap: 16px; }
@media (min-width: 620px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .areas { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.area { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 210px; padding: 26px 24px 22px; background: var(--white); border: 1px solid var(--rule); text-decoration: none; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.area::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.area p { margin-top: 10px; color: var(--body); font-size: 16px; line-height: 1.5; }
.area .i { margin-top: auto; padding-top: 0; color: var(--brass-dark); transform: translateY(0); transition: transform 0.25s var(--ease); }
.area p + .i { margin-top: auto; }
.area > p { margin-bottom: 20px; }
.area:hover, .area:focus-visible { transform: translateY(-3px); box-shadow: var(--card-shadow); }
.area:hover::before, .area:focus-visible::before { transform: scaleX(1); }
.area:hover .i { transform: translateX(5px); }
.area--ask { background: var(--ink-navy); border-color: var(--ink-navy); }
.area--ask .h3 { color: var(--ivory); }
.area--ask p { color: rgba(247, 244, 238, 0.85); }
.area--ask .i { color: var(--brass-light); }

/* ---------- How we work ---------- */
.work { display: grid; gap: 40px; }
@media (min-width: 860px) { .work { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); } }
.work__step { position: relative; padding-top: 8px; }
.work__step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease) var(--step-delay, 0s); }
.work.is-in .work__step::before { transform: none; }
.work__step .h3 { margin-top: 4px; }
.work__step p { margin-top: 10px; max-width: 32em; }
.scene { width: min(100%, 300px); height: auto; margin: 10px 0 6px -18px; fill: none; stroke: var(--ink-navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.scene .page { fill: var(--white); }
.scene .faint { stroke: var(--slate); stroke-opacity: 0.38; }
.scene .doc { transform-box: fill-box; transform-origin: center; transform: translate(var(--x), var(--y)) rotate(var(--r)); transition: transform 1s var(--ease) calc(var(--step-delay, 0s) + var(--d, 0s)); }
.is-in .doc { transform: translate(var(--tx), var(--ty)) rotate(var(--tr)); }
.scene .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease) calc(var(--step-delay, 0s) + var(--d, 0s)); }
.is-in .draw { stroke-dashoffset: 0; }
.scene .chosen { stroke: var(--brass-dark); stroke-width: 3.5; }
.scene .pop { transform-box: fill-box; transform-origin: center; scale: 0; transition: scale 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) calc(var(--step-delay, 0s) + var(--d, 0s)); }
.is-in .pop { scale: 1; }
.scene .dot { fill: var(--brass); stroke: none; }
.scene .node { fill: var(--ink-navy); stroke: none; }
.scene .seal { stroke: var(--brass); stroke-width: 2.5; }
@media (min-width: 860px) {
  .work__step:nth-child(2) { --step-delay: 0.6s; }
  .work__step:nth-child(3) { --step-delay: 1.2s; }
}

/* ---------- About teaser ---------- */
.about-teaser { position: relative; overflow: hidden; }
.about-teaser .wrap { position: relative; }
.about-teaser__mark { position: absolute; right: -3%; top: 50%; width: min(44vw, 540px); transform: translateY(-50%); opacity: 0.07; pointer-events: none; }
@media (max-width: 899px) { .about-teaser__mark { width: 78vw; right: -22%; opacity: 0.05; } }

/* ---------- Questions ---------- */
.qa { border-top: 1px solid var(--rule); }
.qa:last-of-type { border-bottom: 1px solid var(--rule); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; font: 600 clamp(21px, 2vw, 25px)/1.2 var(--serif); color: var(--ink-navy); }
.qa summary::-webkit-details-marker { display: none; }
.qa__icon { position: relative; flex: none; width: 18px; height: 18px; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--brass-dark); transition: transform 0.3s var(--ease); }
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon::after { transform: rotate(0deg); }
.qa__body { padding: 0 38px 22px 0; }
.qa__body p { max-width: 60ch; }
.qa::details-content { block-size: 0; overflow: clip; transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete; }
.qa[open]::details-content { block-size: auto; }

/* ---------- Contact details ---------- */
.lede + .details { margin-top: 28px; }
.h2 + .lede { margin-top: 16px; }
.details { border-top: 1px solid var(--rule); }
.details > div { display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: center; min-height: 56px; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.details dt { font: 500 10.5px/1.6 var(--caps); letter-spacing: 0.2em; text-transform: uppercase; color: var(--slate); }
.details dd { font: 600 17px/1.45 var(--sans); color: var(--ink-navy); overflow-wrap: anywhere; }
.details a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.details a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Enquiry form ---------- */
.form-card { background: var(--white); border: 1px solid var(--rule); box-shadow: var(--card-shadow); padding: clamp(22px, 3.4vw, 40px); }
.form { display: grid; gap: 20px; }
.form__row { display: grid; gap: 20px; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__key { font-size: 15px; color: var(--slate); }
.req { color: var(--brass-dark); font-weight: 600; }
.opt { color: var(--slate); font-weight: 400; }
.field { min-width: 0; border: 0; }
.field > label:not(.check), .field legend { display: block; margin-bottom: 6px; font: 600 15.5px/1.35 var(--sans); color: var(--ink-navy); }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 13px;
  background: var(--white); border: 1px solid var(--slate); border-radius: 3px;
  font: 400 17px/1.4 var(--sans); color: var(--ink-navy);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230F1F3A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 14px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink-navy); outline-offset: 2px; border-color: var(--ink-navy); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--slate); border-radius: 99px; font: 600 16px/1 var(--sans); color: var(--ink-navy); transition: background-color 0.2s, color 0.2s; }
.choice input:checked + span { background: var(--ink-navy); border-color: var(--ink-navy); color: var(--ivory); }
.choice input:focus-visible + span { outline: 2px solid var(--ink-navy); outline-offset: 3px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 15.5px; line-height: 1.5; cursor: pointer; }
.check input { appearance: none; display: grid; place-items: center; width: 24px; height: 24px; margin: 1px 0 0; background: var(--white); border: 1px solid var(--slate); border-radius: 3px; cursor: pointer; }
.check input::after { content: ""; width: 12px; height: 7px; border: solid var(--ivory); border-width: 0 0 2.5px 2.5px; rotate: -45deg; translate: 0 -2px; scale: 0; transition: scale 0.2s var(--ease); }
.check input:checked { background: var(--ink-navy); border-color: var(--ink-navy); }
.check input:checked::after { scale: 1; }
.check a { color: var(--brass-dark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field__error { margin-top: 6px; font: 600 15px/1.4 var(--sans); color: var(--error); }
.field.is-invalid input:not([type="radio"]):not([type="checkbox"]), .field.is-invalid select, .field.is-invalid textarea, .field.is-invalid .check input { border-color: var(--error); border-width: 2px; }
.form__note { font-size: 15px; color: var(--slate); }
.form__status { padding: 14px 16px; background: var(--stone); border-left: 3px solid var(--error); color: var(--ink-navy); }
.form__status[hidden], .form__thanks[hidden], .form[hidden] { display: none; }
.form__thanks > * + * { margin-top: 12px; }
.form__thanks { padding-top: 6px; border-top: 2px solid var(--brass); }
.form__thanks .h3 { padding-top: 18px; font-size: clamp(28px, 3vw, 36px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-navy); color: var(--ivory); padding-block: clamp(48px, 6vw, 80px) 28px; }
.site-footer__top { display: grid; gap: 36px; }
@media (min-width: 860px) { .site-footer__top { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); } }
.site-footer__line { margin-top: 20px; font-size: 15.5px; color: rgba(247, 244, 238, 0.8); }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; font: 600 16px/1.3 var(--sans); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--brass-light); text-underline-offset: 5px; }
.site-footer__contact li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; min-height: 48px; padding: 2px 0; }
.site-footer__contact span { font: 500 10px/1.6 var(--caps); letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-light); }
.site-footer__contact a, .site-footer__contact address { font: 600 16px/1.45 var(--sans); text-decoration: none; overflow-wrap: anywhere; }
.site-footer__contact a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(247, 244, 238, 0.14); font-size: 14.5px; line-height: 1.55; color: rgba(247, 244, 238, 0.74); padding-right: max(0px, calc(100% - 74ch)); }

/* ---------- Phone action bar ---------- */
.dock { display: none; }
@media (max-width: 860px) {
  .dock { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; gap: 6px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--ink-navy); border-top: 1px solid rgba(247, 244, 238, 0.16); transition: transform 0.3s var(--ease); }
  .dock .btn { flex: 1 1 auto; min-height: 46px; padding: 8px 8px; font-size: 15px; white-space: nowrap; }
  body { padding-bottom: 66px; }
  body:has(.form :focus) .dock { transform: translateY(110%); }
}

/* ================= Inner pages ================= */
.h2--sm { font-size: clamp(27px, 3vw, 36px); line-height: 1.1; }
.h1--page { font-size: clamp(38px, 5.2vw, 66px); line-height: 1.04; }
.section--page-top { padding-top: clamp(40px, 6vw, 80px); }

.page-hero { background: var(--ink-navy); color: var(--ivory); padding-block: clamp(36px, 6vw, 80px) clamp(40px, 6vw, 84px); }
.page-hero :focus-visible { outline-color: var(--brass-light); }
.page-hero .eyebrow { color: var(--brass-light); }
.page-hero .h1 { margin-top: 14px; color: var(--ivory); max-width: 18ch; }
.page-hero__intro { margin-top: 22px; max-width: 46em; font-size: clamp(17px, 1.5vw, 19px); color: rgba(247, 244, 238, 0.9); }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 22px; font-size: 15px; color: rgba(247, 244, 238, 0.75); }
.crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.crumbs a, .crumbs span { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.crumbs li + li::before { content: "/"; color: var(--brass-light); }

.prose > * + * { margin-top: 16px; }
.prose > .h2 { margin-top: 40px; }
.prose > .h2:first-child { margin-top: 0; }
.prose a:not(.link) { color: var(--brass-dark); text-underline-offset: 4px; }

.ticks { margin-top: 20px; border-top: 1px solid var(--rule); }
.ticks li { position: relative; padding: 13px 0 13px 34px; border-bottom: 1px solid var(--rule); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 14px; height: 8px; border: solid var(--brass); border-width: 0 0 2px 2px; rotate: -45deg; }
.ticks--sm li { padding-block: 10px; font-size: 16px; line-height: 1.5; }
.ticks--sm li::before { top: 16px; }
.numbered { margin-top: 20px; counter-reset: n; border-top: 1px solid var(--rule); }
.numbered li { position: relative; padding: 14px 0 14px 46px; border-bottom: 1px solid var(--rule); counter-increment: n; }
.numbered li::before { content: counter(n); position: absolute; left: 2px; top: 9px; font: 600 28px/1.2 var(--serif); color: var(--brass-dark); }
.plain li + li { margin-top: 12px; }

/* Practice area page */
.area-page { display: grid; gap: clamp(36px, 5vw, 72px); }
@media (min-width: 960px) {
  .area-page { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
  .area-page__side { position: sticky; top: 104px; }
}
.area-page__main > section + section { margin-top: clamp(40px, 5vw, 60px); }
.area-page__main .prose { margin-top: 18px; }
.area-page__side { display: grid; gap: 20px; }
.side-card { background: var(--white); border: 1px solid var(--rule); box-shadow: var(--card-shadow); padding: clamp(22px, 2.6vw, 32px); }
.side-card .ticks { margin-top: 14px; }
.side-card__note { margin-top: 14px; font-size: 15.5px; color: var(--slate); }
.side-card--navy { background: var(--ink-navy); border-color: var(--ink-navy); color: rgba(247, 244, 238, 0.92); }
.side-card--navy .h3 { color: var(--brass-light); }
.side-card--navy .limit__bar { margin-top: 20px; }
.side-card--navy .plain { margin-top: 18px; font-size: 16px; line-height: 1.55; }
.areas--three { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .areas--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Call to action band */
.cta-band { background: var(--ink-navy); color: var(--ivory); padding-block: clamp(48px, 6vw, 80px); }
.cta-band :focus-visible { outline-color: var(--brass-light); }
.cta-band__grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) {
  .cta-band__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cta-band .actions { justify-content: flex-end; }
}
.cta-band .h2 { color: var(--ivory); }
.cta-band p { margin-top: 12px; max-width: 34em; color: rgba(247, 244, 238, 0.88); }
.site-footer { border-top: 1px solid rgba(247, 244, 238, 0.12); }

/* How we work */
.journey { display: grid; gap: clamp(48px, 7vw, 96px); }
.journey__group { display: grid; gap: 20px; }
@media (min-width: 900px) {
  .journey__group { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
  .journey__head { position: sticky; top: 104px; }
}
.journey__head { border-top: 2px solid var(--brass); padding-top: 8px; }
.journey__head .scene { width: min(100%, 280px); }
.journey__steps li { position: relative; padding: 0 0 34px 64px; }
.journey__steps li:last-child { padding-bottom: 0; }
.journey__n { position: absolute; left: 0; top: -4px; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; padding-bottom: 2px; border: 1px solid var(--brass); border-radius: 50%; background: var(--ivory); font: 600 23px/1 var(--serif); color: var(--brass-dark); }
.journey__steps li::before { content: ""; position: absolute; left: 20.5px; top: 38px; bottom: -4px; width: 1px; background: var(--brass); transform: scaleY(0); transform-origin: top; transition: transform 0.9s var(--ease) 0.3s; }
.journey__steps li:last-child::before { display: none; }
.journey__group.is-in .journey__steps li::before { transform: none; }
.journey__steps p { margin-top: 8px; max-width: 60ch; }

/* About */
.about { display: grid; gap: clamp(32px, 5vw, 72px); }
.about__text { max-width: 780px; }
.about__text > .h2 { margin-top: 44px; }
.about__text .details { margin-top: 18px; }
@media (min-width: 900px) { .about:has(.about__portrait) { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; } }
.about__portrait img { width: 100%; }
.details--wide > div { grid-template-columns: 124px 1fr; align-items: baseline; padding: 14px 0; }
.details--wide a { min-height: 0; text-decoration: underline; text-underline-offset: 4px; }

/* FAQ page */
.faq-page { display: grid; gap: clamp(44px, 6vw, 72px); }
.faq-group { display: grid; gap: 18px; }
@media (min-width: 900px) { .faq-group { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: start; } }

/* Map (loaded only when asked for) */
.map { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.map iframe { flex: 1 1 100%; width: 100%; height: 320px; border: 1px solid var(--rule); }

/* ================= Motion =================
   Rules of the house: text is never hidden waiting for an animation; only lines, icons and
   marks move. Everything animates transform, opacity or stroke only. Without JavaScript, or
   with reduced motion switched on, every drawing simply appears finished. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out 0.16s ease both; }
::view-transition-new(root) { animation: vt-in 0.3s ease both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes redraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes drift-y { from { translate: 0 -8px; } to { translate: 0 10px; } }

/* Section headings: the brass rule draws itself */
.eyebrow--draw { display: flex; align-items: center; gap: 14px; }
.eyebrow--draw::before { content: ""; flex: none; width: 40px; height: 1px; background: var(--brass); transform-origin: left; transition: transform 0.9s var(--ease) 0.1s; }
.js [data-reveal]:not(.is-in) .eyebrow--draw::before { transform: scaleX(0); }

/* Practice-area drawings */
.ico { display: block; width: 46px; height: 46px; margin-bottom: 18px; fill: none; stroke: var(--ink-navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.ico .a { stroke: var(--brass); }
.ico path, .ico circle { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js [data-reveal] .ico path, .js [data-reveal] .ico circle { stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease) calc(var(--i, 0) * 110ms + 0.1s); }
.js [data-reveal] .ico .a { transition-delay: calc(var(--i, 0) * 110ms + 0.6s); }
.js [data-reveal].is-in .ico path, .js [data-reveal].is-in .ico circle { stroke-dashoffset: 0; }
.area:hover .ico .a, .area:focus-visible .ico .a, .focus__items a:hover .ico .a { animation: redraw 0.8s var(--ease); }
.area--ask .ico { stroke: var(--ivory); }
.area--ask .ico .a { stroke: var(--brass-light); }
.focus__items a { padding-left: 64px; }
.focus__items .ico { position: absolute; left: 0; top: 20px; width: 44px; height: 44px; margin: 0; stroke: var(--ivory); }
.focus__items li:first-child .ico { top: 2px; }
.focus__items .ico .a { stroke: var(--brass-light); }

/* Lists: ticks and numerals arrive one after another */
.ticks li:nth-child(2), .numbered li:nth-child(2) { --n: 1; }
.ticks li:nth-child(3), .numbered li:nth-child(3) { --n: 2; }
.ticks li:nth-child(4), .numbered li:nth-child(4) { --n: 3; }
.ticks li:nth-child(5), .numbered li:nth-child(5) { --n: 4; }
.ticks li:nth-child(6), .numbered li:nth-child(6) { --n: 5; }
.js .ticks[data-reveal] li::before { scale: 0; transition: scale 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) calc(var(--n, 0) * 110ms + 0.15s); }
.js .ticks[data-reveal].is-in li::before { scale: 1; }
.js .numbered[data-reveal] li::before { opacity: 0; translate: -10px 0; transition: opacity 0.5s ease calc(var(--n, 0) * 120ms + 0.1s), translate 0.5s var(--ease) calc(var(--n, 0) * 120ms + 0.1s); }
.js .numbered[data-reveal].is-in li::before { opacity: 1; translate: 0 0; }

/* Call-to-action band: one line of ink runs across */
.cta-band { position: relative; overflow: hidden; }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band__ink { position: absolute; left: 0; bottom: 0; width: 100%; height: 34%; fill: none; stroke: var(--brass); stroke-width: 1.8; opacity: 0.45; pointer-events: none; }
.cta-band__ink path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .cta-band[data-reveal] .cta-band__ink path { stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease) 0.2s; }
.js .cta-band[data-reveal].is-in .cta-band__ink path { stroke-dashoffset: 0; }

/* Inner-page heroes share a quieter ink film */
.page-hero { position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .hero__film.is-on { opacity: 0.3; }

/* Small touches */
.about-teaser__mark { animation: drift-y 9s ease-in-out infinite alternate; }
.creds__list li::before { transform-origin: left; animation: rule-in 0.7s var(--ease) both; }
.creds__list li:nth-child(2)::before { animation-delay: 0.15s; }
.creds__list li:nth-child(3)::before { animation-delay: 0.3s; }
.qa[open] .qa__body { animation: fade-in 0.45s ease 0.05s both; }
.map iframe { animation: fade-in 0.6s ease both; }
.sent { width: 52px; height: 52px; margin-top: 18px; fill: none; stroke: var(--brass-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sent circle, .sent path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.form__thanks:not([hidden]) .sent circle { animation: redraw 0.7s var(--ease) both; }
.form__thanks:not([hidden]) .sent path { animation: redraw 0.5s var(--ease) 0.55s both; }

/* No JavaScript: show every drawing finished */
html:not(.js) .scene .doc { transform: translate(var(--tx), var(--ty)) rotate(var(--tr)); }
html:not(.js) .scene .draw { stroke-dashoffset: 0; }
html:not(.js) .scene .pop { scale: 1; }
html:not(.js) .limit__notice, html:not(.js) .work__step::before, html:not(.js) .journey__steps li::before { transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; transition-delay: 0s !important; }
  @view-transition { navigation: none; }
}
