/* =====================================================================================================
   inner.css  ·  Inaya Advisory inner pages (redesign of 27 Nov 2026, second round)
   Loaded ONLY by pages built by tools/build_inner.py, whose <body> carries the class "nx".
   Every rule is scoped to body.nx, so the homepage (body.dark.home without .nx) cannot be affected.
   Design notes: tools/INNER-REDESIGN-2026-11-27.md
   Owner's rules for this round: the title area follows the homepage's order (label, heading at the homepage
   size, intro beneath, button); every set of parallel points is a grid of thin-edged boxes; every photograph
   sits inside the content width at the homepage's inset proportions; everything is black with off-white type.
   Sections: 1 tokens and base · 2 motion · 3 title area · 4 section heading · 5 boxes · 6 photographs
             7 photo link cards · 8 people cards and pop-up · 9 forms · 10 consultation · 11 majlis · 12 legal
             13 closing button · 14 small screens
   ===================================================================================================== */

/* 1. TOKENS AND BASE ------------------------------------------------------------------------------- */
html body.nx {
  --nx-ink: #F4EFE6; --nx-text: #D9D3C9; --nx-meta: #A79E92;
  --nx-line: rgba(245, 242, 235, .18); --nx-line-2: rgba(245, 242, 235, .42);
  --nx-ground: #0B0B09;
  --nx-ease: cubic-bezier(.22, 1, .36, 1); --nx-sweep: cubic-bezier(.77, 0, .18, 1);
  --nx-gap: clamp(14px, 1.4vw, 20px);
  --nx-sp: clamp(88px, 11.1vw, 160px);
  --nx-serif: 'Cormorant Garamond', Georgia, serif; --nx-display: 'Marcellus', Georgia, serif; --nx-sans: 'DM Sans', system-ui, sans-serif;
  --nx-h2: clamp(30px, 3.06vw, 44px); --nx-h3: clamp(23px, 1.88vw, 27px);
  --nx-body: clamp(16.5px, 1.25vw, 18px);
}
html body.nx main.nx-main { display: block; overflow-x: clip; }
html body.nx :where(.nx-main) :is(section, header) { padding: 0; border: 0; margin: 0; background: none; }
html body.nx .nx-main .nx-s { padding: 0 0 var(--nx-sp); }
html body.nx .nx-main .nx-s--tight { padding-bottom: clamp(20px, 2vw, 28px); }
html body.nx :where(.nx-main) p { margin: 0; text-wrap: pretty; }
html body.nx :where(.nx-main) :is(h1, h2, h3) { margin: 0; font-weight: 300; }
html body.nx :where(.nx-main) :is(ul, ol) { list-style: none; margin: 0; padding: 0; }
html body.nx :where(.nx-main) li { border: 0; }
html body.nx :where(.nx-main) a { color: inherit; text-decoration: none; }
html body.nx :where(.nx-main) figure { margin: 0; }
html body.nx .nx-main .label { margin: 0 0 clamp(20px, 2vw, 28px); font-family: var(--nx-sans); font-size: 12px; font-weight: 500; line-height: 1.7; letter-spacing: .26em; text-transform: uppercase; color: var(--nx-meta); }
html body.nx .nx-h2 { font-family: var(--nx-serif); font-size: var(--nx-h2); line-height: 1.1; color: var(--nx-ink); text-wrap: balance; }
html body.nx .nx-p { font-family: var(--nx-sans); font-weight: 300; font-size: var(--nx-body); line-height: 1.6; color: var(--nx-text); }
html body.nx .nx-main b, html body.nx .nx-main strong { font-weight: 300; color: var(--nx-ink); }
html body.nx .nx-main a:focus-visible, html body.nx .nx-main button:focus-visible { outline: 1px solid var(--nx-ink); outline-offset: 5px; }
html body.nx .nx-fine { font-size: 13.5px; line-height: 1.6; color: var(--nx-meta); }
html body.nx .nx-fine a, html body.nx .nx-ul { text-decoration: underline !important; text-underline-offset: 4px; text-decoration-thickness: 1px !important; color: var(--nx-ink) !important; }
/* the small boxed "Read more" on a heading line. It fills white with a thin black edge when its card is hovered */
html body.nx .nx-more { flex: none; display: inline-block; padding: 7px 13px; border: 1px solid var(--nx-line-2); font-family: var(--nx-sans); font-size: 11px; font-weight: 300; line-height: 1.5; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; color: var(--nx-ink); background: transparent; transition: background-color .4s var(--nx-ease), color .4s var(--nx-ease), border-color .4s var(--nx-ease), box-shadow .4s var(--nx-ease); }
html body.nx :is(a, button):is(:hover, :focus-visible) .nx-more { background: #FFFFFF; color: #0B0B09; border-color: #FFFFFF; box-shadow: inset 0 0 0 1px #FFFFFF, inset 0 0 0 2px #0B0B09; }

/* 2. MOTION ---------------------------------------------------------------------------------------- */
html body.nx .nx-main [data-reveal] { transform: translate3d(0, 16px, 0); filter: none; transition: opacity .9s ease, transform 1.1s var(--nx-ease), border-color .4s ease; transition-delay: var(--reveal-delay, 0s); }
html body.nx .nx-main [data-reveal].is-revealed { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html body.nx .nx-main [data-reveal] { opacity: 1; transform: none; transition: none; }
  html body.nx .nx-main * { transition-duration: .01s !important; }
}

/* 3. TITLE AREA: the homepage's order and sizes. Label, heading, intro beneath, button. No graphic. --- */
html body.nx .nx-main .nx-hero { padding: clamp(48px, 5.6vw, 80px) 0 clamp(64px, 6.7vw, 96px); }
html body.nx .nx-hero h1 { max-width: 17.5em; font-family: var(--nx-display); font-weight: 400; font-size: clamp(34px, 3.75vw, 54px); line-height: 1.08; letter-spacing: 0; color: var(--nx-ink); text-wrap: balance; }
html body.nx .nx-hero-p { max-width: 42em; margin-top: clamp(28px, 3vw, 44px) !important; font-family: var(--nx-sans); font-weight: 300; font-size: 18px; line-height: 1.65; color: var(--nx-text); }
html body.nx .nx-hero-b { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(32px, 3.4vw, 48px); }
html body.nx .nx-hero-b .btn { display: inline-flex; align-items: center; gap: 12px; }

/* 4. SECTION HEADING: label and serif heading on the left, an optional paragraph on the right --------- */
html body.nx .nx-head { margin: 0 0 clamp(36px, 4.2vw, 60px); }
html body.nx .nx-head .nx-h2 { max-width: 29ch; }
html body.nx .nx-head .nx-p { max-width: 44em; margin-top: clamp(18px, 1.8vw, 26px); }
html body.nx .nx-sub { margin: clamp(36px, 4vw, 56px) 0 clamp(16px, 1.6vw, 22px) !important; }
html body.nx .nx-sub:first-child { margin-top: 0 !important; }

/* 5. CARDS: every set of parallel points. A thin edge, a heading area, text that explains, an optional foot band.
      Two heading areas: a building photograph under a dark tint with the title on it, or a faintly tinted band.
      Rows share their heights through subgrid, so headings, text and foot bands line up across a row. */
html body.nx .nx-boxes { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: var(--nx-gap); }
html body.nx .nx-boxes + .nx-boxes { margin-top: var(--nx-gap); }
html body.nx .nx-box { position: relative; display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; min-width: 0; border: 1px solid var(--nx-line); background: rgba(244, 239, 230, .012); color: inherit; }
html body.nx .nx-box:hover, html body.nx a.nx-box:focus-visible { border-color: var(--nx-line-2); }
html body.nx .nx-box .hd { display: flex; flex-direction: column; justify-content: center; padding: clamp(16px, 1.5vw, 21px) clamp(20px, 2vw, 28px); background: rgba(244, 239, 230, .06); }
html body.nx .nx-box .k { display: block; margin: 0 0 8px; font-family: var(--nx-sans); font-size: 11px; font-weight: 500; line-height: 1.6; letter-spacing: .22em; text-transform: uppercase; color: var(--nx-meta); }
html body.nx .nx-box h3 { margin: 0; font-family: var(--nx-serif); font-size: var(--nx-h3); line-height: 1.15; color: var(--nx-ink); text-wrap: balance; }
html body.nx .nx-box .hd--ph { position: relative; justify-content: flex-end; min-height: clamp(128px, 11vw, 158px); padding-top: 40px; padding-bottom: clamp(14px, 1.4vw, 18px); background: #111110; overflow: hidden; }
html body.nx .nx-box .hd--ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.8); }
html body.nx .nx-box .hd--ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 9, .16) 0%, rgba(11, 11, 9, .42) 50%, rgba(11, 11, 9, .84) 100%); }
html body.nx .nx-box .hd--ph h3, html body.nx .nx-box .hd--ph .k { position: relative; z-index: 1; color: #FFFFFF; }
html body.nx .nx-box .hd--ph .k { color: rgba(255, 255, 255, .78); }
html body.nx .nx-box .bd { padding: clamp(18px, 1.8vw, 24px) clamp(20px, 2vw, 28px) clamp(22px, 2.2vw, 30px); }
html body.nx .nx-box .bd:empty { display: block; padding: 0; }
html body.nx .nx-box p { font-size: 16px; line-height: 1.62; color: var(--nx-text); }
html body.nx .nx-box p + p { margin-top: .8em; }
html body.nx .nx-box .ft { padding: 14px clamp(20px, 2vw, 28px) 16px; background: rgba(244, 239, 230, .045); font-size: 15px; line-height: 1.5; color: var(--nx-ink); }
html body.nx .nx-box .ft span { display: block; margin-bottom: 3px; font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--nx-meta); }
html body.nx .nx-box .ft--0 { padding: 0; background: none; }
html body.nx .nx-box ul li { position: relative; padding: 0 0 0 20px; font-size: 16px; line-height: 1.5; color: var(--nx-text); }
html body.nx .nx-box ul li + li { margin-top: 12px; }
html body.nx .nx-box ul li::before { content: ''; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; background: var(--nx-meta); }
html body.nx .nx-box ul.links li { padding-left: 0; font-family: var(--nx-serif); font-size: clamp(19px, 1.53vw, 22px); line-height: 1.25; }
html body.nx .nx-box ul.links li::before { display: none; }
html body.nx .nx-box ul.links a { color: var(--nx-text); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--nx-ease), color .3s ease; }
html body.nx .nx-box ul.links a:hover, html body.nx .nx-box ul.links a:focus-visible { color: var(--nx-ink); background-size: 100% 1px; outline: none; }
html body.nx .nx-box ul.links [aria-current] { position: relative; display: inline-block; padding-left: 18px; color: var(--nx-ink); }
html body.nx .nx-box ul.links [aria-current]::before { content: ''; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; background: var(--nx-ink); }
/* strategy and sector tiles: the photograph is the heading band, the text beneath says what a mandate in the area involves */
html body.nx .nx-boxes--areas .nx-box .hd--ph { min-height: clamp(132px, 11.4vw, 164px); }
html body.nx .nx-boxes--areas .nx-box h3 { font-size: clamp(19px, 1.53vw, 22px); }
html body.nx .nx-boxes--areas .nx-box p { font-size: 15.5px; line-height: 1.6; }
/* the deliverable on a service page: the title set larger */
html body.nx .nx-box--big .hd { background: none; padding-top: clamp(26px, 2.6vw, 36px); padding-bottom: clamp(26px, 2.6vw, 36px); }
html body.nx .nx-box--big h3 { font-size: clamp(28px, 2.78vw, 40px); line-height: 1.08; }
/* a group heading above a row of cards: a tinted band with the group's name and one line */
html body.nx .nx-group { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: clamp(18px, 2.4vw, 34px); row-gap: 4px; margin: clamp(26px, 2.8vw, 40px) 0 var(--nx-gap); padding: clamp(14px, 1.4vw, 19px) clamp(20px, 2vw, 28px); border: 1px solid var(--nx-line); background: rgba(244, 239, 230, .06); }
html body.nx .nx-head + .nx-group { margin-top: 0; }
html body.nx .nx-group h3 { font-family: var(--nx-serif); font-size: clamp(25px, 2.08vw, 30px); line-height: 1.1; color: var(--nx-ink); }
html body.nx .nx-group p { font-size: 15.5px; line-height: 1.5; color: var(--nx-meta); }
/* a sequence: a small square on each card and a fine line joining one card to the next */
html body.nx .nx-boxes--seq .nx-box::before { content: ''; position: absolute; z-index: 2; left: -4px; top: 26px; width: 7px; height: 7px; background: var(--nx-ink); }
html body.nx .nx-boxes--seq .nx-box + .nx-box::after { content: ''; position: absolute; right: 100%; top: 29px; width: var(--nx-gap); height: 1px; margin-right: 1px; background: var(--nx-line-2); }

