:root {
  --bg: #111111;
  --fg: #f2f0ea;
  --muted: #8f8f8a;
  --line: rgba(242, 240, 234, 0.14);
  --line-strong: rgba(242, 240, 234, 0.24);
  --max: 1520px;
  --gutter: clamp(20px, 3vw, 48px);
  --display: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px solid var(--fg); outline-offset: 5px; }

.page-shell { min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: .08em;
  line-height: 1;
}
.brand { font-weight: 700; }
.top-link { color: var(--muted); transition: color .2s ease; }
.top-link:hover { color: var(--fg); }

main, .footer { max-width: var(--max); margin: 0 auto; }
.section {
  padding: clamp(86px, 10vw, 170px) var(--gutter);
  border-bottom: 1px solid var(--line);
}
.section--hero {
  min-height: calc(100svh - 57px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-top: clamp(56px, 7vw, 110px);
  padding-bottom: 34px;
}
.section--tight { padding-top: 0; padding-bottom: 0; }
.eyebrow, .section-index, .meta, .metric-label, .footer-meta, .footer-year {
  font-size: 11px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero h1, h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: .88;
  text-transform: uppercase;
}
.hero h1 {
  align-self: center;
  font-size: clamp(64px, 12.5vw, 188px);
  max-width: 12ch;
}
.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 60px;
  align-items: end;
}
.lede {
  max-width: 680px;
  margin: 0;
  font-size: clamp(20px, 2.2vw, 34px);
  line-height: 1.17;
  letter-spacing: -0.025em;
}
.meta { text-align: right; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.metric {
  min-height: 210px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
}
.metric:last-child { border-right: 0; }
.metric-value {
  font-size: clamp(28px, 3.2vw, 48px);
  letter-spacing: -0.045em;
  line-height: .95;
  font-weight: 600;
}

.split, .strategy-section, .statement, .contact { display: grid; gap: 68px; }
.split-content, .statement-grid, .contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: clamp(56px, 9vw, 150px);
  align-items: start;
}
h2 { font-size: clamp(54px, 7.6vw, 116px); }
.body-copy, .private-copy, .contact-details {
  font-size: clamp(19px, 1.75vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.022em;
}
.body-copy p, .private-copy p, .contact-details p { margin: 0 0 1.25em; }
.body-copy p:last-child, .private-copy p:last-child, .contact-details p:last-child { margin-bottom: 0; }
.body-copy--wide { max-width: 620px; }

.strategy-layout {
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(0, 1.15fr);
  gap: clamp(56px, 9vw, 150px);
  align-items: start;
}
.strategy-list { border-top: 1px solid var(--line-strong); }
.strategy-row {
  display: grid;
  grid-template-columns: 52px 1fr 1.25fr;
  gap: 24px;
  align-items: start;
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--line);
}
.strategy-row span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .12em;
}
.strategy-row strong {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.strategy-row em {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
  font-style: normal;
}

.ticker-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
.ticker-row span {
  padding: 18px 0;
  font-size: 10px;
  letter-spacing: .13em;
  color: var(--muted);
  border-right: 1px solid var(--line);
  text-align: center;
}
.ticker-row span:last-child { border-right: 0; }

.private-copy { max-width: 720px; }
.allocation-grid {
  margin-top: 42px;
  border-top: 1px solid var(--line-strong);
}
.allocation-grid > div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.split--compact { padding-top: clamp(72px, 8vw, 130px); padding-bottom: clamp(72px, 8vw, 130px); }
.contact-grid { align-items: end; }
.team-signal {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.team-signal strong { font-size: clamp(28px, 3.2vw, 48px); letter-spacing: -0.045em; line-height: .95; font-weight: 600; }
.team-signal span { color: var(--muted); }
.contact-links {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 18px;
}
.contact-links a { border-bottom: 1px solid transparent; transition: border-color .2s ease, color .2s ease; }
.contact-links a:hover { border-color: var(--fg); }

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px 56px;
  padding: 34px var(--gutter) 48px;
}
.footer-brand { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.footer-meta { align-self: center; }
.footer-legal {
  max-width: 920px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.footer-year { text-align: right; align-self: end; }

@media (max-width: 980px) {
  .hero-bottom, .split-content, .statement-grid, .strategy-layout, .contact-grid { grid-template-columns: 1fr; }
  .meta { text-align: left; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .strategy-row { grid-template-columns: 40px 1fr; }
  .strategy-row em { grid-column: 2; }
  .ticker-row { grid-template-columns: 1fr; }
  .ticker-row span { border-right: 0; border-bottom: 1px solid var(--line); }
  .ticker-row span:last-child { border-bottom: 0; }
}

@media (max-width: 640px) {
  .topbar { padding-top: 18px; padding-bottom: 18px; }
  .top-link { font-size: 10px; }
  .section--hero { min-height: auto; gap: 90px; }
  /* longest unbreakable words ("SYSTEMATIC.", "FRAGMENTATION") must fit 320px */
  .hero h1 { font-size: clamp(40px, 13vw, 94px); }
  h2 { font-size: clamp(30px, 10.5vw, 54px); }
  .metric-grid { grid-template-columns: 1fr; border-left: 0; border-right: 0; }
  .metric { min-height: 150px; border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; padding-right: 0; }
  .metric:last-child { border-bottom: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .strategy-row { gap: 16px; }
  .strategy-row strong { font-size: 17px; }
  .strategy-row em { font-size: 15px; }
  .footer { grid-template-columns: 1fr; }
  .footer-year { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- base additions ---------- */
.hero h1 em, h2 em { font-style: normal; }
.allocation-grid > div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.allocation-grid > div em { font-style: normal; font-size: 13px; letter-spacing: .02em; text-transform: none; color: var(--muted); text-align: right; }
@media (max-width: 640px) {
  .allocation-grid > div { flex-direction: column; gap: 4px; }
  .allocation-grid > div em { text-align: left; }
}

/* optional design layers — off unless <html> carries the fx-* class */
.statusbar, .hero-waves, .strategy-head, .strategy-row .status { display: none; }
:root { --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace; --accent: #c9a96e; }

/* fx-status: Rootstone-style live strip + [ BRACKET ] mono labels */
.fx-status .statusbar {
  display: flex; justify-content: space-between; gap: 24px;
  max-width: var(--max); margin: 0 auto; padding: 9px var(--gutter);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--muted);
}
.fx-status .live-dot { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 8px #3ddc84; vertical-align: 1px; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.fx-status .section-index, .fx-status .eyebrow, .fx-status .meta, .fx-status .metric-label, .fx-status .ticker-row span { font-family: var(--mono); letter-spacing: .08em; }
.fx-status .section-index::before, .fx-status .eyebrow::before { content: "[ "; color: var(--fg); }
.fx-status .section-index::after, .fx-status .eyebrow::after { content: " ]"; color: var(--fg); }
@media (max-width: 640px) { .fx-status .statusbar span:nth-child(3) { display: none; } }

/* fx-serif: Unsquared-style serif display type with an italic accent line */
.fx-serif .hero h1, .fx-serif h2 {
  font-family: "Instrument Serif", "Times New Roman", Georgia, serif;
  font-weight: 400; text-transform: none; letter-spacing: -0.02em; line-height: .95;
}
.fx-serif .hero h1 em, .fx-serif h2 em { font-style: italic; color: var(--accent); }
.fx-serif .hero h1 { font-size: clamp(64px, 13vw, 200px); }
.fx-serif h2 { font-size: clamp(56px, 8vw, 124px); }
.fx-serif .metric-value, .fx-serif .team-signal strong { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; letter-spacing: -0.01em; }
@media (max-width: 640px) {
  .fx-serif .hero h1 { font-size: clamp(52px, 17vw, 100px); }
  .fx-serif h2 { font-size: clamp(40px, 12.5vw, 64px); }
}

/* fx-waves: GP Digital-style generative line field behind the hero */
.fx-waves .section--hero { position: relative; overflow: hidden; }
.fx-waves .hero-waves { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.fx-waves .section--hero > :not(.hero-waves) { position: relative; z-index: 1; }

/* fx-table: Rootstone-style strategy matrix with a status column */
.fx-table .strategy-list { border-top: 0; }
.fx-table .strategy-head, .fx-table .strategy-row { grid-template-columns: 52px 1fr 1.25fr 90px; }
.fx-table .strategy-head {
  display: grid; gap: 24px; padding: 0 0 12px; border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.fx-table .strategy-row { transition: background .2s ease; }
.fx-table .strategy-row:hover { background: rgba(242,240,234,.03); }
.fx-table .strategy-row .status {
  display: inline-flex; align-items: center; gap: 7px; justify-self: start;
  font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: #3ddc84;
}
.fx-table .strategy-row .status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
@media (max-width: 980px) {
  .fx-table .strategy-head { display: none; }
  .fx-table .strategy-row { grid-template-columns: 40px 1fr auto; }
  .fx-table .strategy-row em { grid-column: 2 / 4; grid-row: 2; }
  .fx-table .strategy-row .status { grid-column: 3; grid-row: 1; }
}

/* contact: copy-email fallback for visitors without a mail app */
#contact { scroll-margin-top: 80px; }
.email-row { display: inline-flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.copy-email {
  padding: 5px 10px; background: transparent; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 4px; cursor: pointer;
  font: 11px/1 var(--mono, monospace); letter-spacing: .08em; text-transform: uppercase;
  transition: color .2s ease, border-color .2s ease;
}
.copy-email:hover { color: var(--fg); border-color: var(--fg); }
