/* ============================================================================
   government.london — Greater London public-information portal
   Design system: "Westminster night, brass & Portland stone"
   Base: Portland stone (cool grey) + Thames-night navy · Action: pillar-box red
   Signature: brass line-art London skyline · Ornament: the roundel & Thames meander
   Pure static. English-only. No backend, no build step, no language redirect.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   0. Design tokens
   ------------------------------------------------------------------------- */
:root {
  /* Palette — navy-dominant, Portland stone paper, brass ornament, red actions */
  --ink: #0E1B2A;            /* Thames-night navy — hero, footer, dark blocks, stuck header */
  --ink-2: #16273A;          /* raised navy panels */
  --stone: #EFECE3;          /* Portland stone — page paper (cool grey, NOT cream) */
  --stone-2: #E6E2D6;        /* recessed stone band */
  --paper: #FBFAF6;          /* card surface */
  --red: #D81E32;            /* pillar-box / roundel red — ACTIONS ONLY, sparing */
  --red-ink: #A5162A;        /* red text on light (AA) */
  --brass: #B0894C;          /* signature metal — ornament, hairline flourishes, focus ring */
  --brass-2: #CAA46A;        /* brass highlight on navy */
  --thames: #2C6E7F;         /* Thames teal — links / info on light */
  --thames-ink: #235663;     /* darker teal for AA link text */
  --text: #14202E;           /* primary text on light */
  --muted: #5B6675;          /* secondary text, captions */
  --line: #D8D2C4;           /* hairline borders on stone */
  --line-strong: #C7BFAC;    /* stronger hairline */
  --line-ink: rgba(202, 164, 106, .22); /* brass hairline on navy */
  --white: #ffffff;

  /* Typography */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, "Consolas", monospace;

  /* Fluid type scale */
  --fs-eyebrow: 0.75rem;
  --fs-small: 0.8125rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.15rem, 0.95rem + 0.9vw, 1.5rem);
  --fs-h4: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
  --fs-h3: clamp(1.3rem, 1.1rem + 1vw, 1.85rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 2.4vw, 3.1rem);
  --fs-hero: clamp(2.5rem, 1.5rem + 5.2vw, 6rem);

  /* Space */
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 4rem);
  --maxw: 1280px;
  --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);

  /* Shape */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(14, 27, 42, 0.07), 0 2px 8px rgba(14, 27, 42, 0.06);
  --shadow-md: 0 8px 22px rgba(14, 27, 42, 0.12), 0 2px 6px rgba(14, 27, 42, 0.07);
  --shadow-lg: 0 28px 64px rgba(10, 18, 30, 0.28);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.5s;
}

/* ---------------------------------------------------------------------------
   1. Reset & base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.75rem;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.62;
  color: var(--text);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

a {
  color: var(--thames-ink);
  text-decoration-color: color-mix(in srgb, var(--thames) 55%, transparent);
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
a:hover { text-decoration-color: var(--thames); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-optical-sizing: auto;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
h4 { font-size: var(--fs-h4); font-weight: 600; letter-spacing: -0.005em; }

strong, b { font-weight: 700; }

::selection { background: var(--ink); color: var(--brass-2); }

/* Visible keyboard focus — the brass ring */
:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------------------------------------------------------------------------
   2. Layout primitives
   ------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--band { background: var(--stone-2); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem); }

.skip-link {
  position: absolute;
  left: 0.5rem; top: -4rem;
  z-index: 200;
  background: var(--ink);
  color: var(--brass-2);
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  text-decoration: none;
  border: 1px solid var(--line-ink);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0.5rem; }

/* Mono eyebrow / label — brass hairline lead */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem; height: 2px;
  background: var(--brass);
  display: inline-block;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
}
.section-head p { color: var(--muted); max-width: 48ch; margin-top: 0.7rem; }
.section-head .eyebrow { margin-bottom: 0.9rem; }

