/* José M. Alpuche, Attorney-at-Law: site styles.
   Built from design/homepage-reference.css in the handoff and extended for interior pages. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #11171b;
  --deep: #151d22;
  --paper: #f6f2eb;
  --sand: #ebe2d3;
  --gold: #e4cba7;
  --gold-hover: #f0dfc7;
  --bronze: #715032;
  --muted: #505b60;
  --on-ink: #e0ded8;
  --on-ink-muted: #b9b6ae;
  --rule: #cfc4b4;
  --rule-dark: #3a4146;
  --focus: #9a6835;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
  --measure: 68ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1.0625rem/1.62 var(--sans); }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; max-width: 100%; height: auto; }
p, figure, h1, h2, h3, ul, ol, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; }
button, summary, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
.shell { width: min(1280px, calc(100% - 104px)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; z-index: 30; top: 12px; left: 12px; padding: .8rem 1rem; color: var(--ink); background: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.arrow { margin-left: .3em; font-family: var(--sans); font-weight: 500; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 10; color: var(--paper); background: var(--ink); border-bottom: 1px solid #393c3c; }
.header-inner { display: flex; justify-content: space-between; gap: 28px; align-items: center; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; white-space: nowrap; }
.mark { display: block; width: 59px; flex: 0 0 59px; aspect-ratio: 513 / 405; background: #000; }
.mark img { width: 100%; height: 100%; }
.brand-text { display: grid; line-height: 1.24; }
.brand-text strong { font: 600 1.3rem/1.15 var(--serif); }
.brand-text span { color: var(--on-ink); font-size: .71rem; }
.desktop-nav { display: flex; gap: clamp(16px, 2.2vw, 36px); align-items: center; }
.desktop-nav a { text-decoration: none; font-size: .84rem; font-weight: 500; padding-block: .4rem; border-bottom: 1px solid transparent; }
.desktop-nav a:hover { border-bottom-color: var(--on-ink-muted); }
.desktop-nav a[aria-current] { color: var(--gold); border-bottom-color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { display: inline-flex; align-items: center; min-height: 40px; padding: .45rem .9rem; color: var(--ink); background: var(--gold); font-size: .82rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.header-cta:hover { background: var(--gold-hover); }
.header-call { display: none; }
.mobile-nav { display: none; }

/* ---------- Buttons and links ---------- */
.button { display: inline-flex; min-height: 47px; align-items: center; justify-content: center; padding: .7rem 1.16rem; font-size: .9rem; font-weight: 600; text-decoration: none; border: 0; }
.button-gold { color: var(--ink); background: var(--gold); }
.button-gold:hover { background: var(--gold-hover); }
.button-outline { color: inherit; background: transparent; border: 1px solid currentColor; }
.text-link { font-size: .94rem; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

/* ---------- Home hero ---------- */
.hero { overflow: hidden; color: var(--paper); background: var(--ink); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.27fr) minmax(0, 1fr); min-height: 638px; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 72px 22px 78px 0; }
.eyebrow { margin-bottom: 22px; color: var(--gold); font-weight: 600; font-size: .74rem; letter-spacing: .19em; text-transform: uppercase; font-style: normal; }
.light .eyebrow, .eyebrow-dark { color: var(--bronze); }
.hero h1 { font-size: clamp(4rem, 6.5vw, 6.4rem); letter-spacing: -.045em; line-height: .93; }
.hero .intro { max-width: 52ch; margin-top: 26px; color: var(--on-ink); font-size: clamp(1rem, 1.2vw, 1.1rem); }
.hero .actions { margin-top: 32px; }
.hero .text-link { color: var(--paper); }
.hero-portrait { display: flex; justify-content: center; align-items: end; background: linear-gradient(90deg, var(--ink), #21282d 25%, #21282d 75%, var(--ink)); }
.portrait-frame { width: min(100%, 435px); aspect-ratio: 710 / 1066; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }

.credentials { background: var(--sand); }
.credentials-inner { display: grid; grid-template-columns: .87fr 1.04fr 1.45fr; align-items: center; gap: 24px; padding-block: 21px; margin-block: 0; padding-inline: 0; list-style: none; }
.credentials-inner li { padding-inline-start: 20px; border-inline-start: 1px solid #8c7151; font-size: .86rem; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(60px, 7.1vw, 104px); }
.section-tight { padding-block: clamp(44px, 5vw, 72px); }
.section-heading { display: grid; grid-template-columns: 1.6fr 1fr; gap: 35px; align-items: end; margin-bottom: 41px; }
.section-heading p { color: var(--muted); max-width: 51ch; }
h2 { font-size: clamp(2.4rem, 4.3vw, 4.4rem); line-height: .98; letter-spacing: -.04em; }
.sand { background: var(--sand); }

/* Home practice grid */
.practice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.practice-card { position: relative; display: flex; flex-direction: column; padding: 26px 26px 28px 0; border-bottom: 1px solid var(--rule); }
.practice-card:not(:nth-child(3n+1)) { padding-left: 26px; border-left: 1px solid var(--rule); }
.practice-card .card-label { margin-bottom: 10px; color: var(--bronze); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.practice-card h3 { font-size: clamp(1.6rem, 2.2vw, 2.15rem); line-height: 1.04; letter-spacing: -.01em; }
.practice-card p { margin-top: 12px; color: var(--muted); font-size: .94rem; }
.practice-card .card-link { margin-top: auto; padding-top: 16px; font-size: .88rem; font-weight: 600; text-decoration: none; }
.practice-card .card-link::after { content: ""; position: absolute; inset: 0; }
.practice-card:hover h3, .practice-card .card-link:focus-visible ~ h3 { text-decoration: underline; text-underline-offset: .14em; text-decoration-thickness: 1px; }
.practice-card:hover .card-link { text-decoration: underline; }
.practice-card:focus-within { background: #efe8dc; }
.practice-card .card-link:focus-visible { outline: none; }
.practice-card:has(.card-link:focus-visible) { outline: 3px solid var(--focus); outline-offset: -3px; }

/* Home team */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(34px, 7vw, 104px); align-items: center; }
.split p { margin-block: 19px 22px; color: var(--muted); max-width: 54ch; }
.photo-frame { overflow: hidden; background: var(--deep); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.janine-frame { aspect-ratio: 984 / 731; }
.person-caption { display: flex; flex-wrap: wrap; gap: 4px 13px; align-items: baseline; margin-top: 12px; }
.person-caption strong { font: 600 1.42rem var(--serif); }
.person-caption span { color: var(--muted); font-size: .8rem; }
.guide-links { margin: 22px 0 24px; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.guide-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: .96rem; text-decoration: none; }
.guide-links a:hover { text-decoration: underline; }
.guide-links .arrow, .practice-card .arrow { color: var(--bronze); }

/* Photo credits under images */
.credit { margin-top: 9px; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.dark .credit { color: var(--on-ink-muted); }

/* ---------- Dark contact band ---------- */
.dark { color: var(--paper); background: var(--deep); }
.contact-band-inner { display: grid; grid-template-columns: 1.55fr 1fr; gap: 40px; align-items: center; }
.contact-band p { max-width: 52ch; margin-block: 19px 26px; color: var(--on-ink); }
.contact-band .text-link { color: var(--paper); }
.related { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--rule-dark); }
.related p { margin: 0 0 8px; color: var(--on-ink-muted); font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.related ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; font-size: .92rem; }
address, .office { padding-left: 21px; border-left: 1px solid #a38d70; color: var(--on-ink); font-style: normal; font-size: .96rem; }
.office a { color: var(--paper); }
.office p + p { margin-top: 14px; }

/* ---------- Interior page head ---------- */
.page-head { color: var(--paper); background: var(--ink); }
.page-head-inner { padding-block: 34px clamp(54px, 6vw, 84px); }
.page-head.has-figure .page-head-inner { padding-bottom: clamp(120px, 14vw, 200px); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 clamp(36px, 5vw, 64px); padding: 0; list-style: none; color: var(--on-ink-muted); font-size: .8rem; }
.breadcrumb li + li::before { content: "/"; margin-inline: .6em; color: #6c6a64; }
.breadcrumb a { color: var(--on-ink); }
.breadcrumb [aria-current] { color: var(--on-ink-muted); }
.page-head h1 { max-width: 18ch; font-size: clamp(3rem, 6vw, 5.6rem); line-height: .95; letter-spacing: -.045em; }
.page-head .standfirst { max-width: 60ch; margin-top: 26px; color: var(--on-ink); font-size: clamp(1.06rem, 1.35vw, 1.22rem); line-height: 1.6; }
.page-head.typographic .page-head-inner { padding-bottom: clamp(64px, 8vw, 112px); }
.page-head.typographic .head-rule { width: 72px; height: 2px; margin-top: 34px; background: var(--gold); }
.head-figure { margin-top: calc(-1 * clamp(84px, 11vw, 160px)); }
.head-figure .frame { position: relative; overflow: hidden; aspect-ratio: 2 / 1; background: var(--deep); }
.head-figure img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Article layout ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 6vw, 96px); align-items: start; padding-block: clamp(48px, 6vw, 88px); }
.article-layout.no-aside { grid-template-columns: minmax(0, 1fr); }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 2.1em; font-size: clamp(2rem, 3.2vw, 2.9rem); line-height: 1.02; letter-spacing: -.03em; }
.prose h3 { margin-top: 1.7em; font-size: clamp(1.45rem, 2vw, 1.8rem); line-height: 1.12; letter-spacing: -.01em; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .55em; }
.prose li::marker { color: var(--bronze); }
.prose .lede { font-size: 1.12rem; }
.prose .note { padding: 16px 18px; border-left: 2px solid var(--bronze); background: var(--sand); font-size: .95rem; }
.prose a[href^="http"]::after { content: "↗"; margin-left: .18em; font-size: .78em; color: var(--bronze); }

.services { margin-top: 1.2em; border-top: 1px solid var(--rule); }
.service { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 8px 28px; padding-block: 20px 22px; border-bottom: 1px solid var(--rule); }
.service h3 { margin: 0; font-size: 1.45rem; line-height: 1.12; letter-spacing: -.01em; }
.service p { margin: 0; }

.faq { margin-top: 1.2em; border-top: 1px solid var(--rule); }
.faq-item { padding-block: 20px 22px; border-bottom: 1px solid var(--rule); }
.faq-item h3 { margin: 0 0 .5em; font-size: 1.42rem; line-height: 1.15; }

.aside { position: sticky; top: 24px; display: grid; gap: 22px; }
.toc { padding-top: 14px; border-top: 1px solid var(--rule); }
.toc p, .aside-card .aside-label { margin-bottom: 10px; color: var(--bronze); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.toc ol { margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.toc li + li { margin-top: 8px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.aside-card { padding: 22px; color: var(--paper); background: var(--deep); }
.aside-card h2 { font-size: 1.75rem; letter-spacing: -.02em; line-height: 1.05; }
.aside-card p { margin-top: 10px; color: var(--on-ink); font-size: .9rem; }
.aside-card .button { width: 100%; margin-top: 18px; }
.aside-card .aside-call { display: block; margin-top: 12px; font-size: .9rem; font-weight: 600; }

.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 2.2em; padding-top: 22px; border-top: 1px solid var(--rule); }

/* Cards on hub pages */
.card-group + .card-group { margin-top: clamp(48px, 6vw, 80px); }
.card-group > h2 { margin-bottom: 26px; font-size: clamp(2rem, 3.2vw, 2.9rem); }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid .practice-card:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
.card-grid:not(.three) .practice-card:nth-child(even) { padding-left: 26px; border-left: 1px solid var(--rule); }
.card-grid.three .practice-card:not(:nth-child(3n+1)) { padding-left: 26px; border-left: 1px solid var(--rule); }
.hub-intro { max-width: 60ch; }

/* Team page */
.bio { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.bio + .bio { margin-top: clamp(56px, 7vw, 104px); padding-top: clamp(56px, 7vw, 104px); border-top: 1px solid var(--rule); }
.bio .jose-frame { aspect-ratio: 710 / 1066; background: #20272c; }
.bio h2 { font-size: clamp(2.4rem, 4vw, 3.6rem); }
.bio .role { margin-top: 6px; color: var(--bronze); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.bio .prose { margin-top: 24px; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.principles li { padding: 24px 26px 26px 0; border-bottom: 1px solid var(--rule); }
.principles li + li { padding-left: 26px; border-left: 1px solid var(--rule); }
.principles strong { display: block; margin-bottom: 8px; font: 600 1.5rem/1.1 var(--serif); }
.principles span { color: var(--muted); font-size: .96rem; }

/* What to expect */
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); counter-reset: step; }
.step { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 4px 24px; padding-block: 26px 28px; border-bottom: 1px solid var(--rule); }
.step-number { font: 600 3.2rem/1 var(--serif); color: var(--bronze); }
.step h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); letter-spacing: -.02em; line-height: 1.05; }
.step p { margin-top: 10px; max-width: 64ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: start; padding-block: clamp(48px, 6vw, 88px); }
.office-card { padding: clamp(24px, 3vw, 36px); color: var(--paper); background: var(--deep); }
.office-card h2 { font-size: clamp(2rem, 3vw, 2.7rem); }
.office-card dl { display: grid; gap: 18px; margin-top: 24px; }
.office-card dt { color: var(--gold); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.office-card dd { margin-top: 4px; color: var(--on-ink); font-size: 1.02rem; }
.office-card dd a { color: var(--paper); font-weight: 600; }
.office-card .big { font: 600 1.7rem/1.2 var(--serif); }
.office-card .button { margin-top: 26px; }
.area-note { display: none; margin-top: 18px; padding: 12px 14px; border-left: 2px solid var(--bronze); background: var(--sand); font-size: .95rem; }
.area-note.is-visible { display: block; }
.notice-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.notice-pair section { padding: 26px 26px 28px 0; }
.notice-pair section + section { padding-left: 26px; border-left: 1px solid var(--rule); }
.notice-pair h2 { font-size: 1.8rem; letter-spacing: -.02em; }
.notice-pair p { margin-top: 10px; color: var(--muted); }

/* Website notice */
#photo-credits { scroll-margin-top: 24px; }
.credits-list li { line-height: 1.55; }

/* ---------- Footer ---------- */
.site-footer { color: var(--on-ink); background: var(--ink); font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; padding-block: 56px 36px; }
.footer-grid h2 { margin-bottom: 12px; color: var(--gold); font: 600 .72rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li + li { margin-top: 7px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand address { padding: 0; border: 0; font-size: .88rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; padding-block: 18px 92px; border-top: 1px solid var(--rule-dark); color: var(--on-ink-muted); font-size: .78rem; }
.footer-bottom a { color: var(--on-ink); }
.preview-flag { color: var(--gold); font-weight: 600; }

/* ---------- Office assistant ---------- */
.office-assistant { position: fixed; z-index: 20; right: max(18px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); color: var(--paper); }
.office-assistant > summary { display: flex; align-items: center; gap: 8px; width: max-content; margin-left: auto; padding: .65rem .95rem; border: 1px solid #787063; background: var(--ink); color: var(--paper); font-size: .86rem; font-weight: 600; box-shadow: 0 7px 24px #0003; list-style: none; }
.office-assistant > summary::-webkit-details-marker { display: none; }
.office-assistant > summary::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.office-assistant[open] > summary { background: var(--deep); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .desktop-nav { gap: 18px; }
  .desktop-nav a { font-size: .8rem; }
}

@media (max-width: 1050px) {
  .shell { width: calc(100% - 68px); }
  .hero-grid { min-height: 565px; }
  .hero-copy { padding-block: 58px; }
  .credentials-inner { gap: 15px; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .header-call { display: inline-flex; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; grid-template-columns: minmax(0, 1fr); }
  .aside .toc { display: none; }
  .aside-card { max-width: var(--measure); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card-grid.three { grid-template-columns: minmax(0, 1fr); }
  .card-grid.three .practice-card:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
}

/* Mobile header and menu (shared by tablet and phone) */
.mobile-nav { position: static; color: var(--gold); font-size: .88rem; }
.mobile-nav > summary, .header-call { min-height: 40px; align-items: center; padding: .45rem .7rem; border: 1px solid #6f6555; color: var(--gold); font-size: .86rem; font-weight: 600; text-decoration: none; list-style: none; }
.mobile-nav > summary { display: flex; }
.mobile-nav > summary::-webkit-details-marker { display: none; }
.mobile-nav nav { position: absolute; top: 100%; left: 0; right: 0; display: grid; gap: 0; padding: 8px 34px 20px; background: var(--ink); border-bottom: 1px solid #615948; box-shadow: 0 18px 30px #0005; }
.mobile-nav nav a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--rule-dark); color: var(--paper); text-decoration: none; font-size: 1rem; }
.mobile-nav nav a[aria-current] { color: var(--gold); }
.mobile-nav nav .button { margin-top: 16px; border: 0; color: var(--ink); }

@media (max-width: 780px) {
  body { font-size: 1rem; }
  .shell { width: calc(100% - 40px); }
  .header-inner { min-height: 67px; gap: 10px; }
  .mark { width: 46px; flex-basis: 46px; }
  .brand { gap: 10px; }
  .brand-text strong { font-size: 1.12rem; }
  .header-cta, .desktop-break { display: none; }
  .mobile-nav nav { padding-inline: 20px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-copy { padding: 34px 0 40px; }
  .eyebrow { margin-bottom: 15px; }
  .hero h1 { max-width: 14ch; font-size: clamp(3rem, 12.5vw, 3.7rem); line-height: .95; }
  .hero .intro { margin-top: 18px; }
  .hero .actions { gap: 14px 20px; margin-top: 24px; }
  .hero-portrait { order: -1; margin-inline: -20px; padding-top: 0; }
  .portrait-frame { width: min(100%, 400px); }
  .credentials-inner { grid-template-columns: 1fr; gap: 9px; padding-block: 18px; }
  .credentials-inner li { padding-inline-start: 12px; }
  .section-heading { grid-template-columns: 1fr; gap: 14px; margin-bottom: 26px; }
  .practice-grid, .card-grid { grid-template-columns: minmax(0, 1fr); }
  .practice-card, .practice-card:not(:nth-child(3n+1)), .card-grid:not(.three) .practice-card:nth-child(even) { padding: 22px 0 24px; border-left: 0; }
  .split, .contact-band-inner, .bio, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .split .harbour { order: 1; }
  .page-head h1 { font-size: clamp(2.6rem, 11vw, 3.4rem); }
  .breadcrumb ol { margin-bottom: 30px; }
  .head-figure .frame { aspect-ratio: 3 / 2; }
  .service { grid-template-columns: minmax(0, 1fr); }
  .principles, .notice-pair { grid-template-columns: minmax(0, 1fr); }
  .principles li, .principles li + li, .notice-pair section, .notice-pair section + section { padding: 20px 0 22px; border-left: 0; }
  .notice-pair section + section { border-top: 1px solid var(--rule); }
  .step { grid-template-columns: 3rem minmax(0, 1fr); gap: 4px 14px; }
  .step-number { font-size: 2.4rem; }
  .bio .jose-frame { max-width: 400px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; }
  .office-assistant { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
}

@media (max-width: 380px) {
  .hero-copy { padding-top: 28px; }
  .hero h1 { font-size: 2.6rem; }
  .hero .intro { margin-top: 14px; font-size: .94rem; line-height: 1.52; }
  .hero .actions { margin-top: 18px; }
  .brand-text span { display: none; }
  .header-call { padding-inline: .55rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media print {
  .site-header nav, .office-assistant, .mobile-nav, .header-actions { display: none !important; }
  body { background: #fff; }
}

/* Contact refinements */
.office-card .big { font: 600 1.32rem/1.45 var(--sans); letter-spacing: 0; }

/* Assistant tucks into the right gutter while it would cover a link or control. */
.office-assistant > summary { transition: transform .2s ease, opacity .2s ease; }
.office-assistant { --a-right: 18px; }
.office-assistant.is-tucked:not([open]) > summary { transform: translateX(calc(100% + var(--a-right) - 14px)); opacity: .85; }
@media (max-width: 780px) { .office-assistant { --a-right: 12px; } }
.office-assistant.is-tucked:not([open]) > summary:focus-visible { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .office-assistant > summary { transition: none; } }


/* ---------- Alpuche AI chat ---------- */
.assistant-panel { position: absolute; right: 0; bottom: calc(100% + 9px); display: flex; flex-direction: column; width: min(392px, calc(100vw - 36px)); height: min(620px, calc(100dvh - 110px)); border: 1px solid #6d665b; background: var(--paper); color: var(--ink); box-shadow: 0 6px 28px #0004; font-size: .9rem; line-height: 1.5; }
.assistant-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px 11px; border-bottom: 1px solid var(--rule); background: var(--ink); color: var(--paper); }
.assistant-label { margin-bottom: 2px; color: var(--gold); font-size: .68rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.assistant-panel h2 { font-size: 1.45rem; letter-spacing: -.01em; line-height: 1.05; }
.assistant-close { flex: none; padding: .35rem .6rem; border: 1px solid #786f62; background: transparent; color: var(--paper); font-size: .78rem; }
.chat-log { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.chat-log:focus-visible { outline-offset: -3px; }
.chat-nojs { color: var(--muted); }
.msg { max-width: 90%; padding: 9px 12px 10px; font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.msg p + p { margin-top: 6px; }
.msg-bot { align-self: flex-start; border: 1px solid #ddd3c4; background: #fff; }
.msg-user { align-self: flex-end; background: var(--ink); color: var(--paper); }
.msg-user.is-redacted { background: #5d554c; font-style: italic; }
.msg-bot.is-urgent { border-left: 3px solid #9b3b22; }
.msg-bot.is-guard { border-left: 3px solid var(--bronze); }
.msg-bot.is-success { border-left: 3px solid #3d6b45; }
.msg-link { display: block; margin-top: 7px; font-weight: 600; }
.msg dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 10px; margin-top: 8px; font-size: .84rem; }
.msg dt { color: var(--muted); }
.msg dd { margin: 0; }
.msg-note { margin-top: 8px; color: var(--muted); font-size: .78rem; }
.msg-preview { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--rule); }
.msg-preview summary { font-size: .82rem; font-weight: 600; }
.msg-preview pre { margin: 6px 0 0; padding: 8px; background: var(--paper); font: .76rem/1.5 var(--sans); white-space: pre-wrap; }
.msg.is-typing { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--bronze); animation: dot 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .18s; }
.dots i:nth-child(3) { animation-delay: .36s; }
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .dots i { animation: none; opacity: .6; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.chat-chips:empty { display: none; }
.chat-chips button { padding: .42rem .65rem; border: 1px solid #857663; background: transparent; color: var(--ink); font-size: .8rem; text-align: left; }
.chat-chips button:hover { background: var(--sand); }
.chat-chips button:disabled { opacity: .5; }
.chat-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--rule); background: #fbf8f3; }
.chat-input input { flex: 1; min-width: 0; padding: .62rem .72rem; border: 1px solid #8b8274; border-radius: 0; background: #fff; color: var(--ink); font-size: 16px; }
.chat-send { flex: none; padding: .55rem .9rem; border: 0; background: var(--ink); color: var(--paper); font-size: .86rem; font-weight: 600; }
.chat-send:disabled { opacity: .5; }
.assistant-foot { margin: 0; padding: 7px 12px 9px; background: #fbf8f3; color: var(--muted); font-size: .7rem; line-height: 1.4; }
.assistant-foot a { color: var(--ink); }
@media (max-width: 780px) {
  .assistant-panel { position: fixed; left: 8px; right: 8px; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 52px); width: auto; height: min(80dvh, calc(100dvh - 84px)); }
}

/* Contact page: enquiry through Alpuche AI */
.ai-intake { margin-top: 30px; padding: clamp(20px, 3vw, 30px); border-left: 3px solid var(--bronze); background: var(--sand); }
.ai-intake-label { color: var(--bronze); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.ai-intake h2 { margin-top: 6px; font-size: clamp(1.7rem, 2.6vw, 2.2rem); letter-spacing: -.02em; line-height: 1.05; }
.ai-intake p { margin-top: 10px; }
.ai-intake .button { margin-top: 18px; }
.ai-intake-demo { color: var(--muted); font-size: .82rem; }

/* Brand icons (WhatsApp, Facebook) beside their links */
.icon { display: inline-block; flex: none; width: 1.1em; height: 1.1em; vertical-align: -0.18em; }
.icon-whatsapp { fill: #25d366; }
.icon-facebook { fill: #0866ff; }
.with-icon { display: inline-flex; align-items: center; gap: .45em; }
.with-icon .icon { vertical-align: 0; }
.chat-chips button.with-icon { gap: .4em; }
.msg-link.with-icon { display: flex; width: fit-content; }
