/* B K Singaravelan & Co — site styles
   Brand: navy #16294D, gold #C2A24D, white. Firm name and headings Fraunces, everything else Inter.
   Layout: sticky header; full-width bands. Home opens on a full-screen navy hero,
   then a pinned scroll story of services, the due-date finder, the engagement
   steps and the firm. Motion is switched off for visitors who prefer reduced motion. */

@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --navy: #16294D;
  --navy-deep: #081221;
  --navy-mid: #274A7D;
  --navy-ink: #0E1D38;
  --gold: #C2A24D;
  --gold-light: #DDC274;
  --gold-deep: #9C7F2D;
  --gold-text: #7D6522;
  --panel: #E7EBF2;
  --panel-soft: #F4F6FA;
  --ink: #0F172A;
  --muted: #5B6779;
  --on-navy: #C9D3E3;
  --line: #D9DEE7;
  --white: #FFFFFF;
  --soon: #8A3B12;
  --soon-bg: #FBE9DD;
  --near: #7A5A0B;
  --near-bg: #F8EFD6;

  --font-head: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-name: "Fraunces", Georgia, "Times New Roman", serif;

  --max: 150rem;
  --gutter: clamp(1.25rem, 4.5vw, 5rem);
  --measure: 48rem;
  --radius: 16px;
  --card-shadow: 0 1px 2px rgba(14, 29, 56, 0.06), 0 18px 40px -28px rgba(14, 29, 56, 0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 24px 48px -28px rgba(14, 29, 56, 0.45);
  --shadow-lg: 0 40px 90px -40px rgba(3, 9, 20, 0.7);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
.motion { scroll-behavior: smooth; }
/* Smooth scrolling (Lenis) */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow > * { max-width: var(--measure); }

a { color: var(--navy-mid); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--navy-mid); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .page-hero :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-light); }

.skip { position: absolute; left: 0.5rem; top: -4rem; z-index: 60; background: var(--navy); color: var(--white); padding: 0.5rem 1rem; }
.skip:focus { top: 0.5rem; color: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.top-sentinel { position: absolute; top: 0; height: 24px; width: 1px; }

h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
h1, h2 { font-family: var(--font-name); font-weight: 500; letter-spacing: -0.012em; }
.ico { width: 1.25em; height: 1.25em; flex: none; }
h2 { font-size: clamp(1.85rem, 3vw, 2.75rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.arrow { flex: none; transition: transform 0.35s var(--ease); }
.text-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; text-decoration: none; padding-bottom: 2px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease); }
.text-link:hover { background-size: 100% 1px; }
.text-link:hover .arrow, .button:hover .arrow, .u-card:hover .text-link .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); transition: box-shadow 0.3s var(--ease); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.4) blur(12px); } }
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(14, 29, 56, 0.45); }
.bar { display: flex; align-items: center; gap: 1rem; min-height: 4.75rem; transition: min-height 0.3s var(--ease); }
.scrolled .bar { min-height: 3.9rem; }
.firm { display: flex; flex-direction: column; text-decoration: none; color: var(--navy); margin-right: auto; }
.firm:hover { color: var(--navy); }
.firm-name { font-family: var(--font-name); font-weight: 500; font-size: 1.15rem; line-height: 1.1; letter-spacing: -0.01em; white-space: nowrap; }
.firm-suffix { font-family: var(--font-head); font-size: 0.8rem; color: var(--navy-mid); white-space: nowrap; }
@media (min-width: 40rem) { .firm-suffix { font-size: 0.9rem; } }
@media (max-width: 25rem) { .menu-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .menu-btn { padding: 0 0.8rem; } .ca-logo { height: 2.1rem; } }
.ca-badge { display: inline-flex; flex: none; padding: 0.3rem 0.45rem; border-radius: 10px; background: var(--white); }
.ca-logo { display: block; height: 2.4rem; width: auto; background: var(--white); transition: height 0.3s var(--ease); }
.scrolled .ca-logo { height: 2.1rem; }
.firm { transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s; }
.site-header { transition: background-color 0.45s var(--ease), border-color 0.45s, box-shadow 0.3s var(--ease); }

/* Home: the header floats over the hero; the firm name appears once the hero is passed. */
.js .page-home .site-header { position: fixed; top: 0; left: 0; right: 0; }
.js .page-home .site-header:not(.solid) { background: transparent; border-bottom-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.js .page-home .site-header:not(.solid) .firm { opacity: 0; visibility: hidden; transform: translateY(-8px); }
.js .page-home .site-header:not(.solid) .bar > .nav .nav-link { color: var(--white); }
.js .page-home .site-header:not(.solid) .bar > .nav .nav-link:hover { background: rgba(255, 255, 255, 0.1); }
.js .page-home .site-header:not(.solid) .bar > .nav .nav-link[aria-current="page"] { background: rgba(255, 255, 255, 0.14); }
.js .page-home .site-header:not(.solid) .menu-btn { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.js .page-home .site-header:not(.solid) .bar :focus-visible { outline-color: var(--gold-light); }

.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.15rem; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.55rem 0.85rem; border-radius: 999px; border: 0; background: none; cursor: pointer;
  font: 500 0.95rem var(--font-body); color: var(--navy); text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.nav-link:hover { background: var(--panel-soft); color: var(--navy); }
.nav-link[aria-current="page"], .nav-link.is-active { background: var(--panel); }
.sub-toggle svg { transition: transform 0.25s var(--ease); }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.has-sub { position: relative; }
.submenu {
  position: absolute; top: calc(100% + 0.6rem); left: -0.5rem; width: 21rem;
  display: grid; gap: 0.25rem; padding: 0.5rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  animation: drop 0.25s var(--ease);
}
.submenu a { display: grid; gap: 0.1rem; padding: 0.75rem 0.9rem; border-radius: 10px; text-decoration: none; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--panel-soft); }
.sub-title { font-weight: 600; color: var(--navy); }
.sub-desc { font-size: 0.875rem; color: var(--muted); }

.menu-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 0.95rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy);
  font: 600 0.9rem var(--font-body); cursor: pointer;
}
.menu-icon { position: relative; width: 16px; height: 10px; }
.menu-icon span { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.menu-icon span:first-child { top: 0; }
.menu-icon span:last-child { top: 8px; }
.menu-btn[aria-expanded="true"] .menu-icon span:first-child { top: 4px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon span:last-child { top: 4px; transform: rotate(-45deg); }
.mobile-nav { border-top: 1px solid var(--line); background: var(--white); max-height: calc(100vh - 5rem); overflow-y: auto; animation: drop 0.3s var(--ease); }
.mobile-nav ul { list-style: none; margin: 0; padding-top: 0.5rem; padding-bottom: 1.25rem; }
.mobile-nav li a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-size: 1.25rem; font-weight: 500; color: var(--navy); text-decoration: none; }
.mobile-nav li a[aria-current="page"] { color: var(--gold-text); }
.m-group .m-label { display: block; padding: 1rem 0 0.25rem; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.m-group ul { padding: 0 0 0 1rem; }

@media (min-width: 72rem) {
  .nav { display: block; }
  .menu-btn, .mobile-nav { display: none !important; }
  .ca-badge { margin-left: 0.75rem; }
}
@media (min-width: 40rem) { .firm-name { font-size: 1.5rem; } .ca-logo { height: 2.75rem; } }

/* ---------- Buttons and chips ---------- */

.button {
  display: inline-flex; align-items: center; gap: 0.55rem; min-height: 48px; padding: 0.8rem 1.5rem;
  border-radius: 999px; border: 1px solid var(--navy); background: var(--navy); color: var(--white);
  font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.button:hover { background: var(--navy-mid); border-color: var(--navy-mid); color: var(--white); }
.button:active { transform: translateY(1px) scale(0.99); }
.button.gold { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.button.gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy-deep); }
.button.ghost { background: transparent; border-color: rgba(255, 255, 255, 0.4); color: var(--white); }
.button.ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }
.button.outline { background: transparent; color: var(--navy); }
.button.outline:hover { background: var(--navy); color: var(--white); }

.chip { display: inline-block; padding: 0.2rem 0.7rem; border-radius: 999px; background: var(--panel-soft); border: 1px solid var(--line); font-size: 0.85rem; font-weight: 500; color: var(--navy-mid); font-variant-numeric: tabular-nums; }

/* ---------- Home hero ---------- */

.hero {
  --hp: 0;
  position: relative; isolation: isolate; overflow: hidden; color: var(--white);
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  background: var(--navy-deep);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(170deg, #0A1528 0%, #12254A 55%, #0C1A33 100%); }
.glow { position: absolute; border-radius: 50%; pointer-events: none; }
.g1 { width: 70vmax; height: 70vmax; left: -22vmax; top: -34vmax; background: radial-gradient(circle, rgba(39, 74, 125, 0.95) 0%, rgba(39, 74, 125, 0) 62%); }
.g2 { width: 48vmax; height: 48vmax; right: -14vmax; top: 4vmax; background: radial-gradient(circle, rgba(194, 162, 77, 0.24) 0%, rgba(194, 162, 77, 0) 62%); }
.g3 { width: 60vmax; height: 60vmax; left: 24vw; bottom: -40vmax; background: radial-gradient(circle, rgba(30, 58, 107, 0.9) 0%, rgba(30, 58, 107, 0) 62%); }
.grain {
  position: absolute; inset: 0; opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; padding-top: clamp(7rem, 14vh, 10rem); padding-bottom: clamp(6rem, 12vh, 9rem); }
.hero h1 { color: var(--white); display: block; }
.h-name { display: block; white-space: nowrap; font-family: var(--font-name); font-size: clamp(1.6rem, 8.4vw, 3.4rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; }
@media (min-width: 40rem) { .h-name { font-size: clamp(3.4rem, 6.4vw, 8.5rem); } }
.h-rule { display: block; width: min(16rem, 34vw); height: 1px; margin: clamp(1.25rem, 2.6vw, 2.25rem) 0 clamp(1rem, 1.8vw, 1.5rem); background: linear-gradient(90deg, var(--gold) 0%, rgba(194, 162, 77, 0) 100%); transform-origin: left; }
.h-suffix { display: block; font-family: var(--font-body); font-size: clamp(0.85rem, 1.35vw, 1.35rem); font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold-light); }
.hero-lede { margin: clamp(2rem, 4vw, 3rem) 0 2.25rem; max-width: 34rem; font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.6; color: var(--on-navy); }
.hero-services { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0; margin: clamp(2rem, 4vw, 3rem) 0 2.5rem; padding: 0; list-style: none; font-family: var(--font-head); font-size: clamp(1rem, 1.3vw, 1.25rem); font-weight: 500; color: var(--white); }
.hero-services li { display: inline-flex; align-items: center; }
.hero-services li + li::before { content: ""; width: 5px; height: 5px; margin: 0 clamp(0.9rem, 1.6vw, 1.5rem); border-radius: 50%; background: var(--gold); }
@media (max-width: 39.99rem) { .hero-services { display: grid; grid-template-columns: repeat(2, max-content); gap: 0.6rem 1.75rem; font-size: 1.05rem; } .hero-services li::before, .hero-services li + li::before { content: ""; display: block; width: 5px; height: 5px; margin: 0 0.6rem 0 0; border-radius: 50%; background: var(--gold); } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; padding-bottom: clamp(1.25rem, 3vh, 2rem); display: flex; justify-content: space-between; align-items: end; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-navy); }
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.cue-line { position: relative; width: 1px; height: 3rem; overflow: hidden; background: rgba(255, 255, 255, 0.2); }
.cue-line::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--gold-light); transform: translateY(-100%); }
.hero-place { letter-spacing: 0.16em; }
.hero-place .dot { color: var(--gold); }
@media (max-width: 47.99rem) { .hero-foot { justify-content: flex-start; } .scroll-cue { display: none; } .hero-place { letter-spacing: 0.1em; font-size: 0.7rem; } }