.lead { font-size: var(--fs-lead); color: var(--text); line-height: 1.5; }

/* ---------------------------------------------------------------------------
   3. Buttons & chips
   ------------------------------------------------------------------------- */
.btn {
  --_bg: var(--ink);
  --_fg: var(--stone);
  --_bd: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  min-height: 44px;
  padding: 0.9rem 1.4rem;
  border-radius: var(--r-sm);
  background: var(--_bg);
  color: var(--_fg);
  text-decoration: none;
  border: 1.5px solid var(--_bd);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Primary = pillar-box red (actions only, sparing) */
.btn--primary { --_bg: var(--red); --_fg: var(--white); --_bd: var(--red); }
.btn--primary:hover { --_bg: var(--red-ink); --_bd: var(--red-ink); }

/* Ghost on light */
.btn--ghost {
  --_bg: transparent; --_fg: var(--ink); --_bd: var(--line-strong);
}
.btn--ghost:hover { --_bd: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }

/* On dark blocks — stone fill, or brass-outlined ghost */
.btn--on-dark { --_bg: var(--stone); --_fg: var(--ink); --_bd: var(--stone); }
.btn--on-dark:hover { --_bg: var(--white); --_bd: var(--white); }
.btn--ghost-dark {
  --_bg: transparent; --_fg: var(--stone); --_bd: var(--line-ink);
}
.btn--ghost-dark:hover { --_bd: var(--brass-2); color: var(--brass-2); background: color-mix(in srgb, var(--brass) 10%, transparent); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  padding: 0.5rem 0.9rem;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.chip:hover { border-color: var(--brass); color: var(--ink); transform: translateY(-2px); }
.chip::before { content: "→"; color: var(--brass); font-weight: 600; }

/* ---------------------------------------------------------------------------
   4. Utility bar + Header
   ------------------------------------------------------------------------- */
.utilitybar {
  background: var(--ink);
  color: color-mix(in srgb, var(--stone) 78%, transparent);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  border-bottom: 1px solid var(--line-ink);
}
.utilitybar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.4rem;
  padding-block: 0.35rem;
}
.utilitybar__tag { letter-spacing: 0.06em; display: inline-flex; align-items: center; gap: 0.5rem; }
.utilitybar__tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brass) 32%, transparent); }
.utilitybar__links { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.utilitybar a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
.utilitybar a:hover { color: var(--brass-2); }
.utilitybar .u-sep { width: 1px; height: 14px; background: var(--line-ink); }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--stone) 86%, transparent);
  backdrop-filter: saturate(1.3) blur(12px);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}
.header.is-stuck {
  background: color-mix(in srgb, var(--ink) 96%, transparent);
  border-color: var(--line-ink);
  box-shadow: 0 8px 30px rgba(10, 18, 30, 0.28);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.4rem;
}
/* When stuck (navy), flip nav + brand to light ink */
.header.is-stuck .brand__name,
.header.is-stuck .nav__link { color: var(--stone); }
.header.is-stuck .brand__sub { color: color-mix(in srgb, var(--stone) 60%, transparent); }
.header.is-stuck .nav__link:hover,
.header.is-stuck .nav__item.is-open .nav__link { background: color-mix(in srgb, var(--stone) 10%, transparent); color: var(--brass-2); }
.header.is-stuck .hamburger span { background: var(--stone); }
.header.is-stuck .brand__mark .mark-ring { stroke: var(--brass-2); }
.header.is-stuck .brand__mark .mark-bar { fill: var(--brass-2); }

/* Wordmark / brand */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__mark .mark-ring { fill: none; stroke: var(--brass); stroke-width: 5.5; transition: stroke 0.3s var(--ease); }
.brand__mark .mark-bar { fill: var(--brass); transition: fill 0.3s var(--ease); }
.brand__name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.24rem;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.brand__name b { color: var(--brass); font-weight: 600; }        /* "london" tinted brass */
.brand__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.22rem;
  transition: color 0.3s var(--ease);
}

