/* The Law Office of Charles Esquibel — "Quiet counsel"
   Ivory paper, oxblood accent, charcoal ink, antique-gold rules. Verdana throughout (original site font). */

:root {
  --paper: #f7f2e8;
  --paper-2: #efe6d6;
  --paper-3: #e6dac4;
  --ink: #2a2522;
  --ink-soft: #564d46;
  --oxblood: #6b1e2a;
  --oxblood-deep: #4a1520;
  --oxblood-ink: #3a1019;
  --gold: #b08d4a;
  --gold-soft: #cdb07a;
  --on-dark: #f5ecdc;
  --on-dark-soft: #dccbb0;

  --font: Verdana, Geneva, "DejaVu Sans", Tahoma, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --slow: 900ms;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  /* faint paper grain */
  background-image:
    radial-gradient(circle at 20% 10%, rgba(176, 141, 74, .06), transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(107, 30, 42, .04), transparent 45%);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--oxblood); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
h1, h2, h3 { margin: 0; font-weight: 700; color: var(--ink); letter-spacing: .04em; line-height: 1.25; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 2.9rem); letter-spacing: .03em; }
h2 { font-size: clamp(1.35rem, 1rem + 1.3vw, 1.9rem); }
h3, .h3 { font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase; }
em { font-style: italic; }

:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; border-radius: 1px; }
.site-footer :focus-visible, .band :focus-visible { outline-color: var(--gold-soft); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 900px; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--oxblood); color: var(--on-dark); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.kicker {
  display: block;
  font-variant-caps: all-small-caps;
  font-size: 1rem;
  letter-spacing: .22em;
  color: var(--oxblood);
  font-weight: 700;
  margin: 0 0 .6rem;
  line-height: 1.4;
}
.kicker-light { color: var(--gold-soft); }

/* ---------- gold rules that draw in ---------- */
.rule { height: 1px; background: var(--gold); width: 100%; }
.rule-draw { width: min(160px, 40%); margin: 1.1rem 0 1.6rem; transform-origin: left center; }
.rule-center { margin-inline: auto; transform-origin: center; }
.js .rule-draw { transform: scaleX(0); transition: transform 1.2s var(--ease) .15s; }
.js .rule-draw.is-in { transform: scaleX(1); }

/* ---------- underline sweep ---------- */
.sweep, .nav-link, .link-list a .link-name, .page-cards .card-title, .who-contact a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .45s var(--ease);
}
.sweep:hover, .sweep:focus-visible, .nav-link:hover, .nav-link:focus-visible, .nav-link[aria-current="page"],
.link-list a:hover .link-name, .link-list a:focus-visible .link-name,
.page-cards a:hover .card-title, .page-cards a:focus-visible .card-title,
.who-contact a:hover, .who-contact a:focus-visible,
a:hover > .sweep, a:focus-visible > .sweep { background-size: 100% 1px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 46px; padding: .65em 1.3em;
  font: 700 .82rem/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-call { background: var(--oxblood); color: var(--on-dark); }
.btn-call:hover { background: var(--oxblood-deep); }
.btn-ghost { color: var(--oxblood); border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: var(--oxblood); color: var(--on-dark); border-color: var(--oxblood); }
.btn-light { background: var(--paper); color: var(--oxblood-deep); }
.btn-light:hover { background: var(--gold-soft); }
.btn-block { width: 100%; }
.btn .i-arrow, .btn svg:last-child:not(:first-child) { transition: transform .3s var(--ease); }
.btn:hover svg:last-child:not(:first-child) { transform: translateX(3px); }
.text-btn { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; padding: 0 .4em; background: none; border: 0; color: var(--oxblood); font: 700 .78rem var(--font); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.text-btn:hover span { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); }

.line-link { display: inline-flex; align-items: flex-start; gap: .6em; min-height: 44px; padding: .55em 0; color: var(--oxblood); text-decoration: none; word-break: break-word; }
.line-link .i { margin-top: .22em; }
.line-link.light { color: var(--on-dark); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 232, .94);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  transition: box-shadow .4s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -18px rgba(42, 37, 34, .5); }
.bar { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; min-height: 44px; margin-right: auto; flex: none; }
.brand-seal { width: 52px; height: auto; }
.brand-name { white-space: nowrap; font-weight: 700; font-size: .98rem; letter-spacing: .06em; line-height: 1.2; }
.brand-small { display: block; font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--oxblood); font-weight: 700; margin-bottom: 3px; }
.primary ul { display: flex; gap: clamp(10px, 1.5vw, 24px); }
.nav-link { white-space: nowrap; color: var(--ink); font-size: .8rem; letter-spacing: .05em; padding: 6px 0; display: inline-block; line-height: 1.4; }
.nav-link[aria-current="page"] { color: var(--oxblood); }
.call-short { display: none; }
.rule-header { opacity: .7; }
.menu-btn {
  display: none; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 0 12px;
  background: transparent; border: 1px solid var(--paper-3); border-radius: var(--radius);
  color: var(--ink); font: 700 .74rem var(--font); letter-spacing: .16em; text-transform: uppercase; cursor: pointer;
}
.menu-lines { display: grid; gap: 5px; width: 18px; }
.menu-lines span { height: 1.5px; background: currentColor; display: block; }
.menu-lines span:last-child { width: 70%; }

