/* KAP JURIS & CO - site styles
   Palette taken from the firm logo: cream ground, metallic gold, warm espresso text. */

:root {
  --cream: #fbf9f4;      /* matches the logo background exactly */
  --linen: #f4eee1;
  --sand: #eadfca;
  --champagne: #d9c49c;
  --gold: #b8924f;
  --gold-deep: #86672c;  /* gold dark enough for text on cream */
  --gold-grad: linear-gradient(135deg, #dcc38c 0%, #b8924f 48%, #9a7637 100%);
  --ink: #3a2e26;
  --ink-soft: #675848;
  --line: rgba(134, 103, 44, 0.28);
  --shadow: 0 18px 40px -22px rgba(90, 66, 30, 0.35);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1.1em; max-width: 64ch; }
ul { padding: 0; margin: 0; list-style: none; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 10px 16px; z-index: 200; }
.skip:focus { left: 8px; }
.muted { color: var(--ink-soft); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand img { height: 36px; width: auto; }
.brand-text { display: flex; flex-direction: column; align-items: center; line-height: 1.1; white-space: nowrap; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; letter-spacing: .04em; }
.brand-sub { font-size: .8rem; font-weight: 500; color: var(--gold-deep); letter-spacing: .42em; padding-left: .42em; margin-top: 3px; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); padding: 9px 14px; font: inherit; font-size: .95rem; cursor: pointer; border-radius: 3px; }
.nav ul { display: flex; flex-wrap: nowrap; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a { white-space: nowrap; text-decoration: none; color: var(--ink); font-size: 1rem; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.nav a:hover { color: var(--gold-deep); border-color: var(--gold); }
.nav a[aria-current="page"] { color: var(--gold-deep); border-color: var(--gold); }

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: 14px 28px; font: 500 1rem var(--sans); text-decoration: none; border-radius: 2px; border: 1px solid var(--ink); transition: background .2s, color .2s, border-color .2s; cursor: pointer; }
.btn-solid { background: var(--ink); color: var(--cream); }
.btn-solid:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--gold); }
.btn-line:hover { background: var(--sand); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 9vw, 110px) 0 clamp(48px, 8vw, 96px); background:
  radial-gradient(1100px 520px at 88% -10%, rgba(217, 196, 156, .42), transparent 62%),
  var(--cream); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero .kicker { font-size: 1rem; color: var(--gold-deep); margin-bottom: 1.1rem; display: flex; align-items: center; gap: 12px; }
.hero .kicker::before { content: ""; width: 44px; height: 1px; background: var(--gold); }
.hero h1 { margin-bottom: .4em; }
.hero .lede { font-size: 1.2rem; color: var(--ink-soft); }