/* Primary nav */
.nav { display: flex; align-items: center; gap: 0.3rem; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 0.15rem; padding: 0; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.8rem;
  border-radius: var(--r-sm);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav__link:hover, .nav__item.is-open .nav__link { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--thames-ink); }
.nav__link .caret { width: 0.7em; transition: transform 0.25s var(--ease); }
.nav__item.is-open .nav__link .caret { transform: rotate(180deg); }

.header__actions { display: flex; align-items: center; gap: 0.6rem; }

/* Mega dropdown ("Topics") */
.nav__item { position: static; }
.mega {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: var(--paper);
  border-top: 1px solid var(--brass);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
}
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
.mega__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.4rem 1.5rem;
  padding-block: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
}
.mega__link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s var(--ease);
}
.mega__link:hover { background: color-mix(in srgb, var(--thames) 9%, transparent); }
.mega__link .idx { font-family: var(--font-mono); font-size: 0.72rem; color: var(--brass); font-weight: 500; }
.mega__link strong { font-weight: 600; font-size: 1rem; display: block; color: var(--ink); }
.mega__link span { display: block; font-size: var(--fs-small); color: var(--muted); }

/* Hamburger */
.hamburger { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.hamburger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), background 0.3s var(--ease); }
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------------------
   5. Hero — navy with the brass skyline treatment
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--stone);
  padding-block: clamp(3rem, 1.5rem + 6vw, 6rem) 0;
}
/* Deep navy radial wash + a low brass glow where the sun-roundel sits */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 520px at 78% 8%, color-mix(in srgb, var(--ink-2) 90%, transparent), transparent 62%),
    radial-gradient(760px 400px at 88% 74%, color-mix(in srgb, var(--brass) 22%, transparent), transparent 66%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
}
.hero__eyebrow { margin-bottom: 1.4rem; color: var(--brass-2); }
.hero__eyebrow::before { background: var(--brass-2); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--stone);
  font-size: var(--fs-hero);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin-bottom: 1.4rem;
}
.hero__title .accent { color: var(--brass-2); }
.hero__title .word { display: inline-block; }
.hero__lead { max-width: 46ch; margin-bottom: 2rem; color: color-mix(in srgb, var(--stone) 88%, transparent); font-size: var(--fs-lead); line-height: 1.5; }

/* Search */
.search {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--paper);
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  max-width: 40rem;
}
.search:focus-within { border-color: var(--brass); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brass) 22%, transparent); }
.search__icon { padding-left: 1.1rem; color: var(--muted); flex: none; }
.search input {
  flex: 1;
  border: none;
  background: none;
  padding: 1.05rem 0.75rem;
  font-size: 1.05rem;
  color: var(--text);
  min-width: 0;
}
.search input:focus { outline: none; }
.search__submit {
  margin: 0.4rem;
  padding: 0.75rem 1.3rem;
  min-height: 44px;
  background: var(--red);
  color: var(--white);
  border-radius: var(--r-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s var(--ease);
  white-space: nowrap;
}
.search__submit:hover { background: var(--red-ink); }

.hero__chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; align-items: center; }
.hero__chips .chips-label { font-family: var(--font-mono); font-size: var(--fs-small); color: color-mix(in srgb, var(--stone) 70%, transparent); margin-right: 0.3rem; }
.hero .chip { background: color-mix(in srgb, var(--stone) 8%, transparent); border-color: var(--line-ink); color: var(--stone); }
.hero .chip:hover { border-color: var(--brass-2); color: var(--brass-2); }
.hero .chip::before { color: var(--brass-2); }

