/* XG Market Analytics -- shared styles (version 3, Tue 1 Dec 2026) */
:root {
  --night: #0E1828;
  --night-2: #16253A;
  --paper: #F1F3EF;
  --paper-2: #E6EAE5;
  --ink: #14202E;
  --mute: #56636F;
  --rule: #CDD5D0;
  --sage: #9FCDB5;
  --cobalt: #5B78F2;
  --haze: #BCC9E2;
  --on-night: #E8EEF0;
  --on-night-mute: #9DAEC0;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 4px; border-radius: 3px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- the dark opening of every page ---------- */
.hero { position: relative; background: var(--night); color: var(--on-night); display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.hero.home { min-height: min(100svh, 920px); }
.hero.inner { min-height: min(68svh, 620px); }
.hero .art { position: absolute; inset: auto 0 0 0; z-index: -1; }
.hero.home .art { height: 74%; }
.hero.inner .art { height: 100%; }
.hero .art svg { width: 100%; height: 100%; display: block; }
.hero .art { -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.18) 34%, #000 64%); mask-image: linear-gradient(90deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.18) 34%, #000 64%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(1200px 520px at 78% 112%, rgba(91,120,242,.22), transparent 60%), radial-gradient(900px 420px at 10% 0%, rgba(159,205,181,.10), transparent 60%); }
.top { padding-top: 26px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.mark svg { width: 30px; height: 30px; flex: none; }
.mark b { font-weight: 600; font-size: 1.0625rem; letter-spacing: .01em; }
.top nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; flex-wrap: wrap; }
.top nav a { text-decoration: none; color: var(--on-night-mute); font-weight: 500; font-size: .975rem; padding-bottom: 4px; border-bottom: 1px solid transparent; }
.top nav a:hover { color: var(--on-night); }
.top nav a[aria-current="page"] { color: var(--on-night); border-bottom-color: var(--sage); }
.hero-copy { padding: clamp(64px, 12vh, 140px) 0 clamp(56px, 8vh, 96px); }
.hero.inner .hero-copy { padding-top: clamp(56px, 10vh, 120px); }
.hero h1 { font-family: var(--serif); font-weight: 400; line-height: .96; letter-spacing: -.02em; margin: 0; }
.hero.home h1 { font-size: clamp(3rem, 8.4vw, 7.6rem); max-width: 11ch; }
.hero.inner h1 { font-size: clamp(2.7rem, 6.4vw, 5.6rem); max-width: 14ch; }
.hero .kicker { font-family: var(--sans); color: var(--sage); font-weight: 500; font-size: 1rem; margin: 0 0 18px; }
.hero p.sub { margin: 30px 0 0; max-width: 44ch; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--on-night-mute); line-height: 1.55; }
.hero .cta { margin-top: 34px; display: inline-block; padding: 13px 22px; border: 1px solid rgba(232,238,240,.35); border-radius: 999px; text-decoration: none; font-weight: 500; color: var(--on-night); background: rgba(14,24,40,.35); }
.hero .cta:hover { border-color: var(--sage); color: var(--sage); }
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; animation: rise 1.1s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i) * 45ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
}

