    /* ===== TOKENS — Clay Morphism Legal ===== */
    :root {
      /* Royal palette — 60% burgundy canvas, 30% cream surfaces, 10% navy accent */
      --qc-burgundy: #5A0F2E;
      --qc-burgundy-deep: #4A0C26;
      --qc-cream: #FAF7F2;
      --qc-field: #FFFFFF;
      --qc-navy: #1A2841;
      --qc-navy-hover: #24365A;
      --qc-logo-gold: #C2AE69; /* brand-deck gold: logo only, on dark backgrounds */
      --ctx-ink: var(--qc-cream);
      --ctx-text: rgba(250,247,242,0.94);
      --ctx-muted: rgba(250,247,242,0.80);
      --ctx-accent: var(--qc-cream);
      --ctx-on-accent: var(--qc-burgundy);
      --ctx-line: rgba(250,247,242,0.20);

      --clay-bg:       #FDFBF6;
      --clay-surface:  #FFFFFF;
      --clay-raised:   #FFFFFF;
      --clay-deep:     #4A0E1C;
      --clay-deep-h:   #6B1630;
      --clay-gold:     #B8963E;
      --clay-gold-accessible: #7A5C18;
      --text-on-maroon: #F5EDE0;
      --text-muted-on-maroon: #D4C2CA;
      --icon-on-maroon: #F2C879;
      --cta-on-gold:   #3D2405;
      --cream-tint:    #F7F0E2;
      --text-gold-on-light: #7A5C18;
      --border-gold-strong: #D4BD8C;
      --field-fill:    #FDFBF6;
      --brand-gradient: linear-gradient(165deg, #551030 0%, #4A0C26 55%, #3E0920 100%);
      --brand-gradient-h: linear-gradient(165deg, #5E1236 0%, #520E2B 55%, #440A23 100%);
      --space-xs: 8px;
      --space-sm: 16px;
      --space-md: 24px;
      --space-lg: 40px;
      --space-xl: 64px;
      --space-2xl: 96px;
      --clay-gold-lt:  rgba(184,150,62,0.18);
      --clay-text:     #1F1412;
      --clay-muted:    #3D2A24;
      --shadow-sm: 0 1px 3px rgba(20,4,10,0.18);
      --shadow-md: 0 4px 14px rgba(20,4,10,0.22);
      --shadow-lg: 0 10px 30px rgba(20,4,10,0.26);
      --shadow-inset: inset 0 1px 2px rgba(20,4,10,0.10);
      --shadow-press: inset 0 2px 4px rgba(20,4,10,0.16);
      --display: 'Cormorant Garamond', Georgia, serif;
      --body:    'Inter', system-ui, sans-serif;
      --sidebar-w: 215px;
      --radius-sm: 14px;
      --radius-md: 20px;
      --radius-lg: 28px;
      --radius-xl: 36px;
      --text-body: 16px;
      --text-small: 14px;
      --lh-prose: 1.6;
      --measure: 68ch;
      --content-max: 1480px;
      --ease-out: cubic-bezier(.16, 1, .3, 1);
      --motion-micro: 220ms;
      --motion-std: 400ms;
      --motion-reveal: 700ms;
    }
    * { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; overflow-x: clip; overflow-y: auto; background: var(--qc-cream); --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347; --ctx-accent: var(--qc-navy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(26,40,65,0.16); }
    body { background: var(--qc-cream); color: var(--ctx-text); font-family: var(--body); font-weight: 400; font-size: var(--text-body); line-height: var(--lh-prose); -webkit-font-smoothing: antialiased; overflow-x: clip; overflow-y: visible; --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347; --ctx-accent: var(--qc-navy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(26,40,65,0.16); }
    body::before { display: none; }
    .skip-link { position: fixed; top: -60px; left: 12px; z-index: 100; background: var(--brand-gradient); color: var(--qc-cream); padding: 10px 16px; border-radius: 8px; font-family: var(--body); font-weight: 500; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; transition: top .2s ease; --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .skip-link:focus { top: 12px; }
    a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--ctx-accent); outline-offset: 3px; border-radius: 4px; }
    .noscript-note { background: var(--brand-gradient); color: var(--qc-cream); text-align: center; padding: 12px 20px; font-family: var(--body); font-size: 13px; line-height: 1.5; --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .noscript-note a { color: var(--ctx-accent); }
    .consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; padding: 12px 14px; background: var(--qc-burgundy); border: 1px solid rgba(107,22,48,0.14); border-radius: var(--radius-sm); font-family: var(--body); font-weight: 400; font-size: 12.5px; line-height: 1.5; color: var(--ctx-text); cursor: pointer; --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .consent input { margin-top: 1px; flex: none; width: 17px; height: 17px; accent-color: var(--ctx-ink); cursor: pointer; }
    .foot-disclaimer { margin-top: 36px; font-family: var(--body); font-weight: 300; font-size: 11px; line-height: 1.7; color: rgba(250,247,242,0.80); max-width: 920px; opacity: 1; }
    ::selection { background: var(--clay-deep); color: var(--qc-cream); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }

    /* ===== UTILITY ===== */
    .caps { font-family: var(--body); font-weight: 600; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ctx-accent); }
    .caps .gold { color: var(--ctx-accent); }
    .gold { color: var(--ctx-accent); }
    .scroll-prog { position: fixed; left: calc(var(--sidebar-w)); top: 0; width: 3px; height: 100vh; background: linear-gradient(to bottom, var(--ctx-accent), var(--clay-deep)); transform: scaleY(0); transform-origin: top; z-index: 31; border-radius: 0 3px 3px 0; }

    /* ===== SIDEBAR ===== */
    .sidebar {
      --sb-burgundy: #3E0A20;   /* one step deeper than the #5A0F2E canvas, so the sidebar has an edge */
      --sb-deep: rgba(250,247,242,0.10);
      --sb-gold: var(--qc-cream); /* was #B8953F, an off-palette gold */
      --sb-ivory: #FAF7F2;
      position: fixed; top: 0; left: 0; z-index: 30; width: var(--sidebar-w); height: 100vh;
      background: var(--sb-burgundy); backdrop-filter: none; -webkit-backdrop-filter: none;
      box-shadow: none; border-right: 1px solid color-mix(in srgb, var(--ctx-accent) 22%, transparent); border-radius: 0;
      display: flex; flex-direction: column; padding: 28px 16px 22px; overflow-x: hidden; overflow-y: auto; --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .sidebar::before, .sidebar::after { display: none; }
    .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 4px 6px 12px; }
    .logo-mark { display: inline-block; width: 148px; height: 40px; flex: none; background-color: var(--ctx-accent); -webkit-mask: url(/logo-full.png) left center/contain no-repeat; mask: url(/logo-full.png) left center/contain no-repeat; }
    .side-nav { flex: 1 1 auto; display: flex; flex-direction: column; margin-top: 16px; min-height: 0; }
    .side-links { display: flex; flex-direction: column; gap: 2px; margin: 0; }
    .side-links a { font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif; font-weight: 500; font-size: 14.5px; line-height: 1.4; color: var(--qc-cream); text-decoration: none; padding: 8px 10px; border-radius: 8px; transition: background-color .2s ease, color .2s ease; position: relative; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
    .side-links a[hidden],
    .side-links a[data-sec="blog"],
    .side-nav a[href="#blog"],
    .side-nav a[href="#insights"],
    .side-nav a[href="/blog"],
    .side-links a[href="#blog"],
    .side-links a[href="#insights"],
    .side-links a:not(:has(svg)) { display: none !important; visibility: hidden !important; height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; }
    .side-links a svg { width: 15px; height: 15px; flex: none; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }
    .side-links a:hover { color: var(--qc-cream); background: rgba(250,247,242,0.08); box-shadow: none; }
    .side-links a.active { color: var(--qc-cream); font-weight: 600; background: var(--sb-deep, #390B1D); box-shadow: inset 3px 0 0 var(--sb-gold, var(--ctx-accent)); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .side-links a.active svg { stroke: var(--sb-gold, var(--ctx-accent)); }
    .side-links a:focus-visible { outline: 2px solid var(--sb-gold, var(--ctx-accent)); outline-offset: 2px; }
    .side-sep { height: 1px; margin: auto 8px 18px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ctx-accent) 45%, transparent), transparent); }
    .track-case { margin-top: 16px; padding: 12px 14px; background: transparent; border-radius: var(--radius-sm); box-shadow: none; border: 1px solid var(--ctx-accent); }
    .tc-head { display: flex; align-items: center; gap: 7px; font-family: var(--body); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--qc-cream); font-weight: 600; }
    .tc-head svg { width: 14px; height: 14px; flex: none; stroke: var(--ctx-accent); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
    .tc-divider { border-top: 1px solid color-mix(in srgb, var(--ctx-accent) 35%, transparent); margin: 9px 0; }
    .tc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
    .tc-item { display: flex; align-items: center; justify-content: space-between; gap: 7px; font-size: 11px; color: var(--qc-cream); font-weight: 400; }
    .tc-item .tc-left { display: flex; align-items: center; gap: 7px; }
    .tc-item svg { width: 12px; height: 12px; flex: none; stroke: var(--ctx-accent); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
    .tc-item .tc-arrow { color: var(--ctx-accent); font-size: 11px; flex: none; }
    .tc-btn { display: block; width: 100%; text-align: center; text-decoration: none; margin-top: 12px; background: transparent; color: var(--qc-cream); border: 1px solid var(--ctx-accent); border-radius: var(--radius-sm); padding: 10px; font-family: var(--body); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; box-shadow: none; transition: all .25s ease; }
    .tc-btn:hover { background: color-mix(in srgb, var(--ctx-accent) 14%, transparent); color: var(--qc-cream); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,0.18); }
    .tc-secure { margin-top: 8px; text-align: center; font-size: 8px; letter-spacing: 0.1em; color: var(--qc-cream); opacity: 0.85; }
    .side-tag { margin-top: 14px; text-align: center; font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif; font-weight: 600; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(250,247,242,0.62); opacity: 1; }
    .menu-btn { display: none; }
    .nav-head { display: none; }
    .nav-backdrop { display: none; }

    /* ===== CONTENT LAYOUT ===== */
    .content { position: relative; z-index: 10; margin-left: var(--sidebar-w); overflow: visible; }
    .section { position: relative; padding: 96px 72px; }
    .section:not(#hero)::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(86%, 1100px); height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ctx-accent) 40%, transparent) 22%, color-mix(in srgb, var(--ctx-accent) 40%, transparent) 78%, transparent); }
    @media (min-width: 1500px) { .section:not(#hero) { max-width: none; } }
    .section.act-paper:not(#hero) > *:not(.ticker) { max-width: 1480px; margin-inline: auto; }

    /* ===== HERO ===== */
    #hero.section { min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-start; padding: 0; overflow: hidden; isolation: isolate; position: relative; background: #2C1810; --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .hero-photo {
      position: absolute; inset: 0; z-index: 0;
      width: 100%; height: 100%; overflow: hidden;
    }
    .hero-photo img {
      display: block; width: 100%; height: 100%;
      object-fit: cover; object-position: center;
    }
    .hero-photo::after {
      content: ''; position: absolute; inset: 0;
      background: linear-gradient(105deg,
        rgba(16,8,10,0.38) 0%,
        rgba(16,8,10,0.12) 48%,
        rgba(16,8,10,0.22) 100%);
      pointer-events: none;
    }
    .hero-main, .hero-base, .hero-preamble-bar { position: relative; z-index: 2; }
    .hero-main { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; width: 100%; padding: 28px 56px 12px; }
    .hero-text-stack {
      position: relative; z-index: 2;
      width: min(560px, 100%);
      display: flex; flex-direction: column; align-items: flex-start;
      background: var(--qc-burgundy);
      padding: 36px 40px 32px 36px;
      border-radius: 28px;
      border-left: 3px solid var(--ctx-accent);
      border-bottom: 2px solid color-mix(in srgb, var(--ctx-accent) 55%, transparent);
      box-shadow: 0 28px 64px rgba(12,6,8,0.32), 0 0 0 1px color-mix(in srgb, var(--ctx-accent) 18%, transparent); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .hero-intro { width: 100%; }
    .hero-copy { width: 100%; }
    .hero-cta { width: 100%; margin-top: 18px; }
    .hero-base { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 0; padding: 8px 56px 28px; }
    .hero-contact-rail {
      display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 12.5px; color: var(--qc-cream);
      background: var(--brand-gradient); padding: 10px 18px; border-radius: 999px;
      box-shadow: 0 10px 28px rgba(20,8,12,0.28); border: 1px solid color-mix(in srgb, var(--ctx-accent) 40%, transparent); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .hero-contact-rail a { color: var(--qc-cream); font-weight: 600; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--ctx-accent) 70%, transparent); }
    .hero-contact-rail a:hover { color: var(--ctx-accent); }
    .scrollcue span { color: var(--ctx-ink); text-shadow: 0 1px 0 var(--qc-cream); }
    .hrp-ring, .hrp-stat-card, .hero-right-panel { display: none; }
    @keyframes heroHue { 0%,100% { background-color: var(--clay-deep); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); } 50% { background-color: var(--ctx-accent); } }
    .hero-eyebrow { display: flex; align-items: center; gap: 12px; color: var(--ctx-accent); margin: 0; }
    .hero-eyebrow .rule { display: inline-block; width: 28px; height: 1.5px; background: var(--ctx-accent); flex: none; }
    .hero-place { margin-top: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ctx-ink); }
    .hero-title { margin: 18px 0 0; width: 100%; }
    .hero-wordmark { display: block; width: min(100%, 380px); aspect-ratio: 1056/442; background-color: var(--clay-deep); -webkit-mask: url(/hero-wordmark.png?v=3) left center/contain no-repeat; mask: url(/hero-wordmark.png?v=3) left center/contain no-repeat; filter: none; --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .hero-title-text { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 8vw, 96px); line-height: 0.9; color: var(--ctx-ink); letter-spacing: -0.01em; text-shadow: 4px 6px 16px rgba(107,22,48,0.15); }
    /* Constitution Preamble banner — burgundy marquee band across the top of the hero */
    .hero-preamble-bar { position: relative; margin: 0; display: flex; align-items: stretch; overflow: hidden; background: var(--brand-gradient); border-radius: 0; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--ctx-accent) 35%, transparent); box-shadow: 0 9px 24px rgba(107,22,48,0.2); min-height: 46px; --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .hero-preamble-bar::before { display: none; }
    .hpb-label { flex: none; position: relative; z-index: 2; display: flex; align-items: center; padding: 0 26px 0 28px; background: var(--ctx-accent); color: var(--ctx-on-accent); font-family: var(--body); font-weight: 700; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; box-shadow: 8px 0 18px rgba(86,15,41,0.45); }
    .hpb-marquee { flex: 1; position: relative; z-index: 1; overflow: hidden; display: flex; align-items: center; padding: 10px 0; -webkit-mask-image: linear-gradient(to right, #000 92%, transparent); mask-image: linear-gradient(to right, #000 92%, transparent); }
    .hpb-track { display: inline-flex; align-items: center; white-space: nowrap; will-change: transform; animation: hpbScroll 70s linear infinite; }
    .hero-preamble-bar.is-paused .hpb-track { animation-play-state: paused; }
    .hpb-seg { font-family: var(--display); font-weight: 400; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--qc-cream); padding-left: 28px; }
    .hpb-seg strong { font-weight: 700; color: var(--ctx-accent); }
    .hpb-dot { color: var(--ctx-accent); font-size: 9px; padding-left: 28px; }
    .hpb-toggle { flex: none; z-index: 2; width: 40px; height: 40px; margin: 3px 8px 3px 4px; border: 0; border-radius: 8px; background: rgba(250,247,242,0.08); color: var(--qc-cream); cursor: pointer; display: grid; place-items: center; }
    .hpb-toggle:hover { background: rgba(250,247,242,0.16); }
    .hpb-toggle svg { width: 16px; height: 16px; fill: currentColor; }
    .hpb-toggle .hpb-icon-play { display: none; }
    .hero-preamble-bar.is-paused .hpb-icon-pause { display: none; }
    .hero-preamble-bar.is-paused .hpb-icon-play { display: block; }
    @keyframes hpbScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
    .hero-sep { display: flex; align-items: center; gap: 12px; margin: 16px 0 14px; }
    .hero-sep::before { content: ""; display: block; width: 36px; height: 2px; background: var(--ctx-accent); border-radius: 2px; }
    .hero-sep::after { content: "\25C6"; font-size: 9px; color: var(--ctx-accent); }
    .hero-sub2 { font-family: var(--display); font-weight: 600; font-size: clamp(17px, 1.6vw, 21px); color: var(--ctx-ink); margin: 0 0 8px; line-height: 1.4; }
    .hero-sub2 strong { color: var(--ctx-accent); }
    .tagline { max-width: 460px; font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(14px, 1.25vw, 17px); letter-spacing: 0.04em; line-height: 1.7; color: var(--ctx-text); margin: 0; }
    .cta-row { display: flex; gap: 14px; margin-top: 0; flex-wrap: wrap; }
    .hero-trust-line { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
    .hero-trust-line span { font-size: 11px; font-weight: 400; color: var(--ctx-text); display: flex; align-items: center; gap: 5px; }
    .hero-trust-enq { font-size: 11px; color: var(--ctx-ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--ctx-accent) 50%, transparent); }
    .hero-trust-enq:hover { color: var(--ctx-accent); }
    .btn { font-family: var(--body); font-weight: 500; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; padding: 15px 30px; text-decoration: none; cursor: pointer; border-radius: var(--radius-md); border: none; transition: background-color var(--motion-micro) var(--ease-out), color var(--motion-micro) ease, box-shadow var(--motion-micro) ease, transform var(--motion-micro) var(--ease-out), border-color var(--motion-micro) ease, opacity var(--motion-micro) ease; position: relative; overflow: hidden; }
    .btn-primary { background: var(--ctx-accent); color: var(--ctx-on-accent); font-weight: 700; letter-spacing: 0.14em; padding: 17px 36px; box-shadow: 0 1px 2px rgba(20,4,10,0.12); border: 1px solid rgba(61,36,5,0.12); }
    .btn-primary:hover { background: color-mix(in srgb, var(--ctx-accent) 86%, var(--ctx-on-accent)); color: var(--ctx-on-accent); box-shadow: 0 4px 14px rgba(20,4,10,0.18); transform: translateY(-1px); }
    .btn-primary:active { box-shadow: var(--shadow-press); transform: translateY(1px); }
    .btn-secondary { background: var(--qc-cream); color: var(--ctx-ink); border: 1.5px solid color-mix(in srgb, var(--ctx-accent) 70%, transparent); box-shadow: none; opacity: 1; font-weight: 600; padding: 17px 32px; --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347; --ctx-accent: var(--qc-navy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(26,40,65,0.16); }
    .btn-secondary:hover { background: color-mix(in srgb, var(--ctx-accent) 12%, transparent); border-color: var(--ctx-accent); box-shadow: none; transform: translateY(-2px); }
    .practice-bar { margin-top: 22px; width: 100%; }
    .pb-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
    .pb-label { font-family: var(--body); font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ctx-accent); white-space: nowrap; font-weight: 600; }
    .pb-line { flex: 1; height: 1px; background: linear-gradient(90deg, color-mix(in srgb, var(--ctx-accent) 45%, transparent), transparent); }
    .pb-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .pb-chip { display: flex; align-items: center; gap: 7px; min-width: 0; background: var(--qc-burgundy); border: 1px solid color-mix(in srgb, var(--ctx-accent) 50%, transparent); border-radius: 999px; padding: 7px 10px; font-family: var(--body); font-weight: 500; font-size: 11px; letter-spacing: 0.02em; color: var(--ctx-ink); box-shadow: none; cursor: default; transition: all .25s ease; --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .pb-chip:hover { background: color-mix(in srgb, var(--ctx-ink) 7%, transparent); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
    .pb-chip svg { width: 14px; height: 14px; flex: none; stroke: var(--ctx-accent); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; color: var(--ctx-accent); }
    .pb-chip span { min-width: 0; line-height: 1.2; }
    .hero-dock { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
    .hero-trust-card { display: none; }
    @media (min-width: 1024px) {
      .hero-trust-card {
        display: flex; flex-direction: column; gap: 8px;
        width: min(280px, 100%);
        background: var(--qc-burgundy);
        color: var(--ctx-text);
        padding: 14px 16px;
        border-radius: 14px;
        border-left: 3px solid var(--ctx-accent);
        box-shadow: 0 16px 36px rgba(12,6,8,0.28), 0 0 0 1px color-mix(in srgb, var(--ctx-accent) 18%, transparent); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
      .hero-trust-row { display: flex; align-items: center; gap: 8px; font-family: var(--body); font-size: 12px; font-weight: 500; color: var(--ctx-ink); line-height: 1.3; }
      .hero-trust-row svg { width: 15px; height: 15px; flex: none; stroke: var(--ctx-accent); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
    }
    @media (max-width: 640px) {
      .pb-chips { grid-template-columns: repeat(2, 1fr); }
    }
    .scrollcue { position: static; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; flex: none; }
    .scrollcue span { font-size: 9px; letter-spacing: 0.3em; color: var(--ctx-accent); }
    .scrollcue i { width: 1.5px; height: 40px; background: linear-gradient(var(--ctx-accent), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
    @keyframes cue { 0%,100%{transform: scaleY(.3);opacity: .4}50%{transform: scaleY(1);opacity: 1} }
    .stat { flex: 1; }
    .stat:not(:first-child) { padding-left: 28px; }
    .stat-sep { width: 1px; height: 44px; background: linear-gradient(color-mix(in srgb, var(--ctx-ink) 30%, transparent), color-mix(in srgb, var(--ctx-ink) 6%, transparent)); flex: none; }
    .stat-num { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; color: var(--ctx-ink); text-shadow: 2px 3px 8px rgba(107,22,48,0.15); }
    .stat-label { margin-top: 6px; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ctx-accent); line-height: 1.5; font-weight: 500; }
    /* ===== ABOUT ===== */
    .two-col { display: grid; grid-template-columns: 4fr 6fr; gap: 72px; align-items: center; }
    .h-stmt { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.8vw, 50px); line-height: 1.06; color: var(--ctx-ink); text-transform: none; margin-top: 18px; text-shadow: 2px 4px 12px rgba(107,22,48,0.12); }
    .about-card { background: var(--qc-burgundy); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,0); padding: 44px; --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .about-body p.lead { position: relative; padding-top: 24px; font-family: var(--body); font-weight: 400; font-size: clamp(15px, 1.3vw, 17px); line-height: 1.85; color: var(--ctx-text); }
    .about-body p.lead::before { content: ''; position: absolute; top: 0; left: 0; width: 44px; height: 2.5px; border-radius: 2px; background: linear-gradient(90deg, var(--ctx-accent), color-mix(in srgb, var(--ctx-accent) 30%, transparent)); }
    .lead-in { font-weight: 600; color: var(--ctx-ink); }
    .about-body p.lead em { font-style: normal; font-weight: 600; color: var(--ctx-ink); }
    .about-body p.sub { margin-top: 16px; font-size: 14px; line-height: 1.9; color: var(--ctx-text); font-weight: 400; }
    .about-intro { margin-top: 26px; font-family: var(--body); font-weight: 300; font-size: clamp(14px, 1.15vw, 16px); line-height: 1.85; color: var(--ctx-muted); max-width: 460px; }
    .about-intro + .about-intro { margin-top: 12px; }
    .pq { position: relative; margin: 28px 0; padding: 20px 24px 20px 36px; background: color-mix(in srgb, var(--ctx-ink) 4%, transparent); border-radius: var(--radius-md); box-shadow: var(--shadow-inset); border-left: 3px solid var(--ctx-accent); }
    .pq-mark { font-family: var(--display); font-weight: 900; font-size: 52px; color: var(--ctx-accent); float: left; margin-right: 8px; line-height: 1; transform: translateY(6px); opacity: 0.7; }
    .pq-text { display: block; font-family: var(--display); font-weight: 300; font-style: italic; font-size: 22px; line-height: 1.65; color: var(--ctx-text); }
    .pillars { display: flex; gap: 20px; margin-top: 28px; flex-wrap: wrap; }
    .pillar { flex: 1; min-width: 100px; padding: 16px 18px; background: var(--qc-burgundy); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid rgba(255,255,255,0); transition: all .3s ease; --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .pillar:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
    .pillar-ico { display: block; margin-bottom: 8px; }
    .pillar-ico svg { width: 22px; height: 22px; stroke: var(--ctx-ink); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
    .pillar h4 { font-family: var(--body); font-weight: 500; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ctx-accent); }
    .pillar p { margin-top: 7px; font-size: 12.5px; color: var(--ctx-text); line-height: 1.6; }

    /* ===== TEAM ===== */
    .section-head { font-family: var(--display); font-weight: 900; font-size: clamp(32px, 4.5vw, 50px); color: var(--ctx-ink); line-height: 1; text-shadow: 2px 4px 12px rgba(107,22,48,0.12); }
    /* ===== TEAM — clay timeline ===== */
    .timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); margin-top: 24px; align-items: stretch; perspective: 1400px; }
    .tl-scales { display: none; }
    .tl-scales-line { width: clamp(40px, 8vw, 120px); height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ctx-accent) 50%, transparent)); position: relative; }
    .tl-scales-line:last-child { background: linear-gradient(90deg, color-mix(in srgb, var(--ctx-accent) 50%, transparent), transparent); }
    .tl-scales-line::after { content: ''; position: absolute; right: -1px; top: 50%; transform: translateY(-50%); width: 4px; height: 4px; border-radius: 50%; background: color-mix(in srgb, var(--ctx-accent) 70%, transparent); }
    .tl-scales-line:last-child::after { right: auto; left: -1px; }
    .tl-item--solo { grid-column: auto; justify-self: stretch; width: auto; max-width: none; }
    .timeline::before { display: none; }
    .tl-item { position: relative; display: flex; flex-direction: column; height: 100%; text-align: left; border: 1px solid color-mix(in srgb, var(--ctx-accent) 45%, transparent); border-radius: var(--radius-xl); padding: 16px 18px 0; background: var(--qc-burgundy); box-shadow: 0 10px 30px rgba(107,22,48,0.06); min-width: 0; overflow: hidden; transform-style: preserve-3d; transform-origin: center center; transition: box-shadow .45s var(--ease-out), border-color .45s ease; --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .tl-item::after { content: ''; position: absolute; top: 0; left: 0; z-index: 4; width: 42%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,248,235,0.42), transparent); transform: translateX(-160%) skewX(-16deg); pointer-events: none; }
    .tl-item.is-lit::after { animation: tl-sheen 0.9s var(--ease-out); }
    @keyframes tl-sheen { to { transform: translateX(320%) skewX(-16deg); } }
    .tl-node { display: none; }
    .tl-node::after { content: ''; position: absolute; inset: 4px; border-radius: 2px; background: var(--qc-burgundy); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .tl-meta { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
    .tl-role { font-family: var(--body); font-weight: 500; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ctx-ink); background: color-mix(in srgb, var(--ctx-accent) 14%, transparent); padding: 5px 13px; border-radius: 999px; box-shadow: 2px 3px 7px rgba(107,22,48,0.08), -1px -1px 4px rgba(255,255,255,0); }
    .tl-name { margin-top: 4px; font-family: var(--display); font-weight: 700; font-size: clamp(16px, 1.5vw, 23px); color: var(--ctx-ink); min-width: 0; overflow-wrap: break-word; }
    .tl-strip { display: flex; justify-content: center; align-items: center; position: relative; margin-top: 4px; overflow: visible; border-radius: 0; box-shadow: none; border: 0; background: transparent; }
    .tl-item:hover, .tl-item:focus-within { border-color: var(--ctx-accent); box-shadow: 0 22px 50px rgba(107,22,48,0.16), 0 0 0 1px color-mix(in srgb, var(--ctx-accent) 35%, transparent); }
    .tl-photo { position: relative; width: 118px; height: 118px; flex: none; aspect-ratio: 1; max-height: none; overflow: visible; background: transparent; box-shadow: none; }
    .tl-photo-inner { position: absolute; inset: 8px; overflow: hidden; border-radius: 50%; background: var(--qc-cream); box-shadow: 0 0 0 2px var(--ctx-accent), 0 8px 18px rgba(107,22,48,0.16); z-index: 2; --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347; --ctx-accent: var(--qc-navy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(26,40,65,0.16); }
    .tl-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--brand-gradient); z-index: 1; border-radius: 50%; --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .tl-init { font-family: var(--display); font-weight: 300; font-size: 28px; letter-spacing: 0.08em; color: var(--ctx-accent); }
    .tl-soon { display: none; }
    .tl-photo-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; z-index: 2; transition: transform 0.7s var(--ease-out); }
    .tl-item:hover .tl-photo-inner img, .tl-item:focus-within .tl-photo-inner img { transform: scale(1.08); }
    .tl-quote { position: static; z-index: auto; margin: 0 -18px 0; padding: 14px 18px 16px; max-width: none; width: auto; background: var(--clay-deep); border-radius: 0 0 calc(var(--radius-xl) - 1px) calc(var(--radius-xl) - 1px); text-align: left; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; flex: 1 1 auto; --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .tl-quote::before { display: none; }
    .tl-quote::after { content: ''; display: block; width: 0; height: 1.5px; margin-top: 10px; background: linear-gradient(90deg, var(--ctx-accent), transparent); transition: width 0.7s var(--ease-out); }
    .tl-item.is-inview .tl-quote::after, .tl-item:hover .tl-quote::after, .tl-item:focus-within .tl-quote::after { width: 56px; }
    .tl-q { margin: 0; font-family: var(--display); font-weight: 400; font-style: italic; font-size: 13px; line-height: 1.5; color: var(--qc-cream); text-align: left; width: 100%; }
    .tl-court { margin: 6px 0 0; font-family: var(--body); font-weight: 500; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ctx-accent); text-align: left; width: 100%; }
    .tl-bio-wrap { margin-top: 9px; min-width: 0; flex: none; display: flex; flex-direction: column; }
    .tl-bio { margin-top: 0; font-family: var(--body); font-weight: 400; font-size: clamp(11.5px, 0.85vw, 12.5px); line-height: 1.6; color: var(--ctx-text); overflow-wrap: normal; word-break: normal; hyphens: none; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(4 * 1.6em); }
    .tl-bio p { margin: 0 0 0.75em; font: inherit; color: inherit; }
    .tl-bio p:last-child { margin-bottom: 0; }
    .tl-bio-wrap.is-open .tl-bio { display: block; -webkit-line-clamp: unset; overflow: visible; min-height: 0; }
    .tl-more { display: inline-block; margin-top: 6px; background: none; border: 0; padding: 0; font-family: var(--body); font-size: 13px; font-weight: 500; color: var(--ctx-ink); cursor: pointer; letter-spacing: 0; text-transform: none; align-self: flex-start; }
    .tl-more:hover { color: var(--ctx-ink); }
    .tl-tags { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 7px; margin-top: 9px; margin-bottom: 0; min-height: calc(2 * 1.9em + 7px); }
    .tl-tag { font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ctx-accent); font-weight: 600; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--ctx-accent) 14%, transparent); box-shadow: 2px 3px 7px rgba(107,22,48,0.07), -1px -1px 4px rgba(255,255,255,0); }
    .tl-divider { display: none; }

    /* Align photo / role / name / bio / tags / quote across cards in the same row */
    @supports (grid-template-rows: subgrid) {
      .tl-item { display: grid; grid-template-rows: subgrid; grid-row: span 6; }
      .tl-bio-wrap { flex: none; }
      /* no percentage min-height: Safari resolves it against the whole subgrid area and the row balloons */
      .tl-quote { height: auto; min-height: 0; margin-top: 0; align-self: stretch; }
    }

    /* ===== COUNSEL — responsive container + 3/2/1 card grid ===== */
    #team { padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 48px); }
    #team .caps, #team .section-head, #team .timeline, #team .team-close { max-width: 1160px; margin-left: auto; margin-right: auto; }
    .team-close { margin-top: 28px; text-align: center; font-family: var(--display); font-size: 15px; font-style: italic; color: var(--ctx-ink); }
    @media (min-width: 992px) { #team { min-height: auto; display: flex; flex-direction: column; justify-content: center; } }
    @media (max-width: 991px) {
      .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 767px) {
      .timeline { grid-template-columns: 1fr; }
      .tl-photo { width: 104px; height: 104px; }
    }

    /* ===== PRACTICE ===== */
    .practice-layout { display: grid; grid-template-columns: 4fr 6fr; gap: 72px; align-items: start; }
    .practice-intro-card { background: var(--qc-burgundy); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,0); padding: 30px; position: sticky; top: 28px; --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .acc { margin-top: 0; }
    .acc-cluster + .acc-cluster { margin-top: 22px; }
    .acc-group { font-family: var(--body); font-weight: 600; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ctx-ink); margin: 0 0 8px; }
    .acc-row { margin-bottom: 7px; background: var(--qc-burgundy); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid rgba(255,255,255,0); overflow: hidden; transition: background var(--motion-std) var(--ease-out), border-color var(--motion-std) ease, box-shadow var(--motion-std) ease; --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .acc-row.open { background: var(--qc-burgundy); box-shadow: var(--shadow-md); border-color: var(--ctx-accent); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .acc-row:hover:not(.open) { box-shadow: var(--shadow-md); }
    .acc-head { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 44px; background: none; border: 0; text-align: left; cursor: pointer; padding: 11px 18px; color: inherit; }
    .acc-head .ttl { flex: 1; font-family: var(--body); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ctx-text); }
    .acc-head .badge { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ctx-accent); font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--qc-cream); flex: none; white-space: nowrap; box-shadow: 2px 2px 6px rgba(107,22,48,0.07), -1px -1px 3px rgba(255,255,255,0); --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347; --ctx-accent: var(--qc-navy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(26,40,65,0.16); }
    .acc-head .ico { font-size: 20px; color: var(--ctx-accent); transition: transform .18s ease; flex: none; font-family: var(--display); line-height: 1; }
    .acc-row.open .acc-head .ico { transform: rotate(45deg); color: var(--ctx-ink); }
    .acc-body { height: 0; overflow: hidden; opacity: 0; transition: height var(--motion-std) var(--ease-out), opacity var(--motion-micro) ease; }
    .acc-row.open .acc-body { opacity: 1; }
    .acc-body p { padding: 8px 18px 14px 20px; max-width: 600px; font-size: 13.5px; line-height: 1.75; color: var(--ctx-muted); font-weight: 400; }

    /* ===== TICKER ===== */
    .ticker { overflow: hidden; background: var(--brand-gradient); border-radius: var(--radius-md); margin: -96px -72px 48px; --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .ticker .track { display: inline-block; padding: 12px 0; animation: scroll-left 36s linear infinite; white-space: nowrap; }
    .ticker .track span { font-family: var(--display); font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ctx-accent); padding: 0 22px; }
    @keyframes scroll-left { from{transform: translateX(0)}to{transform: translateX(-50%)} }

    /* ===== TESTIMONIALS ===== */
    .tcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
    .tcard { background: var(--qc-burgundy); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); border: 1px solid rgba(255,255,255,0); padding: 36px 30px; transition: all .4s cubic-bezier(.25,.46,.45,.94); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .tcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
    .tcard .qm { font-family: var(--display); font-weight: 900; font-size: 46px; line-height: 0.4; color: var(--ctx-accent); opacity: 0.5; }
    .tcard blockquote { margin-top: 22px; font-family: var(--display); font-style: italic; font-weight: 400; font-size: 16px; line-height: 1.8; color: var(--ctx-text); }
    .tcard .uline { width: 22px; height: 2px; background: var(--ctx-accent); margin: 18px 0 12px; border-radius: 2px; }
    .tcard .client { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ctx-accent); font-weight: 500; }
    .tcard .area { margin-top: 4px; font-size: 12px; color: var(--ctx-muted); }
    .tcard .tstars { margin-top: 14px; font-size: 14px; letter-spacing: 2px; color: var(--ctx-accent); }
    .tcard .tstars span { color: color-mix(in srgb, var(--ctx-accent) 28%, transparent); }
    .contact-right { display: flex; flex-direction: column; min-width: 0; max-width: 100%; }
    .contact-right .info-card { order: 1; flex: none; min-height: auto; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; }
    .contact-right .review-cta { order: 2; margin: 16px 0 0; }
    .review-cta { margin-top: 22px; text-align: center; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
    .review-lead { font-family: var(--body); font-weight: 300; font-size: 13px; line-height: 1.5; color: var(--ctx-muted); margin-bottom: 0; }
    .review-lead strong { color: var(--ctx-ink); font-weight: 600; }
    .review-cta .btn { width: 100%; }
    .rf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .stars { display: flex; gap: 4px; }
    .stars .star { background: none; border: 0; cursor: pointer; font-size: 26px; line-height: 1; color: color-mix(in srgb, var(--ctx-accent) 30%, transparent); padding: 2px 3px; transition: color .15s, transform .15s; }
    .stars .star:hover { transform: scale(1.12); }
    .stars .star.on { color: var(--ctx-accent); }
    @media (max-width: 600px) { .rf-row { grid-template-columns: 1fr; } }
    .note { margin-top: 22px; font-family: var(--display); font-style: italic; font-size: 14px; color: var(--ctx-muted); }

    /* ===== BLOG / INSIGHTS ===== */
    .blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
    .bcard { background: var(--qc-burgundy); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); border: 1px solid rgba(255,255,255,0); overflow: hidden; cursor: pointer; transition: all .4s cubic-bezier(.25,.46,.45,.94); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .bcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
    .bc-media { aspect-ratio: 16/10; overflow: hidden; background: var(--qc-cream); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347; --ctx-accent: var(--qc-navy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(26,40,65,0.16); }
    .bc-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
    .bcard:hover .bc-media img { transform: scale(1.05); }
    .bc-media .ph-diamond { width: 28px; height: 28px; transform: rotate(45deg); border: 1.5px solid var(--ctx-accent); position: relative; box-shadow: 2px 3px 8px rgba(107,22,48,0.15); }
    .bc-media .ph-diamond::after { content: ''; position: absolute; inset: 7px; background: color-mix(in srgb, var(--ctx-accent) 40%, transparent); }
    .bc-media .ph-cat { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ctx-accent); font-weight: 500; }
    .bc-content { padding: 22px 22px 26px; }
    .bc-cat { font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ctx-accent); font-weight: 600; }
    .bc-title { margin-top: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.2; color: var(--ctx-ink); transition: color .25s; }
    .bcard:hover .bc-title { color: var(--ctx-accent); }
    .bc-excerpt { margin-top: 10px; font-family: var(--display); font-size: 14px; line-height: 1.7; color: var(--ctx-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .bc-meta { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .bc-date { font-size: 9.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ctx-muted); }
    .bc-more { font-size: 9.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ctx-ink); transition: color .25s; }
    .bcard:hover .bc-more { color: var(--ctx-accent); }
    .blog-state { grid-column: 1 / -1; padding: 56px 0; text-align: center; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ctx-accent); }
    .blog-viewall { margin-top: 36px; }
    /* blog overlays */
    .blog-overlay { position: fixed; inset: 0; z-index: 90; background: var(--qc-cream); overflow-y: auto; --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347; --ctx-accent: var(--qc-navy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(26,40,65,0.16); }
    .blog-overlay[hidden] { display: none; }
    .blog-overlay-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 40px; background: rgba(255,255,255,0.94); backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--ctx-accent) 20%, transparent); }
    .overlay-back { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ctx-ink); background: none; border: 0; cursor: pointer; font-weight: 500; transition: color .25s; }
    .overlay-back:hover { color: var(--ctx-accent); }
    .overlay-label { font-size: 9.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ctx-accent); }
    .blog-overlay-inner { max-width: 1180px; margin: 0 auto; padding: 46px 40px 90px; }
    .blog-overlay-inner.reader { max-width: 820px; }
    .blog-overlay-eyebrow { font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ctx-accent); font-weight: 500; }
    .blog-overlay-title { margin-top: 12px; font-family: var(--display); font-weight: 900; font-size: clamp(32px,5vw,56px); color: var(--ctx-ink); line-height: 1; }
    .blog-toolbar { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; border-bottom: 1px solid color-mix(in srgb, var(--ctx-accent) 20%, transparent); padding-bottom: 18px; }
    .blog-filters { display: flex; flex-wrap: wrap; gap: 8px 20px; }
    .blog-chip { position: relative; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ctx-muted); background: none; border: 0; padding: 0 0 5px; cursor: pointer; font-weight: 500; transition: color .25s; }
    .blog-chip:hover,.blog-chip.on { color: var(--ctx-ink); }
    .blog-chip::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0; background: var(--ctx-accent); transition: width .3s ease; }
    .blog-chip:hover::after,.blog-chip.on::after { width: 100%; }
    .blog-search input { font-size: 12px; color: var(--ctx-text); background: transparent; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--ctx-accent) 35%, transparent); padding: 6px 4px; min-width: 200px; outline: none; transition: border-color .25s; }
    .blog-search input:focus { border-bottom-color: var(--ctx-accent); }
    .blog-count { margin-top: 18px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ctx-muted); }
    .blog-grid--overlay { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 12px; }
    .blog-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 40px; }
    .blog-page { font-size: 11px; letter-spacing: 0.06em; color: var(--ctx-muted); background: none; border: 1px solid transparent; min-width: 34px; height: 34px; padding: 0 9px; cursor: pointer; border-radius: var(--radius-sm); transition: all .25s; }
    .blog-page:hover:not([disabled]) { color: var(--ctx-ink); border-color: color-mix(in srgb, var(--ctx-accent) 40%, transparent); }
    .blog-page.on { color: var(--ctx-ink); border-color: var(--ctx-accent); }
    .blog-page[disabled] { opacity: .35; cursor: default; }
    .blog-reader { margin-top: 36px; max-width: 760px; }
    .reader-back { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ctx-ink); background: none; border: 0; padding: 0; cursor: pointer; font-weight: 500; transition: color .25s; }
    .reader-back:hover { color: var(--ctx-accent); }
    .reader-back.bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--ctx-accent) 20%, transparent); }
    .reader-meta { margin-top: 26px; display: flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ctx-accent); font-weight: 500; }
    .reader-dot { opacity: .5; }
    .reader-title { margin-top: 14px; font-family: var(--display); font-weight: 900; font-size: clamp(26px,3.2vw,42px); line-height: 1.08; color: var(--ctx-ink); }
    .reader-rule { height: 1px; background: color-mix(in srgb, var(--ctx-accent) 40%, transparent); margin: 22px 0 4px; }
    .reader-cover { margin: 22px 0 6px; aspect-ratio: 16/8; overflow: hidden; border-radius: var(--radius-md); }
    .reader-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .reader-body { padding-top: 14px; }
    .bc-body-inner { max-width: 720px; }
    .bc-body-inner p { font-family: var(--display); font-size: 17px; line-height: 1.9; color: var(--ctx-text); margin-bottom: 16px; }
    .bc-body-inner .bp-h2 { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--ctx-accent); margin: 26px 0 10px; }
    .bc-body-inner .bp-h3 { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ctx-ink); margin: 20px 0 8px; }
    .bc-body-inner blockquote.bp-q { border-left: 2.5px solid var(--ctx-accent); padding-left: 20px; margin: 20px 0; font-family: var(--display); font-style: italic; font-size: 18px; line-height: 1.7; color: var(--ctx-ink); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
    .bc-body-inner a { color: var(--ctx-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ctx-accent) 50%, transparent); text-underline-offset: 3px; }
    .bc-body-inner ul,.bc-body-inner ol { margin: 0 0 16px 20px; font-family: var(--display); font-size: 17px; line-height: 1.85; color: var(--ctx-text); }
    .bc-body-inner li { margin-bottom: 6px; }
    .bc-body-inner figure.bp-img { margin: 20px 0; }
    .bc-body-inner figure.bp-img img { width: 100%; border-radius: var(--radius-md); display: block; }


    /* ===== CONTACT ===== */
    .trust { display: flex; justify-content: flex-start; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
    .trust-item { display: flex; align-items: center; gap: 9px; font-size: 11px; letter-spacing: 0.1em; color: var(--ctx-text); font-weight: 400; padding: 10px 16px; background: var(--qc-burgundy); border-radius: 999px; box-shadow: var(--shadow-sm); border: 1px solid rgba(255,255,255,0); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .trust-item svg { width: 15px; height: 15px; flex: none; stroke: var(--ctx-accent); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
    .contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; margin-top: 36px; align-items: stretch; width: 100%; min-width: 0; }
    .form { background: var(--qc-burgundy); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,0); padding: 30px 32px; min-width: 0; max-width: 100%; --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .form h3 { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--ctx-ink); }
    .field { margin-top: 22px; }
    .field label { display: block; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ctx-accent); margin-bottom: 8px; font-weight: 600; }
    .field input, .field textarea { width: 100%; min-height: 44px; background: var(--qc-field); border: 1px solid rgba(107,22,48,0.18); border-radius: var(--radius-sm); color: var(--ctx-text); font-family: var(--body); font-weight: 300; font-size: 14px; padding: 11px 14px; outline: none; box-shadow: var(--shadow-inset); transition: border-color var(--motion-micro) ease, box-shadow var(--motion-micro) ease, background-color var(--motion-micro) ease; --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347; --ctx-accent: var(--qc-navy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(26,40,65,0.16); }
    .field input:focus, .field textarea:focus { border-color: var(--ctx-accent); background: var(--qc-cream); box-shadow: inset 3px 3px 8px rgba(107,22,48,0.08), 0 0 0 2px color-mix(in srgb, var(--ctx-accent) 15%, transparent); --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347; --ctx-accent: var(--qc-navy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(26,40,65,0.16); }
    .field textarea { resize: vertical; min-height: 130px; }
    .submit { margin-top: 28px; width: 100%; background: var(--brand-gradient); color: var(--qc-cream); border: 0; padding: 16px; font-family: var(--body); font-weight: 500; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; border-radius: var(--radius-md); box-shadow: 6px 8px 20px rgba(107,22,48,0.25), -2px -2px 8px rgba(255,255,255,0); transition: all .25s ease; --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .submit:hover { background: var(--brand-gradient-h); box-shadow: 8px 12px 24px rgba(107,22,48,0.32), -2px -2px 8px rgba(255,255,255,0); transform: translateY(-2px); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .submit:active { box-shadow: var(--shadow-press); transform: translateY(1px); }
    .submit[disabled] { opacity: 0.7; cursor: default; }
    .hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
    .form-status { margin-top: 12px; min-height: 18px; font-size: 13px; line-height: 1.5; }
    .form-status.ok { color: var(--ctx-ink); }
    .form-status.err { color: #9b2226; }
    .confid { margin-top: 8px; font-family: var(--display); font-style: italic; font-size: 12.5px; color: var(--ctx-text); }
    .info-card { background: var(--brand-gradient); color: rgba(250,247,242,0.95); border-radius: var(--radius-xl); box-shadow: 12px 16px 40px rgba(107,22,48,0.28), -4px -4px 14px rgba(255,255,255,0); padding: 30px 32px; position: relative; overflow: hidden; min-width: 0; max-width: 100%; box-sizing: border-box; --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .info-card::before { display: none; }
    .info-card h3 { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ctx-accent); font-weight: 500; }
    .info-card h3::after { content: ''; display: block; width: 38px; height: 2px; margin-top: 12px; border-radius: 2px; background: linear-gradient(90deg, var(--ctx-accent), color-mix(in srgb, var(--ctx-accent) 0%, transparent)); }
    .ic-top { position: relative; z-index: 1; }
    .ic-list { list-style: none; margin: 22px 0 0; padding: 0; }
    .ic-row { display: flex; align-items: flex-start; gap: 14px; }
    .ic-row + .ic-row { margin-top: 18px; }
    .ic { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ctx-accent); border: 1px solid color-mix(in srgb, var(--ctx-accent) 45%, transparent); background: color-mix(in srgb, var(--ctx-accent) 8%, transparent); box-shadow: inset 0 0 12px color-mix(in srgb, var(--ctx-accent) 7%, transparent); }
    .ic svg { width: 17px; height: 17px; }
    .ic-meta { display: flex; flex-direction: column; gap: 3px; padding-top: 1px; min-width: 0; }
    .ic-label { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ctx-accent); font-weight: 600; }
    .ic-meta a { color: var(--qc-cream); text-decoration: none; font-family: var(--body); font-weight: 400; font-size: 14px; line-height: 1.55; transition: color .25s; overflow-wrap: anywhere; word-break: break-word; }
    .ic-meta a:hover { color: var(--ctx-accent); }
    .ic-meta .addr { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
    .ic-tag { position: relative; z-index: 1; margin-top: 22px; padding-top: 16px; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--qc-cream); font-weight: 500; border-top: 1px solid color-mix(in srgb, var(--ctx-accent) 22%, transparent); opacity: 0.9; }
    .ic-qr { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 9px; margin: 6px 0; }
    .ic-qr-tile { background: var(--qc-cream); padding: 8px; border-radius: 10px; box-shadow: 0 8px 22px rgba(74,12,24,0.32); line-height: 0; --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347; --ctx-accent: var(--qc-navy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(26,40,65,0.16); }
    .ic-qr-tile svg { display: block; width: 104px; height: 104px; }
    .ic-qr-cap { font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: color-mix(in srgb, var(--ctx-accent) 85%, transparent); font-weight: 600; }

    /* ===== FOOTER ===== */
    footer { position: relative; z-index: 10; background: var(--brand-gradient); color: var(--qc-cream); padding: 60px 72px 36px; border-radius: var(--radius-xl) var(--radius-xl) 0 0; box-shadow: 0 -8px 30px rgba(107,22,48,0.2); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
    .foot-logo-mark { display: block; width: 176px; height: 48px; background-color: var(--ctx-accent); -webkit-mask: url(/logo-full.png) left center/contain no-repeat; mask: url(/logo-full.png) left center/contain no-repeat; }
    .foot-logo-sub { font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ctx-accent); margin-top: 8px; font-weight: 500; }
    .ftag { margin-top: 16px; max-width: 300px; font-family: var(--display); font-style: italic; font-size: 15px; line-height: 1.65; color: var(--qc-cream); opacity: 0.88; }
    .jline { margin-top: 8px; max-width: 460px; font-family: var(--display); font-style: italic; font-size: 12.5px; color: var(--qc-cream); opacity: 0.8; }
    .foot-grid h5 { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ctx-accent); margin-bottom: 16px; font-weight: 500; }
    .foot-grid a { display: block; font-weight: 400; font-size: 13.5px; color: var(--qc-cream); text-decoration: none; line-height: 2.1; transition: color .25s; }
    .foot-grid a:hover { color: var(--ctx-accent); }
    .foot-portal-link { display: inline-block; margin-top: 12px; padding: 9px 18px; border: 1px solid var(--ctx-accent); border-radius: 999px; color: var(--qc-cream)!important; font-size: 10.5px!important; font-weight: 500!important; letter-spacing: 0.14em!important; text-transform: uppercase; line-height: 1!important; transition: all .25s!important; }
    .foot-portal-link:hover { background: color-mix(in srgb, var(--ctx-accent) 12%, transparent)!important; border-color: var(--ctx-accent)!important; }
    .foot-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(250,247,242,0.18); }
    .foot-bottom p { font-weight: 400; font-size: 10.5px; letter-spacing: 0.1em; color: rgba(250,247,242,0.80); opacity: 1; }

    /* ===== CONSISTENT CARD BORDERS + GOLD-HALO HOVER (matches the counsel cards) ===== */
    .about-card, .form, .practice-intro-card, .tcard, .bcard, .pillar, .acc-row, .trust-item, .review-form { border-color: color-mix(in srgb, var(--ctx-accent) 40%, transparent); }
    .info-card { border: 1px solid color-mix(in srgb, var(--ctx-accent) 30%, transparent); }
    .tcard:hover, .bcard:hover, .pillar:hover, .about-card:hover, .practice-intro-card:hover { border-color: var(--ctx-accent); box-shadow: 0 22px 50px rgba(107,22,48,0.14), 0 0 0 3px color-mix(in srgb, var(--ctx-accent) 16%, transparent); }
    .tcard:hover, .bcard:hover, .pillar:hover { transform: translateY(-6px); }

    /* ===== REVEAL ===== */
    [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity var(--motion-reveal) var(--ease-out), transform var(--motion-reveal) var(--ease-out); }
    [data-reveal].revealed { opacity: 1; transform: none; }
    /* Staggered children reveal */
    [data-reveal-stagger] > * { opacity: 0; transform: translateY(12px); transition: opacity var(--motion-std) var(--ease-out), transform var(--motion-std) var(--ease-out); }
    [data-reveal-stagger] > *:nth-child(1){transition-delay: .0s}
    [data-reveal-stagger] > *:nth-child(2){transition-delay: .1s}
    [data-reveal-stagger] > *:nth-child(3){transition-delay: .2s}
    [data-reveal-stagger] > *:nth-child(4){transition-delay: .3s}
    [data-reveal-stagger] > *:nth-child(5){transition-delay: .4s}
    [data-reveal-stagger] > *:nth-child(6){transition-delay: .5s}
    [data-reveal-stagger].revealed > * { opacity: 1; transform: translateY(0); }
    /* Slide in from left / right */
    [data-reveal-left] { opacity: 0; transform: translateX(-16px); transition: opacity var(--motion-reveal) var(--ease-out), transform var(--motion-reveal) var(--ease-out); }
    [data-reveal-left].revealed { opacity: 1; transform: translateX(0); }
    [data-reveal-right] { opacity: 0; transform: translateX(16px); transition: opacity var(--motion-reveal) var(--ease-out), transform var(--motion-reveal) var(--ease-out); }
    [data-reveal-right].revealed { opacity: 1; transform: translateX(0); }
    /* Scale up reveal for cards */
    [data-reveal-scale] { opacity: 0; transform: scale(0.98); transition: opacity var(--motion-std) var(--ease-out), transform var(--motion-std) var(--ease-out); }
    [data-reveal-scale].revealed { opacity: 1; transform: scale(1); }
    .count-up { display: inline-block; transition: all .3s ease; }

    /* ===== RESPONSIVE ===== */

    /* 4K / wide desktop (1920+) */
    @media (min-width: 1920px) {
      .section { padding: 104px 80px; }
      .section:not(#hero) { max-width: none; }
      .section.act-paper:not(#hero) > *:not(.ticker),
      .section.act-night > * { max-width: 1680px; }
      .ticker { margin: -104px -80px 48px; }
      .hero-main { padding-left: 80px; padding-right: 80px; }
      .hero-base { padding-left: 80px; padding-right: 80px; }
    }

    /* laptop + small laptop (1024-1439) */
    @media (max-width: 1439px) {
      .section { padding: 80px 60px; }
      .ticker { margin: -80px -60px 48px; }
      .hero-main { padding-left: 60px; padding-right: 60px; }
      .hero-base { padding-left: 60px; padding-right: 60px; }
      .two-col, .practice-layout { gap: 52px; }
      .foot-grid { gap: 32px; }
    }

    /* tablet (768-1023): collapse split layouts, 2-up card grids */
    @media (max-width: 1023px) {
      .section { padding: 64px 40px; }
      .ticker { margin: -64px -40px 48px; }
      .hero-main { padding-left: 40px; padding-right: 40px; }
      .hero-base { padding-left: 40px; padding-right: 40px; }
      .two-col, .practice-layout, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
      .practice-intro-card { position: static; }
      .about-card { padding: 28px; }
      .tcards, .blog-grid, .blog-grid--overlay { grid-template-columns: repeat(2, 1fr); }
      .foot-grid { grid-template-columns: 1fr 1fr; }
      .foot-grid > div:first-child { grid-column: 1 / -1; }
      .trust { gap: 10px; }
    }

    /* sidebar collapses to fixed top navbar + right drawer (<=900) */
    @media (max-width: 900px) {
      :root { --sidebar-w: 0px; }
      html { scroll-padding-top: 78px; }
      .sidebar { width: 100%; height: auto; flex-direction: row; align-items: center; justify-content: space-between; padding: 14px 20px; border-radius: 0; border-right: 0; border-bottom: 1px solid color-mix(in srgb, var(--ctx-accent) 22%, transparent); overflow: visible; background: var(--sb-burgundy); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
      .sidebar::before, .sidebar::after { display: none; }
      .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(42,8,19,0.45); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .4s ease; }
      .nav-backdrop.open { opacity: 1; pointer-events: auto; }
      .side-nav { position: fixed; inset: 0 0 0 auto; width: 82%; max-width: 340px; height: 100vh; margin: 0; z-index: 45; background: var(--sb-burgundy); border-left: 1px solid color-mix(in srgb, var(--ctx-accent) 22%, transparent); padding: 84px 22px 34px; transform: translateX(100%); transition: transform .45s cubic-bezier(.16,1,.3,1); overflow-y: auto; flex-direction: column; --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
      .side-nav.open { transform: translateX(0); box-shadow: -24px 0 70px rgba(42,8,19,0.28); }
      .nav-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
      .nav-head-label { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--qc-cream); font-weight: 500; }
      .nav-head-line { flex: 1; height: 1px; background: color-mix(in srgb, var(--ctx-accent) 35%, transparent); }
      .side-links { margin: 0; gap: 4px; }
      .side-links a { font-size: 16px; padding: 12px 12px; min-height: 44px; }
      .menu-btn { display: grid; gap: 5px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; z-index: 60; align-content: center; justify-items: center; }
      .menu-btn i { width: 24px; height: 1.5px; background: var(--ctx-accent); transition: transform .3s, opacity .3s; }
      .menu-btn.open i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
      .menu-btn.open i:nth-child(2) { opacity: 0; }
      .menu-btn.open i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
      .content { margin-left: 0; }
      .cta-row { flex-direction: column; }
      .cta-row .btn { width: auto; }
      .pb-chips { overflow-x: visible; }
      .pb-chips::-webkit-scrollbar { display: none; }
      #hero.section { padding: 0; }
      .hero-photo::after {
        background: linear-gradient(180deg, rgba(16,8,10,0.28) 0%, rgba(16,8,10,0.14) 55%, rgba(16,8,10,0.32) 100%);
      }
      .hero-right-panel { display: none; }
      .hero-text-stack { width: 100%; padding: 28px 24px 24px; }
      .hero-main { padding: 84px 20px 12px; }
      .hero-base { flex-wrap: wrap; padding: 8px 20px 24px; }
      .scroll-prog { display: none; }
      footer { padding: 56px 40px 32px; }
    }

    /* mobile (<=767): single-column grids, stacked team photo, compact padding */
    @media (max-width: 767px) {
      .section { padding: 48px 20px; }
      .ticker { margin: -48px -20px 40px; }
      .hero-preamble-bar { display: none; }
      #hero.section { padding: 0; }
      .hero-main { padding: 84px 20px 16px; }
      .scrollcue { display: none; }
      .tcards, .blog-grid, .blog-grid--overlay { grid-template-columns: 1fr; }
      .foot-grid { grid-template-columns: 1fr; }
      .foot-grid > div:first-child { grid-column: auto; }
      .about-card { padding: 18px; }
      .pillars { flex-direction: column; gap: 12px; }
      .pq { padding: 18px 18px 18px 28px; margin: 22px 0; }
      .pq-text { font-size: 18px; }
      .pq-mark { font-size: 42px; }
      .trust { gap: 8px; }
      footer { padding: 48px 20px 28px; }
      .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
      .acc-head { min-height: 44px; }
      .acc-body p { padding-left: 18px; padding-right: 18px; }
      .blog-page { min-width: 44px; height: 44px; }
      .stars .star { padding: 8px 7px; }
      .blog-overlay-bar { padding-left: 20px; padding-right: 20px; }
      .blog-overlay-inner { padding-left: 20px; padding-right: 20px; }
    }

    /* small phones (<=479): stack CTAs, tighten quote type */
    @media (max-width: 479px) {
      .section { padding: 44px 16px; }
      .ticker { margin: -44px -16px 36px; }
      #hero.section { padding: 0; }
      .hero-main { padding: 80px 16px 16px; }
      .cta-row { flex-direction: column; gap: 10px; }
      .cta-row .btn { width: 100%; }
      .pq-text { font-size: 16px; }
      .foot-bottom { flex-direction: column; gap: 8px; }
      .section.act-night { margin-inline: 10px !important; border-radius: 22px; }
      #portal.act-night { border-radius: 22px; }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      .ticker .track, .scrollcue i, .hpb-track { animation: none!important; }
      .float-cta { transition: none !important; }
      [data-reveal], [data-reveal-stagger] > *, [data-reveal-left], [data-reveal-right], [data-reveal-scale], .tl-item { opacity: 1!important; transform: none!important; filter: none!important; }
      .tl-item::after { display: none !important; }
      .tl-photo-inner img { transform: none !important; }
    }
    /* ===== A11Y / CONVERSION ADDITIONS ===== */
    :focus:not(:focus-visible) { outline: none; }
    .field select { width: 100%; background: var(--qc-cream); border: 1px solid rgba(107,22,48,0.18); border-radius: var(--radius-sm); color: var(--ctx-text); font-family: var(--body); font-weight: 300; font-size: 14px; padding: 11px 14px; outline: none; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%236B1630%27 stroke-width=%272%27%3E%3Cpolyline points=%276 9 12 15 18 9%27/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; box-shadow: var(--shadow-inset); cursor: pointer; transition: all .25s; --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347; --ctx-accent: var(--qc-navy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(26,40,65,0.16); }
    .field select:focus { border-color: var(--ctx-accent); background-color: rgba(255,248,235,0.7); }
    .float-cta { position: fixed; bottom: 28px; right: 28px; z-index: 50; background: var(--ctx-accent); color: var(--ctx-on-accent); text-decoration: none; display: flex; align-items: center; gap: 9px; padding: 13px 20px; border-radius: 999px; font-family: var(--body); font-weight: 600; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; box-shadow: 0 8px 24px color-mix(in srgb, var(--ctx-accent) 38%, transparent), 0 2px 6px rgba(61,36,5,0.18); border: 1px solid rgba(61,36,5,0.12); opacity: 0; transform: translateY(16px); transition: all .35s cubic-bezier(.25,.46,.45,.94); pointer-events: none; }
    .float-cta.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
    .float-cta.on-contact { opacity: 0 !important; pointer-events: none !important; transform: translateY(16px); }
    .float-cta:hover { background: var(--ctx-accent); color: var(--ctx-on-accent); transform: translateY(-3px); box-shadow: 0 12px 28px color-mix(in srgb, var(--ctx-accent) 42%, transparent); }
    .fc-icon { font-size: 14px; }
    .fc-text { white-space: nowrap; }
    @media (max-width: 900px) { .float-cta { display: none; } }
    @media (max-width: 380px) { .hero-trust-line { flex-direction: column; gap: 8px; align-items: flex-start; } }
    /* ===== FULL-CLAYMORPHISM CLEAR BORDERS + NEW IA SECTIONS ===== */
    .about-card,.tl-item,.practice-intro-card,.acc-row,.pillar,.tcard,.bcard,.form,.info-card,.review-form,.trust-item,.hrp-stat-card,.why-card,.ind-tag,.hww-step,.careers-card{border: 1.5px solid rgba(107,22,48,0.24)}
    .hero-sub2{font-family: var(--display);font-weight: 600;font-size: clamp(17px,1.6vw,21px);color: var(--ctx-ink);margin: 0 0 8px;line-height: 1.4}
    .hero-sub2 strong{color: var(--ctx-accent)}
    /* Why */
    .why-head { max-width: 620px; }
    .why-head .section-head { margin-top: 8px; }
    .why-lead { margin-top: 12px; font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.7; color: var(--ctx-text); }
    .why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); margin-top: 28px; align-items: stretch; }
    .why-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; background: var(--qc-burgundy); border-radius: 22px; box-shadow: var(--shadow-md); padding: 20px 20px 22px; overflow: hidden; transition: transform .3s cubic-bezier(.25,.46,.45,.94), box-shadow .3s cubic-bezier(.25,.46,.45,.94), border-color .3s; --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .why-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ctx-accent); transform: scaleY(0); transform-origin: top; transition: transform .28s ease; }
    .why-card:hover, .why-card:focus-within { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--ctx-accent); }
    .why-card:hover::before, .why-card:focus-within::before { transform: scaleY(1); }
    .why-card-top { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 14px; }
    .why-n { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: 0.18em; color: var(--ctx-accent); }
    .why-ico { font-size: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--qc-cream); border: 1.5px solid color-mix(in srgb, var(--ctx-accent) 45%, transparent); margin: 0; flex: none; transition: background .25s, border-color .25s, transform .25s; --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347; --ctx-accent: var(--qc-navy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(26,40,65,0.16); }
    .why-ico svg { width: 22px; height: 22px; stroke: var(--ctx-ink); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
    .why-card:hover .why-ico, .why-card:focus-within .why-ico { background: color-mix(in srgb, var(--ctx-accent) 16%, transparent); border-color: var(--ctx-accent); transform: scale(1.06); }
    .why-card h3 { font-family: var(--display); font-weight: 700; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.2; color: var(--ctx-ink); margin: 0 0 10px; }
    .why-card p { font-size: 15px; line-height: 1.75; color: var(--ctx-text); font-weight: 400; margin: 0; opacity: 1; }
    /* Industries */
    .ind-grid{display: flex;flex-wrap: wrap;gap: 12px;margin-top: 32px}
    .ind-tag{background: var(--qc-cream);border-radius: 999px;box-shadow: var(--shadow-sm);padding: 12px 22px;font-family: var(--display);font-weight: 600;font-size: 15px;color: var(--ctx-ink);transition: transform .25s,box-shadow .25s,border-color .25s; --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347; --ctx-accent: var(--qc-navy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(26,40,65,0.16); }
    .ind-tag:hover{transform: translateY(-3px);box-shadow: var(--shadow-md);border-color: var(--ctx-accent);color: var(--ctx-accent)}
    /* How We Work — docket process rail */
    .hww {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 20px;
      margin: 40px 0 0;
      padding: 0;
      list-style: none;
      position: relative;
      isolation: isolate;
    }
    .hww-step {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      min-width: 0;
      min-height: 100%;
      position: relative;
      z-index: 1;
      margin: 0;
      background: var(--brand-gradient);
      color: var(--qc-cream);
      border-radius: 16px;
      border: 1px solid color-mix(in srgb, var(--ctx-accent) 48%, transparent);
      box-shadow: 0 14px 28px rgba(74,14,28,0.20);
      padding: 28px 22px 26px;
      transition: border-color var(--motion-micro) var(--ease-out), box-shadow var(--motion-micro) var(--ease-out), background var(--motion-micro) var(--ease-out); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .hww-step::before {
      content: '';
      position: absolute;
      top: 0;
      left: 22px;
      right: 22px;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--ctx-accent), transparent);
      pointer-events: none;
    }
    .hww-step:hover,
    .hww-step:focus-within {
      border-color: var(--ctx-accent);
      background: var(--brand-gradient-h);
      box-shadow: 0 18px 36px rgba(74,14,28,0.26); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .hww-n {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      flex: none;
      margin: 0 0 14px;
      border-radius: 50%;
      border: 1px solid var(--ctx-accent);
      background: #3A0B16;
      font-family: var(--display);
      font-weight: 700;
      font-size: 17px;
      letter-spacing: 0.04em;
      font-variant-numeric: tabular-nums;
      line-height: 1;
      color: var(--ctx-accent);
      position: relative;
      z-index: 2;
    }
    .hww-step h4,
    .hww-step h2 {
      font-family: var(--display);
      font-weight: 700;
      font-size: clamp(22px, 1.7vw, 26px);
      line-height: 1.2;
      letter-spacing: -0.02em;
      color: var(--qc-cream);
      margin: 0 0 8px;
    }
    .hww-step p {
      font-size: 12.5px;
      line-height: 1.55;
      color: var(--qc-cream);
      margin: 0;
      max-width: 36ch;
    }
    /* Client Portal */
    .portal-card{background: var(--qc-burgundy);border: 1.5px solid color-mix(in srgb, var(--ctx-accent) 40%, transparent);border-radius: var(--radius-xl);box-shadow: var(--shadow-lg);padding: clamp(28px,4vw,56px);display: grid;grid-template-columns: 1fr 1fr;gap: clamp(28px,4vw,56px);align-items: start; --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .portal-card .caps .gold,.portal-card .caps{color: var(--ctx-accent)}
    .portal-lead{font-size: 15px;line-height: 1.8;color: var(--ctx-text);margin-top: 16px;margin-bottom: 0;max-width: 420px}
    .portal-left{display: flex;flex-direction: column;align-items: flex-start;min-width: 0}
    .portal-cta{display: inline-flex;align-items: center;justify-content: center;margin-top: 28px;position: relative;z-index: 1;text-decoration: none}
    a.btn.portal-cta{text-transform: none;letter-spacing: 0.06em;text-decoration: none;box-shadow: none}
    .portal-note{font-family: var(--display);font-style: italic;font-size: 12.5px;color: var(--ctx-muted);margin-top: 14px}
    .portal-feat-grid{display: grid;grid-template-columns: 1fr 1fr;gap: 22px 28px}
    .portal-feat-col{display: flex;flex-direction: column;gap: 22px;min-width: 0}
    .portal-feat-group .acc-group{margin-bottom: 8px}
    .portal-feats{list-style: none;display: flex;flex-direction: column;gap: 10px}
    .portal-feats li{position: relative;display: flex;align-items: flex-start;gap: 8px;padding-left: 0;font-size: 13.5px;line-height: 1.5;color: var(--ctx-text)}
    .portal-feats li svg{width: 16px;height: 16px;flex: none;margin-top: 2px;stroke: var(--ctx-accent);stroke-width: 1.7;fill: none;stroke-linecap: round;stroke-linejoin: round}
    #contact .caps, #contact .caps .gold { color: var(--ctx-ink); }
    #enquiry.form { padding: 0; overflow: hidden; background: var(--qc-burgundy); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    #enquiry .form-head { background: var(--clay-deep); padding: 22px 28px 20px; --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    #enquiry .form-head h3 { color: var(--qc-cream); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; margin: 0; }
    #enquiry .form-head-lead { margin-top: 8px; font-family: var(--body); font-size: 13px; line-height: 1.5; color: var(--qc-cream); font-style: normal; }
    #enquiry .form-body { padding: 8px 28px 28px; }
    #enquiry .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
    #enquiry .form-row .field { margin-top: 0; }
    #enquiry .form-body > .field { margin-top: 16px; }
    #enquiry .field label { color: var(--ctx-ink); }
    #enquiry .req { color: var(--ctx-ink); font-weight: 700; }
    #enquiry .field input,
    #enquiry .field textarea,
    #enquiry .field select {
      background-color: var(--qc-field);
      border: 1px solid color-mix(in srgb, var(--ctx-accent) 45%, transparent);
      box-shadow: none;
      border-radius: 10px; --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347; --ctx-accent: var(--qc-navy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(26,40,65,0.16); }
    #enquiry .field input:focus,
    #enquiry .field textarea:focus,
    #enquiry .field select:focus {
      background-color: var(--qc-field);
      border-color: var(--ctx-accent);
      box-shadow: 0 0 0 2px color-mix(in srgb, var(--ctx-accent) 18%, transparent); --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347; --ctx-accent: var(--qc-navy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(26,40,65,0.16); }
    #enquiry .field select {
      background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%236B1630%27 stroke-width=%272%27%3E%3Cpolyline points=%276 9 12 15 18 9%27/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 14px center;
    }
    #enquiry .field textarea { min-height: 110px; }
    #enquiry .field-error { display: none; margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--ctx-ink); }
    #enquiry .has-error .field-error { display: block; }
    #enquiry .field.has-error input,
    #enquiry .field.has-error textarea,
    #enquiry .field.has-error select { border-color: var(--ctx-ink); }
    #enquiry .consent-wrap { margin-top: 14px; }
    #enquiry .consent-wrap .consent { margin-top: 0; min-height: 44px; align-items: center; background: none; border: 0; padding: 10px 0; }
    #enquiry .consent input { width: 22px; height: 22px; margin: 0; flex: none; }
    #enquiry .enquiry-submit.btn-primary {
      margin-top: 18px;
      width: 100%;
      text-transform: none;
      letter-spacing: 0.06em;
      box-shadow: none;
      border-radius: 12px;
    }
    #enquiry .enquiry-submit.btn-primary:hover { box-shadow: none; }
    #enquiry .enquiry-submit.btn-primary[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; pointer-events: none; }
    @media (max-width: 767px) {
      #enquiry .form-row { grid-template-columns: 1fr; }
      #enquiry .form-head, #enquiry .form-body { padding-left: 20px; padding-right: 20px; }
    }
    /* Careers */
    .careers-card{background: var(--qc-burgundy);border-radius: var(--radius-xl);box-shadow: var(--shadow-lg);padding: clamp(28px,4vw,52px);display: flex;align-items: center;justify-content: space-between;gap: 32px;flex-wrap: wrap; --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .careers-lead{font-size: 15px;line-height: 1.8;color: var(--ctx-muted);margin-top: 14px;max-width: 560px}
    .careers-cta{flex: none;text-decoration: none}
    a.btn.careers-cta{text-transform: none;letter-spacing: 0.06em;box-shadow: none;text-decoration: none}
    a.btn.careers-cta:hover{box-shadow: none}
    /* responsive for new sections */
    @media (max-width: 1439px) and (min-width: 720px) {
      .hww { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
      .hww-step { grid-column: auto; }
      .hww-step p { max-width: none; }
    }
    @media (max-width:1023px){.why-grid{grid-template-columns: repeat(2,minmax(0,1fr))}.portal-card{grid-template-columns: 1fr;gap: 28px}.portal-feat-grid{grid-template-columns: 1fr 1fr}}
    @media (max-width: 767px) {
      .portal-feat-grid { grid-template-columns: 1fr; }
    }
    /* ===== ALTERNATING PAPER / NIGHT ACTS ===== */
    .section.act-night {
      max-width: none !important;
      margin-inline: 18px !important;
      border-radius: 32px;
      background: var(--qc-cream);
      color: var(--ctx-text);
      box-shadow: none; --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347; --ctx-accent: var(--qc-navy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(26,40,65,0.16); }
    #portal.act-night { border-radius: 32px; margin-top: 0 !important; padding-top: 48px; }
    .section.act-night > * { max-width: 1480px; margin-inline: auto; }
    .section.act-night::before {
      background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ctx-accent) 58%, transparent) 22%, color-mix(in srgb, var(--ctx-accent) 58%, transparent) 78%, transparent);
    }
    #portal.act-night::before { display: none; }
    .section.act-night .caps,
    .section.act-night .caps .gold { color: var(--ctx-accent); }
    .section.act-night .h-stmt,
    .section.act-night .section-head { color: var(--ctx-ink); text-shadow: 0 8px 28px rgba(0,0,0,0.28); }
    .section.act-night .h-stmt .gold,
    .section.act-night .section-head .gold { color: var(--ctx-accent); }
    .section.act-night .about-intro { color: var(--ctx-ink); }

    #about.act-night .about-card {
      background: var(--qc-burgundy);
      border: 1.5px solid color-mix(in srgb, var(--ctx-accent) 48%, transparent);
      box-shadow: 0 22px 50px rgba(0,0,0,0.28), 0 0 0 1px color-mix(in srgb, var(--ctx-accent) 12%, transparent); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    #about.act-night .lead { color: var(--ctx-text); }
    #about.act-night .lead-in,
    #about.act-night .lead em { color: var(--ctx-ink); }
    #about.act-night .sub { color: var(--ctx-text); }
    #about.act-night .pq { background: color-mix(in srgb, var(--ctx-ink) 5%, transparent); }
    #about.act-night .pq-text { color: var(--ctx-text); }
    #about.act-night .pq-mark { color: var(--ctx-accent); }
    #about.act-night .pillar {
      background: var(--qc-burgundy);
      border: 1.5px solid color-mix(in srgb, var(--ctx-accent) 35%, transparent); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    #about.act-night .pillar h4 { color: var(--ctx-accent); }
    #about.act-night .pillar p { color: var(--ctx-text); }

    #portal.act-night .portal-card {
      background: var(--qc-burgundy);
      border: 1.5px solid color-mix(in srgb, var(--ctx-accent) 52%, transparent);
      box-shadow: 0 24px 56px rgba(0,0,0,0.3), 0 0 0 1px color-mix(in srgb, var(--ctx-accent) 16%, transparent); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    #portal.act-night .portal-card .caps,
    #portal.act-night .portal-card .caps .gold { color: var(--ctx-accent); }
    #portal.act-night .portal-card .section-head { color: var(--ctx-ink); text-shadow: none; }
    #portal.act-night .portal-lead { color: var(--ctx-text); }
    #portal.act-night .portal-note { color: var(--ctx-muted); }
    #portal.act-night .portal-feats li { color: var(--ctx-text); }
    #portal.act-night .portal-cta { box-shadow: none; }
    a.btn.portal-cta:hover { box-shadow: none; }

    #careers.act-night {
      background: transparent;
      box-shadow: none;
      color: var(--ctx-ink);
    }
    #careers.act-night::before {
      background: linear-gradient(90deg, transparent, rgba(74,14,28,0.35) 22%, rgba(74,14,28,0.35) 78%, transparent);
    }
    #careers.act-night .careers-card {
      background: var(--qc-burgundy);
      box-shadow: var(--shadow-md);
      border: 1px solid rgba(26,40,65,0.12); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    #careers.act-night .caps,
    #careers.act-night .caps .gold { color: var(--ctx-ink); }
    #careers.act-night .section-head { color: var(--ctx-ink); text-shadow: none; }
    #careers.act-night .careers-lead { color: var(--ctx-text); }
    #careers.act-night .careers-cta {
      background: var(--qc-navy);
      color: var(--qc-cream);
      border-color: var(--qc-navy);
      box-shadow: none;
    }
    #careers.act-night .careers-cta:hover { background: var(--qc-navy-hover); color: var(--qc-cream); }
    .careers-roles { margin-top: 14px; font-size: 13.5px; line-height: 1.7; color: var(--ctx-text); max-width: 520px; }
    .careers-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; flex: none; }
    .careers-mail { font-size: 12.5px; color: var(--ctx-accent); text-decoration: none; border-bottom: 1px solid var(--ctx-line); }
    .careers-mail:hover { color: var(--ctx-ink); }

    #hero.act-paper {
      background: #2C1810;
      padding: 0; --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }

    /* ===== PAPER SECTIONS — same finish as night cream cards ===== */
    #process.act-paper,
    #practice.act-paper,
    #contact.act-paper,
    #testimonials.act-paper,
    #blog.act-paper {
      margin-inline: 18px;
      background: var(--qc-cream);
      box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ctx-accent) 18%, transparent), 0 12px 32px rgba(107,22,48,0.04); --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347; --ctx-accent: var(--qc-navy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(26,40,65,0.16); }
    #why.act-paper {
      margin-inline: 18px;
      background: #3B0A16;
      box-shadow: none;
    }
    #why.act-paper::before {
      background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ctx-accent) 55%, transparent) 22%, color-mix(in srgb, var(--ctx-accent) 55%, transparent) 78%, transparent);
    }
    #why.act-paper .caps,
    #why.act-paper .caps .gold { color: var(--ctx-accent); }
    #why.act-paper .section-head { color: var(--ctx-ink); text-shadow: none; }
    #why .why-lead { color: var(--ctx-muted); }
    #why.act-paper,
    #process.act-paper,
    #practice.act-paper { border-radius: 32px; }
    #process.act-paper .caps,
    #process.act-paper .caps .gold { color: var(--ctx-accent); }
    #process.act-paper .section-head,
    .section:has(.hww) > .section-head {
      color: var(--ctx-ink);
      font-size: clamp(40px, 5.2vw, 62px);
      text-shadow: 2px 4px 12px rgba(107,22,48,0.12);
    }
    #practice.act-paper { overflow: visible; }
    #practice.act-paper::before { opacity: 0.35; }
    #team.act-night .tl-item {
      background: var(--qc-burgundy);
      border: 1.5px solid color-mix(in srgb, var(--ctx-accent) 45%, transparent); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    #team.act-night .tl-name { color: var(--ctx-ink); }
    #team.act-night .tl-bio { color: var(--ctx-text); }
    #contact.act-paper,
    #testimonials.act-paper,
    #blog.act-paper { border-radius: 32px; }
    #contact.act-paper {
      overflow: visible;
      box-sizing: border-box;
      padding-bottom: 96px;
    }

    .why-card,
    .practice-intro-card,
    .form,
    .review-form,
    .tcard,
    .bcard {
      background: var(--qc-cream);
      border: 1.5px solid color-mix(in srgb, var(--ctx-accent) 42%, transparent);
      box-shadow: 0 14px 32px rgba(107,22,48,0.08); --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347; --ctx-accent: var(--qc-navy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(26,40,65,0.16); }
    #why .why-card {
      background: var(--qc-burgundy);
      border: 1.5px solid color-mix(in srgb, var(--ctx-accent) 35%, transparent);
      box-shadow: 0 18px 40px rgba(0,0,0,0.28); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .why-card:hover,
    .why-card:focus-within {
      border-color: var(--ctx-accent);
      box-shadow: 0 22px 50px rgba(0,0,0,0.34), 0 0 0 3px color-mix(in srgb, var(--ctx-accent) 22%, transparent);
    }
    #why .why-card h3 { color: var(--ctx-ink); }
    #why .why-card p { color: var(--ctx-text); font-weight: 400; }
    #why .why-n { color: var(--ctx-accent); }
    .why-ico {
      background: #EFE3D4;
      border-color: color-mix(in srgb, var(--ctx-accent) 50%, transparent);
    }
    .acc-row {
      background: var(--qc-burgundy);
      border: 1.5px solid color-mix(in srgb, var(--ctx-accent) 40%, transparent); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .acc-row.open {
      background: var(--qc-burgundy);
      border-color: var(--ctx-accent);
      box-shadow: 0 12px 28px rgba(107,22,48,0.12); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .acc-head { padding: 14px 20px; }
    .acc-head .ttl { font-size: 13px; letter-spacing: 0.08em; }
    .trust-item {
      background: var(--qc-burgundy);
      border: 1.5px solid color-mix(in srgb, var(--ctx-accent) 40%, transparent); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .form {
      box-shadow: 0 22px 50px rgba(107,22,48,0.12), 0 0 0 1px color-mix(in srgb, var(--ctx-accent) 12%, transparent);
    }
    .info-card {
      background: var(--brand-gradient);
      border: 1.5px solid color-mix(in srgb, var(--ctx-accent) 45%, transparent); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .tl-item {
      background: var(--qc-burgundy);
      border: 1.5px solid color-mix(in srgb, var(--ctx-accent) 45%, transparent); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }

    .sidebar {
      background: var(--sb-burgundy);
      border-right: 1px solid rgba(250,247,242,0.18); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .sidebar::before { display: none; }
    .side-links a.active {
      color: var(--qc-cream);
      background: var(--sb-deep);
      box-shadow: inset 3px 0 0 var(--sb-gold, var(--ctx-accent));
    }
    .track-case {
      background: transparent;
      border: 1px solid var(--ctx-accent);
    }

    footer {
      margin-inline: 18px;
      background: var(--brand-gradient);
      border-radius: 32px 32px 0 0;
      box-shadow: none; --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .float-cta {
      border: 1px solid rgba(61,36,5,0.12);
    }

    @media (max-width: 479px) {
      #why.act-paper, #process.act-paper, #practice.act-paper,
      #contact.act-paper, #testimonials.act-paper, #blog.act-paper,
      footer { margin-inline: 10px; }
      #why.act-paper, #process.act-paper, #practice.act-paper { border-radius: 22px; }
      #contact.act-paper, #testimonials.act-paper, #blog.act-paper { border-radius: 22px; }
      footer { border-radius: 22px 22px 0 0; }
    }
    /* ===== CAREERS MODAL (self-contained) ===== */
    .career-backdrop, .career-modal {
      --ease-out: cubic-bezier(.25, .46, .45, .94);
      --ease-spring: cubic-bezier(.16, 1, .3, 1);
    }
    .cm-hp {
      position: absolute;
      left: -9999px;
      opacity: 0;
      height: 0;
      width: 0;
    }
    .career-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(10, 3, 8, 0.75);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      z-index: 2000;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.35s var(--ease-out);
    }
    .career-backdrop.active {
      opacity: 1;
      pointer-events: auto;
    }
    .career-modal {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -52%) scale(0.96);
      width: min(680px, calc(100vw - 32px));
      max-height: min(90vh, 860px);
      overflow-y: auto;
      overflow-x: hidden;
      z-index: 2001;
      background: var(--parchment, #F5F0E8);
      border-radius: 16px;
      border: 1px solid rgba(26,10,14,0.10);
      box-shadow: 0 32px 80px rgba(10,3,8,0.35),
        0 8px 24px rgba(10,3,8,0.20);
      padding: 44px 44px 40px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.38s var(--ease-out),
        transform 0.38s var(--ease-out);
      scrollbar-width: thin;
      scrollbar-color: rgba(90,15,46,0.2) transparent;
    }
    .career-modal::-webkit-scrollbar { width: 4px; }
    .career-modal::-webkit-scrollbar-thumb {
      background: rgba(90,15,46,0.2);
      border-radius: 4px;
    }
    .career-modal.active {
      opacity: 1;
      pointer-events: auto;
      transform: translate(-50%, -50%) scale(1);
    }
    .career-modal[hidden] { display: none !important; }
    @media (min-width: 601px) {
      .career-modal.review-modal { width: min(560px, calc(100vw - 32px)); max-height: min(90vh, 720px); }
    }
    .review-modal .stars { gap: 6px; margin-top: 2px; }
    .review-modal .stars .star { font-size: 30px; padding: 4px 6px; min-width: 44px; min-height: 44px; color: var(--ctx-accent); }
    .review-modal .stars .star.on { color: var(--ctx-accent); }
    .cm-close {
      position: absolute;
      top: 18px;
      right: 18px;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: 1px solid rgba(26,10,14,0.15);
      background: rgba(255,255,255,0.6);
      color: var(--ctx-muted);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s ease;
      flex-shrink: 0;
    }
    .cm-close:hover {
      background: var(--brand-gradient);
      color: var(--qc-cream);
      border-color: transparent;
      transform: rotate(90deg); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .cm-close:focus-visible {
      outline: 2px solid var(--gold, var(--ctx-accent));
      outline-offset: 3px;
    }
    .cm-header { margin-bottom: 24px; }
    .cm-eyebrow {
      font-family: var(--sans, 'Inter', sans-serif);
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--ctx-accent);
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .cm-eyebrow::before {
      content: '';
      display: inline-block;
      width: 24px;
      height: 1.5px;
      background: var(--gold, var(--ctx-accent));
      flex: none;
    }
    .cm-title {
      font-family: var(--serif, 'Cormorant Garamond', serif);
      font-size: clamp(26px, 4vw, 36px);
      font-weight: 700;
      color: var(--ctx-ink);
      line-height: 1.05;
      margin-bottom: 10px;
    }
    .cm-desc {
      font-family: var(--serif, 'Cormorant Garamond', serif);
      font-style: italic;
      font-size: 15px;
      line-height: 1.7;
      color: var(--ctx-muted);
      max-width: 480px;
    }
    .cm-rule {
      display: flex;
      align-items: center;
      gap: 14px;
      margin: 20px 0 24px;
    }
    .cm-rule span:first-child,
    .cm-rule span:last-child {
      flex: 1;
      height: 1px;
      background: color-mix(in srgb, var(--ctx-accent) 35%, transparent);
    }
    .cm-diamond {
      font-size: 9px;
      color: var(--gold, var(--ctx-accent));
      opacity: 0.7;
      flex: none !important;
      height: auto !important;
      background: none !important;
    }
    .cm-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }
    @media (max-width: 540px) {
      .cm-row { grid-template-columns: 1fr; }
    }
    .cm-field {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-bottom: 18px;
    }
    .cm-field label {
      font-family: var(--sans, 'Inter', sans-serif);
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--ctx-accent);
    }
    .cm-optional {
      font-weight: 400;
      text-transform: none;
      letter-spacing: 0;
      font-size: 10px;
      color: var(--ctx-muted);
    }
    .cm-field input[type="text"],
    .cm-field input[type="email"],
    .cm-field input[type="tel"],
    .cm-field textarea {
      font-family: var(--serif, 'Cormorant Garamond', serif);
      font-size: 15px;
      color: var(--ctx-text);
      -webkit-text-fill-color: var(--ctx-text);
      caret-color: var(--ctx-ink);
      background: var(--qc-cream);
      border: 1.5px solid rgba(74,14,28,0.32);
      border-radius: 8px;
      padding: 11px 14px;
      outline: none;
      transition: border-color 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
      width: 100%;
      -webkit-appearance: none; --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347; --ctx-accent: var(--qc-navy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(26,40,65,0.16); }
    .cm-field input::placeholder,
    .cm-field textarea::placeholder {
      color: var(--ctx-muted);
      -webkit-text-fill-color: var(--ctx-muted);
      opacity: 1;
      font-style: italic;
    }
    .cm-field input::-webkit-input-placeholder,
    .cm-field textarea::-webkit-input-placeholder {
      color: var(--ctx-muted);
      -webkit-text-fill-color: var(--ctx-muted);
      opacity: 1;
    }
    .cm-field input:focus,
    .cm-field textarea:focus {
      border-color: var(--burgundy, var(--ctx-ink));
      background: var(--qc-cream);
      box-shadow: 0 0 0 3px rgba(90,15,46,0.08); --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347; --ctx-accent: var(--qc-navy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(26,40,65,0.16); }
    .cm-field.has-error input,
    .cm-field.has-error textarea,
    .cm-field.has-error select {
      border-color: #9B2226;
      box-shadow: 0 0 0 3px rgba(155,34,38,0.08);
    }
    .cm-field.has-success input,
    .cm-field.has-success textarea {
      border-color: #27AE60;
    }
    .cm-field textarea {
      resize: vertical;
      min-height: 110px;
      line-height: 1.6;
    }
    .cm-char-count {
      font-size: 11px;
      color: var(--ctx-muted);
      text-align: right;
      margin-top: -2px;
    }
    .cm-char-count.over { color: #9B2226; }
    .cm-select-wrap { position: relative; }
    .cm-select-wrap select {
      font-family: var(--serif, 'Cormorant Garamond', serif);
      font-size: 15px;
      color: var(--ctx-text);
      background: rgba(255,255,255,0.7);
      border: 1.5px solid rgba(26,10,14,0.15);
      border-radius: 8px;
      padding: 11px 38px 11px 14px;
      outline: none;
      width: 100%;
      appearance: none;
      -webkit-appearance: none;
      cursor: pointer;
      transition: border-color 0.22s ease, box-shadow 0.22s ease;
    }
    .cm-select-wrap select:focus {
      border-color: var(--burgundy, var(--ctx-ink));
      background: var(--qc-cream);
      box-shadow: 0 0 0 3px rgba(90,15,46,0.08); --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347; --ctx-accent: var(--qc-navy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(26,40,65,0.16); }
    .cm-select-icon {
      position: absolute;
      right: 14px;
      top: 50%;
      transform: translateY(-50%);
      pointer-events: none;
      color: var(--ctx-accent);
    }
    .cm-dropzone {
      position: relative;
      border: 2px dashed rgba(26,10,14,0.18);
      border-radius: 10px;
      background: rgba(255,255,255,0.5);
      min-height: 110px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: border-color 0.25s ease, background 0.25s ease;
      overflow: hidden;
    }
    .cm-dropzone:hover,
    .cm-dropzone:focus-visible,
    .cm-dropzone.dragover {
      border-color: var(--burgundy, var(--ctx-ink));
      background: rgba(90,15,46,0.04);
      outline: none;
    }
    .cm-dropzone.dragover {
      border-style: solid;
      background: rgba(90,15,46,0.06);
    }
    .cm-dropzone[data-state="filled"] {
      border-style: solid;
      border-color: rgba(39,174,96,0.5);
      background: rgba(39,174,96,0.04);
    }
    .cm-file-input {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      cursor: pointer;
      z-index: 2;
    }
    .cm-dz-empty {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      padding: 20px;
      text-align: center;
      pointer-events: none;
    }
    .cm-dz-icon {
      color: rgba(26,10,14,0.25);
      transition: color 0.2s, transform 0.2s;
    }
    .cm-dropzone:hover .cm-dz-icon,
    .cm-dropzone.dragover .cm-dz-icon {
      color: var(--ctx-ink);
      transform: translateY(-3px);
    }
    .cm-dz-label {
      font-family: var(--sans, 'Inter', sans-serif);
      font-size: 13px;
      font-weight: 400;
      color: var(--text-secondary, rgba(26,10,14,0.6));
    }
    .cm-dz-browse {
      color: var(--ctx-ink);
      font-weight: 600;
      text-decoration: underline;
      text-decoration-color: rgba(90,15,46,0.3);
    }
    .cm-dz-hint {
      font-size: 11px;
      color: var(--ctx-muted);
    }
    .cm-dz-selected {
      display: none;
      align-items: center;
      gap: 12px;
      padding: 16px 20px;
      width: 100%;
    }
    .cm-dropzone[data-state="filled"] .cm-dz-empty { display: none; }
    .cm-dropzone[data-state="filled"] .cm-dz-selected { display: flex; }
    .cm-dz-file-icon { font-size: 28px; flex: none; }
    .cm-dz-file-info { flex: 1; min-width: 0; }
    .cm-dz-filename {
      display: block;
      font-family: var(--sans, 'Inter', sans-serif);
      font-size: 13px;
      font-weight: 500;
      color: var(--ctx-text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .cm-dz-filesize {
      display: block;
      font-size: 11px;
      color: var(--ctx-muted);
      margin-top: 2px;
    }
    .cm-dz-remove {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: 1px solid rgba(26,10,14,0.15);
      background: none;
      color: var(--ctx-muted);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      flex: none;
      z-index: 3;
      position: relative;
      transition: all 0.2s;
    }
    .cm-dz-remove:hover {
      background: #9B2226;
      color: var(--qc-cream);
      border-color: transparent;
    }
    .cm-field-error {
      font-size: 11px;
      color: #9B2226;
      font-family: var(--sans, 'Inter', sans-serif);
      display: none;
    }
    .cm-field.has-error .cm-field-error { display: block; }
    .cm-consent { margin-bottom: 24px; }
    .cm-check-label {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      cursor: pointer;
    }
    .cm-checkbox {
      position: absolute;
      opacity: 0;
      width: 0;
      height: 0;
    }
    .cm-check-custom {
      width: 18px;
      height: 18px;
      border: 1.5px solid rgba(26,10,14,0.25);
      border-radius: 4px;
      background: rgba(255,255,255,0.8);
      flex: none;
      margin-top: 1px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
    }
    .cm-checkbox:checked + .cm-check-custom {
      background: var(--brand-gradient);
      border-color: var(--ctx-ink); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .cm-checkbox:checked + .cm-check-custom::after {
      content: '';
      width: 10px;
      height: 6px;
      border-left: 2px solid var(--qc-cream);
      border-bottom: 2px solid var(--qc-cream);
      transform: rotate(-45deg) translateY(-1px);
      display: block;
    }
    .cm-checkbox:focus-visible + .cm-check-custom {
      outline: 2px solid var(--gold, var(--ctx-accent));
      outline-offset: 2px;
    }
    .cm-check-text {
      font-family: var(--sans, 'Inter', sans-serif);
      font-size: 12px;
      line-height: 1.65;
      color: var(--ctx-muted);
    }
    .cm-submit {
      width: 100%;
      background: var(--brand-gradient);
      color: var(--qc-cream);
      border: none;
      border-radius: 8px;
      padding: 16px 24px;
      font-family: var(--sans, 'Inter', sans-serif);
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      transition: all 0.25s ease;
      margin-bottom: 14px;
      min-height: 52px;
      box-shadow: 0 4px 16px rgba(90,15,46,0.25); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .cm-submit:hover:not(:disabled) {
      background: var(--brand-gradient-h);
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(90,15,46,0.32); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .cm-submit:active:not(:disabled) { transform: translateY(0); }
    .cm-submit:disabled { opacity: 0.7; cursor: not-allowed; }
    .cm-submit.loading .cm-submit-text,
    .cm-submit.loading .cm-submit-arrow { display: none; }
    .cm-submit.loading .cm-submit-spinner { display: block !important; }
    .cm-submit.success {
      background: #1E7E34;
      box-shadow: 0 4px 16px rgba(30,126,52,0.3);
    }
    .cm-submit.success:hover {
      background: #1E7E34;
      transform: none;
    }
    @keyframes cm-spin { to { transform: rotate(360deg); } }
    .cm-spin { animation: cm-spin 0.8s linear infinite; }
    .cm-status {
      padding: 12px 16px;
      border-radius: 8px;
      font-size: 13px;
      font-family: var(--sans, 'Inter', sans-serif);
      line-height: 1.5;
      margin-bottom: 12px;
    }
    .cm-status.error {
      background: rgba(155,34,38,0.08);
      border: 1px solid rgba(155,34,38,0.25);
      color: #922B21;
    }
    .cm-status.success {
      background: rgba(30,126,52,0.08);
      border: 1px solid rgba(30,126,52,0.25);
      color: #1E7E34;
    }
    .cm-footer-note {
      font-family: var(--serif, 'Cormorant Garamond', serif);
      font-style: italic;
      font-size: 12px;
      color: var(--ctx-muted);
      text-align: center;
      line-height: 1.6;
    }
    .cm-success {
      text-align: center;
      padding: 20px 20px 10px;
    }
    .cm-success[hidden] { display: none !important; }
    .cm-success-icon {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      background: linear-gradient(135deg, #1E7E34, #27AE60);
      color: var(--qc-cream);
      font-size: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
      box-shadow: 0 8px 24px rgba(30,126,52,0.3);
      animation: successPop 0.5s var(--ease-spring) both;
    }
    @keyframes successPop {
      from { transform: scale(0); opacity: 0; }
      to   { transform: scale(1); opacity: 1; }
    }
    .cm-success-title {
      font-family: var(--serif, 'Cormorant Garamond', serif);
      font-size: 28px;
      font-weight: 700;
      color: var(--ctx-ink);
      margin-bottom: 14px;
    }
    .cm-success-body {
      font-family: var(--serif, 'Cormorant Garamond', serif);
      font-size: 16px;
      line-height: 1.75;
      color: var(--ctx-muted);
      max-width: 420px;
      margin: 0 auto 12px;
    }
    .cm-success-note {
      font-family: var(--serif, 'Cormorant Garamond', serif);
      font-style: italic;
      font-size: 13px;
      color: var(--ctx-muted);
      margin-bottom: 28px;
    }
    .cm-success-close {
      background: var(--brand-gradient);
      color: var(--qc-cream);
      border: none;
      border-radius: 8px;
      padding: 13px 32px;
      font-family: var(--sans, 'Inter', sans-serif);
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.25s ease; --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    .cm-success-close:hover {
      background: var(--brand-gradient-h);
      transform: translateY(-2px); --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80); --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20); }
    [data-theme="night"] .career-modal {
      background: #180E12;
      border-color: rgba(250,247,242,0.1);
    }
    [data-theme="night"] .cm-field input,
    [data-theme="night"] .cm-field textarea,
    [data-theme="night"] .cm-select-wrap select {
      background: rgba(255,255,255,0.06);
      border-color: rgba(250,247,242,0.12);
      color: var(--text-on-dark, rgba(250,247,242,0.92));
    }
    [data-theme="night"] .cm-field input:focus,
    [data-theme="night"] .cm-field textarea:focus {
      background: rgba(255,255,255,0.1);
      border-color: var(--gold, var(--ctx-accent));
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--ctx-accent) 12%, transparent);
    }
    [data-theme="night"] .cm-dropzone {
      background: rgba(255,255,255,0.04);
      border-color: rgba(250,247,242,0.15);
    }
    [data-theme="night"] .cm-close {
      background: rgba(255,255,255,0.08);
      color: rgba(250,247,242,0.7);
    }
    @media (max-width: 600px) {
      .career-modal {
        padding: 28px 20px 24px;
        max-height: 95vh;
        border-radius: 16px 16px 0 0;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateX(0) translateY(100%);
        width: 100%;
      }
      .career-modal.active {
        transform: translateX(0) translateY(0);
      }
      .cm-title { font-size: 26px; }
    }
    @media (prefers-reduced-motion: reduce) {
      .career-backdrop, .career-modal, .cm-close, .cm-success-icon, .cm-spin {
        animation: none !important;
        transition: none !important;
      }
    }

    /* ── Fix #1: reading comfort (body / small / measure) ── */
    @media (max-width: 767px) {
      :root { --text-body: 15px; }
    }
    .about-body p.lead,
    .about-body p.sub,
    .about-intro,
    .why-lead,
    .why-card p,
    #why .why-card p,
    .tl-bio,
    .acc-body p,
    .careers-lead,
    .careers-roles,
    .portal-lead,
    .portal-feats li,
    .pillar p,
    .tcard blockquote,
    .review-lead,
    .ftag,
    .jline,
    .foot-disclaimer,
    .tagline,
    .note,
    .confid,
    .cm-desc,
    .cm-success-body,
    .bc-excerpt,
    .bc-body-inner p,
    .practice-lead,
    .insights-lead,
    .team-close {
      font-size: var(--text-body);
      line-height: var(--lh-prose);
      max-width: var(--measure);
    }
    .foot-bottom p,
    .foot-grid a,
    .trust-item,
    .careers-mail,
    .portal-note,
    .form-status,
    #enquiry .field-error,
    #enquiry .form-head-lead,
    .consent,
    .tl-q,
    .tl-more,
    .tcard .area,
    .noscript-note,
    .hero-contact-rail,
    .hero-trust-row,
    .hero-trust-line span,
    .cm-footer-note,
    .cm-success-note,
    .cm-dz-label,
    .cm-dz-hint {
      font-size: var(--text-small);
      line-height: var(--lh-prose);
    }
    .foot-grid a { line-height: 2.1; }
    .sidebar,
    .sidebar .side-links a,
    .sidebar .tc-head,
    .sidebar .tc-item,
    .sidebar .tc-btn,
    .sidebar .side-tag,
    .sidebar .tc-secure,
    .sidebar .nav-head-label {
      font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
    }

    /* ===== PREMIUM REFINE — polish on the incumbent system ===== */
    .section.act-paper:not(#hero):not(#why) { background: var(--qc-cream); --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347; --ctx-accent: var(--qc-navy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(26,40,65,0.16); }
    #process.act-paper,
    #practice.act-paper,
    #contact.act-paper,
    #testimonials.act-paper,
    #blog.act-paper { background: var(--qc-cream); --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347; --ctx-accent: var(--qc-navy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(26,40,65,0.16); }
    @media (min-width: 1440px) {
      .hww::before {
        content: '';
        position: absolute;
        top: 50px;
        left: 32px;
        right: 32px;
        height: 1px;
        background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ctx-accent) 70%, transparent) 8%, color-mix(in srgb, var(--ctx-accent) 70%, transparent) 92%, transparent);
        z-index: 0;
        pointer-events: none;
      }
    }
    @media (max-width: 719px) {
      .hww {
        grid-template-columns: 1fr;
        gap: 14px;
      }
      .hww-step {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 16px;
        row-gap: 6px;
        padding: 22px 22px 22px 18px;
      }
      .hww-n {
        grid-row: 1 / span 2;
        align-self: start;
        margin: 0;
      }
      .hww-step h4,
      .hww-step h2 { margin: 4px 0 0; font-size: 22px; }
      .hww-step p {
        font-size: 12.5px;
        max-width: none;
      }
      .hww-step:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 39px;
        top: 66px;
        bottom: -14px;
        width: 1px;
        background: color-mix(in srgb, var(--ctx-accent) 50%, transparent);
        pointer-events: none;
        z-index: 0;
      }
    }
    .acc-row { position: relative; }
    .acc-row::before {
      content: '';
      position: absolute;
      left: 0; top: 0; bottom: 0;
      width: 2px;
      background: var(--ctx-accent);
      transform: scaleY(0);
      transform-origin: top;
      transition: transform var(--motion-std) var(--ease-out);
    }
    .acc-row.open::before { transform: scaleY(1); }
    .acc-head .ico { transition: transform var(--motion-std) var(--ease-out), color var(--motion-micro) ease; }
    .why-card { cursor: default; }
    .why-grid[data-reveal-stagger] > *,
    .hww[data-reveal-stagger] > * { min-width: 0; }
    .hero-photo { clip-path: inset(0); }
    .enquiry-submit.is-sending { letter-spacing: 0.12em; }
    button, a.btn, .acc-head, .tc-btn, .menu-btn { cursor: pointer; }
    .side-links a.active { position: relative; }
    footer { overflow: hidden; }
    @media (max-width: 900px) {
      .side-sep { margin: 18px 8px; }
    }

    /* ===== Royal palette: navy accent surfaces (10%) =====
       Navy sits on cream, or on burgundy with a cream hairline,
       because navy and burgundy have almost the same lightness (1.08:1). */
    .tl-quote { background: var(--qc-navy); }
    #enquiry .form-head { background: var(--qc-navy); }
    .info-card {
      background: var(--qc-navy);
      border: 1px solid rgba(250,247,242,0.28);
      box-shadow: 0 10px 30px rgba(10,14,28,0.30);
    }
    .info-card .ic-icon, .info-card [class*="ic-"] svg { color: var(--qc-cream); }
    #why.act-paper {
      background: var(--qc-navy);
      border: 1px solid rgba(250,247,242,0.22);
    }
    #why.act-paper::before { display: none; }

    /* ===== How We Work — cream step cards on the burgundy canvas ===== */
    .hww { gap: 20px; margin-top: 44px; counter-reset: none; }
    .hww-step {
      background: var(--qc-cream);
      color: #2B1E22;
      border: 1px solid rgba(26,40,65,0.10);
      border-radius: 18px;
      box-shadow: 0 1px 3px rgba(20,4,10,0.18);
      padding: 26px 24px 28px;
      --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347;
      --ctx-accent: var(--qc-navy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(26,40,65,0.16);
      transition: transform var(--motion-micro) var(--ease-out), box-shadow var(--motion-micro) var(--ease-out), border-color var(--motion-micro) var(--ease-out);
    }
    .hww-step::before { display: none; }
    .hww-step:hover,
    .hww-step:focus-within {
      background: var(--qc-cream);
      border-color: rgba(26,40,65,0.28);
      box-shadow: 0 6px 18px rgba(20,4,10,0.24);
      transform: translateY(-2px);
      --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347;
      --ctx-accent: var(--qc-navy); --ctx-on-accent: var(--qc-cream);
    }
    .hww-n {
      width: 44px; height: 44px; margin: 0 0 18px;
      background: var(--qc-navy);
      border: 0;
      color: var(--qc-cream);
      font-family: var(--body);
      font-size: 14px; font-weight: 600; letter-spacing: 0.06em;
      box-shadow: 0 0 0 4px var(--qc-cream), 0 0 0 5px rgba(26,40,65,0.18);
    }
    .hww-step h4,
    .hww-step h2 {
      color: var(--qc-burgundy);
      font-size: clamp(22px, 1.6vw, 25px);
      line-height: 1.2;
      letter-spacing: -0.01em;
      margin: 0 0 10px;
      min-height: 2.4em;           /* two title lines, so every description starts on the same line */
      text-wrap: balance;
    }
    .hww-step p {
      font-size: 15px;
      line-height: 1.6;
      color: #3A2C30;
      max-width: none;
    }
    @media (prefers-reduced-motion: reduce) {
      .hww-step, .hww-step:hover, .hww-step:focus-within { transition: none; transform: none; }
    }

    /* Connector: one cream line through the number badges, visible in the gaps between cards */
    @media (min-width: 1440px) {
      .hww { grid-template-columns: repeat(5, minmax(0, 1fr)); }
      .hww::before {
        content: '';
        position: absolute;
        top: 48px; left: 24px; right: 24px;
        height: 2px;
        background: rgba(250,247,242,0.45);
        z-index: 0;
        pointer-events: none;
      }
    }
    /* Medium screens: 3 + 2, second row centred (no orphan card) */
    @media (min-width: 720px) and (max-width: 1439px) {
      .hww { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
      .hww::before { display: none; }
      .hww-step { grid-column: span 2; }
      .hww-step:nth-child(4) { grid-column: 2 / span 2; }
      .hww-step:nth-child(5) { grid-column: 4 / span 2; }
    }
    /* Phones: vertical timeline */
    @media (max-width: 719px) {
      .hww-step { padding: 20px 20px 22px 18px; }
      .hww-n { margin: 0; }
      .hww-step h4, .hww-step h2 { min-height: 0; font-size: 22px; margin: 6px 0 6px; }
      .hww-step p { font-size: 15px; }
      .hww-step:not(:last-child)::after {
        left: 40px; top: 70px; bottom: -14px; width: 2px;
        background: rgba(250,247,242,0.45);
      }
    }
    /* Align badge / title / description across cards in a row (subgrid), no fixed title height */
    @media (min-width: 720px) {
      .hww-step {
        display: grid;
        grid-template-rows: subgrid;
        grid-row: span 3;
        row-gap: 0;
        align-content: start;
      }
      .hww-step h4, .hww-step h2 { min-height: 0; align-self: end; }
      .hww-step p { align-self: start; }
    }

    /* ===== Counsel cards: tighter vertical rhythm =====
       The cards are a subgrid of .timeline, so they inherited its ~29px gap between
       every row (photo / role / name / bio / tags / quote). Remove it and space deliberately. */
    .tl-item { row-gap: 0; padding-top: 20px; }
    .tl-strip { margin-top: 0; }
    .tl-meta { margin-top: 14px; }
    .tl-name { margin-top: 8px; line-height: 1.2; }
    .tl-bio-wrap { margin-top: 10px; }
    .tl-tags { margin-top: 14px; min-height: 0; }
    .tl-quote { margin-top: 20px; }

    /* ===== Logo: brand-deck gold on dark surfaces (sidebar, mobile bar, footer) =====
       Gold is reserved for the logo; it is never used for text or buttons,
       and never on light surfaces (2.1:1 on ivory). */
    .sidebar .logo-mark,
    .foot-logo-mark { background-color: var(--qc-logo-gold); }

    /* ===== Client Portal button: navy, like the other primary buttons =====
       Navy and the deep burgundy sidebar are almost equally dark (1.12:1),
       so the ivory border keeps the button's edge visible. */
    .sidebar .tc-btn {
      background: var(--qc-navy);
      color: var(--qc-cream);
      border: 1px solid rgba(250,247,242,0.55);
    }
    .sidebar .tc-btn:hover,
    .sidebar .tc-btn:focus-visible {
      background: var(--qc-navy-hover);
      color: var(--qc-cream);
      border-color: var(--qc-cream);
    }

    /* Phones/one column: nothing to align across cards, so drop the subgrid
       (simpler layout, and avoids Safari subgrid sizing bugs). */
    @media (max-width: 719px) {
      .tl-item { display: flex; flex-direction: column; grid-row: auto; grid-template-rows: none; }
      .tl-quote { min-height: 0; height: auto; flex: none; }
    }

    /* =====================================================================
       Ivory canvas (60%) · burgundy cards (30%) · navy buttons (10%)
       ===================================================================== */
    .practice-intro-card, .form, .review-form, .tcard, .bcard {
      background: var(--qc-burgundy);
      --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80);
      --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20);
    }
    /* Why section: ivory like every other section (was a navy panel) */
    #why.act-paper {
      background: var(--qc-cream); border: 0;
      --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347;
      --ctx-accent: var(--qc-navy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(26,40,65,0.16);
    }
    /* How We Work: burgundy step cards */
    .hww-step, .hww-step:hover, .hww-step:focus-within {
      background: var(--qc-burgundy);
      color: rgba(250,247,242,0.94);
      border-color: rgba(90,15,46,0.20);
      --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80);
      --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20);
    }
    .hww-step:hover, .hww-step:focus-within { box-shadow: 0 8px 22px rgba(58,8,28,0.22); }
    .hww-step h4, .hww-step h2 { color: var(--qc-cream); }
    .hww-step p { color: rgba(250,247,242,0.88); }
    .hww-n { box-shadow: 0 0 0 3px var(--qc-burgundy), 0 0 0 4px rgba(250,247,242,0.55); }
    .hww::before { background: rgba(90,15,46,0.30); }                       /* connector on the ivory canvas */
    @media (max-width: 719px) { .hww-step:not(:last-child)::after { background: rgba(90,15,46,0.30); } }

    /* Buttons stay navy everywhere. Inside burgundy cards navy is nearly as dark (1.08:1),
       so a thin ivory edge keeps the button visible. */
    .btn-primary,
    .submit, .cm-submit, .cm-success-close, .cm-close:hover,
    #careers.act-night .careers-cta {
      background: var(--qc-navy);
      color: var(--qc-cream);
      border: 1px solid color-mix(in srgb, var(--ctx-ink) 45%, transparent);
    }
    .btn-primary:hover,
    .submit:hover, .cm-submit:hover:not(:disabled), .cm-success-close:hover,
    #careers.act-night .careers-cta:hover {
      background: var(--qc-navy-hover);
      color: var(--qc-cream);
    }
    .cm-checkbox:checked + .cm-check-custom { background: var(--qc-navy); }

    /* Hero stays as before: ivory card, burgundy wordmark, light chips and trust card */
    .hero-text-stack, .pb-chip, .hero-trust-card {
      background: var(--qc-cream);
      --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347;
      --ctx-accent: var(--qc-navy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(26,40,65,0.16);
    }
    .hero-wordmark { background-color: var(--qc-burgundy); }

    /* Navy quote strip under burgundy counsel cards: hairline so the join reads */
    .tl-quote { border-top: 1px solid rgba(250,247,242,0.14); }
    /* Contact details card is navy on the ivory canvas: no ivory frame needed */
    .info-card { border-color: transparent; box-shadow: 0 10px 28px rgba(26,40,65,0.22); }
    .practice-lead { color: var(--ctx-text); }  /* inherited a fixed dark brown; follow the burgundy card instead */
    /* Headings sit on ivory now: drop the glow shadows designed for the dark sections */
    .section-head, .h-stmt, .section.act-night .section-head, .stat-num { text-shadow: none; }

    /* Colour polish: one card language on every page.
       Why cards are burgundy wherever they appear (inner page matched the homepage). */
    .why-card {
      background: var(--qc-burgundy);
      border: 1.5px solid color-mix(in srgb, var(--qc-cream) 35%, transparent);
      box-shadow: 0 18px 40px rgba(62,10,32,0.22);
      --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80);
      --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20);
    }
    .why-card h2, .why-card h3 { color: var(--ctx-ink); }
    .why-card p { color: var(--ctx-text); }

    /* Disabled submit on a burgundy form: a quiet ivory outline instead of a muddy navy block. */
    #enquiry .enquiry-submit.btn-primary[disabled],
    .submit[disabled], .cm-submit:disabled {
      background: transparent;
      color: rgba(250,247,242,0.72);
      border: 1px dashed rgba(250,247,242,0.40);
      box-shadow: none;
      opacity: 1;
    }

    /* ===== Contact section polish =====
       One strong block (the burgundy form) beside a calm ivory contact card. */

    /* Trust chips: reassurance, not buttons */
    #contact .trust-item {
      background: var(--qc-cream);
      border: 1px solid rgba(90,15,46,0.22);
      box-shadow: none;
      color: var(--qc-burgundy);
      font-weight: 500;
      --ctx-ink: var(--qc-burgundy); --ctx-text: var(--qc-burgundy); --ctx-muted: #574347;
      --ctx-accent: var(--qc-burgundy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(90,15,46,0.16);
    }
    #contact .trust-item svg { stroke: var(--qc-burgundy); }

    /* Columns line up: the contact card fills the form's height */
    #contact .contact-grid { align-items: stretch; }
    #contact .contact-right { height: 100%; }
    #contact .contact-right .info-card { flex: 1 1 auto; }

    /* Ivory contact card */
    #contact .info-card {
      background: #FFFDF9;
      border: 1px solid rgba(90,15,46,0.20);
      box-shadow: 0 1px 3px rgba(62,10,32,0.06), 0 12px 32px rgba(62,10,32,0.06);
      color: #2B1E22;
      --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347;
      --ctx-accent: var(--qc-burgundy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(90,15,46,0.14);
    }
    #contact .info-card h3 { color: var(--qc-burgundy); }
    #contact .info-card h3::after { background: var(--qc-burgundy); opacity: .55; }
    #contact .info-card .ic { color: var(--qc-burgundy); border-color: rgba(90,15,46,0.28); background: rgba(90,15,46,0.05); box-shadow: none; }
    #contact .info-card .ic svg, #contact .info-card [class*="ic-"] svg { color: var(--qc-burgundy); }
    #contact .info-card .ic-label { color: #574347; }
    #contact .info-card .ic-meta a { color: #2B1E22; font-weight: 500; }
    #contact .info-card .ic-meta a:hover { color: var(--qc-burgundy); text-decoration: underline; text-underline-offset: 3px; }

    /* Directions: Maps button with the QR beside it */
    #contact .ic-directions {
      display: flex; align-items: center; justify-content: space-between; gap: 20px;
      margin-top: 24px; padding: 18px 0 0; border-top: 1px solid rgba(90,15,46,0.14);
    }
    #contact .ic-dir-text { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
    #contact .ic-maps {
      display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
      border-radius: 999px; background: var(--qc-navy); color: var(--qc-cream);
      font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-decoration: none;
      transition: background-color .2s ease;
    }
    #contact .ic-maps:hover { background: var(--qc-navy-hover); }
    #contact .ic-maps:focus-visible { outline: 2px solid var(--qc-navy); outline-offset: 3px; }
    #contact .ic-qr { margin: 0; gap: 6px; }
    #contact .ic-qr-tile { background: #fff; border: 1px solid rgba(90,15,46,0.16); box-shadow: none; padding: 6px; }
    #contact .ic-qr-tile svg { width: 84px; height: 84px; }
    #contact .ic-qr-cap { color: #574347; font-size: 9px; }

    /* Review: a quiet link inside the card, not a second big button */
    #contact .info-card .review-cta {
      margin: auto 0 0; padding-top: 22px; display: flex; flex-direction: row; align-items: center;
      justify-content: flex-start; gap: 6px; flex-wrap: wrap; text-align: left;
    }
    #contact .info-card .review-lead { margin: 0; font-size: 14px; font-weight: 400; color: #574347; }
    #contact .review-link {
      background: none; border: 0; padding: 10px 0; min-height: 44px; cursor: pointer;
      font: 600 14px/1.2 var(--body); color: var(--qc-burgundy);
      text-decoration: underline; text-decoration-color: rgba(90,15,46,0.35); text-underline-offset: 4px;
    }
    #contact .review-link:hover { text-decoration-color: var(--qc-burgundy); }
    #contact .review-link:focus-visible { outline: 2px solid var(--qc-navy); outline-offset: 2px; border-radius: 4px; }
    #contact .info-card .ic-tag { margin-top: 14px; color: #574347; border-top-color: rgba(90,15,46,0.14); opacity: 1; }

    /* Softer ivory fields on the burgundy form */
    #enquiry .field input, #enquiry .field textarea {
      background: var(--qc-cream);
      border: 1px solid rgba(250,247,242,0.0);
      box-shadow: inset 0 1px 2px rgba(62,10,32,0.08);
    }
    #enquiry .field input:focus, #enquiry .field textarea:focus {
      background: #fff;
      border-color: var(--qc-navy);
      box-shadow: 0 0 0 3px rgba(250,247,242,0.55);
    }
    #enquiry .consent input { accent-color: var(--qc-navy); }

    /* Disabled submit: solid and calm, with a hint underneath */
    #enquiry .enquiry-submit.btn-primary[disabled] {
      background: rgba(250,247,242,0.10);
      color: rgba(250,247,242,0.80);
      border: 1px solid rgba(250,247,242,0.30);
      box-shadow: none;
      opacity: 1;
    }
    #enquiry .submit-hint { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: rgba(250,247,242,0.82); text-align: center; }
    #enquiry .enquiry-submit:not([disabled]) ~ .submit-hint { display: none; }

    /* Phones: a QR on the screen you're holding can't be scanned, so the Maps button stands alone */
    @media (max-width: 719px) {
      #contact .ic-qr { display: none; }
      #contact .ic-maps { width: 100%; justify-content: center; }
      #contact .ic-dir-text { width: 100%; }
    }
    #contact .info-card .review-cta { order: 0; }
    #contact .info-card .ic-tag { margin-top: 0; padding-top: 14px; }
    #contact .info-card .review-cta { padding-bottom: 6px; }

    /* ===== Why cards: one consistent card =====
       Same number style, same icon in every state, same type sizes, no stray hover edge. */
    .why-card::before { display: none; }
    .why-card-top { margin-bottom: 18px; min-height: 44px; }
    .why-n, #why .why-n {
      font-family: var(--body);
      font-variant-numeric: lining-nums tabular-nums;
      font-feature-settings: "lnum" 1, "tnum" 1;
      font-size: 12px; font-weight: 600; letter-spacing: 0.16em; line-height: 1;
      color: rgba(250,247,242,0.80);
    }
    .why-ico, .why-card:hover .why-ico, .why-card:focus-within .why-ico {
      width: 44px; height: 44px;
      background: var(--qc-cream);
      border: 1px solid rgba(250,247,242,0.55);
      transform: none;
    }
    .why-ico svg { width: 22px; height: 22px; stroke: var(--qc-burgundy); stroke-width: 1.6; }
    .why-card h2, .why-card h3, #why .why-card h3 {
      font-size: clamp(20px, 1.6vw, 22px); line-height: 1.25; font-weight: 700; letter-spacing: -0.005em;
      margin: 0 0 10px;
    }
    .why-card p, #why .why-card p {
      font-size: 15px; line-height: 1.65; font-weight: 400; color: rgba(250,247,242,0.92); margin: 0;
    }
    /* Hover: a gentle lift and a brighter hairline, the same on every card */
    .why-card:hover, .why-card:focus-within {
      transform: translateY(-3px);
      border-color: rgba(250,247,242,0.55);
      box-shadow: 0 22px 44px rgba(62,10,32,0.26);
    }
    @media (prefers-reduced-motion: reduce) { .why-card:hover, .why-card:focus-within { transform: none; } }

    /* ===== Why section: editorial list (option A) =====
       Large serif numbers, hairline dividers, no cards. Used on the homepage and /why-qanoon-chambers/. */
    .why-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      column-gap: clamp(32px, 4vw, 64px);
      row-gap: 0;
      align-items: start;
    }
    .why-grid .why-card,
    .why-grid .why-card:hover,
    .why-grid .why-card:focus-within,
    #why .why-grid .why-card,
    #why .why-grid .why-card:hover,
    #why .why-grid .why-card:focus-within {
      display: grid;
      grid-template-columns: 64px minmax(0, 1fr);
      column-gap: 18px;
      align-items: start;
      background: transparent;
      border: 0;
      border-top: 1px solid rgba(90,15,46,0.18);
      border-radius: 0;
      box-shadow: none;
      padding: 26px 0 28px;
      transform: none;
      overflow: visible;
      --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347;
      --ctx-accent: var(--qc-navy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(90,15,46,0.18);
    }
    .why-grid .why-card:nth-last-child(-n+2), #why .why-grid .why-card:nth-last-child(-n+2) { border-bottom: 1px solid rgba(90,15,46,0.18); }
    .why-grid .why-card::before { display: none; }
    .why-grid .why-card-top { grid-column: 1; grid-row: 1 / span 2; margin: 0; min-height: 0; width: auto; display: block; }
    .why-grid .why-ico { display: none; }
    .why-grid .why-n, #why .why-grid .why-n {
      display: block;
      font-family: var(--display);
      font-feature-settings: "lnum" 1, "tnum" 1;
      font-variant-numeric: lining-nums tabular-nums;
      font-size: 40px; font-weight: 500; line-height: 0.95; letter-spacing: -0.01em;
      color: var(--qc-burgundy);
    }
    .why-grid .why-card h2,
    .why-grid .why-card h3,
    #why .why-grid .why-card h3 {
      grid-column: 2;
      font-family: var(--display); font-weight: 700;
      font-size: clamp(20px, 1.6vw, 23px); line-height: 1.25; letter-spacing: -0.005em;
      color: var(--qc-burgundy); margin: 2px 0 8px;
    }
    .why-grid .why-card p,
    #why .why-grid .why-card p {
      grid-column: 2;
      font-family: var(--body); font-size: 15px; line-height: 1.7; font-weight: 400;
      color: #574347; margin: 0; max-width: 46ch;
    }
    #why.act-paper { background: var(--qc-cream); }
    @media (max-width: 719px) {
      .why-grid { grid-template-columns: minmax(0, 1fr); }
      .why-grid .why-card:nth-last-child(-n+2), #why .why-grid .why-card:nth-last-child(-n+2) { border-bottom: 0; }
      .why-grid .why-card:last-child, #why .why-grid .why-card:last-child { border-bottom: 1px solid rgba(90,15,46,0.18); }
      .why-grid .why-card,
      .why-grid .why-card:hover,
      .why-grid .why-card:focus-within,
      #why .why-grid .why-card,
      #why .why-grid .why-card:hover,
      #why .why-grid .why-card:focus-within { grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; padding: 22px 0 24px; }
      .why-grid .why-n, #why .why-grid .why-n { font-size: 32px; }
    }

    /* ===== Careers: large statement (option C) ===== */
    #careers .careers-statement {
      display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
      gap: clamp(24px, 3vw, 36px); flex-wrap: nowrap;
    }
    #careers .cs-top {
      display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
      gap: clamp(24px, 4vw, 56px); align-items: end;
    }
    #careers .cs-title .section-head {
      margin: 14px 0 0;
      font-size: clamp(38px, 4.2vw, 58px); line-height: 1.0; letter-spacing: -0.015em; font-weight: 600;
      color: var(--qc-cream); max-width: 12ch; text-wrap: balance;
    }
    #careers .careers-statement .careers-lead {
      margin: 0; max-width: 46ch;
      font-size: 15.5px; line-height: 1.7; color: rgba(250,247,242,0.90);
    }
    #careers .cs-bottom {
      display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap;
      border-top: 1px solid rgba(250,247,242,0.22); padding-top: clamp(16px, 2vw, 22px);
    }
    #careers .careers-statement .careers-roles {
      margin: 0; max-width: none; font-size: 14px; line-height: 1.6; color: rgba(250,247,242,0.86);
    }
    #careers .cs-sep { color: rgba(250,247,242,0.45); margin: 0 4px; }
    #careers .cs-dot { color: rgba(250,247,242,0.45); margin: 0 6px; }
    #careers .careers-statement .careers-actions { flex-direction: row; align-items: center; gap: 20px; }
    #careers .careers-statement .careers-mail { font-size: 13.5px; color: rgba(250,247,242,0.90); padding-bottom: 2px; border-bottom: 1px solid rgba(250,247,242,0.35); }
    #careers .careers-statement .careers-mail:hover { color: var(--qc-cream); border-bottom-color: var(--qc-cream); }
    @media (max-width: 899px) {
      #careers .cs-top { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    }
    @media (max-width: 599px) {
      #careers .cs-bottom { flex-direction: column; align-items: flex-start; }
      #careers .careers-statement .careers-actions { flex-direction: column-reverse; align-items: stretch; width: 100%; gap: 14px; }
      #careers .careers-statement .careers-cta { justify-content: center; text-align: center; }
      #careers .careers-statement .careers-mail { align-self: flex-start; }
    }
    #careers .cs-r { white-space: nowrap; }
    #careers .cs-title .section-head { max-width: none; }
    #careers .careers-statement .careers-roles { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
    #careers .cs-dot { display: none; }
    #careers .cs-note { color: rgba(250,247,242,0.72); font-size: 13px; }
    #careers .cs-bottom { flex-direction: column; align-items: flex-start; }
    @media (min-width: 1200px) {
      #careers .cs-bottom { flex-direction: row; align-items: center; flex-wrap: nowrap; }
      #careers .careers-statement .careers-actions { flex: none; }
    }
    @media (max-width: 599px) {
      #careers .cs-r { white-space: normal; }
    }

    /* ===== Enquiry form: one burgundy card, navy Submit in every state ===== */
    #enquiry .form-head {
      background: var(--qc-burgundy);
      border-bottom: 1px solid rgba(250,247,242,0.16);
      --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.80);
      --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20);
    }
    #enquiry .form-head h3 { color: var(--qc-cream); }
    #enquiry .form-head .form-head-lead { color: rgba(250,247,242,0.85); }
    #enquiry .enquiry-submit.btn-primary,
    #enquiry .enquiry-submit.btn-primary[disabled] {
      background: var(--qc-navy);
      color: var(--qc-cream);
      border: 1px solid rgba(250,247,242,0.45);
      box-shadow: none;
      opacity: 1;
    }
    #enquiry .enquiry-submit.btn-primary[disabled] { cursor: not-allowed; color: rgba(250,247,242,0.78); }
    #enquiry .enquiry-submit.btn-primary:not([disabled]):hover { background: var(--qc-navy-hover); border-color: rgba(250,247,242,0.70); }

    /* ===== Practice areas: numbered ivory accordion (option C) ===== */
    #practice .practice-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 24px; }
    #practice a.btn.practice-cta {
      background: var(--qc-navy); color: var(--qc-cream); border: 1px solid rgba(250,247,242,0.45);
      text-decoration: none; box-shadow: none;
    }
    #practice a.btn.practice-cta:hover { background: var(--qc-navy-hover); }
    #practice .practice-all {
      font-size: 13.5px; font-weight: 500; color: var(--qc-cream); text-decoration: underline;
      text-decoration-color: rgba(250,247,242,0.40); text-underline-offset: 4px;
    }
    #practice .practice-all:hover { text-decoration-color: var(--qc-cream); }

    #practice .acc-row,
    #practice .acc-row:hover:not(.open) {
      background: #FFFDF9;
      border: 1px solid rgba(90,15,46,0.16);
      border-radius: 14px;
      box-shadow: 0 1px 2px rgba(62,10,32,0.04);
      margin-bottom: 8px;
      --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347;
      --ctx-accent: var(--qc-burgundy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(90,15,46,0.16);
    }
    #practice .acc-row:hover:not(.open) { border-color: rgba(90,15,46,0.34); box-shadow: 0 6px 18px rgba(62,10,32,0.06); }
    #practice .acc-row::before { display: none; }
    #practice .acc-row.open {
      background: var(--qc-burgundy);
      border-color: var(--qc-burgundy);
      box-shadow: 0 14px 32px rgba(62,10,32,0.18);
      --ctx-ink: var(--qc-cream); --ctx-text: rgba(250,247,242,0.94); --ctx-muted: rgba(250,247,242,0.86);
      --ctx-accent: var(--qc-cream); --ctx-on-accent: var(--qc-burgundy); --ctx-line: rgba(250,247,242,0.20);
    }
    #practice .acc-head { gap: 16px; padding: 14px 20px; min-height: 56px; }
    #practice .acc-head .num {
      flex: none; min-width: 26px;
      font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 1;
      font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1;
      color: var(--ctx-ink);
    }
    #practice .acc-head .ttl {
      font-family: var(--display); font-weight: 700; font-size: clamp(17px, 1.35vw, 19px);
      letter-spacing: 0; text-transform: none; line-height: 1.25; color: var(--ctx-ink);
    }
    #practice .acc-head .ico { font-family: var(--body); font-weight: 300; font-size: 22px; color: var(--ctx-ink); }
    #practice .acc-head:focus-visible { outline: 2px solid var(--qc-navy); outline-offset: -2px; border-radius: 14px; }
    #practice .acc-row.open .acc-head:focus-visible { outline-color: var(--qc-cream); }
    #practice .acc-body p { padding: 0 20px 8px 62px; font-size: 14.5px; line-height: 1.7; color: var(--ctx-muted); max-width: 62ch; }
    #practice .acc-link {
      display: inline-block; margin: 2px 20px 18px 62px; padding: 6px 0;
      font-size: 13px; font-weight: 600; color: var(--ctx-ink);
      text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ctx-ink) 45%, transparent); text-underline-offset: 4px;
    }
    #practice .acc-link:hover { text-decoration-color: var(--ctx-ink); }
    @media (max-width: 599px) {
      #practice .acc-head { padding: 12px 16px; gap: 12px; }
      #practice .acc-body p { padding: 0 16px 8px 16px; }
      #practice .acc-link { margin: 2px 16px 16px 16px; }
    }

    /* Enquiry: compact Submit with the hint beside it; optional field label */
    #enquiry .form-actions { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; margin-top: 18px; }
    #enquiry .form-actions .enquiry-submit.btn-primary,
    #enquiry .form-actions .enquiry-submit.btn-primary[disabled] {
      width: auto; flex: none; min-height: 46px; padding: 0 28px; margin: 0;
      font-size: 13px; letter-spacing: 0.06em; border-radius: 999px;
    }
    #enquiry .form-actions .submit-hint { margin: 0; text-align: left; flex: 1 1 200px; }
    #enquiry .opt { font-size: 11.5px; font-weight: 400; letter-spacing: 0.04em; text-transform: none; color: rgba(250,247,242,0.72); margin-left: 4px; }
    /* ===== Modals: site ivory, burgundy-tinted backdrop ===== */
    .career-modal { background: var(--qc-cream); border-color: rgba(90,15,46,0.14); }
    .career-backdrop { background: rgba(30,6,16,0.62); }
    .career-modal .cm-field input[type="text"],
    .career-modal .cm-field input[type="email"],
    .career-modal .cm-field input[type="tel"],
    .career-modal .cm-field textarea { background: #FFFFFF; }

    /* Review rating: empty stars are faint outlines, chosen stars burgundy, hover previews */
    .review-modal .stars { gap: 4px; align-items: center; }
    .review-modal .stars .star,
    .review-modal .stars .star.on {
      color: rgba(90,15,46,0.22);
      font-size: 30px; line-height: 1; padding: 4px 5px; min-width: 44px; min-height: 44px;
      background: none; border: 0; border-radius: 8px; cursor: pointer;
      transition: color .15s ease, transform .15s ease;
    }
    .review-modal .stars .star.on { color: var(--qc-burgundy); }
    @media (hover: hover) {
      .review-modal .stars:hover .star { color: var(--qc-burgundy); }
      .review-modal .stars .star:hover ~ .star { color: rgba(90,15,46,0.22); }
      .review-modal .stars .star:hover { transform: scale(1.1); }
    }
    .review-modal .stars .star:focus-visible { outline: 2px solid var(--qc-navy); outline-offset: 1px; }
    .review-modal .stars-value { margin-left: 10px; font-size: 13px; color: #574347; min-width: 6ch; }
    @media (prefers-reduced-motion: reduce) { .review-modal .stars .star:hover { transform: none; } }

    /* ===== Counsel: featured founder + two compact cards (option A) ===== */
    #team .timeline {
      display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: clamp(14px, 1.6vw, 20px); align-items: stretch; perspective: none;
    }
    #team .tl-item {
      grid-row: auto; grid-template-rows: none; height: auto; row-gap: 0;
      padding: 0; overflow: hidden; border-radius: 22px; text-align: left;
    }
    #team .tl-item .tl-node { display: none; }
    #team .tl-strip { margin: 0; display: block; }
    #team .tl-photo { width: 100%; height: 100%; aspect-ratio: auto; }
    #team .tl-photo-inner { inset: 0; border-radius: 16px; box-shadow: none; background: #3E0A20; }
    #team .tl-photo-inner .tl-init { color: var(--qc-cream); }
    #team .tl-meta { margin: 0 0 8px; }
    #team .tl-role {
      display: inline-block; background: none; padding: 0; border: 0;
      font: 500 11px/1.3 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(250,247,242,0.78);
    }
    #team .tl-name { margin: 0 0 10px; font-family: var(--display); font-weight: 700; line-height: 1.15; }
    #team .tl-name a { color: var(--qc-cream); text-decoration: none; }
    #team .tl-name a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

    /* Featured founder */
    #team .tl-item--featured {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: clamp(200px, 24vw, 280px) minmax(0, 1fr);
      grid-template-areas: "photo meta" "photo name" "photo bio" "photo quote";
      grid-template-rows: auto auto auto 1fr;
      column-gap: clamp(22px, 3vw, 40px);
      padding: clamp(18px, 2vw, 24px);
    }
    #team .tl-item--featured .tl-strip { grid-area: photo; aspect-ratio: 5 / 6; height: auto; align-self: start; }
    #team .tl-item--featured .tl-meta { grid-area: meta; margin-top: 8px; }
    #team .tl-item--featured .tl-name { grid-area: name; font-size: clamp(26px, 2.4vw, 34px); }
    #team .tl-item--featured .tl-bio-wrap { grid-area: bio; margin: 0 0 18px; max-width: 64ch; }
    #team .tl-item--featured .tl-bio { font-size: 15px; line-height: 1.7; -webkit-line-clamp: 5; min-height: 0; color: rgba(250,247,242,0.92); }
    #team .tl-item--featured .tl-quote {
      grid-area: quote; align-self: end; margin: 0; padding: 4px 0 4px 16px;
      background: none; border-radius: 0; border-left: 2px solid var(--qc-logo-gold);
    }
    #team .tl-item--featured .tl-q { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; color: var(--qc-cream); }
    #team .tl-item--featured .tl-court { margin-top: 10px; font-size: 11px; letter-spacing: 0.14em; color: rgba(250,247,242,0.75); }
    #team .tl-more { color: var(--qc-cream); }

    /* Compact cards */
    #team .tl-item--compact {
      display: grid;
      grid-template-columns: 112px minmax(0, 1fr);
      grid-template-areas: "photo meta" "photo name" "photo quote";
      grid-template-rows: auto auto 1fr;
      column-gap: 20px; align-items: start;
      padding: 18px;
    }
    #team .tl-item--compact .tl-strip { grid-area: photo; width: 112px; height: 134px; }
    #team .tl-item--compact .tl-photo-inner { border-radius: 12px; }
    #team .tl-item--compact .tl-meta { grid-area: meta; margin-top: 6px; }
    #team .tl-item--compact .tl-name { grid-area: name; font-size: clamp(20px, 1.7vw, 24px); margin-bottom: 6px; }
    #team .tl-item--compact .tl-bio-wrap,
    #team .tl-item--compact .tl-q { display: none; }
    #team .tl-item--compact .tl-quote {
      grid-area: quote; margin: 0; padding: 0; background: none; border-radius: 0;
      display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
    }
    #team .tl-item--compact .tl-court { margin: 0; font-size: 11px; letter-spacing: 0.12em; line-height: 1.6; color: rgba(250,247,242,0.80); }
    #team .tl-profile {
      font: 600 13px/1.2 var(--body); color: var(--qc-cream); padding: 6px 0;
      text-decoration: underline; text-decoration-color: rgba(250,247,242,0.45); text-underline-offset: 4px;
    }
    #team .tl-profile:hover { text-decoration-color: var(--qc-cream); }

    @media (max-width: 899px) {
      #team .timeline { grid-template-columns: minmax(0, 1fr); }
      #team .tl-item--featured {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "photo" "meta" "name" "bio" "quote";
        grid-template-rows: none;
      }
      #team .tl-item--featured .tl-strip { width: min(240px, 70%); margin-bottom: 18px; }
    }
    @media (max-width: 719px) {
      #team .tl-item { display: grid; flex-direction: initial; }
    }
    @media (max-width: 479px) {
      #team .tl-item--compact { grid-template-columns: 88px minmax(0, 1fr); column-gap: 14px; padding: 16px; }
      #team .tl-item--compact .tl-strip { width: 88px; height: 106px; }
    }
    #team .tl-quote::before, #team .tl-quote::after,
    #team .tl-court::before, #team .tl-court::after,
    #team .tl-q::before, #team .tl-q::after { display: none; content: none; }
    #team .tl-item--featured .tl-quote, #team .tl-item--compact .tl-quote { border-top: 0; box-shadow: none; }

    /* ===== How We Work: horizontal timeline (option A) =====
       No cards. A line joins numbered nodes and fills in when the section is revealed.
       Vertical on narrow screens. Used on the homepage and /how-we-work/. */
    #process .section-head, .hww-page .section-head, #process.act-paper .section-head { text-shadow: none; }
    ol.hww {
      position: relative; list-style: none; padding: 0;
      display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: clamp(16px, 2vw, 32px);
      margin-top: 32px;
    }
    ol.hww::before, ol.hww::after {
      content: ''; position: absolute; top: 23px; left: 23px; height: 2px; border-radius: 2px; pointer-events: none;
    }
    ol.hww::before { right: 23px; background: rgba(90,15,46,0.20); }
    ol.hww::after {
      width: 0; background: var(--qc-burgundy);
      transition: width 1.4s cubic-bezier(.25,.46,.45,.94) .2s;
    }
    ol.hww.revealed::after { width: calc(100% - 46px); }
    ol.hww > li.hww-step,
    ol.hww > li.hww-step:hover {
      position: relative; z-index: 1;
      display: flex; flex-direction: column; align-items: flex-start;
      grid-column: auto; grid-row: auto; grid-template-rows: none;
      background: transparent; border: 0; border-radius: 0; box-shadow: none;
      padding: 0; min-height: 0; transform: none;
      --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347;
      --ctx-accent: var(--qc-navy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(90,15,46,0.16);
    }
    ol.hww > li.hww-step::before, ol.hww > li.hww-step::after { display: none; content: none; }
    ol.hww > li.hww-step .hww-n {
      width: 46px; height: 46px; flex: none; margin: 0 0 18px;
      display: grid; place-items: center; border-radius: 50%;
      background: var(--qc-burgundy); color: var(--qc-cream);
      border: 0; box-shadow: 0 0 0 6px var(--qc-cream);
      font: 600 14px/1 var(--body); letter-spacing: 0.04em;
      font-variant-numeric: lining-nums tabular-nums;
    }
    ol.hww > li.hww-step h4, ol.hww > li.hww-step h2 {
      margin: 0 0 8px; font-family: var(--display); font-weight: 700;
      font-size: clamp(22px, 1.7vw, 25px); line-height: 1.2; letter-spacing: -0.005em; color: var(--qc-burgundy);
    }
    ol.hww > li.hww-step p { margin: 0; font-size: 15px; line-height: 1.65; color: #574347; max-width: 30ch; }
    @media (prefers-reduced-motion: reduce) { ol.hww::after { transition: none; } }

    @media (max-width: 899px) {
      ol.hww { grid-template-columns: minmax(0, 1fr); gap: 26px; }
      ol.hww::before, ol.hww::after { top: 23px; left: 22px; width: 2px; right: auto; }
      ol.hww::before { bottom: 23px; height: auto; }
      ol.hww::after { height: 0; transition-property: height; }
      ol.hww.revealed::after { width: 2px; height: calc(100% - 46px); }
      ol.hww > li.hww-step, ol.hww > li.hww-step:hover {
        display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 18px; align-items: start;
      }
      ol.hww > li.hww-step .hww-n { grid-row: 1 / span 2; margin: 0; }
      ol.hww > li.hww-step h4, ol.hww > li.hww-step h2 { grid-column: 2; margin-top: 8px; }
      ol.hww > li.hww-step p { grid-column: 2; max-width: 52ch; }
    }
    /* Connectors: one per step, from this node to the next, filling in turn */
    ol.hww { --hww-gap: clamp(16px, 2vw, 32px); gap: var(--hww-gap); }
    ol.hww::before, ol.hww::after { display: none; content: none; }
    ol.hww > li.hww-step:not(:last-child)::after {
      display: block; content: ''; position: absolute; z-index: -1;
      top: 22px; left: 46px; width: calc(100% + var(--hww-gap) - 46px); height: 2px;
      background: linear-gradient(var(--qc-burgundy), var(--qc-burgundy)) left / 0% 100% no-repeat, rgba(90,15,46,0.20);
      transition: background-size .5s ease;
    }
    ol.hww.revealed > li.hww-step::after { background-size: 100% 100%; }
    ol.hww.revealed > li.hww-step:nth-child(2)::after { transition-delay: .35s; }
    ol.hww.revealed > li.hww-step:nth-child(3)::after { transition-delay: .7s; }
    ol.hww.revealed > li.hww-step:nth-child(4)::after { transition-delay: 1.05s; }
    ol.hww > li.hww-step h4, ol.hww > li.hww-step h2 { padding: 0; text-indent: 0; }
    ol.hww > li.hww-step h4::before, ol.hww > li.hww-step h2::before { display: none; content: none; }
    @media (prefers-reduced-motion: reduce) { ol.hww > li.hww-step::after { transition: none; } }
    @media (max-width: 899px) {
      ol.hww { --hww-gap: 26px; }
      ol.hww > li.hww-step:not(:last-child)::after {
        top: 46px; left: 22px; width: 2px; height: calc(100% + var(--hww-gap) - 46px);
        background: linear-gradient(var(--qc-burgundy), var(--qc-burgundy)) top / 100% 0% no-repeat, rgba(90,15,46,0.20);
      }
      ol.hww.revealed > li.hww-step::after { background-size: 100% 100%; }
    }
    ol.hww > li.hww-step h4, ol.hww > li.hww-step h2, ol.hww > li.hww-step p { align-self: stretch; }

    /* =====================================================================
       Type system (approved scale, larger body). One style per role.
       Display: Cormorant Garamond 700. Text: Inter 400/500/600. No 300/900.
       The hero keeps its own type.
       ===================================================================== */
    :root {
      --t-h1: clamp(38px, 4vw, 56px);
      --t-h2: clamp(34px, 3.4vw, 48px);
      --t-h2-sub: clamp(26px, 2.4vw, 32px);
      --t-h3: clamp(22px, 1.8vw, 24px);
      --t-lead: clamp(17px, 1.3vw, 18px);
      --t-body: 17px;
      --t-body-card: 16px;
      --t-small: 14px;
      --t-label: 11px;
      --t-btn: 13px;
    }
    .side-links a, .side-tag { font-family: var(--body); }

    /* Headings */
    main h1.section-head, .section h1.section-head {
      font-family: var(--display); font-weight: 700; font-size: var(--t-h1);
      line-height: 1.05; letter-spacing: -0.01em; text-shadow: none;
    }
    .section:not(#hero) h2.section-head, .section:not(#hero) .h-stmt,
    #practice .practice-intro-card h2.section-head {
      font-family: var(--display); font-weight: 700; font-size: var(--t-h2);
      line-height: 1.08; letter-spacing: -0.01em; text-shadow: none;
    }
    .page-article h2, .section .faq h2, .section > h2:not(.section-head) {
      font-family: var(--display); font-weight: 700; font-size: var(--t-h2-sub); line-height: 1.15;
    }
    .why-grid .why-card h3, .why-grid .why-card h2, #why .why-grid .why-card h3,
    ol.hww > li.hww-step h4, ol.hww > li.hww-step h2,
    #team .tl-item--compact .tl-name,
    #practice .acc-head .ttl,
    .page-article h3, .faq h3, .section h3.faq-q {
      font-family: var(--display); font-weight: 700; font-size: var(--t-h3); line-height: 1.22;
    }
    #practice .acc-head .ttl { font-size: clamp(18px, 1.4vw, 20px); }
    #team .tl-item--featured .tl-name { font-size: clamp(28px, 2.4vw, 32px); }
    #enquiry .form-head h3 { font-size: clamp(26px, 2.2vw, 28px); font-weight: 700; }

    /* Eyebrows */
    .section .caps, .section .caps .gold { font-family: var(--body); font-size: var(--t-label); font-weight: 600; letter-spacing: 0.18em; }

    /* Leads (the line under a heading) */
    .why-lead, .practice-lead, .about-intro, .page-lead,
    .page-article > p:first-of-type, #careers .careers-statement .careers-lead {
      font-family: var(--body); font-style: normal; font-weight: 400;
      font-size: var(--t-lead); line-height: 1.6; letter-spacing: 0;
    }
    .why-lead { color: #574347; max-width: 60ch; }
    .page-article > p:first-of-type { color: var(--ctx-text); max-width: 62ch; }

    /* Body */
    .page-article p, .page-article li, .page-article dd, .about-body p, .about-body p.lead, .about-body p.sub,
    .faq p, .faq dd {
      font-family: var(--body); font-weight: 400; font-size: var(--t-body); line-height: 1.7;
    }
    .why-grid .why-card p, #why .why-grid .why-card p,
    ol.hww > li.hww-step p, #practice .acc-body p,
    #team .tl-item--featured .tl-bio, .pillar p, .portal-card p, .careers-roles {
      font-family: var(--body); font-weight: 400; font-size: var(--t-body-card); line-height: 1.7;
    }
    .foot-disclaimer, .about-intro { font-weight: 400; }

    /* Labels, meta lines, contact-card style details */
    #enquiry label:not(.consent), .ic-label, .cm-field label {
      font-family: var(--body); font-size: var(--t-label); font-weight: 600; letter-spacing: 0.14em;
    }
    #team .tl-court, .ic-tag, .tl-role, #team .tl-role, .hero-place, .acc-group {
      font-family: var(--body); font-size: var(--t-label); font-weight: 500; letter-spacing: 0.14em;
    }
    .ic-meta a, .ic-meta .addr { font-size: 15px; line-height: 1.55; }

    /* Buttons: one style, sentence case */
    .btn, a.btn, button.btn, .submit, .cm-submit, #careers .careers-cta, #practice a.btn.practice-cta, .tc-btn {
      font-family: var(--body); font-size: var(--t-btn); font-weight: 600; letter-spacing: 0.04em; text-transform: none;
    }

    /* Quotes keep the italic serif */
    #team .tl-item--featured .tl-q { font-size: 20px; font-weight: 500; line-height: 1.45; }

    @media (max-width: 599px) {
      :root { --t-body: 16px; --t-body-card: 15px; }
    }

    /* Type system: remaining outliers */
    #process.act-paper .section-head, .section:has(.hww) > .section-head { font-size: var(--t-h2); text-shadow: none; }
    .section:has(.crumbs) > h1.section-head, .section:has(.crumbs) h1.section-head { font-size: var(--t-h1); }
    .section:has(.crumbs) h2:not([class]):not(.hww h2):not(.why-card h2):not(.privacy-doc h2) { font-family: var(--display); font-weight: 700; font-size: var(--t-h2-sub); line-height: 1.15; }
    .section:has(.crumbs) h2.tl-name, .section:has(.crumbs) h3:not([class]) { font-size: var(--t-h3); line-height: 1.22; }
    .section:has(.crumbs) p:not([class]), .section:has(.crumbs) li:not([class]) { font-size: var(--t-body); line-height: 1.7; font-weight: 400; }
    .section:has(.crumbs) p.page-article, .section:has(.crumbs) .page-article > p:first-of-type { font-size: var(--t-lead); line-height: 1.6; }
    #contact .info-card h3, #about .pillar h4, .pillar h4 { font-size: var(--t-label); letter-spacing: 0.18em; }
    #enquiry .form-head-lead { font-size: 15px; }
    .foot-disclaimer { font-size: var(--t-small); line-height: 1.65; }
    .portal-note { font-style: normal; font-size: var(--t-small); }
    #careers .careers-statement .careers-roles { font-size: 15px; }
    .portal-card p.acc-group, .acc-group { font-size: var(--t-label); line-height: 1.6; font-weight: 600; letter-spacing: 0.16em; }
