/* Northcote Solicitors — site stylesheet
   Tokens derived from the brand mark (#2b4c65) and the Eastway Village building. */

:root {
  --navy: #0f1d2b;
  --navy-2: #16293a;
  --blue: #2b4c65;
  --blue-2: #3a607d;
  --steel: #6b8aa5;
  --stone: #e8e2d8;
  --stone-2: #ddd5c8;
  --paper: #f7f4ef;
  --white: #ffffff;
  --brass: #d9dad8;                                               /* accent: platinum, chosen by the client (was gold #a98a55) */
  --brass-hover: color-mix(in srgb, var(--brass) 78%, white);   /* lighter tint of the accent */
  --brass-ink: var(--navy);                                       /* text colour on a solid accent, light sections */
  --brass-ink-dark: var(--navy);                                  /* text colour on a solid accent, dark sections (accent is light) */
  --ink: #15202b;
  --mute: #5a6672;
  --line: rgba(15, 29, 43, 0.14);
  --line-dark: rgba(255, 255, 255, 0.14);

  /* Headings: Avenir Light for the big ones (h1, h2), Medium for h3/h4 where Light would be too thin.
     Set --display-weight to 900 to try Black headings instead; 500 for Medium. Previous: "Newsreader", "Iowan Old Style", Georgia, serif. */
  --font-display: "Avenir LT Pro", "Figtree", "Segoe UI", system-ui, sans-serif;
  --display-weight: 300;
  --font-body: "Avenir LT Pro", "Figtree", "Segoe UI", system-ui, sans-serif;

  --max: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --slant: 7%;          /* the diagonal, shared by every cut image */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px at the default root size; the root grows on large screens */
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--display-weight); line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h3, h4 { font-weight: 500; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { margin: 0 0 1em; }
/* All text justified (client request, 27 Nov 2026): every block inherits it from body, hero included, except headings and the footer.
   Hyphenation (needs lang="en-GB" on <html>) stops the word gaps justified text otherwise opens up; the last line of a
   block stays ragged, so single-line headings, labels and buttons look unchanged. Headings and buttons are not hyphenated. */
body { text-align: justify; text-align-last: left; hyphens: auto; -webkit-hyphens: auto; }
h1, h2, h3, h4, .site-footer { text-align: left; text-align-last: auto; }   /* headings and the footer stay ragged (27 Nov 2026) */
h1, h2, h3, h4, .btn, .nav, .eyebrow, .crumbs { hyphens: manual; -webkit-hyphens: manual; }
ul { padding-left: 1.2em; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 1rem;
}
.dark .eyebrow { color: var(--steel); }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--mute); max-width: 42em; }
.dark .lede { color: rgba(255,255,255,0.72); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.85em 1.5em;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
  text-decoration: none; border: 1px solid transparent; border-radius: 2px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.dark .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.6); }
.dark .btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-brass { background: var(--brass); color: var(--brass-ink); border-color: var(--brass); }
.btn-brass:hover { background: var(--brass-hover); border-color: var(--brass-hover); color: var(--brass-ink); }
.dark .btn-brass, .dark .btn-brass:hover { color: var(--brass-ink-dark); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
/* Header sizes per breakpoint live in --logo-h and --header-pad; --header-h (used by the hero) is the resulting height. */
:root { --logo-h: 44px; --header-pad: 16px; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding-top: var(--header-pad); padding-bottom: var(--header-pad); }
.header-inner > nav { justify-self: center; }
.header-cta { justify-self: end; }
.brand { display: inline-flex; }
.brand img { height: var(--logo-h); width: auto; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav > li { list-style: none; position: relative; }
.nav { margin: 0; padding: 0; }
.nav a, .nav button {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.6em 0.9em; font: inherit; font-size: 0.95rem; font-weight: 500;
  color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; border-radius: 2px;
}
.nav a:hover, .nav button:hover, .nav a[aria-current="page"] { color: var(--blue); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--blue); }
.nav .chev { width: 10px; height: 10px; transition: transform 0.2s; }
.nav button[aria-expanded="true"] .chev { transform: rotate(180deg); }

.menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: min(720px, calc(100vw - 2 * var(--gutter)));
  background: var(--white); border: 1px solid var(--line); border-radius: 3px;
  box-shadow: 0 24px 60px rgba(15, 29, 43, 0.14);
  padding: 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem;
  opacity: 0; visibility: hidden; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.menu.open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.menu h4 { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); margin: 0 0 0.6rem; font-weight: 600; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li a { display: block; padding: 0.45em 0.5em; font-size: 0.95rem; font-weight: 500; color: var(--ink); border-radius: 2px; }
.menu li a:hover { background: var(--paper); color: var(--blue); }
.menu .menu-all { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1rem; }
.menu .menu-all a { font-weight: 600; color: var(--blue); }

.header-cta { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 2px; padding: 0.5rem 0.65rem; cursor: pointer; color: var(--navy); }
.nav-toggle svg { display: block; }

/* ---------- Hero ----------
   Full-viewport, image-led carousel. Height is the viewport minus the sticky header,
   so it fills a laptop screen and a large monitor alike. */
:root { --header-h: 76px; }
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column;
  background: var(--navy); color: var(--white);
}
/* The hero ignores the content column: its copy and indicators run to the page gutters */
.hero .wrap { width: calc(100% - 2 * var(--gutter)); }
/* Slides stack in one box: the active slide sits in flow and fills the area (so content can never be
   clipped), the others are pinned over it. Stacking via grid-area rows is avoided on purpose: iOS Safari
   sized the stacked row taller than the slides area and pushed the copy down past the bottom edge. */