/* ---------- Home: What we do ---------- */

.story { position: relative; background: var(--white); padding-block: clamp(3.5rem, 7vw, 6rem); }
.story-grid { display: grid; gap: 1.5rem; grid-template-areas: "head" "stage" "audit"; }
.story-head { grid-area: head; display: grid; gap: 0.75rem; max-width: 40rem; }
.story-head p { margin: 0; color: var(--muted); font-size: 1.125rem; }
.story-index { display: none; }
.story-stage {
  grid-area: stage; display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 27rem); gap: 1rem;
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: thin;
}
.story-item {
  position: relative; overflow: hidden; scroll-snap-align: start;
  padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius); border: 1px solid var(--line); background: var(--white);
}
.story-ico { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1.1rem; border-radius: 12px; background: var(--panel); color: var(--navy); }
.story-ico .ico { width: 1.5rem; height: 1.5rem; }
.story-item h3 { position: relative; font-family: var(--font-name); font-weight: 500; font-size: clamp(1.5rem, 2.3vw, 2.1rem); letter-spacing: -0.012em; }
.story-desc { position: relative; margin: 0.7rem 0 1.2rem; font-size: 1.05rem; color: var(--muted); max-width: 36rem; }
.story-item .svc-items { gap: 0.5rem; }
.story-item .svc-items li { font-size: 1rem; }
.story-item .text-link, .story-item .svc-items { position: relative; z-index: 1; }
.audit-strip { grid-area: audit; position: relative; overflow: hidden; padding: 1.5rem 1.5rem 0.75rem; border-radius: var(--radius); background: var(--panel-soft) !important; border: 1px solid var(--line); background: var(--white); }
.audit-strip h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.2rem; }
.audit-strip h3 .ico { color: var(--gold-text); }
.audit-strip p { margin: 0.4rem 0 1rem; color: var(--muted); font-size: 0.975rem; }
@media (min-width: 48rem) { .story-stage { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: 0; padding: 0; overflow: visible; } }

/* Large screens (with script): names on the left; one service shows at a time. */
@media (min-width: 64rem) {
  .js .story-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); column-gap: clamp(3rem, 6vw, 8rem); row-gap: 1.75rem;
    grid-template-areas: "head stage" "index stage" "audit stage"; grid-template-rows: auto auto 1fr; align-items: start;
  }
  .js .story-index { grid-area: index; display: grid; gap: 0.15rem; justify-items: start; }
  .si {
    display: flex; align-items: center; gap: 1rem; padding: 0.2rem 0; border: 0; background: none; cursor: pointer; text-align: left;
    font-family: var(--font-name); font-size: clamp(1.4rem, 2.1vw, 2.25rem); font-weight: 400; letter-spacing: -0.01em; line-height: 1.3;
    color: #737F92; transition: color 0.4s var(--ease), transform 0.6s var(--ease);
  }
  .si:hover { color: var(--navy-mid); }
  .si-ico { width: 1.4rem; height: 1.4rem; color: var(--muted); stroke-width: 1.5; }
  .si[aria-selected="true"] { color: var(--navy); transform: translateX(0.75rem); }
  .si[aria-selected="true"] .si-ico { color: var(--gold-text); }
  .js .story-stage { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; margin: 0; padding: 0; overflow: visible; }
  .js .story-item {
    grid-area: 1 / 1; padding: clamp(2rem, 3.4vw, 3.25rem); background: var(--white);
    box-shadow: var(--card-shadow);
    visibility: hidden; opacity: 0; transform: translateY(24px); transition: opacity 0.5s var(--ease), transform 0.7s var(--ease), visibility 0s 0.5s;
  }
  .js .story-item.is-active { visibility: visible; opacity: 1; transform: none; transition: opacity 0.5s var(--ease), transform 0.7s var(--ease), visibility 0s; }
  .audit-strip { align-self: end; }
}

/* ---------- Home: due-date finder ---------- */

.finder-band { padding-block: clamp(1rem, 3vw, 2rem) clamp(3.5rem, 7vw, 6rem); }
.finder-panel {
  position: relative; overflow: hidden; color: var(--white); padding: clamp(1.5rem, 4.5vw, 4.5rem); border-radius: 24px;
  background: radial-gradient(900px 520px at 8% 0%, #20396A 0%, rgba(32, 57, 106, 0) 60%), var(--navy);
}
.finder-panel :focus-visible { outline-color: var(--gold-light); }
.finder-grid { display: grid; gap: 2.5rem; }
.finder-ask h2 { color: var(--white); margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem); }
.finder-q { margin: 0.9rem 0 1.75rem; font-family: var(--font-name); font-size: clamp(1.35rem, 2.1vw, 1.9rem); font-weight: 400; color: var(--gold-light); }
.finder-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.finder-tiles .tile {
  display: grid; justify-items: start; gap: 0.55rem; min-height: 4.25rem; padding: 0.95rem 1.1rem; text-align: left; cursor: pointer;
  border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.04);
  font: 500 1rem/1.3 var(--font-head); color: var(--white);
  transition: background-color 0.3s var(--ease), border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.finder-tiles .tile:hover { border-color: var(--gold-light); background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.finder-tiles .tile[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.finder-tiles .tile .ico { width: 1.35rem; height: 1.35rem; color: var(--gold-light); }
.finder-tiles .tile[aria-pressed="true"] .ico { color: var(--navy-deep); }
.finder-ask .draft-banner { margin: 1.25rem 0 0; font-size: 0.9rem; }
.finder-card { min-height: 22rem; display: flex; flex-direction: column; padding: clamp(1.4rem, 2.6vw, 2.25rem); border-radius: var(--radius); background: var(--white); color: var(--ink); }
.finder-card :focus-visible { outline-color: var(--navy-mid); }
.finder-list { list-style: none; margin: 0; padding: 0; }
.finder-list .due { border-bottom: 1px solid var(--line); animation: fadeUp 0.5s var(--ease) both; }
.finder-list .due:first-child { border-top: 1px solid var(--line); }
.finder-list .due-row { padding: 0.8rem 0; }
.finder-list .due-date { width: 3.1rem; height: 3.1rem; }
.finder-list .due-day { font-size: 1.2rem; }
.finder-list .due-side .tag { display: none; }
.finder-empty { flex: 1; display: grid; place-items: center; margin: 0; padding: 2rem 1.5rem; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); text-align: center; font-size: 1.05rem; }
.finder-empty:empty { display: none; }
[data-finder].chosen .finder-empty:not(:empty) { flex: none; margin-bottom: 1rem; padding: 1rem; }
.finder-foot { margin: auto 0 0; padding-top: 1.25rem; font-size: 0.875rem; color: var(--muted); }
.finder-foot a { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 600; text-decoration: none; }
@media (min-width: 48rem) { .finder-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .finder-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(3rem, 6vw, 7rem); align-items: center; } }

/* ---------- Page header (every page except Home) ---------- */

