/* Flat-white reference layer. Load after corporate.css and lifestyle.css.
   Public marketing bodies opt in; portal/admin shells remain untouched. */
body.reference-style {
  --navy: #102b3b;
  --deep: #102b3b;
  --ink: #102b3b;
  --muted: #5e6870;
  --paper: #fff;
  --line: #d7ddde;
  --brass: #b89856;
  --lifestyle-gold: #b89856;
  --lifestyle-teal: #24746c;
  --lifestyle-terracotta: #a64e35;
  --space: clamp(48px, 5vw, 64px);
  background: #fff;
  color: var(--navy);
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
}
body.reference-style :is(h1, h2, h3) { color: var(--navy); font-weight: 500; letter-spacing: -.04em; }
body.reference-style h1 { font-size: clamp(34px, 6vw, 40px); line-height: 1.12; }
body.reference-style h2,
body.reference-style :is(.section-head__title, .statement__title, .service__title, .cta-band__title) { font-size: clamp(30px, 5vw, 34px); line-height: 1.18; }
body.reference-style h3 { font-size: 25px; line-height: 1.25; }
body.reference-style .private-ai-section .activity-grid h3 { font-size: 25px; }
body.reference-style :is(p, ul, ol) { color: var(--muted); font-size: 15px; line-height: 1.75; }
body.reference-style :is(.feature-top, .model-list, .narrow, .prose, .division-copy, .split__main, .contact-layout, .contact-help, .brand-profiles, .principle-grid, .activity-grid, .portfolio-card, .work-card, .note, .cta-band__copy, .contact-band, .aside-block, .market-index, .market-details, .leadership-card, .leadership-summary) p:where(:not(.eyebrow, .portfolio-division, .work-industry, .leadership-role, .headquarters, .brand-line, .field__error, .field__hint, .form-note, .form-status__title, .form-status__text)) { color: var(--muted); font-size: 15px; }
body.reference-style .parent-statement p { color: var(--navy); font-size: clamp(20px, 2vw, 28px); }
body.reference-style .intro-inner > p:not(.eyebrow) { color: var(--navy); font-size: clamp(24px, 2.2vw, 30px); }
body.reference-style .eyebrow,
body.reference-style :is(.corporate-hero, .page-hero, .page-status, .people-band-heading, .division-copy) .eyebrow { color: #71603c; font-size: 14px; font-weight: 550; letter-spacing: .12em; line-height: 1.6; margin-bottom: 20px; }
body.reference-style .eyebrow::before,
body.reference-style :is(.human-hero, .people-band-heading) .eyebrow::before { width: 24px; height: 1px; margin-right: 11px; background: var(--brass); }
body.reference-style :is(.portfolio-division, .work-industry, .leadership-role, .headquarters, .index-mark, .division-number, .service-index, .index-row__number) { color: #71603c; }
body.reference-style :is(.portfolio-division, .work-industry, .leadership-role, .headquarters) { font-size: 15px; }
body.reference-style :is(.activity-inline, .automation-list, .considerations li, .service-list, .band__foot, .note__links, .service-links a) { font-size: 15px; }
body.reference-style .division-copy .brand-line,
body.reference-style .brand-line span { font-size: 12px; }

/* White surrounds; color belongs to copy, buttons, rules and status borders. */
body.reference-style :is(.paper, .navy, .markets-section, .contact-band, .corporate-intro, .advisory-feature, .band--sand, .band--navy, .site-footer, .market-map, .corporate-form, .note, .form-preview-note, .staging-notice, .people-band, .portfolio-card, .division-thumb) { background: #fff; color: var(--navy); box-shadow: none; }
body.reference-style .split--contact .split__main { background: #fff; color: var(--navy); }
body.reference-style :is(.navy, .markets-section, .band--navy, .site-footer) :is(h1, h2, h3, h4, h5, h6) { color: var(--navy); }
body.reference-style :is(.navy, .markets-section, .band--navy, .site-footer) :is(p, ul, ol, figcaption, .scope-note, .band__foot, .photo-disclosure, .footer-base) { color: var(--muted); }
body.reference-style :is(.navy, .markets-section, .band--navy) .eyebrow { color: #71603c; }
body.reference-style .markets-section .market-people figcaption { background: #fff; color: var(--muted); }
body.reference-style .photo-caption { background: #fff; color: var(--muted); border: 1px solid var(--line); font-size: 12px; letter-spacing: .04em; }
body.reference-style .light-link { color: var(--navy); border-color: var(--line); }
body.reference-style .light-link:hover { color: #71603c; border-color: var(--brass); }
body.reference-style :is(.market-index > div, .footer-base, .hero-bottom) { border-color: var(--line); }
body.reference-style :is(.section, .band, .people-band, .corporate-intro, .contact-band) { padding-block: var(--space); }
body.reference-style .heading-split { margin-bottom: 36px; }
body.reference-style .feature-services { padding-top: 40px; margin-top: 44px; }
body.reference-style :is(.principle-grid, .activity-grid, .portfolio-grid, .selected-work-grid, .leadership-grid) { margin-top: 36px; }
body.reference-style .two-column { gap: clamp(32px, 4vw, 56px); }
body.reference-style .lifestyle-scroll-progress { background: var(--brass); }

/* Reuse the wordmark and the existing 820px menu/no-JS behavior. */
body.reference-style .site-header { background: #fff; color: var(--navy); border-color: var(--line); }
body.reference-style :is(.site-header nav, .menu-panel) { background: #fff; box-shadow: none; }
body.reference-style .menu-label { color: #71603c; font-size: 12px; }
body.reference-style :is(.nav-link, .menu-panel a, .nav-menu summary) { color: var(--navy); }
body.reference-style :is(.nav-link:hover, .menu-panel a:hover, .nav-menu summary:hover, .nav-link[aria-current="page"], .menu-panel a[aria-current="page"], .nav-menu[open] > summary) { color: #71603c; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
body.reference-style :focus-visible { outline: 3px solid #71603c; outline-offset: 4px; }
body.reference-style :is(.text-link, .link-arrow, .division-link, .aside-block__link) { color: var(--navy); border-color: var(--line); font-size: 15px; }
body.reference-style :is(.text-link, .link-arrow, .division-link, .aside-block__link):hover { color: #71603c; border-color: var(--brass); }
body.reference-style :is(.button, .btn, .nav-contact) { min-height: 44px; border-radius: 0; background: var(--navy); color: #fff; box-shadow: none; font-size: 14px; font-weight: 550; }
body.reference-style :is(.button, .btn, .nav-contact):hover { background: #1e4559; color: #fff; }
body.reference-style .btn.btn--ghost-light { border: 1px solid var(--navy); }
body.reference-style .btn.btn--gold,
body.reference-style .button.btn--gold,
body.reference-style .hero-link { background: #dfc98f; color: var(--navy); border: 1px solid #dfc98f; border-radius: 0; min-height: 44px; padding: 16px 22px; font-size: 14px; font-weight: 550; }
body.reference-style .btn.btn--gold:hover,
body.reference-style .button.btn--gold:hover,
body.reference-style .hero-link:hover { background: #d3ba79; color: var(--navy); border-color: #d3ba79; }
body.reference-style .human-hero .hero-actions .button-light { background: var(--navy); color: #fff; }
body.reference-style .human-hero .hero-actions .button-light:hover { background: #1e4559; color: #fff; }
body.reference-style .human-hero .hero-link { margin-top: 0; }

/* Every photographic header uses the same natural image / live-copy grid. */
body.reference-style .corporate-hero,
body.reference-style .corporate-hero.human-hero,
body.reference-style .page-hero:not(.page-hero--plain) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; height: auto; background: #fff; color: var(--navy); }
body.reference-style .corporate-hero::after,
body.reference-style .page-hero:not(.page-hero--plain)::after { content: none; background: none; }
body.reference-style .corporate-hero > .hero-photo,
body.reference-style .page-hero:not(.page-hero--plain) > .page-hero-photo { position: relative; inset: auto; z-index: auto; grid-column: 1; grid-row: 1; align-self: center; min-width: 0; margin: 0; border-top: 3px solid var(--brass); border-bottom: 0; }
body.reference-style :is(.hero-photo, .page-hero-photo) img { width: 100%; max-width: 100%; height: auto; object-fit: contain; object-position: center; }
body.reference-style .corporate-hero > .hero-inner,
body.reference-style .page-hero:not(.page-hero--plain) > .page-hero-inner { grid-column: 1; grid-row: 2; width: 100%; min-width: 0; margin: 0; padding: 36px clamp(24px, 4.7vw, 48px) 40px; }
body.reference-style :is(.corporate-hero, .page-hero, .masthead) h1 { color: var(--navy); font-size: clamp(34px, 6vw, 40px); line-height: 1.12; font-weight: 500; letter-spacing: -.045em; max-width: 900px; overflow-wrap: break-word; }
body.reference-style .corporate-hero h1 > span { color: var(--lifestyle-terracotta); }
body.reference-style .corporate-hero .hero-lead,
body.reference-style .page-hero p:not(.eyebrow),
body.reference-style .page-status .masthead__lead { color: var(--muted); font-size: 15px; line-height: 1.75; margin-top: 24px; max-width: 660px; }
body.reference-style .corporate-hero .hero-lead { max-width: 530px; }
body.reference-style .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
body.reference-style .hero-bottom { color: var(--muted); border-color: var(--line); font-size: 12px; letter-spacing: .04em; margin-top: 32px; padding-top: 20px; }
body.reference-style .hero-bottom b { color: #71603c; }
body.reference-style .hero-bottom > span:last-child { font-size: 12px; }
body.reference-style .breadcrumbs { flex-wrap: wrap; color: var(--muted); font-size: 12px; gap: 10px; margin-top: 30px; }
body.reference-style .breadcrumbs a { color: var(--navy); }
body.reference-style .breadcrumbs a:hover { color: #71603c; }
body.reference-style .page-hero--plain,
body.reference-style .page-status .masthead { background: #fff; color: var(--navy); min-height: 0; }
body.reference-style .page-hero--plain > .container,
body.reference-style .page-status .masthead { padding-block: 48px; }
body.reference-style .page-hero--plain .page-hero-inner { width: min(1280px, calc(100% - 48px)); margin-inline: auto; padding: 48px 0; }

/* Paired work/play photographs retain their full natural compositions. */
body.reference-style :is(.people-gallery, .about-people-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; align-items: start; }
body.reference-style :is(.people-gallery, .about-people-grid) > .people-frame:nth-child(n) { margin: 0; }
body.reference-style .people-gallery > .people-frame--wide { grid-column: auto; }
body.reference-style .about-people-grid > .people-frame--wide { grid-column: 1 / -1; }
body.reference-style .people-frame { --visual-accent: var(--lifestyle-gold); }
body.reference-style .people-frame:nth-child(2n) { --visual-accent: var(--lifestyle-teal); }
body.reference-style :is(.people-frame, .work-photo, .market-people) figcaption { background: #fff; color: var(--muted); font-size: 15px; }
body.reference-style .work-card .work-photo { --visual-accent: var(--lifestyle-gold); border-top: 3px solid var(--visual-accent); border-bottom: 0; margin-bottom: 22px; }
body.reference-style .selected-work-grid .work-card:nth-child(2n) .work-photo { --visual-accent: var(--lifestyle-teal); }
body.reference-style .selected-work-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
body.reference-style .portfolio-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
body.reference-style .portfolio-grid .portfolio-card { background: #fff; box-shadow: none; padding-block: 26px; }
body.reference-style .portfolio-card h3 { overflow-wrap: break-word; }
body.reference-style .division-row { padding-block: 32px; }
body.reference-style .division-thumb { max-width: none; }
body.reference-style .division-thumb img { width: 100%; height: auto; object-fit: contain; }
body.reference-style .division-copy .eyebrow { margin-bottom: 10px; }
body.reference-style .division-copy h3 { font-size: 26px; }
body.reference-style .division-copy .activity-inline { font-size: 15px; gap: 8px 24px; }
body.reference-style .division-link { font-size: 15px; }

/* White form surrounds preserve field/error/success borders and hidden states. */
body.reference-style .corporate-form,
body.reference-style .split--contact .split__main { padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); }
body.reference-style :is(.form-preview-note, .staging-notice, .note) { background: #fff; color: var(--navy); border-left: 2px solid var(--brass); font-size: 15px; }
body.reference-style :is(.form-field label, .field__label, .enquiry-form .form-section-label) { color: var(--navy); font-size: 15px; }
body.reference-style :is(.form-field input, .form-field select, .form-field textarea, .field__input) { font-size: 16px; min-height: 48px; background: #fff; color: var(--navy); border: 1px solid #aebbc2; border-radius: 0; }
body.reference-style :is(.enquiry-form, .corporate-form) [aria-invalid="true"] { border-color: #9b4134; }
body.reference-style :is(.optional, .field__hint) { color: var(--muted); font-size: 15px; }
body.reference-style .form-note { color: var(--muted); font-size: 15px !important; }
body.reference-style .field__error,
body.reference-style :is(.corporate-form, .enquiry-form) .field__error { color: #8b3028; font-size: 15px; }
body.reference-style .form-status:not(:empty) { background: #fff; color: #244736; border: 1px solid #41695a; border-left-width: 3px; font-size: 15px; }
body.reference-style :is(.form-status.error, .form-status--error):not(:empty) { background: #fff; color: #8b3028; border-color: #9b4134; }
body.reference-style .form-status :is(.form-status__title, .form-status__text) { color: inherit; font-size: 15px; }
body.reference-style .market-map { border-color: var(--brass); }
body.reference-style .market-map p { font-size: 15px; letter-spacing: .04em; }

/* Footer is an open white section, not an inverted panel. */
body.reference-style .site-footer { padding-block: 48px 24px; border-top: 1px solid var(--line); }
body.reference-style .site-footer .brand { color: var(--navy); }
body.reference-style .site-footer :is(p, .footer-base, .photo-disclosure) { color: var(--muted); font-size: 12px; }
body.reference-style .site-footer .footer-grid > div > h2,
body.reference-style .site-footer :is(.footer-geography, .preview-disclosure) { color: #71603c; font-size: 12px; }
body.reference-style .site-footer a:not(.button):not(.btn) { color: var(--navy); font-size: 12px; }
body.reference-style .site-footer a:not(.button):not(.btn):hover { color: #71603c; }
body.reference-style .footer-base { border-color: var(--line); margin-top: 36px; }

@media (min-width: 620px) {
  body.reference-style .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 821px) {
  body.reference-style :is(.nav-link, .nav-menu summary, .nav-contact) { font-size: 12px; }
}
@media (min-width: 1024px) {
  body.reference-style { font-size: 16px; }
  body.reference-style :is(p, ul, ol) { font-size: 16px; }
  body.reference-style :is(.corporate-hero, .page-hero, .masthead) h1 { font-size: clamp(42px, 4.1vw, 64px); }
  body.reference-style h2,
  body.reference-style :is(.section-head__title, .statement__title, .service__title, .cta-band__title) { font-size: clamp(34px, 3.2vw, 44px); }
  body.reference-style .corporate-hero,
  body.reference-style .corporate-hero.human-hero { grid-template-columns: minmax(0, 46fr) minmax(0, 52fr); column-gap: 2vw; }
  body.reference-style .page-hero:not(.page-hero--plain) { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3vw; }
  body.reference-style .corporate-hero > .hero-photo,
  body.reference-style .page-hero:not(.page-hero--plain) > .page-hero-photo { grid-column: 2; grid-row: 1; margin: 0; }
  body.reference-style .corporate-hero > .hero-inner,
  body.reference-style .page-hero:not(.page-hero--plain) > .page-hero-inner { grid-column: 1; grid-row: 1; width: auto; padding: 48px 24px 48px max(48px, calc((100vw - 1280px) / 2)); }
  body.reference-style .corporate-hero .hero-lead,
  body.reference-style .page-hero p:not(.eyebrow),
  body.reference-style .page-status .masthead__lead { font-size: 16px; }
  body.reference-style .people-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  body.reference-style .people-band--compact .people-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.reference-style .about-people-grid { gap: 28px; }
  body.reference-style .selected-work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  body.reference-style .portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Legacy public-content adapter: c1a1925 markup, approved flat-white styling.
   Load after main.css; opt in with both body classes. Keep JS state rules intact. */
body.reference-style.legacy-content {
  --font-display: var(--font-sans);
  --ink-2: #fff;
  --ink-3: #1e4559;
  --sand: #fff;
  --white: #fff;
  --text: #5e6870;
  --text-soft: #5e6870;
  --text-mute: #5e6870;
  --text-light: #5e6870;
  --text-light-soft: #5e6870;
  --gold: #b89856;
  --gold-light: #dfc98f;
  --gold-deep: #71603c;
  --line-light: #d7ddde;
  --band-y: var(--space);
  background: #fff;
  color: var(--muted);
  font-size: 15px;
}
body.reference-style.legacy-content :is(p, ul, ol, dl) { font-size: 15px; }
body.reference-style.legacy-content :is(h1, h2, h3, h4, .display, .dimension-list__term) { font-family: var(--font-sans); font-weight: 500; color: var(--navy); letter-spacing: -.04em; }
body.reference-style.legacy-content h2 { font-size: clamp(30px, 3.2vw, 34px); line-height: 1.18; }
body.reference-style.legacy-content :is(.section-head__title, .statement__title, .service__title, .cta-band__title) { font-size: clamp(30px, 3.2vw, 34px); line-height: 1.18; }
body.reference-style.legacy-content :is(.index-row__heading, .feature-card__title) { font-size: 25px; line-height: 1.25; }
body.reference-style.legacy-content :is(.note__title, .aside-block__title, .dimension-list__term) { font-size: 22px; line-height: 1.3; }
body.reference-style.legacy-content :is(.section-head__lead, .statement__lead, .service__lead, .band__lead, .masthead__lead, .page-intro, .index-row__text, .dimension-list__detail, .cta-band__text, .figure__caption) { color: var(--muted); font-size: 15px; line-height: 1.75; }
body.reference-style.legacy-content :is(.eyebrow, .index-row__eyebrow, .index-row__number, .index-mark, .feature-card__label) { color: #71603c; font-size: 14px; }
body.reference-style.legacy-content :is(.index-row__meta li, .fact-list dd, .considerations__detail, .service-list li, .feature-card__list li) { color: var(--muted); font-size: 15px; }
body.reference-style.legacy-content :is(.band, .band--paper, .band--sand, .band--navy, .band--globe, .masthead, .site-footer, .enquiry-form, .page-fade) { background: #fff; }
body.reference-style.legacy-content :is(.band, .masthead, .site-footer) { color: var(--navy); }
body.reference-style.legacy-content .band--globe::before,
body.reference-style.legacy-content .masthead::after { content: none; background: none; }
body.reference-style.legacy-content .section-head { margin-bottom: 36px; }

/* Sticky, opaque header occupies space; drawer position/transform stay original. */
body.reference-style.legacy-content .site-header,
body.reference-style.legacy-content .site-header.is-solid { position: sticky; inset: auto; top: 0; background: #fff; color: var(--navy); border-color: var(--line); backdrop-filter: none; }
body.reference-style.legacy-content :is(.nav, .nav.is-open) { background: #fff; color: var(--navy); box-shadow: none; }
body.reference-style.legacy-content :is(.brand, .brand__mark, .brand__name, .nav-toggle, .nav__link) { color: var(--navy); }
body.reference-style.legacy-content .brand__name { font-family: var(--font-sans); }
body.reference-style.legacy-content .brand__sub { color: #71603c; opacity: 1; }
body.reference-style.legacy-content :is(.nav__link:hover, .nav__link[aria-current="page"]) { color: #71603c; }
body.reference-style.legacy-content .btn,
body.reference-style.legacy-content .btn.btn--gold { background: var(--navy); color: #fff; border: 1px solid var(--navy); border-radius: 0; min-height: 44px; font-size: 14px; font-weight: 550; }
body.reference-style.legacy-content .btn:hover,
body.reference-style.legacy-content .site-header.is-solid .btn--outline:hover { background: #1e4559; color: #fff; border-color: #1e4559; }
body.reference-style.legacy-content .btn.btn--ghost-light { background: #dfc98f; color: var(--navy); border-color: #dfc98f; }
body.reference-style.legacy-content .btn.btn--ghost-light:hover { background: #d3ba79; color: var(--navy); border-color: #d3ba79; }

/* Only photographic mastheads split: plain contact/assessment headers stay wide. */
body.reference-style.legacy-content .masthead { min-height: 0; height: auto; isolation: auto; overflow: visible; }
body.reference-style.legacy-content .masthead:has(> .masthead__media) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
body.reference-style.legacy-content .masthead > .masthead__media { position: relative; inset: auto; z-index: auto; grid-column: 1; grid-row: 1; align-self: center; min-width: 0; border-top: 2px solid var(--brass); }
body.reference-style.legacy-content .masthead .masthead__media img { width: 100%; height: auto; object-fit: contain; opacity: 1; transform: none; }
body.reference-style.legacy-content .masthead > .masthead__inner { display: block; min-height: 0; padding-block: 40px 48px; }
body.reference-style.legacy-content .masthead:has(> .masthead__media) > .masthead__inner { grid-column: 1; grid-row: 2; width: 100%; max-width: none; margin: 0; padding: 36px clamp(24px, 4.7vw, 48px) 40px; }
body.reference-style.legacy-content .masthead h1 { font-size: clamp(34px, 6vw, 40px); line-height: 1.12; font-weight: 500; letter-spacing: -.045em; color: var(--navy); }
body.reference-style.legacy-content .masthead__lead { margin-top: 24px; }
body.reference-style.legacy-content .masthead__actions { margin-top: 28px; }
body.reference-style.legacy-content .figure__frame { aspect-ratio: auto; background: #fff; border-top: 2px solid var(--brass); }
body.reference-style.legacy-content .contact-aside__figure .figure__frame { border-color: var(--lifestyle-teal); }
body.reference-style.legacy-content .figure .figure__img { width: 100%; height: auto; object-fit: contain; transform: none; }
body.reference-style.legacy-content .globe__sphere { fill: none; stroke: var(--line); }
body.reference-style.legacy-content .globe__grid :is(ellipse, path) { stroke: #aebbc2; }

/* Keep hidden/error/reveal states; restore a native select without gradient arrows. */
body.reference-style.legacy-content select.field__input { appearance: auto; background-image: none; padding-right: 1rem; }
body.reference-style.legacy-content .enquiry-form :is(.field.has-error .field__input, [aria-invalid="true"]) { border-color: #9b4134; }
body.reference-style.legacy-content .site-footer .site-footer__heading { font-size: 12px; color: #71603c; letter-spacing: .12em; }
body.reference-style.legacy-content .site-footer :is(.site-footer__descriptor, .site-footer__text) { color: var(--muted); font-size: 15px; }
body.reference-style.legacy-content .site-footer .site-footer__links a { color: var(--navy); font-size: 15px; }
body.reference-style.legacy-content .site-footer .site-footer__links a:hover { color: #71603c; }
body.reference-style.legacy-content .site-footer__base { border-color: var(--line); color: var(--muted); margin-top: 36px; }
body.reference-style.legacy-content .site-footer__base p { font-size: 12px; }

@media (min-width: 1024px) {
  body.reference-style.legacy-content .masthead:has(> .masthead__media) { grid-template-columns: minmax(0, 46fr) minmax(0, 52fr); column-gap: 2vw; }
  body.reference-style.legacy-content .masthead > .masthead__media { grid-column: 2; grid-row: 1; }
  body.reference-style.legacy-content .masthead:has(> .masthead__media) > .masthead__inner { grid-column: 1; grid-row: 1; width: auto; padding: 48px 24px 48px max(var(--gutter), calc((100vw - 1280px) / 2 + var(--gutter))); }
  body.reference-style.legacy-content .masthead h1 { font-size: clamp(42px, 4.1vw, 64px); }
}

/* main.js writes an inline hero parallax transform; natural-flow photos stay still. */
body.reference-style.legacy-content .masthead--hero > .masthead__media img { transform: none !important; }

@media (max-width: 1229px) {
  /* html.js owns the drawer. Without that ancestor, navigation remains in flow. */
  body.reference-style.legacy-content:not(.js *) .site-header { position: static; }
  body.reference-style.legacy-content:not(.js *) .site-header__inner { flex-wrap: wrap; gap: 1rem; padding-block: 1rem; }
  body.reference-style.legacy-content:not(.js *) .nav-toggle { display: none; }
  body.reference-style.legacy-content:not(.js *) .nav { position: static; inset: auto; z-index: auto; width: 100%; padding: 1rem 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1.25rem; transform: none; overflow: visible; }
  body.reference-style.legacy-content:not(.js *) .nav__list { flex-direction: row; flex-wrap: wrap; gap: 1rem; }
}
