/* ==========================================================================
   Vital Care Home Clinic — inner pages
   Loaded after style.css on every page except the homepage. Reuses the
   homepage tokens (blue foundation, red accents, hairlines, sharp corners).
   ========================================================================== */

/* Shared bits ------------------------------------------------------------ */
.text-link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 0.2s;
}
.text-link:hover { color: var(--red); }

.btn-outline { background: transparent; color: var(--blue-ink); border-color: var(--blue-line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* Red cross bullet, drawn without extra markup */
.cross-bullet {
  background:
    linear-gradient(var(--red), var(--red)) center / 4px 12px no-repeat,
    linear-gradient(var(--red), var(--red)) center / 12px 4px no-repeat;
}

/* Footer link row has 6 links on inner pages: let it wrap on small screens */
.footer-nav { flex-wrap: wrap; gap: 0.6rem 1.6rem; }

.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.78rem; font-weight: 500; color: var(--muted); }
.crumbs li { display: flex; align-items: center; gap: 0.5rem; }
.crumbs li + li::before { content: ''; width: 5px; height: 5px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.6; }
.crumbs a { transition: color 0.2s; }
.crumbs a:hover { color: var(--red); }
.crumbs [aria-current] { color: var(--blue-ink); font-weight: 600; }

/* ==========================================================================
   Page hero — copy on white, photo bleeding to the right edge
   ========================================================================== */
.page-hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4rem;
  min-height: 470px;
  padding-top: clamp(3rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}
.page-hero-copy > * { max-width: min(560px, 50%); }
.page-hero h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.15rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--blue-ink);
}
.page-hero .lead {
  font-size: var(--p-size);
  line-height: var(--p-lh);
  font-weight: 500;
  color: var(--ink);
  padding-left: 1.3rem;
  border-left: 2px solid var(--red);
}
.page-hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media::after { content: ''; position: absolute; left: var(--badge); bottom: 0; width: 26%; height: 10px; background: var(--red); }

/* Service icon badge in the corner of the hero photo */
.page-hero { --badge: 112px; }
.hero-badge {
  position: absolute;
  left: 0; bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--badge);
  height: var(--badge);
  background: var(--white);
  box-shadow: 0 18px 36px -20px rgba(8, 41, 74, 0.55);
}
.hero-badge img { width: 74%; height: 74%; object-fit: contain; }

/* ==========================================================================
   Service page layout — article + sticky sidebar
   ========================================================================== */
.svc { padding: clamp(3.5rem, 6vw, 5.5rem) 0; }
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }

.sec { padding: 2.75rem 0; border-top: 1px solid var(--line); }
.sec:first-child { padding-top: 0; border-top: 0; }
.sec:last-child { padding-bottom: 0; }
.sec h2 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); color: var(--blue-ink); margin-bottom: 1.2rem; }
.sec p { color: var(--muted); }
.sec p + p, .sec * + p { margin-top: 1rem; }
.sec > p:first-of-type { margin-top: 0; }

/* Question in the left column, answer in the right */
.sec--split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.sec--split h2 { margin: 0; }
.sec--split h2::after, .kicker::after { content: ''; display: block; width: 28px; height: 3px; background: var(--red); margin-top: 1rem; }

/* Cross-bulleted list in a hairline grid */
.ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.5rem; border-top: 1px solid var(--line); }
.ticks li { position: relative; padding: 1.1rem 1.25rem 1.1rem 2.1rem; border-bottom: 1px solid var(--line); font-size: var(--p-size); line-height: 1.55; color: var(--ink); }
.ticks li:nth-child(odd) { border-right: 1px solid var(--line); }
.ticks li:nth-child(even) { padding-left: 3.35rem; }
.ticks li::before { content: ''; position: absolute; left: 0.1rem; top: 1.45rem; width: 12px; height: 12px; }
.ticks li:nth-child(even)::before { left: 1.35rem; }
.ticks li::before { background:
    linear-gradient(var(--red), var(--red)) center / 4px 12px no-repeat,
    linear-gradient(var(--red), var(--red)) center / 12px 4px no-repeat; }