.page-hero { position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: var(--navy-deep); }
.ph-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(165deg, #0A1528 0%, #12254A 70%, #0E1F3D 100%); }
.ph-bg .g1 { width: 55vmax; height: 55vmax; left: -18vmax; top: -30vmax; }
.ph-bg .g2 { width: 38vmax; height: 38vmax; right: -12vmax; top: -6vmax; }
.ph-inner { position: relative; padding-top: clamp(2.5rem, 5vw, 4.25rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.55rem; margin: 0 0 1.1rem; padding: 0; list-style: none; font-size: 0.875rem; color: var(--on-navy); }
.crumbs li + li::before { content: "›"; margin-right: 0.55rem; color: var(--gold); }
.crumbs a { color: var(--on-navy); text-decoration: none; }
.crumbs a:hover { color: var(--gold-light); text-decoration: underline; }
.crumbs [aria-current] { color: var(--white); }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 4.8vw, 4rem); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; max-width: 26ch; }
.ph-rule { width: min(10rem, 30vw); margin: clamp(1rem, 2vw, 1.5rem) 0 0; }
.ph-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 1.1rem 0 0; font-size: 0.925rem; color: var(--on-navy); }
.ph-meta .type { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.page-hero .lede { margin: 1.1rem 0 0; max-width: 44rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--on-navy); }
.ph-toc { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem; margin-top: 1.6rem; }
.ph-toc-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); margin-right: 0.4rem; }
.ph-toc ul { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.ph-toc a { display: inline-block; padding: 0.3rem 0.8rem; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; font-size: 0.875rem; color: var(--white); text-decoration: none; transition: background-color 0.25s, border-color 0.25s; }
.ph-toc a:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--gold-light); color: var(--white); }
.status-pill { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.85rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.is-open { background: var(--gold); color: var(--navy-deep); }
.status-pill.is-closed { background: rgba(255, 255, 255, 0.12); color: var(--white); }

/* Back to top */
.to-top {
  position: fixed; right: max(1rem, env(safe-area-inset-right, 0px)); bottom: max(1rem, env(safe-area-inset-bottom, 0px)); z-index: 45;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer;
  background: var(--white); color: var(--navy); box-shadow: var(--card-shadow);
  opacity: 0; transform: translateY(12px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background-color 0.2s;
}
.to-top.show { opacity: 1; transform: none; }
.to-top:hover { background: var(--navy); color: var(--white); }
.to-top .ico { width: 1.25rem; height: 1.25rem; }

.content { padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(3.5rem, 7vw, 6.5rem); }

/* ---------- Bands ---------- */

.band { padding-block: clamp(3rem, 5.5vw, 5rem); }
.band-panel { background: var(--panel-soft); border-block: 1px solid var(--line); }
.band-head { display: grid; gap: 0.75rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); max-width: 46rem; }
.band-head p { margin: 0; color: var(--muted); font-size: 1.125rem; }
.band-head.row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }
.band-head.row p { margin-top: 0.6rem; }
#what-we-do { scroll-margin-top: 0; }

/* ---------- Services: tabbed panel ---------- */

.svc-tabs { display: grid; gap: 1rem; }
.svc-list { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 0.25rem; }
.svc-list::-webkit-scrollbar { display: none; }
.svc-tab {
  position: relative; flex: none; display: grid; gap: 0.15rem; text-align: left; cursor: pointer;
  padding: 0.8rem 1.1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--white);
  font: inherit; color: var(--navy); transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.svc-tab:hover { border-color: var(--navy-mid); }
.svc-tab-name { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.svc-tab-name .ico { width: 1.15rem; height: 1.15rem; color: var(--gold-text); }
.svc-tab[aria-selected="true"] .svc-tab-name .ico { color: var(--gold-light); }
.svc-tab-sub { font-size: 0.82rem; color: var(--muted); }
.svc-tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.svc-tab[aria-selected="true"] .svc-tab-sub { color: var(--gold-light); }
.svc-panels { min-width: 0; }
.svc-panel {
  position: relative; overflow: hidden; padding: clamp(1.5rem, 3.5vw, 3rem); border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--card-shadow);
  animation: panelIn 0.45s var(--ease) both;
}
.svc-panel h3, .svc-panel h2 { position: relative; font-family: var(--font-name); font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.4rem); max-width: 22ch; }
.svc-desc { position: relative; margin: 0.9rem 0 1.5rem; font-size: 1.125rem; color: var(--muted); max-width: 40rem; }
.svc-items { position: relative; list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.65rem; }
.svc-items li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 1.05rem; }
.svc-items svg { flex: none; margin-top: 0.3rem; padding: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--panel); color: var(--navy); }
.svc-covers { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.25rem; }
.on-request summary { list-style: none; cursor: pointer; display: inline-block; margin-bottom: 1rem; }
.on-request summary::-webkit-details-marker { display: none; }
.on-request[open] summary .button { background: var(--navy); color: var(--white); }
.on-request[open] .svc-items { animation: fadeUp 0.4s var(--ease) both; }
@media (min-width: 64rem) {
  .svc-tabs { grid-template-columns: minmax(17rem, 22rem) minmax(0, 1fr); gap: 2rem; align-items: start; }
  .svc-list { flex-direction: column; overflow: visible; padding: 0; gap: 0.4rem; }
  .svc-tab { padding: 1rem 1.25rem; border-color: transparent; background: transparent; }
  .svc-tab:hover { background: var(--white); border-color: var(--line); transform: translateX(4px); }
  .svc-tab[aria-selected="true"], .svc-tab[aria-selected="true"]:hover { background: var(--navy); border-color: var(--navy); color: var(--white); transform: translateX(8px); box-shadow: var(--shadow); }
  .svc-tabs { align-items: stretch; }
  .svc-panels { display: grid; }
  .svc-panel { height: 100%; }
  .svc-tab[aria-selected="true"]::before { content: ""; position: absolute; left: -12px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--gold); }
  .svc-panels { min-height: 26rem; }
}
.svc-page { display: grid; gap: 2.5rem; }
.svc-aside { align-self: start; padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-soft); }
.svc-aside h2 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.svc-aside p { margin-bottom: 0.75rem; }
@media (min-width: 90rem) { .svc-page { grid-template-columns: minmax(0, 1fr) 20rem; gap: 3rem; } .svc-aside { position: sticky; top: 6rem; } }

/* ---------- How an engagement works (follows the scroll both ways) ---------- */

.steps { --p: 0; list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; position: relative; }
.steps::before, .steps::after { content: ""; position: absolute; left: 1.3rem; top: 1.4rem; bottom: 1.4rem; width: 2px; background: var(--panel); }
.steps::after { background: var(--gold); transform-origin: top; transform: scaleY(var(--p)); }
.steps li { position: relative; z-index: 1; padding-left: 4rem; }
.step-n {
  position: absolute; left: 0; top: 0; width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--navy); border: 2px solid var(--gold); color: var(--white);
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; font-variant-numeric: tabular-nums;
  transition: background-color 0.5s var(--ease), border-color 0.5s, color 0.5s, transform 0.6s var(--ease);
}
.steps h3 { display: flex; align-items: center; gap: 0.45rem; font-size: 1.25rem; margin: 0.45rem 0 0.4rem; transition: color 0.5s var(--ease); }
.step-ico { width: 1.15rem; height: 1.15rem; color: var(--gold-text); }
.steps p { margin: 0; color: var(--muted); }
.motion .steps li:not(.lit) .step-n { background: var(--white); border-color: var(--line); color: var(--muted); transform: scale(0.9); }
.motion .steps li:not(.lit) h3 { color: var(--muted); }
@media (min-width: 64rem) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2.5rem; }
  .steps::before, .steps::after { left: 1.375rem; right: calc((100% - 10rem) / 5 - 1.375rem); top: 1.3rem; bottom: auto; width: auto; height: 2px; }
  .steps::after { transform-origin: left; transform: scaleX(var(--p)); }
  .steps li { padding-left: 0; padding-top: 4.25rem; }
}

/* ---------- The firm ---------- */

