/* ==========================================================================
   Garth Coates Solicitors — site styles
   Hand-written CSS (no build step), so the site deploys on Plesk with PHP only.

   Tokens (from the subject: a British passport and a London street)
   ink     passport navy — headings, hero, footer
   stone   Portland stone / visa-page paper — quiet section bands
   brass   door-plate brass and passport foil — the skyline, rules, focus (used sparingly)
   verified green — only for "checked against GOV.UK" status

   The one bold element: an engraved London skyline at the foot of the home
   page hero, drawn in brass hairlines. Everything else stays quiet.
   ========================================================================== */

:root {
  --ink: #0f2a44;
  --ink-2: #1b3b5c;
  --ink-3: #2c4d70;
  --stone: #eef0ec;
  --stone-2: #e3e6e0;
  --paper: #ffffff;
  --brass: #a9823f;
  --brass-deep: #8a6a33; /* gold for words set in italic on light backgrounds (4.4:1 on stone) */
  --brass-2: #8c6a2f;
  --brass-soft: #efe5d2;
  --text: #22272e;
  --muted: #5b6470;
  --line: #d5d9d3;
  --line-ink: rgba(255, 255, 255, 0.16);
  --verified: #23715c;
  --notice: #8a5a00;
  --notice-soft: #fbf3e2;
  --danger: #9a3b2e;

  --serif: "Libre Baskerville", "GFS Baskerville", "Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: 0.875rem;  /* 14 */
  --step-0: 1.0625rem;  /* 17 */
  --step-1: 1.3125rem;  /* 21 */
  --step-2: 1.625rem;   /* 26 */
  --step-3: 2rem;       /* 32 */
  --step-4: 2.625rem;   /* 42 */
  --step-5: 3.375rem;   /* 54 */

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink-3); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.005em; font-variant-numeric: lining-nums; }
h1 { font-size: clamp(2.125rem, 4.2vw, 3.125rem); line-height: 1.14; }
h2 { font-size: clamp(1.625rem, 3vw, var(--step-3)); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); font-family: var(--sans); font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--paper); color: var(--ink); padding: 10px 14px; z-index: 100; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font: 600 1rem/1 var(--sans); padding: 0.95em 1.4em; border-radius: var(--radius);
  border: 1px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--brass); color: #fff; }
