/* ==========================================================================
   Masader Capital — cinematic layer for inner pages.
   Sits on top of site.css (the page content blocks) and carries the
   homepage's system: Northwall composition language (dashed hairlines,
   gold corner marks, recolouring header, navy/cream grounds), the
   Halcyon-derived palette and the same two faces.
   ========================================================================== */
:root {
  --night: #08121F; --cream: #F4ECDA; --gold-l: #D2B67E; --gold-d: #7E5F17;
  --paper: #F5F2EA; --paper-2: #EDE9E0; --stone: #E5E1D7; --rule: #D6CFBF;
  --ink: #1A2332; --ink-2: #3C4452; --grey: #5A606B; --grey-l: #6E7480;
  --navy: #08121F; --navy-2: #08121F; --blue: #7E5F17; --gold: #B8913F;
  --hh: 65px;
  --ch-text: var(--cream); --ch-rule: rgba(244,236,218,.18);
}
body { background: var(--paper); color: var(--ink); }
::selection { background: var(--gold-l); color: var(--night); }
.h1, .h2, .h3, .display, .statement { font-size-adjust: 0.47; }
.kicker { color: var(--gold-d); }
.kicker::before { background: var(--gold-d); }
.h1 em, .h2 em, .h3 em, .display em { color: inherit; }
.sec.deep .h2 em, .sec.dark .h2 em { color: var(--gold-l); }
.area .n { color: var(--gold-d); }
.btn { border-radius: 0; }
:focus-visible { outline: 2px solid var(--gold-l); outline-offset: 3px; }

/* ---------------------------------------------------------------- header */
.chdr { position: fixed; inset: 0 0 auto 0; z-index: 70; height: var(--hh); color: var(--ch-text);
  border-bottom: 1px solid var(--ch-rule); transition: color .25s cubic-bezier(.2,0,0,1), background-color .25s, border-color .25s; }
.chdr[data-theme="light"] { --ch-text: var(--night); --ch-rule: rgba(8,18,31,.14); background: rgba(245,242,234,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.chdr[data-theme="dark"] { background: rgba(8,18,31,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.chdr .row { display: flex; height: 100%; align-items: stretch; }
.chdr .cell { position: relative; display: flex; align-items: center; border-left: 1px solid var(--ch-rule); }
.chdr .logo { border-left: 0; padding: 0 1rem; width: 9rem; flex-shrink: 0; }
@media (min-width: 640px) { .chdr .logo { padding-left: 2rem; width: 10.3rem; } }
.logo-plate { display: flex; align-items: center; justify-content: center; width: 4.5rem; height: 2.66rem; background: #F7F2E6; border-radius: .25rem; box-shadow: 0 0 0 1px rgba(8,18,31,.08); }
.logo-plate img { width: 84%; height: auto; }
.chdr nav { flex: 1; justify-content: center; }
.chdr nav ul { display: none; margin: 0; padding: 0; list-style: none; gap: 2.25rem; }
@media (min-width: 1100px) { .chdr nav ul { display: flex; } }
.chdr nav a { position: relative; font: 500 .8125rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: inherit; padding: .5rem 0; }
.chdr nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s cubic-bezier(.2,0,0,1); }
.chdr nav a:hover::after, .chdr nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.chdr nav a[aria-current="page"] { color: var(--gold-l); }
.chdr[data-theme="light"] nav a[aria-current="page"] { color: var(--gold-d); }
.chdr .mk { position: absolute; left: -3px; width: 5px; height: 5px; background: var(--gold-l); }
.chdr .mk.t { top: -3px; } .chdr .mk.b { bottom: -3px; }
.chdr .cta { display: none; width: 12rem; justify-content: center; gap: .6rem; background: var(--cream); color: var(--night); text-decoration: none;
  font: 500 .8125rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; transition: background .25s; }
.chdr[data-theme="light"] .cta { background: var(--night); color: var(--cream); }
.chdr .cta:hover { background: var(--gold-l); color: var(--night); }
@media (min-width: 768px) { .chdr .cta { display: flex; } }
.chdr .burger-btn { width: var(--hh); justify-content: center; background: none; border: 0; border-left: 1px solid var(--ch-rule); color: inherit; cursor: pointer; }
@media (min-width: 1100px) { .chdr .burger-btn { display: none; } }
.burger-btn .bars { position: relative; width: 22px; height: 10px; }
.burger-btn .bars i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .35s cubic-bezier(.2,0,0,1), top .35s; }
.burger-btn .bars i:first-child { top: 0; } .burger-btn .bars i:last-child { top: 8.5px; }
.burger-btn[aria-expanded="true"] .bars i:first-child { top: 4.25px; transform: rotate(45deg); }
.burger-btn[aria-expanded="true"] .bars i:last-child { top: 4.25px; transform: rotate(-45deg); }

/* full-screen menu */
.cmenu { position: fixed; inset: var(--hh) 0 0 0; z-index: 69; background: var(--night); color: var(--cream); padding: 1.5rem 1rem 2rem;
  display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
  clip-path: inset(0 0 100% 0); transition: clip-path .6s cubic-bezier(.2,0,0,1); visibility: hidden; }
.cmenu.open { clip-path: inset(0 0 0 0); visibility: visible; }
@media (min-width: 640px) { .cmenu { padding: 2rem; } }
.cmenu ul { list-style: none; margin: 0; padding: 0; }
.cmenu li { border-bottom: 1px dashed rgba(244,236,218,.25); }
.cmenu li a { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 0; text-decoration: none; color: inherit;
  font: 500 clamp(1.75rem, 5vw, 2.5rem)/1 var(--serif); font-size-adjust: .47; }
.cmenu li a span { font: 500 .75rem/1 var(--sans); letter-spacing: .14em; color: var(--gold-l); }
.cmenu .foot { margin-top: 2rem; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(244,236,218,.7); line-height: 1.9; }
.cmenu .foot a { color: var(--cream); }

/* ---------------------------------------------------------------- page opening: navy stage */
.phead { position: relative; background: var(--night); color: var(--cream); padding: calc(var(--hh) + clamp(56px,8vw,128px)) 0 clamp(48px,6vw,96px); overflow: hidden; }
.phead::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 85% 0%, rgba(210,182,126,.14), transparent 60%), radial-gradient(50% 70% at 0% 100%, rgba(47,109,181,.12), transparent 65%); }
.phead::after { content: ""; position: absolute; left: var(--pad); right: var(--pad); bottom: 0; border-top: 1px dashed rgba(244,236,218,.22); }
.phead .wrap { position: relative; }
.phead .h1 { color: var(--cream); font-size: clamp(40px, 5vw, 84px); line-height: 1.02; max-width: 20ch; }
.phead .h1 em { color: var(--gold-l); }
.phead .kicker { color: var(--gold-l); } .phead .kicker::before { background: var(--gold-l); }
.phead .lede, .phead p { color: rgba(244,236,218,.8); }
.phead .crumbs, .phead .crumbs a { color: rgba(244,236,218,.62); }
.phead .crumbs a:hover { color: var(--cream); }
.phead a.link, .phead .btn { color: var(--cream); border-color: rgba(244,236,218,.6); }
.phead .btn:hover { background: var(--cream); color: var(--night); }

/* cover photo directly after the opening: full bleed, pulled up under the stage edge */
.cover-wrap { background: linear-gradient(var(--night) 0 38%, var(--paper) 38% 100%); padding-bottom: 0; }
.cover-wrap .cover { margin: 0; height: min(70vh, 700px); }
.cover-wrap .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,18,31,.25), rgba(8,18,31,0) 40%); pointer-events: none; }
.cover .mk, .cover-wrap .mk { position: absolute; width: 7px; height: 7px; background: var(--gold-l); z-index: 2; }

