/* ============================================================
   HDVK & Associates — The Gazette, light edition
   The practice as the public record it already lives inside.
   Colours are sampled from the firm's own mark.
   ============================================================ */

:root {
  /* Ground. */
  --ground: #FFFFFF;
  --paper: #F3F5F8;
  --line: #D9DFE7;
  --line-strong: #B9C3D0;

  /* The mark's navy: headings, nameplate, heavy rules. */
  --navy: #01214A;
  --navy-hover: #0B3470;

  /* Text. */
  --ink: #1A2433;
  --ink-dim: #3E4756;

  /* The mark's gold. 2.8:1 on white, so it is for rules and marks only,
     never for text. */
  --gold: #BE944A;

  /* Court-file red: the primary action and the state colour. 7.3:1 on white. */
  --red: #A81E1E;
  --red-hover: #8A1717;

  --rule: 1px;
  --rule-heavy: 3px;
  --measure: 68ch;
  --wrap: 1240px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --micro: 200ms;

  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --record: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

/* Source Serif 4 and Source Sans 3 were drawn as a pair for reading on
   screens. The earlier Bodoni was a display face whose hairlines broke up
   at every size below a headline. */
@font-face {
  font-family: "Source Serif 4";
  src: url("../assets/fonts/SourceSerif4-var.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../assets/fonts/SourceSerif4-italic-var.woff2") format("woff2");
  font-weight: 400 700; font-style: italic; font-display: swap;
}
/* The Latin subset has no rupee sign; this 2 KB file supplies only that. */
@font-face {
  font-family: "Source Serif 4";
  src: url("../assets/fonts/SourceSerif4-rupee.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+20B9;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../assets/fonts/SourceSans3-var.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
/* Same gap in the sans: the rupee in register entries and fee lines would
   otherwise fall back to Arial. */
@font-face {
  font-family: "Source Sans 3";
  src: url("../assets/fonts/SourceSans3-rupee.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+20B9;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  color-scheme: light;
  scrollbar-color: var(--line-strong) var(--ground);
  scrollbar-width: thin;
}
body {
  font-family: var(--record);
  font-size: 18px; line-height: 1.65;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--red);
}
/* height:auto lets aspect-ratio win over the width/height attributes, which
   are there only to reserve space and prevent layout shift. */
img { display: block; max-width: 100%; height: auto; }
/* Anchor targets clear the sticky masthead. */
[id] { scroll-margin-top: 96px; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }

::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border: 3px solid var(--ground); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-dim); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
@media (max-width: 900px) { .wrap { padding: 0 24px; } }
@media (max-width: 560px) { .wrap { padding: 0 18px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Record furniture ---------- */
.rule-gold { height: var(--rule); background: var(--gold); border: 0; }
.rule-heavy { height: var(--rule-heavy); background: var(--navy); border: 0; }

.record-line {
  font-family: var(--record);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-dim); line-height: 1.4;
}
/* Long running lines keep the record voice without the caps. */
.gazette-imprint.record-line,
.ventures .record-line {
  text-transform: none; letter-spacing: 0;
  font-size: 16px; font-weight: 500;
}

/* ---------- The mark ---------- */
.mark { display: block; height: auto; }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: var(--rule) solid var(--line);
}
/* padding-block only: the shorthand would override .wrap's horizontal padding. */
.masthead-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 12px; }
.masthead-seal { display: flex; align-items: center; gap: 12px; }
.masthead-seal:hover { text-decoration: none; }
.masthead-seal .mark { width: 46px; }
.masthead-name {
  font-family: var(--display);
  font-weight: 600; font-size: 20px; line-height: 1.3; color: var(--navy);
}
.masthead-name small {
  display: block; margin-top: 1px; line-height: 1.35;
  font-family: var(--record); font-size: 13px; font-weight: 500;
  letter-spacing: 0; color: var(--ink-dim);
}
.masthead-nav { display: flex; align-items: center; gap: 30px; }
.masthead-nav a {
  font-size: 16px; font-weight: 600;
  color: var(--ink-dim); padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color var(--micro) var(--ease-out), border-color var(--micro) var(--ease-out);
}
.masthead-nav a:hover { color: var(--navy); text-decoration: none; border-bottom-color: var(--line-strong); }
.masthead-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold); }