/* drawer */
.drawer-scrim { position: fixed; inset: 0; background: rgba(42, 37, 34, .45); z-index: 60; opacity: 0; transition: opacity .35s var(--ease); }
.drawer-scrim.is-open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(360px, 88vw);
  background: var(--paper); padding: 20px 24px 32px; overflow-y: auto;
  border-left: 1px solid var(--gold);
  transform: translateX(100%); transition: transform .45s var(--ease);
  display: flex; flex-direction: column; gap: 20px;
}
.drawer.is-open { transform: translateX(0); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; }
.drawer-top .kicker { margin: 0; }
.drawer-close { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1px solid var(--paper-3); border-radius: var(--radius); color: var(--ink); cursor: pointer; }
.drawer nav li { border-bottom: 1px solid var(--paper-3); }
.drawer nav a { display: flex; align-items: center; min-height: 52px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: .04em; }
.drawer nav a[aria-current="page"] { color: var(--oxblood); }
.drawer nav a[aria-current="page"]::before { content: ""; width: 14px; height: 1px; background: var(--gold); margin-right: 10px; }
.drawer-contact { display: grid; gap: 6px; font-size: .9rem; }

@media (max-width: 1340px) {
  .primary { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .call-long { display: none; }
  .call-short { display: inline; }
  .brand-seal { width: 40px; }
  .brand-name { font-size: .82rem; }
  .brand-small { font-size: .56rem; letter-spacing: .18em; }
  .bar { gap: 8px; }
  .site-header .btn-call { padding: .6em .8em; }
  .menu-btn { padding: 0 10px; }
  .menu-btn > span:last-child { display: none; }
}
@media (max-width: 380px) {
  .brand-name { font-size: .76rem; }
  .brand-seal { width: 34px; }
}

/* ---------- entrance ---------- */
.js .hero-in { opacity: 0; transform: translateY(14px); animation: rise 1.1s var(--ease) forwards; animation-delay: calc(var(--h, 0) * 140ms + 120ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-title { font-size: clamp(1.9rem, 1rem + 3.4vw, 3.5rem); line-height: 1.12; letter-spacing: .02em; }
.hero-title span { display: block; color: var(--oxblood); letter-spacing: .05em; }
.hero-rule { margin: 1.6rem 0 1.8rem; }
.hero-practice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--paper-3); margin-bottom: 2rem; }
.hero-practice li { padding: .8rem 0; border-bottom: 1px solid var(--paper-3); font-weight: 700; font-size: .95rem; letter-spacing: .03em; }
.hero-practice li:nth-child(odd) { padding-right: 1rem; }
.hero-practice li:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--paper-3); }
.hero-practice small { display: block; font-weight: 400; font-size: .78rem; color: var(--ink-soft); letter-spacing: 0; line-height: 1.5; margin-top: 2px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-plate { margin: 0; position: relative; justify-self: center; width: min(100%, 340px); }
.plate {
  position: relative; aspect-ratio: 181 / 302; background: var(--oxblood-deep);
  border: 1px solid var(--gold); padding: 10px; box-shadow: 0 30px 60px -40px rgba(58, 16, 25, .7);
  outline: 1px solid var(--gold); outline-offset: 7px;
}
.plate-slide { position: absolute; inset: 10px; opacity: 0; transition: opacity 2.4s ease-in-out; overflow: hidden; }
.plate-slide.is-on { opacity: 1; }
.plate-slide > img:only-child { width: 100%; height: 100%; object-fit: cover; }
.plate-slide.is-on > img:only-child { animation: drift 12s ease-out forwards; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
.plate-portrait { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #5a1b28, var(--oxblood-ink)); }
.plate-scales { position: absolute; inset: auto 0 0 0; width: 100%; opacity: .35; mix-blend-mode: screen; }
.plate-face { position: relative; width: 62%; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; border-radius: 50%; border: 1px solid var(--gold); outline: 1px solid rgba(205, 176, 122, .5); outline-offset: 6px; }
.hero-scales { position: absolute; width: 150px; left: -96px; bottom: 40px; color: var(--gold); background: var(--paper); padding: 10px; border-radius: 50%; }
.hero-plate figcaption { margin-top: 26px; font-size: .78rem; color: var(--ink-soft); text-align: center; letter-spacing: .04em; line-height: 1.6; }

/* scales line drawing */
.scales path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .scales path { stroke-dashoffset: 1; animation: draw 1.6s var(--ease) forwards; animation-delay: calc(var(--d) * 260ms + 500ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-plate { width: min(100%, 300px); margin-top: 8px; }
  .hero-scales { left: auto; right: -40px; width: 110px; bottom: 60px; }
}
@media (max-width: 420px) {
  .hero-practice { grid-template-columns: 1fr; }
  .hero-practice li:nth-child(even) { padding-left: 0; border-left: 0; }
  .hero-actions .btn { width: 100%; }
  .hero-scales { right: -12px; width: 90px; }
  .hero-plate { width: min(100%, 250px); }
}

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.tint { background: var(--paper-2); }
.lede { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.65; color: var(--ink); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; color: var(--ink-soft); margin-top: 1rem; }
.who { border-top: 1px solid var(--paper-3); }
.who-contact { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--paper-3); font-size: .92rem; }
.who-contact a { color: var(--oxblood); }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; gap: 0; } }

.staff { background: var(--paper-2); }
.staff-list { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1rem; }
.staff-list li { text-align: center; padding: 1.6rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.staff-list li + li { border-left: 1px solid var(--gold); }
.staff-name { font-weight: 700; font-size: 1.12rem; letter-spacing: .06em; }
.staff-list .kicker { margin: 0; }
@media (max-width: 700px) {
  .staff-list { grid-template-columns: 1fr; }
  .staff-list li + li { border-left: 0; border-top: 1px solid var(--gold); }
}

.page-cards { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--paper-3); }
.page-cards li + li { border-left: 1px solid var(--paper-3); }
.page-cards a { display: flex; flex-direction: column; gap: .4rem; min-height: 200px; padding: 28px 26px 26px; color: var(--ink); text-decoration: none; position: relative; transition: background-color .4s var(--ease); height: 100%; }
.page-cards a:hover { background: var(--paper-2); }
.page-cards .kicker { margin: 0; }
.page-cards .card-title { font-weight: 700; font-size: 1.2rem; letter-spacing: .03em; align-self: flex-start; }
.page-cards .card-meta { font-size: .82rem; color: var(--ink-soft); }
.page-cards a > .i { margin-top: auto; color: var(--oxblood); width: 22px; height: 22px; transition: transform .35s var(--ease); }
.page-cards a:hover > .i { transform: translateX(6px); }
@media (max-width: 800px) {
  .page-cards { grid-template-columns: 1fr; }
  .page-cards li + li { border-left: 0; border-top: 1px solid var(--paper-3); }
  .page-cards a { min-height: 0; }
  .page-cards a > .i { margin-top: .6rem; }
}

.band { background: var(--oxblood); color: var(--on-dark); padding: clamp(48px, 7vw, 88px) 0; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(205, 176, 122, .35); pointer-events: none; }
.band h2 { color: var(--on-dark); }
.band-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; position: relative; }
.band-text { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); margin: 1rem 0 .6rem; line-height: 1.6; }
.band-sub { color: var(--on-dark-soft); margin: 0; }
.band-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
@media (max-width: 800px) { .band-grid { grid-template-columns: 1fr; } }