/* ---------- light sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section.tint { background: var(--paper-2); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.3rem); line-height: 1.04; margin: 0; letter-spacing: -.01em; }
.lead { color: var(--mute); margin: 18px 0 0; max-width: 36ch; }
.prose p { margin: 0 0 1.1em; max-width: 62ch; }
.prose p:last-child { margin-bottom: 0; }
.statement p.big { font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.14; letter-spacing: -.01em; margin: 0; max-width: 24ch; }
.statement p.small { color: var(--mute); max-width: 58ch; margin: 28px 0 0; font-size: 1.125rem; }

.caps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.caps li { border-top: 1px solid var(--ink); padding-top: 26px; }
.caps svg { width: 52px; height: 52px; display: block; margin-bottom: 22px; }
.caps h3 { font-family: var(--serif); font-weight: 400; font-size: 1.85rem; line-height: 1.1; margin: 0 0 12px; }
.caps p { margin: 0 0 14px; color: var(--mute); }
.caps a.more { font-weight: 500; text-decoration-color: var(--cobalt); }

dl.terms { margin: 0; }
dl.terms div { padding: 26px 0; border-bottom: 1px solid var(--rule); }
dl.terms div:first-child { padding-top: 6px; }
dl.terms dt { font-family: var(--serif); font-size: 1.75rem; line-height: 1.15; }
dl.terms dd { margin: 8px 0 0; color: var(--mute); max-width: 58ch; }

/* the evidence ring (research) */
.domains { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.domains figure { margin: 0; }
.domains figure svg { width: 100%; max-width: 460px; height: auto; display: block; }
.domains figcaption { color: var(--mute); font-size: .9375rem; margin-top: 14px; max-width: 40ch; }
ul.legend { list-style: none; margin: 0; padding: 0; }
ul.legend li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 0 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
ul.legend li:first-child { padding-top: 0; }
ul.legend .sw { width: 14px; height: 14px; border-radius: 50%; margin-top: 7px; }
ul.legend b { font-weight: 600; display: block; }
ul.legend span.t { color: var(--mute); }

/* the lifecycle (methodology) */
ol.cycle { list-style: none; margin: 0; padding: 0; counter-reset: c; }
ol.cycle li { counter-increment: c; position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 20px; padding: 0 0 34px; }
ol.cycle li::before { content: counter(c); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; font-family: var(--serif); font-size: 1.35rem; background: var(--paper); position: relative; z-index: 1; }
ol.cycle li::after { content: ""; position: absolute; left: 22px; top: 44px; bottom: 0; width: 1px; background: var(--rule); }
ol.cycle li:last-child::after { display: none; }
ol.cycle h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.15; margin: 6px 0 6px; }
ol.cycle p { margin: 0; color: var(--mute); max-width: 58ch; }

/* walk-forward figure (methodology) */
figure.wf { margin: 0; }
figure.wf svg { width: 100%; height: auto; display: block; }
.wf-key { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 18px 0 0; padding: 0; color: var(--mute); font-size: .9375rem; }
.wf-key i { display: inline-block; width: 22px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: middle; }
figure.wf figcaption { color: var(--mute); font-size: .9375rem; margin-top: 10px; max-width: 64ch; }

/* dark band */
.band { position: relative; background: var(--night); color: var(--on-night); overflow: hidden; isolation: isolate; }
.band .net { position: absolute; inset: 0; z-index: -1; -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.2) 40%, #000 70%); mask-image: linear-gradient(90deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.2) 40%, #000 70%); }
.band .net svg { width: 100%; height: 100%; display: block; }
.net line, .hero .art line { stroke: var(--haze); stroke-opacity: .16; stroke-width: 1; }
.net .dot, .hero .art .dot { fill: var(--haze); fill-opacity: .45; }
.net .hot, .hero .art .hot { fill: var(--sage); }
.band .wrap { padding-top: clamp(96px, 13vw, 180px); padding-bottom: clamp(96px, 13vw, 180px); }
.band h2 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: .98; max-width: 14ch; }
.band p { color: var(--on-night-mute); max-width: 46ch; margin: 26px 0 0; font-size: 1.125rem; }

/* contact + footer */
.contact { padding: clamp(72px, 9vw, 120px) 0; border-top: 1px solid var(--rule); }
.contact .addr { font-family: var(--serif); font-size: clamp(1.7rem, 3.6vw, 2.8rem); line-height: 1.1; margin: 0 0 14px; word-break: break-word; }
.contact .addr a { text-underline-offset: 8px; }
.contact .addr a:hover { color: var(--cobalt); }
.contact p { margin: 0; color: var(--mute); }
footer { background: var(--night); color: var(--on-night-mute); padding: 34px 0 40px; font-size: .9375rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
footer p { margin: 0; max-width: 70ch; }
footer nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; flex-wrap: wrap; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--on-night); }

@media (max-width: 900px) {
  .caps { grid-template-columns: minmax(0, 1fr); }
  .split, .domains { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .top nav { width: 100%; }
  .top nav ul { gap: 18px; }
  .hero.home { min-height: 720px; }
  .hero.home .art { height: 46%; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%); mask-image: linear-gradient(180deg, transparent 0%, #000 45%); }
  .hero.inner .art { -webkit-mask-image: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.6) 100%); mask-image: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.6) 100%); }
  .band .net { -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.35)); mask-image: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.35)); }
  ol.cycle li { grid-template-columns: 52px minmax(0, 1fr); }
}
