/* ==========================================================================
   H K Chhabra & Co. (HKC India) - Shared stylesheet
   Single source of truth for the whole site.
   Section 1: Design tokens (CSS custom properties)
   Section 2: Base / reset
   Section 3: Layout primitives
   Section 4: Header + footer
   Section 5: Components (buttons, cards, chips, accordion, forms, alerts,
              tables, timeline, breadcrumbs, table of contents)
   Section 6: Page sections (hero, fact strip, bands)
   Section 7: Utilities, motion, responsive
   ========================================================================== */

/* ============================== 1. TOKENS ============================== */
:root {
  /* Brand - Logo Blue & Antique Brushed Gold */
  --ink: #10212e;          /* primary text, near-black with a whisper of blue */
  --ink-soft: #2b3d4c;     /* secondary text */
  --ink-mute: #5a6b78;     /* muted text, captions */
  --brand: #00467b;        /* CA India logo blue - primary action */
  --brand-dark: #0a5c9c;   /* hover (brighter azure) */
  --brand-tint: #e3eef6;   /* soft blue surface */
  --gold: #c59b27;         /* brushed antique gold accent (decorative fills, borders) */
  --gold-light: #d4af37;   /* metallic gold highlight (gradients, stat numbers) */
  --gold-dark: #a37b19;    /* metallic gold shadow (gradients) */
  --gold-ink: #5c4300;     /* deep gold for text on light (WCAG AA) */
  --gold-tint: #faf4e1;    /* soft gold-mist surface */
  --gold-border: #dfba5e;  /* gold border, stronger */
  --gold-border-soft: #ebd28b; /* gold border, soft */

  /* Gold gradients - metallic sheen. Prefer these over flat --gold fills. */
  --grad-gold: linear-gradient(135deg, #e9cd74 0%, #d4af37 28%, #a37b19 58%, #c59b27 78%, #efdc9c 100%);
  --grad-gold-line: linear-gradient(90deg, #a37b19 0%, #d4af37 28%, #f2e3ab 50%, #d4af37 72%, #a37b19 100%);
  --grad-gold-soft: linear-gradient(135deg, #fefbf1 0%, #faf4e1 45%, #f2e8cb 100%);
  --grad-gold-text: linear-gradient(100deg, #cfa63a 0%, #f0dfa2 36%, #c59b27 62%, #e6cb73 100%);
  /* Gold TEXT on the light background (header brand lockup).
     Same gold family as --grad-gold-text, which is used on the dark footer,
     but with the near-white stop pulled down: on cream that stop washes out
     and letters visibly disappear mid-word. This is decorative brand text and
     it does not meet WCAG AA against the cream, so the full firm name is
     carried in the lockup's aria-label for assistive technology. */
  --grad-gold-ink: linear-gradient(100deg, #b8860b 0%, #dcb64a 36%, #a8780c 62%, #cfa63a 100%);

  /* Frosted glass (header, submenus, mobile menu) */
  --glass-bg: rgba(250, 249, 245, 0.60);
  --glass-bg-strong: rgba(250, 249, 245, 0.76);
  --glass-panel: rgba(255, 255, 255, 0.88);
  --glass-dark: rgba(0, 70, 123, 0.92);
  --glass-blur: saturate(170%) blur(18px);

  /* Surfaces */
  --bg: #faf9f5;           /* warm alabaster base */
  --card-bg: #ffffff;
  --paper: #f4f0e6;        /* warm pearl surface */
  --paper-2: #efe8d6;
  --line: #e2ddd0;         /* thin warm borders */
  --line-strong: #c7d0d8;
  --footer-bg: #002b4c;    /* deep navy-free blue, deepest surface */

  /* Feedback */
  --ok: #1d7a56;
  --ok-tint: #e7f4ee;
  --err: #a8322d;
  --err-tint: #faeceb;

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --fs-body: 1.0625rem;    /* ~17px */
  --lh-body: 1.7;

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* Radii */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* Shadows (very soft) */
  --sh-1: 0 1px 2px rgba(0, 43, 76, 0.04), 0 1px 3px rgba(0, 43, 76, 0.05);
  --sh-2: 0 6px 18px rgba(0, 43, 76, 0.06), 0 2px 6px rgba(0, 43, 76, 0.04);
  --sh-3: 0 18px 44px rgba(0, 43, 76, 0.09);

  /* Layout */
  --maxw: 1200px;
  --gutter: 1.5rem;
  --header-h: 112px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t: 0.22s;
}

/* Breakpoints used in media queries (reference):
   sm 480px, md 760px, lg 1024px, xl 1200px */

/* ============================== 2. BASE ============================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
/* Default size for inline line-icons used inside text contexts */
.utility-bar svg, .aside-panel svg, .meta svg, .pill-note svg,
.breadcrumbs svg, .contact-band svg, .empty-state .arrow-link svg,
.map-slot svg, .footer-brand svg { width: 18px; height: 18px; flex: none; }
.utility-left a, .utility-right a, .pill-note, .meta,
.aside-panel p.flex { display: inline-flex; align-items: center; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 560;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-4);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 40;
}
h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.6rem); font-weight: 560; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.08rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 var(--s-4); color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-ink);
  background: var(--grad-gold-soft);
  border: 1px solid transparent;
  background-origin: border-box;
  box-shadow: inset 0 0 0 1px rgba(223, 186, 94, 0.55), inset 0 1px 0 rgba(255,255,255,0.8);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--r-pill);
  margin: 0 0 var(--s-4);
}
.lead { font-size: 1.22rem; color: var(--ink-soft); line-height: 1.6; }

