/* ==========================================================================
   mobyius.css — Mobyi.us Technologies identity
   --------------------------------------------------------------------------
   An institutional, "quiet money" aesthetic on a deep Navy field (a nod to
   the founder's service): white text, restrained gold flourishes, an
   editorial serif (Fraunces) for display gravitas, Inter for body, IBM Plex
   Mono for the data vernacular. Measured, precise, expensive.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --ink:        #071428;   /* page field — deep Navy */
  --ink-2:      #0A1A33;   /* raised sections */
  --panel:      #0E2140;   /* cards / panels */
  --panel-2:    #122A4E;   /* hover / inset */
  --line:       #1B3457;   /* hairlines */
  --line-2:     #2A4A78;   /* stronger hairlines */
  --text:       #FFFFFF;   /* primary text — white */
  --muted:      #A8BCD8;   /* secondary text — pale navy-blue */
  --faint:      #6E85AB;   /* tertiary text */
  --gold:       #C9A44C;   /* signature gold flourish */
  --gold-soft:  #E0C57E;   /* gold on hover */
  --green:      #4FB477;   /* positive tape */
  --red:        #D06666;   /* negative tape */

  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;

  --maxw: 1180px;
  --shadow: 0 24px 60px -24px rgba(0,0,0,0.7);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  letter-spacing: 0.01em;
}

.site-root { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1 0 auto; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

a { color: inherit; }

/* --------------------------------------------------------------------------
   Ticker banner — a thin, live-feeling market strip above the nav
   -------------------------------------------------------------------------- */
.ticker-bar {
  background: #040E20;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}
.ticker-track {
  display: inline-block;
  padding: 7px 0;
  animation: ticker 42s linear infinite;
}
.ticker-bar:hover .ticker-track { animation-play-state: paused; }
.tick { color: var(--muted); margin: 0 22px; }
.tick .sym { color: var(--text); font-weight: 500; }
.tick .up { color: var(--green); }
.tick .down { color: var(--red); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Site nav / banner
   -------------------------------------------------------------------------- */
.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
  background: rgba(7,20,40,0.82);
  backdrop-filter: blur(12px) saturate(140%);
}
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 10px; }
.brand-mark {
  font-family: var(--serif); font-weight: 600; color: var(--text);
  font-size: 22px; letter-spacing: 0.01em;
}
.brand-mark .dot { color: var(--gold); }
.brand-sub {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.34em;
  color: var(--gold); text-transform: uppercase; padding-bottom: 2px;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: var(--muted); text-decoration: none;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 16px; border-radius: 6px;
  transition: color .18s ease, background .18s ease;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.nav-cta {
  margin-left: 10px; color: var(--ink) !important; background: var(--gold);
  font-weight: 600;
}
.nav-cta:hover { background: var(--gold-soft); color: var(--ink) !important; }

/* mobile toggle (progressive; nav wraps gracefully without JS) */
@media (max-width: 820px) {
  .site-nav { flex-wrap: wrap; gap: 12px; padding: 16px 20px; }
  .nav-links { flex-wrap: wrap; gap: 2px; width: 100%; }
  .nav-link { padding: 7px 10px; font-size: 11.5px; }
}

/* --------------------------------------------------------------------------
   Shared section furniture
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.28em;
  color: var(--gold); text-transform: uppercase; margin: 0 0 18px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--gold); opacity: 0.7;
}

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--ink-2); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); }

.section-heading {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15;
  margin: 0 0 16px; letter-spacing: -0.01em;
}
.section-intro {
  color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 620px;
  margin: 0 0 48px;
}

/* --------------------------------------------------------------------------
   Landing hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: 120px 0 100px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1200px 520px at 78% -8%, rgba(201,164,76,0.15), transparent 60%),
    radial-gradient(900px 500px at 8% 108%, rgba(90,140,210,0.10), transparent 60%);
}
.hero::after {
  /* faint chart-grid texture */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(1100px 600px at 70% 0%, black, transparent 72%);
          mask-image: radial-gradient(1100px 600px at 70% 0%, black, transparent 72%);
}
.hero-inner { position: relative; z-index: 1; max-width: 860px; }
.hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 6.2vw, 76px); line-height: 1.03;
  letter-spacing: -0.02em; margin: 0 0 26px;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-lede {
  color: var(--muted); font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.65; max-width: 640px; margin: 0 0 40px; font-weight: 300;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none;
  padding: 15px 26px; border-radius: 7px; border: 1px solid transparent;
  transition: transform .16s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-soft); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Credibility / metrics band
   -------------------------------------------------------------------------- */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.metric {
  padding: 40px 28px; border-left: 1px solid var(--line);
}
.metric:first-child { border-left: none; }
.metric-value {
  font-family: var(--serif); font-weight: 500; font-size: 40px;
  line-height: 1; letter-spacing: -0.01em; margin: 0 0 10px;
}
.metric-value .u { color: var(--gold); }
.metric-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}
@media (max-width: 820px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(3) { border-left: none; }
}

/* --------------------------------------------------------------------------
   Approach / capabilities (three pillars)
   -------------------------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 34px 30px;
  transition: border-color .2s ease, transform .2s ease;
}
.pillar:hover { border-color: var(--line-2); transform: translateY(-3px); }
.pillar-num {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em;
  color: var(--gold); margin-bottom: 20px;
}
.pillar h3 {
  font-family: var(--serif); font-weight: 500; font-size: 23px;
  margin: 0 0 12px;
}
.pillar p { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Study cards
   -------------------------------------------------------------------------- */