.ticks--single { grid-template-columns: 1fr; }
.ticks--single li:nth-child(odd) { border-right: 0; }
.ticks--single li:nth-child(even) { padding-left: 2.1rem; }
.ticks--single li:nth-child(even)::before { left: 0.1rem; }

/* Numbered 2 x 2 grid */
.num-grid { counter-reset: n; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.75rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.num-grid li { counter-increment: n; padding: 1.5rem 1.6rem 1.6rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: var(--p-size); line-height: 1.6; color: var(--ink); }
.num-grid li::before { content: counter(n, decimal-leading-zero); display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.04em; color: var(--blue-line); line-height: 1; margin-bottom: 0.9rem; transition: color 0.3s; }
.num-grid li:hover::before { color: var(--red); }

/* Quiet information panel */
.panel { margin-top: 1.75rem; padding: 1.9rem 2.1rem; background: var(--blue-soft); border-left: 3px solid var(--blue); }
.panel p { color: var(--ink); }
.sec--panel { padding: 2.5rem clamp(1.5rem, 3vw, 2.5rem); margin: 2.75rem 0; background: var(--blue-soft); border-top: 0; border-left: 3px solid var(--blue); }
.sec--panel + .sec { border-top: 0; padding-top: 0; }
.sec--panel p { color: var(--ink); }

/* Metric tiles */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 1.75rem; border: 1px solid var(--line); }
.metrics li { padding: 1.5rem 1.25rem; display: grid; gap: 1rem; align-content: start; font-weight: 600; line-height: 1.4; color: var(--blue-ink); }
.metrics li + li { border-left: 1px solid var(--line); }
.metrics svg { width: 34px; height: 34px; color: var(--red); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.5rem; }
.chips li { display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.75rem 1.1rem; border: 1px solid var(--blue-line); background: var(--white); font-weight: 600; font-size: 0.98rem; color: var(--blue-ink); transition: border-color 0.2s, background-color 0.2s; }
.chips li::before { content: ''; width: 12px; height: 12px; flex: none; background:
    linear-gradient(var(--red), var(--red)) center / 4px 12px no-repeat,
    linear-gradient(var(--red), var(--red)) center / 12px 4px no-repeat; }
.chips li:hover { border-color: var(--blue); background: var(--blue-soft); }

/* Two columns of text sections */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 3vw, 2.75rem); }
.cols > div { padding-top: 1.5rem; border-top: 2px solid var(--blue); }
.cols > div:last-child { border-top-color: var(--red); }
.cols h2 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); }

/* Sidebar ---------------------------------------------------------------- */
/* Whole sidebar sticks by its top edge (form first, service list below), then
   scrolls away with the article when the article ends. */
.svc-aside { position: sticky; top: calc(72px + 1.5rem); display: flex; flex-direction: column; gap: 1.25rem; }