/* The signature: brass skyline art panel */
.hero__art {
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero__art .skyline { width: 100%; height: auto; max-width: 620px; }
.hero__art .skyline .draw { fill: none; stroke: var(--brass); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.hero__art .skyline .draw--hi { stroke: var(--brass-2); }
.hero__art .skyline .thames { fill: none; stroke: var(--thames); stroke-width: 2.4; opacity: 0.85; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.hero__art .skyline .sun { fill: none; stroke: var(--brass-2); stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.hero__art .skyline .sun-fill { fill: color-mix(in srgb, var(--brass) 16%, transparent); }

/* Full-width skyline band sitting under the hero content (alternate layout) */
.hero__skylineband {
  position: relative;
  z-index: 2;
  margin-top: clamp(1.5rem, 0.5rem + 3vw, 3rem);
  line-height: 0;
}
.hero__skylineband svg { width: 100%; height: auto; display: block; }

.hero__stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: clamp(1.2rem, 0.5rem + 2vw, 2.75rem);
  margin-top: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 0.15rem; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); letter-spacing: -0.02em; line-height: 1; color: var(--stone); }
.stat__num b { color: var(--brass-2); font-weight: 700; }
.stat__label { font-family: var(--font-mono); font-size: var(--fs-small); color: color-mix(in srgb, var(--stone) 62%, transparent); letter-spacing: 0.04em; }

/* ---------------------------------------------------------------------------
   6. Quick services cards (.service)
   ------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.4rem 1.5rem 1.5rem;
  background: var(--paper);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.25s var(--ease);
  isolation: isolate;
  min-height: 8.5rem;
}
.service::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--brass);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s var(--ease);
}
.service:hover { background: var(--white); }
.service:hover::before { transform: scaleY(1); }
.service__code { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.service__title { font-weight: 600; font-size: 1.08rem; line-height: 1.25; color: var(--ink); }
.service__desc { font-size: var(--fs-small); color: var(--muted); margin-top: auto; }
.service__go { position: absolute; right: 1.3rem; top: 1.35rem; color: var(--muted); transition: transform 0.25s var(--ease), color 0.25s var(--ease); }
.service:hover .service__go { transform: translate(3px, -3px); color: var(--brass); }

/* ---------------------------------------------------------------------------
   7. Topic grid (.topic)
   ------------------------------------------------------------------------- */
.topics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(0.75rem, 0.4rem + 1vw, 1.1rem);
}
.topic {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.topic:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brass); }
.topic__icon { width: 42px; height: 42px; color: var(--thames); }
.topic__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; }
.topic__title { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; letter-spacing: -0.005em; color: var(--ink); }
.topic__list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 0.6rem; }
.topic__list li { font-size: var(--fs-small); color: var(--muted); }
.topic__list li::after { content: "·"; margin-left: 0.6rem; color: var(--line-strong); }
.topic__list li:last-child::after { content: ""; }
.topic__corner {
  position: absolute;
  top: -1px; right: -1px;
  width: 46px; height: 46px;
  color: var(--brass);
  opacity: 0;
  transform: translate(6px, -6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.topic:hover .topic__corner { opacity: 0.95; transform: translate(0, 0); }

/* ---------------------------------------------------------------------------
   8. Account / dark band (raised navy)
   ------------------------------------------------------------------------- */
.account {
  position: relative;
  background: var(--ink);
  color: var(--stone);
  overflow: hidden;
}
.account::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 400px at 85% -20%, color-mix(in srgb, var(--brass) 22%, transparent), transparent 60%);
  pointer-events: none;
}
.account__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.account .eyebrow { color: var(--brass-2); }
.account .eyebrow::before { background: var(--brass); }
.account h2 { color: var(--stone); margin-block: 1rem; }
.account p { color: color-mix(in srgb, var(--stone) 86%, transparent); max-width: 46ch; }
.account__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.account__note { font-family: var(--font-mono); font-size: var(--fs-small); color: color-mix(in srgb, var(--stone) 72%, transparent); margin-top: 1.4rem; display: flex; align-items: center; gap: 0.5rem; }