/* 6. PHOTOGRAPHS: always inside the content width, the homepage's inset proportion (2.33), black and white, white sweep */
html body.nx .nx-ph { position: relative; overflow: hidden; background: #111110; }
html body.nx .nx-ph img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04) brightness(.9); }
html body.nx .nx-main .nx-photo { padding: 0 0 var(--nx-sp); }
html body.nx .nx-main .nx-s--half, html body.nx .nx-main .nx-photo--half { padding-bottom: var(--nx-gap); }
html body.nx .nx-main .nx-photo--half { padding-bottom: var(--nx-gap); }
html body.nx .nx-photo .nx-ph { width: 100%; aspect-ratio: 2.33; }

/* 7. PHOTO LINK CARDS (/firm, /what-we-do): the homepage story-image proportion (3:2) ---------------- */
html body.nx .nx-cards { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: clamp(20px, 2.2vw, 32px); }
html body.nx .nx-card { display: block; }
html body.nx .nx-cards--step { align-items: start; }


html body.nx .nx-card .nx-ph { aspect-ratio: 3 / 2; }
html body.nx .nx-card .nx-ph img { transition: transform 1.6s var(--nx-ease); }
html body.nx .nx-card:hover .nx-ph img, html body.nx .nx-card:focus-visible .nx-ph img { transform: scale(1.03); }
html body.nx .nx-card-t { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(18px, 1.8vw, 26px); font-family: var(--nx-serif); font-weight: 300; font-size: clamp(24px, 2.08vw, 30px); line-height: 1.15; color: var(--nx-ink); }
html body.nx .nx-card-p { display: block; margin-top: 10px; font-size: 16px; line-height: 1.62; color: var(--nx-text); }

/* 8. PEOPLE CARDS and the profile pop-up (the homepage region pop-up's panel) ------------------------ */
html body.nx .nx-person { grid-row: auto; display: flex; flex-direction: column; width: 100%; margin: 0; padding: clamp(22px, 2.2vw, 30px); border: 1px solid var(--nx-line); background: rgba(244, 239, 230, .014); color: inherit; font: inherit; text-align: left; cursor: pointer; scroll-margin-top: 150px; }
html body.nx .nx-person:hover, html body.nx .nx-person:focus-visible { border-color: var(--nx-line-2); }
html body.nx .nx-person .nx-ph { width: clamp(104px, 9.4vw, 136px); aspect-ratio: 4 / 5; margin-bottom: clamp(20px, 2vw, 28px); }
html body.nx .nx-person .nx-ph img { object-position: 50% 18%; filter: grayscale(1) contrast(1.04) brightness(.95); }
html body.nx .nx-person-n { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--nx-serif); font-weight: 300; font-size: clamp(26px, 2.22vw, 32px); line-height: 1.1; color: var(--nx-ink); }
html body.nx .nx-person-r { display: block; margin: 10px 0 0; font-size: 11.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--nx-meta); }
html body.nx .nx-person-p { display: block; margin: clamp(14px, 1.4vw, 18px) 0 0; font-size: 16px; font-weight: 300; line-height: 1.62; color: var(--nx-text); }
html body.nx .nx-pm .ga-modal-map { background: #0E0E0C; }
html body.nx .nx-pm .ga-modal-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; filter: grayscale(1) contrast(1.04) brightness(.92); }

/* 9. FORMS: underlined fields inside one thin-edged panel -------------------------------------------- */
html body.nx .nx-form { padding: clamp(24px, 3vw, 44px); border: 1px solid var(--nx-line); background: rgba(244, 239, 230, .014); }
html body.nx .nx-form label { display: block; margin: 0 0 6px; font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--nx-meta); }
html body.nx .nx-form :is(input, select, textarea) { display: block; width: 100%; margin: 0; padding: 8px 0 12px; border: 0; border-bottom: 1px solid var(--nx-line-2); border-radius: 0; background: transparent; color: var(--nx-ink); font-family: var(--nx-sans); font-weight: 300; font-size: 17px; line-height: 1.4; outline: none; appearance: none; -webkit-appearance: none; transition: border-color .3s ease; }
html body.nx .nx-form textarea { resize: vertical; min-height: 96px; }
html body.nx .nx-form select { background-image: linear-gradient(45deg, transparent 50%, var(--nx-meta) 50%), linear-gradient(135deg, var(--nx-meta) 50%, transparent 50%); background-position: calc(100% - 9px) 55%, calc(100% - 4px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 24px; }
html body.nx .nx-form select option { background: #14130F; color: var(--nx-ink); }
html body.nx .nx-form :is(input, select, textarea):focus { border-bottom-color: var(--nx-ink); }
html body.nx .nx-form :is(input, textarea)::placeholder { color: rgba(167, 158, 146, .55); }
html body.nx .nx-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 2.2vw, 32px); row-gap: clamp(22px, 2.2vw, 30px); }
html body.nx .nx-fields .full { grid-column: 1 / -1; }
html body.nx .nx-fields--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html body.nx .nx-two { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--nx-gap); align-items: start; }
html body.nx .nx-two-l .nx-h2 { max-width: 16ch; }
html body.nx .nx-two-l > .nx-p { margin-top: clamp(20px, 2vw, 28px); max-width: 30em; }
html body.nx .nx-two-l .nx-boxes { margin-top: clamp(32px, 3.6vw, 52px); }
html body.nx .nx-edit { display: block; }