.firm-band { border-top: 1px solid var(--line); }
.eyebrow-h { margin: 0 0 1.5rem; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); }
.firm-statement { margin: 0 0 clamp(2rem, 4vw, 3rem); max-width: 34ch; font-family: var(--font-name); font-size: clamp(1.6rem, 2.9vw, 2.9rem); font-weight: 400; line-height: 1.22; letter-spacing: -0.012em; color: var(--navy); text-wrap: balance; }
.firm-more { max-width: 44rem; font-size: 1.2rem; margin-top: -1.5rem; margin-bottom: 2.5rem; }
.facts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0 2rem; margin: 0 0 2rem; border-top: 1px solid var(--line); }
.facts-row > div { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.facts-row dt { font-size: 0.875rem; color: var(--muted); }
.facts-row dd { margin: 0.25rem 0 0; font-family: var(--font-name); font-size: 1.45rem; font-weight: 500; color: var(--navy); font-variant-numeric: tabular-nums; }
.links-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; font-size: 1rem !important; }
.firm-grid { display: grid; gap: 2.5rem; }
.fact-grid { display: grid; gap: 1rem; margin: 0; }
.fact-grid > div { padding: 1.4rem 1.5rem; border-radius: var(--radius); background: var(--panel-soft); border: 1px solid var(--line); }
.fact-grid dt { font-size: 0.875rem; color: var(--muted); }
.fact-grid dd { margin: 0.3rem 0 0; font-family: var(--font-head); font-size: 1.3rem; font-weight: 500; color: var(--navy); font-variant-numeric: tabular-nums; }
@media (min-width: 40rem) { .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Updates ---------- */

.u-grid { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .u-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 80rem) { .u-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.u-card {
  position: relative; display: flex; flex-direction: column; gap: 0.6rem; padding: 1.6rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.u-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow); border-color: rgba(194, 162, 77, 0.7); }
.u-card h3, .u-card h2 { font-size: 1.3rem; line-height: 1.25; }
.u-card h3 a, .u-card h2 a { color: var(--navy); text-decoration: none; }
.u-card h3 a::after, .u-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.u-card h3 a:hover, .u-card h2 a:hover { text-decoration: underline; }
.u-card .text-link { position: relative; z-index: 1; margin-top: auto; padding-top: 0.5rem; }
.u-sum { margin: 0; color: var(--muted); }
.note-body { color: var(--ink); font-size: 0.975rem; }
.note-body p:last-child { margin-bottom: 0; }
.u-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: var(--radius) var(--radius) 0 0; background: var(--type-c, var(--gold)); }
.u-card[data-type="article"] { --type-c: var(--gold); }
.u-card[data-type="note"] { --type-c: var(--navy-mid); }
.u-card[data-type="video"] { --type-c: var(--navy); }
.u-card[data-type="reel"] { --type-c: var(--gold-deep); }
.u-card[data-type="download"] { --type-c: #5B6779; }
.u-play { display: grid; place-items: center; aspect-ratio: 16 / 9; margin: 0.25rem 0 0.5rem; border-radius: 12px; color: var(--white); background: radial-gradient(400px 200px at 50% 40%, #20396A, var(--navy)); }
.u-play span { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--gold); color: var(--navy-deep); transition: transform 0.3s var(--ease); }
.u-play svg { margin-left: 3px; }
.u-card:hover .u-play span { transform: scale(1.08); }
@media (min-width: 48rem) { .u-grid:not(.home) .u-card.featured { grid-column: span 2; padding: clamp(1.75rem, 3vw, 2.5rem); } .u-grid:not(.home) .u-card.featured h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-family: var(--font-name); font-weight: 500; } .u-grid:not(.home) .u-card.featured .u-sum { font-size: 1.1rem; } }
.update-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; font-size: 0.85rem; color: var(--muted); }
.type { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.6rem 0.15rem 0.45rem; border-radius: 999px; background: var(--panel); color: var(--navy); font-weight: 600; font-size: 0.8rem; }
.type svg { width: 14px; height: 14px; stroke-width: 2; }
.u-tools { display: grid; gap: 1rem; margin-bottom: 1.75rem; }
.search label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--navy); margin-bottom: 0.35rem; }
.search input { width: 100%; min-height: 48px; padding: 0.7rem 1rem; border: 1px solid var(--line); border-radius: 999px; font: inherit; color: var(--ink); background: var(--white); }
.search input:focus { outline: 3px solid var(--navy-mid); outline-offset: 2px; border-color: var(--navy-mid); }
@media (min-width: 64rem) { .u-tools { grid-template-columns: 1fr 24rem; align-items: end; position: sticky; top: 4.4rem; z-index: 5; padding: 0.9rem 0; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); } }

.video { position: relative; aspect-ratio: 16 / 9; margin: 1.5rem 0 0.75rem; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0.75rem; width: 100%;
  border: 0; cursor: pointer; color: var(--white); text-align: center; padding: 1.5rem;
  background: radial-gradient(600px 300px at 50% 40%, #20396A, var(--navy));
}
.vp-icon { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--gold); color: var(--navy-deep); transition: transform 0.3s var(--ease); }
.vp-icon svg { width: 28px; height: 28px; margin-left: 4px; }
.video-play:hover .vp-icon { transform: scale(1.08); }
.vp-title { font-family: var(--font-head); font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; max-width: 32ch; }
.vp-note { font-size: 0.85rem; color: var(--on-navy); }

.hours { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours th, .hours td { text-align: left; padding: 0.45rem 0; border-top: 1px solid var(--line); vertical-align: top; }
.hours th { font-weight: 400; color: var(--muted); padding-right: 1rem; }
.hours td { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Interior content ---------- */

.register { margin: 0 0 1.5rem; border-top: 1px solid var(--line); }
.register > div { display: grid; grid-template-columns: 1fr; gap: 0.1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.register dt { color: var(--muted); font-size: 0.925rem; }
.register dd { margin: 0; color: var(--ink); }
.register.panel { background: var(--panel-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.5rem 1.5rem; }
.register.panel > div:last-child { border-bottom: 0; }
.register.panel dt { color: var(--navy-mid); }
.register.compact > div { padding: 0.55rem 0; }
@media (min-width: 40rem) { .register > div { grid-template-columns: 12rem 1fr; gap: 1rem; } .register.compact > div { grid-template-columns: 10rem 1fr; } }

.two-col { display: grid; gap: 2.5rem; }
.prose-col p { font-size: 1.15rem; max-width: 40rem; }
@media (min-width: 64rem) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 7rem); } }

.tag { display: inline-block; font-size: 0.78rem; font-weight: 600; line-height: 1.4; padding: 0.1rem 0.55rem; border-radius: 999px; background: var(--panel); color: var(--navy-mid); white-space: nowrap; }
.tag.draft { background: var(--near-bg); color: var(--near); }
.empty { background: var(--panel-soft); padding: 1.1rem 1.25rem; border-left: 3px solid var(--navy); border-radius: 0 10px 10px 0; color: var(--ink); }
.draft-banner { background: var(--near-bg); color: var(--near); padding: 0.75rem 1rem; border-left: 3px solid var(--gold-deep); border-radius: 0 10px 10px 0; font-size: 0.95rem; }
.note { font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2.5rem; }

.reveal { border-bottom: 1px solid var(--line); }
.reveal summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 0; min-height: 44px; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--navy);
}
.reveal summary::-webkit-details-marker { display: none; }
.reveal summary::after {
  content: "+"; flex: none; width: 2rem; height: 2rem; display: grid; place-items: center;
  border: 1px solid var(--gold-deep); border-radius: 50%; color: var(--gold-text);
  font-family: var(--font-body); font-weight: 500; font-size: 1.15rem; line-height: 1; transition: background-color 0.2s, color 0.2s;
}
.reveal[open] summary::after { content: "\2212"; background: var(--navy); border-color: var(--navy); color: var(--white); }
.reveal-body { margin: 0 0 1.25rem; animation: fadeUp 0.35s var(--ease); }

/* Team */
.team-group + .team-group { margin-top: 3.5rem; }
.team-group h2 { font-size: 1.6rem; margin-bottom: 1.25rem; }
.people { display: grid; gap: 1.25rem; }
@media (min-width: 56rem) { .people { grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr)); } }
.person { display: grid; gap: 1.5rem; padding: 1.75rem; border: 1px solid var(--line); border-radius: 20px; background: var(--white); transition: box-shadow 0.4s var(--ease), border-color 0.3s; }
.person:hover { box-shadow: var(--shadow); border-color: rgba(194, 162, 77, 0.6); }
.person .photo { width: 120px; height: 150px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.person .photo.blank { display: grid; place-items: center; color: #9AA8BF; background: var(--panel-soft); }
.person .photo.blank svg { width: 56px; height: 56px; }
.person-name { font-size: 1.6rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.6rem; }
.q { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: var(--gold-text); padding: 0.15rem 0.55rem; border: 1px solid var(--gold); border-radius: 999px; }
.person-role { margin: 0.3rem 0 0; color: var(--muted); font-weight: 500; }
.person .register { margin: 1rem 0 0; }
.person .reveal { border-bottom: 0; }
@media (min-width: 30rem) { .person { grid-template-columns: 120px minmax(0, 1fr); } }

/* Contact page */
/* Articles */
.lede-dark { font-size: 1.2rem; color: var(--navy); }
.prose { margin-top: 1rem; }
.prose h2 { font-size: 1.45rem; margin: 2.25rem 0 0.6rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--gold-deep); }

/* Disclaimer page */
.gate-points { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.gate-points li { margin-bottom: 0.6rem; padding-left: 0.25rem; }
.gate-points li::marker { color: var(--gold-deep); }
.gate-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.gate-actions .muted { margin: 0; font-size: 0.925rem; }

/* ---------- Disclaimer pop-up ---------- */

.gate-pending body > *:not(dialog) { filter: blur(10px); pointer-events: none; user-select: none; }
.gate-modal { border: 0; padding: 0; background: transparent; max-width: min(42rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); width: 100%; overflow: visible; }
.gate-modal::backdrop { background: rgba(8, 18, 33, 0.55); }
.gate-card {
  max-height: calc(100vh - 2rem); overflow-y: auto; padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--white); border-radius: 20px; border-top: 6px solid var(--gold); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6);
}
.gate-card ul, .gate-card p { font-size: 0.95rem; }
@media (max-width: 40rem) { .gate-card { padding: 1.4rem 1.25rem; } .gate-card ul, .gate-card p { font-size: 0.9rem; line-height: 1.55; } .gate-points li { margin-bottom: 0.4rem; } }
.gate-firm { margin: 0 0 1rem; font-family: var(--font-name); font-weight: 500; color: var(--navy); }
.gate-firm span { display: block; font-weight: 400; font-size: 0.9rem; color: var(--navy-mid); }
.gate-card h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 0.75rem; }
.gate-closing { color: var(--muted); }
.motion .gate-modal[open] .gate-card { animation: pop 0.45s var(--ease); }
.motion .gate-modal.closing .gate-card { animation: pop-out 0.22s ease-in forwards; }
.motion .gate-modal[open]::backdrop { animation: fade 0.4s ease; }

/* ---------- Due dates ---------- */