.hero-slides { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; }
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  padding: clamp(2rem, 5vh, 5rem) 0 clamp(1.5rem, 3vh, 3rem);
  opacity: 0; visibility: hidden; transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.hero-slide.is-active { position: relative; flex: 1 1 auto; opacity: 1; visibility: visible; z-index: 1; }
.hero-slide[hidden] { display: flex; }
.hero-bg { position: absolute; inset: 0; margin: 0; z-index: -1; overflow: hidden; will-change: transform; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 70% 50%);
  transform: scale(1.06); transition: transform 7s linear;
}
.hero-slide.is-active .hero-bg img { transform: scale(1); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 29, 43, 0.92) 0%, rgba(15, 29, 43, 0.72) 38%, rgba(15, 29, 43, 0.28) 70%, rgba(15, 29, 43, 0.15) 100%),
    linear-gradient(180deg, rgba(15, 29, 43, 0.25) 0%, rgba(15, 29, 43, 0) 30%, rgba(15, 29, 43, 0.55) 100%);
}
.hero-copy { position: relative; }
.hero-copy h1, .hero-title { font-size: clamp(2.4rem, min(5.6vw, 10.5vh), 5rem); color: var(--white); max-width: 11em; margin-bottom: 0.3em; }
.hero-copy .eyebrow { color: var(--brass); }
.hero-copy .lede { color: rgba(255,255,255,0.78); margin: 0 0 1.75rem; max-width: 30em; }
/* A slide can carry several quotes; they stack in one cell and main.js fades between them during the slide */
.hero-quotes { display: grid; }
/* The incoming quote rises in a beat after the outgoing one has drifted up and faded */
.hero-quotes .hero-quote { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); filter: blur(2px); transition: opacity 0.45s var(--ease), transform 0.7s var(--ease), filter 0.45s var(--ease); }
.hero-quotes .hero-quote.is-off { transform: translateY(-10px); }
.hero-quotes .hero-quote.is-on { opacity: 1; transform: none; filter: none; transition-delay: 0.25s; }
.hero-quote {
  margin: -0.5rem 0 1.75rem; padding-left: 1rem; border-left: 2px solid var(--brass);
  font-family: var(--font-display); font-size: 1.1rem; line-height: 1.45; color: rgba(255,255,255,0.9); max-width: 30em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
/* Copy rises into place as a slide becomes active */
.hero-copy > * { transform: translateY(14px); opacity: 0; transition: transform 0.8s var(--ease), opacity 0.8s var(--ease); }
.hero-slide.is-active .hero-copy > * { transform: none; opacity: 1; }
.hero-slide.is-active .hero-copy > :nth-child(2) { transition-delay: 0.08s; }
.hero-slide.is-active .hero-copy > :nth-child(3) { transition-delay: 0.16s; }
.hero-slide.is-active .hero-copy > :nth-child(4) { transition-delay: 0.24s; }
.hero-slide.is-active .hero-copy > :nth-child(5) { transition-delay: 0.32s; }

/* Slide indicators: bottom right of the image, aligned to the content column.
   Lines grow when the group is hovered so they are easy to hit, then ease back slowly. */
.hero-dots {
  position: absolute; z-index: 3; bottom: 1rem;
  right: var(--gutter);
  display: flex; align-items: center; gap: 0.35rem;
}
.hero-dots button { background: none; border: 0; padding: 0.8rem 0.2rem; cursor: pointer; display: block; }
.hero-dots i {
  display: block; width: 14px; height: 2px; background: rgba(255,255,255,0.28); position: relative; overflow: hidden;
  transition: width 1.4s var(--ease), background 0.5s var(--ease), height 1.4s var(--ease);
}
/* The active indicator is longer and a touch thicker; its ::after fills left to right over the slide interval */
.hero-dots button[aria-selected="true"] i { width: 44px; height: 3px; }
.hero-dots:hover i { width: 34px; height: 3px; transition-duration: 0.35s, 0.3s, 0.35s; }
.hero-dots:hover button[aria-selected="true"] i { width: 68px; }
.hero-dots button:hover i { background: rgba(255,255,255,0.85); }
.hero-dots i::after { content: ""; position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; }
@keyframes hero-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-dots button[aria-selected="true"] i::after { animation: hero-progress var(--hero-interval, 5s) linear forwards; }
.hero.is-paused .hero-dots button[aria-selected="true"] i::after { animation-play-state: paused; }
/* Short landscape viewports (13" laptops): tighter vertical rhythm so the hero still fits one screen */
@media (max-height: 720px) and (min-width: 861px) {
  .hero-copy .lede { font-size: 1.05rem; margin-bottom: 1.25rem; }
  .hero-quote { font-size: 1rem; margin-bottom: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-copy > *, .hero-bg img, .hero-dots i::after { transition: none !important; }
  .hero-dots button[aria-selected="true"] i::after { animation: none; transform: scaleX(1); }
  .hero-bg img { transform: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
#firm.section { padding-bottom: clamp(2rem, 4vw, 3.5rem); }    /* firm and people share a background: tighter gap between them */
#people.section { padding-top: clamp(0.5rem, 2vw, 1.5rem); }
.section-head { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head h2 { max-width: 14em; }
.dark { background: var(--navy); color: var(--white); }
.dark h1, .dark h2, .dark h3 { color: var(--white); }
.dark a { color: var(--white); }
.stone-bg { background: var(--stone); }

/* Expertise grid */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 3px;
  text-decoration: none; color: var(--ink); overflow: hidden; position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(15, 29, 43, 0.12); border-color: transparent; color: var(--ink); }
.service-card .media { aspect-ratio: 16 / 9; overflow: hidden; position: relative; background: var(--stone); }
.service-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.service-card:hover .media img { transform: scale(1.04); }
.service-card .media::after {
  content: ""; position: absolute; inset: 0; background: var(--blue);
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: clip-path 0.45s var(--ease); mix-blend-mode: multiply; opacity: 0.85;
}
.service-card:hover .media::after { clip-path: polygon(0 0, 9% 0, 3% 100%, 0 100%); }
.service-card .body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.service-card .tag { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.service-card h3 { margin: 0; }
.service-card p { color: var(--mute); margin: 0; font-size: 0.95rem; flex: 1; }
.service-card .more { font-weight: 600; color: var(--blue); font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.4em; margin-top: 0.5rem; }
.service-card:hover .more .arrow { transform: translateX(3px); }
.service-card .arrow { transition: transform 0.25s var(--ease); }

/* Process: a real sequence, hence numbered */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step { padding-top: 1.5rem; border-top: 1px solid var(--line-dark); }
.step .n { font-family: var(--font-display); font-size: 2.4rem; color: var(--brass); line-height: 1; display: block; margin-bottom: 0.8rem; }
.step h3 { margin-bottom: 0.5rem; }
.step p { color: rgba(255,255,255,0.72); margin: 0; }

/* Split feature (about / office) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split .cut img { clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split .cut.portrait img { aspect-ratio: 3 / 4; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.7rem; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 0.75rem; align-items: start; }
.checklist li::before {
  content: ""; width: 22px; height: 10px; margin-top: 0.55em;
  background: linear-gradient(115deg, transparent 0 30%, var(--blue) 30% 55%, transparent 55% 65%, var(--blue) 65% 90%, transparent 90%);
}

/* Reviews */

/* People */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.person { background: var(--white); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.person .photo {
  aspect-ratio: 4 / 5; background: var(--navy); display: grid; place-items: center; position: relative; overflow: hidden;
}
.person .photo img { width: 100%; height: 100%; object-fit: cover; }
.person .photo .mono { font-family: var(--font-display); font-size: 3.2rem; color: var(--stone); letter-spacing: 0.02em; }
.person .photo:not(:has(img))::after {
  content: ""; position: absolute; inset: 0; background: var(--blue);
  clip-path: polygon(78% 0, 92% 0, 72% 100%, 58% 100%); opacity: 0.6;
}
.person .body { padding: 1.1rem 1.25rem 1.3rem; }
.person h3 { font-size: 1.2rem; margin: 0 0 0.15rem; }
.person .role { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); font-weight: 600; margin: 0; }
.lead-split { align-items: start; grid-template-columns: minmax(0, 360px) 1fr; }  /* a shorter portrait, sized to the intro beside it */
.lead-split .cut.portrait img, .lead-split .lead-photo { aspect-ratio: 4 / 5; }
.lead-split > .reveal { padding-top: clamp(0.25rem, 2vw, 1.5rem); }
.lead-split .role { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); font-weight: 600; margin: -0.25rem 0 1rem; }
.lead-photo {
  aspect-ratio: 3 / 4; background: linear-gradient(160deg, var(--navy-2), var(--navy)); position: relative; overflow: hidden;
  display: grid; place-items: center; align-content: center; gap: 0.5rem;
  clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
}
.lead-photo::after { content: ""; position: absolute; inset: 0; background: var(--blue); clip-path: polygon(78% 0, 92% 0, 72% 100%, 58% 100%); opacity: 0.6; }
.lead-photo .mono { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5rem); color: var(--stone); letter-spacing: 0.02em; position: relative; z-index: 1; }
.lead-photo .note { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); position: relative; z-index: 1; }
.people-strip { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; margin-top: 1.5rem; }
.people-strip li { list-style: none; font-size: 0.95rem; }
.people-strip li span { color: var(--mute); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; }
.cta-band .bg { position: absolute; inset: 0; }
.cta-band .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; }
.cta-band .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,29,43,0.96) 0 45%, rgba(15,29,43,0.55) 100%); }
.cta-band .wrap { position: relative; padding: clamp(4rem, 8vw, 7rem) 0; }
.cta-band h2 { max-width: 14em; }
.cta-band .contact-lines { display: grid; gap: 0.3rem; margin: 1.5rem 0 2rem; font-size: 1.1rem; }
.cta-band .contact-lines a { text-decoration: none; font-weight: 500; }
.cta-band .contact-lines a:hover { text-decoration: underline; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 13em; }
.page-head.with-media { padding-bottom: 0; border: 0; }
/* Dark header with a photo: the slanted image fills the block top to bottom beside the copy */
.page-head.dark.with-media { padding-top: 0; }
.page-head.dark.with-media .grid { align-items: stretch; }
.page-head.dark.with-media .grid > div:first-child { padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head.dark.with-media h1 { font-size: clamp(2.2rem, 3.6vw, 3.6rem); } /* long title: three lines, not six, so the block stays a sensible height */
.page-head.dark.with-media .cut { position: relative; min-height: 320px; }
.page-head.dark.with-media .cut img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: 50% 60%; }
.page-head .grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.page-head .grid > div:first-child { align-self: center; } /* copy sits at the vertical centre of the photo, whatever the title length */
.page-head .cut img { clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.crumbs { font-size: 0.8rem; color: var(--mute); margin-bottom: 1.25rem; }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.crumbs span { margin: 0 0.5em; }
/* Dark page headers (people, the firm, contact, client feedback) */
.page-head.dark { background: var(--navy); color: var(--white); border-bottom: 0; }
.page-head.dark .crumbs, .page-head.dark .crumbs a { color: rgba(255,255,255,0.55); }
.page-head.dark .crumbs a:hover { color: var(--white); }
/* The firm: the office photograph runs behind the header and fades into navy behind the copy */
.page-head.photo {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(380px, 48vh, 560px); display: flex; align-items: flex-end;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.page-head.photo .wrap { width: min(100% - 2 * var(--gutter), var(--max)); }
.page-head-bg { position: absolute; inset: 0; margin: 0; z-index: -1; }
.page-head-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%; }
.page-head-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 29, 43, 0.94) 0%, rgba(15, 29, 43, 0.78) 42%, rgba(15, 29, 43, 0.3) 75%, rgba(15, 29, 43, 0.18) 100%),
    linear-gradient(180deg, rgba(15, 29, 43, 0.3) 0%, rgba(15, 29, 43, 0) 35%, rgba(15, 29, 43, 0.5) 100%);
}