.stamp {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--record); font-size: 16px; font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff; background: var(--red);
  border: var(--rule) solid var(--red); padding: 13px 22px; cursor: pointer;
  transition: background var(--micro) var(--ease-out), border-color var(--micro) var(--ease-out),
              color var(--micro) var(--ease-out), transform var(--micro) var(--ease-out);
}
.stamp:hover { background: var(--red-hover); border-color: var(--red-hover); text-decoration: none; }
.stamp:active { transform: translateY(1px); }
.stamp-ghost { color: var(--navy); background: transparent; border-color: var(--navy); }
.stamp-ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.masthead-toggle {
  display: none; width: 44px; height: 44px; background: transparent;
  border: var(--rule) solid var(--line-strong); cursor: pointer; position: relative; z-index: 210;
}
.masthead-toggle span {
  display: block; width: 20px; height: 1.5px; background: var(--navy); margin: 4px auto;
  transition: transform 250ms var(--ease-out), opacity 250ms var(--ease-out);
}
.masthead-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.masthead-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.masthead-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-record {
  position: fixed; inset: 0; z-index: 200; background: var(--ground);
  display: flex; flex-direction: column; justify-content: center; padding: 80px 28px 32px;
  transform: translateY(-100%); transition: transform 320ms var(--ease-out);
}
.mobile-record.open { transform: translateY(0); }
.mobile-record nav { display: grid; gap: 2px; }
.mobile-record nav a {
  font-family: var(--display);
  font-size: 34px; font-weight: 600; color: var(--navy);
  padding: 12px 0; border-bottom: var(--rule) solid var(--line);
}
.mobile-record nav a[aria-current="page"] { color: var(--red); }
.mobile-record-foot { margin-top: 32px; display: grid; gap: 12px; }

@media (max-width: 900px) {
  .masthead-nav, .masthead-top > .stamp { display: none; }
  .masthead-toggle { display: block; }
}
@media (max-width: 420px) {
  .masthead-name small { display: none; }
}

/* ---------- The gazette head ---------- */
.gazette { background: var(--ground); padding: 56px 0 8px; }

/* The one authored moment: the rule draws across the head on load. */
.gazette-rule { transform-origin: left center; animation: draw-rule 1100ms var(--ease-out) both; }
@keyframes draw-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.gazette-head-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.gazette-head-row .mark { width: 150px; flex: none; }

.gazette-title {
  font-family: var(--display);
  font-weight: 600; font-size: clamp(2.6rem, 8.4vw, 4.6rem);
  line-height: 0.9; letter-spacing: -0.015em; color: var(--navy);
  padding: 26px 0 22px;
}
.gazette-imprint { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 14px 0 0; }
.gazette-imprint b { color: var(--navy); font-weight: 700; }

.standfirst {
  font-family: var(--display);
  font-weight: 600; font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  line-height: 1.18; letter-spacing: -0.012em; color: var(--navy);
  max-width: 30ch; text-wrap: balance; padding: 22px 0 4px;
}
.standfirst em { font-style: italic; }

.gazette-claim { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start; padding: 32px 0 56px; }
.gazette-claim h1 {
  font-family: var(--display);
  font-weight: 600; font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.08; letter-spacing: -0.015em; color: var(--navy); text-wrap: balance;
}
.gazette-claim h1 em { font-style: italic; }
.gazette-claim p { font-size: 18px; line-height: 1.7; color: var(--ink-dim); max-width: var(--measure); margin-top: 18px; }
.gazette-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

@media (max-width: 900px) {
  .gazette { padding: 36px 0 6px; }
  .gazette-claim { grid-template-columns: 1fr; gap: 32px; padding: 24px 0 40px; }
}
@media (max-width: 560px) {
  /* The mark steps down so it never crowds the nameplate. */
  .gazette-head-row .mark { width: 84px; }
}

/* ---------- Cartouche: drawn corner rules ---------- */
.cartouche { position: relative; }
.cartouche::before, .cartouche::after {
  content: ""; position: absolute; width: 26px; height: 26px; pointer-events: none; color: var(--gold);
}
.cartouche::before { top: 9px; left: 9px; border-top: var(--rule) solid currentColor; border-left: var(--rule) solid currentColor; }
.cartouche::after { bottom: 9px; right: 9px; border-bottom: var(--rule) solid currentColor; border-right: var(--rule) solid currentColor; }