/* sections: hairlines instead of solid rules */
.areas, .area, .values, .values > div, .tl li, .offices li, .pillar { border-color: var(--rule) !important; }
.area { border-bottom-style: dashed !important; }
.sec.deep, .sec.dark, .band, .motto { background: var(--night) !important; }
.sec.deep .kicker, .sec.dark .kicker, .motto .kicker { color: var(--gold-l); }
.sec.deep .kicker::before, .sec.dark .kicker::before { background: var(--gold-l); }
.motto::before, .motto::after { background: var(--gold-l) !important; }
.btn.light { border-color: rgba(244,236,218,.7); color: var(--cream); }
.btn.light:hover { background: var(--cream); color: var(--night); }
.btn.solid { background: var(--night); border-color: var(--night); }
.reveal { clip-path: inset(0 0 100% 0); }

/* word-by-word headings (cine.js) */
.wsplit .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wsplit .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.05s cubic-bezier(.2,0,0,1); transition-delay: calc(var(--i) * 55ms + var(--d, 0ms)); }
.wsplit.in .w > span { transform: none; }
.wsplit.rv { opacity: 1 !important; transform: none !important; }

/* ---------------------------------------------------------------- footer */
.ftr { background: var(--night); border-top: 1px dashed rgba(244,236,218,.22); }
.ftr .brandbox { background: #F7F2E6; border-radius: .25rem; padding: 14px 18px; }
.ftr .brandbox img { height: 56px; }
.ftr h2 { color: var(--gold-l) !important; }
.ftr a { text-decoration: none; }
.ftr .top a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }
.ftr .legal, .ftr .nlrow { border-top: 1px dashed rgba(244,236,218,.22) !important; }

/* ---------------------------------------------------------------- page veil (loader → gate → reveal) */
.veil { position: fixed; inset: 0; z-index: 90; background: var(--night); display: flex; align-items: center; justify-content: center;
  transition: clip-path .8s cubic-bezier(.7,0,.2,1); clip-path: inset(0 0 0 0); }