.due-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.due-list .due { border-bottom: 1px solid var(--line); }
.due-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.25rem 1rem; align-items: center; padding: 0.9rem 0; color: inherit; text-decoration: none; cursor: pointer; list-style: none; }
.due-row::-webkit-details-marker { display: none; }
.due-row:hover .due-title { color: var(--navy-mid); text-decoration: underline; }
.due-date { grid-row: span 2; display: grid; justify-items: center; align-content: center; width: 3.25rem; height: 3.25rem; border-radius: 12px; background: var(--panel); color: var(--navy); line-height: 1; transition: background-color 0.25s, color 0.25s; }
.due-day { font-family: var(--font-head); font-weight: 600; font-size: 1.375rem; font-variant-numeric: tabular-nums; }
.due-mon { font-size: 0.75rem; font-weight: 600; margin-top: 0.15rem; color: var(--navy-mid); }
.due-main { display: grid; min-width: 0; }
.due-title { font-weight: 600; color: var(--navy); line-height: 1.35; }
.due-period { font-size: 0.875rem; color: var(--muted); }
.due-side { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.due-ring { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; }
.due-ring .r-bg { stroke: var(--line); }
.due-ring .r-fg { stroke: var(--navy-mid); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--fill, 0) * 100); transition: stroke-dashoffset 1.1s var(--ease) 0.2s; }
.due-ring.is-near .r-fg { stroke: var(--gold-deep); }
.due-ring.is-soon .r-fg { stroke: var(--soon); }
.due-ring.is-past { opacity: 0.4; }
.due-left { font-size: 0.8rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.due-left.is-near { color: var(--near); background: var(--near-bg); padding: 0.1rem 0.55rem; border-radius: 999px; }
.due-left.is-soon { color: var(--soon); background: var(--soon-bg); padding: 0.1rem 0.55rem; border-radius: 999px; }
.due.past .due-date { background: var(--panel-soft); color: var(--muted); }
details.due[open] .due-row .due-date { background: var(--navy); color: var(--white); }
details.due[open] .due-row .due-mon { color: var(--gold-light); }
.due-body { padding: 0 0 1.25rem 4.25rem; animation: fadeUp 0.35s var(--ease); }
.due-body .register { margin-bottom: 0.75rem; }
.due-link { font-size: 0.95rem; }
.due-anchor { scroll-margin-top: 5rem; }
.reviewed { display: grid; gap: 0.25rem; margin: 0 0 1.5rem; padding: 1rem 1.25rem; background: var(--panel-soft); border-left: 3px solid var(--gold-deep); border-radius: 0 10px 10px 0; }
.reviewed p { margin: 0; font-size: 0.95rem; }
.reviewed-date { font-size: 1rem !important; color: var(--navy); }
.filters-wrap { margin-bottom: 1rem; }
.filter-label { margin: 1rem 0 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter { font: 500 0.9rem var(--font-body); min-height: 40px; padding: 0.4rem 0.95rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy); cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.filter:hover { border-color: var(--navy-mid); }
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.past-toggle { margin-left: auto; }
.month h3 { margin: 2.25rem 0 0.5rem; font-family: var(--font-body); font-size: 1.1rem; font-weight: 600; color: var(--navy-mid); }
.cal-h { margin: 2.75rem 0 0.25rem; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
@media (min-width: 40rem) {
  .due-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .due-date { grid-row: auto; width: 3.5rem; height: 3.5rem; }
  .due-side { justify-content: flex-end; }
  .due-body { padding-left: 4.5rem; }
}

/* Careers */
.vacancies { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.vacancies li { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.vacancies h2 { font-size: 1.4rem; margin-bottom: 0.75rem; }

/* ---------- Footer: closing contact section on every page ---------- */

.site-footer { background: var(--navy-deep); color: var(--on-navy); font-size: 0.95rem; }
.site-footer a { color: var(--white); text-decoration-color: rgba(194, 162, 77, 0.7); }
.site-footer a:hover { color: var(--gold-light); }
.site-footer :focus-visible { outline-color: var(--gold-light); }
/* Contact block: dark at the foot of pages, light on the Contact page */
.cb { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.cb-title { margin: 0 0 clamp(2rem, 4vw, 3rem); font-size: clamp(2.4rem, 5vw, 5rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.04em; }
.cb-rows { display: grid; gap: 1.6rem 2.5rem; }
.cb-rows > .cb-row:first-child, .cb-rows > .cb-row:last-child { grid-column: 1 / -1; }
.cb-label .ico { width: 1rem; height: 1rem; }
.cb-label { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.4rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.cb-big { margin: 0; font-family: var(--font-head); font-size: clamp(1.15rem, 1.5vw, 1.45rem); line-height: 1.4; overflow-wrap: anywhere; }
.cb-big a { text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.cb .hours { font-size: 0.975rem; max-width: 26rem; }
.open-tag { padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.7rem; letter-spacing: 0.04em; text-transform: none; font-weight: 600; }
.cb-query { padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--radius); scroll-margin-top: 6rem; }
.cb-qh, .apply h2 { font-size: clamp(1.4rem, 2vw, 1.8rem); margin-bottom: 0.5rem; }
.cb-note { font-size: 0.95rem; margin: 0 0 1.25rem; }
.cb-hint { font-size: 0.85rem; margin: 0.25rem 0 1rem; }
.field { display: grid; gap: 0.35rem; margin-bottom: 0.9rem; min-width: 0; }
.field label { font-size: 0.875rem; font-weight: 600; }
.field .opt { font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 0.65rem 0.85rem; border-radius: 12px; font: inherit; font-size: 1rem; }
.field textarea { resize: vertical; min-height: 6.5rem; }
.field-row { display: grid; gap: 0 0.9rem; }
.form-error { margin: 0 0 1rem; font-size: 0.9rem; font-weight: 600; }
@media (min-width: 40rem) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cb-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .cb { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: start; } }

.cb-light .cb-label { color: var(--gold-text); }
.cb-light .cb-big { color: var(--navy); }
.cb-light .open-tag { background: var(--panel); color: var(--navy); }
.cb-light .open-tag.is-open { background: var(--navy); color: var(--white); }
.cb-light .cb-query, .apply { background: var(--panel-soft); border: 1px solid var(--line); color: var(--ink); }
.cb-light .cb-note, .cb-light .cb-hint, .apply .cb-note, .apply .cb-hint { color: var(--muted); }
.cb-light .field input, .cb-light .field select, .cb-light .field textarea, .apply input, .apply select, .apply textarea { background: var(--white); border: 1px solid #7A8699; color: var(--ink); }
.cb-light .field :focus-visible, .apply :focus-visible { outline: 3px solid var(--navy-mid); outline-offset: 1px; }
.cb-light .form-error, .apply .form-error { color: var(--soon); }
.apply { margin-top: 2.5rem; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--radius); max-width: 46rem; }
.mailto-form { display: none; }
.js .mailto-form { display: block; }

.foot-row { display: grid; gap: 1.25rem 3rem; padding-top: 2.25rem; padding-bottom: 1.5rem; }
.footer-firm { margin: 0; font-family: var(--font-name); font-weight: 500; font-size: 1.25rem; color: var(--white); line-height: 1.25; }
.footer-firm span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.85rem; color: var(--on-navy); }
.foot-links { display: grid; gap: 0.6rem; }
.foot-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1.4rem; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-bottom: 1.5rem; color: #AEBBD0; font-size: 0.85rem; }
.footer-base p { margin: 0; }
.footer-base::before { content: ""; flex-basis: 100%; height: 1px; background: rgba(255, 255, 255, 0.12); margin-bottom: 0.75rem; }
@media (min-width: 64rem) { .foot-row { grid-template-columns: auto minmax(0, 1fr); align-items: center; } .foot-links { justify-items: end; } .foot-links ul { justify-content: flex-end; } }

/* Contact strip above the footer */
.contact-strip { background: var(--panel-soft); border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem); }
.cs-grid { display: grid; gap: 2rem; }
.cs-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.cs-head h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.cs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem 2rem; }
.cs-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.85rem; align-items: start; }
.cs-list li > .ico { width: 2.5rem; height: 2.5rem; padding: 0.6rem; border-radius: 10px; background: var(--white); border: 1px solid var(--line); color: var(--navy); }
.cs-list p { margin: 0; color: var(--ink); }
.cs-label { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.25rem !important; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text) !important; }
.cs-big { font-size: 1.15rem; font-weight: 500; overflow-wrap: anywhere; }
.cs-list .hours { font-size: 0.925rem; }
.contact-strip .open-tag { background: var(--panel); color: var(--navy); letter-spacing: 0.02em; }
.contact-strip .open-tag.is-open { background: var(--navy); color: var(--white); }
@media (min-width: 48rem) { .cs-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 80rem) { .cs-list { grid-template-columns: 1.55fr 0.8fr 1.1fr 1.45fr; } }

/* ---------- Motion ---------- */

@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes pop-out { to { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px) scale(0.99); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes drift1 { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(9vw, 6vh, 0) scale(1.12); } }
@keyframes drift2 { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-8vw, 10vh, 0) scale(0.9); } }
@keyframes drift3 { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-10vw, -6vh, 0); } }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

.motion .g1 { animation: drift1 24s ease-in-out infinite alternate; }
.motion .g2 { animation: drift2 30s ease-in-out infinite alternate; }
.motion .g3 { animation: drift3 34s ease-in-out infinite alternate; }
.motion .cue-line::after { animation: cue 2.4s var(--ease) infinite; }
.wd { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.wd > span { display: inline-block; }
.h-name .wd { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.h-name .wd > span { display: inline-block; }
@keyframes wordUp { from { transform: translateY(108%); } to { transform: none; } }
.motion .h-name .wd > span { animation: wordUp 1.05s var(--ease) both; animation-delay: calc(0.1s + var(--w, 0) * 0.09s); }
.spot { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s var(--ease); background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 40%), rgba(221, 194, 116, 0.11), rgba(221, 194, 116, 0) 62%); }
.hero.lit .spot { opacity: 1; }

/* Line icons draw themselves as their section comes into view */
.motion [data-reveal] .ico *, .motion .steps .ico *, .motion .story-ico .ico * { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease) 0.25s; }
.motion [data-reveal]:not(.in) .ico * { stroke-dashoffset: 1; }
.motion .steps li:not(.lit) .ico * { stroke-dashoffset: 1; }
@media (min-width: 64rem) { .motion .story-item:not(.is-active) .story-ico .ico * { stroke-dashoffset: 1; transition-duration: 0s; transition-delay: 0s; } }