/* ---------- Plates: documents laid on the paper field ---------- */
.authority, .plate-inset {
  background: var(--ground); color: var(--ink);
  border: var(--rule) solid var(--line);
  box-shadow: 0 1px 2px rgba(1,33,74,0.05), 0 14px 36px rgba(1,33,74,0.08);
}
.authority { padding: 32px; }
.plate-inset { padding: 52px; }
.authority h2 {
  font-family: var(--display);
  font-weight: 600; font-size: 24px; line-height: 1.2; color: var(--navy); margin: 4px 0 16px;
}
.authority div { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 12px 0; border-bottom: var(--rule) solid var(--line); }
.authority div:last-child { border-bottom: 0; }
.authority dt { font-size: 16px; color: var(--ink-dim); }
.authority dd { font-size: 16px; font-weight: 600; color: var(--navy); text-align: right; }
@media (max-width: 760px) { .plate-inset { padding: 28px 22px; } .authority { padding: 26px 22px; } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
/* The register follows the head directly; one continuous record. */
.gazette + .section { padding-top: 40px; }
.section-navy, .section-deep { background: var(--paper); }
/* Two plates laid side by side on the same field. */
.plates { display: grid; grid-template-columns: 5fr 7fr; gap: 32px; align-items: start; }
@media (max-width: 980px) { .plates { grid-template-columns: 1fr; } }
.section-plain { background: var(--ground); }
.section-head { margin-bottom: 40px; }
.section-head h2 {
  font-family: var(--display);
  font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.1; letter-spacing: -0.015em; color: var(--navy); text-wrap: balance;
}
.section-head p { font-size: 18px; line-height: 1.7; color: var(--ink-dim); max-width: var(--measure); margin-top: 14px; }
@media (max-width: 900px) { .section { padding: 60px 0; } .gazette + .section { padding-top: 32px; } }

/* ---------- The register ---------- */
.register { border-top: var(--rule-heavy) solid var(--navy); }
.entry { border-bottom: var(--rule) solid var(--line); }
.entry-head {
  width: 100%; display: grid; grid-template-columns: 1fr auto auto;
  gap: 28px; align-items: baseline; padding: 26px 0;
  background: transparent; border: 0; font-family: inherit; text-align: left;
  cursor: pointer; color: var(--navy);
}
.entry-title {
  font-family: var(--display);
  font-weight: 600; font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.15; letter-spacing: -0.01em; transition: color var(--micro) var(--ease-out);
}
.entry-cite { font-size: 15.5px; font-weight: 500; letter-spacing: 0.01em; color: var(--ink-dim); line-height: 1.5; text-align: right; }
.entry-mark { width: 22px; height: 22px; position: relative; flex: none; align-self: center; }
.entry-mark::before, .entry-mark::after {
  content: ""; position: absolute; inset: 0; margin: auto; background: var(--navy);
  transition: background var(--micro) var(--ease-out), transform 260ms var(--ease-out), opacity 260ms var(--ease-out);
}
.entry-mark::before { width: 22px; height: 1.5px; }
.entry-mark::after { width: 1.5px; height: 22px; }
.entry-head:hover .entry-title { color: var(--red); }

/* overflow must sit on the collapsing container: at 0fr the row is 0px tall,
   but the child still renders at its natural height and spills out. */
.entry-body { display: grid; grid-template-rows: minmax(0, 0fr); overflow: hidden; transition: grid-template-rows 300ms var(--ease-out); }
.entry-body > * { min-height: 0; overflow: hidden; }
.entry-inner { padding: 0 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.entry-inner p { color: var(--ink-dim); max-width: var(--measure); }
.entry-inner ul { display: grid; gap: 10px; }
.entry-inner li {
  display: grid; grid-template-columns: auto 1fr; gap: 12px;
  font-size: 17px; color: var(--ink);
  padding-bottom: 10px; border-bottom: var(--rule) solid var(--line);
}
.entry-inner li::before { content: "\2014"; color: var(--gold); }

.entry.open .entry-body { grid-template-rows: minmax(0, 1fr); }
.entry.open .entry-title { color: var(--red); }
.entry.open .entry-mark::before { background: var(--red); }
.entry.open .entry-mark::after { transform: rotate(90deg); opacity: 0; }

/* When any entry is open, the closed titles step back in colour, not opacity:
   fading the whole row took the insurer and court names down to ~3:1. The
   receded navy still clears 6.1:1 on white. */
.register.has-open .entry:not(.open) .entry-title { color: #56627A; }
.register.has-open .entry:not(.open) .entry-mark::before,
.register.has-open .entry:not(.open) .entry-mark::after { background: #56627A; }
.register.has-open .entry:not(.open) .entry-head:hover .entry-title { color: var(--red); }

@media (max-width: 760px) {
  .entry-head { grid-template-columns: 1fr auto; gap: 8px 20px; padding: 22px 0; }
  .entry-cite { grid-column: 1; text-align: left; }
  .entry-mark { grid-row: 1 / span 2; grid-column: 2; }
  .entry-inner { grid-template-columns: 1fr; gap: 22px; }
}

/* The register's closing line: the record ends where it is acted on. */
.register-close {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px 32px; padding: 30px 0 0;
}
.register-close p { color: var(--ink-dim); max-width: 52ch; }
.register-close .gazette-actions { margin-top: 0; }

/* ---------- Schedule of fees ---------- */
.schedule { width: 100%; border-collapse: collapse; }
.schedule caption { text-align: left; padding-bottom: 22px; }
.schedule caption h2 {
  font-family: var(--display);
  font-weight: 600; font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  line-height: 1.1; letter-spacing: -0.015em; color: var(--navy);
}
.schedule th, .schedule td { padding: 18px 0; text-align: left; }
.schedule thead th {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-dim); border-bottom: var(--rule-heavy) solid var(--navy);
}
.schedule tbody tr { border-bottom: var(--rule) solid var(--line); }
.schedule td:first-child {
  font-family: var(--display);
  font-size: 21px; font-weight: 600; color: var(--navy);
}
.schedule td.amount {
  font-family: var(--display);
  font-size: 26px; font-weight: 600; color: var(--navy); text-align: right;
  font-variant-numeric: tabular-nums lining-nums;
}
.schedule td.note { color: var(--ink-dim); font-size: 16px; }
.schedule-foot { margin-top: 20px; color: var(--ink-dim); font-size: 16px; max-width: var(--measure); }
@media (max-width: 620px) { .schedule td.note, .schedule th.note { display: none; } }

/* ---------- Sitting hours ---------- */
.sittings { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.sittings h2 {
  font-family: var(--display);
  font-weight: 600; font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  line-height: 1.1; letter-spacing: -0.015em;
  color: var(--navy); margin-bottom: 18px;
}
.sitting-row { display: grid; grid-template-columns: 9.5rem 1fr; gap: 20px; padding: 16px 0; border-bottom: var(--rule) solid var(--line); }
.sitting-row b {
  font-family: var(--record); font-size: 17px; font-weight: 700;
  color: var(--navy); font-variant-numeric: tabular-nums;
}
.sitting-row span { color: var(--ink-dim); }
.sittings address { font-style: normal; color: var(--ink); line-height: 1.8; font-size: 18px; }
@media (max-width: 760px) { .sittings { grid-template-columns: 1fr; gap: 36px; } .sitting-row { grid-template-columns: 8rem 1fr; } }

/* ---------- The appointment line ---------- */
.appointment { background: var(--ground); padding: 88px 0; border-top: var(--rule-heavy) solid var(--navy); }
.appointment h2 {
  font-family: var(--display);
  font-weight: 600; font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05; letter-spacing: -0.012em; color: var(--navy);
  text-wrap: balance; margin-bottom: 18px;
}
.appointment p { color: var(--ink-dim); max-width: var(--measure); font-size: 18px; }
.steps { display: flex; align-items: stretch; margin: 40px 0 34px; border-top: var(--rule) solid var(--line); }
.step { flex: 1 1 0; min-width: 0; padding: 22px 24px 22px 0; border-right: var(--rule) solid var(--line); }
.step + .step { padding-left: 24px; }
.step:last-child { border-right: 0; }
.step b {
  display: block; font-family: var(--display);
  font-size: 18px; font-weight: 600; color: var(--navy); margin-bottom: 6px;
}
.step span { font-size: 16px; color: var(--ink-dim); line-height: 1.6; }
@media (max-width: 760px) {
  .appointment { padding: 60px 0; }
  .steps { flex-direction: column; }
  .step, .step + .step { border-right: 0; border-bottom: var(--rule) solid var(--line); padding: 18px 0; }
}

/* ---------- Booking form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.field { display: grid; gap: 8px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 600; color: var(--ink); }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  font-family: var(--record); font-size: 16px; color: var(--ink);
  background: transparent; border: 0; border-bottom: var(--rule) solid var(--line-strong);
  padding: 10px 2px; border-radius: 0;
  transition: border-color var(--micro) var(--ease-out), background var(--micro) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: #7A8494; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom: 2px solid var(--navy); background: var(--paper);
}
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 8px; }
.form-note { font-size: 15px; color: var(--ink-dim); max-width: 46ch; }
.form-status {
  grid-column: 1 / -1; border: var(--rule) solid var(--navy);
  background: var(--paper); padding: 14px 16px; font-size: 16px; color: var(--ink);
}
@media (max-width: 760px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Contact register ---------- */
.contact-list { border-top: var(--rule-heavy) solid var(--navy); }
.contact-row { display: grid; grid-template-columns: 210px 1fr; gap: 24px; padding: 22px 0; border-bottom: var(--rule) solid var(--line); align-items: baseline; }
.contact-row dt { font-size: 13px; }
.contact-row dd { font-size: 20px; color: var(--navy); }
.contact-row dd address { font-style: normal; }
.contact-row dd a:not(.stamp):hover { color: var(--red); }
@media (max-width: 620px) { .contact-row { grid-template-columns: 1fr; gap: 6px; } .contact-row dd { font-size: 18px; } }

.map-embed { width: 100%; height: 360px; border: var(--rule) solid var(--line); filter: grayscale(0.85) contrast(1.02); }

/* ---------- The honest empty entry ---------- */
.notice { border: var(--rule) dashed var(--line-strong); padding: 36px 32px; background: var(--ground); }
.notice p {
  font-family: var(--display);
  font-size: 20px; font-style: italic; color: var(--ink-dim);
  max-width: 56ch; margin: 0 auto; text-align: center;
}

/* ---------- Colophon ---------- */
.colophon { background: var(--paper); border-top: var(--rule-heavy) solid var(--navy); padding: 60px 0 0; }
.colophon-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 40px; }
.colophon-mark { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.colophon-mark .mark { width: 56px; }
.colophon-mark b { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--navy); }
.colophon p { font-size: 16px; color: var(--ink-dim); max-width: 42ch; }
.colophon-head { font-family: var(--record); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); margin-bottom: 14px; }
.colophon-col { display: grid; gap: 10px; font-size: 16px; align-content: start; color: var(--ink-dim); }
.colophon-col a:hover { color: var(--navy); }
.colophon-col address { font-style: normal; line-height: 1.8; }
.ventures {
  border-top: var(--rule) solid var(--line); padding: 20px 0;
  display: flex; align-items: baseline; gap: 12px 28px; flex-wrap: wrap;
  font-size: 15px; color: var(--ink-dim);
}
.ventures a:hover { color: var(--navy); }
.imprint-foot {
  border-top: var(--rule) solid var(--line); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-dim);
}
@media (max-width: 980px) { .colophon-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 620px) { .colophon-grid { grid-template-columns: 1fr; } }

/* ---------- Prose ---------- */
.prose { max-width: var(--measure); }
.prose p { margin-bottom: 20px; color: var(--ink-dim); font-size: 18px; line-height: 1.75; }
.prose p:last-child { margin-bottom: 0; }
.prose p.lead { color: var(--navy); font-size: 21px; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--rule-heavy) solid var(--navy); }
.principle { padding: 28px 28px 28px 0; border-right: var(--rule) solid var(--line); }
.principle + .principle { padding-left: 28px; }
.principle:last-child { border-right: 0; }
.principle h3 { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.2; color: var(--navy); margin-bottom: 10px; }
.principle p { font-size: 17px; color: var(--ink-dim); }
@media (max-width: 760px) {
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { border-right: 0; border-bottom: var(--rule) solid var(--line); padding: 22px 0; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; align-content: center; }
.notfound-code {
  font-family: var(--display);
  font-size: clamp(5rem, 18vw, 11rem); font-weight: 600; line-height: 0.9;
  color: var(--red); font-variant-numeric: lining-nums;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   Access, wayfinding and the mobile action bar
   ============================================================ */

/* Skip link: first stop for keyboard and screen-reader users. */
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 400;
  background: var(--navy); color: #fff; padding: 12px 18px;
  font-weight: 700; font-size: 16px;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* The mobile action bar: under 900px the masthead hides its booking
   button, so calling and WhatsApp stay one tap away at the foot of the screen. */
.action-bar { display: none; }
@media (max-width: 900px) {
  .action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    display: grid; grid-template-columns: 1fr 1fr;
    background: var(--ground); border-top: var(--rule) solid var(--line);
    box-shadow: 0 -6px 20px rgba(1,33,74,0.08);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .action-bar a {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 58px; font-size: 17px; font-weight: 700; color: var(--navy);
  }
  .action-bar a:hover { text-decoration: none; }
  .action-bar a + a { background: var(--red); color: #fff; }
  .action-bar svg { width: 20px; height: 20px; flex: none; }
  /* Keep the last lines of the page clear of the bar. */
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  /* The open menu carries its own actions. */
  body:has(.mobile-record.open) .action-bar { display: none; }
}

/* Breadcrumb on the service pages. */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 15px; color: var(--ink-dim); padding-bottom: 6px; }
.crumbs a { color: var(--navy); font-weight: 600; }
.crumbs span[aria-hidden] { color: var(--line-strong); }

/* Directions button sits beside the address. */
.address-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Link from a register entry to its own page. */
.entry-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-weight: 700; color: var(--red);
}

/* ---------- Service pages ---------- */
.service-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; }
.service-list { border-top: var(--rule-heavy) solid var(--navy); }
.service-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 14px;
  padding: 16px 0; border-bottom: var(--rule) solid var(--line); font-size: 18px; color: var(--ink);
}
.service-list li::before { content: "\2014"; color: var(--gold); }
.service-aside h2, .service-block h2 {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  line-height: 1.15; color: var(--navy); margin-bottom: 16px;
}
.service-block + .service-block { margin-top: 44px; }
.service-block p { color: var(--ink-dim); max-width: var(--measure); }
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0; border-top: var(--rule) solid var(--line); }
.related a {
  display: block; padding: 18px 18px 18px 0; border-bottom: var(--rule) solid var(--line);
  font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--navy);
}
.related a:hover { color: var(--red); text-decoration: none; }
@media (max-width: 900px) { .service-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Form validation states ---------- */
.field-error { font-size: 15px; font-weight: 600; color: var(--red); min-height: 0; }
.field-error:empty { display: none; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-bottom: 2px solid var(--red); }

/* ============================================================
   Imagery: hero, practice-area cards, office photo
   Photos are licensed Adobe Stock; see stock-originals/README.txt.
   ============================================================ */
.icon { width: 24px; height: 24px; flex: none; }

/* ---------- Hero ---------- */
.hero { background: var(--ground); padding: 56px 0 72px; position: relative; }
.hero::before {
  /* A paper field behind the photo column gives the image a ground to sit on. */
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 38%;
  background: var(--paper); z-index: 0;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero-rule { height: var(--rule-heavy); background: var(--navy); border: 0; width: 88px; margin-bottom: 28px;
  transform-origin: left center; animation: draw-rule 1100ms var(--ease-out) both; }
.hero h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.4rem, 4.6vw, 3.9rem); line-height: 1.06; letter-spacing: -0.015em;
  color: var(--navy); text-wrap: balance;
}
.hero h1 em { font-style: italic; }
.hero-lede { font-size: 20px; line-height: 1.6; color: var(--ink-dim); max-width: 36em; margin-top: 22px; }
.hero .gazette-actions { margin-top: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 34px; padding-top: 22px; border-top: var(--rule) solid var(--line); }
.hero-facts li { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--navy); }
.hero-facts .icon { color: var(--red); width: 20px; height: 20px; }