/* ---------- inner page heads ---------- */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(8px, 2vw, 16px); }
.page-head h1 { max-width: 20ch; }
.page-head-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; font-weight: 700; letter-spacing: .03em; }
.facts li { display: flex; align-items: center; gap: 10px; }
.facts li::before { content: ""; width: 8px; height: 8px; border: 1px solid var(--gold); transform: rotate(45deg); }
.medallion { margin: 0; position: relative; width: 220px; height: 220px; display: grid; place-items: center; }
.medallion img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 1px solid var(--gold); outline: 1px solid var(--gold); outline-offset: 8px; position: relative; z-index: 1; }
.medallion-scales { position: absolute; width: 90px; right: -18px; bottom: -8px; color: var(--oxblood); background: var(--paper); border-radius: 50%; padding: 8px; z-index: 2; }
@media (max-width: 640px) {
  .page-head-grid { grid-template-columns: 1fr; }
  .medallion { width: 180px; height: 180px; }
  .medallion img { width: 130px; height: 130px; }
}

.cred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.ruled-list li { padding: .85rem 0; border-bottom: 1px solid var(--paper-3); display: flex; gap: 14px; align-items: baseline; }
.ruled-list li:first-child { border-top: 1px solid var(--paper-3); }
.courts { counter-reset: c; }
.courts li::before { counter-increment: c; content: counter(c, upper-roman); min-width: 2.4em; color: var(--oxblood); font-weight: 700; font-size: .8rem; letter-spacing: .1em; }
.ruled-list:not(.courts) li::before { content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg) translateY(-2px); flex: none; }
@media (max-width: 760px) { .cred-grid { grid-template-columns: 1fr; } }