=======
    /* Founder bio: full text, comfortable reading size, no mid-sentence cut */
    #team .tl-item--featured .tl-bio-wrap { max-width: 62ch; margin-bottom: 20px; }
    #team .tl-item--featured .tl-bio {
      display: block; -webkit-line-clamp: unset; overflow: visible; min-height: 0;
      font-family: var(--body); font-weight: 400; font-size: 16px; line-height: 1.75;
      letter-spacing: 0; color: rgba(250,247,242,0.90);
    }
    #team .tl-item--featured .tl-bio p { margin: 0 0 12px; }
    #team .tl-item--featured .tl-bio p:last-child { margin-bottom: 0; }
    #team .tl-item--featured .tl-more { display: none; }
    @media (max-width: 599px) {
      #team .tl-item--featured .tl-bio { font-size: 15px; line-height: 1.7; }
    }

    /* ===== Counsel: compact cards expand in place ===== */
    #team .tl-item--compact { align-self: start; grid-template-areas: "photo meta" "photo name" "photo quote" "bio bio"; grid-template-rows: auto auto 1fr auto; }
    #team .tl-expand {
      display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0;
      background: none; border: 0; cursor: pointer;
      font: 600 13px/1.2 var(--body); letter-spacing: 0.02em; color: var(--qc-cream);
      text-decoration: underline; text-decoration-color: rgba(250,247,242,0.45); text-underline-offset: 4px;
    }
    #team .tl-expand:hover { text-decoration-color: var(--qc-cream); }
    #team .tl-expand:focus-visible { outline: 2px solid var(--qc-cream); outline-offset: 3px; border-radius: 4px; }
    #team .tl-expand-ico {
      display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
      border: 1px solid rgba(250,247,242,0.5); font-size: 14px; line-height: 1; text-decoration: none;
    }
    #team .tl-item--compact.is-expanded .tl-bio-wrap {
      display: block; grid-area: bio; margin: 18px 0 2px; padding-top: 16px;
      border-top: 1px solid rgba(250,247,242,0.18);
      animation: tlExpand .35s ease both;
    }
    #team .tl-item--compact.is-expanded .tl-bio {
      display: block; -webkit-line-clamp: unset; overflow: visible; min-height: 0;
      font-size: var(--t-body-card, 16px); line-height: 1.7; color: rgba(250,247,242,0.92);
    }
    #team .tl-item--compact.is-expanded .tl-bio p { margin: 0 0 10px; }
    #team .tl-item--compact.is-expanded .tl-bio p:last-child { margin-bottom: 0; }
    #team .tl-item--compact .tl-more { display: none; }
    #team .tl-item--compact.is-expanded .tl-q {
      display: block; font-size: 17px; line-height: 1.45; color: var(--qc-cream);
      border-left: 2px solid var(--qc-logo-gold); padding-left: 12px; margin: 0 0 2px;
    }
    @keyframes tlExpand { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
    @media (prefers-reduced-motion: reduce) { #team .tl-item--compact.is-expanded .tl-bio-wrap { animation: none; } }

    /* Counsel bios: a touch smaller (founder and expanded cards match) */
    #team .tl-item--featured .tl-bio,
    #team .tl-item--compact.is-expanded .tl-bio { font-size: 14px; line-height: 1.7; }
    @media (max-width: 599px) {
      #team .tl-item--featured .tl-bio,
      #team .tl-item--compact.is-expanded .tl-bio { font-size: 14px; }
    }

    /* ===== Type family: IBM Plex Sans (headings, UI) + IBM Plex Serif (body, quotes) ===== */
    :root {
      --display: 'IBM Plex Sans', system-ui, sans-serif;
      --body: 'IBM Plex Serif', Georgia, serif;
      --ui: 'IBM Plex Sans', system-ui, sans-serif;
      --sans: 'IBM Plex Sans', system-ui, sans-serif;
      --serif: 'IBM Plex Serif', Georgia, serif;
    }
    /* Headings: Plex Sans 600, a little tighter than the old serif */
    h1, h2, h3, h4, .section-head, .h-stmt, .tl-name, .hero-title, .hero-sub2,
    #practice .acc-head .ttl, .why-grid .why-card h3, .why-grid .why-card h2, ol.hww > li.hww-step h4, ol.hww > li.hww-step h2 {
      font-family: var(--display); font-weight: 600; letter-spacing: -0.015em;
    }
    .section:not(#hero) h2.section-head, main h1.section-head, .section h1.section-head { font-weight: 600; letter-spacing: -0.02em; }
    /* Numbers in the Why list and accordion: Plex Sans */
    .why-grid .why-n, #why .why-grid .why-n, #practice .acc-head .num { font-family: var(--display); font-weight: 400; }
    /* Small UI text stays sans */
    .caps, .caps .gold, label, .ic-label, .tl-role, .tl-court, .ic-tag, .hero-place, .acc-group, .submit-hint,
    .btn, a.btn, button, .submit, .cm-submit, .tc-btn, .side-links a, .side-tag, .trust-item, .tl-expand, .acc-link,
    .careers-roles, .careers-mail, .review-link, .ic-maps, .crumbs, nav, input, select, textarea, .foot-col h4, .foot-legal, .stars-value {
      font-family: var(--ui);
    }
    /* Quotes and taglines: Plex Serif italic */
    .tl-q, .tagline, .why-lead em, .pq, .team-close, .ftag, .jline { font-family: var(--serif); font-style: italic; font-weight: 400; }
    /* Plex Serif runs larger than Inter at the same size: ease body down a touch */
    :root { --t-body: 16.5px; --t-body-card: 15.5px; --t-lead: clamp(16.5px, 1.25vw, 17.5px); }

    /* ===== Letterhead watermark: the Q mark, large and faint, cropped at the left edge =====
       One layer fixed to the screen on every page: it stays put while the content scrolls.
       Multiply blend keeps it a faint tint on ivory and near-invisible on burgundy cards.
       Decorative only (a CSS layer, so screen readers and clicks ignore it). */
    body::after {
      content: ''; position: fixed; z-index: 11; pointer-events: none;
      left: var(--sidebar-w, 0px); top: 50%; transform: translateY(-50%);
      width: clamp(150px, 20vw, 300px); height: clamp(300px, 40vw, 600px);
      background-color: var(--qc-burgundy); opacity: 0.06; mix-blend-mode: multiply;
      -webkit-mask: url(/assets/q-mark.svg) 100% 50% / auto 100% no-repeat;
              mask: url(/assets/q-mark.svg) 100% 50% / auto 100% no-repeat;
    }
    @media (max-width: 719px) {
      body::after { width: 130px; height: 260px; opacity: 0.05; }
    }
    @media print { body::after { display: none; } }

    /* ===== Two-tone headings: first phrase burgundy, second phrase navy (gold on burgundy cards) ===== */
    .section-head, .h-stmt { color: var(--qc-burgundy); }
    .section-head .hl-2, .h-stmt .hl-2 { color: var(--qc-navy); }
    .practice-intro-card .section-head, .portal-card .section-head, .careers-card .section-head,
    #careers .cs-title .section-head { color: var(--qc-cream); }
    .practice-intro-card .section-head .hl-2, .portal-card .section-head .hl-2, .careers-card .section-head .hl-2,
    #careers .cs-title .section-head .hl-2 { color: var(--qc-logo-gold); }

    /* ===== Sidebar, refined (option A): one icon set, Plex Sans, gold active marker, single portal button ===== */
    .side-links { gap: 2px; }
    .side-links a, .sidebar .side-links a {
      font-family: var(--ui, 'IBM Plex Sans', system-ui, sans-serif); font-weight: 500; font-size: 14.5px; letter-spacing: 0;
      gap: 12px; padding: 9px 12px; border-radius: 8px; color: rgba(250,247,242,0.80);
      background: transparent; box-shadow: none; border: 0;
    }
    .side-links a::before, .side-links a::after { display: none; content: none; }
    .side-links a svg, .sidebar .side-links a svg {
      width: 18px; height: 18px; stroke-width: 1.6; color: rgba(250,247,242,0.58);
      transition: color .2s ease;
    }
    .side-links a:hover { background: rgba(250,247,242,0.06); color: var(--qc-cream); }
    .side-links a:hover svg { color: var(--qc-cream); }
    .side-links a.active, .sidebar .side-links a.active {
      background: rgba(250,247,242,0.08); color: var(--qc-cream); font-weight: 600;
      box-shadow: inset 2px 0 0 var(--qc-logo-gold);
    }
    .side-links a.active svg { color: var(--qc-logo-gold); }
    .side-links a:focus-visible { outline: 2px solid var(--qc-logo-gold); outline-offset: 1px; }

    .nav-head { display: none; }

    /* ===== Logo intro (homepage, once per visit) =====
       A fixed overlay ON TOP of the already-rendered page: the page is never hidden, so LCP/SEO
       are unaffected. Shown only when the head script adds .qc-intro-on (JS running, no reduced
       motion, first view this session). The overlay's own animation ends at opacity 0 /
       visibility hidden, so even if the script fails it cannot get stuck. */
    .qc-intro { display: none; }
    html.qc-intro-on .qc-intro {
      display: grid; place-items: center; position: fixed; inset: 0; z-index: 10000;
      background: #FAF7F2; pointer-events: auto;
      animation: qiLift .6s cubic-bezier(.65,0,.35,1) 1.6s forwards;
    }
    .qc-intro-inner { display: flex; flex-direction: column; align-items: center; animation: qiBreathe 1.7s cubic-bezier(.25,.46,.45,.94) both; }
    .qc-intro-mark { width: clamp(84px, 11vw, 120px); height: auto; aspect-ratio: 1; overflow: visible; }
    .qc-intro-mark path { fill: #5A0F2E; }
    .qc-intro .qi-body { clip-path: polygon(0 0, 0 0, 0 0); animation: qiWipe .7s cubic-bezier(.65,0,.35,1) .12s forwards; }
    .qc-intro .qi-tp { opacity: 0; transform: translate(-5px, -5px); transform-box: fill-box; animation: qiTail .4s cubic-bezier(.16,1,.3,1) forwards; }
    .qc-intro .qi-1 { animation-delay: .68s; } .qc-intro .qi-2 { animation-delay: .76s; }
    .qc-intro .qi-3 { animation-delay: .84s; } .qc-intro .qi-4 { animation-delay: .92s; }
    .qc-intro-rule { display: block; width: 0; height: 1.5px; margin-top: 18px; background: #C2AE69; animation: qiRule .45s cubic-bezier(.16,1,.3,1) 1.05s forwards; }
    .qc-intro.qc-intro-skip { animation: qiLift .25s ease forwards !important; }
    @keyframes qiWipe { to { clip-path: polygon(0 0, 240% 0, 0 240%); } }
    @keyframes qiTail { to { opacity: 1; transform: none; } }
    @keyframes qiRule { to { width: 64px; } }
    @keyframes qiBreathe { from { transform: scale(.94); } to { transform: none; } }
    @keyframes qiLift { to { opacity: 0; transform: translateY(-12px); visibility: hidden; pointer-events: none; } }
    @media (prefers-reduced-motion: reduce) { html.qc-intro-on .qc-intro { display: none; } }
    @media print { .qc-intro { display: none !important; } }

    /* ===== About values: three ivory tiles with burgundy icon badges (C3). Quote untouched. ===== */
    #about.section .pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    #about.section .pillar, #about.section .pillar:hover {
      background: var(--qc-cream); border: 0; border-radius: 14px; box-shadow: none; transform: none;
      padding: 18px 14px 16px; text-align: center;
      display: flex; flex-direction: column; align-items: center;
      --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347;
      --ctx-accent: var(--qc-burgundy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(90,15,46,0.16);
    }
    #about.section .pillar::before, #about.section .pillar::after { display: none; content: none; }
    #about.section .pillar-ico {
      display: grid; place-items: center; width: 42px; height: 42px; margin: 0 0 12px;
      border-radius: 50%; background: var(--qc-burgundy); border: 0; box-shadow: none; color: var(--qc-cream);
    }
    #about.section .pillar-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
    #about.section .pillar h4 {
      margin: 0 0 6px; font-family: var(--ui, 'IBM Plex Sans', system-ui, sans-serif);
      font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--qc-burgundy);
    }
    #about.section .pillar p {
      margin: 0; font-family: var(--body); font-size: 14px; line-height: 1.45; color: #2B1E22;
    }
    @media (max-width: 599px) {
      #about.section .pillars { grid-template-columns: minmax(0, 1fr); }
      #about.section .pillar, #about.section .pillar:hover {
        display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; row-gap: 2px;
        text-align: left; padding: 14px; align-items: center;
      }
      #about.section .pillar-ico { grid-row: 1 / span 2; margin: 0; }
      #about.section .pillar h4 { margin: 0; align-self: end; }
      #about.section .pillar p { align-self: start; }
    }

    /* ===== Mobile top bar: Client portal pill, always visible (desktop keeps the sidebar panel) ===== */
    .m-portal { display: none; }
    @media (max-width: 900px) {
      .m-portal {
        display: inline-flex; align-items: center; gap: 6px; margin-left: auto; margin-right: 8px;
        min-height: 36px; padding: 0 14px; border-radius: 999px;
        background: var(--qc-navy); color: var(--qc-cream); border: 1px solid rgba(250,247,242,0.45);
        font-family: var(--ui, 'IBM Plex Sans', system-ui, sans-serif); font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
        text-decoration: none; white-space: nowrap; position: relative; z-index: 60;
      }
      .m-portal svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
      .m-portal:hover { background: var(--qc-navy-hover); }
      .m-portal:focus-visible { outline: 2px solid var(--qc-logo-gold); outline-offset: 2px; }
      /* a 44px tap target without making the pill look bigger */
      .m-portal::after { content: ''; position: absolute; inset: -4px -2px; }
    }

    /* ===== Privacy notice page (DPDP) ===== */
    .privacy-doc {
      margin-top: 28px; padding: clamp(22px, 3vw, 40px); max-width: 920px;
      background: #FFFDF9; border: 1px solid rgba(90,15,46,0.16); border-radius: 22px;
      box-shadow: 0 1px 3px rgba(62,10,32,0.05);
      color: #2B1E22;
      --ctx-ink: var(--qc-burgundy); --ctx-text: #2B1E22; --ctx-muted: #574347;
      --ctx-accent: var(--qc-navy); --ctx-on-accent: var(--qc-cream); --ctx-line: rgba(90,15,46,0.16);
    }
    .privacy-doc .privacy-lead { font-family: var(--body); font-size: var(--t-lead, 18px); line-height: 1.6; color: #574347; margin: 0 0 8px; max-width: 64ch; }
    .privacy-doc h2 { font-family: var(--display); font-weight: 600; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.25; color: var(--qc-burgundy); margin: 32px 0 10px; }
    .privacy-doc p, .privacy-doc li, .privacy-doc dd { font-family: var(--body); font-size: 16px; line-height: 1.7; color: #2B1E22; }
    .privacy-doc p { margin: 0 0 10px; max-width: 70ch; }
    .privacy-doc a { color: var(--qc-burgundy); text-decoration: underline; text-underline-offset: 3px; }
    .privacy-table-wrap { overflow-x: auto; margin: 4px 0 14px; -webkit-overflow-scrolling: touch; }
    .privacy-table { width: 100%; min-width: 560px; border-collapse: collapse; font-family: var(--body); font-size: 15px; line-height: 1.55; }
    .privacy-table th, .privacy-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid rgba(90,15,46,0.14); color: #2B1E22; }
    .privacy-table thead th { font-family: var(--ui, var(--display)); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #574347; border-bottom-color: rgba(90,15,46,0.28); }
    .privacy-table tbody th { font-family: var(--ui, var(--display)); font-weight: 600; color: var(--qc-burgundy); }
    .privacy-rights { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .privacy-rights li { background: var(--qc-cream); border: 1px solid rgba(90,15,46,0.14); border-radius: 12px; padding: 14px; font-size: 15px; line-height: 1.55; }
    .privacy-rights strong { display: block; font-family: var(--ui, var(--display)); font-weight: 600; font-size: 14px; color: var(--qc-burgundy); margin-bottom: 4px; }
    .privacy-contact { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 16px; margin: 6px 0 14px; }
    .privacy-contact dt { font-family: var(--ui, var(--display)); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #574347; padding-top: 4px; }
    .privacy-contact dd { margin: 0; }
    .privacy-doc .privacy-note { font-size: 14px; color: #574347; margin-top: 18px; }
    @media (max-width: 899px) { .privacy-rights { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
    @media (max-width: 599px) {
      .privacy-rights { grid-template-columns: minmax(0, 1fr); }
      .privacy-contact { grid-template-columns: minmax(0, 1fr); gap: 2px; }
      .privacy-contact dd { margin-bottom: 10px; }
    }
    /* Links inside consent text and the footer */
    .consent a, .cm-check-text a { color: inherit; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
    #enquiry .consent a { color: var(--qc-cream); }
    .foot-disclaimer a, .foot-privacy { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
    .foot-privacy { margin-left: 10px; }

    /* Privacy notice: smaller reading sizes */
    .privacy-doc .privacy-lead { font-size: 15.5px; line-height: 1.6; }
    .section .privacy-doc h2, .section:has(.crumbs) .privacy-doc h2 { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.3; margin: 26px 0 8px; }
    .privacy-doc p, .privacy-doc li, .privacy-doc dd { font-size: 14.5px; line-height: 1.65; }
    .privacy-table { font-size: 13.5px; }
    .privacy-table thead th, .privacy-contact dt { font-size: 10.5px; }
    .privacy-rights li { font-size: 13.5px; padding: 12px; }
    .privacy-rights strong { font-size: 13px; }
    .privacy-doc .privacy-note { font-size: 13px; }
    .section:has(.crumbs) .privacy-doc h2:not([class]) { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.3; margin: 26px 0 8px; }
    .section:has(.crumbs) .privacy-doc p:not([class]), .section:has(.crumbs) .privacy-doc li:not([class]),
    .section:has(.crumbs) .privacy-doc dd { font-size: 14.5px; line-height: 1.65; }
    .section:has(.crumbs) .privacy-rights li:not([class]) { font-size: 13.5px; }

    /* ===== How We Work: step-by-step reveal + gold pulse on the last step ===== */
    ol.hww > li:nth-child(1) { --i: 0; } ol.hww > li:nth-child(2) { --i: 1; } ol.hww > li:nth-child(3) { --i: 2; }
    ol.hww > li:nth-child(4) { --i: 3; } ol.hww > li:nth-child(5) { --i: 4; }
    ol.hww.hww-armed > li.hww-step .hww-n,
    ol.hww.hww-armed > li.hww-step h4, ol.hww.hww-armed > li.hww-step h2, ol.hww.hww-armed > li.hww-step p { opacity: 0; }
    ol.hww.hww-armed:not(.hww-play) > li.hww-step::after { background-size: 0% 100%; transition: none; }
    ol.hww.hww-play > li.hww-step .hww-n { animation: hwwPop .5s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(var(--i) * .45s); }
    ol.hww.hww-play > li.hww-step h4, ol.hww.hww-play > li.hww-step h2 { animation: hwwUp .5s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i) * .45s + .1s); }
    ol.hww.hww-play > li.hww-step p { animation: hwwUp .5s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i) * .45s + .18s); }
    ol.hww.hww-play > li.hww-step::after,
    ol.hww.hww-play.revealed > li.hww-step::after { background-size: 100% 100%; transition: background-size .45s ease; transition-delay: calc(var(--i) * .45s + .22s); }
    ol.hww > li.hww-step:last-child .hww-n { position: relative; }
    ol.hww.hww-play > li.hww-step:last-child .hww-n::after {
      content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--qc-logo-gold);
      opacity: 0; pointer-events: none;
      animation: hwwPulse 1.8s ease-out 2.4s 3;
    }
    @keyframes hwwPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
    @keyframes hwwUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
    @keyframes hwwPulse { 0% { opacity: .9; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.55); } }
    @media (max-width: 899px) {
      ol.hww.hww-armed:not(.hww-play) > li.hww-step::after { background-size: 100% 0%; }
      ol.hww.hww-play > li.hww-step::after, ol.hww.hww-play.revealed > li.hww-step::after { background-size: 100% 100%; }
    }
    @media (prefers-reduced-motion: reduce) {
      ol.hww > li.hww-step .hww-n, ol.hww > li.hww-step h4, ol.hww > li.hww-step h2, ol.hww > li.hww-step p { opacity: 1 !important; animation: none !important; }
      ol.hww > li.hww-step::after { transition: none !important; }
      ol.hww > li.hww-step:last-child .hww-n::after { display: none; }
    }

    /* Enquiry status messages: readable on the burgundy card */
    #enquiry .form-status { margin-top: 14px; font-family: var(--body); font-size: 15px; line-height: 1.55; color: rgba(250,247,242,0.88); }
    #enquiry .form-status.ok { color: var(--qc-cream); font-weight: 500; padding-left: 12px; border-left: 2px solid var(--qc-logo-gold); }
    #enquiry .form-status.err { color: #F4C7CF; padding-left: 12px; border-left: 2px solid #F4C7CF; }
    #enquiry .consent .consent-text { flex: 1 1 auto; min-width: 0; }
    #enquiry .form-status.ok { color: var(--qc-logo-gold); }

    /* ===== Track Your Case items open the client portal (they showed arrows but went nowhere) ===== */
    a.tc-item { text-decoration: none; border-radius: 6px; padding: 2px 4px; margin: 0 -4px; transition: background-color var(--motion-micro) ease; }
    a.tc-item:hover, a.tc-item:focus-visible { background: rgba(250,247,242,0.08); color: var(--qc-cream); }
    a.tc-item:hover .tc-arrow { transform: translateX(2px); }
    .tc-item .tc-arrow { transition: transform var(--motion-micro) ease; }
    @media (prefers-reduced-motion: reduce) { a.tc-item, .tc-item .tc-arrow { transition: none; } }