/* Focus + skip link (accessibility) */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 0.7rem 1.1rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color:#fff; text-decoration:none; }

/* ============================== 3. LAYOUT ============================== */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 780px; }
.section { padding: var(--s-8) 0; }
.section-tight { padding: var(--s-7) 0; }
.bg-paper { background: var(--paper); }
.bg-tint { background: var(--brand-tint); }

.grid { display: grid; gap: var(--s-5); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.section-head { max-width: 640px; margin-bottom: var(--s-6); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2::after, .page-hero h1::after {
  content: ""; display: block; width: 56px; height: 3px; margin-top: var(--s-3);
  background: var(--grad-gold-line); border-radius: 2px;
}
.section-head.center h2::after { margin-left: auto; margin-right: auto; }

@media (max-width: 1024px) { .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  :root { --header-h: 92px; }
}

/* ============================== 4. HEADER ============================== */
/* IMPORTANT: no backdrop-filter on .site-header itself.
   An ancestor with backdrop-filter (or filter, or transform) becomes the
   containing block for position:fixed descendants. The mobile menu inside
   this header is fixed, so blurring the header trapped the menu inside the
   header's own box: it opened clipped to the header height, behind the page.
   The frosted layer therefore lives on a pseudo-element of .main-bar, which
   is NOT an ancestor of the nav, so the nav still resolves to the viewport. */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid rgba(226, 221, 208, 0.75);
}
.main-bar { position: relative; }
/* No isolation/stacking context here: .main-bar must NOT create one, or the
   mobile nav's z-index would be scoped inside it and the scrim (a sibling of
   .main-bar) would paint over the open menu. .site-header already creates the
   stacking context that keeps the ::before layer in place. */
.main-bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: background var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.site-header.shrink .main-bar::before {
  background: var(--glass-bg-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 6px 24px -14px rgba(0, 43, 76, 0.30);
}
/* Opaque fallback where backdrop-filter is unsupported */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .main-bar::before { background: rgba(250, 249, 245, 0.97); }
  .site-header.shrink .main-bar::before { background: rgba(250, 249, 245, 0.99); }
  .utility-bar { background: var(--brand); }
  .has-sub > .submenu { background: #fff; }
}

.utility-bar {
  background: var(--glass-dark); color: #dfe7e4; font-size: 0.82rem;
  border-bottom: 1px solid rgba(163, 123, 25, 0.55);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
}
.utility-bar a { color: #fff; }
.utility-bar .container { display: flex; justify-content: flex-start; align-items: center; gap: 1rem; min-height: 40px; }
.utility-left { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.utility-left a { color: #dfe7e4; }
.utility-left a:hover { color: var(--gold-light); }
.utility-right { display: flex; gap: 1.2rem; align-items: center; }
.utility-right a { position: relative; }
.utility-right a + a::before { content: ""; position: absolute; left: -0.65rem; top: 50%; transform: translateY(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--gold-light); }
.utility-right a:hover { color: var(--gold-light); }

/* On phones the bar has no room for four items: the international number
   drops out (it is still in the footer and on the contact page) and the
   remaining items stop wrapping mid-phrase. */
@media (max-width: 560px) {
  .utility-bar { font-size: 0.78rem; }
  .utility-bar .container { min-height: 34px; gap: 0.5rem; }
  .utility-left a:nth-child(2) { display: none; }
  .utility-right { gap: 0.9rem; }
  .utility-bar a { white-space: nowrap; }
}

.main-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; transition: min-height var(--t) var(--ease); }
.site-header.shrink .main-bar .container { min-height: 58px; }

.brand-lockup { display: flex; align-items: center; gap: 0.9rem; padding-right: 2.75rem; }
.brand-name { line-height: 1.05; }
.brand-name .n1 { font-family: var(--font-display); font-size: 1.32rem; font-weight: 560; color: var(--ink); letter-spacing: -0.01em; display:block; }
.brand-name .n2 {
  font-size: 0.72rem; letter-spacing: 0.17em; text-transform: uppercase; font-weight: 700;
  color: #8a6714;
  background: var(--grad-gold-ink); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.brand-name .amp {
  font-style: italic;
  color: #8a6714;
  background: var(--grad-gold-ink); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.logo-ca {
  height: 52px; width: auto; flex: none; display: block;
  transition: height var(--t) var(--ease);
}
.site-header.shrink .logo-ca { height: 44px; }

.main-nav { display: flex; align-items: center; gap: 0.3rem; }
.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 0.2rem; margin: 0; padding: 0; }
/* The menu carries seven items plus a CTA, so labels must never wrap
   mid-phrase ("Services / Global"). Nowrap everywhere, slightly tighter
   padding, and the burger takes over earlier than before. */
.main-nav a, .nav-toggle-sub {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.6rem 0.6rem; border-radius: var(--r-sm);
  color: var(--ink); font-weight: 500; font-size: 0.95rem; background: none; border: 0; cursor: pointer; font-family: var(--font-body);
  white-space: nowrap;
}
.nav-cta .btn { white-space: nowrap; }
.brand-name .n1, .brand-name .n2 { white-space: nowrap; }
.main-nav a:hover, .nav-toggle-sub:hover {
  background: var(--grad-gold-soft); text-decoration: none; color: var(--brand-dark);
  box-shadow: inset 0 -2px 0 0 #d4af37;
}
.main-nav a[aria-current="page"] { color: var(--brand); position: relative; }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.3rem; height: 2px; background: var(--grad-gold-line); border-radius: 2px; }

.has-sub { position: relative; }
.has-sub > .submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px;
  background: var(--glass-panel);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(226, 221, 208, 0.8);
  border-radius: var(--r); box-shadow: var(--sh-2); padding: 0.5rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all var(--t) var(--ease); z-index: 110;
}
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu, .has-sub.open > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 0.55rem 0.7rem; border-radius: var(--r-sm); font-size: 0.95rem; color: var(--ink-soft); }
.submenu a:hover { background: var(--paper); color: var(--brand-dark); }
.caret { width: 10px; height: 10px; flex: none; transition: transform var(--t); }
.has-sub.open .caret, .has-sub:hover .caret { transform: rotate(180deg); }

/* Services Global carries nine items, so that submenu runs as column groups
   with small market headings. Each group is its own grid cell, so the heading
   always sits directly above its own links. */
.submenu-wide { min-width: 580px; display: grid; grid-template-columns: 1fr 1fr; align-items: start; column-gap: 0.75rem; }
.submenu-all { grid-column: 1 / -1; border-bottom: 1px solid var(--line); margin-bottom: 0.3rem; padding-bottom: 0.3rem; }
.submenu-group.span-all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 0.3rem; padding-top: 0.3rem; }
.submenu-group > ul { list-style: none; margin: 0; padding: 0; }
.submenu-head {
  display: block; padding: 0.5rem 0.9rem 0.15rem; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink);
}
@media (max-width: 1150px) {
  .submenu-wide { min-width: 0; display: block; }
  .submenu-head { padding-left: 1.1rem; color: var(--ink-mute); }
  .submenu-group.span-all { border-top: 0; margin-top: 0; padding-top: 0; }
}

