/* AA Deal Desk
   Layout concept: a deal desk's paperwork. Navy ground, ledger-style figures,
   light "document" panels for samples, gold used only for rules, numbers and the main button. */
:root {
  --navy-950: #08141f;
  --navy-900: #0b1a2e;
  --navy-800: #11263f;
  --navy-700: #1b3656;
  --navy-600: #2a4a70;
  --gold: #c9a24b;
  --gold-soft: #e3c983;
  --gold-deep: #8f6f22;
  --paper: #f5f6f8;
  --paper-2: #e9ecf1;
  --sheet: #fdfdfb;
  --ink: #101c2d;
  --ink-soft: #46556b;
  --mist: #aebbd0;
  --mist-soft: #7f90a8;
  --line-dark: rgba(174, 187, 208, 0.22);
  --line-light: #d3d9e2;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy-900);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  background: var(--navy-950); z-index: 60;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; }
.band { margin-inline: calc(50% - 50vw); padding-inline: max(16px, calc(50vw - 50% + 0px)); }
/* full-bleed bands: sections are wrapped so their background spans the page */
.sec { margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
.sec > .wrap { padding-block: clamp(3.5rem, 8vw, 6rem); }
.sec--paper { background: var(--paper); color: var(--ink); }
.sec--navy800 { background: var(--navy-800); }
.sec--navy950 { background: var(--navy-950); }
.sec--navy900 { background: var(--navy-900); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--navy-950);
  border-bottom: 1px solid var(--line-dark);
  margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
  padding-inline: max(16px, env(safe-area-inset-left, 0px));
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: 0; color: var(--paper); }
.brand-name span { color: var(--gold); }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a { text-decoration: none; padding: 0.5rem 0.8rem; font-size: 0.97rem; color: var(--mist); border-radius: 3px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav .btn { margin-left: 0.6rem; color: var(--navy-950); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-dark); color: var(--paper); border-radius: 3px; padding: 0.5rem 0.75rem; font: inherit; font-size: 0.95rem; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--gold); color: var(--navy-950); text-decoration: none;
  font-weight: 600; font-size: 1rem; padding: 0.8rem 1.35rem; border-radius: 3px;
  border: 1px solid var(--gold); cursor: pointer; font-family: var(--font-body);
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--mist-soft); }
.btn--ghost:hover { background: rgba(255,255,255,0.06); border-color: var(--paper); }
.btn--dark { background: var(--navy-900); color: var(--paper); border-color: var(--navy-900); }
.btn--dark:hover { background: var(--navy-700); border-color: var(--navy-700); }

/* Hero */
.hero { background: var(--navy-900); position: relative; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px));
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-900) 0%, rgba(11,26,46,0.82) 55%, rgba(11,26,46,0.6) 100%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.hero h1 { font-size: clamp(2.7rem, 5.6vw, 4.6rem); color: var(--paper); }
.hero .lead { margin-top: 1.4rem; font-size: 1.2rem; color: var(--mist); max-width: 34rem; }
.hero .cta-row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }
.facts { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; font-size: 0.95rem; color: var(--mist); }
.facts li { padding-left: 0.9rem; border-left: 2px solid var(--gold); }

/* Deal sheet */
.dealsheet { background: var(--navy-800); border: 1px solid var(--line-dark); border-top: 3px solid var(--gold); border-radius: 3px; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); }
.dealsheet header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line-dark); flex-wrap: wrap; }
.dealsheet h2 { font-size: 1.35rem; }
.tag { font-family: var(--font-mono); font-size: 0.74rem; color: var(--gold-soft); border: 1px solid rgba(201,162,75,0.5); padding: 0.18rem 0.5rem; border-radius: 2px; white-space: nowrap; }
.dealsheet dl { margin: 0; padding: 0.4rem 1.4rem 0.2rem; }
.dealsheet .row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px dashed var(--line-dark); }
.dealsheet .row:last-child { border-bottom: 0; }
.dealsheet dt { color: var(--mist); font-size: 0.95rem; }
.dealsheet dd { margin: 0; font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; color: var(--paper); font-size: 0.97rem; }
.dealsheet .key dd { color: var(--gold-soft); font-weight: 500; }
.dealsheet footer { padding: 0.85rem 1.4rem 1.1rem; color: var(--mist-soft); font-size: 0.82rem; border-top: 1px solid var(--line-dark); }

/* Section headings */
.sec-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.sec-head p { margin-top: 1rem; color: var(--mist); font-size: 1.1rem; }
.sec--paper .sec-head p { color: var(--ink-soft); }