.crest { position: relative; padding: 0; overflow: hidden; background: linear-gradient(160deg, #fffdf8, var(--linen)); box-shadow: var(--shadow); }
.crest { max-width: 470px; justify-self: center; width: 100%; }
.crest img { display: block; width: 100%; height: auto; }
.crest::after { content: ""; position: absolute; inset: 10px; border: 1px solid var(--gold); pointer-events: none; animation: frame 1.8s .3s cubic-bezier(.6, .1, .2, 1) both; }
@keyframes frame { from { clip-path: inset(0 100% 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* ornament divider from the logo: line, diamond, line */
.ornament { display: flex; align-items: center; gap: 16px; color: var(--gold); }
.ornament::before, .ornament::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { background: linear-gradient(270deg, transparent, var(--gold)); }
.ornament i { width: 10px; height: 10px; background: var(--gold-grad); transform: rotate(45deg); display: block; }
.ornament-band { padding: 8px 0; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.alt { background: var(--linen); }
.section.sand { background: var(--sand); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 84px); align-items: start; }
.split h2 { position: sticky; top: 110px; }

/* three area columns on home */
.area-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); }
.area-col { border-top: 2px solid var(--gold); padding-top: 22px; }
.area-col h3 { margin-bottom: .7rem; }
.area-col li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.area-col li:last-child { border-bottom: 0; }
.more-link { margin-top: 2rem; }

/* principles */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.fact { padding: 28px 26px 26px; background: var(--cream); border: 1px solid var(--line); border-top: 3px solid var(--gold); }
.fact h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.fact p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.g-item { padding: 30px 26px 28px; background: var(--cream); border: 1px solid var(--line); border-top: 3px solid var(--gold); text-align: center; }
.g-num { display: block; font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1.05; color: var(--gold-deep); margin-bottom: .35rem; }
.g-item.insight { text-align: left; }
.insight .g-num { font-size: 2rem; margin-bottom: .6rem; }
.insight-note { margin: 1.6rem 0 0; font-size: .92rem; }
.g-item h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.g-item p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* ---------- page banner ---------- */
.page-banner { padding: clamp(44px, 7vw, 88px) 0 clamp(28px, 4vw, 48px); background:
  radial-gradient(900px 380px at 100% 0%, rgba(217, 196, 156, .4), transparent 65%), var(--cream); border-bottom: 1px solid var(--line); }
.page-banner h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); margin-bottom: .3em; }
.page-banner p { color: var(--ink-soft); font-size: 1.15rem; margin: 0; }
.crumbs { font-size: .95rem; color: var(--ink-soft); margin-bottom: 1rem; }
.crumbs a { color: var(--ink-soft); }

/* ---------- practice areas page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip { font: 500 .98rem var(--sans); padding: 9px 18px; background: transparent; border: 1px solid var(--line); color: var(--ink); cursor: pointer; border-radius: 999px; transition: background .2s, border-color .2s; }
.chip:hover { border-color: var(--gold); background: var(--sand); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.area-card { background: #fffdf8; border: 1px solid var(--line); padding: 28px 26px 24px; transition: transform .25s, box-shadow .25s, border-color .25s; display: flex; flex-direction: column; }
.area-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
.area-card[hidden] { display: none; }
.area-card h3 { font-size: 1.6rem; margin-bottom: .45rem; }
.area-card p { color: var(--ink-soft); font-size: 1rem; margin-bottom: 1rem; }
.area-card .lead { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--gold-deep); }

/* ---------- partners page ---------- */
.partner { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 5vw, 64px); padding: clamp(36px, 5vw, 60px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.partner:last-of-type { border-bottom: 0; }
.headshot { width: 100%; max-width: 210px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; padding: 8px; background: var(--cream); border: 1px solid var(--gold); box-shadow: var(--shadow); }
.partner h2 { font-size: clamp(2rem, 3.6vw, 2.6rem); margin-bottom: .1em; }
.partner .role { color: var(--gold-deep); margin-bottom: 1.2rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.4rem; }
.tags li { padding: 5px 14px; background: var(--sand); border-radius: 999px; font-size: .95rem; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 8px 28px; margin: 0; font-size: 1rem; }
.details dt { color: var(--ink-soft); }
.details dd { margin: 0; }
.todo { background: rgba(217, 196, 156, .35); padding: 0 8px; border-bottom: 1px dashed var(--gold-deep); color: var(--ink-soft); font-style: italic; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card { background: #fffdf8; border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 28px 26px; }
.contact-card h3 { font-size: 1.4rem; }
.contact-card p { margin: 0 0 .4em; }
.notice { margin-top: 36px; padding: 22px 26px; background: var(--sand); border-left: 3px solid var(--gold); max-width: 820px; }
.notice p { margin: 0; }

/* ---------- prose pages ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.9rem; margin-top: 1.8em; }
.prose li { margin-bottom: .7em; padding-left: 22px; position: relative; }
.prose li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }

/* ---------- careers and enquiry forms ---------- */
.career { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.career-text { min-width: 0; }
.career-text h3 { margin-top: 1.4rem; font-size: 1.4rem; }
.career-text .prose { max-width: none; }
.career [id], .section[id] { scroll-margin-top: 90px; }

.form-card { min-width: 0; background: #fffdf8; border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: clamp(22px, 3.5vw, 40px); box-shadow: var(--shadow); }
.form-card > h3 { margin-bottom: .6rem; }
.req-note { font-size: .92rem; margin-bottom: 1.2rem; }
.req { color: var(--gold-deep); font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .98rem; font-weight: 500; padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"],
.field select, .field textarea, .field input[type="file"] {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--cream);
  border: 1px solid #9d8458; border-radius: 2px; padding: 11px 13px; min-height: 46px;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.field input[type="file"] { padding: 9px 11px; background: var(--linen); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold-deep); outline-offset: 1px; border-color: var(--gold-deep); }
.hint { margin: 0; font-size: .9rem; color: var(--ink-soft); max-width: none; line-height: 1.5; }
.group .checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 4px; }
.check { display: flex; align-items: flex-start; gap: 12px; font-weight: 400 !important; font-size: .98rem; line-height: 1.55; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold-deep); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 18px 0 0; min-height: 1.5em; max-width: none; font-size: 1rem; }
.form-status.ok { color: #4a5a2c; }
.form-status.bad { color: #8a2f1f; }
.form-status:not(:empty) { padding: 12px 16px; background: var(--sand); border-left: 3px solid var(--gold); }
.form-status.bad:not(:empty) { border-left-color: #8a2f1f; }
.kap-form .btn { margin-top: 18px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- practice area route map ----------
   A centre spine, plus two side rails that snake down the page:
   each band runs down one rail, then across to the other rail.        */
.route-wrap { max-width: 880px; margin-inline: auto; }
.route { --rail: 16px; --node: 14px; position: relative; list-style: none; margin: 0; padding: 0; }
.sp { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--gold); opacity: .75; transform-origin: top; }
.band { position: relative; padding-block: clamp(14px, 3vw, 26px); }
.band::before { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--gold); }
.band-L::before { left: calc(var(--rail) - 1px); }
.band-R::before { right: calc(var(--rail) - 1px); }
.band:not(:last-child)::after { content: ""; position: absolute; left: var(--rail); right: var(--rail); bottom: -1px; height: 2px; background: var(--gold); }

.stops { display: grid; grid-template-columns: 1fr 1fr; row-gap: clamp(10px, 2.4vw, 22px); list-style: none; margin: 0; padding: 0; }
.stop { position: relative; display: flex; align-items: center; min-height: 3.4rem; }
.stop.r1 { grid-row: 1; } .stop.r2 { grid-row: 2; } .stop.r3 { grid-row: 3; }
.stop a { font-family: var(--serif); font-size: clamp(1.15rem, 3.6vw, 1.65rem); font-weight: 600; line-height: 1.2; color: var(--ink); text-decoration: none; }
.stop a::after { content: ""; position: absolute; inset: 0; }   /* whole row is clickable */
.stop:hover a, .stop a:focus-visible { color: var(--gold-deep); }

.stop.spine { grid-column: 2; padding-left: 30px; }
.band-L .stop.rail { grid-column: 1; padding-left: calc(var(--rail) + 24px); padding-right: 12px; }
.band-R .stop.rail { grid-column: 2; justify-content: flex-end; text-align: right; padding-right: calc(var(--rail) + 24px); padding-left: 12px; }

/* dots */
.stop::before { --tx: -50%; content: ""; position: absolute; top: 50%; z-index: 1; width: var(--node); height: var(--node); border-radius: 50%; background: var(--gold-deep); box-shadow: 0 0 0 4px var(--cream), 0 0 0 5.5px var(--gold); transform: translate(var(--tx), -50%); transition: box-shadow .2s ease; }
.stop.spine::before { left: 0; }
.band-L .stop.rail::before { left: var(--rail); }
.band-R .stop.rail::before { --tx: 50%; right: var(--rail); }
.stop:hover::before { box-shadow: 0 0 0 4px var(--cream), 0 0 0 7px var(--gold); }

/* corner circles */
.jn { position: absolute; z-index: 2; width: calc(var(--node) + 4px); height: calc(var(--node) + 4px); border-radius: 50%; background: var(--cream); border: 2px solid var(--gold); transform: var(--jt); }
.jn-l { --jt: translate(-50%, 50%); left: var(--rail); bottom: 0; }
.jn-r { --jt: translate(50%, 50%); right: var(--rail); bottom: 0; }
.jn-start { --jt: translate(-50%, -50%); left: var(--rail); top: 0; background: var(--gold-deep); }
.jn-end { --jt: translate(50%, 50%); right: var(--rail); bottom: 0; background: var(--gold-deep); }
.no-jn .jn { display: none; }   /* maps show label dots only, no corner circles */

/* ---------- route map drawing animation ---------- */
@keyframes dot-pop { from { transform: translate(var(--tx), -50%) scale(0); } to { transform: translate(var(--tx), -50%) scale(1); } }
@keyframes label-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes jn-pop { from { transform: var(--jt) scale(0); } to { transform: var(--jt) scale(1); } }
.route.anim .band::before { transform: scaleY(0); transform-origin: top; }
.route.anim .band-L::after { transform: scaleX(0); transform-origin: left; }
.route.anim .band-R::after { transform: scaleX(0); transform-origin: right; }
.route.anim .sp { transform: scaleY(0); }
.route.anim .band.live::before, .route.anim .band.live .sp { transform: scaleY(1); transition: transform .9s cubic-bezier(.45, .05, .25, 1) var(--delay, 0s); }
.route.anim .band.live::after { transform: scaleX(1); transition: transform .6s cubic-bezier(.4, .1, .3, 1) calc(var(--delay, 0s) + .9s); }
.route.anim .stop:not(.on)::before { transform: translate(var(--tx), -50%) scale(0); }
.route.anim .stop.on::before { animation: dot-pop .5s cubic-bezier(.3, 1.5, .5, 1) var(--dd, 0s) backwards; }
.route.anim .stop:not(.on) a { opacity: .45; }
.route.anim .stop.on a { animation: label-in .6s ease var(--dd, 0s) backwards; }
.route.anim .band:not(.live) .jn { transform: var(--jt) scale(0); }
.route.anim .band.live .jn { animation: jn-pop .45s cubic-bezier(.3, 1.5, .5, 1) var(--dj, 0s) backwards; }
.route.anim .band-L.live .jn-l, .route.anim .band-R.live .jn-r, .route.anim .band.live .jn-end { --dj: calc(var(--delay, 0s) + .8s); }
.route.anim .band-L.live .jn-r, .route.anim .band-R.live .jn-l { --dj: calc(var(--delay, 0s) + 1.4s); }
.route.anim .band.live .jn-start { --dj: var(--delay, 0s); }
/* bands already scrolled past when the map is reached are shown drawn, with no animation */
.route.anim .band.instant::before, .route.anim .band.instant::after, .route.anim .band.instant .sp,
.route.anim .band.instant .stop::before, .route.anim .band.instant .stop a, .route.anim .band.instant .jn { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .route.anim .band::before, .route.anim .band::after, .route.anim .sp { transform: none !important; transition: none !important; }
}

.area-card:target { border-color: var(--gold); box-shadow: var(--shadow); }
.area-card { scroll-margin-top: 96px; }

/* ---------- footer ---------- */
.site-footer { background: var(--sand); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr; gap: 40px; }
.footer-grid h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.footer-grid li { margin-bottom: .35rem; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { color: var(--gold-deep); text-decoration: underline; }
.footer-note { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .92rem; }
.footer-note p { max-width: none; margin-bottom: .6em; }

/* ---------- disclaimer gate ---------- */
.gate { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(58, 46, 38, .72); backdrop-filter: blur(6px); overflow-y: auto; }
.gate[hidden] { display: none; }
.gate-box { background: var(--cream); width: min(680px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: clamp(24px, 4vw, 44px); border-top: 4px solid var(--gold); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); animation: rise .35s ease-out; }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.gate-box h2 { font-size: 1.9rem; text-align: center; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .6em; }
.gate-box ol, .gate-box ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.gate-box ul { list-style: square; }
.gate-box ul li::marker { color: var(--gold-deep); }
.gate-box li { margin-bottom: .6em; }
.gate-box p { max-width: none; }
.gate .btn-row { margin-top: 1rem; }
body.gate-open { overflow: hidden; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .career { grid-template-columns: 1fr; }
  .split h2 { position: static; }
  .area-cols, .facts, .glance, .contact-grid { grid-template-columns: 1fr; }
  .partner { grid-template-columns: 1fr; }
  .headshot { max-width: 180px; }
  .crest { max-width: 320px; justify-self: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 940px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 18px; }
  .nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .brand img { height: 30px; }
  .brand { gap: 10px; }
  .brand-name { font-size: 1.1rem; }
  .crest { max-width: 260px; }
  .area-grid { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; gap: 0; }
  .details dt { margin-top: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print { .site-header, .gate, .btn-row { display: none !important; } }

/* office map */
.map-block { margin-top: 48px; }
.map-block h2 { margin-bottom: 18px; }
.map-frame { border: 1px solid var(--line); border-top: 3px solid var(--gold); background: #fffdf8; padding: 8px; }
.map-frame iframe { display: block; width: 100%; height: 420px; border: 0; }
.map-link { margin-top: 12px; }
@media (max-width: 700px) { .map-frame iframe { height: 320px; } }

.footer-grid h3 .llp { display: block; font-family: var(--sans); font-size: .8rem; font-weight: 500; letter-spacing: .42em; padding-left: .42em; color: var(--gold-deep); margin-top: 4px; }

.foot-brand { display: inline-block; text-align: center; padding: 6px 4px 4px; }
.footer-grid .foot-brand h3 { display: block; font-size: 1.7rem; letter-spacing: .04em; margin: 0; line-height: 1.1; }
.footer-grid .foot-brand h3 .llp { font-size: .85rem; margin-top: 6px; }
.foot-rule { display: block; width: 64px; height: 1px; margin: 14px auto 14px; background: var(--gold); position: relative; }
.foot-rule::after { content: ""; position: absolute; left: 50%; top: -3px; width: 7px; height: 7px; background: var(--gold); transform: translateX(-50%) rotate(45deg); }
.foot-sub { margin: 0 0 10px; font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.foot-sub i { font-style: normal; color: var(--gold); margin: 0 .35em; }
.foot-tag { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.3rem; font-weight: 500; color: var(--ink); letter-spacing: .01em; }

/* ---------- home hero with photograph ---------- */
.hero.hero-photo { position: relative; padding: clamp(56px, 8vw, 100px) 0 clamp(250px, 24vw, 330px); color: #fff; border-bottom: 3px solid var(--gold);
  background:
    linear-gradient(90deg, rgba(36, 25, 16, .55) 0%, rgba(36, 25, 16, .2) 52%, rgba(36, 25, 16, 0) 78%),
    url("../assets/hero-boardroom.jpg") center bottom / cover no-repeat,
    #6b5238; }
.hero-photo .hero-copy { max-width: var(--wrap); }
.hero-photo .hero-copy > * { max-width: 640px; }
.hero-photo .kicker { color: #f3dca4; }
.hero-photo .kicker::before { background: #e6c982; }
.hero-photo h1 { font-style: italic; color: #fff; font-size: clamp(2.3rem, 5vw, 3.7rem); text-shadow: 0 2px 18px rgba(30, 20, 10, .45); }
.hero-photo .lede { color: rgba(255, 255, 255, .93); text-shadow: 0 1px 10px rgba(30, 20, 10, .45); }
.hero-photo .btn-solid { background: var(--gold-grad); color: #2b2016; border-color: transparent; }
.hero-photo .btn-solid:hover { filter: brightness(1.06); }
.hero-photo .btn-line { color: #fff; border-color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .08); }
.hero-photo .btn-line:hover { background: rgba(255, 255, 255, .2); }
@media (max-width: 700px) {
  .hero.hero-photo { padding-bottom: clamp(240px, 70vw, 330px); background-position: 0 0, 74% bottom, center; }
}

/* hamburger menu button */
.nav-toggle { padding: 11px 12px; line-height: 0; }
.nav-toggle .bars { position: relative; display: block; width: 22px; height: 16px; }
.nav-toggle .bars i { position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease, top .25s ease; }
.nav-toggle .bars i:nth-child(1) { top: 0; }
.nav-toggle .bars i:nth-child(2) { top: 7px; }
.nav-toggle .bars i:nth-child(3) { top: 14px; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(3) { top: 7px; transform: rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .nav-toggle .bars i { transition: none; } }

/* footer: Pages (left) | brand block (centre) | Information (right) */
.footer-grid { grid-template-columns: 1fr auto 1fr; align-items: start; gap: 40px; }
.footer-grid > :first-child { order: 2; grid-column: auto; justify-self: center; text-align: center; }
.footer-grid > :nth-child(2) { order: 1; justify-self: start; }
.footer-grid > :nth-child(3) { order: 3; justify-self: end; }
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { order: 0; grid-column: 1 / -1; }
  .footer-grid > :nth-child(2) { order: 1; justify-self: start; }
  .footer-grid > :nth-child(3) { order: 2; justify-self: start; }
}
@media (max-width: 520px) { .footer-grid { gap: 28px 40px; } }

/* partners: headshot on the left, details on the right at every screen size */
.partner { grid-template-columns: clamp(96px, 24vw, 260px) 1fr !important; align-items: start; gap: clamp(16px, 4vw, 64px); }
.partner .headshot { max-width: 210px; }
.partner-more { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.partner-more h3 { margin-bottom: .4rem; }
.partner-bio { color: var(--ink-soft); max-width: 62ch; margin: 0 0 1rem; font-style: italic; text-align: justify; hyphens: auto; }
@media (max-width: 520px) {
  .partner { padding: 28px 0; }
  .partner h2 { font-size: 1.55rem; }
  .partner .role { margin-bottom: .8rem; font-size: .95rem; }
  .partner h3 { font-size: 1.05rem; }
  .tags { gap: 6px; }
  .tags li { padding: 4px 11px; font-size: .84rem; }
  .partner-bio { font-size: .95rem; }
}

/* larger page heading (Partners page) */
.page-banner.banner-xl h1 { font-size: clamp(2.4rem, 6vw, 4.3rem); line-height: 1.08; margin-bottom: .25em; }
.page-banner.banner-xl h1:last-child { margin-bottom: 0; }

/* ---------- home: closing quotation ---------- */
.quote-band { background: var(--linen); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(56px, 9vw, 104px) 0; }
.quote-fig { margin: 0 auto; text-align: center; max-width: 880px; }
.quote-fig blockquote { margin: 0; position: relative; }
.quote-fig blockquote::before {
  content: "\201C"; display: block; font-family: var(--serif); font-weight: 700; font-size: clamp(4.5rem, 10vw, 7rem);
  line-height: .6; height: .5em; color: var(--gold); margin-bottom: .15em;
}
.quote-fig blockquote p {
  margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.55rem, 3.4vw, 2.5rem); line-height: 1.35; color: var(--ink); text-wrap: balance;
}
.quote-fig figcaption { margin-top: 1.6rem; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.q-rule { display: block; width: 56px; height: 2px; background: var(--gold-grad); margin: 0 auto 1rem; }


/* about: who we are */
.wwa h3 { font-size: 1.45rem; font-weight: 700; margin: 1.5rem 0 .35rem; }
.wwa h3:first-child { margin-top: 0; }
.wwa p { margin-top: 0; }

/* Hear from our partners (About) */
.h-bold { font-weight: 700; }
.p-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.p-quote { margin: 0; padding: clamp(26px, 3.4vw, 40px); background: var(--linen); border: 1px solid var(--line); border-top: 3px solid var(--gold); display: flex; flex-direction: column; justify-content: space-between; gap: 1.6rem; }
.p-quote blockquote { margin: 0; }
.p-quote blockquote p { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1.75vw, 1.45rem); line-height: 1.4; color: var(--ink); }
.p-quote figcaption { display: flex; flex-direction: column; gap: 2px; font-weight: 600; color: var(--ink); }
.p-quote figcaption small { font-weight: 400; color: var(--gold-deep); font-size: .92rem; letter-spacing: .04em; }
.p-quote .q-rule { margin: 0 0 .7rem; width: 44px; height: 2px; }
@media (max-width: 900px) { .p-quotes { grid-template-columns: 1fr; } }
.facts-note { margin: 1.6rem 0 0; font-size: .92rem; }

/* Pro bono (home) */
.probono { max-width: 780px; }
.probono h2 { font-weight: 700; }
.probono p { color: var(--ink-soft); font-size: 1.1rem; }
.probono .more-link { margin: 2rem 0 0; }

/* Justified body text throughout the site */
p, li, dd, .gate-box p, .gate-box li { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
.quote-fig p, .quote-fig figcaption, .foot-brand, .footer-grid > :first-child, .footer-grid > :first-child p, .gate-box h2 { text-align: center; }
.nav li, .tags li, .footer-grid ul li, .breadcrumb li { text-align: left; hyphens: manual; }
.route li, .route .stop, .route .stop * { text-align: start; hyphens: manual; }
.contact-card p { text-align: left; hyphens: manual; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ci { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; color: var(--gold-deep); background: var(--linen); margin-bottom: 1rem; }

/* social icons (footer, under Information) */
.footer-grid ul.social { display: flex; gap: 10px; margin-top: 16px; padding: 0; list-style: none; }
.footer-grid ul.social li { margin: 0; }
.footer-grid ul.social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-deep); transition: background .2s, color .2s; }
.footer-grid ul.social a:hover { background: var(--gold-deep); color: #fff; text-decoration: none; }
.footer-grid ul.social a:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

/* home hero tagline: Libre Baskerville Italic (home page heading only) */
@font-face { font-family: "Libre Baskerville"; font-style: italic; font-weight: 400; font-display: swap; src: url("../assets/fonts/LibreBaskerville-Italic.ttf") format("truetype"); }
.hero-photo h1 { font-family: "Libre Baskerville", Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; line-height: 1.3; letter-spacing: 0; font-size: clamp(2rem, 4.2vw, 3.1rem); }