.veil .logo-plate { width: 7rem; height: 4.15rem; opacity: 0; transform: translateY(8px); animation: veilIn .5s .05s cubic-bezier(.2,0,0,1) forwards; }
.veil .line { position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--gold-l); transform-origin: left; transform: scaleX(0); animation: veilLine .7s cubic-bezier(.2,0,0,1) forwards; }
.veil.out { clip-path: inset(0 0 100% 0); }
.veil.in-nav { clip-path: inset(100% 0 0 0); transition: none; }
.veil.cover-nav { clip-path: inset(0 0 0 0); transition: clip-path .55s cubic-bezier(.7,0,.2,1); }
@keyframes veilIn { to { opacity: 1; transform: none; } }
@keyframes veilLine { to { transform: scaleX(1); } }
html.no-js .veil { display: none; }

@media (prefers-reduced-motion: reduce) {
  .veil { display: none; }
  .wsplit .w > span { transform: none; transition: none; }
  .cmenu { transition: none; }
}
@media (max-width: 760px) {
  .phead .grid { grid-template-columns: minmax(0,1fr) !important; }
  .cover-wrap .cover { height: 52vh; min-height: 300px; }
}

/* ---------------------------------------------------------------- phone comfort */
@media (max-width: 760px) {
  .ind .tag, .offices time span, .person .meta b, .case .sector, .sol .core, .prod th { font-size: 11.5px !important; }
  .ftr .legal nav { gap: 4px 18px; }
  .ftr .legal nav a, .ftr .legal button { display: inline-flex; align-items: center; min-height: 44px; }
  .ftr .nl button { min-height: 44px; }
  .ftr .top li a { display: inline-block; padding: 6px 0; }
  .crumbs { align-items: center; row-gap: 0; }
  .crumbs li { display: inline-flex; align-items: center; min-height: 34px; }
  .crumbs a { display: inline-block; padding: 8px 0; }
  .chdr .logo { width: auto; padding-right: 1rem; }
  .phead { padding-top: calc(var(--hh) + 40px); }
  .area { padding: 28px 0 32px; }
  .cookie { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
}

/* ---------------------------------------------------------------- office clocks (footer) */
.clocks { margin-top: 48px; padding-top: 28px; border-top: 1px dashed rgba(244,236,218,.22); }
.clocks-k { font: 500 11px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-l); }
.clocks ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.clocks li { display: grid; grid-template-rows: auto auto auto; gap: 4px; padding: 6px 24px 6px 0; margin-right: 24px; border-right: 1px dashed rgba(244,236,218,.18); }
.clocks li:last-child { border-right: 0; margin-right: 0; }
.clocks .c-city { font: 500 14px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--cream); }
.clocks .c-role { font-size: 12.5px; line-height: 1.4; color: rgba(244,236,218,.62); }
.clocks time { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.clocks time b { font: 500 34px/1 var(--serif); font-size-adjust: .47; color: var(--cream); font-variant-numeric: tabular-nums lining-nums; }
.clocks time i { font: 500 11px/1 var(--sans); font-style: normal; letter-spacing: .1em; color: var(--gold-l); }
@media (max-width: 900px) {
  .clocks ul { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 18px; }
  .clocks li:nth-child(2n) { border-right: 0; margin-right: 0; }
}
@media (max-width: 600px) {
  .clocks time { flex-direction: column; align-items: flex-start; gap: 6px; }
  .clocks time i { white-space: nowrap; }
}

/* headings in subgrid cards sit at the top of their row, so a two-line heading never rises above its neighbours */
.disc > div > h3, .people .person > h3 { align-self: start !important; }

/* header: no corner squares */
.chdr .mk { display: none; }

/* Larger logo: readable wordmark in a slightly taller header */
.chdr .logo-plate { width: 5.25rem; height: 3.1rem; }
.chdr .logo { width: auto; padding-right: 1.25rem; }
@media (min-width: 768px) {
  :root { --hh: 76px; }
  .chdr .logo-plate { width: 6.25rem; height: 3.7rem; }
  .chdr .logo { padding-right: 1.75rem; }
}

/* picture cards (services, industries): never let the subgrid squeeze the link onto the text on phones */
@media (max-width: 760px) {
  .disc > div { display: flex !important; flex-direction: column; }
  .disc .more { margin-top: 14px; }
}

/* audit fixes (MC-RPT-2026-014) */
.ftr .fttl{font:500 11px/1.4 var(--sans);letter-spacing:.2em;text-transform:uppercase;color:rgba(244,242,236,.55);margin:0 0 18px}
.fine,.person .meta,.pow-status,.people.compact .person p,.ftr .legal,.ftr .legal button{font-size:14px}
.area p,.body p,.bio p,.article .body p,ul.edu li{max-width:68ch}
.inds .ind h3{margin-bottom:.4em}
@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto}}

/* Logo fills its header cell edge to edge, like the consultation block */
.chdr .logo { padding: 0 !important; width: auto !important; align-items: stretch; }
.chdr .logo .logo-plate { height: 100%; width: calc(var(--hh) * 1.69); border-radius: 0; box-shadow: none; }
.chdr .logo .logo-plate img { width: 82%; }
.chdr .logo a { display: flex; height: 100%; }