/* 10. CONSULTATION ----------------------------------------------------------------------------------- */
html body.nx .nx-box--meet { display: block; grid-row: auto; }
html body.nx .nx-box--meet .bd { display: flex; gap: clamp(20px, 2.2vw, 32px); align-items: flex-start; padding: clamp(20px, 2vw, 28px); }
html body.nx .nx-box--meet .nx-ph { flex: none; width: clamp(96px, 8.4vw, 120px); aspect-ratio: 4 / 5; }
html body.nx .nx-box--meet .nx-ph img { object-position: 50% 18%; filter: grayscale(1) contrast(1.04) brightness(.95); }
html body.nx .nx-box--meet h3 { margin-bottom: 8px; }
html body.nx .nx-box--meet .k { margin-bottom: 14px; }
html body.nx .nx-form > .label { margin-bottom: 18px; }
html body.nx .slots { display: grid; gap: 10px; }
html body.nx .slots-day { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html body.nx .slots-time { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 10px; }
html body.nx .slot { margin: 0; padding: 13px 6px; border: 1px solid var(--nx-line-2); border-radius: 0; background: transparent; color: var(--nx-ink); font-family: var(--nx-sans); font-weight: 300; font-size: 14px; letter-spacing: .04em; cursor: pointer; transition: background .3s ease, color .3s ease, border-color .3s ease; }
html body.nx .slot:hover { border-color: var(--nx-ink); }
html body.nx .slot[aria-pressed="true"] { background: var(--nx-ink); border-color: var(--nx-ink); color: #0B0B09; }
html body.nx .slot-day { display: grid; justify-items: center; gap: 2px; padding: 14px 6px; }
html body.nx .slot-day .d-wd, html body.nx .slot-day .d-mo { font-size: 10.5px; letter-spacing: .2em; opacity: .75; }
html body.nx .slot-day .d-dd { font-family: var(--nx-serif); font-size: 30px; line-height: 1.05; }
html body.nx .tz { margin: 14px 0 clamp(28px, 3vw, 40px) !important; font-size: 13.5px; line-height: 1.6; color: var(--nx-meta); }
html body.nx .tz a { color: var(--nx-ink); text-decoration: underline; text-underline-offset: 4px; }
html body.nx .nx-form .btn { display: block; width: 100%; margin: clamp(28px, 3vw, 40px) 0 14px; text-align: center; }
html body.nx .field-err { margin-top: 12px !important; font-size: 14px; line-height: 1.6; color: var(--nx-ink); }
html body.nx .field-err a { text-decoration: underline; text-underline-offset: 4px; }
html body.nx #bookcard.is-confirmed { display: grid; place-items: center; text-align: center; }
html body.nx .confirmed { display: grid; justify-items: center; padding: 40px 24px; }
html body.nx .conf-badge { width: 56px; height: 56px; margin-bottom: 22px; fill: none; stroke: var(--nx-ink); stroke-width: 1.2; }
html body.nx .confirmed .card-label { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--nx-meta); }
html body.nx .confirmed h3 { font-family: var(--nx-serif); font-size: 30px; color: var(--nx-ink); }
html body.nx .confirmed p { color: var(--nx-text); }

/* 11. THE MAJLIS -------------------------------------------------------------------------------------- */
html body.nx .nx-edit { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(40px, 8vw, 120px); align-items: end; }
html body.nx .nx-edit .nx-h2 { max-width: 20ch; }
html body.nx .nx-edit-r p + p { margin-top: 1.1em; }
html body.nx .nx-form fieldset { margin: 0 0 clamp(36px, 4vw, 56px); padding: 0; border: 0; min-width: 0; }
html body.nx .nx-form legend { padding: 0; margin: 0 0 clamp(20px, 2vw, 28px); font-family: var(--nx-serif); font-weight: 300; font-size: var(--nx-h3); line-height: 1.15; color: var(--nx-ink); }
html body.nx .nx-form--majlis .btn { display: inline-block; width: auto; margin: 0 0 18px; }
html body.nx .nx-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
html body.nx .form-err { margin: 0 0 18px !important; font-size: 14.5px; line-height: 1.6; color: var(--nx-ink); }
html body.nx .form-err a, html body.nx .nx-ok a { text-decoration: underline; text-underline-offset: 4px; }
html body.nx .nx-ok p { font-family: var(--nx-serif); font-size: clamp(22px, 1.95vw, 28px); line-height: 1.32; color: var(--nx-ink); }

/* 12. LEGAL: one reading column, set as a document ---------------------------------------------------- */
html body.nx .nx-legal { max-width: 46em; }
html body.nx .nx-legal h2 { margin: clamp(40px, 4.4vw, 60px) 0 14px; font-family: var(--nx-serif); font-size: clamp(24px, 2.08vw, 30px); line-height: 1.15; color: var(--nx-ink); scroll-margin-top: 150px; }
html body.nx .nx-legal h2:first-child { margin-top: 0; }
html body.nx .nx-legal :is(p, li) { font-size: 17px; line-height: 1.7; color: var(--nx-text); }
html body.nx .nx-legal p + p, html body.nx .nx-legal p + ul, html body.nx .nx-legal ul + p { margin-top: 1em; }
html body.nx .nx-legal ul li { position: relative; padding: 0 0 0 20px; }
html body.nx .nx-legal ul li + li { margin-top: .6em; }
html body.nx .nx-legal ul li::before { content: ''; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--nx-meta); }
html body.nx .nx-legal a, html body.nx .nx-hero-p a { color: var(--nx-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
html body.nx .nx-legal .legal-links { display: grid; gap: 10px; margin-top: 1em; }
html body.nx .nx-legal-date { margin-top: clamp(40px, 4.4vw, 60px) !important; font-size: 12px !important; letter-spacing: .22em; text-transform: uppercase; color: var(--nx-meta) !important; }

/* legal title area (owner, 26 Nov): a centred LEGAL label and the page name very large, centred */
html body.nx .nx-main .nx-hero--legal { padding: clamp(72px, 9vw, 140px) 0 clamp(56px, 6vw, 96px); text-align: center; }
html body.nx .nx-hero--legal h1 { max-width: none; font-size: clamp(44px, 10vw, 168px); line-height: 1; letter-spacing: -.01em; }
html body.nx .nx-s--legal .nx-legal { margin-left: auto; margin-right: auto; }
html body.nx .nx-s--legal .nx-legal-date { text-align: center; }

/* 13. CLOSING BUTTON: the button only, centred -------------------------------------------------------- */
html body.nx .nx-main .nx-cta { padding: 0 0 var(--nx-sp); text-align: center; }

/* 14. SMALL SCREENS ----------------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  html body.nx .nx-boxes[style*="--n:4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body.nx .nx-boxes--seq[style*="--n:4"] .nx-box:nth-child(odd)::after { display: none; }
}
@media (max-width: 900px) {
  html body.nx .nx-head, html body.nx .nx-edit, html body.nx .nx-two { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
  html body.nx .nx-two { row-gap: 48px; }
  html body.nx .nx-boxes[style*="--n:3"], html body.nx .nx-boxes[style*="--n:2"], html body.nx .nx-cards, html body.nx .nx-cards--duo { grid-template-columns: minmax(0, 1fr); }
  html body.nx .nx-cards--step > .nx-card:nth-child(n) { margin-top: 0 !important; }
  html body.nx .nx-head--split { display: block; } html body.nx .nx-head--split .nx-p { margin-top: clamp(18px, 1.8vw, 26px); max-width: 44em; }
  html body.nx .nx-cards { row-gap: 44px; }
  html body.nx .nx-boxes--seq .nx-box + .nx-box::after { right: auto; left: -1px; top: auto; bottom: 100%; width: 1px; height: var(--nx-gap); margin: 0 0 1px; }
  html body.nx .nx-boxes--seq .nx-box::before { top: -4px; left: 24px; }
  html body.nx .nx-boxes--seq .nx-box + .nx-box::after { left: 27px; }
}
@media (max-width: 700px) {
  html body.nx .nx-boxes, html body.nx .nx-boxes[style*="--n:4"] { grid-template-columns: minmax(0, 1fr); }
  html body.nx .nx-fields { grid-template-columns: minmax(0, 1fr); }
  html body.nx .slots-time { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html body.nx .nx-photo .nx-ph { aspect-ratio: 1.6; }
  html body.nx .nx-box--meet .bd { flex-direction: column; }
  html body.nx .nx-cta .btn { padding: 16px 18px; font-size: 12px; letter-spacing: 1.3px; white-space: nowrap; }
  html body.nx .nx-hero-p { font-size: 17px; }
}

/* 15. ROUND 5 (owner, 27 Nov): split section header, stepped photo cards everywhere, the /firm chain, the measures diagram */
/* split header: label and two-line heading left, two-to-three-line text at the right end, tops aligned */
html body.nx .nx-head--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 27em); column-gap: clamp(40px, 6vw, 96px); align-items: start; }
html body.nx .nx-head--split .label { grid-column: 1 / -1; }
html body.nx .nx-head--split .nx-h2 { grid-column: 1; }
html body.nx .nx-head--split .nx-p { grid-column: 2; margin-top: .42em; max-width: none; }
html body.nx .nx-hero-p { max-width: 60ch; }
/* stepped photo cards: full content width, the last card's right edge on the container's right edge */
html body.nx .nx-cards--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 2.2vw, 32px); }
html body.nx .nx-cards--step > .nx-card:nth-child(2) { margin-top: clamp(28px, 3.9vw, 56px); }
html body.nx .nx-cards--step > .nx-card:nth-child(3) { margin-top: clamp(56px, 7.8vw, 112px); }
html body.nx .nx-cards--4 > .nx-card:nth-child(2) { margin-top: clamp(20px, 2.6vw, 38px); }
html body.nx .nx-cards--4 > .nx-card:nth-child(3) { margin-top: clamp(40px, 5.2vw, 76px); }
html body.nx .nx-cards--4 > .nx-card:nth-child(4) { margin-top: clamp(60px, 7.8vw, 114px); }
html body.nx .nx-cards + .nx-cards { margin-top: clamp(48px, 5.6vw, 80px); }
html body.nx .nx-card-k { display: block; margin: 8px 0 0; font-size: 11.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--nx-meta); }
html body.nx .nx-card-k + .nx-card-p { margin-top: 14px; }
html body.nx .nx-cards--people .nx-ph { aspect-ratio: 3 / 4; width: min(62%, 210px); margin-right: auto; }
html body.nx .nx-cards--people .nx-ph img { object-position: 50% 22%; filter: grayscale(1) contrast(1.04) brightness(.95); }

/* the chain (/firm): eight numbered cards on one path. The line runs through a node above each card, from 01 along the
   first row, down the right side into the gap, back to 05 and along the second row to 08. One stroke weight, square corners. */