/* Booking form: first item in the sidebar */
.aside-form {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -32px rgba(8, 41, 74, 0.45);
}
.aside-form-body { display: grid; gap: 0.7rem; padding: 1.1rem 1.25rem 1.25rem; }
.field { display: grid; gap: 0.25rem; }
.field label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-ink); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--blue-soft);
  border: 1px solid transparent;
  border-bottom-color: var(--blue-line);
  border-radius: var(--radius);
  transition: border-color 0.2s, background-color 0.2s;
}
.field textarea { resize: vertical; min-height: 3.4rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: var(--red); background: #fdf3f3; }
.form-error { font-size: 0.82rem; color: var(--red-deep); font-weight: 500; }
.aside-form .btn { width: 100%; margin-top: 0.25rem; padding-left: 0.75rem; padding-right: 0.75rem; letter-spacing: 0.08em; white-space: nowrap; }
.aside-nav { border: 1px solid var(--line); }
.aside-title { display: flex; align-items: center; gap: 0.7rem; padding: 1.05rem 1.4rem; background: var(--blue-ink); color: var(--white); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.aside-nav a { display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 1.25rem; border-top: 1px solid var(--line); font-size: 0.9rem; font-weight: 500; line-height: 1.35; transition: background-color 0.2s, color 0.2s; }
.aside-nav li:first-child a { border-top: 0; }
.aside-nav img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.aside-nav a:hover { background: var(--blue-soft); color: var(--blue); }
.aside-nav a[aria-current] { background: var(--blue-soft); color: var(--blue-ink); font-weight: 700; box-shadow: inset 3px 0 0 var(--red); }

/* ==========================================================================
   Closing band
   ========================================================================== */
.closing { position: relative; overflow: hidden; background: var(--blue); color: var(--white); padding: clamp(3.5rem, 6vw, 5rem) 0; }
.closing::before { content: ''; position: absolute; inset: 0 0 0 auto; width: 38%; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 28px); pointer-events: none; }
.closing-grid { position: relative; }
.closing h2 { font-size: var(--h2-size); max-width: 26ch; }
.closing h2::after { content: ''; display: block; width: 28px; height: 3px; background: var(--red); margin-top: 1.2rem; }
.closing p { color: rgba(255, 255, 255, 0.8); max-width: 62ch; margin-top: 1.1rem; }
.closing p a { color: var(--white); font-weight: 600; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ==========================================================================
   About
   ========================================================================== */
.about-hero { position: relative; overflow: hidden; background: var(--blue); color: var(--white); padding: clamp(3rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.about-hero::before { content: ''; position: absolute; inset: 0 0 0 auto; width: 34%; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 28px); pointer-events: none; }
.about-hero .crumbs { color: rgba(255, 255, 255, 0.65); margin-bottom: clamp(2rem, 4vw, 3rem); }
.about-hero .crumbs [aria-current] { color: var(--white); }
.about-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr); gap: clamp(3rem, 7vw, 6rem); align-items: center; }
.about-hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.7rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; max-width: 12ch; }
.role { display: inline-flex; align-items: center; gap: 0.7rem; margin: 1.4rem 0 1.8rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white); }
.role .plus::before, .role .plus::after { background: #ff4550; }
.about-hero-grid p:not(.role) { color: rgba(255, 255, 255, 0.85); max-width: 56ch; }
.portrait { position: relative; max-width: 420px; justify-self: end; width: 100%; }
.portrait::before { content: ''; position: absolute; top: -1.25rem; left: -1.25rem; right: 1.25rem; bottom: 1.25rem; border: 1px solid rgba(255, 255, 255, 0.35); }
.portrait::after { content: ''; position: absolute; right: -10px; bottom: -10px; width: 26%; height: 10px; background: var(--red); }
.portrait img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: contain; object-position: center bottom; padding: 2.25rem 2rem 0; background: linear-gradient(180deg, var(--white) 0%, var(--blue-soft) 100%); }

.about-why { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.about-why-grid { padding: 2.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pull { position: relative; margin: 0; padding-left: 2.25rem; max-width: 62ch; font-size: clamp(1.15rem, 1.7vw, 1.35rem) !important; line-height: 1.65 !important; font-weight: 500; letter-spacing: -0.02em; color: var(--blue-ink); }
.pull::before { content: ''; position: absolute; left: 0; top: 0.35em; width: 12px; height: 12px; background:
    linear-gradient(var(--red), var(--red)) center / 4px 12px no-repeat,
    linear-gradient(var(--red), var(--red)) center / 12px 4px no-repeat; }

.about-practice { background: var(--blue-soft); padding: clamp(4rem, 7vw, 6rem) 0; }
.about-practice-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 5.5rem); align-items: center; }
.about-practice figure { position: relative; padding: 0 0 1.5rem 1.5rem; }
.about-practice figure::before { content: ''; position: absolute; left: 0; bottom: 0; width: 60%; height: 70%; background: var(--blue); }
.about-practice figure img { position: relative; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 40% center; }
.about-practice h2 { font-size: var(--h2-size); color: var(--blue-ink); margin-bottom: 1.8rem; }
.about-practice ol li { padding: 1.5rem 0; border-top: 1px solid var(--blue-line); }
.about-practice ol li:last-child { border-bottom: 1px solid var(--blue-line); }
.about-practice ol p { color: var(--muted); }