.study-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.study-card-link { text-decoration: none; }
.study-card {
  position: relative; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 28px; height: 100%;
  display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.study-card::before {
  content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 2px;
  background: var(--gold); border-radius: 2px; opacity: 0;
  transition: opacity .2s ease;
}
.study-card:hover {
  border-color: var(--line-2); transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.study-card:hover::before { opacity: 1; }
.card-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.card-title {
  font-family: var(--serif); font-weight: 500; color: var(--text);
  font-size: 23px; line-height: 1.2; margin: 0 0 12px;
}
.card-summary { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0 0 22px; flex: 1; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.card-date { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.card-cta { font-family: var(--mono); font-size: 12px; color: var(--gold);
  letter-spacing: 0.08em; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(800px 400px at 50% -40%, rgba(201,164,76,0.18), transparent 65%),
    var(--ink-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 92px 0; text-align: center;
}
.cta-band h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 4vw, 44px); line-height: 1.12; margin: 0 auto 18px;
  max-width: 720px; letter-spacing: -0.01em;
}
.cta-band p { color: var(--muted); font-size: 18px; max-width: 560px;
  margin: 0 auto 34px; line-height: 1.6; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Generic page header (studies index, market analysis, contact)
   -------------------------------------------------------------------------- */
.page-head { padding: 84px 0 56px; border-bottom: 1px solid var(--line);
  background: radial-gradient(900px 400px at 20% -20%, rgba(201,164,76,0.09), transparent 60%); }
.page-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 5vw, 56px); line-height: 1.06;
  letter-spacing: -0.02em; margin: 0 0 20px;
}
.page-lede { color: var(--muted); font-size: 18px; line-height: 1.65; max-width: 640px; margin: 0; font-weight: 300; }

/* --------------------------------------------------------------------------
   Market analysis page
   -------------------------------------------------------------------------- */
.ma-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .ma-grid { grid-template-columns: 1fr; } }
.ma-panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 30px;
}
.ma-panel h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 0 0 16px; }
.ma-panel p { color: var(--muted); font-size: 15px; line-height: 1.7; }

.stat-rows { display: flex; flex-direction: column; gap: 2px; }
.stat-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 0; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 13.5px;
}
.stat-row:last-child { border-bottom: none; }
.stat-row .k { color: var(--muted); letter-spacing: 0.04em; }
.stat-row .v { color: var(--text); font-weight: 500; }
.stat-row .v.up { color: var(--green); }
.stat-row .v.down { color: var(--red); }

.note-list { list-style: none; padding: 0; margin: 0; }
.note-list li {
  position: relative; padding: 14px 0 14px 22px; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 15px; line-height: 1.6;
}
.note-list li:last-child { border-bottom: none; }
.note-list li::before {
  content: ""; position: absolute; left: 0; top: 21px; width: 7px; height: 7px;
  background: var(--gold); border-radius: 50%;
}
.note-list li b { color: var(--text); font-weight: 500; }

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-detail { margin-bottom: 30px; }
.contact-detail .label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.contact-detail .value { font-size: 17px; color: var(--text); }
.contact-detail a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.contact-detail a:hover { color: var(--gold-soft); border-color: var(--gold); }

.contact-form { background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 34px; }
.field { margin-bottom: 20px; }
.field label {
  display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%; background: var(--ink); border: 1px solid var(--line-2);
  border-radius: 7px; padding: 13px 14px; color: var(--text);
  font-family: var(--sans); font-size: 15px; transition: border-color .18s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { color: var(--faint); font-size: 12.5px; margin: 16px 0 0; }

/* --------------------------------------------------------------------------
   Study page (individual study)
   -------------------------------------------------------------------------- */
.study-page { padding: 72px 0 40px; }
.study-header { padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.study-title { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 14px; }
.study-summary { color: var(--muted); font-size: 18px; max-width: 660px; line-height: 1.65; }
.study-meta { display: flex; gap: 10px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.study-date { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.study-tag {
  font-family: var(--mono); font-size: 11px; color: var(--gold-soft);
  border: 1px solid var(--line-2); border-radius: 100px; padding: 3px 12px;
  letter-spacing: 0.04em;
}

/* ---- event key (numbered legend under a study chart) ---- */
.event-key {
  display: flex; flex-wrap: wrap; gap: 12px 32px;
  margin-top: 8px; padding: 20px 26px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
}
.event-key-item {
  display: flex; gap: 10px; align-items: baseline;
  font-size: 13.5px; color: var(--muted);
}
.event-num {
  font-family: var(--mono); font-weight: 600; font-size: 12px;
  color: var(--gold); border: 1px solid var(--line-2); border-radius: 100px;
  width: 20px; height: 20px; display: inline-flex;
  align-items: center; justify-content: center; align-self: center;
}
.event-date { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }

/* ---- controls ---- */
.controls-row { display: flex; gap: 32px; flex-wrap: wrap; margin-bottom: 24px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px 26px; }
.control { min-width: 240px; }
.control-label { display: block; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  flex-shrink: 0; border-top: 1px solid var(--line);
  background: #040E20; padding: 56px 0 40px; margin-top: 0;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 40px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid var(--line);
}
.footer-brand .brand-mark { font-family: var(--serif); font-size: 22px; }
.footer-brand p { color: var(--muted); font-size: 14px; line-height: 1.6;
  max-width: 320px; margin: 14px 0 0; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--faint); margin: 0 0 16px;
}
.footer-col a {
  display: block; color: var(--muted); text-decoration: none;
  font-size: 14px; margin-bottom: 12px; transition: color .16s ease;
}
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; padding-top: 28px;
}
.footer-note { font-family: var(--mono); font-size: 11.5px; color: var(--faint);
  margin: 0; line-height: 1.6; max-width: 620px; }
.footer-legal { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