.account__features { list-style: none; padding: 0; display: grid; gap: 0.9rem; }
.account__features li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.05rem 1.2rem;
  background: color-mix(in srgb, var(--stone) 6%, transparent);
  border: 1px solid var(--line-ink);
  border-radius: var(--r-md);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.account__features li:hover { border-color: color-mix(in srgb, var(--brass) 60%, transparent); background: color-mix(in srgb, var(--stone) 9%, transparent); }
.account__features .ico { color: var(--brass-2); flex: none; margin-top: 0.1rem; }
.account__features strong { display: block; font-weight: 600; color: var(--stone); }
.account__features span { font-size: var(--fs-small); color: color-mix(in srgb, var(--stone) 68%, transparent); }

/* ---------------------------------------------------------------------------
   9. News (.newscard)
   ------------------------------------------------------------------------- */
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(1rem, 0.5rem + 1.5vw, 1.75rem); }
.newscard {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.newscard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.newscard__media { aspect-ratio: 16 / 10; position: relative; overflow: hidden; }
.newscard__media .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.newscard__media .ph svg { width: 46%; height: 46%; opacity: 0.9; }
.newscard:hover .newscard__media .ph { transform: scale(1.04); transition: transform 0.5s var(--ease); }
.newscard__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.newscard__cat { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-ink); }
.newscard__title { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; line-height: 1.2; letter-spacing: -0.005em; color: var(--ink); }
.newscard__excerpt { font-size: var(--fs-small); color: var(--muted); }
.newscard__date { margin-top: auto; padding-top: 0.7rem; font-family: var(--font-mono); font-size: var(--fs-small); color: var(--muted); }

/* Navy/brass/teal gradient placeholders (no external images needed) */
.grad-1 { background: linear-gradient(135deg, #16273A, #0E1B2A); color: var(--brass-2); }
.grad-2 { background: linear-gradient(135deg, #2C6E7F, #17414c); color: #eaf2f3; }
.grad-3 { background: linear-gradient(135deg, #B0894C, #7c5f31); color: #fff; }
.grad-4 { background: linear-gradient(135deg, #29405a, #14202E); color: var(--brass-2); }
.grad-5 { background: linear-gradient(135deg, #A5162A, #6f0f1d); color: #fff; }

/* ---------------------------------------------------------------------------
   10. Events strip
   ------------------------------------------------------------------------- */
.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1px; background: var(--line-strong); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-strong); }
.event {
  padding: 1.5rem 1.4rem;
  background: var(--paper);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
  min-height: 10rem;
}
.event:hover { background: var(--ink); color: var(--stone); }
.event__date { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--thames-ink); }
.event:hover .event__date { color: var(--brass-2); }
.event__title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-top: auto; color: inherit; }
.event__place { font-size: var(--fs-small); color: var(--muted); }
.event:hover .event__place { color: color-mix(in srgb, var(--stone) 72%, transparent); }

/* ---------------------------------------------------------------------------
   11. Mini tiles + action band
   ------------------------------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 0.9rem; }
.tile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 1.2rem;
  min-height: 44px;
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  overflow-wrap: break-word;
  word-break: break-word;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.tile:hover { transform: translateY(-3px); border-color: var(--brass); box-shadow: var(--shadow-sm); }
.tile .ico { color: var(--thames); flex: none; }
.tile small { display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--muted); font-weight: 500; text-transform: uppercase; margin-top: 0.15rem; overflow-wrap: break-word; word-break: break-word; }

.jobs-band {
  background: var(--ink-2);
  color: var(--stone);
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line-ink);
}
.jobs-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(700px 300px at 15% 120%, color-mix(in srgb, var(--brass) 20%, transparent), transparent 70%);
}
.jobs-band__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.jobs-band .eyebrow { color: var(--brass-2); }
.jobs-band .eyebrow::before { background: var(--brass); }
.jobs-band h2 { color: var(--stone); margin-top: 0.8rem; max-width: 18ch; }
.jobs-band p { color: color-mix(in srgb, var(--stone) 82%, transparent); max-width: 42ch; margin-top: 0.6rem; }

/* ---------------------------------------------------------------------------
   12. Newsletter
   ------------------------------------------------------------------------- */
.newsletter__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; }
.newsletter form { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.4rem; }
.newsletter input[type="email"] {
  flex: 1;
  min-width: 15rem;
  padding: 0.95rem 1.1rem;
  min-height: 44px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--text);
}
.newsletter input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brass) 18%, transparent); }
.newsletter .form-note { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--muted); margin-top: 0.8rem; }