/* Service page layout */
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { max-width: 62ch; }
.prose ul { max-width: 62ch; }
.prose li { margin-bottom: 0.35em; }
.case-studies { display: grid; gap: 1rem; margin-top: 1.25rem; max-width: 62ch; }
.case-study { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--brass); border-radius: 3px; padding: 1.35rem 1.5rem 1.4rem; }
.case-study .case-label { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); font-weight: 600; margin: 0 0 0.45rem; }
.case-study h3 { font-size: 1.25rem; margin: 0 0 0.5rem; }
.case-study p:last-child { margin: 0; font-size: 0.95rem; color: var(--mute); }
.aside { position: sticky; top: 100px; display: grid; gap: 1.25rem; }
.aside-card { background: var(--white); border: 1px solid var(--line); border-radius: 3px; padding: 1.5rem; }
.aside-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.aside-card.dark { background: var(--navy); border-color: var(--navy); }
.aside-card p { font-size: 0.95rem; color: var(--mute); }
.aside-card.dark p { color: rgba(255,255,255,0.72); }
.aside-card .btn { width: 100%; justify-content: center; margin-top: 0.5rem; }
.aside-card .phone-big { font-family: var(--font-display); font-weight: 500; font-size: 1.7rem; display: block; text-decoration: none; margin: 0.4rem 0 0.2rem; }
.aside-card ul { list-style: none; padding: 0; margin: 0; }
.aside-card ul li { border-top: 1px solid var(--line); }
.aside-card ul li:first-child { border-top: 0; }
.aside-card ul a { display: block; padding: 0.55em 0; text-decoration: none; font-size: 0.93rem; font-weight: 500; color: var(--ink); }
.aside-card ul a:hover, .aside-card ul a[aria-current="page"] { color: var(--blue); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 4vw, 4rem); align-items: stretch; }
/* Details card: same weight as the form, the map grows to fill whatever height the form sets */
.contact-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.contact-card-head { background: var(--navy); color: var(--white); padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.5rem); }
.contact-card-head .eyebrow { color: var(--brass); margin-bottom: 0.5rem; }
.contact-card-head .phone-big { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1.1; color: var(--white); text-decoration: none; display: block; }
.contact-card-head .phone-big:hover { color: var(--brass); }
.contact-card-head p { margin: 0.4rem 0 0; color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.contact-rows { margin: 0; padding: 0.5rem clamp(1.5rem, 3vw, 2.5rem); }
.contact-rows > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.contact-rows > div:first-child { border-top: 0; }
.contact-rows dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); padding-top: 0.2em; }
.contact-rows dd { margin: 0; color: var(--ink); line-height: 1.55; }
.contact-rows dd a { font-weight: 500; text-decoration: none; }
.contact-rows dd a:hover { text-decoration: underline; }
.contact-rows .directions { display: inline-flex; align-items: center; gap: 0.35em; margin-top: 0.5rem; font-size: 0.9rem; color: var(--blue); }
.contact-rows .directions:hover .arrow { transform: translateX(3px); }
.contact-rows .arrow { transition: transform 0.25s var(--ease); }
.contact-card .map { flex: 1 1 auto; min-height: 260px; margin: 0; aspect-ratio: auto; clip-path: none; border-top: 1px solid var(--line); }
.form { display: grid; gap: 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: 3px; padding: clamp(1.5rem, 3vw, 2.5rem); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 0.75em 0.9em; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); background: var(--white); }
.field textarea { min-height: 150px; resize: vertical; }
.field .err { font-size: 0.82rem; color: #a3352b; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #a3352b; }
.form .note { font-size: 0.82rem; color: var(--mute); margin: 0; }
.form-status { padding: 1rem 1.2rem; border-radius: 2px; font-size: 0.95rem; display: none; }
.form-status.ok { display: block; background: #e8f0e9; color: #1f4d2b; }
.form-status.bad { display: block; background: #f6e5e3; color: #7a2a21; }
/* After a successful send the fields fade out, the card shrinks and a confirmation takes their place */
.form.is-sent, .js .form.is-sent { overflow: hidden; align-self: start; transition: height 0.55s var(--ease); } /* outranks the .js .reveal transition */
.form.is-sent > :not(.form-success) { opacity: 0; transform: translateY(-6px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.form > [hidden] { display: none !important; }
.form-success { display: grid; justify-items: start; align-self: start; gap: 0.8rem; opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); outline: none; }
.form-success.in { opacity: 1; transform: none; }
.form-success .tick { width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: var(--brass); display: grid; place-items: center; margin-bottom: 0.4rem; }
.form-success h3 { margin: 0; font-size: 1.7rem; }
.form-success p { margin: 0; color: var(--mute); max-width: 36em; }
.form-success .btn { margin-top: 0.6rem; }
@media (prefers-reduced-motion: reduce) {
  .form.is-sent, .js .form.is-sent, .form.is-sent > :not(.form-success), .form-success { transition: none; }
}
.hp { position: absolute; left: -9999px; }
.map { margin-top: 2rem; aspect-ratio: 16 / 9; border: 0; width: 100%; clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); }

/* Legal pages */
.legal .prose { max-width: 70ch; }
.fee-table { width: 100%; max-width: 80ch; border-collapse: collapse; margin: 1.25rem 0 1.5rem; font-size: 0.95rem; }   /* cells inherit the justified body text; fee column right-aligned below */
.fee-table th, .fee-table td { padding: 0.7em 0.75em 0.7em 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.fee-table th { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.fee-table td:last-child, .fee-table th:last-child { white-space: nowrap; text-align: right; padding-right: 0; font-weight: 500; }
.todo { background: #fff7e0; border-left: 3px solid var(--brass); padding: 0.75rem 1rem; font-size: 0.9rem; color: #5a4a1e; margin: 1.5rem 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.8); font-size: 0.93rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding: 4rem 0 3rem; border-bottom: 1px solid var(--line-dark); }
.footer-brand img { height: 42px; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 32ch; margin: 0; color: rgba(255,255,255,0.65); }
.site-footer h4 { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin: 0 0 1rem; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-contact address { font-style: normal; display: grid; gap: 0.45rem; }
.footer-bottom { padding: 1.75rem 0 2.25rem; display: grid; grid-template-columns: 1fr auto; gap: 1rem 3rem; align-items: start; }
.footer-meta { grid-column: 1 / -1; }
.footer-regulation { font-size: 0.8rem; color: rgba(255,255,255,0.55); max-width: 110ch; margin: 0; line-height: 1.55; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.8rem; color: rgba(255,255,255,0.55); align-items: center; }
.footer-meta ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
/* SRA digital badge: the firm's own embed (id 55845r), locked by the SRA to ncslaw.co.uk so it renders blank on other hosts */
.sra-badge { width: 200px; max-width: 100%; }
.sra-badge-frame { position: relative; height: 0; padding-bottom: 59.1%; overflow: hidden; }
.sra-badge-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Reveal on scroll ---------- */
/* Only hide reveal targets when JS is running (html.js is set inline in <head>) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > :nth-child(2) { transition-delay: 0.07s; }
.reveal-stagger.in > :nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger.in > :nth-child(4) { transition-delay: 0.21s; }
.reveal-stagger.in > :nth-child(5) { transition-delay: 0.28s; }
.reveal-stagger.in > :nth-child(6) { transition-delay: 0.35s; }
.reveal-stagger.in > :nth-child(n+7) { transition-delay: 0.42s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .btn, .service-card, .service-card .media img, .service-card .media::after, .menu { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --logo-h: 42px; --header-h: 74px; }
}

@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .people { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .service-layout { grid-template-columns: 1fr; }
  .aside { position: static; }
}

@media (max-width: 860px) {
  :root { --logo-h: 40px; --header-pad: 14px; --header-h: 68px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.75rem var(--gutter) 1.25rem; gap: 0;
  }
  .nav.open { display: flex; max-height: calc(100vh - 100%); max-height: calc(100dvh - 100%); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; } /* a long menu (landscape phones) scrolls inside the panel; overscroll-behavior keeps that scroll off the page, and a short menu leaves the page scrollable */
  .nav > li { width: 100%; }
  .nav a, .nav button { width: 100%; justify-content: space-between; padding: 0.8em 0.25em; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu { position: static; transform: none; width: 100%; box-shadow: none; border: 0; padding: 0.25rem 0 0.75rem 0.75rem; grid-template-columns: 1fr; gap: 0.75rem; display: none; background: transparent; }
  .menu.open { display: grid; transform: none; } /* the desktop .menu.open transform would otherwise drag the list half a screen left */
  .menu li a { padding: 0.4em 0.25em; border: 0; }
  .hero-slide { align-items: flex-end; padding: 3rem 0 1.5rem; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(15,29,43,0.35) 0%, rgba(15,29,43,0.55) 45%, rgba(15,29,43,0.92) 100%); }
  .hero-copy .lede { font-size: 1.05rem; margin-bottom: 1.25rem; }
  .hero-quote { font-size: 1rem; margin-bottom: 1.25rem; }
  .header-cta .btn { padding: 0.7em 1.1em; font-size: 0.88rem; }
  .section-head { grid-template-columns: 1fr; align-items: start; gap: 1rem; }
  .split, .contact-grid, .page-head .grid { grid-template-columns: 1fr; }
  .page-head.dark.with-media .cut { position: static; min-height: 0; }
  .page-head.dark.with-media .cut img { position: static; height: auto; aspect-ratio: 4 / 3; }
  .contact-grid .form { order: -1; } /* form first on small screens; the details card follows */
  .contact-rows > div { grid-template-columns: 1fr; gap: 0.3rem; }
  .contact-card .map { min-height: 300px; }
  /* Director feature: the portrait sits beside the name and role, the intro runs full width underneath */
  .lead-split { grid-template-columns: 150px 1fr; grid-template-areas: "photo head" "copy copy"; gap: 1.5rem 1.25rem; align-items: center; }
  .lead-split .cut { grid-area: photo; max-width: none; --slant: 10%; }
  .lead-split .lead-copy { display: contents; }
  .lead-split .lead-head { grid-area: head; }
  .lead-split .lead-head .eyebrow { margin-bottom: 0.5rem; }
  .lead-split .lead-head h2 { margin-bottom: 0.35rem; }
  .lead-split .lead-head .role { margin: 0; }
  .lead-split .lead-body { grid-area: copy; }
  .process { grid-template-columns: 1fr; gap: 1.5rem; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .form .row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section { padding: 3.5rem 0; }
  #firm.section { padding-bottom: 2.25rem; }
  #people.section { padding-top: 0.5rem; }
  .section-head { margin-bottom: 1.75rem; }
  .people { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
  .person .photo .mono { font-size: 2.4rem; }

  /* Hero on phones: the image owns the top of the screen, the copy fills the lower half as one
     column (slide indicators, eyebrow, title, intro, two stacked buttons) down to the bottom edge. */
  .hero-slide { align-items: flex-end; padding: 5rem 0 1.6rem; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(15,29,43,0.10) 0%, rgba(15,29,43,0.32) 30%, rgba(15,29,43,0.80) 52%, rgba(15,29,43,0.96) 100%); }
  .hero-copy .eyebrow { margin-bottom: 0.9rem; }
  /* main.js moves the slide indicators into the active slide's copy on phones, so they sit where the content starts */
  .hero-copy .hero-dots { position: static; margin: 0 0 1.1rem -0.2rem; }
  .hero-copy h1, .hero-title { font-size: clamp(2.3rem, 10vw, 3rem); margin-bottom: 0.4em; }
  .hero-copy h1 { max-width: 8em; } /* 'Clear advice.' / 'Decisive action.' on two lines, no orphan */
  .hero-copy .lede { font-size: 1.1rem; line-height: 1.55; margin-bottom: 1.5rem; max-width: 24em; }
  .hero-quote, .hero-quotes { display: none; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
  .hero-actions .btn { justify-content: center; padding: 0.95em 1em; font-size: 0.95rem; white-space: nowrap; }
  .hero-dots button { padding: 0.5rem 0.2rem; }
  .hero-bg img { object-position: var(--focus-sm, var(--focus, 70% 50%)); } /* phones can take their own focus point, set as --focus-sm on the figure */
}

@media (max-width: 400px) {
  .hero-copy .eyebrow { font-size: 0.68rem; letter-spacing: 0.14em; }
  .hero-copy .lede { font-size: 1.02rem; }
}

@media (max-width: 560px) {
  /* Expertise: compact rows with a thumbnail instead of nine full cards */
  .services { grid-template-columns: 1fr; gap: 0.7rem; }
  .service-card { flex-direction: row; align-items: stretch; }
  .service-card:hover { transform: none; box-shadow: 0 10px 24px rgba(15, 29, 43, 0.08); }
  .service-card .media { flex: 0 0 108px; aspect-ratio: auto; }
  .service-card .body { padding: 0.85rem 1rem 0.9rem; gap: 0.2rem; min-width: 0; justify-content: center; }
  .service-card .tag { font-size: 0.6rem; letter-spacing: 0.12em; }
  .service-card h3 { font-size: 1.08rem; line-height: 1.2; }
  .service-card p { display: none; }
  .service-card .more { font-size: 0.8rem; margin-top: 0.3rem; }

  /* How we work */
  .process { gap: 1.25rem; }
  .step { padding-top: 1.1rem; }
  .step .n { font-size: 1.8rem; margin-bottom: 0.5rem; }

  /* Client feedback: one swipeable row of cards */

  /* Director feature: a compact portrait next to the name */
  .lead-split { grid-template-columns: 118px 1fr; gap: 1.25rem 1rem; }
  .lead-split .lead-head h2 { font-size: 1.6rem; }

  /* Footer: link lists side by side */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; padding-top: 3rem; }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
  .site-footer ul { font-size: 0.9rem; gap: 0.4rem; }
  .footer-bottom { grid-template-columns: 1fr; }
  :root { --logo-h: 34px; --header-pad: 12px; --header-h: 58px; }
  .header-cta .btn { display: none; }
}

/* ---------- Large screens (desktop monitors, 1600px and up) ----------
   Laptops stay exactly as they are. Above 1600px the root size, content width,
   header and type caps all step up so the page fills a 1080p or larger monitor. */
@media (min-width: 1600px) {
  html { font-size: 18px; }
  :root { --max: 1480px; --gutter: clamp(32px, 4vw, 72px); --header-h: 86px; --logo-h: 52px; --header-pad: 17px; }
  .header-inner { gap: 3rem; }
  .nav a, .nav button { font-size: 1.02rem; padding: 0.6em 1.1em; }
  .header-cta .btn { padding: 0.95em 1.7em; }
  h1 { font-size: clamp(2.4rem, 5.2vw, 5rem); }
  h2 { font-size: clamp(1.9rem, 3.4vw, 3.3rem); }
  h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
  .lede { font-size: clamp(1.1rem, 1.5vw, 1.4rem); }
  .hero-copy h1, .hero-title { font-size: clamp(2.5rem, min(5.2vw, 9.6vh), 5.4rem); max-width: 12em; }
  .hero-slide { padding: clamp(2rem, 4vh, 4rem) 0 clamp(1.5rem, 3vh, 3rem); }
  .hero-copy .lede { max-width: 32em; }
  .hero-quote { font-size: 1.2rem; }
  .hero-dots button[aria-selected="true"] i { width: 56px; }
  .hero-dots:hover i { width: 42px; }
  .hero-dots:hover button[aria-selected="true"] i { width: 84px; }
  .services { gap: 2rem; }
  .menu { width: min(820px, calc(100vw - 2 * var(--gutter))); }
}
@media (min-width: 2200px) {
  html { font-size: 20px; }
  :root { --max: 1680px; --header-h: 94px; --logo-h: 58px; --header-pad: 18px; }
}
