/* Macro Capital Advisors v5: full-viewport hero, very little text, confident type; black/amber terminal palette.
   System fonts only; no external assets; no JS. Motion is limited to a slow cursor and respects reduced-motion. */
:root {
  --bg: #000000;
  --amber: #FF9E1B;
  --amber-line: rgba(255, 158, 27, 0.27);
  --ivory: #F4EFE6;
  --text: #D9D4CA;
  --muted: #8A857C;
  --status-h: 26px;
  --nav-h: 88px;
  --mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace;
  --sans: "Montserrat", "Inter", "Avenir Next", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; color: var(--text); font: 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 158, 27, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 158, 27, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
}
body::after {                                   /* faint scanlines */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 10;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 3px);
}
a { color: var(--amber); }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 48px; }
::selection { background: var(--amber); color: #000; }

/* status line */
.status { background: var(--amber); color: #000; font: 600 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.status-row { display: flex; justify-content: space-between; align-items: center; height: var(--status-h); gap: 12px; }
.status-id { white-space: nowrap; }
.status-id b { font-weight: 800; }
.status-meta { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.sep { opacity: 0.5; }
.led { width: 7px; height: 7px; background: #000; display: inline-block; }

/* nav */
.top { border-bottom: 1px solid var(--amber-line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-globe { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand-name { color: var(--ivory); font-weight: 700; font-size: 21px; letter-spacing: 0.01em; }
.brand-sub { color: var(--amber); font-weight: 500; font-size: 10px; letter-spacing: 0.42em; text-transform: uppercase; margin-top: 6px; padding-left: 0.42em; }
.portal {
  color: var(--amber); text-decoration: none; font: 700 12px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase;
  padding: 13px 20px; white-space: nowrap; border: 1px solid var(--amber); transition: background .15s, color .15s;
}
.portal:hover, .portal:focus-visible { background: var(--amber); color: #000; outline: none; }

/* micro-labels */
.label { color: var(--amber); font: 600 12px/1 var(--mono); letter-spacing: 0.26em; text-transform: uppercase; margin: 0; }
.prompt { margin-right: 0.6em; }

/* hero: fills the first screen */
.hero {
  min-height: calc(100vh - var(--status-h) - var(--nav-h) - 1px);
  min-height: calc(100svh - var(--status-h) - var(--nav-h) - 1px);
  display: flex; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--amber-line); overflow: hidden;
}
.hero-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-copy .label { margin-bottom: 36px; }
h1 {
  font-weight: 300; color: var(--ivory); margin: 0; letter-spacing: -0.025em; line-height: 1.04;
  font-size: clamp(44px, 6vw, 92px);
}
h1 .line { display: block; white-space: nowrap;
}
.cursor { display: inline-block; width: 0.42em; height: 0.82em; margin-left: 0.16em; vertical-align: -0.06em; background: var(--amber); animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
.rule { width: 120px; height: 1px; background: var(--amber); margin-top: 48px; }
.hero-mark { position: relative; justify-self: end; width: min(100%, 420px); aspect-ratio: 1; }
.hero-mark::before, .hero-mark::after { content: ""; position: absolute; width: 18px; height: 18px; border-color: var(--amber); border-style: solid; opacity: 0.7; }
.hero-mark::before { top: 0; left: 0; border-width: 1px 0 0 1px; }
.hero-mark::after { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.hero-mark img { width: 100%; height: 100%; display: block; }

/* one statement band */
.statement { padding: 128px 0; border-bottom: 1px solid var(--amber-line); }
.statement-grid { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: baseline; }
.statement-text { margin: 0; max-width: 24em; color: var(--ivory); font-weight: 300; font-size: clamp(24px, 2.7vw, 40px); line-height: 1.3; letter-spacing: -0.01em; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 72px; }
.card { background: #0A0A0A; border: 1px solid var(--amber-line); padding: 28px 26px 30px; transition: border-color .15s; }
.card:hover { border-color: var(--amber); }
.card .icon { display: block; margin-bottom: 22px; }
.card h3 { margin: 0 0 12px; color: var(--ivory); font: 700 15px/1.2 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }

/* slim contact line */
.contact { padding: 44px 0; border-bottom: 1px solid var(--amber); }
.contact-row { display: grid; grid-template-columns: 220px auto 1fr; gap: 48px; align-items: baseline; }
.mail { color: var(--ivory); text-decoration: none; font: 500 20px/1.3 var(--mono); border-bottom: 1px solid rgba(255, 158, 27, 0.55); justify-self: start; }
.mail:hover, .mail:focus-visible { color: var(--amber); outline: none; }
.notes { justify-self: end; display: grid; gap: 6px; }
.note { margin: 0; justify-self: end; text-align: right; color: var(--muted); font: 12px/1.6 var(--mono); }

/* footer */
.foot { padding: 32px 0 44px; font-size: 12.5px; line-height: 1.7; }
.foot-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; }
.legal { margin: 0; max-width: 720px; color: var(--muted); }
.copy { margin: 0; white-space: nowrap; color: var(--muted); font: 12px/1.7 var(--mono); letter-spacing: 0.08em; }

@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; }
  .statement-grid, .contact-row { grid-template-columns: 1fr; gap: 20px; }
  .notes { justify-self: start; }
  .note { justify-self: start; text-align: left; }
}
@media (max-width: 760px) {
  :root { --nav-h: 72px; }
  body { font-size: 15px; background-size: 40px 40px; }
  .wrap { padding: 0 20px; }
  .status { font-size: 9.5px; letter-spacing: 0.1em; }
  .hide-sm { display: none; }
  .brand { gap: 10px; }
  .brand-globe { width: 32px; height: 32px; }
  .brand-name { font-size: 17px; }
  .brand-sub { font-size: 8.5px; margin-top: 5px; }
  .portal { padding: 10px 12px; font-size: 10.5px; letter-spacing: 0.12em; }
  .hero { padding: 36px 0 56px; align-items: flex-start; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-mark { order: -1; justify-self: center; width: min(78vw, 320px); }
  .hero-copy .label { margin-bottom: 22px; }
  h1 { font-size: clamp(30px, 8.6vw, 44px); line-height: 1.08; }
  h1 .line { white-space: nowrap; }
  .rule { margin-top: 32px; }
  .statement { padding: 72px 0; }
  .cards { grid-template-columns: 1fr; gap: 14px; margin-top: 44px; }
  .statement-text { font-size: 24px; }
  .contact { padding: 36px 0; }
  .mail { font-size: 16px; }
  .foot-row { flex-direction: column; gap: 14px; }
}

/* light / dark toggle: no JS, a hidden checkbox flips the palette. Light = white with black type (Montserrat). */
.theme-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.top-actions { display: flex; align-items: center; gap: 14px; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--amber); border: 1px solid var(--amber-line); cursor: pointer; transition: border-color .15s; }
.theme-toggle:hover { border-color: var(--amber); }
.theme-input:focus-visible ~ .top .theme-toggle { outline: 1px solid var(--amber); outline-offset: 2px; }
.theme-toggle .i-moon { display: none; }
.card .icon { color: var(--amber); }
:root:has(#theme:checked) {
  --bg: #FFFFFF; --amber: #000000; --amber-line: rgba(0, 0, 0, 0.14); --ivory: #000000; --text: #1A1A1A; --muted: #5A5A5A;
}
:root:has(#theme:checked) body { background-image: none; }
:root:has(#theme:checked) body::after { display: none; }
:root:has(#theme:checked) .theme-toggle .i-sun { display: none; }
:root:has(#theme:checked) .theme-toggle .i-moon { display: inline; }
:root:has(#theme:checked) .status { background: #000; color: #FFF; }
:root:has(#theme:checked) .led { background: #FFF; }
:root:has(#theme:checked) .portal:hover, :root:has(#theme:checked) .portal:focus-visible { color: #FFF; }
:root:has(#theme:checked) ::selection { color: #FFF; }

:root:has(#theme:checked) .card { background: #FFF; }
:root:has(#theme:checked) .card h3, :root:has(#theme:checked) .label { font-family: var(--sans); }
:root:has(#theme:checked) .hero-mark img, :root:has(#theme:checked) .brand-globe { filter: grayscale(1) brightness(0); }
:root:has(#theme:checked) .cursor { display: none; }
:root:has(#theme:checked) .mail { border-bottom-color: rgba(0, 0, 0, 0.5); }
@media (max-width: 760px) { .theme-toggle { width: 34px; height: 34px; } .top-actions { gap: 8px; } }

/* social icons (footer) */
.foot-r { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.social { display: flex; gap: 10px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; color: var(--muted); border: 1px solid var(--amber-line); transition: color .15s, border-color .15s; }
.social a:hover, .social a:focus-visible { color: var(--amber); border-color: var(--amber); outline: none; }
@media (max-width: 760px) { .foot-r { align-items: flex-start; } }

/* Morning Brief opt-in (rendered only when MCA_BRIEF_PUBLIC=on; CSS-only :target modal, no JS) */
.top-actions { gap: 10px; }
.brief-modal { display: none; position: fixed; inset: 0; z-index: 50; align-items: center; justify-content: center; }
.brief-modal:target { display: flex; }
.brief-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.72); }
.brief-box { position: relative; width: min(92vw, 520px); background: var(--bg, #000); border: 1px solid var(--amber); padding: 34px 34px 26px; }
.brief-x { position: absolute; top: 10px; right: 14px; color: inherit; text-decoration: none; font: 400 24px/1 var(--mono); opacity: .7; }
.brief-h { font-size: 32px; line-height: 1.1; margin: 18px 0 12px; font-weight: 300; letter-spacing: -0.02em; }
.brief-p { margin: 0 0 22px; line-height: 1.55; opacity: .85; }
.brief-f { display: flex; gap: 0; }
.brief-f input { flex: 1; min-width: 0; padding: 13px 14px; font: 400 14px/1 var(--mono); background: transparent; color: inherit; border: 1px solid currentColor; border-right: 0; border-radius: 0; }
.brief-f input:focus { outline: none; border-color: var(--amber); }
.brief-f button { padding: 13px 18px; font: 700 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: #000; background: var(--amber); border: 1px solid var(--amber); border-radius: 0; cursor: pointer; }
.brief-n { margin: 14px 0 0; font: 400 11px/1.4 var(--mono); letter-spacing: .06em; opacity: .6; }
.brief-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.brief-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 720px) { .top-actions { gap: 6px; } }
@media (max-width: 420px) { .brand-sub { display: none; } }
:root:has(#theme:checked) .brief-box { background: #FFF; border-color: #000; }

:root:has(#theme:checked) .brief-f button { background: #000; border-color: #000; color: #FFF; }
:root:has(#theme:checked) .brief-f input:focus { border-color: #000; }
:root:has(#theme:checked) .brief-scrim { background: rgba(255,255,255,.75); }

.menu-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.menu-btn { display: none; }
@media (max-width: 479px) {
  .top-row { position: relative; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; min-width: 40px; padding: 0 12px; box-sizing: border-box;
    border: 1px solid var(--amber); color: var(--amber); font: 700 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; z-index: 46; }
  .menu-x { display: none; }
  .top-actions { display: none; }
  .menu-input:checked ~ .top .top-actions { display: flex; position: fixed; inset: 0; z-index: 45; flex-direction: column; align-items: stretch;
    justify-content: center; gap: 16px; padding: 96px 24px 48px; background: var(--bg, #000); }
  .menu-input:checked ~ .top .top-actions > * { width: 100%; height: 48px; box-sizing: border-box; justify-content: center; text-align: center; display: inline-flex; align-items: center; }
  .menu-input:checked ~ .top .menu-btn { position: fixed; top: 46px; right: 16px; }
  .menu-input:checked ~ .top .menu-o { display: none; }
  .menu-input:checked ~ .top .menu-x { display: inline; }
  .menu-input:focus-visible ~ .top .menu-btn { outline: 1px solid var(--amber); outline-offset: 2px; }
}

/* ---------- MCA Levels modal v1.1 final (Kyle 10/13): one 48px bar, 32px grid, Montserrat, centered, blurred backdrop ---------- */
html, body { max-width: 100%; overflow-x: hidden; }
.brief-modal { display: none; position: fixed; inset: 0; z-index: 50; align-items: center; justify-content: center; padding: 16px; }
.brief-modal:target, .brief-modal.open { display: flex; }
.brief-scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg, #000) 94%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.brief-box { position: relative; box-sizing: border-box; width: min(100%, 560px); padding: 32px; margin: 0;
  background: var(--bg, #000); color: var(--ivory); border: 1px solid var(--amber); }
.brief-modal:target .brief-box, .brief-modal.open .brief-box { animation: brief-in 320ms cubic-bezier(.2,0,0,1) both; }
@keyframes brief-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .brief-modal:target .brief-box, .brief-modal.open .brief-box { animation: none; } }
.brief-x { position: absolute; top: 0; right: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  color: inherit; text-decoration: none; font: 400 22px/1 var(--mono); opacity: .7; }
.brief-x:hover, .brief-x:focus-visible { opacity: 1; color: var(--amber); outline: none; }
.brief-box > .label { margin: 0; }
.brief-h { font-family: var(--sans); font-weight: 300; font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; margin: 16px 0 12px; color: var(--ivory); }
.brief-p { margin: 0 0 24px; line-height: 1.55; opacity: .85; }
.brief-f { display: flex; flex-wrap: wrap; margin: 0; }
.brief-f input { flex: 1 1 0; min-width: 0; height: 48px; box-sizing: border-box; margin: 0; padding: 0 16px; border-radius: 0;
  font: 400 14px/1 var(--mono); color: inherit; background: transparent; border: 1px solid var(--amber); border-right: 0; }
.brief-f input::placeholder { color: currentColor; opacity: .45; }
.brief-f input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--amber); }
.brief-f button { flex: none; height: 48px; box-sizing: border-box; margin: 0; padding: 0 20px; border-radius: 0; white-space: nowrap; cursor: pointer;
  font: 700 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--bg, #000); background: var(--amber); border: 1px solid var(--amber); }
.brief-f button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.brief-n { margin: 16px 0 0; padding: 0; font: 400 11px/1.5 var(--mono); letter-spacing: .06em; opacity: .6; }
@media (max-width: 479px) { .brief-h { font-size: 26px; } .brief-f button { padding: 0 14px; letter-spacing: .12em; } }
.js .brief-modal:target:not(.open) { display: none; }
.brief-soon { margin: 0; font: 700 12px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--amber); }