/* Desk list */
.desks { border-top: 1px solid var(--line-light); }
.desk { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr) auto; gap: 1.5rem 2.5rem; align-items: start; padding: 1.8rem 0; border-bottom: 1px solid var(--line-light); }
.desk h3 { font-size: 1.7rem; color: var(--ink); }
.desk p { color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.chip { font-family: var(--font-mono); font-size: 0.76rem; border: 1px solid var(--line-light); color: var(--ink-soft); padding: 0.2rem 0.55rem; border-radius: 2px; background: #fff; }
.desk .more { font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--navy-700); border-bottom: 2px solid var(--gold); padding-bottom: 2px; white-space: nowrap; align-self: center; }
.desk .more:hover { color: var(--navy-950); }

/* Process */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.4rem; }
.steps li { border-top: 2px solid var(--gold); padding-top: 1rem; }
.steps .n { font-family: var(--font-mono); color: var(--gold); font-size: 0.9rem; }
.steps h3 { font-size: 1.3rem; margin: 0.3rem 0 0.5rem; }
.steps p { color: var(--mist); font-size: 0.97rem; }

/* Two-column text blocks */
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; }
.defs div { padding: 1.2rem 0; border-top: 1px solid var(--line-dark); }
.defs dt { font-family: var(--font-display); font-size: 1.3rem; color: var(--paper); }
.defs dd { margin: 0.35rem 0 0; color: var(--mist); font-size: 1rem; }
.sec--paper .defs div { border-top-color: var(--line-light); }
.sec--paper .defs dt { color: var(--ink); }
.sec--paper .defs dd { color: var(--ink-soft); }

/* Audience */
.aud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 2.5rem; }
.aud li { padding: 0.9rem 0; border-top: 1px solid var(--line-light); color: var(--ink); font-weight: 500; }
.aud li span { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.15rem; }

/* FAQ */
.faq details { border-top: 1px solid var(--line-dark); padding: 1.1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line-dark); }
.faq summary { cursor: pointer; font-family: var(--font-display); font-size: 1.3rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-family: var(--font-mono); font-size: 1.3rem; line-height: 1.2; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 0.7rem; color: var(--mist); max-width: 46rem; }

/* CTA band */
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.cta-band h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.cta-band p { color: var(--mist); margin-top: 0.8rem; }
.cta-band .cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: flex-end; }

/* Page title block */
.page-title .wrap { padding-block: clamp(3rem, 7vw, 5rem) clamp(2.2rem, 5vw, 3.5rem); }
.page-title h1 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 18ch; }
.page-title p { margin-top: 1.1rem; color: var(--mist); font-size: 1.15rem; max-width: 40rem; }