.nav-cta { margin-left: 0.6rem; }
/* `.main-nav a` (0,1,1) outweighs `.btn-primary` (0,1,0), which stripped the
   header CTA back to plain text. These rules restore it. Gold gradient so the
   one action in the bar reads as an action against all the blue. */
.main-nav .nav-cta a.btn {
  padding: 0.72rem 1.25rem; border-radius: var(--r-pill); font-weight: 700;
  font-size: 0.88rem; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--grad-gold); color: var(--ink); border: 1px solid var(--gold-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.main-nav .nav-cta a.btn:hover {
  background: var(--grad-gold-line); color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 6px 18px -8px rgba(163, 123, 25, 0.55);
  transform: translateY(-1px);
}
.nav-burger { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); width: 46px; height: 42px; cursor: pointer; align-items: center; justify-content: center; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after { content:""; display:block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: all var(--t); }
.nav-burger span::before { position:absolute; top:-6px; } .nav-burger span::after { position:absolute; top:6px; }

@media (max-width: 1150px) {
  .nav-burger { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 86vw);
    /* Near-solid on purpose: this panel sits over a dark scrim, so a
       translucent surface turns murky and the links lose contrast. */
    background: rgba(252, 251, 247, 0.985);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    backdrop-filter: saturate(140%) blur(10px);
    flex-direction: column; align-items: stretch;
    padding: 1.5rem 1.2rem; box-shadow: var(--sh-3); transform: translateX(100%); transition: transform var(--t) var(--ease);
    overflow-y: auto; gap: 0; z-index: 130;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0.1rem; }
  .main-nav a, .nav-toggle-sub { width: 100%; padding: 0.85rem 0.6rem; font-size: 1.05rem; justify-content: space-between; }
  .has-sub > .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--line);
    border-radius: 0; margin: 0 0 0.4rem 0.6rem; padding: 0 0 0 0.4rem; display: none;
  }
  .has-sub.open > .submenu { display: block; }
  .nav-cta { margin: 0.8rem 0 0; }
  .nav-cta .btn { width: 100%; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(0,43,76,0.4); opacity: 0; visibility: hidden; transition: opacity var(--t); z-index: 120; }
  .nav-scrim.show { opacity: 1; visibility: visible; }
}