.hero-figure { position: relative; margin: 0; }
.hero-figure > img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 20% center;
  box-shadow: 0 2px 4px rgba(1,33,74,0.06), 0 26px 60px rgba(1,33,74,0.16); }
.hero-badge {
  position: absolute; left: -34px; bottom: -30px; width: 116px; height: 116px;
  background: var(--ground); border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 2px 4px rgba(1,33,74,0.08), 0 14px 32px rgba(1,33,74,0.16);
}
.hero-badge img { width: 86px; }
.hero-note {
  position: absolute; right: -18px; bottom: 34px; max-width: 250px;
  background: var(--navy); color: #fff; padding: 18px 20px;
  box-shadow: 0 14px 32px rgba(1,33,74,0.24);
}
.hero-note b { display: block; font-family: var(--display); font-size: 21px; font-weight: 600; line-height: 1.2; }
.hero-note span { display: block; margin-top: 4px; font-size: 15px; color: #C9D3E3; }

@media (max-width: 980px) {
  .hero { padding: 36px 0 56px; }
  .hero::before { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-figure { margin: 0 6px; }
  .hero-badge { left: -6px; bottom: -26px; width: 92px; height: 92px; }
  .hero-badge img { width: 68px; }
  .hero-note { right: -6px; bottom: 22px; max-width: 210px; padding: 14px 16px; }
  .hero-note b { font-size: 18px; }
}

/* ---------- Practice-area cards ---------- */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.area {
  display: flex; flex-direction: column; background: var(--ground);
  border: var(--rule) solid var(--line); color: var(--ink);
  transition: box-shadow var(--micro) var(--ease-out), transform var(--micro) var(--ease-out), border-color var(--micro) var(--ease-out);
}
.area:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--line-strong);
  box-shadow: 0 2px 4px rgba(1,33,74,0.06), 0 18px 40px rgba(1,33,74,0.12); }