/* Services page */
.jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.8rem; }
.jump a { text-decoration: none; border: 1px solid var(--line-dark); padding: 0.45rem 0.85rem; border-radius: 3px; font-size: 0.93rem; color: var(--mist); }
.jump a:hover { border-color: var(--gold); color: var(--paper); }
.deskfull { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 2rem clamp(2rem, 5vw, 4.5rem); padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line-light); scroll-margin-top: 90px; }
.deskfull:first-of-type { border-top: 0; }
.deskfull .lhs h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); color: var(--ink); }
.deskfull .lhs p { margin-top: 0.9rem; color: var(--ink-soft); }
.deskfull .lhs .fit { margin-top: 1.4rem; font-size: 0.95rem; color: var(--ink-soft); border-left: 3px solid var(--gold); padding-left: 0.9rem; }
.deskfull .lhs .fit strong { color: var(--ink); display: block; font-weight: 600; }
.group + .group { margin-top: 1.8rem; }
.group h3 { font-size: 1.2rem; color: var(--ink); padding-bottom: 0.5rem; border-bottom: 1px solid var(--line-light); margin-bottom: 0.9rem; }
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem 2rem; }
.items li { position: relative; padding-left: 1.1rem; color: var(--ink); font-size: 1rem; }
.items li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 6px; height: 6px; background: var(--gold); }
.items--one { grid-template-columns: minmax(0, 1fr); }
.note { margin-top: 1.5rem; background: var(--paper-2); border: 1px solid var(--line-light); padding: 1rem 1.2rem; font-size: 0.95rem; color: var(--ink-soft); border-radius: 3px; }
.note strong { color: var(--ink); }
.flip { margin-top: 1.8rem; border: 1px solid var(--gold); background: #fffaf0; padding: 1.1rem 1.3rem; border-radius: 3px; }
.flip h3 { font-size: 1.25rem; color: var(--ink); border: 0; padding: 0; margin: 0 0 0.4rem; }
.flip p { color: var(--ink-soft); font-size: 1rem; }

/* Samples */
.sample { padding-block: clamp(2.2rem, 4vw, 3.2rem); border-top: 1px solid var(--line-dark); }
.sample:first-of-type { border-top: 0; }
.sample-head { display: block; margin-bottom: 1.3rem; }
.sample-head h2 { display: inline-block; vertical-align: middle; margin-right: 0.9rem; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.sample-head .tag { vertical-align: middle; }
.sample-head p { margin-top: 0.7rem; color: var(--mist); max-width: 46rem; }
.doc { background: var(--sheet); color: var(--ink); border-radius: 3px; padding: clamp(1.1rem, 2.4vw, 1.8rem); box-shadow: 0 24px 50px -28px rgba(0,0,0,0.7); }
.doc h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.doc .sub { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 1rem; }
.tbl-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
.doc th, .doc td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line-light); vertical-align: top; }
.doc th { font-weight: 600; color: var(--ink); background: var(--paper-2); white-space: nowrap; }
.doc td.num, .doc th.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.doc td.mono { font-family: var(--font-mono); font-size: 0.86rem; }
.doc td.base { background: #fbf1d6; font-weight: 600; }
.pill { font-family: var(--font-mono); font-size: 0.74rem; padding: 0.1rem 0.45rem; border-radius: 2px; border: 1px solid; white-space: nowrap; }
.pill--ok { color: #1c6a3a; border-color: #86c39d; background: #eaf6ee; }
.pill--wait { color: #8a5a00; border-color: #e1c27a; background: #fdf3da; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.6rem; }
.flow .node { flex: 1 1 140px; border: 1px solid var(--line-light); background: #fff; padding: 0.8rem 0.9rem; border-radius: 3px; font-size: 0.92rem; position: relative; }
.flow .node strong { display: block; font-size: 0.95rem; }
.flow .node span { color: var(--ink-soft); font-size: 0.85rem; }
.flow .node + .node::before { content: ""; position: absolute; left: -0.6rem; top: 50%; width: 0.6rem; height: 2px; background: var(--gold); }
.msg { margin-top: 1.1rem; font-family: var(--font-mono); font-size: 0.86rem; background: var(--navy-900); color: #dbe5f3; padding: 1rem 1.2rem; border-radius: 3px; white-space: pre-wrap; overflow-x: auto; line-height: 1.55; }
.msg b { color: var(--gold-soft); font-weight: 500; }
.small { font-size: 0.88rem; color: var(--ink-soft); }
.disc { margin-top: 1rem; font-size: 0.9rem; color: var(--mist); max-width: 46rem; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.portrait { border: 1px solid var(--line-light); background: #fff; padding: 0.6rem; border-radius: 3px; }
.portrait img { width: 100%; height: auto; border-radius: 2px; }
.portrait figcaption { padding: 0.8rem 0.3rem 0.3rem; font-size: 0.93rem; color: var(--ink-soft); }
.portrait figcaption strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; }
.about h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); color: var(--ink); }
.about p { margin-top: 1rem; color: var(--ink); max-width: 38rem; }
.about p.lede { font-size: 1.2rem; font-family: var(--font-display); }
.facts-table { margin-top: 2rem; max-width: 38rem; }
.facts-table div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding: 0.8rem 0; border-top: 1px solid var(--line-light); }
.facts-table dt { color: var(--ink-soft); font-size: 0.93rem; }
.facts-table dd { margin: 0; color: var(--ink); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2rem, 5vw, 4rem); }
.form { background: var(--sheet); color: var(--ink); padding: clamp(1.2rem, 3vw, 2rem); border-radius: 3px; }
.form label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; }
.form .field { margin-bottom: 1.1rem; }
.form input, .form select, .form textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #b9c3d1; border-radius: 3px; padding: 0.7rem 0.8rem; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold-deep); }
.form .help { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.4rem; }
.form .status { margin-top: 1rem; font-size: 0.95rem; }
.form .status.ok { color: #1c6a3a; }
.form .status.err { color: #a02a2a; }
.form .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.cinfo div { padding: 1.1rem 0; border-top: 1px solid var(--line-dark); }
.cinfo dt { color: var(--mist-soft); font-size: 0.9rem; }
.cinfo dd { margin: 0.25rem 0 0; font-size: 1.08rem; overflow-wrap: anywhere; }
.cinfo a { color: var(--paper); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.copy { margin-left: 0.6rem; font: inherit; font-size: 0.8rem; background: none; color: var(--gold-soft); border: 1px solid rgba(201,162,75,0.5); border-radius: 2px; padding: 0.1rem 0.5rem; cursor: pointer; }
.copy:hover { background: rgba(201,162,75,0.12); }

/* Footer */
.site-footer { background: var(--navy-950); border-top: 1px solid var(--line-dark); margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
.site-footer .wrap { padding-block: 3rem 2rem; }
.fgrid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.fgrid h4 { font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; color: var(--gold-soft); margin-bottom: 0.8rem; }
.fgrid li, .fgrid p { color: var(--mist); font-size: 0.95rem; margin-bottom: 0.4rem; }
.fgrid a { text-decoration: none; }
.fgrid a:hover { color: var(--paper); text-decoration: underline; }
.legal { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line-dark); color: var(--mist-soft); font-size: 0.85rem; display: grid; gap: 0.6rem; }

@media (max-width: 980px) {
  .hero .wrap, .cta-band .wrap, .about, .contact, .deskfull { grid-template-columns: minmax(0, 1fr); }
  .desk { grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band .cta-row { justify-content: flex-start; }
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fgrid > :first-child { grid-column: 1 / -1; }
  .portrait { max-width: 360px; }
}
@media (max-width: 780px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-950); flex-direction: column; align-items: stretch; padding: 0.6rem max(16px, env(safe-area-inset-left, 0px)) 1rem; border-bottom: 1px solid var(--line-dark); }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 0.2rem; border-bottom: 1px solid var(--line-dark); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--gold-soft); }
  .nav .btn { margin: 0.8rem 0 0; }
  .cols2, .pair, .items, .form .two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .steps, .aud, .fgrid { grid-template-columns: minmax(0, 1fr); }
  .facts-table div { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .flow .node + .node::before { display: none; }
  .hero .cta-row .btn, .cta-band .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* services: no extra gap above the first desk */
.sec--paper > .wrap > .deskfull:first-child { padding-top: 0; }

/* Section artwork: original line drawings, kept dim so the text stays easy to read */
.art-re  { --art-d: url(bg-realestate-d.svg); --art-l: url(bg-realestate-l.svg); }
.art-mod { --art-d: url(bg-modeling-d.svg);   --art-l: url(bg-modeling-l.svg); }
.art-auto{ --art-d: url(bg-automation-d.svg); --art-l: url(bg-automation-l.svg); }
.art-trd { --art-d: url(bg-trading-d.svg);    --art-l: url(bg-trading-l.svg); }
.art-res { --art-d: url(bg-research-d.svg);   --art-l: url(bg-research-l.svg); }
.art-map { --art-d: url(bg-map-d.svg);        --art-l: url(bg-map-l.svg); }
.artd, .artl { position: relative; isolation: isolate; }
.artd::before, .artl::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-repeat: no-repeat; background-position: right center; background-size: auto 130%;
  -webkit-mask-image: linear-gradient(to left, #000 35%, transparent 100%);
  mask-image: linear-gradient(to left, #000 35%, transparent 100%);
}
.artd::before { background-image: var(--art-d); opacity: 0.22; }
.artl::before { background-image: var(--art-l); opacity: 0.16; }
.desk.artl { min-height: 210px; align-items: center; }
.deskfull.artl::before { background-size: auto 78%; background-position: right 4% center; opacity: 0.1; -webkit-mask-image: none; mask-image: none; }
.sample.artsample::before { inset: 0 0 auto 0; height: 340px; background-position: right top; background-size: auto 100%; opacity: 0.2; }

/* Hero artwork: the skyline sits behind the headline and the deal sheet */
.art-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: var(--art-d) right bottom / auto 105% no-repeat; opacity: 0.4;
}

/* Section art sits in the empty area beside each heading, so body text stays clear */
.sec.artd::before, .sec.artl::before { inset: 0 0 auto 0; height: 290px; background-size: auto 100%; background-position: right max(16px, 3vw) top 12px; }
.sec.artd::before { opacity: 0.26; }
.sec.artl::before { opacity: 0.18; }
.sec.page-title.artd::before { inset: 0; height: auto; background-size: auto 135%; background-position: right center; opacity: 0.32; }
.sec.cta-band.artd::before { inset: 0; height: auto; background-size: auto 150%; background-position: right center; opacity: 0.14; }
.desk.artl::before { background-size: auto 112%; background-position: right center; opacity: 0.24;
  -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 100%); mask-image: linear-gradient(to left, #000 55%, transparent 100%); }
.sec.page-title.artd::before { -webkit-mask-image: linear-gradient(to left, #000 35%, transparent 80%); mask-image: linear-gradient(to left, #000 35%, transparent 80%); }