.about-off { padding: clamp(4rem, 7vw, 5.5rem) 0; }
.about-off-grid > div { max-width: 62ch; }
.about-off h2 { font-size: var(--h2-size); color: var(--blue-ink); margin-bottom: 1.2rem; }
.about-off p { color: var(--muted); max-width: 46ch; }
.about-off .btn { margin-top: 2rem; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-hero { padding: clamp(3rem, 5vw, 4.5rem) 0 clamp(3.5rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-intro { display: grid; gap: 1.4rem; }
.contact-intro h1 { font-size: clamp(2.3rem, 4.2vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; color: var(--blue-ink); }
.contact-intro .lead { font-size: var(--p-size); line-height: var(--p-lh); font-weight: 500; padding-left: 1.3rem; border-left: 2px solid var(--red); max-width: 52ch; }
.reach { margin-top: 1rem; border-top: 1px solid var(--line); }
.reach .reach-text { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.reach a { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 1.25rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); transition: padding 0.3s var(--ease); }
.reach-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; background: var(--blue-soft); color: var(--blue); transition: background-color 0.25s, color 0.25s; }
.reach-icon svg { width: 22px; height: 22px; }
.reach small { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.reach strong { display: block; font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 700; letter-spacing: -0.02em; color: var(--blue-ink); overflow-wrap: anywhere; }
.reach .arrow { color: var(--red); }
.reach a:hover { padding-left: 0.5rem; }
.reach a:hover .reach-icon { background: var(--red); color: var(--white); }
.reach a:hover .arrow { width: 24px; }

.contact-form-wrap { position: relative; }
.contact-form-wrap::after { content: ''; position: absolute; right: -10px; bottom: -10px; width: 30%; height: 10px; background: var(--red); }
.contact-form { box-shadow: 0 30px 60px -36px rgba(8, 41, 74, 0.5); }
.contact-form .aside-form-body { gap: 0.9rem; padding: 1.5rem 1.6rem 1.7rem; }

.map { line-height: 0; border-top: 1px solid var(--blue-line); }
.map iframe { display: block; width: 100%; height: clamp(320px, 38vw, 460px); border: 0; filter: saturate(0.9); }

.visits { padding: clamp(4rem, 7vw, 6rem) 0; background: var(--blue-soft); }

.qa { counter-reset: qa; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4rem); }
.qa > div { counter-increment: qa; display: grid; align-content: start; grid-template-columns: 52px minmax(0, 1fr); gap: 0 1.25rem; padding: 2rem 0; border-top: 1px solid var(--blue-line); }
.qa > div:nth-child(-n + 2) { padding-top: 0; border-top: 0; }
.qa > div::before { content: counter(qa, decimal-leading-zero); grid-row: 1 / span 2; font-size: 1.1rem; font-weight: 800; color: var(--red); padding-top: 0.15rem; }
.qa h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); color: var(--blue-ink); margin-bottom: 0.9rem; }
.qa p { color: var(--muted); }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal-head { background: var(--blue-soft); padding: clamp(2.75rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--blue-line); }
.legal-head h1 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -0.035em; color: var(--blue-ink); margin: 1.4rem 0 0.9rem; }
.legal-head p { color: var(--muted); font-weight: 500; }
.legal { padding: clamp(3rem, 6vw, 5rem) 0; }
.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.toc { position: sticky; top: calc(72px + 1.5rem); border-left: 1px solid var(--line); }
.toc p { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue-ink); padding: 0 0 0.9rem 1.2rem; }
.toc a { display: block; padding: 0.4rem 0 0.4rem 1.2rem; margin-left: -1px; border-left: 2px solid transparent; font-size: 0.86rem; color: var(--muted); transition: color 0.2s, border-color 0.2s; }
.toc a:hover { color: var(--blue); border-left-color: var(--red); }
.legal-body { max-width: 760px; }
.legal-body > p { color: var(--muted); }
.legal-body section { padding: 2rem 0; border-top: 1px solid var(--line); }
.legal-body > p + section { margin-top: 2rem; }
.legal-body h2 { font-size: 1.25rem; color: var(--blue-ink); margin-bottom: 1rem; letter-spacing: -0.015em; }
.legal-body section p { color: var(--muted); }
.legal-body section p + p, .legal-body section ul + p, .legal-body section p + ul { margin-top: 1rem; }
.legal-body ul li { position: relative; padding: 0.35rem 0 0.35rem 1.6rem; color: var(--muted); font-size: var(--p-size); line-height: 1.65; }
.legal-body ul li::before { content: ''; position: absolute; left: 0; top: 1.15em; width: 10px; height: 2px; background: var(--red); }
.legal-body address { font-style: normal; color: var(--ink); font-size: var(--p-size); line-height: 1.8; padding: 1.25rem 1.5rem; background: var(--blue-soft); border-left: 3px solid var(--blue); }
.legal-body address a { color: var(--blue); font-weight: 600; }
.placeholder { background: #fff4c2; padding: 0 0.3em; color: var(--ink); }

/* ==========================================================================
   Responsive
   ========================================================================== */
/* Tablet landscape / small laptop */
@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 2.5rem; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics li:nth-child(3) { border-left: 0; }
  .metrics li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* Tablet portrait: keep two-column layouts, tighten spacing */
@media (max-width: 960px) {
  .page-hero-copy { min-height: 380px; gap: 1.1rem; }
  .page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.4rem); }

  /* Sidebar moves under the article: form and service list side by side */
  .svc-grid { grid-template-columns: 1fr; }
  .svc-aside { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .aside-form { box-shadow: none; }

  .about-hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 2.5rem; }
  .about-practice-grid { gap: 2.5rem; }

  .contact-grid { gap: 2.5rem; }
  .reach strong { font-size: 1.1rem; }
  .reach .reach-text { font-size: 0.95rem; }

  .legal-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { columns: 2; column-gap: 1.5rem; }
}