.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.practice-grid li { padding: 1.4rem 1.2rem 1.4rem 0; border-bottom: 1px solid var(--paper-3); display: flex; flex-direction: column; }
.practice-name { font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; }
.practice-note { font-size: .82rem; color: var(--ink-soft); }
@media (max-width: 760px) { .practice-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .practice-grid { grid-template-columns: 1fr; } }

.office-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.office-grid img { width: 181px; border: 1px solid var(--gold); padding: 6px; background: var(--paper-2); }
.office-line { font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); font-weight: 700; letter-spacing: .03em; line-height: 1.5; max-width: 28ch; }
@media (max-width: 560px) { .office-grid { grid-template-columns: 1fr; } }

/* ---------- cases ---------- */
.cases-section { padding-top: clamp(24px, 4vw, 48px); }
.cases-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.case-index { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; scrollbar-width: thin; }
.case-index-box > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding-bottom: .6rem; border-bottom: 1px solid var(--ink); cursor: default; }
.case-index-box > summary::-webkit-details-marker { display: none; }
.case-index-box .kicker { margin: 0; }
.index-count { font-size: .75rem; color: var(--ink-soft); }
.case-index ol li a { display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 36px; padding: 4px 0 4px 12px; color: var(--ink-soft); text-decoration: none; font-size: .82rem; line-height: 1.35; border-left: 1px solid var(--paper-3); transition: color .25s, border-color .25s, padding .25s var(--ease); }
.case-index ol li a:hover { color: var(--oxblood); border-left-color: var(--gold); }
.case-index ol li a.is-active { color: var(--oxblood); font-weight: 700; border-left: 2px solid var(--oxblood); padding-left: 16px; }
.index-n { font-size: .7rem; color: var(--ink-soft); border: 1px solid var(--paper-3); min-width: 22px; text-align: center; border-radius: 10px; font-weight: 400; }
.case-tools { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--paper-3); }
.topic { padding: 2.2rem 0 .8rem; }
.topic-h { font-size: 1.15rem; letter-spacing: .1em; text-transform: uppercase; }
.topic .rule-draw { margin: .8rem 0 .6rem; width: 80px; }
.case { border-bottom: 1px solid var(--paper-3); }
.case > summary {
  list-style: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 1rem 0; cursor: pointer; min-height: 44px; font-size: .92rem; line-height: 1.55;
  transition: color .25s var(--ease), padding .35s var(--ease);
}
.case > summary::-webkit-details-marker { display: none; }
.case > summary:hover { color: var(--oxblood); padding-left: 8px; }
.case-cite em { font-weight: 700; font-style: italic; }
.case-toggle { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--oxblood); transition: transform .4s var(--ease), background-color .3s; }
.case[open] .case-toggle { transform: rotate(45deg); background: var(--oxblood); color: var(--on-dark); border-color: var(--oxblood); }
.case-text { padding: 0 48px 1.2rem 18px; border-left: 2px solid var(--gold); margin-bottom: 1.2rem; color: var(--ink-soft); }
.case-text p { margin: 0; }
.case[open] .case-text { animation: unfold .5s var(--ease); }
@keyframes unfold { from { opacity: 0; transform: translateY(-6px); } }
.disclaimer { margin-top: 3rem; padding: 1.2rem 1.4rem; border: 1px solid var(--gold); font-size: .85rem; color: var(--ink-soft); background: var(--paper-2); }