/* ============================== 4b. FOOTER ============================== */
.site-footer { background: var(--footer-bg); color: #c9d3d0; margin-top: var(--s-9); border-top: 3px solid; border-image: var(--grad-gold-line) 1; }
.site-footer a { color: #dbe4e1; }
.site-footer a:hover { color: var(--gold-light); }
/* Three columns: brand, Navigate, Contact. The six-column services footer it
   replaced was unreadable, and every service is one click away via the menu. */
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr; gap: 3rem; padding: var(--s-8) 0 var(--s-6); }
.footer-lockup { display: flex; align-items: center; gap: 0.9rem; margin-bottom: var(--s-4); }
/* The CA India mark is dark blue, so on the navy footer it needs a light tile
   behind it. The mark itself is unaltered. */
.footer-logo { display: inline-flex; background: #fff; border-radius: 10px; padding: 7px; line-height: 0; flex: none; }
.footer-logo img { width: 42px; height: auto; display: block; }
.footer-name .n1 { font-family: var(--font-display); font-size: 1.22rem; color: #fff; display: block; line-height: 1.1; }
.footer-name .n2 {
  font-size: 0.7rem; letter-spacing: 0.17em; text-transform: uppercase; font-weight: 700;
  color: #d4af37;
  background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.footer-name .amp {
  font-style: italic; color: #d4af37;
  background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.footer-contact p { margin: 0 0 0.45rem; font-size: 0.95rem; }
.footer-contact .addr { color: #a9b7b3; margin-bottom: 0.9rem; }
.footer-contact .phone-label {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  margin: 0.8rem 0 0.1rem; color: #d4af37;
  background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.footer-contact .hours { color: #a9b7b3; margin-top: 0.9rem; }
.footer-legal-links a { color: inherit; }
.footer-legal-links span { opacity: 0.5; margin: 0 0.3rem; }
.footer-brand .n1 { font-family: var(--font-display); font-size: 1.3rem; color: #fff; display: block; }
.footer-brand .n2 { font-size: 0.72rem; letter-spacing: 0.17em; text-transform: uppercase; color: #9fb0ab; }
.footer-brand p { color: #a9b7b3; font-size: 0.95rem; margin-top: var(--s-4); }
.footer-col h4 {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: var(--s-4);
  color: #d4af37;
  background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.95rem; }
.footer-meta { border-top: 1px solid rgba(255,255,255,0.12); padding: var(--s-5) 0; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: 0.85rem; color: #9fb0ab; }
.footer-disclaimer { max-width: 760px; font-size: 0.82rem; color: #93a39e; line-height: 1.6; }
@media (max-width: 1024px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ============================== 5. COMPONENTS ============================== */
/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none;
  padding: 0.85rem 1.4rem; border-radius: var(--r-pill); border: 1px solid transparent; transition: all var(--t) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--gold); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; box-shadow: 0 6px 20px rgba(197,155,39,0.3); transform: translateY(-1px); border-color: var(--gold-light); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--gold); color: var(--brand-dark); background: var(--gold-tint); box-shadow: var(--sh-1); }
.btn-ghost { background: transparent; color: var(--brand); padding: 0.5rem 0.2rem; }
.btn-ghost:hover { color: var(--gold-ink); gap: 0.75rem; }
.btn svg { width: 18px; height: 18px; }

.arrow-link { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; color: var(--brand); }
.arrow-link svg { width: 18px; height: 18px; transition: transform var(--t); }
.arrow-link:hover { text-decoration: none; color: var(--brand-dark); }
.arrow-link:hover svg { transform: translateX(4px); }

/* Cards */
.card {
  background: var(--card-bg); border: 1px solid var(--line); border-top: 3px solid transparent; border-radius: var(--r); padding: var(--s-5); box-shadow: var(--sh-1);
  transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease), border-color var(--t);
}
/* Hover lifts the card and lights a gold gradient along its top edge.
   A pseudo-element rather than border-top-color, so the gradient can run
   across the full width and still respect the corner radius. */
.card.hover { position: relative; overflow: hidden; }
.card.hover::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad-gold-line); opacity: 0; transition: opacity var(--t) var(--ease);
}
.card.hover:hover { box-shadow: 0 12px 30px -8px rgba(197,155,39,0.28); transform: translateY(-3px); border-color: var(--line-strong); }
.card.hover:hover::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .card.hover:hover { transform: none; } }
.card h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.12rem; letter-spacing: 0; }
.card p { font-size: 0.98rem; margin-bottom: var(--s-4); }

.icon-badge {
  width: 48px; height: 48px; border-radius: var(--r-sm); background: linear-gradient(135deg, var(--gold-tint), var(--paper)); color: var(--brand);
  border: 1px solid var(--gold-border-soft); display: grid; place-items: center; margin-bottom: var(--s-4);
}
.icon-badge.gold { background: var(--grad-gold); color: #fff; border-color: var(--gold-dark); box-shadow: inset 0 1px 0 rgba(255,255,255,0.45); }
.icon-badge svg { width: 24px; height: 24px; }

.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card .arrow-link { margin-top: auto; }

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.3rem 0.7rem; border-radius: var(--r-pill); background: var(--grad-gold-soft); color: var(--gold-ink); border: 1px solid rgba(223,186,94,0.45);
}
.chip.brand { background: var(--brand-tint); color: var(--brand); }
.chip.ghost { background: #fff; color: var(--ink-soft); border-color: var(--line); }
.chip-filter {
  cursor: pointer; background: #fff; color: var(--ink-soft); border: 1px solid var(--line); font-weight: 600;
  padding: 0.5rem 1rem; border-radius: var(--r-pill); font-size: 0.9rem; transition: all var(--t);
}
.chip-filter:hover { border-color: var(--brand); color: var(--brand-dark); }
.chip-filter[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Accordion */
.accordion { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.accordion + .accordion { margin-top: var(--s-4); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item:last-child { border-bottom: 0; }
.acc-trigger {
  width: 100%; text-align: left; background: none; border: 0; border-left: 4px solid transparent; cursor: pointer; font-family: var(--font-body);
  font-size: 1.05rem; font-weight: 600; color: var(--ink); padding: 1.15rem 1.3rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  transition: background var(--t), border-color var(--t);
}
.acc-trigger:hover { color: var(--brand-dark); }
.acc-item.open .acc-trigger { background: var(--grad-gold-soft); border-left: 4px solid; border-image: linear-gradient(180deg, #f2e3ab, #d4af37 45%, #a37b19) 1; }
.acc-icon { flex: none; width: 22px; height: 22px; position: relative; transition: transform var(--t); color: var(--brand); }
.acc-item.open .acc-icon { transform: rotate(45deg); color: var(--gold-ink); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height var(--t) var(--ease); }
.acc-panel-inner { padding: 0 1.3rem 1.25rem; color: var(--ink-soft); }
.acc-item.open .acc-panel { max-height: 600px; }

/* Forms */
.field { margin-bottom: var(--s-4); }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: var(--s-2); color: var(--ink); }
.field .req { color: var(--err); }
.input, .select, .textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 0.8rem 0.9rem; transition: border-color var(--t), box-shadow var(--t);
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
.textarea { min-height: 140px; resize: vertical; }
.field-hint { font-size: 0.85rem; color: var(--ink-mute); margin-top: var(--s-2); }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--err); box-shadow: 0 0 0 3px var(--err-tint); }
.field-error { display: none; color: var(--err); font-size: 0.85rem; margin-top: var(--s-2); }
.field.invalid .field-error { display: block; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--ink-soft); }
.consent input { margin-top: 0.25rem; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Alerts */
.alert { border-radius: var(--r); padding: 1rem 1.2rem; display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.96rem; border: 1px solid; }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.alert-ok { background: var(--ok-tint); border-color: #bfe0d0; color: #15603f; }
.alert-err { background: var(--err-tint); border-color: #eccbc9; color: #8a2621; }
.alert-info { background: var(--brand-tint); border-color: #c6e2da; color: var(--brand-dark); }
.is-hidden { display: none !important; }

/* Callout / Key point */
.callout { position: relative; background: var(--grad-gold-soft); border-radius: var(--r-sm); padding: 1.2rem 1.4rem 1.2rem 1.7rem; overflow: hidden; }
.callout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, #f2e3ab, #d4af37 40%, #a37b19); }
.callout .k { font-weight: 700; color: var(--gold-ink); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; display: block; margin-bottom: 0.4rem; }
blockquote { margin: var(--s-5) 0; padding: 0.4rem 0 0.4rem 1.4rem; border-left: 4px solid var(--brand); font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); font-style: italic; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
table.data th, table.data td { text-align: left; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--paper); color: var(--ink); font-weight: 600; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--paper); }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.85rem; color: var(--ink-mute); padding: var(--s-4) 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.breadcrumbs li { display: flex; gap: 0.5rem; align-items: center; }
.breadcrumbs li::after { content: "/"; color: var(--line-strong); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--ink-mute); }
.breadcrumbs [aria-current] { color: var(--ink); }

/* Table of contents (sticky on desktop) */
.toc { position: sticky; top: calc(var(--header-h) + 16px); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-5); background: #fff; }
.toc h4 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.92rem; }
.toc a { color: var(--ink-soft); }

/* Timeline (how an engagement works) */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); counter-reset: step; }
.timeline .step { position: relative; padding-top: var(--s-5); }
.timeline .step::before {
  counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0;
  width: 42px; height: 42px; border-radius: var(--r-pill); background: var(--gold-tint); color: var(--gold-ink); border: 1px solid var(--gold-border-soft);
  display: grid; place-items: center; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
}
.timeline .step { padding-left: 58px; min-height: 42px; }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr; } }

/* ============================== 6. PAGE SECTIONS ============================== */
/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg) 0%, var(--paper) 100%); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(circle at 1px 1px, var(--gold-border-soft) 1px, transparent 0);
  background-size: 28px 28px; mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 70%);
}
/* Constellation canvas sits behind the hero content. */
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; }
.hero::before { z-index: 1; }
.hero .container { z-index: 2; position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--s-7); align-items: center; padding-top: var(--s-8); padding-bottom: var(--s-8); }
.hero h1 { margin-bottom: var(--s-5); }
.hero-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-6); }
.hero-art { border-radius: var(--r-lg); width: 100%; max-width: 330px; margin: 0 auto; display: block; }