.area-photo { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.area-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.area:hover .area-photo img { transform: scale(1.04); }
.area-icon {
  position: absolute; left: 22px; top: -26px; width: 52px; height: 52px;
  display: grid; place-items: center; background: var(--navy); color: #fff;
  box-shadow: 0 8px 18px rgba(1,33,74,0.25);
}
.area-icon .icon { width: 26px; height: 26px; }
.area-body { position: relative; padding: 40px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.area-body h3 { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.2; color: var(--navy); }
.area-body p { font-size: 16px; color: var(--ink-dim); flex: 1; }
.area-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 700; color: var(--red); }
.area-more .icon { width: 18px; height: 18px; transition: transform var(--micro) var(--ease-out); }
.area:hover .area-more .icon { transform: translateX(4px); }
@media (max-width: 1060px) { .areas { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .areas { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- Steps with icons ---------- */
.step-icon { width: 44px; height: 44px; display: grid; place-items: center; background: var(--paper); color: var(--navy); margin-bottom: 14px; }
.step-icon .icon { width: 22px; height: 22px; }

/* ---------- Office photo ---------- */
.office-photo { margin-top: 28px; }
.office-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.office-photo figcaption { font-size: 14px; color: var(--ink-dim); margin-top: 8px; }

/* ---------- Service page head with photo ---------- */
.service-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding: 8px 0 48px; }
.service-head .gazette-title { display: flex; align-items: center; gap: 18px; }
.service-head .title-icon { width: 60px; height: 60px; display: grid; place-items: center; background: var(--navy); color: #fff; flex: none; }
.service-head .title-icon .icon { width: 30px; height: 30px; }
.service-head figure { margin: 0; }
.service-head figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  box-shadow: 0 2px 4px rgba(1,33,74,0.06), 0 22px 50px rgba(1,33,74,0.14); }
@media (max-width: 900px) { .service-head { grid-template-columns: 1fr; gap: 28px; } .service-head .title-icon { width: 48px; height: 48px; } }

/* Icons in the services register. */
.entry-head .entry-icon { width: 44px; height: 44px; display: grid; place-items: center; background: var(--paper); color: var(--navy); align-self: center; }
.entry-head .entry-icon .icon { width: 22px; height: 22px; }
.entry-head.has-icon { grid-template-columns: auto 1fr auto auto; }
@media (max-width: 760px) {
  .entry-head.has-icon { grid-template-columns: auto 1fr auto; }
  .entry-head.has-icon .entry-icon { grid-row: 1 / span 2; }
  .entry-head.has-icon .entry-cite { grid-column: 2; }
  .entry-head.has-icon .entry-mark { grid-column: 3; }
}