@media (max-width: 900px) {
  .cases-layout { grid-template-columns: 1fr; }
  .case-index { position: static; max-height: none; overflow: visible; }
  .case-index-box { border: 1px solid var(--paper-3); padding: 0 16px; background: var(--paper-2); }
  .case-index-box > summary { cursor: pointer; min-height: 52px; padding: 0; border-bottom: 0; }
  .case-index-box[open] > summary { border-bottom: 1px solid var(--paper-3); }
  .case-index-box > summary::after { content: "+"; font-size: 1.3rem; color: var(--oxblood); margin-left: 12px; }
  .case-index-box[open] > summary::after { content: "\2212"; }
  .case-index-box > summary .index-count { margin-left: auto; }
  .case-index ol { columns: 2; column-gap: 20px; padding: 8px 0 12px; }
  .case-index ol li { break-inside: avoid; }
  .case-index ol li a { min-height: 44px; }
  .case-text { padding-right: 8px; }
}
@media (max-width: 480px) { .case-index ol { columns: 1; } }

/* ---------- links ---------- */
.links-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 88px); align-items: start; }
.link-list { border-top: 1px solid var(--ink); }
.link-list li { border-bottom: 1px solid var(--paper-3); }
.link-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px 20px; min-height: 64px; padding: .9rem 4px; color: var(--ink); text-decoration: none; transition: background-color .3s var(--ease), padding .35s var(--ease); }
.link-list a:hover { background: var(--paper-2); padding-left: 14px; }
.link-name { font-weight: 700; letter-spacing: .02em; justify-self: start; }
.link-url { font-size: .82rem; color: var(--ink-soft); word-break: break-all; }
.link-list .i { color: var(--oxblood); transition: transform .3s var(--ease); }
.link-list a:hover .i { transform: translate(2px, -2px); }
.aside-practice { position: sticky; top: calc(var(--header-h) + 24px); }
.practice-compact li { padding: .7rem 0; border-bottom: 1px solid var(--paper-3); display: flex; flex-direction: column; }
.practice-compact .practice-name { font-size: .92rem; }
@media (max-width: 860px) {
  .links-layout { grid-template-columns: 1fr; }
  .aside-practice { position: static; }
}
@media (max-width: 560px) {
  .link-list a { grid-template-columns: minmax(0, 1fr) auto; }
  .link-url { grid-column: 1; grid-row: 2; }
  .link-list .i { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-rows { border-top: 1px solid var(--ink); }
.contact-rows li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px 24px; align-items: baseline; padding: 1.4rem 0; border-bottom: 1px solid var(--paper-3); }
.contact-rows .kicker { margin: 0; }
.contact-rows .btn { grid-column: 2; justify-self: start; }
.contact-big { font-size: clamp(1rem, .9rem + .5vw, 1.2rem); font-weight: 700; color: var(--ink); overflow-wrap: anywhere; line-height: 1.5; justify-self: start; }
a.contact-big { color: var(--oxblood); }
.contact-photo { margin: 0; display: grid; grid-template-columns: 1fr 140px; gap: 16px; }
.contact-photo > img { width: 140px; border: 1px solid var(--gold); padding: 5px; background: var(--paper-2); align-self: end; }
.contact-photo figcaption { grid-column: 1 / -1; font-size: .8rem; color: var(--ink-soft); }
.map-card { position: relative; display: block; background: var(--paper-2); border: 1px solid var(--gold); color: var(--oxblood); overflow: hidden; min-height: 200px; text-decoration: none; }
.map-art { width: 100%; height: 100%; display: block; color: var(--gold); }
.map-avenue { color: var(--oxblood); stroke: var(--oxblood); opacity: .25; }
.map-pin { fill: var(--oxblood); transform-box: fill-box; }
.js .map-pin { animation: pin-drop 1.2s var(--ease) .6s backwards; }
@keyframes pin-drop { from { transform: translate(150px, 60px); opacity: 0; } }
.map-label { position: absolute; left: 12px; bottom: 12px; display: inline-flex; gap: 8px; align-items: center; background: var(--paper); padding: 8px 12px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--paper-3); }
.map-card:hover .map-label span { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .contact-rows li { grid-template-columns: 1fr; }
  .contact-rows .btn { grid-column: 1; }
  .contact-photo { grid-template-columns: 1fr 100px; }
  .contact-photo > img { width: 100px; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--oxblood-deep); color: var(--on-dark); font-size: .9rem; }