html body.nx .nx-chain { --cg: var(--nx-gap); --run: 20px; --off: 24px; --ret: 34px; --rg: 100px; --nx0: 30px; row-gap: var(--rg); grid-auto-rows: 1fr; margin-top: calc(var(--off) + 12px); }
html body.nx .nx-chain .nx-box { display: flex; flex-direction: column; grid-row: auto; }
html body.nx .nx-chain .nx-box .hd--ph { min-height: clamp(120px, 10vw, 146px); }
html body.nx .nx-chain .nx-box .hd--ph .k { margin-bottom: 6px; font-size: 12px; letter-spacing: .2em; }
html body.nx .nx-chain .nx-box h3 { white-space: nowrap; }
html body.nx .nx-chain .nx-box > i { position: absolute; display: none; background: rgba(244, 239, 230, .62); pointer-events: none; }
/* node, and a short stem from the node down to its card */
html body.nx .nx-chain .ch-n { display: block !important; z-index: 3; left: calc(var(--nx0) - 3px); top: calc(-1 * var(--off) - 4px); width: 7px; height: 7px; background: #F4EFE6 !important; }
html body.nx .nx-chain .ch-g { display: block !important; left: var(--nx0); top: calc(-1 * var(--off)); width: 1px; height: var(--off); background: rgba(244, 239, 230, .3) !important; transform-origin: 50% 0; }
/* node to the next node */
html body.nx .nx-chain .nx-box:not(:last-child) .ch-t { display: block; left: var(--nx0); top: calc(-1 * var(--off) - 1px); width: calc(100% + var(--cg)); height: 1px; transform-origin: 0 50%; }
/* start and end */
html body.nx .nx-chain .nx-box:first-child .ch-n { left: calc(var(--nx0) - 6px); top: calc(-1 * var(--off) - 7px); width: 13px; height: 13px; }
html body.nx .nx-chain .nx-box:last-child .ch-n { left: calc(var(--nx0) - 6px); top: calc(-1 * var(--off) - 7px); width: 13px; height: 13px; background: #0B0B09 !important; box-shadow: inset 0 0 0 1px #F4EFE6, inset 0 0 0 4px #0B0B09, inset 0 0 0 13px #F4EFE6; }
@media (min-width: 1101px) {
  html body.nx .nx-chain .nx-box:nth-child(4n):not(:last-child) .ch-t { width: calc(100% - var(--nx0) + var(--run)); }
  html body.nx .nx-chain .nx-box:nth-child(4n):not(:last-child) .ch-v { display: block; left: calc(100% + var(--run) - 1px); top: calc(-1 * var(--off) - 1px); width: 1px; height: calc(100% + var(--off) + var(--ret) + 2px); transform-origin: 50% 0; }
  html body.nx .nx-chain .nx-box:nth-child(4n):not(:last-child) .ch-r { display: block; top: calc(100% + var(--ret)); right: calc(-1 * var(--run)); width: calc(400% + 3 * var(--cg) + var(--run) - var(--nx0) + 6px); height: 1px; transform-origin: 100% 50%; }
  html body.nx .nx-chain .nx-box:nth-child(4n + 1):not(:first-child) .ch-v2 { display: block; left: var(--nx0); top: calc(-1 * (var(--rg) - var(--ret)) + 1px); width: 1px; height: calc(var(--rg) - var(--ret) - var(--off) - 1px); transform-origin: 50% 0; }
}
@media (min-width: 701px) and (max-width: 1100px) {
  html body.nx .nx-chain { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; --run: 16px; }
  html body.nx .nx-chain .nx-box:nth-child(2n):not(:last-child) .ch-t { width: calc(100% - var(--nx0) + var(--run)); }
  html body.nx .nx-chain .nx-box:nth-child(2n):not(:last-child) .ch-v { display: block; left: calc(100% + var(--run) - 1px); top: calc(-1 * var(--off) - 1px); width: 1px; height: calc(100% + var(--off) + var(--ret) + 2px); transform-origin: 50% 0; }
  html body.nx .nx-chain .nx-box:nth-child(2n):not(:last-child) .ch-r { display: block; top: calc(100% + var(--ret)); right: calc(-1 * var(--run)); width: calc(200% + var(--cg) + var(--run) - var(--nx0) + 2px); height: 1px; transform-origin: 100% 50%; }
  html body.nx .nx-chain .nx-box:nth-child(2n + 1):not(:first-child) .ch-v2 { display: block; left: var(--nx0); top: calc(-1 * (var(--rg) - var(--ret)) + 1px); width: 1px; height: calc(var(--rg) - var(--ret) - var(--off) - 1px); transform-origin: 50% 0; }
}
@media (max-width: 700px) {
  html body.nx .nx-chain { padding-left: 26px; row-gap: 28px; grid-auto-rows: auto; margin-top: 0; }
  html body.nx .nx-chain .ch-t, html body.nx .nx-chain .ch-g { display: none !important; }
  html body.nx .nx-chain .ch-n { left: -25px !important; top: 22px !important; width: 7px !important; height: 7px !important; }
  html body.nx .nx-chain .nx-box:first-child .ch-n, html body.nx .nx-chain .nx-box:last-child .ch-n { left: -28px !important; top: 19px !important; width: 13px !important; height: 13px !important; }
  html body.nx .nx-chain .nx-box:not(:last-child) .ch-v { display: block; left: -22px; top: 26px; width: 1px; height: calc(100% + 28px); transform-origin: 50% 0; }
  html body.nx .nx-chain .nx-box h3 { white-space: normal; }
}
/* the line draws from 01 to 08 and each card lights as the line reaches it */
html body.nx .nx-chain.nx-js .nx-box { transition: opacity .7s ease calc(var(--d) * 1s + .1s); }
html body.nx .nx-chain.nx-js .nx-box > i { transition: transform .3s linear calc(var(--d) * 1s); }
html body.nx .nx-chain.nx-js .ch-n { transition: opacity .3s ease calc(var(--d) * 1s) !important; }
html body.nx .nx-chain.nx-js .ch-g { transition-duration: .2s !important; }
html body.nx .nx-chain.nx-js .ch-v { transition-duration: .3s !important; transition-delay: calc(var(--d) * 1s + .3s) !important; }
html body.nx .nx-chain.nx-js .ch-r { transition-duration: .5s !important; transition-delay: calc(var(--d) * 1s + .6s) !important; }
html body.nx .nx-chain.nx-js .ch-v2 { transition-duration: .15s !important; transition-delay: calc(var(--d) * 1s - .15s) !important; }
html body.nx .nx-chain.nx-js:not(.is-on) .nx-box { opacity: .32; }
html body.nx .nx-chain.nx-js:not(.is-on) .ch-n { opacity: 0; }
html body.nx .nx-chain.nx-js:not(.is-on) :is(.ch-t, .ch-r) { transform: scaleX(0); }
html body.nx .nx-chain.nx-js:not(.is-on) :is(.ch-v, .ch-v2, .ch-g) { transform: scaleY(0); }

/* the measures diagram (/mandate-selection): the mandate at the centre, a dotted circle, eight measures tied to it */
html body.nx .nx-radial { position: relative; }
html body.nx .nx-radial svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
html body.nx .nx-radial svg .dot { fill: rgba(244, 239, 230, .62); }
html body.nx .nx-radial svg .core circle { fill: #F4EFE6; }
html body.nx .nx-radial svg .node { fill: #F4EFE6; }
html body.nx .nx-radial svg .lead { fill: none; stroke: rgba(244, 239, 230, .5); stroke-width: 1; }
html body.nx .nx-radial svg .num { fill: #F4EFE6; font-family: var(--nx-sans); font-size: 12px; text-anchor: middle; dominant-baseline: middle; }
html body.nx .nx-radial svg .ringg { transform-box: fill-box; transform-origin: 50% 50%; animation: nxSpin 240s linear infinite; }
html body.nx .nx-radial svg .core { transform-box: fill-box; transform-origin: 50% 50%; animation: nxBreathe 7s ease-in-out infinite; }
@keyframes nxSpin { to { transform: rotate(360deg); } }
@keyframes nxBreathe { 0%, 100% { opacity: .78; transform: scale(1); } 50% { opacity: 1; transform: scale(1.035); } }
html body.nx .nx-radial-c { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, calc(var(--rs, 50px) + 16px)); margin: 0; font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; color: var(--nx-ink); }
html body.nx .nx-radial ol { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 56px); counter-reset: m; }
html body.nx .nx-radial li { outline: none; transition: opacity .4s ease; }
html body.nx .nx-radial li h3 { margin: 0 0 8px; font-family: var(--nx-serif); font-size: var(--nx-h3); line-height: 1.15; color: var(--nx-ink); }
html body.nx .nx-radial li p { font-size: 15.5px; line-height: 1.58; color: var(--nx-text); }
@media (min-width: 1181px) {
  html body.nx .nx-radial { --radial: 1; min-height: 640px; }
  html body.nx .nx-radial ol { position: static; display: block; }
  html body.nx .nx-radial li { position: absolute; width: clamp(240px, 20vw, 280px); padding: 0; }
  html body.nx .nx-radial li.al-r { text-align: right; } html body.nx .nx-radial li.al-c { text-align: center; }
}
@media (max-width: 1180px) {
  html body.nx .nx-radial { padding-top: 340px; }
  html body.nx .nx-radial svg { height: 320px; }
  html body.nx .nx-radial-c { top: 160px; }
  html body.nx .nx-radial ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body.nx .nx-radial li { position: relative; padding-left: 34px; counter-increment: m; }
  html body.nx .nx-radial li::before { content: counter(m); position: absolute; left: 0; top: 5px; width: 22px; height: 22px; border: 1px solid var(--nx-line-2); font-size: 12px; line-height: 21px; text-align: center; color: var(--nx-ink); }
}
@media (max-width: 640px) { html body.nx .nx-radial ol { grid-template-columns: minmax(0, 1fr); } }
/* hover or focus on a measure brightens it and dims the others slightly */
html body.nx .nx-radial[data-hl] li { opacity: .45; }
html body.nx .nx-radial[data-hl] li.hl { opacity: 1; }
html body.nx .nx-radial[data-hl] svg :is(.node, .lead, .num) { opacity: .35; }
html body.nx .nx-radial[data-hl] svg .hl { opacity: 1 !important; }
html body.nx .nx-radial svg :is(.node, .lead, .num) { transition: opacity .4s ease; }
html body.nx .nx-radial svg .lead.hl { stroke: #F4EFE6; }
/* drawing in on scroll */
html body.nx .nx-radial.nx-js .dot { transition: opacity .3s ease calc(var(--i) * 9ms); }
html body.nx .nx-radial.nx-js .node, html body.nx .nx-radial.nx-js .num { transition: opacity .4s ease calc(.9s + var(--i) * .22s); }
html body.nx .nx-radial.nx-js .lead { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .5s ease calc(1s + var(--i) * .22s), opacity .4s ease; }
html body.nx .nx-radial.nx-js li { transition: opacity .7s ease calc(1.2s + var(--i) * .22s); }
html body.nx .nx-radial.nx-js.is-done li { transition: opacity .4s ease; }
html body.nx .nx-radial.nx-js:not(.is-on) :is(.dot, .node, .num, li) { opacity: 0; }
html body.nx .nx-radial.nx-js:not(.is-on) .lead { stroke-dashoffset: 1; }
@media (prefers-reduced-motion: reduce) {
  html body.nx .nx-radial svg .ringg, html body.nx .nx-radial svg .core { animation: none; }
}

/* round 5, widths between phone and desktop: three-across card sets stack, split headers stack, so lengths stay equal */
@media (max-width: 1180px) {
  html body.nx .nx-head--split { display: block; } html body.nx .nx-head--split .nx-p { margin-top: clamp(18px, 1.8vw, 26px); max-width: 44em; }
  html body.nx .nx-boxes[style*="--n:3"] { grid-template-columns: minmax(0, 1fr); }
  html body.nx .nx-boxes--seq .nx-box + .nx-box::after { right: auto; left: 27px; top: auto; bottom: 100%; width: 1px; height: var(--nx-gap); margin: 0 0 1px; }
  html body.nx .nx-boxes--seq .nx-box::before { top: -4px; left: 24px; }
}
html body.nx .nx-boxes--one .nx-box p { max-width: 46em; }

@media (max-width: 1180px) {
  html body.nx .nx-card-t { font-size: 19px; } html body.nx .nx-card-t > span:first-child { white-space: nowrap; } html body.nx .nx-cards--step .nx-more { padding: 5px 8px; font-size: 9.5px; letter-spacing: .14em; }
  html body.nx .nx-cards--duo .nx-card-t { font-size: 24px; }
  html body.nx .nx-radial li h3 { font-size: 20px; }
}



@media (max-width: 1180px) { html body.nx .nx-meet { grid-template-columns: minmax(0, 1fr); } }

/* staggered title area (Shayan 28 Nov): heading line one in from the left, line two at the left edge; intro at the right end; button centred */
html body.nx .nx-hero--st h1 { max-width: none; text-wrap: initial; }
html body.nx .nx-hero--st h1 .nx-hl1, html body.nx .nx-hero--st h1 .nx-hl2 { display: block; }
html body.nx .nx-hero--st h1 .nx-hl1 { padding-left: clamp(0px, 16vw, 240px); }
html body.nx .nx-hero--st .nx-hero-p { max-width: 34em; margin-left: auto; }
html body.nx .nx-hero--st .nx-hero-b { justify-content: center; }
@media (max-width: 760px) {
  html body.nx .nx-hero--st h1 .nx-hl1 { padding-left: 0; }
  html body.nx .nx-hero--st h1 .nx-hl1, html body.nx .nx-hero--st h1 .nx-hl2 { display: inline; }
  html body.nx .nx-hero--st .nx-hero-p { margin-left: 0; }
  html body.nx .nx-hero--st .nx-hero-b { justify-content: flex-start; }
}

/* people cards carry their own responsibility (Shayan 28 Nov) */
html body.nx .nx-card-x { display: block; margin-top: clamp(20px, 2vw, 26px); padding-top: clamp(18px, 1.8vw, 22px); border-top: 1px solid var(--nx-line); }
html body.nx .nx-card-xk { display: block; font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--nx-meta); }
html body.nx .nx-card-xh { display: block; margin-top: 8px; font-family: var(--nx-serif); font-weight: 300; font-size: clamp(21px, 1.7vw, 24px); line-height: 1.15; color: var(--nx-ink); }
html body.nx .nx-card-xp { display: block; margin-top: 10px; font-size: 15px; font-weight: 300; line-height: 1.6; color: var(--nx-text); }

/* one box holder around a whole section (Shayan 28 Nov: /mandate-selection measures) */
html body.nx .nx-panel { border: 1px solid var(--nx-line); background: rgba(244, 239, 230, .014); padding: clamp(28px, 3.4vw, 56px); }
html body.nx .nx-panel .nx-radial { margin-top: clamp(36px, 4vw, 56px); }

/* phase bands with a photograph under a black tint (Shayan 28 Nov) */
html body.nx .nx-group--ph { position: relative; overflow: hidden; min-height: clamp(84px, 7vw, 108px); align-content: center; padding: clamp(16px, 1.6vw, 22px) clamp(22px, 2.2vw, 32px); background: #0b0b0b; }
html body.nx .nx-group--ph .nx-group-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(.95) brightness(.55); z-index: 0; }
html body.nx .nx-group--ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 8, 8, .9) 0%, rgba(8, 8, 8, .82) 50%, rgba(8, 8, 8, .62) 100%); z-index: 1; }
html body.nx .nx-group--ph h3, html body.nx .nx-group--ph p { position: relative; z-index: 2; }
html body.nx .nx-group--ph h3 { font-size: clamp(26px, 2.2vw, 32px); }
html body.nx .nx-group--ph p { color: #EDE8DF; }
html body.nx .nx-group--ph h3, html body.nx .nx-group--ph p { text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }

/* photo panels with an overlapping statement card (Shayan 28 Nov) */
html body.nx .nx-pans { display: grid; gap: clamp(40px, 5vw, 72px); }
html body.nx .nx-pan { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
html body.nx .nx-pan > .nx-ph { grid-column: 1 / span 7; grid-row: 1; aspect-ratio: 4 / 3; margin: 0; }
html body.nx .nx-pan > .nx-ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.82); }
html body.nx .nx-pan-c { grid-column: 6 / span 7; grid-row: 1; position: relative; z-index: 2; padding: clamp(28px, 3.2vw, 52px); border: 1px solid var(--nx-line-2); background: #0d0d0d; }
html body.nx .nx-pan--r > .nx-ph { grid-column: 6 / span 7; }
html body.nx .nx-pan--r .nx-pan-c { grid-column: 1 / span 7; }
html body.nx .nx-pan-c h3 { margin: 14px 0 0; font-family: var(--nx-serif); font-weight: 400; font-size: clamp(26px, 2.3vw, 34px); line-height: 1.18; color: var(--nx-ink); text-wrap: balance; }
html body.nx .nx-pan-c p:last-child { margin-top: clamp(14px, 1.4vw, 20px); font-size: 16px; font-weight: 300; line-height: 1.65; color: var(--nx-text); }
@media (max-width: 900px) {
  html body.nx .nx-pan { grid-template-columns: minmax(0, 1fr); }
  html body.nx .nx-pan > .nx-ph, html body.nx .nx-pan--r > .nx-ph, html body.nx .nx-pan-c, html body.nx .nx-pan--r .nx-pan-c { grid-column: 1; }
  html body.nx .nx-pan-c { grid-row: 2; margin: -48px 16px 0; }
}

/* 16. DENSE ROUND (Shayan 28 Nov): comparison cards with labelled sections, bullet cards, the phase timeline */
html body.nx .nx-boxes--dense .nx-box ul li, html body.nx .nx-cmp .nx-box ul li, html body.nx .nx-tl .nx-box ul li { padding-left: 17px; font-size: 15px; line-height: 1.48; }
html body.nx .nx-boxes--dense .nx-box ul li + li, html body.nx .nx-cmp .nx-box ul li + li, html body.nx .nx-tl .nx-box ul li + li { margin-top: 9px; }
html body.nx .nx-boxes--dense .nx-box ul li::before, html body.nx .nx-cmp .nx-box ul li::before, html body.nx .nx-tl .nx-box ul li::before { top: .6em; width: 4px; height: 4px; }
/* comparison cards: heading band, then one labelled section per row; the rows align across the cards (subgrid) */
html body.nx .nx-cmp .nx-box .hd { padding-left: clamp(16px, 1.6vw, 22px); padding-right: clamp(16px, 1.6vw, 22px); }
html body.nx .nx-cmp .rw { padding: 14px clamp(16px, 1.6vw, 22px) 16px; border-top: 1px solid var(--nx-line); }
html body.nx .nx-cmp .hd + .rw { border-top: 0; }
html body.nx .nx-cmp .rl { display: block; margin: 0 0 9px; font-size: 10.5px; font-weight: 500; line-height: 1.6; letter-spacing: .22em; text-transform: uppercase; color: var(--nx-meta); }
/* the timeline: phase cards in one row, a node above each card and a fine line from node to node */
html body.nx .nx-tl { --tlo: 26px; --tlx: 22px; margin-top: calc(var(--tlo) + 10px); gap: clamp(10px, 1vw, 14px); }
html body.nx .nx-tl .nx-box .hd { justify-content: flex-start; padding: 16px 18px 16px; }
html body.nx .nx-tl .nx-box .bd { padding: 16px 18px 20px; }
html body.nx .nx-tl .nx-box h3 { font-size: clamp(20px, 1.6vw, 23px); }
html body.nx .nx-tl .wk { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.4; color: var(--nx-ink); }
html body.nx .nx-tl .nx-box::before { content: ''; position: absolute; z-index: 2; left: calc(var(--tlx) - 3px); top: calc(-1 * var(--tlo) - 4px); width: 7px; height: 7px; background: var(--nx-ink); }
html body.nx .nx-tl .nx-box:not(:last-child)::after { content: ''; position: absolute; left: var(--tlx); top: calc(-1 * var(--tlo) - 1px); width: calc(100% + clamp(10px, 1vw, 14px) + 2px); height: 1px; background: var(--nx-line-2); }
html body.nx .nx-tl .nx-box .hd::before { content: ''; position: absolute; left: var(--tlx); top: calc(-1 * var(--tlo)); width: 1px; height: var(--tlo); background: var(--nx-line-2); }
html body.nx .nx-sub + .nx-tl { margin-top: calc(var(--tlo) + 14px); }
@media (max-width: 1279px) {
  html body.nx .nx-tl, html body.nx .nx-boxes.nx-tl[style] { grid-template-columns: minmax(0, 1fr); padding-left: 24px; margin-top: 0; gap: var(--nx-gap); }
  html body.nx .nx-sub + .nx-tl { margin-top: 0; }
  html body.nx .nx-tl .nx-box::before { left: -27px; top: 22px; }
  html body.nx .nx-tl .nx-box:not(:last-child)::after { left: -24px; top: 26px; width: 1px; height: calc(100% + var(--nx-gap) + 2px); }
  html body.nx .nx-tl .nx-box .hd::before { left: -24px; top: 25px; width: 24px; height: 1px; }
}
/* the content width is narrow between 1101 and 1279, so the four-across dense sets go two across there */
@media (min-width: 701px) and (max-width: 1279px) {
  html body.nx .nx-boxes.nx-cmp[style], html body.nx .nx-boxes.nx-boxes--dense[style*="--n:4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* consultation page: a thin arrow down to the booking form in place of the button, and a larger intro (Shayan 28 Nov) */
html body.nx .nx-hero--big .nx-hero-p { font-size: clamp(19px, 1.55vw, 23px); line-height: 1.55; max-width: 30em; }
html body.nx .nx-hero--big .nx-hero-b { margin-top: clamp(72px, 7vw, 112px); }
html body.nx .nx-down { display: inline-block; width: 14px; height: 44px; padding: 0; border: 0; background: none; color: var(--nx-ink); opacity: .75; outline: none; animation: nxDown 2.2s ease-in-out infinite; }
html body.nx .nx-down:hover { opacity: 1; }
html body.nx .nx-down:focus-visible { outline: 1px solid var(--nx-line-2); outline-offset: 8px; }
html body.nx .nx-down svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1; overflow: visible; }
html body.nx .nx-down svg path { animation: none; }
@keyframes nxDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes nxDraw { 0% { stroke-dashoffset: 100; opacity: 0; } 15% { opacity: 1; } 55%, 100% { stroke-dashoffset: 0; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html body.nx .nx-down, html body.nx .nx-down svg path { animation: none; } }

/* people cards: the cover's pillar lines to the right of each portrait, from its top down to Read more, fading out (Shayan 28 Nov) */
html body.nx .nx-cards--people .nx-card { position: relative; container-type: inline-size; }
html body.nx .nx-pmark { position: absolute; z-index: 0; top: 0; right: 0; left: calc(min(62cqw, 210px) + 28px); height: calc(min(62cqw, 210px) * 4 / 3 + 40px); width: auto; pointer-events: none;
   }
html body.nx .nx-pmark { overflow: visible; }
html body.nx .nx-pmark line.o { stroke: rgba(245, 242, 235, .3); }
html body.nx .nx-pmark line { stroke-width: 1; vector-effect: non-scaling-stroke; fill: none; }
html body.nx .nx-cards--people .nx-card > :not(.nx-pmark) { position: relative; z-index: 1; }
html body.nx .nx-cards--people .nx-more { border-color: transparent transparent rgba(245, 242, 235, .3); }
html body.nx .nx-cards--people .nx-card:is(:hover, :focus-visible) .nx-more { box-shadow: none; }

/* people pop-ups: copy only, one centred column, no photograph (Shayan 28 Nov) */
html body.nx .nx-pm .ga-modal-box { grid-template-columns: minmax(0, 1fr); width: 94vw; height: 88vh; max-height: 88vh; }
html body.nx .nx-pm .ga-modal-copy { width: 100%; max-width: none; margin: 0; }
html body.nx .nx-pm .ga-modal-head { text-align: center; }
html body.nx .nx-pm .ga-modal-body p { max-width: none; }
html body.nx .nx-pm-ans { margin-top: clamp(28px, 3vw, 40px); padding-top: clamp(24px, 2.6vw, 32px); border-top: 1px solid rgba(244, 239, 230, .16); }
html body.nx .nx-pm-ans .label { margin: 0 !important; color: var(--nx-meta) !important; }
html body.nx .nx-pm-ans h4 { margin: 10px 0 0; font-family: var(--nx-serif); font-weight: 300; font-size: clamp(26px, 2.3vw, 32px); line-height: 1.12; color: #F4EFE6; }
html body.nx .nx-pm-ans p:last-child { margin-top: 14px !important; color: #CFC9BE !important; }

/* /firm chain driven by scroll: no timed transitions, the script sets each piece directly */
html body.nx .nx-chain.nx-scroll .nx-box, html body.nx .nx-chain.nx-scroll .nx-box > i, html body.nx .nx-chain.nx-scroll .ch-n { transition: none !important; }

/* people pop-ups end to end: the biography in two columns across the full width, the responsibility beneath (Shayan 28 Nov) */
@media (min-width: 900px) {
  html body.nx .nx-pm .ga-modal-body { column-count: 1; }
  html body.nx .nx-pm .ga-modal-body > p { break-inside: avoid; }
  html body.nx .nx-pm .ga-modal-body > p:first-child { margin-top: 22px; }
  html body.nx .nx-pm-ans { column-span: all; break-inside: avoid; }
}
html body.nx .nx-pm-note { font-size: 13px !important; color: var(--nx-meta) !important; }

/* split section headers: the text sits at the right end and is set flush right (Shayan 28 Nov) */
html body.nx .nx-head--split .nx-p { justify-self: end; text-align: right; }
@media (max-width: 1180px) { html body.nx .nx-head--split .nx-p { margin-left: auto; text-align: right; } }
@media (max-width: 640px) { html body.nx .nx-head--split .nx-p { margin-left: 0; text-align: left; } }

/* groundwork: one framed panel, columns divided by fine rules; space before the phase cards (Shayan 28 Nov) */
html body.nx .nx-gw { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); border: 1px solid var(--nx-line); background: rgba(244, 239, 230, .014); }
html body.nx .nx-gw-c { padding: clamp(24px, 2.4vw, 36px) clamp(20px, 2vw, 30px); min-width: 0; }
html body.nx .nx-gw-c + .nx-gw-c { border-left: 1px solid var(--nx-line); }
html body.nx .nx-gw-c h3 { margin: 0 0 16px; font-family: var(--nx-serif); font-weight: 400; font-size: clamp(22px, 1.8vw, 26px); line-height: 1.15; color: var(--nx-ink); }
html body.nx .nx-gw + .nx-sub { margin-top: clamp(72px, 7vw, 112px) !important; }
@media (max-width: 1180px) { html body.nx .nx-gw { grid-template-columns: repeat(2, minmax(0, 1fr)); } html body.nx .nx-gw-c:nth-child(3) { border-left: 0; } html body.nx .nx-gw-c:nth-child(n + 3) { border-top: 1px solid var(--nx-line); } }
@media (max-width: 640px) { html body.nx .nx-gw { grid-template-columns: minmax(0, 1fr); } html body.nx .nx-gw-c + .nx-gw-c { border-left: 0; border-top: 1px solid var(--nx-line); } }

/* Mandate Selection: the boxed measures section sits closer to the steps that follow (Shayan 28 Nov) */
html body.nx .nx-main #choose.nx-s { padding-bottom: clamp(56px, 5.5vw, 88px) !important; }
html body.nx .nx-panel { padding-bottom: clamp(28px, 2.8vw, 44px); }

/* the phases read as open columns on the line, not boxes, so they stand apart from the framed groundwork above (Shayan 28 Nov) */
html body.nx .nx-tl .nx-box { border: 0 !important; background: transparent !important; }
html body.nx .nx-tl .nx-box .hd { background: transparent !important; padding: 18px 8px 0 var(--tlx); }
html body.nx .nx-tl .nx-box .bd { padding: 14px 8px 0 var(--tlx); }
html body.nx .nx-tl .nx-box .hd::before { height: calc(var(--tlo) + 12px); }
html body.nx .nx-tl .nx-box .ft { display: none; }
/* groundwork lists keep their small square markers */
html body.nx .nx-gw-c ul { list-style: none; margin: 0; padding: 0; }
html body.nx .nx-gw-c li { position: relative; padding-left: 17px; font-size: 15px; line-height: 1.5; color: var(--nx-text); }
html body.nx .nx-gw-c li + li { margin-top: 9px; }
html body.nx .nx-gw-c li::before { content: ''; position: absolute; left: 0; top: .62em; width: 4px; height: 4px; background: var(--nx-meta); }

/* phase bands: text sits on solid black on the left, the photograph shows clearly only on the right (Shayan 28 Nov: hard to read) */
html body.nx .nx-group--ph .nx-group-bg { filter: grayscale(1) contrast(1.05) brightness(.8) !important; left: 45% !important; width: 55% !important; }
html body.nx .nx-group--ph::after { background: linear-gradient(90deg, #0b0b0b 0%, #0b0b0b 45%, rgba(11, 11, 11, .55) 62%, rgba(11, 11, 11, .15) 100%) !important; }
html body.nx .nx-group--ph h3, html body.nx .nx-group--ph p { text-shadow: none !important; }
html body.nx .nx-group--ph p { color: var(--nx-text) !important; max-width: 40ch; }
@media (max-width: 760px) { html body.nx .nx-group--ph .nx-group-bg { left: 0 !important; width: 100% !important; } html body.nx .nx-group--ph::after { background: rgba(11, 11, 11, .86) !important; } }

/* people cards: on hover the pillar lines glow with the Read more box (Shayan 28 Nov) */
html body.nx .nx-pmark { transition: filter .45s ease; }
html body.nx .nx-pmark line.o { transition: stroke .45s ease; }
html body.nx .nx-pmark stop { transition: stop-opacity .45s ease; }
html body.nx .nx-cards--people .nx-card:is(:hover, :focus-visible) .nx-pmark { filter: drop-shadow(0 0 3px rgba(255, 255, 255, .55)) drop-shadow(0 0 10px rgba(255, 255, 255, .25)); }
html body.nx .nx-cards--people .nx-card:is(:hover, :focus-visible) .nx-pmark line.o { stroke: rgba(255, 255, 255, .95); }
html body.nx .nx-cards--people .nx-card:is(:hover, :focus-visible) .nx-pmark stop:nth-child(-n + 2) { stop-opacity: .9; }

/* people pop-ups: one column, each paragraph runs the full width of the box (Shayan 28 Nov) */
html body.nx .nx-pm .ga-modal-body { column-count: 1 !important; }
html body.nx .nx-pm .ga-modal-body > p { max-width: none !important; }

/* people pop-ups: a narrower box with room on both sides, paragraphs still run end to end inside it (Shayan 28 Nov) */
html body.nx .nx-pm .ga-modal-box { width: min(980px, 88vw) !important; }
html body.nx .nx-pm .ga-modal-head { margin-left: clamp(36px, 5vw, 80px) !important; margin-right: clamp(36px, 5vw, 80px) !important; }
html body.nx .nx-pm .ga-modal-body { padding-left: clamp(36px, 5vw, 80px) !important; padding-right: clamp(30px, 4.6vw, 74px) !important; }
html body.nx .nx-pm .ga-modal-body > p { line-height: 1.75; }

html body.nx .nx-pm .nx-pm-h { margin: clamp(28px, 2.6vw, 36px) 0 0; font-family: var(--nx-serif); font-weight: 400; font-size: clamp(24px, 1.9vw, 28px); line-height: 1.15; color: #F4EFE6; }
html body.nx .nx-pm .nx-pm-h:first-child { margin-top: 22px; }
html body.nx .nx-pm .nx-pm-h + p { margin-top: 10px !important; color: #CFC9BE !important; }

/* people pop-ups: no rule above the name (it ran into the close button); the rule under the name stays */
html body.nx .nx-pm .ga-modal-head { border-top: 0 !important; padding-top: clamp(30px, 3vw, 44px) !important; }

/* the phase line runs the full width, from the left margin to the right margin (Shayan 28 Nov) */
@media (min-width: 1280px) {
  html body.nx .nx-tl { position: relative; }
  html body.nx .nx-tl::before { content: ''; position: absolute; left: 0; right: 0; top: calc(-1 * var(--tlo) - 1px); height: 1px; background: var(--nx-line-2); }
  html body.nx .nx-tl .nx-box:not(:last-child)::after { display: none; }
}



/* people cards: the portrait sharpens and brightens with the glowing lines on hover (Shayan 28 Nov) */
html body.nx .nx-cards--people .nx-ph img { filter: grayscale(1) contrast(1.02) brightness(.84) !important; transition: filter .5s ease, transform 1.2s var(--nx-ease) !important; }
html body.nx .nx-cards--people .nx-card:is(:hover, :focus-visible) .nx-ph img { filter: grayscale(1) contrast(1.12) brightness(1.04) !important; }

/* the five phases around one tall photograph, cards alternating left and right (Shayan 28 Nov) */
html body.nx .nx-zz { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(var(--n), auto); row-gap: clamp(18px, 2vw, 28px); margin-top: clamp(28px, 3vw, 40px); }
html body.nx .nx-zz-ph { grid-column: 4 / 10; grid-row: 1 / -1; margin: 0; min-height: 100%; position: relative; overflow: hidden; }
html body.nx .nx-zz-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.7); }
html body.nx .nx-zz-c { position: relative; z-index: 2; padding: clamp(22px, 2.2vw, 32px) clamp(22px, 2.2vw, 34px); border: 1px solid var(--nx-line-2); background: #0d0d0d; align-self: center; }
html body.nx .nx-zz-l { grid-column: 1 / 6; }
html body.nx .nx-zz-r { grid-column: 8 / 13; }
html body.nx .nx-zz-c .k { display: block; font-size: 12px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--nx-meta); }
html body.nx .nx-zz-c h3 { margin: 10px 0 14px; font-family: var(--nx-serif); font-weight: 400; font-size: clamp(24px, 2vw, 30px); line-height: 1.12; color: var(--nx-ink); }
html body.nx .nx-zz-c ul { list-style: none; margin: 0; padding: 0; }
html body.nx .nx-zz-c li { position: relative; padding-left: 17px; font-size: 15.5px; line-height: 1.5; color: var(--nx-text); }
html body.nx .nx-zz-c li + li { margin-top: 8px; }
html body.nx .nx-zz-c li::before { content: ''; position: absolute; left: 0; top: .62em; width: 4px; height: 4px; background: var(--nx-meta); }
@media (max-width: 900px) {
  html body.nx .nx-zz { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  html body.nx .nx-zz-ph { grid-column: 1; grid-row: auto; aspect-ratio: 4 / 3; min-height: 0; }
  html body.nx .nx-zz-c, html body.nx .nx-zz-l, html body.nx .nx-zz-r { grid-column: 1; grid-row: auto !important; }
}

/* space at the top of the photograph before Phase 1 (Shayan 28 Nov) */
@media (min-width: 901px) { html body.nx .nx-zz { grid-template-rows: clamp(64px, 7vw, 110px) repeat(var(--n), auto) calc(clamp(64px, 7vw, 110px) + 32px); } }

/* consultation people cards: the portrait runs the full height of the text beside it, and both cards are the same height (Shayan 28 Nov) */
@media (min-width: 761px) {
  html body.nx .nx-meet .nx-box--meet { height: 100%; }
  html body.nx .nx-box--meet .bd { align-items: stretch; height: 100%; }
  html body.nx .nx-box--meet .nx-ph { width: clamp(170px, 15vw, 220px); aspect-ratio: auto; height: auto; align-self: stretch; position: relative; overflow: hidden; }
  html body.nx .nx-box--meet .nx-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
}

/* What We Do practice cards stack on phones (28 Nov) */
@media (max-width: 760px) { html body.nx .nx-cards--duo { grid-template-columns: minmax(0, 1fr); row-gap: 20px; } }

/* 28 Nov 2026 (why): numeric bands. Thin-edged cells, a large serif figure, a small uppercase caption, an optional
   heading and line of text. Used for David Hunter's figures (/our-people card and pop-up), the four signals on
   /capital-raising, and the fund-level and portfolio measures on /mandate-selection. */
html body.nx .nx-stats { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: var(--nx-gap); }
html body.nx .nx-stat { display: block; min-width: 0; padding: clamp(20px, 2vw, 28px) clamp(18px, 1.8vw, 26px) clamp(22px, 2.2vw, 30px); border: 1px solid var(--nx-line); background: rgba(244, 239, 230, .012); transition: border-color .4s ease; }
html body.nx .nx-stat:hover { border-color: var(--nx-line-2); }
html body.nx .nx-stat-n { display: block; font-family: var(--nx-serif); font-weight: 300; font-size: clamp(34px, 3.2vw, 46px); line-height: 1; color: var(--nx-ink); }
html body.nx .nx-stat h3 { margin: clamp(16px, 1.6vw, 22px) 0 0; font-family: var(--nx-serif); font-weight: 300; font-size: var(--nx-h3); line-height: 1.15; color: var(--nx-ink); }
html body.nx .nx-stat-k { display: block; margin-top: 14px; font-family: var(--nx-sans); font-size: 10.5px; font-weight: 500; line-height: 1.6; letter-spacing: .22em; text-transform: uppercase; color: var(--nx-meta); }
html body.nx .nx-stat h3 + .nx-stat-k { margin-top: 8px; }
html body.nx .nx-stat-p { display: block; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--nx-line); font-size: 15.5px; font-weight: 300; line-height: 1.6; color: var(--nx-text); }
/* terms in place of figures (TVPI and MOIC, DPI, Net IRR, PME) */
html body.nx .nx-stats--term .nx-stat-n { font-size: clamp(28px, 2.5vw, 36px); }
/* the four signals: the numeral is the small part, the heading carries the card */
html body.nx .nx-stats--sig .nx-stat-n { font-size: clamp(30px, 2.8vw, 40px); color: var(--nx-meta); }
html body.nx .nx-stats--sig .nx-stat-p { font-size: 16px; line-height: 1.62; }
/* a labelled block that follows a band or a row of cards inside the same section */
html body.nx :is(.nx-stats, .nx-read) + .nx-sub { margin-top: clamp(40px, 4.4vw, 64px) !important; }
/* review columns: three across, one short line under each row label */
html body.nx .nx-read .rw p { font-size: 15.5px; line-height: 1.55; color: var(--nx-text); }
html body.nx .nx-read .rl { margin-bottom: 6px; }
@media (min-width: 901px) { html body.nx .nx-boxes.nx-cmp.nx-read[style] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { html body.nx .nx-boxes.nx-cmp.nx-read[style] { grid-template-columns: minmax(0, 1fr); } }
/* the line under the raise cards on /capital-raising that points to Mandate Review */
html body.nx .nx-lead-in { max-width: 62ch; margin-top: clamp(40px, 4.4vw, 64px) !important; padding-top: clamp(20px, 2vw, 28px); border-top: 1px solid var(--nx-line); }
/* David Hunter's figures inside his card on /our-people: two by two under the summary, then the disclosure */
html body.nx .nx-card-st { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: clamp(18px, 1.8vw, 24px); }
html body.nx .nx-card-st .nx-stat { padding: 14px 14px 15px; background: #0B0B09; }
html body.nx .nx-card-st .nx-stat-n { font-size: clamp(24px, 2vw, 29px); white-space: nowrap; }
html body.nx .nx-card-st .nx-stat-k { margin-top: 9px; font-size: 9.5px; letter-spacing: .18em; }
html body.nx .nx-card-note { display: block; margin-top: 12px; font-size: 12.5px; line-height: 1.55; color: var(--nx-meta); }
/* and at the top of his pop-up */
html body.nx .nx-pm .nx-stats--pm { margin-top: 22px; gap: 12px; }
html body.nx .nx-pm .nx-stats--pm .nx-stat { padding: 18px 16px 20px; border-color: rgba(244, 239, 230, .16); }
html body.nx .nx-pm .nx-stats--pm .nx-stat-n { font-size: clamp(26px, 2.3vw, 34px); color: #F4EFE6; white-space: nowrap; }
html body.nx .nx-pm .nx-stats--pm .nx-stat-p { margin-top: 12px; padding-top: 12px; font-size: 14px; line-height: 1.5; color: #CFC9BE; }
html body.nx .nx-pm .nx-stats--pm + .nx-pm-h { margin-top: clamp(28px, 2.6vw, 36px); }
@media (max-width: 1100px) {
  html body.nx .nx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body.nx .nx-stats--five .nx-stat:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  html body.nx .nx-stats:not(.nx-stats--five) { grid-template-columns: minmax(0, 1fr); }
  html body.nx .nx-stats--five .nx-stat-n { font-size: 30px; }
  html body.nx .nx-stats--five .nx-stat-k { font-size: 10px; letter-spacing: .16em; }
  html body.nx .nx-card-st .nx-stat-n { font-size: 22px; }
}
@media (max-width: 700px) {
  /* in the pop-up on a phone: four short rows, figure and caption side by side, without the line of text */
  html body.nx .nx-pm .nx-stats--pm { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  html body.nx .nx-pm .nx-stats--pm .nx-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 12px 14px 13px; }
  html body.nx .nx-pm .nx-stats--pm .nx-stat-n { font-size: 24px; }
  html body.nx .nx-pm .nx-stats--pm .nx-stat-k { margin-top: 0; text-align: right; font-size: 9.5px; letter-spacing: .16em; }
  html body.nx .nx-pm .nx-stats--pm .nx-stat-p { display: none; }
}

/* David Hunter's record in his pop-up (Shayan 28 Nov), after Firm Deck page 3: timeline, four cards with marks. */
html body.nx .nx-pm .dh-rec { margin: 28px 0 8px; }
html body.nx .nx-pm .dh-tl { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 22px; padding: 0; list-style: none; }
html body.nx .nx-pm .dh-tl::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: rgba(244, 239, 230, .35); }
html body.nx .nx-pm .dh-tl li { position: relative; padding-top: 24px; margin: 0; }
html body.nx .nx-pm .dh-tl li::before { content: ""; position: absolute; left: 0; top: 0; width: 9px; height: 9px; border: 1px solid #F4EFE6; background: #0B0B09; }
html body.nx .nx-pm .dh-tl li.now::before { background: #F4EFE6; }
html body.nx .nx-pm .dh-tl .k, html body.nx .nx-pm .dh-c .k { display: block; font-family: var(--nx-sans); font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--nx-meta, #A79E92); }
html body.nx .nx-pm .dh-tl b { display: block; margin-top: 6px; font-family: var(--nx-serif); font-weight: 400; font-size: 19px; line-height: 1.2; color: #F4EFE6; }
html body.nx .nx-pm .dh-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
html body.nx .nx-pm .dh-c { display: flex; flex-direction: column; min-width: 0; padding: 20px 18px 18px; border: 1px solid rgba(244, 239, 230, .18); }
html body.nx .nx-pm .dh-n { font-family: var(--nx-serif); font-weight: 300; font-size: clamp(26px, 2.3vw, 34px); line-height: 1; color: #F4EFE6; margin-bottom: 12px; white-space: nowrap; }
html body.nx .nx-pm .dh-t { display: block; flex: 1 1 auto; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(244, 239, 230, .14); font-size: 14.5px; line-height: 1.55; font-weight: 300; color: #D9D3C9; }
html body.nx .nx-pm .dh-lg { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(244, 239, 230, .14); }
html body.nx .nx-pm .dh-lg img { display: block; width: auto; max-width: 100%; filter: brightness(0) invert(1); opacity: .7; }
html body.nx .nx-pm .dh-wm { font-family: var(--nx-sans); font-weight: 500; font-size: 13px; letter-spacing: .12em; color: #fff; opacity: .7; }
html body.nx .nx-pm .dh-wm--ia { font-family: 'Marcellus', serif; font-weight: 400; font-size: 12px; letter-spacing: .32em; }
html body.nx .nx-pm .dh-q { margin: 16px 0 0; padding: 14px 18px; border: 1px solid rgba(244, 239, 230, .18); border-left: 2px solid #F4EFE6; font-size: 15.5px; color: #F4EFE6; }
@media (max-width: 900px) { html body.nx .nx-pm .dh-cards, html body.nx .nx-pm .dh-tl { grid-template-columns: repeat(2, minmax(0, 1fr)); } html body.nx .nx-pm .dh-tl::before { display: none; } }
@media (max-width: 480px) { html body.nx .nx-pm .dh-cards { grid-template-columns: minmax(0, 1fr); } }
html body.nx .nx-pm .dh-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* two by two: the pop-up is too narrow for four */
@media (max-width: 480px) { html body.nx .nx-pm .dh-cards { grid-template-columns: minmax(0, 1fr); } }

/* Legal pages (Shayan 28 Nov): page name in capitals in the heading face under the "Legal" label; the text runs the
   full content width. */
html body.nx .nx-hero--legal h1.nx-legal-h1 { text-transform: uppercase; letter-spacing: .08em; padding-left: 0 !important; }
html body.nx .nx-legal { max-width: none; }
html body.nx .nx-legal :is(p, li) { max-width: none; }

/* ---------- Phone fixes (Shayan 28 Nov, from his iPhone screenshots) ---------- */
@media (max-width: 760px) {
  /* Our People: no empty pillar box beside the photo; the photo runs the full width and Read more sits under the text */
  html body.nx .nx-cards--people .nx-pmark { display: none !important; }
  html body.nx .nx-cards--people .nx-ph { width: 100% !important; max-width: none !important; aspect-ratio: 1 / 1 !important; height: auto !important; }
  html body.nx .nx-cards--people .nx-ph img { width: 100% !important; height: 100% !important; object-fit: cover; }
  html body.nx .nx-cards--people .nx-card-t { display: flex !important; align-items: center; justify-content: space-between; gap: 14px; }
  html body.nx .nx-cards--people .nx-more { position: static !important; padding: 7px 13px !important; border: 1px solid transparent !important; border-bottom-color: rgba(245, 242, 235, .3) !important; font-size: 11px !important; font-weight: 300 !important; letter-spacing: .18em !important; background: transparent !important; color: #F4EFE6 !important; }   /* same as the laptop button */
  /* the measures: the text uses the full width of the panel */
  html body.nx .nx-radial ol li, html body.nx .nx-radial ol li > * { max-width: none !important; }
  html body.nx .nx-radial ol li p { width: auto !important; }
  /* people pop-ups: one column that scrolls, nothing spilling to the right */
  html body.nx .nx-pm .ga-modal-box { display: block !important; width: 100% !important; height: 100% !important; max-height: none !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch; }
  html body.nx .nx-pm .ga-modal-copy, html body.nx .nx-pm .ga-modal-body { display: block !important; height: auto !important; max-height: none !important; overflow: visible !important; column-count: 1 !important; columns: auto !important; flex-wrap: nowrap !important; padding-left: 20px; padding-right: 20px; }
  html body.nx .nx-pm .ga-modal-body > * { break-inside: auto !important; }
}
/* phones have no hover: a tap must not leave a card lit as if hovered */
@media (hover: none) {
  html body.nx .nx-cards--people .nx-card:is(:hover, :focus) { outline: 0 !important; box-shadow: none !important; border-color: transparent !important; }
  html body.nx .nx-cards--people .nx-card:is(:hover, :focus) .nx-more { background: transparent !important; color: inherit !important; }
  html body.nx .nx-cards--people .nx-card:is(:hover, :focus) .nx-pmark { filter: none !important; }
}

/* ALIGNMENT ON LAPTOPS (30 Nov 2026), above the phone layout only. */
@media (min-width: 761px) {
  html body.nx .nx-head--split .nx-p { text-wrap: balance; }                                  /* no single word alone on the last right-set line */
  html body.nx .nx-card-p, html body.nx .nx-box .bd > p { text-wrap: pretty; }
  html body.nx .slot { white-space: nowrap; padding-left: 2px; padding-right: 2px; }          /* "10:00 PM" stays on one line, so every slot has one height */
}
@media (min-width: 901px) {
  /* consultation: the two boxes end on the form's lower edge and share its height equally */
  html body.nx .nx-two:has(> .nx-form) { align-items: stretch; }
  html body.nx .nx-two:has(> .nx-form) > .nx-two-r > .nx-boxes { height: 100%; grid-template-rows: auto minmax(0, 1fr) auto auto minmax(0, 1fr) auto; }
}
@media (min-width: 1181px) and (max-width: 1439.98px) {
  /* people on your calls: the second paragraph starts on one line in both boxes where the first line wraps in one of them */
  html body.nx .nx-meet .nx-box--meet .k + p { min-height: 2lh; }
}

/* 1 Dec 2026, desktop only: the profile pop-up scrolls down in one flow. column-count: 1 on a fixed-height box sent the rest
   of the profile into a second column to the right, out of view. Phones are untouched. */
@media (min-width: 761px) { html:root body.nx .nx-pm .ga-modal-body { columns: auto !important; column-count: auto !important; } }