/* ---------------------------------------------------------------------------
   13. Footer — navy, brass rule, contact coordinates
   ------------------------------------------------------------------------- */
.footer { background: var(--ink); color: color-mix(in srgb, var(--stone) 72%, transparent); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem; border-top: 2px solid var(--brass); }
.footer a { color: color-mix(in srgb, var(--stone) 72%, transparent); text-decoration: none; transition: color 0.2s var(--ease); }
.footer a:hover { color: var(--brass-2); }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: clamp(1.5rem, 1rem + 2vw, 3rem); padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-ink); }
.footer__brand .brand__name { color: var(--stone); }
.footer__brand .brand__name b { color: var(--brass-2); }
.footer__brand .brand__mark .mark-ring { stroke: var(--brass-2); }
.footer__brand .brand__mark .mark-bar { fill: var(--brass-2); }
.footer__brand p { color: color-mix(in srgb, var(--stone) 56%, transparent); font-size: var(--fs-small); margin-top: 1rem; max-width: 34ch; }
.footer__phone { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.2rem; font-family: var(--font-mono); font-size: 1.05rem; color: var(--stone); }
.footer__phone .ico { color: var(--brass-2); }
.footcol h5 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: color-mix(in srgb, var(--stone) 55%, transparent); margin-bottom: 1rem; font-weight: 500; }
.footcol ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.footcol a { font-size: 0.95rem; }
/* Contact coordinate block in the footer */
.footer__coords { font-family: var(--font-mono); font-size: var(--fs-small); color: color-mix(in srgb, var(--stone) 62%, transparent); font-style: normal; line-height: 1.7; margin-top: 1.2rem; }
.footer__coords b { color: var(--stone); font-weight: 500; }
.footer__social { display: flex; gap: 0.5rem; margin-top: 1.4rem; flex-wrap: wrap; }
.footer__social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-ink); border-radius: var(--r-sm); transition: border-color 0.2s var(--ease), background 0.2s var(--ease); }
.footer__social a:hover { border-color: var(--brass); background: color-mix(in srgb, var(--brass) 16%, transparent); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-top: 1.6rem; font-size: var(--fs-small); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.3rem; font-family: var(--font-mono); }
.footer__copy { color: color-mix(in srgb, var(--stone) 52%, transparent); font-family: var(--font-mono); font-size: var(--fs-small); }

/* Section divider ornament (the roundel & Thames meander recurs) */
.divider { display: flex; align-items: center; gap: 1rem; color: var(--brass); }
.divider::before, .divider::after { content: ""; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong)); flex: 1; }
.divider::after { background: linear-gradient(90deg, var(--line-strong), transparent); }
.divider svg { width: 34px; height: 20px; flex: none; }