/* Large phones / small tablets: single column */
@media (max-width: 720px) {
  .page-hero { display: flex; flex-direction: column; }
  .page-hero-copy { min-height: 0; padding-top: 2.25rem; }
  .page-hero-copy > * { max-width: 640px; }
  .page-hero-media { position: relative; order: -1; width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .page-hero-media::after { left: calc(var(--gutter) + var(--badge)); }
  .page-hero .hero-badge { left: var(--gutter); }

  .svc-aside { grid-template-columns: 1fr; }

  .about-hero-grid { grid-template-columns: 1fr; }
  .portrait { order: -1; justify-self: start; max-width: 360px; margin-left: 1.25rem; } /* image above text on mobile */
  .about-practice-grid { grid-template-columns: 1fr; }
  .about-practice figure { max-width: 620px; }

  .contact-grid { grid-template-columns: 1fr; }
  .qa { grid-template-columns: 1fr; }
  .qa > div:nth-child(2) { padding-top: 2rem; border-top: 1px solid var(--blue-line); }

  .ticks { grid-template-columns: 1fr; }
  .ticks li:nth-child(odd) { border-right: 0; }
  .ticks li:nth-child(even) { padding-left: 2.1rem; }
  .ticks li:nth-child(even)::before { left: 0.1rem; }
  .num-grid { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; gap: 2.25rem; }
}

@media (max-width: 640px) {
  .page-hero-media { aspect-ratio: 4 / 3; }
  .page-hero { --badge: 80px; }
  .page-hero .lead, .contact-intro .lead { padding-left: 1rem; }

  .sec { padding: 2.25rem 0; }
  .sec--panel { padding: 1.75rem 1.25rem; margin: 2.25rem 0; }
  .panel { padding: 1.5rem 1.25rem; }
  .metrics li { padding: 1.25rem 1rem; }
  .portrait::after, .contact-form-wrap::after { right: 0; }

  .portrait { margin-left: 0.75rem; }
  .portrait::before { top: -0.75rem; left: -0.75rem; right: 0.75rem; bottom: 0.75rem; }
  .pull { padding-left: 1.75rem; }

  .reach a { grid-template-columns: 44px minmax(0, 1fr); gap: 1rem; }
  .reach .arrow { display: none; }
  .reach-icon { width: 44px; height: 44px; }
  .qa > div { grid-template-columns: 1fr; }
  .qa > div::before { grid-row: auto; margin-bottom: 0.6rem; }

  .toc ol { columns: 1; }
  .footer-nav a { padding: 0.35rem 0; }
  .field input, .field select, .field textarea { font-size: 1rem; } /* 16px stops iOS zooming into fields */
}

@media (max-width: 400px) {
  .metrics { grid-template-columns: 1fr; }
  .metrics li + li { border-left: 0; border-top: 1px solid var(--line); }
}
