:root {
  --ink: #111923;
  --deep: #172335;
  --body: #526171;
  --muted: #748190;
  --paper: #fbfaf6;
  --paper-2: #f2efe6;
  --panel: #ffffff;
  --rule: rgba(23, 35, 53, .13);
  --rule-strong: rgba(23, 35, 53, .22);
  --green: #1d7f68;
  --gold: #b58a38;
  --blue: #335d8f;
  --shadow: 0 26px 70px rgba(17, 25, 35, .12);
  --font-display: "Instrument Serif", Georgia, serif;
  --font-text: "Manrope", Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-text);
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17,25,35,.035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(180deg, #fdfcf8, var(--paper));
  line-height: 1.58;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.page-shell { width: min(1180px, calc(100% - 44px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 14px; z-index: 50; padding: 10px 14px; background: var(--ink); color: #fff; }
.skip-link:focus { left: 14px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--rule);
  background: rgba(251, 250, 246, .88);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.brand img { width: 252px; height: auto; }
.site-nav { display: flex; gap: 24px; align-items: center; color: var(--body); font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.site-nav a, .text-link { text-decoration: none; border-bottom: 1px solid transparent; }
.site-nav a:hover, .text-link:hover { color: var(--ink); border-color: var(--gold); }
.nav-toggle { display: none; }

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: clamp(58px, 7.7vw, 116px);
  font-weight: 400;
  line-height: .88;
  letter-spacing: 0;
}
h2 {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 74px);
  font-weight: 400;
  line-height: .94;
  letter-spacing: 0;
}
h3 { margin-bottom: 10px; font-size: 19px; line-height: 1.22; }
p { color: var(--body); }
.eyebrow {
  margin-bottom: 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.lead { max-width: 650px; color: #405060; font-family: var(--font-serif); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.42; }

.button, button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  padding: 12px 18px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, background-color .22s ease;
}
.button:hover, button:hover { transform: translateY(-2px); border-color: var(--gold); }
.button.primary, button.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.button.secondary { background: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(181,138,56,.45); outline-offset: 4px; }

.hero { position: relative; overflow: hidden; padding: 34px 0 78px; }
.market-ribbon {
  width: 100%;
  overflow: hidden;
  border-block: 1px solid var(--rule);
  background: #111923;
  color: rgba(255,255,255,.82);
}
.market-track {
  display: flex;
  width: max-content;
  animation: ticker-slide 26s linear infinite;
}
.market-ribbon span { padding: 10px 32px; border-right: 1px solid rgba(255,255,255,.18); white-space: nowrap; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, .72fr); gap: 72px; align-items: center; padding-top: 72px; }
.hero-copy { animation: reveal-up .7s ease both; }
.hero-actions, .contact-actions, .consent-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.briefing-desk { position: relative; min-height: 600px; animation: reveal-up .75s .1s ease both; }
.desk-photo { margin: 0; position: absolute; inset: 0 0 64px 52px; overflow: hidden; border: 1px solid var(--rule-strong); background: var(--panel); box-shadow: var(--shadow); }
.desk-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 48%, rgba(17,25,35,.64));
  pointer-events: none;
}
.desk-photo img { width: 100%; height: 100%; object-fit: cover; }
.brief-card {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(360px, 82%);
  padding: 24px;
  border: 1px solid var(--rule-strong);
  background: rgba(255,255,255,.92);
  box-shadow: 0 20px 50px rgba(17,25,35,.14);
}
.brief-card p { margin-bottom: 18px; color: var(--ink); font-weight: 850; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.brief-card dl { margin: 0; display: grid; gap: 12px; }
.brief-card div { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.brief-card dt, .brief-card dd { margin: 0; font-size: 14px; }
.brief-card dd { color: var(--green); font-weight: 800; }

.briefing-strip { border-block: 1px solid var(--rule-strong); background: var(--panel); }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-grid p { margin: 0; padding: 28px 26px; border-right: 1px solid var(--rule); }
.strip-grid p:last-child { border-right: 0; }
.strip-grid strong, .strip-grid span { display: block; }
.strip-grid strong { margin-bottom: 4px; color: var(--ink); }
.strip-grid span { color: var(--body); }

.section { padding: 96px 0; }
.section-heading { max-width: 900px; margin-bottom: 34px; }
.intelligence-ledger {
  border-top: 1px solid var(--rule-strong);
  background: rgba(255,255,255,.45);
}
.intelligence-ledger article {
  display: grid;
  grid-template-columns: 86px minmax(220px, .38fr) minmax(0, 1fr);
  gap: 26px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left .22s ease, background-color .22s ease;
}
.intelligence-ledger article:hover { padding-left: 18px; background: rgba(255,255,255,.6); }
.intelligence-ledger span { color: var(--gold); font-size: 13px; font-weight: 900; letter-spacing: .12em; }
.intelligence-ledger h3 { margin-bottom: 0; font-size: 22px; }
.intelligence-ledger p { margin-bottom: 0; max-width: 680px; }

.method-section { background: linear-gradient(180deg, rgba(23,35,53,.04), rgba(255,255,255,.42)); border-block: 1px solid var(--rule); }
.method-layout { display: grid; grid-template-columns: minmax(300px, .88fr) minmax(0, 1.12fr); gap: 64px; align-items: start; }
.method-copy > p:not(.eyebrow) { max-width: 560px; font-family: var(--font-serif); font-size: 20px; }
.method-image { margin: 34px 0 0; overflow: hidden; border: 1px solid var(--rule-strong); box-shadow: var(--shadow); }
.method-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.research-flow { position: relative; display: grid; gap: 16px; counter-reset: flow; }
.research-flow::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: linear-gradient(var(--gold), var(--green));
  animation: line-grow 1.2s ease both;
}
.research-flow article {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  padding: 24px 26px 24px 70px;
  border: 1px solid var(--rule);
  background: rgba(255,255,255,.78);
  box-shadow: 0 14px 42px rgba(17,25,35,.07);
  transition: transform .22s ease, border-color .22s ease;
}
.research-flow article:hover { transform: translateX(8px); border-color: rgba(181,138,56,.42); }
.research-flow article::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 31px;
  width: 16px;
  height: 16px;
  border: 4px solid var(--green);
  border-radius: 50%;
  background: #fff;
}
.research-flow span { color: var(--ink); font-weight: 900; }
.research-flow p { margin-bottom: 0; }

.snapshots-section { background: var(--deep); color: #fff; }
.snapshots-section p { color: rgba(255,255,255,.72); }
.snapshots-section .eyebrow { color: #d7b46b; }
.snapshot-heading { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 46px; align-items: end; margin-bottom: 34px; }
.snapshot-heading figure { margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.18); }
.snapshot-heading img { width: 100%; aspect-ratio: 1.2 / 1; object-fit: cover; filter: saturate(.82); }
.snapshot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.snapshot-card {
  min-height: 330px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  transition: transform .24s ease, background-color .24s ease, border-color .24s ease;
}
.snapshot-card.featured { background: rgba(255,255,255,.11); }
.snapshot-card:hover { transform: translateY(-7px); border-color: rgba(215,180,107,.5); background: rgba(255,255,255,.12); }
.context { margin-bottom: 28px; color: #d7b46b !important; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.snapshot-card h3 { color: #fff; font-family: var(--font-serif); font-size: 28px; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tags span { padding: 6px 9px; border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.78); font-size: 12px; }

.notes-layout { display: grid; grid-template-columns: minmax(260px, .64fr) minmax(0, 1.36fr); gap: 54px; align-items: start; }
.principles-layout { display: grid; grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr); gap: 62px; align-items: start; }
.notes-image { margin: 0; overflow: hidden; border: 1px solid var(--rule-strong); box-shadow: var(--shadow); }
.notes-image img { width: 100%; aspect-ratio: 1 / 1.18; object-fit: cover; }
.memo-stack { display: grid; gap: 12px; margin-top: 28px; }
.memo-stack article {
  display: block;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.memo-stack span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.memo-stack h3 { margin-bottom: 4px; font-size: 22px; }
.memo-stack p { margin-bottom: 0; }

.principles-section { background: var(--paper-2); border-block: 1px solid var(--rule); }
.principles-layout > div:first-child p:not(.eyebrow) { max-width: 600px; font-family: var(--font-serif); font-size: 20px; }
.principle-list { display: grid; gap: 14px; }
.principle-list article { padding: 24px 26px; border-left: 5px solid var(--green); background: rgba(255,255,255,.66); box-shadow: 0 14px 36px rgba(17,25,35,.06); }
.principle-list p { margin-bottom: 0; }

.contact-section { padding: 88px 0; }
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: end;
  padding: 44px;
  border: 1px solid var(--rule-strong);
  background: #fff;
  box-shadow: var(--shadow);
}
.contact-panel h2 { max-width: 760px; }
.contact-panel p:not(.eyebrow) { max-width: 650px; }
.contact-actions { justify-content: flex-end; }

.site-footer { padding: 34px 0; border-top: 1px solid var(--rule); background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1.15fr; gap: 24px; align-items: center; }
.footer-grid img { width: 56px; margin-bottom: 8px; }
.footer-grid p { margin-bottom: 0; font-size: 14px; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-grid a { color: var(--body); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); }
.disclaimer { color: var(--muted); }

.policy-hero { padding: 92px 0 56px; border-bottom: 1px solid var(--rule); background: linear-gradient(135deg, #fff, var(--paper-2)); }
.policy-hero h1 { max-width: 880px; }
.narrow { max-width: 840px; }
.policy-content h2 { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); font-family: var(--font-serif); font-size: 34px; font-weight: 600; }
.policy-content h2:first-child { margin-top: 0; }
.policy-content p { font-size: 18px; }
.text-link { display: inline-block; margin: 18px 18px 0 0; color: var(--green); font-weight: 800; }

.consent-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--rule-strong);
  background: rgba(255,255,255,.97);
  box-shadow: var(--shadow);
}
.consent-banner h2, .consent-modal h2 { margin-bottom: 6px; font-size: 22px; }
.consent-banner p { margin-bottom: 6px; }
.consent-banner a { margin-right: 12px; color: var(--green); font-weight: 800; }
.consent-actions { margin-top: 0; }
.consent-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17,25,35,.54);
}
.modal-panel { width: min(520px, 100%); padding: 28px; border: 1px solid var(--rule-strong); background: #fff; box-shadow: var(--shadow); }
.modal-panel label { display: block; margin: 16px 0; color: var(--body); }
[hidden] { display: none !important; }

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ticker-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes line-grow {
  from { transform: scaleY(0); transform-origin: top; opacity: .2; }
  to { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

.packet-section {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--rule);
  background: linear-gradient(120deg, #f7f3e8, #fff 44%, #edf5ee);
}
.packet-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--ink));
  transform-origin: left;
  animation: packet-scan 4.8s ease-in-out infinite;
}
.packet-layout {
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: center;
}
.packet-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.packet-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  background: #fff;
  box-shadow: var(--shadow);
}
.packet-gallery figure:nth-child(2) { transform: translateY(42px); }
.packet-gallery img {
  width: 100%;
  min-height: 440px;
  object-fit: cover;
  filter: saturate(.9) contrast(1.03);
  transition: transform .55s ease, filter .3s ease;
}
.packet-gallery figure:hover img { transform: scale(1.045); filter: saturate(1.05) contrast(1.08); }
.packet-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}
.packet-list article {
  padding: 18px 20px;
  border: 1px solid var(--rule);
  background: rgba(255,255,255,.72);
  transition: transform .22s ease, border-color .22s ease;
}
.packet-list article:hover { transform: translateX(8px); border-color: var(--green); }
.packet-list span { color: var(--green); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
@keyframes packet-scan {
  0%, 100% { transform: scaleX(.18); opacity: .42; }
  50% { transform: scaleX(1); opacity: .9; }
}

@media (max-width: 980px) {
  .page-shell { width: min(100% - 32px, 1180px); }
  .brand img { width: 218px; }
  .nav-toggle {
    display: inline-flex;
    position: absolute;
    right: 0;
    top: 16px;
    min-width: 76px;
    height: 44px;
    padding: 0 12px;
    color: var(--ink);
  }
  .nav-toggle::before {
    content: "";
    width: 16px;
    height: 2px;
    margin-right: 8px;
    background: var(--ink);
    box-shadow: 0 7px 0 var(--ink), 0 -7px 0 var(--ink);
  }
  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid var(--rule);
    background: #fff;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .hero-layout, .packet-layout, .method-layout, .notes-layout, .principles-layout, .contact-panel, .footer-grid { grid-template-columns: 1fr; }
  .hero-layout { gap: 42px; padding-top: 54px; }
  .briefing-desk { min-height: 520px; }
  .strip-grid, .snapshot-grid { grid-template-columns: 1fr; }
  .packet-gallery figure:nth-child(2) { transform: none; }
  .strip-grid p { border-right: 0; border-bottom: 1px solid var(--rule); }
  .strip-grid p:last-child { border-bottom: 0; }
  .intelligence-ledger article { grid-template-columns: 58px 1fr; }
  .intelligence-ledger article p { grid-column: 2; }
  .snapshot-heading { grid-template-columns: 1fr; }
  .snapshot-heading figure { max-width: 360px; }
  .contact-actions { justify-content: flex-start; }
  .consent-banner { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .page-shell { width: min(100% - 26px, 1180px); }
  .brand img { width: 176px; }
  h1 { font-size: 54px; }
  h2 { font-size: 40px; }
  .hero { padding-bottom: 58px; }
  .briefing-desk { min-height: 440px; }
  .desk-photo { inset: 0 0 82px 0; }
  .brief-card { width: 92%; }
  .section { padding: 72px 0; }
  .packet-gallery { grid-template-columns: 1fr; }
  .packet-gallery img { min-height: 280px; }
  .research-flow::before { left: 17px; }
  .research-flow article { grid-template-columns: 1fr; padding-left: 52px; }
  .research-flow article::before { left: 9px; }
  .contact-panel { padding: 28px; }
  .hero-actions .button, .contact-actions .button, .consent-actions button { width: 100%; }
  .consent-banner { left: 12px; right: 12px; bottom: 12px; max-height: 62vh; overflow: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Distinct Quantxomere theme: midnight finance editorial, separated from dossier and infrastructure palettes. */
:root {
  --ink: #071321;
  --deep: #071a2f;
  --body: #4a5e70;
  --muted: #6d7d8b;
  --paper: #f7fbfb;
  --paper-2: #e9f2f1;
  --panel: #ffffff;
  --rule: rgba(7, 19, 33, .12);
  --rule-strong: rgba(7, 19, 33, .24);
  --green: #00896f;
  --gold: #d8b15f;
  --blue: #0f4c81;
  --shadow: 0 28px 78px rgba(7, 19, 33, .14);
}
body {
  background:
    radial-gradient(circle at 82% 8%, rgba(0, 137, 111, .12), transparent 28%),
    linear-gradient(180deg, #f9fcfd, #edf5f4 46%, #f7fbfb);
}
.site-header {
  background: rgba(249, 252, 253, .9);
  border-bottom-color: rgba(7, 19, 33, .1);
}
.hero {
  background:
    linear-gradient(120deg, rgba(7, 19, 33, .97), rgba(8, 43, 70, .95) 58%, rgba(0, 86, 77, .86)),
    #071321;
  color: #fff;
}
.hero .lead,
.hero p { color: rgba(255,255,255,.78); }
.hero .eyebrow { color: #62e0c5; }
.market-ribbon {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  color: rgba(255,255,255,.76);
}
.brief-card {
  border-color: rgba(216,177,95,.45);
  background: rgba(255,255,255,.92);
  color: var(--ink);
}
.hero .brief-card p,
.hero .brief-card dt {
  color: var(--ink);
}
.hero .brief-card dd {
  color: var(--green);
}
.briefing-strip {
  background: #06111e;
  color: #fff;
}
.briefing-strip p,
.briefing-strip span { color: rgba(255,255,255,.72); }
.packet-section {
  background:
    radial-gradient(circle at 0 0, rgba(216,177,95,.18), transparent 24%),
    linear-gradient(135deg, #f7fbfb, #ffffff 50%, #e7f2ef);
}
.intelligence-section,
.principles-section { background: #f8fbfc; }
.method-section {
  background: linear-gradient(180deg, #ffffff, #edf5f4);
}
.snapshots-section {
  background: linear-gradient(135deg, #06111e, #0b2238);
}
.snapshot-card {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}
.notes-section { background: #ffffff; }

/* Brand-specific GDPR surface */
.consent-banner {
  border: 1px solid rgba(216,177,95,.42);
  border-top: 4px solid var(--gold);
  background: rgba(6, 17, 30, .96);
  color: #fff;
  box-shadow: 0 28px 82px rgba(6,17,30,.34);
}
.consent-banner h2 { color: #fff; font-family: var(--font-text); font-weight: 800; }
.consent-banner p { color: rgba(255,255,255,.76); }
.consent-banner a { color: #8be3ce; }
.consent-actions button {
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color: #fff;
}
.consent-actions button.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}
.consent-modal { background: rgba(7,19,33,.68); }
.modal-panel {
  border: 1px solid rgba(216,177,95,.42);
  border-top: 4px solid var(--gold);
  background: #f9fcfd;
}
.modal-panel h2 { color: var(--ink); }
.modal-panel label { color: var(--body); }