/* Reading progress on articles */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.motion .h-rule { animation: draw 1.2s 0.45s var(--ease) both; }
.motion .h-suffix { animation: rise 1.1s 0.55s var(--ease) both; }
.motion .hero-lede, .motion .hero-services { animation: rise 1.1s 0.7s var(--ease) both; }
.motion .hero-actions { animation: rise 1.1s 0.8s var(--ease) both; }
.motion .hero-foot > * { animation: fade 1.2s 1.2s var(--ease) both; }
.motion .page-hero h1 .wd > span { animation: wordUp 0.95s var(--ease) both; animation-delay: calc(0.05s + var(--w, 0) * 0.06s); }
.motion .ph-rule { animation: draw 1.1s 0.35s var(--ease) both; }
.motion .page-hero .lede, .motion .ph-meta, .motion .ph-toc { animation: rise 0.9s 0.3s var(--ease) both; }
.motion .crumbs { animation: fade 0.8s var(--ease) both; }
.gate-pending.motion .hero *, .gate-pending.motion .page-hero * { animation-play-state: paused !important; }

.motion [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.motion [data-reveal].in { opacity: 1; transform: none; }
.motion .u-card[data-reveal].in { transition: opacity 0.8s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s; }
.motion .u-card[data-reveal].in:hover { transform: translateY(-4px); transition-delay: 0s; }

@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.28s; animation-timing-function: var(--ease); }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .skip, .mailto-form, .filters, .filters-wrap, .u-tools, .gate-modal, .hero-actions, .hero-foot, .hero-bg, .story-index, .story-progress, .finder-band { display: none !important; }
  .hero { min-height: 0; }
  .story { height: auto !important; }
  .story-pin { position: static !important; height: auto !important; }
  .story-item { opacity: 1 !important; filter: none !important; transform: none !important; grid-area: auto !important; }
  .hero, .page-hero, .u-card.featured { background: none !important; color: var(--ink) !important; }
  .hero h1, .hero h1 span, .page-hero h1, .cb-title, .cb-big, .u-card.featured h3 { color: var(--ink) !important; }
  .svc-panel[hidden] { display: block !important; }
  .site-footer { background: none; color: var(--ink); }
  .site-footer a { color: var(--ink); }
  details > * { display: block; }
  .gate-pending body > *:not(dialog) { filter: none; }
}

/* ---------- Tools ---------- */

.tools-band { background: var(--panel-soft); border-top: 1px solid var(--line); }
.tool-grid { display: grid; gap: 1rem; }
.tool-card {
  position: relative; display: grid; align-content: start; gap: 0.6rem; padding: clamp(1.4rem, 2.6vw, 2rem);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); text-decoration: none;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.tool-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--card-shadow); border-color: rgba(194, 162, 77, 0.7); }
.tool-card:hover .arrow { transform: translateX(4px); }
.tool-ico { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 0.4rem; border-radius: 12px; background: var(--navy); color: var(--gold-light); }
.tool-ico .ico { width: 1.5rem; height: 1.5rem; }
.tool-title { font-family: var(--font-name); font-size: clamp(1.35rem, 2vw, 1.6rem); font-weight: 500; line-height: 1.2; color: var(--navy); }
.tool-text { color: var(--muted); max-width: 40rem; }
.tool-go { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.3rem; font-weight: 600; color: var(--navy-mid); }
@media (min-width: 48rem) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.motion .tool-card[data-reveal].in { transition: opacity 0.8s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s; }

.portals { margin-top: clamp(3rem, 6vw, 4.5rem); scroll-margin-top: 6rem; }
.portal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.portal-list a { display: grid; gap: 0.25rem; height: 100%; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); text-decoration: none; transition: border-color 0.3s, background-color 0.3s; }
.portal-list a:hover { border-color: var(--navy-mid); background: var(--panel-soft); color: var(--ink); }
.portal-name { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; font-weight: 600; color: var(--navy); }
.portal-out { width: 1rem; height: 1rem; color: var(--muted); }
.portal-note { font-size: 0.925rem; color: var(--muted); }
.portal-host { font-size: 0.8rem; font-weight: 500; color: var(--gold-text); }
@media (min-width: 48rem) { .portal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 80rem) { .portal-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tool-finder { padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: 0; }
.finder-cal { margin: 1.1rem 0 0; }
.finder-cal .button { gap: 0.5rem; }
.finder-cal .ico { width: 1.1rem; height: 1.1rem; }
.cal-content { padding-top: clamp(2rem, 4vw, 3rem); }
@media print { .read-progress, .finder-band { display: none !important; } }

/* ---------- About ---------- */

.about-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.about-main .prose-col p { font-size: 1.15rem; max-width: 42rem; }
.mini-h { margin: 2.25rem 0 1rem; font-size: clamp(1.4rem, 2vw, 1.75rem); }
.area-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.area-chips a { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.6rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy); font-weight: 500; text-decoration: none; transition: border-color 0.25s, background-color 0.25s, transform 0.3s var(--ease); }
.area-chips a:hover { border-color: var(--gold); background: var(--panel-soft); color: var(--navy); transform: translateY(-2px); }
.area-chips .ico { width: 1.1rem; height: 1.1rem; color: var(--gold-text); }
.particulars { align-self: start; padding: clamp(1.4rem, 2.6vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-soft); }
.particulars h2 { font-size: clamp(1.35rem, 2vw, 1.6rem); margin-bottom: 1rem; }
.particulars dl { margin: 0; }
.particulars dl > div { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: 0.75rem; padding: 0.85rem 0; border-top: 1px solid var(--line); }
.particulars .ico { grid-row: span 2; width: 2.25rem; height: 2.25rem; padding: 0.5rem; border-radius: 10px; background: var(--white); border: 1px solid var(--line); color: var(--navy); }
.particulars dt { font-size: 0.82rem; color: var(--muted); }
.particulars dd { margin: 0.1rem 0 0; color: var(--ink); overflow-wrap: anywhere; }
.about-steps { background: var(--panel-soft); border-top: 1px solid var(--line); }
@media (min-width: 64rem) { .about-grid { grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr); } .particulars { position: sticky; top: 6rem; } }

/* ---------- Services (one long page) ---------- */