.footer-art { background: var(--oxblood-ink); border-bottom: 1px solid rgba(205, 176, 122, .4); padding: 18px 0; }
.footer-art img { width: 100%; max-width: 1110px; margin-inline: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-col address { line-height: 1.8; margin-bottom: .4rem; }
.footer-note { color: var(--on-dark-soft); margin-top: .4rem; }
.footer-nav li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); }
.footer-base { border-top: 1px solid rgba(205, 176, 122, .3); padding-top: 20px; padding-bottom: 28px; color: var(--on-dark-soft); font-size: .8rem; }
.footer-base p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- back to top ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px;
  background: var(--paper); color: var(--oxblood); border: 1px solid var(--gold); border-radius: 24px;
  font: 700 .72rem var(--font); letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
  box-shadow: 0 10px 30px -18px rgba(42, 37, 34, .6);
  opacity: 0; transform: translateY(10px); transition: opacity .35s var(--ease), transform .35s var(--ease), background-color .3s;
}
.to-top.is-shown { opacity: 1; transform: none; }
.to-top:hover { background: var(--oxblood); color: var(--on-dark); }
@media (max-width: 560px) { .to-top span { display: none; } .to-top { padding: 0; width: 46px; justify-content: center; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero-in, .js [data-reveal] { opacity: 1; transform: none; }
  .js .rule-draw { transform: none; }
  .js .scales path { stroke-dashoffset: 0; }
}

@media print {
  .site-header, .drawer, .drawer-scrim, .to-top, .case-index, .case-tools { display: none !important; }
  .case-text { display: block; }
}