.btn-primary:hover { background: var(--brass-2); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); color: #fff; }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.on-ink .btn-outline { color: #fff; }
.on-ink .btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-small { padding: 0.65em 1em; font-size: 0.9375rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Utility bar + header ---------- */
.utility { background: var(--ink); color: #c8d2dd; font-size: 0.875rem; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.utility p { margin: 0; }
.utility a { color: #fff; text-decoration: none; }
.utility a:hover { text-decoration: underline; }
.utility-links { display: flex; align-items: center; gap: 22px; }
.utility .header-login { color: #fff; padding: 0; font-size: 0.875rem; }
.utility .header-login:hover { color: #fff; text-decoration: underline; }
@media (max-width: 760px) { .utility .regulated { display: none; } .utility .wrap { justify-content: flex-end; } .utility .email { display: none; } }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 96px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { height: 72px; width: auto; }
@media (max-width: 1240px) { .brand img { height: 60px; } }
@media (max-width: 1160px) { .site-header .wrap { min-height: 80px; } .brand img { height: 56px; } }
@media (max-width: 480px) { .brand img { height: 64px; } }
/* Text version of the firm's logo (until the import copies the real one, and in the footer). */
.wordmark { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: var(--ink); margin: 0; }
.wordmark span { font-family: var(--serif); font-size: 1.875rem; font-variant-caps: small-caps; letter-spacing: 0.05em; }
.wordmark small { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.32em; margin: 6px -0.32em 0 0; color: var(--muted); text-transform: uppercase; }
.wordmark-light, .wordmark-light small { color: #fff; }
.wordmark-light small { color: #b9c6d4; }

.main-nav { flex: 1; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; justify-content: center; }
.main-nav > ul > li { position: relative; }
.main-nav a, .main-nav button {
  display: block; padding: 10px 12px; white-space: nowrap; font: 500 0.98rem/1.2 var(--sans); color: var(--text);
  text-decoration: none; background: none; border: 0; cursor: pointer; border-radius: var(--radius);
}
.main-nav a:hover, .main-nav button:hover, .main-nav [aria-expanded="true"] { color: var(--ink); background: var(--stone); }
.main-nav .current > a { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brass); border-radius: 0; }

.mega {
  position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%);
  background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--brass);
  padding: 22px 26px 18px; width: min(760px, 92vw); display: none; z-index: 50;
  box-shadow: 0 18px 40px -24px rgba(15, 42, 68, 0.45);
}
.mega.open { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 36px; }
.mega h3 { font-size: 1rem; margin: 0 0 6px; color: var(--muted); font-family: var(--sans); font-weight: 600; }
.mega ul { list-style: none; margin: 0 0 12px; padding: 0; }
.mega a { padding: 5px 0; font-weight: 400; color: var(--ink-3); background: none; border-radius: 0; }
.mega a:hover { background: none; text-decoration: underline; }
.mega .closed { color: var(--muted); }
.mega.mega-narrow { width: min(480px, 92vw); }
.mega-all { grid-column: 1 / -1; margin: 4px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.mega .mega-all a { font-weight: 600; color: var(--ink); }
.mega.mega-narrow.open { grid-template-columns: 1fr 1fr; }

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-phone { font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.header-login { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 0.95rem; padding: 8px 4px; }
.header-login:hover { color: var(--ink); }
.header-login svg { width: 16px; height: 16px; }

.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 12px; font: 600 0.95rem var(--sans); color: var(--ink); }

/* The larger logo leaves less room for the menu on mid-size screens. */
/* The larger logo leaves less room for the menu: tighter spacing, and the menu button from 1160px down. */
.main-nav a, .main-nav button { padding-left: 9px; padding-right: 9px; }
@media (max-width: 1280px) {
  .main-nav a, .main-nav button { padding: 10px 7px; font-size: 0.95rem; }
}
@media (max-width: 1160px) {
  .nav-toggle { display: inline-block; }
  .main-nav, .header-actions .btn { display: none; }
  .site-header.nav-open .main-nav { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 18px; max-height: calc(100vh - 80px); overflow: auto; }
  .site-header .wrap { position: relative; }
  .site-header.nav-open .main-nav > ul { flex-direction: column; }
  .site-header.nav-open .mega { position: static; transform: none; width: auto; border: 0; box-shadow: none; padding: 4px 12px 10px; }
  .site-header.nav-open .mega.open { grid-template-columns: 1fr; }
  .site-header.nav-open .main-nav .nav-cta { display: block; margin-top: 10px; }
}
.main-nav .nav-cta { display: none; }

/* ---------- Hero (home) ----------
   Two halves: the headline on navy with broad sweeping bands, and the latest news on
   stone running to the right-hand edge of the screen, written over the engraved London
   skyline, which draws itself slowly as the page opens. On a phone the news follows
   straight after the headline. */
.hero {
  --hero-copy: 640px;
  --hero-news: 476px;
  display: grid;
  grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, var(--hero-copy)) minmax(0, var(--hero-news)) minmax(var(--gutter), 1fr);
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 700' preserveAspectRatio='xMinYMid slice'%3E%3Cg fill='none' stroke='%23163a5e' stroke-linecap='round'%3E%3Cpath stroke-width='86' d='M-120 560C200 585 520 470 650 -60'/%3E%3Cpath stroke-width='86' d='M-120 760C300 790 700 610 860 -60'/%3E%3Cpath stroke-width='86' d='M-120 960C420 990 900 760 1080 -60'/%3E%3C/g%3E%3Cg fill='none' stroke='%231a4268' stroke-width='2' opacity='.6'%3E%3Cpath d='M-120 517C200 542 520 427 650 -103'/%3E%3Cpath d='M-120 717C300 747 700 567 860 -103'/%3E%3C/g%3E%3C/svg%3E") left center / cover no-repeat;
  position: relative;
}
.hero-copy { grid-column: 2; align-self: center; padding: clamp(36px, 4.5vw, 64px) clamp(28px, 5vw, 72px) clamp(36px, 4.5vw, 60px) 0; }
.hero h1 { font-size: clamp(3rem, 5.4vw, 4.625rem); line-height: 1.02; letter-spacing: -0.025em; max-width: 9em; margin-bottom: 0.34em; text-wrap: balance; color: #fff; }
/* The firm's gold italic: used for one phrase in the hero, the founder heading and the closing band. */
.hero h1 em, .gold-italic em { font-style: italic; color: var(--brass-deep); letter-spacing: -0.01em; }
/* On the navy hero the gold is lighter, for contrast. */
.hero .hero-copy h1 em { color: #d4b06c; }
.hero-lead { font-size: 1.1875rem; line-height: 1.55; color: #d5dee8; max-width: 31em; margin-bottom: 1.3em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
/* On navy the main button is white, so it is the first thing the eye finds. */
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--brass-soft); color: var(--ink); }
.hero-actions .call { color: #fff; font-weight: 600; text-decoration: none; }
.hero-actions .call span { color: #aebccb; font-weight: 400; }
.hero-actions .call:hover { text-decoration: underline; }
/* Plain facts in one line, divided by hairlines: no boxes. */
/* The list starts 14px to the left and clips its own edge, so a divider at the start of any line is hidden. */
.credentials { list-style: none; margin: 22px 0 0 -14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; overflow: hidden; color: var(--muted); font-size: 0.95rem; }
.credentials li { margin-left: -1px; padding: 0 14px; border-left: 1px solid #b9bfb7; line-height: 1.3; }
.hero .credentials { color: #b9c6d4; }
.hero .credentials li { border-left-color: rgba(255,255,255,.22); }
/* The ILPA logo is navy, so on the navy hero it sits on a small white plate. */
.hero .credential-logo img { background: #fff; padding: 5px 7px; border-radius: 3px; box-sizing: content-box; }
.hero .rating { margin-top: 12px; }

.hero-news { grid-column: 3 / -1; position: relative; overflow: hidden; background: var(--stone); color: var(--ink); display: flex; flex-direction: column; }
.hero-news-inner { position: relative; z-index: 1; max-width: var(--hero-news); padding: clamp(32px, 4.5vw, 60px) var(--gutter) clamp(36px, 4vw, 52px) clamp(28px, 4vw, 52px); }
.hero-news h2 { color: var(--ink); font-size: 1.375rem; margin: 0 0 4px; }
.hero-news h2::after { content: ""; display: block; width: 44px; height: 2px; background: var(--brass); margin-top: 12px; }
.hero-news ol { list-style: none; margin: 0; padding: 0; }
.hero-news li a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(15,42,68,.14); text-decoration: none; color: var(--ink); }
.hero-news time { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 2px; }
.hero-news strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.0625rem; line-height: 1.36; }
.hero-news li a:hover strong { text-decoration: underline; text-underline-offset: 0.16em; text-decoration-thickness: 1px; }
.hero-news-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin: 12px 0 0; font-size: 0.9rem; }
.hero-news-foot a { color: var(--ink); font-weight: 600; }
.hero-news-empty { color: var(--muted); margin: 18px 0 0; }
/* The skyline is the panel's background: it stands on the foot of the panel, Westminster at the left,
   and the news is written over it. The text sits on a soft wash of stone so it stays easy to read. */
.hero-news .skyline { position: absolute; left: 0; right: auto; bottom: 0; height: max(30%, 170px); width: auto; max-width: none; min-height: 0; color: var(--brass); }
.hero-news .skyline path { opacity: .55; }
.hero-news .skyline .hatch { opacity: .28; }
.hero-news .skyline .water { opacity: .22; }
.hero-news li a, .hero-news-foot { text-shadow: 0 0 6px var(--stone), 0 0 2px var(--stone); }

@media (max-width: 900px) {
  .hero { grid-template-columns: var(--gutter) minmax(0, 1fr) var(--gutter); }
  .hero-copy { padding: 40px 0 40px; }
  .hero-news { grid-column: 1 / -1; }
  .hero-news-inner { max-width: none; padding: 32px var(--gutter) 64px; }
}
/* Phones: the headline as large as the screen allows; everything left-aligned. The phone number is
   in the top bar, so the hero leaves it out. */
@media (max-width: 600px) {
  .hero-copy { padding: 44px 0 44px; }
  .hero h1 { font-size: clamp(3.1rem, 15vw, 4rem); max-width: none; line-height: 1; margin-bottom: 0.4em; }
  .hero-lead { font-size: 1.125rem; }
  .hero-actions .btn { width: auto; padding-left: 1.6em; padding-right: 1.6em; }
  .hero-actions .call { display: none; }
  .credentials { font-size: 0.9rem; margin-left: -10px; }
  .credentials li { padding: 0 10px; }
}

/* Google rating: a quiet line with brass stars, filled to the rating. */
.rating { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 0; font-size: 0.95rem; }
.rating a { color: var(--ink); font-weight: 600; text-decoration-color: rgba(15,42,68,.35); }
.rating-stars { font-size: 1.05rem; letter-spacing: 2px; line-height: 1; background: linear-gradient(90deg, var(--brass) var(--fill, 100%), #c3c8c1 var(--fill, 100%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.on-ink .rating a { color: #fff; }
.rating-quiet { margin-top: 8px; }
.rating-quiet a { font-weight: 400; color: var(--muted); }

/* Engraved London skyline (partials/skyline): Westminster to Tower Bridge, in brass hairlines. */
.skyline { position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; width: 100%; height: auto; aspect-ratio: 1600 / 192; min-height: 120px; color: #c7a35e; pointer-events: none; }
.skyline path { fill: none; stroke: currentColor; stroke-width: 1.1; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; opacity: .62; }
.skyline .hatch { stroke-width: .6; opacity: .3; }
.skyline .water { stroke-width: .7; opacity: .24; }
.skyline .river-bank { opacity: .5; }
@media (prefers-reduced-motion: no-preference) {
  /* The page's one moment of motion: the skyline is drawn slowly, left to right (about seven
     seconds from Big Ben to Tower Bridge), so it is noticed. It waits, undrawn, until it is on
     screen: site.js adds .sky-draw when it comes into view (on a phone it is below the first
     screen). Without JavaScript (no .js on <html>) it is simply shown, already drawn. */
  .js .skyline .lm, .js .skyline .hatch, .js .skyline .river-bank { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .skyline .water { opacity: 0; }
  .skyline.sky-draw .lm, .skyline.sky-draw .hatch, .skyline.sky-draw .river-bank { animation: gc-draw 3.2s cubic-bezier(.45,.1,.25,1) forwards; animation-delay: calc(var(--d, 0s) * 3 + .3s); }
  .skyline.sky-draw .hatch { animation-duration: 2.4s; animation-delay: calc(var(--d, 0s) * 3 + 2s); }
  .skyline.sky-draw .water { animation: gc-fade 2.4s ease 3.3s forwards; }
}
@keyframes gc-draw { to { stroke-dashoffset: 0; } }
@keyframes gc-fade { to { opacity: .3; } }

.checked { display: inline-flex; align-items: center; gap: 8px; color: var(--verified); font-size: 0.92rem; }
.checked::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--verified); box-shadow: 0 0 0 3px rgba(35,113,92,.16); flex-shrink: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-stone { background: var(--stone); }
.section-ink { background: var(--ink); color: #fff; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 40em; }

/* Services index: an index of routes, not a grid of cards */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 88px); }
.services h3 { font-size: var(--step-2); padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 0; }
.services ul { list-style: none; padding: 0; margin: 0 0 32px; }
.services li { border-bottom: 1px solid var(--line); }
.services li a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 15px 0; text-decoration: none; color: var(--text); }
.services li a strong { font-weight: 600; color: var(--ink); font-size: 1.0625rem; }
.services li a span { grid-column: 1; color: var(--muted); font-size: 0.95rem; }
.services li a em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-weight: 600; color: var(--ink); font-size: 1.0625rem; white-space: nowrap; text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.services li a em small { display: block; font-family: var(--sans); font-size: 0.8rem; color: var(--muted); text-align: right; }
.services li a:hover strong { text-decoration: underline; text-underline-offset: 0.18em; }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

.services-all { margin: -12px 0 36px; }
/* All personal visas / All business visas: sections of routes, two columns. */
.route-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px clamp(32px, 6vw, 88px); align-items: start; }
.route-groups h2 { font-size: var(--step-2); padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin: 0; }
.route-list { list-style: none; padding: 0; margin: 0 0 36px; }
.route-list li { border-bottom: 1px solid var(--line); }
.route-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 0; text-decoration: none; color: var(--text); }
.route-list strong { font-weight: 600; color: var(--ink); font-size: 1.0625rem; }
.route-list span { grid-column: 1; color: var(--muted); font-size: 0.95rem; }
.route-list em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-weight: 600; color: var(--ink); white-space: nowrap; text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.route-list em small { display: block; font-size: 0.8rem; font-weight: 400; color: var(--muted); }
.route-list a:hover strong { text-decoration: underline; text-underline-offset: 0.18em; }
@media (max-width: 760px) { .route-groups { grid-template-columns: 1fr; } }

/* Under the services: the way in for refusals and appeals. */
.services-foot { margin: 4px 0 0; color: var(--muted); }
.services-foot a { font-weight: 600; }

/* Client reviews: three quotations set like a book's endorsements, no carousel. */
.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.quote-card { margin: 0; padding-top: 22px; border-top: 2px solid var(--ink); display: flex; flex-direction: column; gap: 14px; }
.quote-card blockquote { margin: 0; }
.quote-card blockquote p { font-family: var(--serif); font-size: 1.125rem; line-height: 1.55; color: var(--ink); margin: 0; }
.quote-card blockquote p::before { content: "“"; }
.quote-card blockquote p::after { content: "”"; }
.quote-card figcaption { margin-top: auto; font-size: 0.95rem; }
.quote-card figcaption strong { display: block; color: var(--ink); }
.quote-card figcaption span { color: var(--muted); }
.quote-note { margin: 28px 0 0; font-size: var(--step--1); color: var(--muted); max-width: 46em; }
@media (max-width: 860px) { .quote-grid { grid-template-columns: 1fr; } }

/* Two stone sections in a row (no reviews yet): a hairline between them. */
.section-stone + .section-stone { border-top: 1px solid var(--line); }

/* Founder */
.founder .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
/* Cicero's maxim: a band of its own before the closing invitation. */
.maxim-band { background: var(--ink); padding: clamp(56px, 8vw, 104px) 0; }
.maxim-band .maxim blockquote p { color: #fff; }
.maxim-band .maxim figcaption { color: #b9c6d4; }
.maxim { margin: 0 auto; text-align: center; max-width: 900px; }
.maxim::before { content: ""; display: block; width: 56px; height: 2px; background: var(--brass); margin: 0 auto 26px; }
.maxim blockquote { margin: 0; }
.maxim blockquote p { font-family: var(--serif); font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.22; color: var(--ink); margin: 0 0 16px; text-wrap: balance; }
.maxim figcaption { font-size: var(--step--1); color: var(--muted); }
.maxim cite, .maxim [lang="la"] { font-style: italic; }
/* The firm's documents set out as pages (privacy notice, terms): numbered clauses with a hanging number. */
.doc-downloads { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1.6em; }
.doc-contents { background: var(--stone); padding: 18px 22px 14px; border-radius: 4px; margin: 0 0 2em; }
.doc-contents h2 { font-size: var(--step-1); margin: 0 0 10px; }
.doc-contents ol { columns: 2 16em; column-gap: 32px; margin: 0; padding-left: 1.4em; }
.doc-contents li { break-inside: avoid; margin: 0 0 4px; }
.prose .clause { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 0 6px; }
.prose .clause-no { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.prose .clause-follow { margin-left: calc(3.2em + 6px); }
.prose ol.roman { list-style: lower-roman; margin-left: calc(3.2em + 6px); padding-left: 1.6em; }
.prose ol.roman li::marker { content: "(" counter(list-item, lower-roman) ")  "; }
.prose .address { line-height: 1.5; }
.prose .doc-issued { color: var(--muted); font-size: 0.95rem; margin-top: 2em; }
@media (max-width: 560px) { .prose .clause { grid-template-columns: 2.6em minmax(0, 1fr); } .prose .clause-follow, .prose ol.roman { margin-left: 0; } }

/* Cicero's portrait (partials/cicero) beside the maxim; above it on a phone. */
.maxim-band .maxim-layout { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; max-width: 1040px; }
.maxim-layout .maxim { text-align: left; margin: 0; }
.maxim-layout .maxim::before { margin-left: 0; }
.medallion { display: block; width: 100%; height: auto; color: #c7a35e; }
.medallion .legend { font-family: var(--serif); }
@media (max-width: 720px) {
  .maxim-band .maxim-layout { grid-template-columns: 1fr; justify-items: center; gap: 28px; }
  .medallion { width: 190px; }
  .maxim-layout .maxim { text-align: center; }
  .maxim-layout .maxim::before { margin-left: auto; }
}
.founder-photo { margin: 0; position: relative; }
.founder-photo img, .founder-photo .portrait-fallback { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--stone-2); }
.founder-photo::before, .founder-photo::after { content: ""; position: absolute; width: 64px; height: 64px; border: 0 solid var(--brass); pointer-events: none; }
/* Two brass corner marks, top left and bottom right, framing the portrait. */
.founder-photo::before { top: -14px; left: -14px; border-width: 2px 0 0 2px; }
.founder-photo::after { right: -14px; bottom: -14px; border-width: 0 2px 2px 0; }
.founder-text .founder-lead { font-family: var(--serif); font-size: 1.3125rem; line-height: 1.45; color: var(--ink); max-width: 30em; margin-bottom: 0.9em; }
.founder .wrap { position: relative; z-index: 0; }
.founder-text h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); max-width: 16em; line-height: 1.18; }
.founder-text p { max-width: 36em; font-size: 1.0625rem; }
.signoff { font-family: var(--serif); font-size: 1.125rem; color: var(--ink); margin-top: 1.4em; }
.signoff span { display: block; font-family: var(--sans); font-size: 0.92rem; color: var(--muted); margin-top: 2px; }
.founder-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 22px; }
.founder-actions a:not(.btn) { font-weight: 600; }
@media (max-width: 760px) { .founder .wrap { grid-template-columns: 1fr; } .founder-photo { max-width: 320px; } }

/* Cards: news and guides */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.card a { display: block; text-decoration: none; color: inherit; }
.card-image img, .card-image .img-fallback { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--stone-2); margin-bottom: 14px; }
.card-meta { display: flex; gap: 14px; margin: 0 0 6px; font-size: 0.875rem; color: var(--muted); }
.card-meta span { color: var(--brass-2); font-weight: 600; }
.card-title { font-size: 1.25rem; line-height: 1.32; margin: 0 0 6px; }
.card a:hover .card-title { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
.card-text { color: var(--muted); font-size: 0.98rem; margin: 6px 0 0; }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }


.date { color: var(--muted); font-size: 0.9rem; }
.img-fallback { display: flex; align-items: center; justify-content: center; color: rgba(15,42,68,.35); }

/* Calculator promo */
.calc-promo { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.example { background: var(--paper); border: 1px solid var(--line); padding: 20px 24px; }
.example h3 { font-size: 1.0625rem; font-family: var(--sans); font-weight: 600; margin-bottom: 2px; }
.example > p { color: var(--muted); font-size: 0.92rem; margin-bottom: 10px; }
.calc-promo .checked { display: flex; margin: -4px 0 20px; }
.example .example-note { margin: 14px 0 0; }
.sum { width: 100%; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; }
.sum td { padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.98rem; }
.sum td:last-child { text-align: right; white-space: nowrap; padding-left: 16px; }
.sum tr.total td { border-top: 2px solid var(--ink); font-weight: 600; color: var(--ink); font-size: 1.0625rem; }
.sum tr.total td:last-child { font-size: 1.25rem; }
@media (max-width: 860px) { .calc-promo { grid-template-columns: 1fr; } }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
/* The whole team at the office (partials/team-group-photo), on About us. */
.group-photo { margin: 0 0 40px; }
.group-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1718 / 900; object-fit: cover; background: var(--stone-2); }
.group-photo.article-image { margin: 0 0 30px; }
.group-photo.article-image img { aspect-ratio: 1718 / 900; }
.team a { text-decoration: none; color: inherit; }
.team img, .team .portrait-fallback { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; margin-bottom: 14px; background: var(--stone-2); filter: saturate(0.92); }
/* Team photos: on hover or keyboard focus the portrait eases in, warms to full colour,
   a brass line draws along its foot and "View profile" appears. */
.team-photo { position: relative; overflow: hidden; margin-bottom: 14px; background: var(--stone-2); }
.team .team-photo img, .team .team-photo .portrait-fallback { margin-bottom: 0; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .5s ease; }
.team-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.team-photo::before { content: "View profile"; position: absolute; left: 12px; bottom: 15px; z-index: 1; padding: 6px 10px; background: rgba(15, 42, 68, .88); color: #fff; font: 600 0.85rem/1 var(--sans); opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .4s cubic-bezier(.2,.7,.2,1); }
.team a:hover .team-photo img, .team a:focus-visible .team-photo img { transform: scale(1.06); filter: saturate(1.06) contrast(1.03); }
.team a:hover .team-photo::after, .team a:focus-visible .team-photo::after { transform: scaleX(1); }
.team a:hover .team-photo::before, .team a:focus-visible .team-photo::before { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .team .team-photo img, .team-photo::after, .team-photo::before { transition: none; } }
.team h2, .team h3 { font-size: 1.1875rem; margin-bottom: 2px; }
.team p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.team .speaks, .speaks { color: var(--ink-3); font-size: 0.92rem; margin-top: 4px; }
.team a:hover h2, .team a:hover h3 { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
.team-small { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.section-title { margin-bottom: 28px; }
.profile-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--stone-2); }
.portrait-fallback { display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 2.5rem; color: var(--ink-3); }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, 1fr); } }

/* Contact band */
/* Closing band on every page: "Let's find your way forward" and a small cost calculator. */
.next-step-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.next-step h2 { font-size: clamp(2.125rem, 4.2vw, 3.25rem); line-height: 1.08; letter-spacing: -0.015em; margin-bottom: 0.4em; }
.next-step-lead { font-size: var(--step-1); color: var(--text); margin-bottom: 1.2em; }
.next-step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.next-step-actions .call { font-weight: 600; color: var(--ink); text-decoration: none; font-size: 1.125rem; }
.next-step-actions .call:hover { text-decoration: underline; }
.next-step-note { margin: 18px 0 0; color: var(--muted); font-size: 0.95rem; max-width: 34em; }
.next-step-calc { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--brass); padding: clamp(22px, 3vw, 34px); display: grid; gap: 10px; }
.next-step-calc h3 { font-size: var(--step-2); margin: 0 0 6px; }
.next-step-calc label { font-weight: 600; color: var(--ink); }
.next-step-calc select { font: inherit; padding: 12px 14px; border: 1px solid #b9bfb7; border-radius: var(--radius); background: #fff; color: var(--text); width: 100%; }
.next-step-calc .btn { width: 100%; margin-top: 6px; }
.next-step-calc p { margin: 4px 0 0; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 860px) { .next-step-grid { grid-template-columns: 1fr; } }
.contact-band .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); }
.contact-band p { color: #d9e1ea; }
.contact-band dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.contact-band dt { color: #b9c6d4; }
.contact-band dd { margin: 0; color: #fff; }
.contact-band dd a { color: #fff; }
.contact-band .where { display: block; color: #b9c6d4; font-size: 0.95rem; margin-top: 2px; }
@media (max-width: 760px) { .contact-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #0a1f33; color: #c8d2dd; font-size: 0.95rem; padding: 56px 0 28px; }
.site-footer a { color: #e4ebf2; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { color: #fff; font-size: 1.0625rem; font-family: var(--sans); font-weight: 600; margin-bottom: 12px; }
.footer-firm .wordmark { margin-bottom: 18px; align-items: flex-start; }
.footer-firm address { font-style: normal; margin-bottom: 1em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { padding: 4px 0; }
/* SRA digital badge with the regulatory statement. */
.footer-regulation { display: grid; grid-template-columns: 275px minmax(0, 1fr); gap: 32px; align-items: center; border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 32px; }
.footer-regulation h2 { color: #fff; font-size: 1.0625rem; font-family: var(--sans); font-weight: 600; margin-bottom: 10px; }
.footer-regulation p { margin: 0 0 8px; max-width: 46em; }
.footer-regulation a { text-decoration: underline; text-underline-offset: 0.18em; }
.sra-badge { width: 275px; max-width: 100%; }
@media (max-width: 640px) { .footer-regulation { grid-template-columns: 1fr; } }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 22px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: #9fb0c1; font-size: 0.875rem; }
.footer-legal p { margin: 0; max-width: 60em; }
.sra-badge { margin-top: 18px; max-width: 275px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Cookie choice (partials/cookie-consent): a white panel at the foot of the screen, over the page,
   never covering it entirely. The two choices are the same button, so neither is pushed. */
.consent { position: fixed; z-index: 90; left: 16px; bottom: 16px; width: min(520px, calc(100% - 32px)); background: var(--paper); color: var(--text); border-top: 3px solid var(--brass); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(10,31,51,.28), 0 2px 8px rgba(10,31,51,.12); }
.consent[hidden] { display: none; }
.consent:focus { outline: none; }
.consent:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.consent-inner { padding: 22px 24px 20px; }
.consent h2 { font-size: 1.25rem; margin: 0 0 8px; color: var(--ink); }
.consent p { margin: 0 0 16px; font-size: 0.95rem; line-height: 1.55; }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.consent-actions .btn { flex: 1 1 0; min-width: 8.5em; padding: 0.8em 1em; }
.consent p a { color: var(--ink); white-space: nowrap; }
@media (max-width: 600px) {
  .consent { left: 0; bottom: 0; width: 100%; border-radius: 0; }
  .consent-inner { padding: 16px 16px calc(14px + env(safe-area-inset-bottom)); }
  .consent h2 { font-size: 1.125rem; margin-bottom: 6px; }
  .consent p { font-size: 0.875rem; line-height: 1.5; margin-bottom: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .consent.is-new { animation: gc-rise .5s cubic-bezier(.2,.7,.2,1) both; }
}
.footer-button { background: none; border: 0; padding: 0; font: inherit; color: #e4ebf2; cursor: pointer; text-align: left; }
.footer-button:hover { text-decoration: underline; }

/* Website chat assistant (partials/chat, public/js/chat.js). Its own colours (a deep red, --chat) so
   the chat reads as a separate thing from the navy-and-gold site: a round launcher with Jane's
   picture at the bottom right; the panel opens above it (full screen on a phone). Hidden while the
   cookie choice is showing. The form is sized to fit a laptop screen without scrolling. */
:root { --chat: #7a1f2b; --chat-2: #5e1521; --chat-soft: #fbf3f2; --chat-line: #e9d4d4; }
.chat-launcher { position: fixed; z-index: 80; right: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px; padding: 7px 20px 7px 8px; border: 0; border-radius: 999px; background: var(--chat); color: #fff; font: 600 1rem/1 var(--sans); cursor: pointer; box-shadow: 0 10px 28px rgba(94,21,33,.35); }
.chat-launcher:hover { background: var(--chat-2); }
.chat-launcher:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.chat-launcher img { width: 36px; height: 36px; border-radius: 50%; background: #f3e6e3; border: 2px solid rgba(255,255,255,.85); object-fit: cover; }
.consent:not([hidden]) ~ .chat-launcher, .chat-open .chat-launcher { display: none; }
.chat-panel { position: fixed; z-index: 95; right: 20px; bottom: 20px; width: min(400px, calc(100% - 40px)); max-height: min(680px, calc(100vh - 40px)); display: flex; flex-direction: column; background: var(--paper); border-radius: 10px; box-shadow: 0 24px 60px rgba(60,10,18,.35); overflow: hidden; border: 1px solid var(--chat-line); }
.chat-panel[hidden], .chat-panel [hidden] { display: none !important; }
.chat-head { display: flex; gap: 12px; align-items: center; padding: 12px 12px 12px 14px; background: var(--chat); color: #fff; }
.chat-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #f3e6e3; border: 2px solid rgba(255,255,255,.85); object-fit: cover; }
.chat-head-text { flex: 1; min-width: 0; }
.chat-head h2 { color: #fff; font-size: 1.125rem; margin: 0 0 2px; line-height: 1.2; }
.chat-head p { margin: 0; font-size: 0.78rem; color: #f0dcdc; line-height: 1.3; }
.chat-close { flex: none; background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; border-radius: var(--radius); }
.chat-close:hover { background: rgba(255,255,255,.12); }
.chat-close:focus-visible { outline: 3px solid var(--brass); }
.chat-form { padding: 12px 16px 14px; overflow-y: auto; display: grid; gap: 8px; }
.chat-form .field { gap: 3px; }
.chat-form .field label { font-size: 0.85rem; font-weight: 600; }
.chat-form .field input { min-height: 34px; padding: 5px 10px; font-size: 0.92rem; }
.chat-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chat-intro { margin: 0 0 2px; font-size: 0.82rem; line-height: 1.35; color: var(--muted); }
.chat-check { display: flex; gap: 8px; align-items: flex-start; font-size: 0.85rem; line-height: 1.3; color: var(--text); }
.chat-check input { margin-top: 2px; width: 16px; height: 16px; flex: none; accent-color: var(--chat); }
.chat-consent { font-size: 0.76rem; line-height: 1.3; color: var(--muted); }
.chat-consent a { color: var(--chat); }
.chat-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.chat-error { margin: 0; color: var(--danger); font-weight: 600; font-size: 0.85rem; }
.chat-btn { background: var(--chat); color: #fff; border-color: var(--chat); justify-content: center; }
.chat-btn:hover { background: var(--chat-2); border-color: var(--chat-2); color: #fff; }
.chat-body { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.chat-body[hidden], .chat-form[hidden] { display: none; }
.chat-log { flex: 1; min-height: 240px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--chat-soft); }
.chat-msg { max-width: 88%; padding: 9px 13px; border-radius: 12px; font-size: 0.95rem; line-height: 1.45; overflow-wrap: anywhere; }
.chat-msg p { margin: 0 0 8px; }
.chat-msg p:last-child { margin: 0; }
.chat-assistant { align-self: flex-start; background: var(--paper); color: var(--text); border-bottom-left-radius: 3px; box-shadow: 0 1px 2px rgba(94,21,33,.1); border: 1px solid var(--chat-line); }
.chat-assistant a { color: var(--chat); }
.chat-visitor { align-self: flex-end; background: var(--chat); color: #fff; border-bottom-right-radius: 3px; }
.chat-typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.chat-typing span:not(.visually-hidden) { width: 7px; height: 7px; border-radius: 50%; background: var(--chat); opacity: .35; }
@media (prefers-reduced-motion: no-preference) {
  .chat-typing span:not(.visually-hidden) { animation: gc-dot 1.2s ease-in-out infinite; }
  .chat-typing span:nth-child(2) { animation-delay: .2s; }
  .chat-typing span:nth-child(3) { animation-delay: .4s; }
}
@keyframes gc-dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.chat-compose { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--chat-line); background: var(--paper); }
.chat-compose textarea { min-height: 44px; max-height: 140px; resize: none; padding: 10px 12px; }
.chat-compose textarea:focus { border-color: var(--chat); box-shadow: 0 0 0 3px rgba(122,31,43,.15); }
.chat-send { flex: none; width: 46px; height: 46px; border: 0; border-radius: var(--radius); background: var(--chat); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-send:hover { background: var(--chat-2); }
.chat-send:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.chat-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0; padding: 0 12px 10px 14px; font-size: 0.8rem; color: var(--muted); background: var(--paper); }
.chat-foot a { color: var(--chat); }
.chat-end { background: none; border: 1px solid var(--chat-line); color: var(--chat); font: 600 0.8rem/1 var(--sans); padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.chat-end:hover { background: var(--chat-soft); border-color: var(--chat); }
.chat-ended { padding: 14px 16px 16px; border-top: 1px solid var(--chat-line); background: var(--paper); display: grid; gap: 10px; }
.chat-ended p { margin: 0; font-size: 0.9rem; line-height: 1.45; color: var(--text); }
@media (max-width: 600px) {
  .chat-launcher { right: 14px; bottom: 14px; padding: 6px 16px 6px 7px; }
  /* A pop-up on a phone too, not the whole screen: the page stays visible around it. */
  .chat-panel { left: 12px; right: 12px; bottom: 12px; top: auto; width: auto; max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); border-radius: 14px; box-shadow: 0 18px 50px rgba(20,10,12,.45); }
  .chat-head { padding: 10px 10px 10px 12px; }
  .chat-head p { font-size: 0.74rem; }
  .chat-log { min-height: 160px; }
  .chat-form { gap: 6px; padding: 10px 14px 12px; }
  .chat-form .field input { min-height: 32px; padding: 4px 10px; }
  .chat-intro { font-size: 0.78rem; }
  .chat-cols { grid-template-columns: 1fr; }
  .chat-open body { overflow: hidden; }
}
@media print { .chat-launcher, .chat-panel { display: none !important; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--stone); padding: clamp(36px, 5vw, 60px) 0 clamp(30px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 20em; margin-bottom: 14px; text-wrap: balance; }
.page-head h1.long { font-size: clamp(1.875rem, 3.1vw, 2.5rem); max-width: 26em; line-height: 1.2; }
.page-head .lead { font-size: var(--step-1); color: var(--muted); max-width: 38em; margin: 0; line-height: 1.5; }
.crumbs { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.92rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 0.95rem; color: var(--muted); }

.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); padding-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(56px, 7vw, 88px); align-items: start; }
.layout-aside aside { position: sticky; top: 100px; display: grid; gap: 20px; }
@media (max-width: 980px) { .layout-aside { grid-template-columns: 1fr; } .layout-aside aside { position: static; } }

.hero-image { margin: 0 0 32px; }
.hero-image img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* Long-form content */
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--step-2); margin-top: 1.8em; }
.prose h2, .prose h3, .standfirst { font-variant-numeric: lining-nums; }
.prose h3 { font-size: var(--step-1); margin-top: 1.5em; }
/* Third-level headings are run-in labels in the body face, so serif is kept for real section headings. */
.prose h4 { font-family: var(--sans); font-weight: 600; font-size: var(--step-0); letter-spacing: 0; color: var(--ink); margin: 1.4em 0 0.4em; }
.prose > :first-child { margin-top: 0; }

/* The opening paragraph: the text starts here, in the heading face, under a short brass rule. */
.standfirst { font-family: var(--serif); font-size: clamp(1.125rem, 1.9vw, var(--step-1)); line-height: 1.62; color: var(--ink); max-width: 34em; margin: 0 0 32px; font-variant-numeric: lining-nums; }
.standfirst::before { content: ""; display: block; width: 56px; height: 2px; background: var(--brass); margin-bottom: 22px; }
.standfirst a { color: inherit; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--brass); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brass); font-family: var(--serif); color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.98rem; }
@media (max-width: 640px) { .prose table { display: block; overflow-x: auto; } }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--stone); font-weight: 600; color: var(--ink); }
.prose img { margin: 1.5em 0; }
.prose .page-update-note { background: var(--notice-soft); border-left: 3px solid var(--notice); padding: 12px 16px; font-size: 0.98rem; }
.prose .page-update-note strong { font-weight: 600; color: var(--notice); }
.prose > :first-child { margin-top: 0; }
.fee-live { font-weight: 600; color: var(--ink); white-space: nowrap; }

.in-brief { background: var(--stone); padding: 20px 24px; margin: 0 0 28px; }
.in-brief h2 { font-size: 1.125rem; font-family: var(--sans); font-weight: 600; margin: 0 0 8px !important; }
.in-brief ul { margin: 0; padding-left: 1.2em; }
.in-brief li { margin-bottom: 4px; }

.disclaimer { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }

/* Sidebar panels */
.panel { border: 1px solid var(--line); background: var(--paper); }
.panel-head { padding: 18px 20px 10px; }
.panel-head h2 { font-size: 1.1875rem; margin: 0 0 4px; }
.panel-head p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.panel .fees { width: 100%; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; }
.panel .fees th, .panel .fees td { padding: 10px 20px; border-top: 1px solid var(--line); text-align: left; vertical-align: baseline; font-size: 0.95rem; }
.panel .fees th { font-weight: 400; }
.panel .fees td { text-align: right; font-weight: 600; color: var(--ink); white-space: nowrap; font-size: 1.0625rem; }
.panel .fees .upcoming { display: block; font-family: var(--sans); color: var(--notice); font-size: 0.8125rem; }
.panel-foot { padding: 14px 20px 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.panel-ink { background: var(--ink); color: #fff; border: 0; padding: 22px 20px; }
.panel-ink h2 { color: #fff; font-size: 1.1875rem; }
.panel-ink p { color: #d9e1ea; font-size: 0.98rem; }
.panel-ink .phone { display: block; color: #fff; font-weight: 600; font-size: 1.375rem; text-decoration: none; margin: 4px 0 14px; }
.panel-rating { margin-top: 14px; font-size: 0.9rem; }
.panel-ink .panel-rating a, .site-footer .rating a { font-weight: 400; color: #d9e1ea; }
.footer-rating { font-size: 0.9rem; }
.panel-ink .rating-stars, .site-footer .rating-stars { background: linear-gradient(90deg, #d2ad68 var(--fill, 100%), rgba(255,255,255,.3) var(--fill, 100%)); -webkit-background-clip: text; background-clip: text; }
/* Contact page: the three steps after an enquiry. */
.next-steps ol { margin: 0; padding: 4px 20px 0 40px; }
.next-steps li { margin-bottom: 10px; font-size: 0.95rem; line-height: 1.5; padding-left: 2px; }
.next-steps li::marker { font-weight: 600; color: var(--brass); }
.next-steps .panel-rating { padding: 12px 20px 18px; margin: 0; border-top: 1px solid var(--line); }

.related { list-style: none; padding: 0 20px 8px; margin: 0; }
.related li { border-top: 1px solid var(--line); padding: 12px 0; }
.related li span:not(.date) { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 2px; line-height: 1.45; }
.related a { text-decoration: none; color: var(--ink); font-weight: 600; }
.related a:hover { text-decoration: underline; }

/* Listing pages */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; }
.tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 0.95rem; }
.tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab-buttons { margin-bottom: 0; }
.tab-buttons button { font: inherit; font-size: 0.95rem; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.section-stone .tab-buttons button { border-color: #c9cfc6; }
.tab-buttons button:hover { border-color: var(--ink); }
.tab-buttons button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab-buttons button:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.tab-panel:focus-visible { outline: 2px solid var(--brass); outline-offset: 6px; }
.tab-more { margin: 28px 0 0; }
.pagination { margin-top: 44px; display: flex; gap: 12px; justify-content: center; }

.article-image { margin: 0 0 30px; }
.article-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.attribution { color: var(--muted); font-size: 0.9rem; font-style: italic; }

/* ---------- Fees table & calculator ---------- */
.fees-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.fees-tools input { flex: 1; min-width: 240px; }
.fee-section { margin-bottom: 44px; }
.fee-section h2 { font-size: var(--step-2); padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 0; }
.fee-table { width: 100%; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; }
.fee-table th, .fee-table td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; text-align: left; }
.fee-table thead th { font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.fee-table td.amount, .fee-table th.amount { text-align: right; white-space: nowrap; padding-left: 18px; }
.fee-table td.amount { font-weight: 600; color: var(--ink); font-size: 1.0625rem; }
.fee-table .change { display: block; font-family: var(--sans); font-size: 0.8125rem; color: var(--notice); }
.fee-table tr[hidden] { display: none; }

.calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.calc-form { display: grid; gap: 20px; }
.calc-result { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--brass); padding: 22px 24px; position: sticky; top: 100px; }
.calc-result h2 { font-size: 1.375rem; margin-bottom: 4px; }
.calc-result .sum td { font-size: 0.98rem; }
.calc-result .sum td small { display: block; color: var(--muted); font-size: 0.85rem; }
.calc-result .note { color: var(--muted); font-size: 0.92rem; margin: 14px 0 0; }
.calc-result .sponsor { margin-top: 18px; }
.calc-result .sponsor h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } .calc-result { position: static; } }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; color: var(--ink); }
.field .hint { color: var(--muted); font-size: 0.92rem; margin: -2px 0 2px; }
.hint-inline { color: var(--muted); font-weight: 400; font-size: 0.92em; }
.field .error { color: var(--danger); font-size: 0.92rem; font-weight: 600; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=number], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--text); background: var(--paper);
  border: 1px solid #a9b0b8; border-radius: var(--radius); padding: 11px 12px; min-height: 46px;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--brass); outline-offset: 0; border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
fieldset { border: 0; padding: 0; margin: 0; }
.choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--text) !important; }
.choice input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--ink); }
.stepper { display: inline-grid; grid-template-columns: 46px 64px 46px; border: 1px solid #a9b0b8; border-radius: var(--radius); overflow: hidden; width: max-content; }
.stepper button { background: var(--stone); border: 0; font-size: 1.25rem; color: var(--ink); cursor: pointer; }
.stepper button:hover { background: var(--stone-2); }
.stepper input { border: 0; border-radius: 0; text-align: center; min-height: 44px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.alert { padding: 14px 18px; border-left: 4px solid var(--verified); background: #e8f2ee; margin-bottom: 24px; }
.alert-error { border-color: var(--danger); background: #f8ebe8; }
.alert-notice { border-color: var(--notice); background: var(--notice-soft); }

/* ---------- Login (Step 1: no accounts yet) ---------- */
.login-page { min-height: calc(100vh - 77px); background: var(--stone); display: grid; place-items: center; padding: 48px var(--gutter); }
.login-card { width: min(440px, 100%); background: var(--paper); border-top: 4px solid var(--ink); padding: 32px clamp(20px, 5vw, 36px); box-shadow: 0 24px 48px -32px rgba(15,42,68,.4); }
.login-card h1 { font-size: 1.75rem; margin-bottom: 6px; }
.login-card > p { color: var(--muted); }
.login-card form { display: grid; gap: 18px; margin-top: 22px; }
.login-card .btn { width: 100%; }
.login-card .small { font-size: 0.92rem; color: var(--muted); margin: 18px 0 0; }

/* ---------- Review pages (staff, from office@ emails) ---------- */
.review-bar { background: var(--notice-soft); border-bottom: 1px solid #ecd9b0; padding: 12px 0; font-size: 0.95rem; }
.review-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; padding-top: 36px; padding-bottom: 72px; align-items: start; }
.review-grid aside { position: sticky; top: 100px; display: grid; gap: 18px; }
.review-preview { border: 1px solid var(--line); padding: 28px; max-height: 70vh; overflow: auto; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; background: var(--stone); color: var(--ink); }
.status-pill.live { background: #e8f2ee; color: var(--verified); }
.status-pill.draft { background: var(--notice-soft); color: var(--notice); }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 4px; border: 1px solid #a9b0b8; border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; padding: 6px; background: var(--stone); }
.editor-toolbar button { background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 5px 10px; font: 600 0.9rem var(--sans); cursor: pointer; color: var(--ink); }
.editor { min-height: 420px; border: 1px solid #a9b0b8; border-radius: 0 0 var(--radius) var(--radius); padding: 18px 20px; background: var(--paper); overflow: auto; }
.editor:focus { outline: 3px solid var(--brass); }
@media (max-width: 1000px) { .review-grid { grid-template-columns: 1fr; } .review-grid aside { position: static; } }

/* ---------- Error pages ---------- */
.error-page { padding: 96px 0; }
.error-page h1 { max-width: 16em; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .terrace, aside, .hero-actions, .routes, .btn { display: none !important; }
  .hero, .section-ink { background: none; color: #000; }
  .hero h1 { color: #000; }
  a { color: #000; }
}

/* ---------- Visa pages: at a glance, contents, questions ---------- */
.glance { border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 22px 24px 18px; margin: 0 0 32px; background: var(--paper); }
.glance h2 { font-size: 1.375rem; margin: 0 0 14px; }
.glance dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.glance dl > div { padding: 12px 0; border-top: 1px solid var(--line); }
.glance dt { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.glance dd { margin: 2px 0 0; color: var(--text); font-size: 0.98rem; line-height: 1.5; }
.glance-note { margin: 12px 0 0; font-size: 0.875rem; color: var(--muted); }
@media (max-width: 640px) { .glance dl { grid-template-columns: 1fr; } }

.toc { background: var(--stone); padding: 18px 22px 14px; margin: 0 0 32px; }
.toc h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 0 0 8px; color: var(--ink); }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 6px; break-inside: avoid; font-size: 0.98rem; }
.toc li::marker { color: var(--brass-2); }
@media (max-width: 640px) { .toc ol { columns: 1; } }

.prose h2[id], #fees-heading { scroll-margin-top: 120px; }
.prose details { border-top: 1px solid var(--line); }
.prose details:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 1.6em; }
.prose summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; position: relative; font-family: var(--sans); font-weight: 600; font-size: 1.0625rem; color: var(--ink); line-height: 1.45; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.prose details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.prose summary:hover { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
.prose details > :not(summary) { margin-left: 0; }
.prose details > p:last-child, .prose details > ul:last-child { margin-bottom: 18px; }

.related-news .section-head { margin-bottom: 28px; }
.page-body { padding-top: 44px; padding-bottom: 72px; }
.prose .fee-ranges td:last-child, .prose .fee-ranges th:last-child { white-space: nowrap; text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.prose .fee-ranges td:last-child { font-weight: 600; color: var(--ink); }

/* Contact page: finding the office (entrance photo, directions, map). */
.finding-grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.entrance { margin: 0; }
.entrance img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--stone-2); }
.entrance figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 10px; }
.finding-text h2 { margin-bottom: 16px; }
.finding-text address { font-style: normal; font-weight: 600; color: var(--ink); margin-bottom: 16px; line-height: 1.5; }
.finding-text p { max-width: 34em; }
.finding .map { aspect-ratio: 15 / 16; }
@media (max-width: 1000px) { .finding-grid { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); } .finding .map { grid-column: 1 / -1; aspect-ratio: 16 / 9; } }
@media (max-width: 640px) { .finding-grid { grid-template-columns: 1fr; } .entrance { max-width: 360px; } .finding .map { aspect-ratio: 4 / 3; } }

/* Google Maps loads only when asked for. */
.map { aspect-ratio: 4 / 3; background: var(--stone); border: 1px solid var(--line); position: relative; overflow: hidden; }
.map-load { all: unset; box-sizing: border-box; cursor: pointer; position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--ink); text-align: center;
  background: repeating-linear-gradient(0deg, transparent 0 23px, rgba(15, 42, 68, .06) 23px 24px), repeating-linear-gradient(90deg, transparent 0 23px, rgba(15, 42, 68, .06) 23px 24px), var(--stone); }
.map-load svg { color: var(--brass); }
.map-load span { font-weight: 600; text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.map-load small { color: var(--muted); font-size: var(--step--1); }
.map-load:hover span { text-decoration-thickness: 2px; }
.map-load:focus-visible { outline: 3px solid var(--brass); outline-offset: -3px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.panel .where { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }
.contact-band .where a { color: inherit; }

/* ---------- Movement ----------
   One idea throughout: the brass lines of the engraved skyline. As the page opens the
   headline settles and the news arrives; further down, lines draw themselves and
   content settles in as each part comes into view (site.js marks it). Everything
   is off for people who ask their device for reduced motion. */
@property --fill { syntax: "<percentage>"; inherits: true; initial-value: 100%; }

/* Services, route lists and the news: a brass mark and a small step in on hover. */
.services li a, .route-list a { position: relative; transition: padding-left .3s cubic-bezier(.2,.7,.2,1); }
.services li a::before, .route-list a::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; background: var(--brass); transform: scaleY(0); transform-origin: top; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.services li a:hover, .services li a:focus-visible, .route-list a:hover, .route-list a:focus-visible { padding-left: 14px; }
.services li a:hover::before, .services li a:focus-visible::before, .route-list a:hover::before, .route-list a:focus-visible::before { transform: scaleY(1); }
.hero-news li a { transition: padding-left .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; }
.hero-news li a:hover, .hero-news li a:focus-visible { padding-left: 12px; box-shadow: inset 2px 0 0 var(--brass); }

/* Lines drawn with backgrounds, so they can grow. */
.services h3 { border-bottom: 0; background: linear-gradient(var(--ink), var(--ink)) left bottom / 100% 2px no-repeat; }
.quote-card { border-top: 0; background: linear-gradient(var(--ink), var(--ink)) left top / 100% 2px no-repeat; }
.next-step-calc { position: relative; border-top: 1px solid var(--line); }
.next-step-calc::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--brass); transform-origin: left; }
.next-step-calc .next-step-fee { margin: 2px 0 0; color: var(--ink); font-size: 1rem; }
.next-step-fee strong { font-size: 1.375rem; font-variant-numeric: lining-nums tabular-nums; }

@media (prefers-reduced-motion: no-preference) {
  /* The page opening: headline, then the rest, then the news, while the skyline draws. */
  .hero-copy > * { animation: gc-rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-copy > :nth-child(5) { animation-delay: .3s; }
  .hero-news h2 { animation: gc-rise .7s cubic-bezier(.2,.7,.2,1) .2s both; }
  .hero-news li { animation: gc-slide .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(.35s + var(--i, 0) * .1s); }
  .hero-news-foot { animation: gc-rise .7s ease .7s both; }
  .hero .rating-stars { animation: gc-stars 1.4s cubic-bezier(.3,.7,.3,1) .7s both; }
  /* "Updated today": the green dot breathes, so the news reads as live. */
  .hero-news .checked::before { animation: gc-pulse 2.6s ease-out 1.5s infinite; }

  /* Further down (site.js adds .reveal-ready to <html> and .is-in as each part arrives). */
  .reveal-ready [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
  .reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }
  .services h3, .quote-card { transition: background-size 1s cubic-bezier(.6,.1,.2,1) .15s; }
  .reveal-ready .services > [data-reveal]:not(.is-in) h3 { background-size: 0 2px; }
  .reveal-ready .quote-card[data-reveal]:not(.is-in) { background-size: 0 2px; }
  .quote-card .rating-stars { transition: --fill 1.2s cubic-bezier(.3,.7,.3,1) .5s; }
  .reveal-ready .quote-card[data-reveal]:not(.is-in) .rating-stars { --fill: 0% !important; }
  .maxim::before, .next-step-calc::before { transition: transform 1s cubic-bezier(.6,.1,.2,1) .2s; }
  /* Cicero's portrait draws itself line by line, like the skyline; the beads, name and shading follow. */
  .reveal-ready .medallion[data-reveal] { opacity: 1; transform: none; }
  .medallion [pathLength] { stroke-dasharray: 1; transition: stroke-dashoffset 3.4s cubic-bezier(.45,.1,.25,1) .2s; }
  .medallion .beads, .medallion .legend, .medallion .shade, .medallion .pupil { transition: opacity 1.4s ease 2.4s; }
  .reveal-ready .medallion[data-reveal]:not(.is-in) [pathLength] { stroke-dashoffset: 1; }
  .reveal-ready .medallion[data-reveal]:not(.is-in) :is(.beads, .legend, .shade, .pupil) { opacity: 0; }
  .reveal-ready .maxim[data-reveal]:not(.is-in)::before, .reveal-ready .next-step-calc[data-reveal]:not(.is-in)::before { transform: scaleX(0); }
  .founder-photo::before, .founder-photo::after { transition: width .9s cubic-bezier(.6,.1,.2,1) .35s, height .9s cubic-bezier(.6,.1,.2,1) .35s; }
  .reveal-ready .founder-photo[data-reveal]:not(.is-in)::before, .reveal-ready .founder-photo[data-reveal]:not(.is-in)::after { width: 0; height: 0; }
}
@keyframes gc-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes gc-slide { from { opacity: 0; transform: translateX(20px); } }
@keyframes gc-stars { from { --fill: 0%; } }
@keyframes gc-pulse { 0% { box-shadow: 0 0 0 0 rgba(95,191,154,.6); } 70% { box-shadow: 0 0 0 9px rgba(95,191,154,0); } 100% { box-shadow: 0 0 0 0 rgba(95,191,154,0); } }

/* Client reviews on navy (home page) and the sample label on the test site. */
.client-reviews.section-ink .quote-card { background-image: linear-gradient(var(--brass), var(--brass)); }
.client-reviews.section-ink .quote-card blockquote p { color: #fff; }
.client-reviews.section-ink .quote-card figcaption strong { color: #fff; }
.client-reviews.section-ink .quote-card figcaption span, .client-reviews.section-ink .quote-note { color: #b9c6d4; }
.client-reviews.section-ink .section-head p, .client-reviews.section-ink .rating-quiet, .client-reviews.section-ink .rating-quiet a { color: #d9e1ea; }
.client-reviews.section-ink .rating-stars { background: linear-gradient(90deg, #d2ad68 var(--fill, 100%), rgba(255,255,255,.3) var(--fill, 100%)); -webkit-background-clip: text; background-clip: text; }
.sample-flag { display: inline-block; margin: 0 0 22px; padding: 6px 12px; border: 1px dashed currentColor; border-radius: var(--radius); font-size: 0.875rem; color: var(--notice); background: rgba(255,255,255,.6); }
.section-ink .sample-flag { color: #f2d394; background: transparent; }

/* Contact page: the firm's promise under "What happens next", and appointment-only visits. */
.next-steps .next-steps-promise { margin: 4px 20px 16px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 1.0625rem; line-height: 1.45; color: var(--ink); }
.appointment-only { margin-top: 6px !important; font-weight: 600; color: var(--brass-deep) !important; }

/* Footer: social links and memberships. */
.site-footer .social { list-style: none; display: flex; gap: 14px; margin: 14px 0 0; padding: 0; }
.site-footer .social a { display: inline-flex; color: #d9e1ea; transition: color .2s ease, transform .2s ease; }
.site-footer .social a:hover, .site-footer .social a:focus-visible { color: #d2ad68; transform: translateY(-2px); }
.footer-regulation .membership { margin-top: 12px; }
.footer-regulation .membership a { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.footer-regulation .membership img { height: 44px; width: auto; background: #fff; padding: 4px 6px; border-radius: 2px; }
.form-note { font-size: 0.95rem; color: var(--muted); margin: -4px 0 14px; }
.panel-ink .panel-link { display: inline-block; margin-top: 12px; color: #fff; font-size: 0.95rem; }
.panel-ink p a { color: #fff; }
.panel-ink .panel-email { display: block; color: #fff; margin: -6px 0 18px; font-size: 0.98rem; }
.credentials a { color: inherit; text-decoration-color: rgba(91,100,112,.45); }
.credentials { align-items: center; }
.credentials .credential-logo a { display: block; line-height: 0; }
.credentials .credential-logo img { height: 34px; width: auto; display: block; }

/* About the firm: the three results, as a ruled list (figure, then what it means). */
.prose ul.results { list-style: none; padding: 0; margin: 0 0 1em; border-top: 1px solid var(--line); }
.prose ul.results li { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 20px; align-items: baseline; padding: 18px 0; margin: 0; border-bottom: 1px solid var(--line); }
.prose ul.results li::marker { content: none; }
.prose ul.results strong { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.1; color: var(--ink); font-variant-numeric: lining-nums; }
@media (max-width: 560px) { .prose ul.results li { grid-template-columns: 1fr; gap: 4px; } }

/* News and guides pages: newspaper-style top row (lead story + latest four). */
.news-top { padding-top: clamp(28px, 4vw, 48px); }
.news-tabs { margin-bottom: clamp(20px, 2.6vw, 28px); }
/* Both columns share one height: the photo fills its column, so its bottom lines up with the last story. */
.news-top-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 48px); align-items: stretch; }
.lead-story { display: flex; }
.lead-story a { position: relative; display: block; flex: 1; min-height: 360px; overflow: hidden; color: #fff; text-decoration: none; background: var(--ink); border-radius: 4px; }
.lead-story-image { position: absolute; inset: 0; }
.lead-story-image img, .lead-story-image .img-fallback { display: block; width: 100%; height: 100%; object-fit: cover; }
.lead-story-image .img-fallback { color: rgba(255,255,255,.35); display: grid; place-items: center; }
.lead-story-image img { transition: transform .5s ease; }
.lead-story a:hover .lead-story-image img { transform: scale(1.02); }
.lead-story-text { position: absolute; inset: auto 0 0 0; padding: clamp(18px, 2.6vw, 30px); padding-top: 72px; background: linear-gradient(to top, rgba(10,24,40,.9) 0%, rgba(10,24,40,.6) 55%, rgba(10,24,40,0) 100%); }
.lead-story-flag { position: absolute; z-index: 1; top: clamp(16px, 2vw, 24px); left: clamp(16px, 2vw, 24px); margin: 0; padding: 6px 12px; background: var(--brass); color: #fff; font-weight: 600; font-size: 0.875rem; border-radius: 2px; }
.lead-story-meta { display: flex; gap: 12px; margin: 0 0 8px; font-size: 0.9rem; color: #d9e1ea; }
.lead-story-meta span { color: #e2c38c; font-weight: 600; }
.lead-story-title { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.2; margin: 0; text-wrap: balance; }
.lead-story a:hover .lead-story-title { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
.latest-list { display: flex; flex-direction: column; }
.latest-heading { font-size: var(--step-1); padding-bottom: 10px; margin: 0; border-bottom: 2px solid var(--brass); }
.latest-list ol { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; grid-auto-rows: 1fr; }
.latest-list li { border-bottom: 1px solid var(--line); }
.latest-list a { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px; align-items: center; height: 100%; padding: 18px 0; color: inherit; text-decoration: none; }
.latest-thumb img, .latest-thumb .img-fallback { display: grid; place-items: center; width: 128px; aspect-ratio: 3 / 2; object-fit: cover; background: var(--stone-2); border-radius: 2px; }
.latest-thumb .img-fallback svg { width: 28px; height: 28px; }
.latest-text { display: grid; gap: 4px; align-content: start; }
.latest-kind { color: var(--brass-2); font-weight: 600; font-size: 0.875rem; }
.latest-text strong { font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: 1.0625rem; line-height: 1.32; }
.latest-text time { font-size: 0.875rem; color: var(--muted); }
.latest-list a:hover strong { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
.news-top + .news-listing { padding-top: clamp(40px, 5vw, 64px); }
.listing-heading { font-size: var(--step-2); margin: 0 0 clamp(18px, 2.4vw, 26px); }
@media (max-width: 980px) {
  .news-top-grid { grid-template-columns: 1fr; }
  .lead-story a { min-height: 0; }
  .lead-story-image { position: static; }
  .lead-story-image img, .lead-story-image .img-fallback { height: auto; aspect-ratio: 3 / 2; }
  .latest-list ol { grid-auto-rows: auto; }
}
@media (max-width: 560px) {
  .lead-story-text { position: static; padding: 18px; background: var(--ink); }
  .latest-list a { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; }
  .latest-thumb img, .latest-thumb .img-fallback { width: 104px; }
}

/* Staff page: featured story and News / Guides. */
.placement-form fieldset { margin: 0 0 26px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 4px; }
.placement-form legend { font-weight: 600; color: var(--ink); padding: 0 6px; }
.placement-form .check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; margin: 10px 0; cursor: pointer; }
.placement-form .check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--ink); }
.placement-form .hint { color: var(--muted); font-size: 0.92rem; margin: 6px 0 0 32px; }

/* Team profiles: areas of expertise (an ordinary bulleted list) and the person's articles. */
.prose .expertise { margin-top: 2.4em; padding-top: 1.6em; border-top: 1px solid var(--line); }
.prose .expertise h2 { margin-top: 0; }
.prose .expertise-articles { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.prose .expertise-articles li { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.prose .expertise-articles li::marker { content: none; }
.prose .expertise-articles a { font-family: var(--serif); color: var(--ink); text-decoration: none; font-size: 1.0625rem; }
.prose .expertise-articles a:hover { text-decoration: underline; }
.prose .expertise-articles span { color: var(--muted); font-size: 0.9rem; }

/* Staff request pages (Publish / Remove / Didn't like). */
.request-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; align-items: center; }
.request-form { display: grid; gap: 10px; max-width: 40em; }
.request-form label { font-weight: 600; color: var(--ink); }
.request-form textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; }
.request-form .error { color: #9a3b2e; margin: 0; }
/* Approving an article the AI wrote (approve/page). */
.approve-kicker { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 0.95rem; margin: 0 0 10px; }
.approve-panel .request-form { padding: 16px 20px 18px; }
.request-form select { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--text); }
.notice-warn { background: var(--notice-soft); border-left: 3px solid var(--notice); padding: 12px 16px; margin: 0 0 20px; font-size: 0.95rem; }
.notice-warn ul { margin: 8px 0 0; padding-left: 18px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; color: var(--ink); }
.link-button.danger { color: #9a3b2e; }
.approve-panel .hint { margin: 0; padding: 0 20px 16px; font-size: 0.85rem; color: var(--muted); }