.svc-long { display: grid; gap: 2rem; }
.svc-long > * { min-width: 0; }
.svc-nav { position: sticky; top: 4.1rem; z-index: 5; margin: 0 calc(-1 * var(--gutter)); padding: 0.6rem var(--gutter); background: rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.svc-nav ul { display: flex; gap: 0.4rem; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.svc-nav ul::-webkit-scrollbar { display: none; }
.svc-nav a { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.85rem; border-radius: 999px; white-space: nowrap; font-size: 0.925rem; font-weight: 500; color: var(--navy); text-decoration: none; transition: background-color 0.25s, color 0.25s; }
.svc-nav a .ico { width: 1.05rem; height: 1.05rem; color: var(--gold-text); }
.svc-nav a:hover { background: var(--panel-soft); color: var(--navy); }
.svc-nav a[aria-current="true"] { background: var(--navy); color: var(--white); }
.svc-nav a[aria-current="true"] .ico { color: var(--gold-light); }
.svc-sections { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); min-width: 0; }
.svc-sec { position: relative; scroll-margin-top: 8rem; padding: clamp(1.5rem, 3.2vw, 2.75rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.svc-sec.reserved { background: var(--panel-soft); }
.svc-sec-head { display: flex; align-items: center; gap: 1rem; }
.svc-sec-ico { display: grid; place-items: center; flex: none; width: 3.25rem; height: 3.25rem; border-radius: 14px; background: var(--navy); color: var(--gold-light); }
.svc-sec-ico .ico { width: 1.6rem; height: 1.6rem; }
.svc-sec-n { margin: 0 0 0.15rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; color: var(--gold-text); font-variant-numeric: tabular-nums; }
.svc-sec-n span { color: var(--muted); font-weight: 500; }
.svc-sec h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.svc-sec-desc { margin: 1rem 0 1.25rem; font-size: 1.075rem; color: var(--muted); max-width: 46rem; }
.svc-items.two { gap: 0.6rem 2rem; }
.svc-sec-cta { margin: 1.25rem 0 0; }
.svc-sec-cta .button { gap: 0.5rem; }
.svc-sec-cta .ico { width: 1.1rem; height: 1.1rem; }
@media (min-width: 56rem) { .svc-items.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) {
  .svc-long { grid-template-columns: 17rem minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
  .svc-nav { top: 6rem; margin: 0; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; }
  .svc-nav ul { flex-direction: column; overflow: visible; gap: 0.25rem; }
  .svc-nav a { display: flex; white-space: normal; padding: 0.7rem 0.9rem; border-radius: 12px; font-size: 0.975rem; }
  .svc-sec { scroll-margin-top: 6rem; }
}

/* ---------- Due dates: month chips, filters kept in view ---------- */

.month-jump { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0 1.25rem; }
.month-jump a { padding: 0.3rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--navy); text-decoration: none; transition: background-color 0.2s, border-color 0.2s; }
.month-jump a span { font-weight: 400; color: var(--muted); }
.month-jump a:hover { background: var(--panel-soft); border-color: var(--navy-mid); }
.month { scroll-margin-top: 7rem; }
@media (min-width: 64rem) { .filters-wrap { position: sticky; top: 4.4rem; z-index: 5; padding: 0.75rem 0 1rem; background: rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); } .month { scroll-margin-top: 14rem; } }

/* ---------- Article ---------- */

.article-grid { display: grid; gap: 2.5rem; }
.article { min-width: 0; max-width: 46rem; }
.article .prose h2 { scroll-margin-top: 6rem; }
.article-aside { display: grid; gap: 1rem; align-content: start; }
.aside-card { padding: 1.25rem 1.35rem; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-soft); }
.aside-h { margin: 0 0 0.6rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); }
.aside-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; }
.aside-card ul a { color: var(--navy); text-decoration: none; font-size: 0.95rem; }
.aside-card ul a:hover { text-decoration: underline; }
.aside-src { display: flex; align-items: center; gap: 0.55rem; color: var(--navy); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.aside-src .ico { width: 1.15rem; height: 1.15rem; color: var(--gold-text); flex: none; }
.aside-src .aside-out { width: 0.95rem; height: 0.95rem; color: var(--muted); margin-left: auto; }
.related { background: var(--panel-soft); border-top: 1px solid var(--line); }
@media (min-width: 64rem) { .article-grid { grid-template-columns: minmax(0, 46rem) 18rem; justify-content: space-between; gap: 3rem; } .article-aside { position: sticky; top: 6rem; } }

/* ---------- Careers ---------- */

.careers-grid { display: grid; gap: 2.5rem; }
.careers-main { min-width: 0; max-width: 48rem; }
.careers-aside { align-self: start; padding: clamp(1.4rem, 2.6vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-soft); }
.careers-aside h2 { font-size: clamp(1.3rem, 2vw, 1.55rem); margin-bottom: 1rem; }
.area-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.area-list li { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.85rem; border-radius: 12px; background: var(--white); border: 1px solid var(--line); color: var(--navy); font-weight: 500; }
.area-list .ico { width: 1.2rem; height: 1.2rem; color: var(--gold-text); flex: none; }
.step-set { margin: 0 0 1rem; padding: 1.1rem 1.1rem 0.4rem; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.step-set legend { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0 0.4rem; font-weight: 600; color: var(--navy); }
.step-num { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--navy); color: var(--white); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
@media (min-width: 64rem) { .careers-grid { grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(2.5rem, 5vw, 4rem); } .careers-aside { position: sticky; top: 6rem; } }

/* ---------- Contact page: four cards beside the query form ---------- */

.cb-light .cb-rows { grid-template-columns: 1fr; gap: 0.9rem; }
.cb-light .cb-rows > .cb-row { grid-column: auto; padding: 1.2rem 1.35rem; border: 1px solid var(--line); border-radius: 14px; background: var(--white); transition: border-color 0.3s, transform 0.4s var(--ease); }
.cb-light .cb-rows > .cb-row:hover { border-color: rgba(194, 162, 77, 0.7); transform: translateY(-2px); }
.cb-light .cb-label .ico { width: 1.15rem; height: 1.15rem; padding: 0; }
.cb-light .cb-big { font-size: clamp(1.1rem, 1.4vw, 1.3rem); }
@media (min-width: 40rem) { .cb-light .cb-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cb-light .cb-rows > .cb-row:first-child, .cb-light .cb-rows > .cb-row:last-child { grid-column: 1 / -1; } }
@media (min-width: 64rem) { .cb-light { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); } }
.cs-big a, .cb-big a[href^="tel:"] { white-space: nowrap; }

/* ---------- Privacy (document layout) and not-found ---------- */

.doc-grid { display: grid; gap: 2rem; }
.doc-toc { align-self: start; padding: 1.25rem 1.35rem; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-soft); }
.doc-toc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.2rem; }
.doc-toc a { display: block; padding: 0.35rem 0.6rem; border-radius: 8px; font-size: 0.925rem; color: var(--navy); text-decoration: none; }
.doc-toc a:hover { background: var(--white); }
.doc-toc a[aria-current="true"] { background: var(--navy); color: var(--white); }
.doc-body { min-width: 0; max-width: 46rem; margin-top: 0; }
.doc-body h2 { scroll-margin-top: 6rem; }
.doc-body h2:first-child { margin-top: 0; }
@media (min-width: 64rem) { .doc-grid { grid-template-columns: 17rem minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4rem); } .doc-toc { position: sticky; top: 6rem; } }
.doc { max-width: 48rem; }
.nf-lede { font-size: 1.15rem; color: var(--muted); }
@media (min-width: 64rem) { .nf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- v9: search, page progress, nav underline, action bar, print ---------- */

/* Search button in the header */
.search-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 0.8rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy); cursor: pointer;
  font: 500 0.9rem var(--font-body); transition: border-color 0.25s, background-color 0.25s, color 0.25s;
}
.search-btn:hover { border-color: var(--navy-mid); background: var(--panel-soft); }
.search-btn .ico { width: 1.1rem; height: 1.1rem; }
.search-btn-text, .search-kbd { display: none; }
.search-kbd, .search-close kbd {
  padding: 0.1rem 0.4rem; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-soft);
  font: 500 0.72rem var(--font-body); color: var(--muted);
}
@media (min-width: 64rem) { .search-btn { padding: 0 0.6rem 0 0.85rem; } .search-btn-text, .search-kbd { display: inline; } }
@media (min-width: 64rem) and (max-width: 79.99rem) { .search-kbd { display: none; } .search-btn-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .search-btn { padding: 0 0.8rem; } }
@media (max-width: 25rem) { .search-btn { padding: 0; } }
.js .page-home .site-header:not(.solid) .search-btn { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.js .page-home .site-header:not(.solid) .search-btn:hover { background: rgba(255, 255, 255, 0.1); }
.js .page-home .site-header:not(.solid) .search-kbd { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); color: #DCE3EE; }

/* Search dialog */
.search-dlg {
  width: min(42rem, calc(100vw - 2rem)); max-height: min(36rem, calc(100vh - 4rem)); margin: 10vh auto auto; padding: 0;
  border: 1px solid var(--line); border-radius: 18px; background: var(--white); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(8, 18, 33, 0.55);
  overflow: hidden; display: none; flex-direction: column;
}
.search-dlg[open] { display: flex; }
.search-dlg::backdrop { background: rgba(8, 18, 33, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.motion .search-dlg[open] { animation: searchIn 0.35s var(--ease); }
.motion .search-dlg[open]::backdrop { animation: fadeIn 0.3s ease; }
@keyframes searchIn { from { opacity: 0; transform: translateY(-10px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.search-box { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0.9rem 0.75rem 1.1rem; border-bottom: 1px solid var(--line); }
.search-field { flex: 1; display: flex; align-items: center; gap: 0.7rem; color: var(--navy-mid); }
.search-field .ico { width: 1.25rem; height: 1.25rem; flex: none; }
.search-field input { flex: 1; min-width: 0; min-height: 44px; border: 0; outline: 0; background: none; font: 400 1.1rem var(--font-body); color: var(--ink); }
.search-field input::placeholder { color: var(--muted); }
.search-field:focus-within { color: var(--navy); }
.search-box:focus-within { box-shadow: inset 0 -2px 0 var(--gold); }
.search-close { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 40px; padding: 0 0.7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy); font: 500 0.85rem var(--font-body); cursor: pointer; }
.search-close:hover { background: var(--panel-soft); }
.search-status { margin: 0; padding: 0.7rem 1.2rem 0; font-size: 0.85rem; color: var(--muted); }
.search-status:empty { display: none; }
.search-results { list-style: none; margin: 0; padding: 0.5rem; overflow-y: auto; overscroll-behavior: contain; }
.search-results > li + li { border-top: 1px solid var(--panel); }
.sr-page { display: grid; gap: 0.2rem; padding: 0.75rem 0.8rem; border-radius: 12px; text-decoration: none; color: var(--ink); }
.sr-t { font-family: var(--font-name); font-size: 1.1rem; font-weight: 500; color: var(--navy); }
.sr-d { font-size: 0.875rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-heads { list-style: none; margin: -0.3rem 0 0.5rem; padding: 0 0.8rem 0 1.6rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.sr-heads a { display: inline-block; padding: 0.3rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; color: var(--navy); text-decoration: none; }
.search-results a:hover, .search-results a:focus-visible { background: var(--panel-soft); color: var(--navy); outline: 2px solid var(--gold); outline-offset: -2px; }
.search-foot { display: none; align-items: center; gap: 0.45rem; margin: 0; padding: 0.6rem 1.2rem; border-top: 1px solid var(--line); background: var(--panel-soft); font-size: 0.8rem; color: var(--muted); }
.search-foot .ico { width: 0.95rem; height: 0.95rem; }
@media (min-width: 48rem) and (hover: hover) { .search-foot { display: flex; } }
.search-on .to-top { opacity: 0 !important; }

/* Page progress: a thin gold line under the header on every page */
.read-progress { z-index: 60; height: 2px; }
.read-progress span { background: linear-gradient(90deg, var(--gold-deep, #9C7F2D), var(--gold), var(--gold-light)); }

/* Main menu: a gold line slides in under the hovered and current page */
@media (min-width: 64rem) {
  .nav-link::after {
    content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.3rem; height: 2px; border-radius: 2px;
    background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
  }
  .nav-link:hover::after, .nav-link[aria-current="page"]::after, .nav-link.is-active::after { transform: scaleX(1); }
  .nav-link[aria-current="page"], .nav-link.is-active { background: none; color: var(--navy); font-weight: 600; }
  .js .page-home .site-header:not(.solid) .bar > .nav .nav-link[aria-current="page"] { background: none; }
  .js .page-home .site-header:not(.solid) .nav-link::after { background: var(--gold-light); }
}

/* Services side list: a gold bar marks the section being read */
.svc-nav a { position: relative; }
@media (min-width: 64rem) {
  .svc-nav a::before {
    content: ""; position: absolute; left: -0.6rem; top: 22%; bottom: 22%; width: 3px; border-radius: 3px;
    background: var(--gold); transform: scaleY(0); transition: transform 0.35s var(--ease);
  }
  .svc-nav a[aria-current="true"]::before { transform: scaleY(1); }
}
.doc-toc a, .aside-card a { transition: color 0.25s, padding-left 0.3s var(--ease); }
.doc-toc a[aria-current="true"] { padding-left: 0.35rem; }

/* Footer: ICAI registration line */
.footer-base a { color: var(--gold-light); text-underline-offset: 3px; }
.footer-base a:hover { color: var(--white); }

/* Careers: apply-for-articleship button */
.aside-cta { margin: 1.5rem 0 0; }
.aside-cta .button { gap: 0.5rem; }
.aside-cta .ico { width: 1.15rem; height: 1.15rem; }

/* Due dates: heading with a print button */
.cal-h-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; }
.cal-h-row .cal-h { margin: 0; }
.print-btn { gap: 0.5rem; }
.print-btn .ico { width: 1.1rem; height: 1.1rem; }
.cal-h-row + * { margin-top: 1.25rem; }

/* Contact page on phones: slim Call / Raise a query bar */
.action-bar { display: none; }
@media (max-width: 47.99rem) {
  .page-contact .action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem;
    padding: 0.6rem max(1rem, env(safe-area-inset-left, 0px)) max(0.6rem, env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.95); border-top: 1px solid var(--line); box-shadow: 0 -12px 30px -20px rgba(14, 29, 56, 0.45);
  }
  @supports (backdrop-filter: blur(8px)) { .page-contact .action-bar { background: rgba(255, 255, 255, 0.85); backdrop-filter: saturate(1.4) blur(12px); } }
  .action-bar a { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; border-radius: 999px; font-weight: 600; text-decoration: none; }
  .action-bar .ico { width: 1.15rem; height: 1.15rem; }
  .ab-call { border: 1px solid var(--navy); color: var(--navy); background: var(--white); }
  .ab-query { background: var(--navy); color: var(--white); }
  .ab-query:hover { color: var(--white); }
  .page-contact .site-footer { padding-bottom: 5rem; }
  .page-contact .to-top { bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
}

/* Printing the due-date list: just the list, clean */
@media print {
  .search-btn, .search-dlg, .to-top, .action-bar, .contact-strip, .month-jump, .print-btn, .page-hero .ph-bg, .crumbs, .ph-toc, .finder-band, .read-progress, .draft-banner { display: none !important; }
  .page-hero { padding: 0 0 1rem !important; }
  .due-row, .month { break-inside: avoid; }
  .due-ring { display: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
  .nav-link::after { display: none; }
}
/* Phones: room for the search button in the header */
@media (max-width: 39.99rem) {
  .bar { gap: 0.5rem; }
  .menu-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu-btn { padding: 0; width: 44px; min-width: 44px; flex: none; justify-content: center; }
  .search-btn { flex: none; }
  .search-btn { padding: 0; width: 44px; }
}
@media (max-width: 23.5rem) {
  .firm-name { font-size: 0.95rem; }
  .bar.wrap { padding-left: 14px; padding-right: 14px; }
  .firm-suffix { font-size: 0.72rem; }
  .ca-logo, .scrolled .ca-logo { height: 1.85rem; }
  .ca-badge { padding: 0.2rem 0.3rem; }
  .bar { gap: 0.3rem; }
  .menu-btn, .search-btn { width: 42px; min-width: 42px; }
}

/* ---------- v10: phone layout ---------- */

/* Tap-to-open service details (phones only; desktop shows everything) */
.more-toggle { display: none; }
.cs-quick, .cs-quick-line { display: none; }

/* Disclaimer: the "I agree" button stays in view at the bottom of the box */
.gate-actions { position: sticky; bottom: 0; z-index: 1; margin-inline: calc(-1 * clamp(1.5rem, 4vw, 2.5rem)); margin-bottom: calc(-1 * clamp(1.5rem, 4vw, 2.5rem)); padding: 1.1rem clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2rem); background: var(--white); box-shadow: 0 -14px 24px -18px rgba(14, 29, 56, 0.35); }

@media (max-width: 47.99rem) {
  /* Spacing: about a third less between sections */
  .band { padding-block: 2.25rem; }
  .story { padding-block: 2.25rem; }
  .content { padding-top: 1.75rem; padding-bottom: 2.5rem; }
  .band-head { margin-bottom: 1.4rem; }
  .contact-strip { padding-block: 2rem 2.25rem; }

  /* Disclaimer on phones */
  .gate-actions { margin-inline: -1.25rem; margin-bottom: -1.4rem; padding: 0.9rem 1.25rem 1.1rem; gap: 0.5rem 1rem; }
  .gate-actions .button { flex: 1 1 100%; justify-content: center; }
  .gate-actions .muted { font-size: 0.82rem; }

  /* Home: shorter opening screen, name higher up */
  .hero { min-height: 82vh; min-height: 82svh; }
  .hero-inner { padding-top: 6.25rem; padding-bottom: 5.5rem; }
  .hero-services { margin: 1.75rem 0 2rem; }

  /* Home: What we do as a short list; tap to open */
  .story-grid { gap: 1rem; }
  .story-stage { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; margin: 0; padding: 0; overflow: visible; scroll-snap-type: none; }
  .story-item { padding: 1.15rem 1.15rem 1rem; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.9rem; align-items: center; }
  .story-ico { width: 2.5rem; height: 2.5rem; margin: 0; border-radius: 10px; grid-row: span 1; }
  .story-ico .ico { width: 1.25rem; height: 1.25rem; }
  .story-item h3 { font-size: 1.3rem; }
  .story-desc { grid-column: 1 / -1; margin: 0.6rem 0 0; font-size: 0.975rem; }
  .story-item > .more-toggle, .story-item > .more-body { grid-column: 1 / -1; }
  .audit-strip { padding: 1.15rem 1.15rem 0.5rem; }

  .js .more-toggle {
    display: inline-flex; align-items: center; gap: 0.45rem; justify-self: start; width: fit-content; min-height: 44px; margin-top: 0.35rem; padding: 0 0.1rem;
    border: 0; background: none; color: var(--navy-mid); font: 600 0.95rem var(--font-body); cursor: pointer;
  }
  .js .more-toggle svg { transition: transform 0.3s var(--ease); }
  .js .open > .more-toggle svg { transform: rotate(180deg); }
  .js .more-body { display: none; }
  .js .open > .more-body { display: block; padding-top: 0.4rem; }
  .motion .open > .more-body { animation: drop 0.3s var(--ease); }
  .story-item .more-body .text-link { display: inline-flex; margin-top: 0.75rem; }

  /* Steps: the number is enough on phones */
  .step-ico { display: none; }

  /* The firm: normal heading size */
  .firm-statement { font-size: 1.35rem; line-height: 1.35; margin-bottom: 1.25rem; }
  .firm-more { font-size: 1.025rem; margin-top: 0; margin-bottom: 1.5rem; }
  .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
  .facts-row > div { padding: 0.9rem 0; }
  .facts-row dd { font-size: 1.2rem; }

  /* Services page: heading + one line; tap to open; bar fades at the edges */
  .svc-sections { gap: 0.75rem; }
  .svc-sec { padding: 1.15rem; }
  .svc-sec-ico { width: 2.6rem; height: 2.6rem; border-radius: 11px; }
  .svc-sec-ico .ico { width: 1.3rem; height: 1.3rem; }
  .svc-sec h2 { font-size: 1.35rem; }
  .svc-sec-desc { margin: 0.75rem 0 0; font-size: 0.975rem; }
  .svc-sec-cta { margin-top: 0.75rem; }
  .svc-sec-cta .button { width: 100%; justify-content: center; }
  .svc-nav ul { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 1rem, #000 calc(100% - 2rem), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 1rem, #000 calc(100% - 2rem), transparent 100%); padding-inline: 0.5rem 1.5rem; }
  .svc-nav a { padding: 0.4rem 0.75rem; font-size: 0.875rem; }

  /* Visit, call or write: three buttons and two short lines */
  .cs-list { display: none; }
  .cs-head .button { display: none; }
  .cs-grid { gap: 1rem; }
  .cs-head h2 { font-size: 1.5rem; }
  .cs-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
  .cs-quick .button { justify-content: center; gap: 0.4rem; min-height: 46px; padding: 0 0.5rem; font-size: 0.925rem; }
  .cs-quick .ico { width: 1.05rem; height: 1.05rem; flex: none; }
  .cs-quick-line { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.6rem; align-items: start; margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--ink); }
  .cs-quick-line .ico { width: 1.05rem; height: 1.05rem; margin-top: 0.15rem; color: var(--gold-text); }

  /* About: areas two per row */
  .area-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .area-chips a { height: 100%; align-items: flex-start; padding: 0.7rem 0.8rem; border-radius: 12px; font-size: 0.9rem; line-height: 1.35; }
  .area-chips .ico { margin-top: 0.1rem; flex: none; }
  .about-grid { gap: 2rem; }
  .particulars .aside-cta .button { width: 100%; justify-content: center; }
}
@media (max-width: 22rem) { .cs-quick .ico { display: none; } }
@media print { .more-toggle { display: none !important; } .more-body { display: block !important; } .cs-quick, .cs-quick-line { display: none !important; } }
.particulars .aside-cta { margin: 1.25rem 0 0; }
.particulars .aside-cta .ico { width: 1.1rem; height: 1.1rem; padding: 0; border: 0; border-radius: 0; background: none; color: currentColor; grid-row: auto; }
@media (max-width: 47.99rem) { .area-chips li { display: flex; } .area-chips a { width: 100%; } }