/* ---------------------------------------------------------------------------
   14. Mobile menu
   ------------------------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  color: var(--stone);
  padding: 5.5rem var(--gutter) 2rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-2%);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.mobile-menu__group { border-bottom: 1px solid var(--line-ink); }
.mobile-menu__group > a, .mobile-menu__group > button {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 1.1rem 0.2rem;
  min-height: 44px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem;
  color: var(--stone); text-decoration: none; text-align: left;
}
.mobile-menu__sub { list-style: none; padding: 0 0 1rem; display: none; }
.mobile-menu__group.is-open .mobile-menu__sub { display: grid; gap: 0.2rem; }
.mobile-menu__sub a { padding: 0.55rem 0.2rem; color: color-mix(in srgb, var(--stone) 72%, transparent); text-decoration: none; font-size: 1rem; display: block; min-height: 44px; }
.mobile-menu__group > button .caret { transition: transform 0.25s var(--ease); color: var(--brass-2); }
.mobile-menu__group.is-open > button .caret { transform: rotate(180deg); }
.mobile-menu__cta {
  position: sticky;
  bottom: 0;
  display: grid;
  gap: 0.7rem;
  margin-top: 1.6rem;
  padding: 1rem 0 0.75rem;
  background: var(--ink);
  box-shadow: 0 -18px 22px -10px var(--ink);
}
.mobile-menu__cta .btn { justify-content: center; }

/* ---------------------------------------------------------------------------
   15. Scroll reveal
   ------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.04s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.09s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.19s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.24s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.29s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 0.34s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 0.39s; }
.reveal-stagger.in > *:nth-child(9) { transition-delay: 0.44s; }
.reveal-stagger.in > *:nth-child(10) { transition-delay: 0.49s; }

/* <noscript> reveal fallback — force everything visible when JS is off */
.no-js .reveal, .no-js .reveal-stagger > * { opacity: 1 !important; transform: none !important; }

/* Hero load animation */
.hero__eyebrow, .hero__title .word, .hero__lead, .hero .search, .hero__chips, .hero__stats {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.85s var(--ease-out) forwards;
}
.hero__eyebrow { animation-delay: 0.05s; }
.hero__title .word:nth-child(1) { animation-delay: 0.14s; }
.hero__title .word:nth-child(2) { animation-delay: 0.2s; }
.hero__title .word:nth-child(3) { animation-delay: 0.26s; }
.hero__title .word:nth-child(4) { animation-delay: 0.32s; }
.hero__title .word:nth-child(5) { animation-delay: 0.38s; }
.hero__lead { animation-delay: 0.42s; }
.hero .search { animation-delay: 0.5s; }
.hero__chips { animation-delay: 0.58s; }
.hero__stats { animation-delay: 0.66s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Skyline draws itself in (respect reduced motion below) */
.hero__art .skyline .draw,
.hero__art .skyline .thames { stroke-dasharray: var(--len, 2400); stroke-dashoffset: var(--len, 2400); animation: draw 2.6s var(--ease-out) 0.35s forwards; }
.hero__art .skyline .sun { transform-origin: center; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------------------------------------------------------------------------
   16. Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .header__actions .btn--primary { display: none; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 460px; margin-inline: auto; }
  .account__inner { grid-template-columns: 1fr; }
  .newsletter__inner { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .utilitybar__links .u-hide-sm { display: none; }
  .search { flex-direction: column; align-items: stretch; }
  .search__icon { display: none; }
  .search input { width: 100%; padding-left: 1.1rem; }
  .search__submit { width: 100%; justify-content: center; margin: 0.4rem; }
  .hero__art { max-width: 320px; }
  .newsletter input[type="email"] { min-width: 0; }
  .events { grid-template-columns: 1fr; }
  .event { min-height: 7.5rem; padding: 1.2rem 1.1rem; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .jobs-band__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 360px) {
  .hero__stats { gap: 1rem; }
  .btn { width: 100%; justify-content: center; }
  .header__actions .btn { width: auto; }
}

/* ---------------------------------------------------------------------------
   17. Reduced motion — hard off-switch
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > *,
  .hero__eyebrow, .hero__title .word, .hero__lead, .hero .search, .hero__chips, .hero__stats {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero__art .skyline .draw,
  .hero__art .skyline .thames { stroke-dashoffset: 0 !important; }
}

/* Print niceties */
@media print {
  .utilitybar, .header, .mobile-menu, .jobs-band, .account, .newsletter { display: none; }
  body { color: #000; background: #fff; }
  .hero { background: #fff; color: #000; }
}