/* ---------------- Hero panel: the firm at a glance ----------------
   Replaces the globe. Four rows of the firm's particulars. Each row uses the
   site-wide .reveal mechanism (JS adds .in) and stages itself with a
   transition-delay, so the stagger survives reduced-motion, which the
   .reveal override below already neutralises. */
.glance.hero-art { max-width: 420px; background: var(--card, #fff); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-2) var(--s-6); box-shadow: 0 18px 50px -30px rgba(0, 43, 76, 0.35); }
.glance .row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.glance .row:last-child { border-bottom: 0; }
.glance .k { flex: none; font-size: 0.78rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
.glance .v { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.1; background: var(--grad-gold-ink); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.glance .v.sm { font-size: 1rem; letter-spacing: 0.04em; }

@media (prefers-reduced-motion: no-preference) {
  .glance .row:nth-child(1) { transition-delay: 0.10s; }
  .glance .row:nth-child(2) { transition-delay: 0.26s; }
  .glance .row:nth-child(3) { transition-delay: 0.42s; }
  .glance .row:nth-child(4) { transition-delay: 0.58s; }
}

/* On narrow screens the heading comes first. The illustration supports the
   message, it does not lead it. (Emergent had order:-1 here, which pushed the
   artwork above the H1 on every phone.) */
@media (max-width: 1150px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: 0; max-width: 420px; width: 100%; margin-top: var(--s-6); }
}

/* ---------------- Service ticker band ----------------
   Two identical sets sit side by side inside the track and the track slides
   exactly half its own width, so the loop is seamless: set 2 lands where
   set 1 started. Set 2 is aria-hidden, so the services are announced once.
   Hover pauses it, which matters: a visitor who spots something needs to be
   able to stop and read it. */
.ticker-band { background: var(--footer-bg); border-top: 1px solid var(--gold-dark); border-bottom: 1px solid var(--gold-dark); position: relative; overflow: hidden; isolation: isolate; }
.ticker { position: relative; z-index: 2; display: flex; width: max-content; padding: var(--s-4) 0; will-change: transform; }
.ticker .set { display: flex; align-items: center; flex: none; }
.ticker .item { color: #fff; font-family: var(--font-display); font-size: 1.22rem; letter-spacing: 0.012em; white-space: nowrap; padding: 0 26px; }
.ticker .item:nth-child(4n+3) { background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ticker .dot { flex: none; width: 7px; height: 7px; transform: rotate(45deg); background: var(--grad-gold-line); }

/* Edge fades, so a word is never guillotined at the rim. */
.ticker-band::before, .ticker-band::after { content: ""; position: absolute; top: 0; bottom: 0; width: 130px; z-index: 4; pointer-events: none; }
.ticker-band::before { left: 0; background: linear-gradient(90deg, var(--footer-bg) 18%, rgba(0, 43, 76, 0)); }
.ticker-band::after { right: 0; background: linear-gradient(270deg, var(--footer-bg) 18%, rgba(0, 43, 76, 0)); }

/* Gold glints. Kept in the clear space above and below the words: a line at
   text height reads as a strikethrough however it is layered. */
.ticker-band .sp { position: absolute; width: 90px; height: 1px; z-index: 0; background: linear-gradient(90deg, transparent, rgba(242, 227, 171, 0.9), transparent); }
.ticker-band .sp:nth-of-type(1) { top: 9px; }
.ticker-band .sp:nth-of-type(2) { bottom: 9px; }
.ticker-band .sp:nth-of-type(3) { top: 9px; }

@media (prefers-reduced-motion: no-preference) {
  .ticker { animation: ticker-slide var(--ticker-dur, 44s) linear infinite; }
  .ticker-band:hover .ticker { animation-play-state: paused; }
  .ticker-band .sp { animation: ticker-glint 5.5s linear infinite; }
  .ticker-band .sp:nth-of-type(2) { animation-delay: 2.4s; animation-duration: 6.8s; }
  .ticker-band .sp:nth-of-type(3) { animation-delay: 4.1s; animation-duration: 7.6s; }
}
@keyframes ticker-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ticker-glint { 0% { left: -10%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 104%; opacity: 0; } }

/* No motion: one static, centred, wrapping list. */
@media (prefers-reduced-motion: reduce) {
  .ticker { width: auto; flex-wrap: wrap; justify-content: center; }
  .ticker .set:nth-child(2) { display: none; }
  .ticker-band .sp { display: none; }
}
@media (max-width: 700px) {
  .ticker .item { font-size: 1.02rem; padding: 0 18px; }
}

/* ---------------- Ledger pattern on blue surfaces ----------------
   A faint ruled grid where single cells outline in gold and fade again, like
   figures settling. The canvas is inserted by main.js rather than written
   into every page, so the top bar, the CTA card on twelve pages and the
   footer all pick it up from one place. The ticker band keeps its own
   glints; this is for the still blue surfaces. */
.utility-bar, .site-footer, .contact-band { position: relative; overflow: hidden; isolation: isolate; }
/* The canvas is a direct child too: without excluding it, this rule drops it
   back into the flow and it adds its own height to the section. */
.utility-bar > *:not(.surface-bg), .site-footer > *:not(.surface-bg), .contact-band > *:not(.surface-bg) { position: relative; z-index: 1; }
.surface-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .surface-bg { display: none; } }

/* ---------------- Security band ----------------
   A deep blue full-bleed section. Takes the same ledger pattern as the other
   blue surfaces, inserted by main.js. */
.security-band { background: var(--footer-bg); border-top: 1px solid var(--gold-dark); border-bottom: 1px solid var(--gold-dark); position: relative; overflow: hidden; isolation: isolate; }
.security-band > *:not(.surface-bg) { position: relative; z-index: 1; }
.security-band .section-head h2 { color: #fff; }
.security-band .section-head > p { color: #bcd4e6; }
.security-band .eyebrow { color: var(--gold-light); border-color: var(--gold-dark); background: rgba(255, 255, 255, 0.04); }

.sec-grid { gap: var(--s-5); }
.sec-item { border-top: 2px solid; border-image: var(--grad-gold-line) 1; padding-top: var(--s-4); }
.sec-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; margin-bottom: var(--s-3); background: rgba(212, 175, 55, 0.12); border: 1px solid var(--gold-dark); color: var(--gold-light); }
.sec-icon svg { width: 21px; height: 21px; }
.sec-item h3 { color: #fff; font-size: 1.04rem; line-height: 1.35; margin: 0 0 var(--s-2); }
.sec-item p { color: #c9d3d0; font-size: 0.92rem; line-height: 1.65; margin: 0; }

@media (max-width: 1000px) { .sec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .sec-grid { grid-template-columns: 1fr; } }

/* Fact strip (deep blue full-bleed band) */
.fact-band { background: var(--brand); border-top: 1px solid var(--gold-dark); border-bottom: 1px solid var(--gold-dark); padding: var(--s-7) 0; }
.fact-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.fact-strip.cols-3 { grid-template-columns: repeat(3, 1fr); }
.fact { border-left: 2px solid; border-image: linear-gradient(180deg, #f2e3ab, #d4af37 45%, #a37b19) 1; padding-left: var(--s-4); }
.fact .n { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 560; line-height: 1.1; color: var(--gold-light); background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.fact .l { font-size: 0.92rem; color: #cfe0dc; }
@media (max-width: 760px) { .fact-strip, .fact-strip.cols-3 { grid-template-columns: 1fr; } }

/* Page hero (inner pages) */
.page-hero { padding: var(--s-7) 0 var(--s-6); }
.page-hero h1 { margin-bottom: var(--s-4); }
.page-hero .lead { max-width: 680px; }

/* Contact band */
.contact-band { background: var(--brand); color: #fff; border-radius: var(--r-lg); padding: var(--s-7); border: 1px solid var(--gold-dark); display: flex; flex-wrap: wrap; gap: var(--s-5); align-items: center; justify-content: space-between; }
.contact-band h2 { color: #fff; margin: 0; }
.contact-band p { color: #d6eae4; margin: 0.4rem 0 0; }
.contact-band .btn-secondary { background: #fff; border-color: var(--gold); }

/* Split / side panel */
.with-aside { display: grid; grid-template-columns: 1fr 340px; gap: var(--s-7); align-items: start; }
.aside-panel { position: sticky; top: calc(var(--header-h) + 16px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-5); }
@media (max-width: 1024px) { .with-aside { grid-template-columns: 1fr; } .aside-panel { position: static; } }

/* Prose (legal + article body) */
.prose { max-width: 70ch; }
.prose h2 { margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.prose ul, .prose ol { color: var(--ink-soft); padding-left: 1.3rem; margin: 0 0 var(--s-4); }
.prose li { margin-bottom: 0.5rem; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0 0 var(--s-4); display: grid; gap: 0.7rem; }
.checklist li { display: flex; gap: 0.65rem; align-items: flex-start; color: var(--ink-soft); }
.checklist svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 3px; }

/* Blog cards */
.article-card { display: flex; flex-direction: column; gap: 0.6rem; height: 100%; }
.article-card .meta { font-size: 0.85rem; color: var(--ink-mute); display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.article-card h3 { margin: 0.2rem 0; font-family: var(--font-display); font-weight: 500; font-size: 1.22rem; letter-spacing: -0.01em; }

/* Founder panel */
.founder { display: grid; grid-template-columns: 180px 1fr; gap: var(--s-6); align-items: start; }
.portrait-slot { width: 180px; height: 220px; background: var(--paper-2); border: 1px dashed var(--line-strong); border-radius: var(--r); display: grid; place-items: center; text-align: center; color: var(--ink-mute); font-size: 0.8rem; padding: 1rem; }
.portrait { width: 180px; height: 220px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); display: block; }
@media (max-width: 480px) { .founder { grid-template-columns: 1fr; } }

/* Map placeholder */
.map-slot { background: var(--paper-2); border: 1px dashed var(--line-strong); border-radius: var(--r); min-height: 240px; display: grid; place-items: center; color: var(--ink-mute); text-align: center; padding: 1rem; }

/* Pagination */
.pagination { display: flex; gap: 0.4rem; justify-content: center; margin-top: var(--s-6); }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 0.6rem; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }
.pagination a:hover { border-color: var(--brand); color: var(--brand-dark); text-decoration: none; }
.pagination [aria-current] { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Empty state */
.empty-state { text-align: center; padding: var(--s-8) var(--s-4); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--paper); }
.empty-state .icon-badge { margin: 0 auto var(--s-4); }

/* Share row */
.share-row { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--s-4) 0; margin: var(--s-6) 0; }

/* Styleguide swatches */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: var(--s-4); }
.swatch { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: 0.82rem; }
.swatch .chip-color { height: 76px; }
.swatch .meta { padding: 0.6rem 0.7rem; }
.swatch .meta code { color: var(--ink-mute); }

/* ============================== 7. UTILITIES + MOTION ============================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); }
.flex { display: flex; } .items-center { align-items: center; } .gap-3 { gap: var(--s-3); } .gap-4 { gap: var(--s-4); }
.wrap { flex-wrap: wrap; }
.muted { color: var(--ink-mute); }
.divider { height: 1px; background: var(--line); border: 0; margin: var(--s-6) 0; }
.note { font-size: 0.9rem; color: var(--ink-mute); }
/* extra utilities to keep markup free of inline styles */
.mt-2 { margin-top: var(--s-2); }
.pt-9 { padding-top: var(--s-9); }
.fs-sm { font-size: 0.9rem; }
.fw-normal { font-weight: 400; }
.justify-center { justify-content: center; }
.btn-block { width: 100%; }
.maxw-520 { max-width: 520px; }
.founder-name { font-family: var(--font-display); font-weight: 500; }
.acc-item h3 { margin: 0; }
.blog-toolbar { margin-bottom: var(--s-5); align-items: center; justify-content: space-between; }
.blog-search-field { margin: 0; min-width: 240px; }
.article-h1 { margin-top: var(--s-4); }
.article-meta { font-size: 0.9rem; }
.article-note { border-top: 1px solid var(--line); padding-top: var(--s-4); margin-top: var(--s-5); }
/* styleguide colour swatches */
.sw-ink { background: var(--ink); } .sw-brand { background: var(--brand); }
.sw-brand-dark { background: var(--brand-dark); } .sw-gold { background: var(--gold); }
.sw-gold-light { background: var(--gold-light); } .sw-footer { background: var(--footer-bg); }
.sw-paper { background: var(--paper); } .sw-line { background: var(--line); }
.sw-ok { background: var(--ok); } .sw-err { background: var(--err); }
.pill-note { display: inline-flex; gap: 0.5rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0.4rem 0.9rem; font-size: 0.88rem; color: var(--ink-soft); }

/* Fade-in on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}


/* Service detail: "What we handle" capability cards. Title plus a sentence,
   rather than a bare bullet, so each line of scope explains itself. */
.capability { padding: 1.3rem 1.4rem; }
.capability h3 { font-size: 1.02rem; margin: 0 0 0.45rem; }
.capability p { color: var(--ink-soft); font-size: 0.96rem; line-height: 1.6; }

/* Closing band on service pages. The band is deep blue, so the links need an
   explicit light colour: the default link colour is the brand blue and was
   rendering invisible against it. */
.contact-band .band-links { margin: 0.6rem 0 1.4rem; font-weight: 500; }
.contact-band .band-links a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.contact-band .band-links a:hover { color: var(--gold-light); }
.contact-band .band-links span { color: #9fc3dd; margin: 0 0.5rem; }
/* the service-page band stacks rather than spreading across */
.section.contact-band { flex-direction: column; justify-content: center; }
.section.contact-band .container { width: 100%; }


/* Gold run-in for display headings. Large text only: at body size this gold
   does not carry enough contrast against the cream. */
.gold-text {
  color: #b8860b;
  background: var(--grad-gold-ink); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}


/* Home page: the two market entry points. Larger than a service card, and
   the whole box is the link rather than just the arrow. */
.hub-grid { gap: var(--s-6); }
.hub-card { display: block; padding: var(--s-6); text-decoration: none; color: inherit; }
.hub-card:hover { text-decoration: none; color: inherit; }
.hub-card h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 560; margin: var(--s-4) 0 var(--s-3); }
.hub-card > p { color: var(--ink-soft); margin-bottom: var(--s-4); }
.hub-list { list-style: none; margin: 0 0 var(--s-5); padding: 0; display: grid; gap: 0.45rem; }
.hub-list li { position: relative; padding-left: 1.1rem; font-size: 0.96rem; color: var(--ink-soft); }
.hub-list li::before { content: ""; position: absolute; left: 0; top: 0.58em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.hub-card .arrow-link { font-weight: 600; }
@media (max-width: 760px) { .hub-card { padding: var(--s-5); } }


.pt-0 { padding-top: 0; }
.where-we-work { margin-top: var(--s-5); }

/* ---------------- Contact: office photograph ---------------- */
.office-photo { margin: 0; }
.office-photo img { width: 100%; height: auto; display: block; border-radius: var(--r); border: 1px solid var(--line); }
.office-photo figcaption { font-size: 0.85rem; color: var(--ink-mute); margin-top: 0.55rem; }

/* ---------------- Contact: where we work ----------------
   A ring of gold travels outward from New Delhi across a field of faint
   points. As the ring front reaches each office card, that card lights. The
   clocks are live, so the panel answers "can I call them now". */
.where-we-work {
  position: relative; overflow: hidden;
  margin-top: var(--s-5); padding: var(--s-7);
  background: var(--brand); border: 1px solid var(--gold-dark); border-radius: var(--r-lg);
}
.ww-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.ww-inner { position: relative; z-index: 1; }
.ww-inner h2 { color: #fff; margin: 0 0 0.3rem; }
.ww-inner .note { color: #bcd4e6; margin: 0 0 var(--s-6); }

.ww-clocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.ww-clock {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: 1.15rem 1.3rem 1.3rem; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
/* the moment the signal arrives */
.ww-clock.lit {
  background: rgba(212, 175, 55, 0.14); border-color: rgba(232, 199, 102, 0.55);
  box-shadow: 0 0 26px -6px rgba(212, 175, 55, 0.5);
}
.ww-city { color: #fff; font-weight: 600; }
.ww-zone { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8fb6d4; margin-top: 2px; }
.ww-time {
  font-family: var(--font-display); font-size: 2rem; line-height: 1.1; margin-top: 0.7rem;
  color: #f0d98a; font-variant-numeric: tabular-nums;
}
.ww-time .s { font-size: 0.95rem; opacity: 0.65; margin-left: 2px; }
.ww-state { font-size: 0.8rem; color: #bcd4e6; margin-top: 0.15rem; }
.ww-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.12); }
.ww-bar i { position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: var(--grad-gold); transition: width 1s linear; }
.ww-tag {
  position: absolute; top: 1.15rem; right: 1.15rem;
  font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
  color: var(--ink); background: var(--grad-gold); padding: 0.28rem 0.55rem; border-radius: var(--r-pill);
}
@media (max-width: 860px) {
  .where-we-work { padding: var(--s-5); }
  .ww-clocks { grid-template-columns: 1fr; }
  .ww-time { font-size: 1.7rem; }
}
}


/* Hero headline typed on load. The caret is a pseudo-element on the h1 so it
   sits after whatever character was typed last, across both spans. */
h1[data-type] { position: relative; }
h1[data-type].typing::after {
  content: ""; display: inline-block; width: 3px; height: 0.85em;
  margin-left: 0.06em; vertical-align: -0.08em;
  background: var(--grad-gold-ink); background-color: #b8860b;
  animation: caret-blink 0.9s steps(1) infinite;
}
@keyframes caret-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { h1[data-type].typing::after { display: none; } }
