@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400;1,600&family=IBM+Plex+Sans:wght@300;400;500&family=IBM+Plex+Mono:wght@300;400&display=swap');

:root {
  --navy: #0C1B33; --navy-mid: #162947;
  --gold: #B8860B; --gold-light: #D4A017; --gold-pale: #F5EDD3;
  --white: #FFFFFF; --off: #F8F6F1; --border: #E2DDD4;
  --text: #1A1A1A; --muted: #6B6560; --dim: #9A948E;
  --green: #1A6B3A; --red: #C0392B; --crisis: #7A1212;
}
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { background:var(--white); color:var(--text); font-family:'IBM Plex Sans',sans-serif; font-size:15px; line-height:1.7; overflow-x:hidden; animation:pageIn 0.6s cubic-bezier(0.16,1,0.3,1) both; }
@keyframes pageIn { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }

/* CURSOR GLOW */
.cursor-glow { width:350px;height:350px;background:radial-gradient(circle,rgba(212,160,23,0.07) 0%,transparent 70%);position:fixed;pointer-events:none;z-index:0;border-radius:50%;transform:translate(-50%,-50%);transition:left 0.05s,top 0.05s;mix-blend-mode:multiply; }

/* NAV */
nav { position:fixed;top:0;left:0;right:0;z-index:200;display:flex;align-items:center;justify-content:space-between;padding:0 5rem;height:68px;background:rgba(255,255,255,0.95);border-bottom:1px solid transparent;backdrop-filter:blur(16px);transition:border-color 0.4s,box-shadow 0.4s; }
nav.scrolled { border-bottom-color:var(--border);box-shadow:0 4px 40px rgba(0,0,0,0.06); }
.nav-logo { font-family:'Playfair Display',serif;font-size:1.45rem;letter-spacing:0.06em;color:var(--navy);text-decoration:none;font-weight:600;position:relative; }
.nav-logo span { color:var(--gold); }
.nav-logo::after { content:'';position:absolute;bottom:-2px;left:0;right:0;height:1px;background:var(--gold-light);transform:scaleX(0);transform-origin:left;transition:transform 0.3s ease; }
.nav-logo:hover::after { transform:scaleX(1); }
.nav-links { display:flex;gap:2.5rem;list-style:none;align-items:center; }
.nav-links a { font-family:'IBM Plex Mono',monospace;font-size:0.65rem;letter-spacing:0.15em;text-transform:uppercase;color:var(--muted);text-decoration:none;position:relative;padding-bottom:4px;transition:color 0.25s; }
.nav-links a::after { content:'';position:absolute;bottom:0;left:0;right:0;height:1.5px;background:var(--gold-light);transform:scaleX(0);transform-origin:left;transition:transform 0.3s cubic-bezier(0.4,0,0.2,1); }
.nav-links a:hover, .nav-links a.active { color:var(--navy); }
.nav-links a:hover::after, .nav-links a.active::after { transform:scaleX(1); }
.nav-cta { background:var(--gold-light)!important;color:var(--navy)!important;padding:0.55rem 1.3rem!important;transition:background 0.25s,transform 0.2s!important; }
.nav-cta::after { display:none!important; }
.nav-cta:hover { background:#C8940F!important;transform:translateY(-1px); }

/* SCROLL REVEAL */
.reveal { opacity:0;transform:translateY(32px);will-change:transform,opacity;transition:opacity 0.75s cubic-bezier(0.16,1,0.3,1),transform 0.75s cubic-bezier(0.16,1,0.3,1); }
.reveal-left { opacity:0;transform:translateX(-40px);transition:opacity 0.75s cubic-bezier(0.16,1,0.3,1),transform 0.75s cubic-bezier(0.16,1,0.3,1); }
.reveal-right { opacity:0;transform:translateX(40px);transition:opacity 0.75s cubic-bezier(0.16,1,0.3,1),transform 0.75s cubic-bezier(0.16,1,0.3,1); }
.reveal-scale { opacity:0;transform:scale(0.93);transition:opacity 0.65s cubic-bezier(0.16,1,0.3,1),transform 0.65s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible,.reveal-left.visible,.reveal-right.visible,.reveal-scale.visible { opacity:1;transform:translate(0) scale(1); }
.delay-1{transition-delay:0.1s!important} .delay-2{transition-delay:0.22s!important} .delay-3{transition-delay:0.34s!important} .delay-4{transition-delay:0.46s!important} .delay-5{transition-delay:0.58s!important}

/* PAGE HERO */
.page-hero { padding:140px 5rem 90px;background:var(--navy);position:relative;overflow:hidden; }
.page-hero::before { content:'';position:absolute;top:-200px;right:-200px;width:700px;height:700px;background:radial-gradient(circle,rgba(212,160,23,0.13) 0%,transparent 65%);animation:orbFloat 12s ease-in-out infinite alternate;pointer-events:none; }
.page-hero::after { content:'';position:absolute;bottom:-150px;left:-100px;width:500px;height:500px;background:radial-gradient(circle,rgba(212,160,23,0.06) 0%,transparent 65%);animation:orbFloat 18s ease-in-out infinite alternate-reverse;pointer-events:none; }
@keyframes orbFloat { from{transform:translate(0,0) scale(1)} to{transform:translate(30px,-30px) scale(1.1)} }
.page-hero-label { font-family:'IBM Plex Mono',monospace;font-size:0.6rem;letter-spacing:0.35em;text-transform:uppercase;color:var(--gold-light);margin-bottom:1.75rem;display:flex;align-items:center;gap:1rem;position:relative;z-index:1;opacity:0;animation:fadeSlide 0.7s 0.15s cubic-bezier(0.16,1,0.3,1) both; }
.page-hero-label::before { content:'';display:block;width:30px;height:1px;background:var(--gold-light); }
.page-hero h1 { font-family:'Playfair Display',serif;font-size:clamp(3rem,5.5vw,5.5rem);font-weight:400;line-height:1.06;color:#FFF;max-width:18ch;position:relative;z-index:1;opacity:0;animation:fadeSlide 0.8s 0.3s cubic-bezier(0.16,1,0.3,1) both; }
.page-hero h1 em { font-style:italic;color:var(--gold-light); }
.page-hero-sub { font-size:0.97rem;color:rgba(255,255,255,0.42);margin-top:1.75rem;max-width:52ch;font-weight:300;line-height:1.85;position:relative;z-index:1;opacity:0;animation:fadeSlide 0.8s 0.5s cubic-bezier(0.16,1,0.3,1) both; }
@keyframes fadeSlide { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

/* SECTIONS */
.section { padding:7rem 5rem; }
.section-off { background:var(--off);border-top:1px solid var(--border);border-bottom:1px solid var(--border); }
.section-label { font-family:'IBM Plex Mono',monospace;font-size:0.6rem;letter-spacing:0.32em;text-transform:uppercase;color:var(--gold);margin-bottom:1rem;display:flex;align-items:center;gap:1rem; }
.section-label::before { content:'';display:block;width:24px;height:1px;background:var(--gold); }
.section-title { font-family:'Playfair Display',serif;font-size:clamp(2.2rem,3.8vw,3.2rem);font-weight:400;line-height:1.12;color:var(--navy); }
.section-title em { font-style:italic;color:var(--gold); }
.section-lead { color:var(--muted);font-size:0.97rem;max-width:58ch;line-height:1.9;margin-top:0.85rem; }

/* CARDS */
.card { border:1px solid var(--border);padding:2.5rem 2rem;background:var(--white);position:relative;overflow:hidden;transition:box-shadow 0.35s cubic-bezier(0.4,0,0.2,1),transform 0.35s cubic-bezier(0.4,0,0.2,1),border-color 0.35s; }
.card::after { content:'';position:absolute;bottom:0;left:0;right:0;height:2px;background:linear-gradient(90deg,var(--gold),var(--gold-light));transform:scaleX(0);transform-origin:left;transition:transform 0.4s cubic-bezier(0.4,0,0.2,1); }
.card:hover { box-shadow:0 14px 55px rgba(0,0,0,0.09);transform:translateY(-5px);border-color:rgba(212,160,23,0.28); }
.card:hover::after { transform:scaleX(1); }

/* KPI */
.kpi-box { background:var(--white);padding:1.8rem 1.5rem; }
.kpi-num { font-family:'Playfair Display',serif;font-size:2.6rem;font-weight:400;color:var(--navy);line-height:1;margin-bottom:0.4rem; }
.kpi-num.pos { color:var(--green); } .kpi-num.gld { color:var(--gold); }
.kpi-label { font-family:'IBM Plex Mono',monospace;font-size:0.57rem;letter-spacing:0.12em;text-transform:uppercase;color:var(--dim); }

/* STAT STRIP */
.stat-strip { display:grid;grid-template-columns:repeat(5,1fr);gap:1px;background:var(--border);border:1px solid var(--border); }
.stat-cell { background:var(--white);padding:1.75rem 1rem;text-align:center;position:relative;overflow:hidden;transition:background 0.25s; }
.stat-cell::before { content:'';position:absolute;inset:0;background:rgba(212,160,23,0.05);transform:translateY(100%);transition:transform 0.35s cubic-bezier(0.4,0,0.2,1); }
.stat-cell:hover::before { transform:translateY(0); }
.stat-big { font-family:'Playfair Display',serif;font-size:2.1rem;color:var(--navy);line-height:1;margin-bottom:0.4rem;position:relative; }
.stat-big.pos { color:var(--green); } .stat-big.gld { color:var(--gold); }
.stat-small { font-family:'IBM Plex Mono',monospace;font-size:0.56rem;letter-spacing:0.1em;text-transform:uppercase;color:var(--dim);position:relative; }

/* CHART CARD */
.chart-card { border:1px solid var(--border);padding:2rem;background:var(--white);transition:box-shadow 0.3s; }
.chart-card:hover { box-shadow:0 8px 40px rgba(0,0,0,0.07); }
.chart-title { font-family:'IBM Plex Mono',monospace;font-size:0.57rem;letter-spacing:0.18em;text-transform:uppercase;color:var(--dim);margin-bottom:1.5rem; }

/* PILL */
.pill { display:inline-block;font-family:'IBM Plex Mono',monospace;font-size:0.59rem;letter-spacing:0.12em;text-transform:uppercase;background:var(--gold-pale);color:var(--gold);border:1px solid #DDD0A0;padding:0.3rem 0.85rem;transition:background 0.2s,transform 0.2s; }
.pill:hover { background:#EDE0B8;transform:translateY(-1px); }
.pill-row { display:flex;flex-wrap:wrap;gap:0.5rem; }

/* QUOTE BLOCK */
.quote-block { background:var(--navy);padding:2.5rem;color:rgba(255,255,255,0.78);font-family:'Playfair Display',serif;font-size:1.1rem;font-style:italic;line-height:1.65;border-left:3px solid var(--gold-light);position:relative;overflow:hidden; }
.quote-block::before { content:'"';position:absolute;top:-0.5rem;left:1.5rem;font-size:8rem;color:rgba(212,160,23,0.08);font-family:'Playfair Display',serif;line-height:1;pointer-events:none; }

/* PAPER ITEM */
.paper-item { display:grid;grid-template-columns:80px 1fr 28px;gap:1.5rem;align-items:start;padding:2rem 0.5rem;border-bottom:1px solid var(--border);text-decoration:none;color:inherit;cursor:pointer;position:relative;transition:padding-left 0.3s cubic-bezier(0.4,0,0.2,1),background 0.2s; }
.paper-item:first-child { border-top:1px solid var(--border); }
.paper-item::before { content:'';position:absolute;left:0;top:0;bottom:0;width:2px;background:var(--gold-light);transform:scaleY(0);transform-origin:top;transition:transform 0.4s cubic-bezier(0.4,0,0.2,1); }
.paper-item:hover { padding-left:1.5rem;background:rgba(184,134,11,0.035); }
.paper-item:hover::before { transform:scaleY(1); }
.paper-yr { font-family:'IBM Plex Mono',monospace;font-size:0.72rem;color:var(--gold);padding-top:0.2rem; }
.paper-tag { display:inline-block;font-family:'IBM Plex Mono',monospace;font-size:0.52rem;letter-spacing:0.15em;text-transform:uppercase;background:var(--gold-pale);color:var(--gold);border:1px solid #DDD0A0;padding:0.18rem 0.55rem;margin-bottom:0.65rem; }
.paper-title { font-family:'Playfair Display',serif;font-size:1.05rem;color:var(--navy);line-height:1.4;margin-bottom:0.45rem;transition:color 0.25s; }
.paper-item:hover .paper-title { color:var(--gold); }
.paper-desc { font-size:0.84rem;color:var(--muted);line-height:1.75; }
.paper-arrow { color:var(--gold);font-size:1rem;padding-top:0.2rem;transition:transform 0.3s cubic-bezier(0.4,0,0.2,1); }
.paper-item:hover .paper-arrow { transform:translate(3px,-3px); }

/* BUTTONS */
.btn { display:inline-flex;align-items:center;gap:0.6rem;font-family:'IBM Plex Mono',monospace;font-size:0.65rem;letter-spacing:0.18em;text-transform:uppercase;text-decoration:none;padding:0.95rem 2.2rem;transition:all 0.25s cubic-bezier(0.4,0,0.2,1);cursor:pointer;border:none;position:relative;overflow:hidden; }
.btn-arrow::after { content:'→';transition:transform 0.25s; }
.btn-arrow:hover::after { transform:translateX(5px); }
.btn-gold { background:var(--gold-light);color:var(--navy); }
.btn-gold:hover { background:#C8940F; }
.btn-outline { background:transparent;color:var(--navy);border:1px solid var(--border); }
.btn-outline:hover { border-color:var(--navy);background:var(--off); }
.btn-outline-w { background:transparent;color:#FFF;border:1px solid rgba(255,255,255,0.2); }
.btn-outline-w:hover { border-color:var(--gold-light);color:var(--gold-light); }

/* FORM */
.form-group { display:flex;flex-direction:column;gap:0.4rem; }
.form-label { font-family:'IBM Plex Mono',monospace;font-size:0.56rem;letter-spacing:0.18em;text-transform:uppercase;color:rgba(255,255,255,0.3); }
.form-input,.form-textarea,.form-select { background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.1);padding:0.9rem 1rem;color:#FFF;font-family:'IBM Plex Sans',sans-serif;font-size:0.9rem;outline:none;width:100%;transition:border-color 0.3s,background 0.3s,box-shadow 0.3s; }
.form-input::placeholder,.form-textarea::placeholder { color:rgba(255,255,255,0.18); }
.form-input:focus,.form-textarea:focus,.form-select:focus { border-color:rgba(212,160,23,0.6);background:rgba(255,255,255,0.08);box-shadow:0 0 0 3px rgba(212,160,23,0.08); }
.form-textarea { min-height:120px;resize:none; }
.form-select { -webkit-appearance:none;appearance:none;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%23D4A017' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 1rem center;background-size:8px; }
.form-select option { background:#0C1B33;color:#FFF; }

/* TICKER */
.ticker-wrap { overflow:hidden;padding:0.8rem 0;background:rgba(0,0,0,0.18); }
.ticker-inner { display:flex;width:max-content;animation:ticker 35s linear infinite; }
.ticker-inner:hover { animation-play-state:paused; }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.ticker-item { font-family:'IBM Plex Mono',monospace;font-size:0.63rem;letter-spacing:0.12em;text-transform:uppercase;color:rgba(255,255,255,0.35);padding:0 2.5rem;white-space:nowrap; }
.ticker-item b { color:var(--gold-light);font-weight:400; }

/* PROGRESS BAR */
.progress-bar { height:4px;background:var(--border);position:relative;overflow:hidden; }
.progress-fill { position:absolute;left:0;top:0;bottom:0;background:linear-gradient(90deg,var(--gold),var(--gold-light));width:0;transition:width 1.4s cubic-bezier(0.4,0,0.2,1); }

/* COUNTER */
.counter { display:inline-block; }

/* FOOTER */
.site-footer { background:var(--navy);padding:5rem 5rem 2.5rem; }
.footer-grid { display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:3rem;padding-bottom:3.5rem;border-bottom:1px solid rgba(255,255,255,0.07);margin-bottom:2rem; }
.footer-logo { font-family:'Playfair Display',serif;font-size:1.45rem;color:#FFF;text-decoration:none;margin-bottom:1.25rem;display:block;transition:opacity 0.25s; }
.footer-logo:hover { opacity:0.75; }
.footer-logo span { color:var(--gold-light); }
.footer-desc { font-size:0.85rem;color:rgba(255,255,255,0.3);line-height:1.85;font-weight:300; }
.footer-col-title { font-family:'IBM Plex Mono',monospace;font-size:0.57rem;letter-spacing:0.22em;text-transform:uppercase;color:rgba(255,255,255,0.25);margin-bottom:1.25rem; }
.footer-links { list-style:none;display:flex;flex-direction:column;gap:0.7rem; }
.footer-links a { font-size:0.88rem;color:rgba(255,255,255,0.45);text-decoration:none;transition:color 0.25s,padding-left 0.25s; }
.footer-links a:hover { color:var(--gold-light);padding-left:6px; }
.footer-bottom { display:flex;justify-content:space-between;align-items:center;font-size:0.7rem;color:rgba(255,255,255,0.16); }
.disclaimer { background:#06101F;padding:1.75rem 5rem;border-top:1px solid rgba(255,255,255,0.04); }
.disclaimer p { font-size:0.7rem;color:rgba(255,255,255,0.16);line-height:1.7; }

@media(max-width:960px) {
  nav{padding:0 1.5rem;} .nav-links{display:none;}
  .section{padding:4.5rem 1.5rem;} .page-hero{padding:120px 1.5rem 60px;}
  .footer-grid{grid-template-columns:1fr;gap:2rem;}
  .footer-bottom{flex-direction:column;gap:0.5rem;text-align:center;}
  .site-footer,.disclaimer{padding-left:1.5rem;padding-right:1.5rem;}
  .stat-strip{grid-template-columns:1fr 1fr;}
}

/* ─── LOGO IMAGE ─── */
.nav-logo { padding: 0 !important; border: none !important; }
.nav-logo::after { display: none !important; }
.nav-logo-img {
  height: 40px;
  width: 40px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
  box-shadow: 0 2px 12px rgba(12,27,51,0.15);
}
.nav-logo-img:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 20px rgba(12,27,51,0.25);
}

/* Footer logo */
.footer-logo { padding: 0 !important; }
.footer-logo-img {
  height: 48px;
  width: 48px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin-bottom: 1.25rem;
  opacity: 0.9;
  transition: opacity 0.25s;
}
.footer-logo-img:hover { opacity: 1; }

/* ─── GLOBAL LINK FIX — remove all browser blue ─── */
a { color: inherit; text-decoration: none; }
a:visited { color: inherit; }

/* Fix any remaining blue btn-outline links */
.btn-outline-w, .btn-outline-w:visited { color: #FFF !important; }
.btn-gold, .btn-gold:visited { color: var(--navy) !important; }
.btn-outline, .btn-outline:visited { color: var(--navy) !important; }

/* Nav active/hover never blue */
.nav-links a, .nav-links a:visited { color: var(--muted); }
.nav-links a:hover, .nav-links a.active { color: var(--navy); }

/* Footer links never blue */
.footer-links a, .footer-links a:visited { color: rgba(255,255,255,0.45); }
.footer-links a:hover { color: var(--gold-light); }

/* ─── METRICS STRIP (replaces ticker) ─── */
.metrics-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 5rem;
  gap: 0;
}
.ms-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 3rem;
  flex: 1;
}
.ms-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--navy);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.ms-num sup { font-size: 0.9rem; vertical-align: super; }
.ms-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.ms-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}
@media(max-width:960px){
  .metrics-strip { flex-wrap:wrap; padding:2rem 1.5rem; gap:1.5rem; }
  .ms-divider { display:none; }
}

/* ─── FORMULA CARDS ─── */
.formula-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.formula-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.formula-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
}
.formula-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(212,160,23,0.25); transform: translateY(-3px); }
.formula-card:hover::before { transform: scaleX(1); }

.formula-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(212,160,23,0.55);
  margin-bottom: 2rem;
}
.formula-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.6;
  padding: 1.5rem;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 1.75rem;
  letter-spacing: 0.02em;
  text-align: center;
}
.formula-main sub { font-size: 0.7em; vertical-align: sub; }
.formula-main sup { font-size: 0.7em; vertical-align: super; }

/* Fraction */
.frac {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: middle;
  margin: 0 0.3rem;
  gap: 2px;
}
.frac-num {
  border-bottom: 1px solid rgba(255,255,255,0.6);
  padding-bottom: 3px;
  font-size: 0.9em;
}
.frac-den { font-size: 0.9em; padding-top: 1px; }

/* Square root */
.sqrt-wrap {
  display: inline-flex;
  align-items: center;
  font-size: 1.4em;
  color: rgba(255,255,255,0.7);
  margin-right: 2px;
}
.sqrt-inner {
  font-size: 0.72em;
  border-top: 1.5px solid rgba(255,255,255,0.7);
  padding: 2px 6px 0;
  margin-left: 2px;
}

.formula-vars {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
.fv-row {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.84rem;
}
.fv-sym {
  font-family: 'Playfair Display', serif;
  color: var(--gold-light);
  min-width: 44px;
  font-size: 0.9rem;
}
.fv-sym sub { font-size: 0.65em; }
.fv-def { color: rgba(255,255,255,0.38); line-height: 1.5; font-size: 0.82rem; }

.formula-insight {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.75;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1.25rem;
  font-style: italic;
}

/* ─── THEOREM BOX ─── */
.theorem-box {
  background: rgba(212,160,23,0.07);
  border: 1px solid rgba(212,160,23,0.2);
  padding: 2.5rem 3rem;
  margin-top: 2rem;
}
.theorem-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.theorem-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--gold-light);
  color: var(--navy);
  padding: 0.2rem 0.7rem;
}
.theorem-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  font-style: italic;
}
.theorem-body {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.85;
  margin-bottom: 1rem;
}
.theorem-body strong { color: rgba(255,255,255,0.8); }
.theorem-body sub { font-size: 0.75em; }
.theorem-corollary {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.75;
  padding-top: 1rem;
  border-top: 1px solid rgba(212,160,23,0.15);
}
.theorem-corollary strong { color: var(--gold-light); }

@media(max-width:960px){
  .formula-grid { grid-template-columns:1fr; }
  .theorem-box { padding:2rem 1.5rem; }
}

/* ─── FORCE ALL BUTTONS VISIBLE ─── */
.btn-gold, a.btn-gold, button.btn-gold {
  background: #D4A017 !important;
  color: #0C1B33 !important;
}
.btn-gold:hover { background: #C8940F !important; }
.btn-outline { background: transparent !important; color: var(--navy) !important; border: 1px solid var(--border) !important; }
.btn-outline:hover { background: var(--off) !important; border-color: var(--navy) !important; }
.btn-outline-w { background: transparent !important; color: #FFF !important; border: 1px solid rgba(255,255,255,0.2) !important; }
.btn-outline-w:hover { border-color: var(--gold-light) !important; color: var(--gold-light) !important; }
.hbtn-gold { background: #D4A017 !important; color: #0C1B33 !important; }
.hbtn-ghost { background: transparent !important; color: rgba(255,255,255,0.65) !important; border: 1px solid rgba(255,255,255,0.18) !important; }
.nav-cta { background: #D4A017 !important; color: #0C1B33 !important; }

/* ─── GLOBAL MOBILE FIXES ─── */
@media (max-width: 768px) {
  /* Contact page */
  .contact-layout, .contact-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  .form-row { grid-template-columns: 1fr !important; }
  
  /* About page */
  .about-grid { grid-template-columns: 1fr !important; gap: 3rem !important; }
  .profile-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  
  /* Strategy page */
  .cat-grid, .category-grid { grid-template-columns: 1fr !important; }
  .method-flow { grid-template-columns: 1fr 1fr !important; }
  .comp-table { font-size: .75rem !important; }
  .comp-table th, .comp-table td { padding: .5rem .4rem !important; }
  
  /* Performance page */
  .perf-layout { grid-template-columns: 1fr !important; }
  .perf-layout .perf-wide { grid-column: span 1 !important; }
  .regime-grid { grid-template-columns: 1fr !important; }
  .stat-strip { grid-template-columns: 1fr 1fr !important; }
  
  /* Simulator page */
  .sim-layout { grid-template-columns: 1fr !important; }
  .sim-kpis { grid-template-columns: 1fr 1fr !important; }
  .sim-charts { grid-template-columns: 1fr !important; }
  .sim-chart-card.wide { grid-column: span 1 !important; }
  
  /* Team page */
  .founder-strip { grid-template-columns: 1fr !important; padding: 2rem 1.5rem !important; }
  .inline-stats { grid-template-columns: 1fr 1fr !important; }
  .cta-strip { flex-direction: column !important; padding: 3rem 1.5rem !important; gap: 1.5rem !important; }
  
  /* FAQ */
  .faq-intro-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .still-q { grid-template-columns: 1fr !important; padding: 3rem 1.5rem !important; }
  
  /* Legal */
  .legal-grid { grid-template-columns: 1fr !important; }
  
  /* Research */
  .timeline-nodes { grid-template-columns: 1fr 1fr !important; gap: 2rem !important; }
  .cp-header { grid-template-columns: 50px 1fr 36px !important; gap: .75rem !important; padding: 1.5rem 1.25rem 0 !important; }
  .cp-body-inner { grid-template-columns: 1fr !important; padding: 1.5rem !important; }
  .cp-stats { flex-wrap: wrap !important; padding: 1.25rem !important; }
  .cp-stat { min-width: 45% !important; }
  .corpus-strip { grid-template-columns: 1fr !important; padding: 3rem 1.5rem !important; }
  
  /* Sections */
  .section { padding: 4rem 1.5rem !important; }
  .page-hero { padding: 110px 1.5rem 3rem !important; }
  
  /* Prevent horizontal overflow */
  body { overflow-x: hidden !important; }
  
  /* Nav */
  nav { padding: 0 1.5rem !important; }
}

/* ─── HAMBURGER MENU ─── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  position: fixed;
  top: 68px; left: 0; right: 0; bottom: 0;
  background: rgba(12,27,51,0.99);
  backdrop-filter: blur(16px);
  z-index: 199;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1), transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.mobile-menu.open {
  opacity: 1 !important;
  pointer-events: all !important;
  transform: translateY(0) !important;
}
.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--gold-light); }
.mobile-menu a.nav-cta-mob {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--gold-light);
  color: var(--navy) !important;
  padding: 0.85rem 2.5rem;
  font-size: 0.7rem;
}

@media (max-width: 768px) {
  .nav-links { display: none !important; }
  .hamburger { display: flex !important; }

  /* Fix CTA buttons on mobile - stack vertically */
  .hero-actions {
    flex-direction: column !important;
    gap: 1rem !important;
    align-items: flex-start !important;
  }
  .hbtn {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* Fix all CTA strips buttons */
  div[style*="display:flex"] > a[style*="background:#D4A017"],
  div[style*="display:flex"] > a[style*="background:var(--gold"] {
    width: auto !important;
    flex-shrink: 0 !important;
    align-self: flex-start !important;
  }

  /* Research bottom CTA buttons */
  div[style*="display:flex;gap:1rem"] {
    flex-direction: column !important;
    gap: .75rem !important;
    width: 100% !important;
  }
}

/* ─── CTA BOTTOM STRIP ─── */
.cta-bottom-strip {
  background: var(--navy);
  padding: 4rem 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}
.cta-bottom-btn {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .63rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  text-decoration: none;
  background: #D4A017;
  color: #0C1B33 !important;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background .2s;
}
.cta-bottom-btn:hover { background: #C8940F; }

@media (max-width: 768px) {
  .cta-bottom-strip {
    flex-direction: column !important;
    padding: 3rem 1.5rem !important;
    align-items: flex-start !important;
    gap: 2rem !important;
  }
  .cta-bottom-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}



/* Fix about values grid - 1 column on mobile */
@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr !important;
    background: none !important;
    border: none !important;
    gap: 1rem !important;
  }
  .value-card {
    border: 1px solid var(--border) !important;
  }
  .grid-3 {
    grid-template-columns: 1fr !important;
  }
}

/* ─── MOBILE MENU LINKS - FORCE VISIBLE ─── */
.mobile-menu a,
.mobile-menu a:visited,
.mobile-menu a:hover {
  color: rgba(255,255,255,0.9) !important;
  background: none !important;
  padding: 0 !important;
  font-family: 'Playfair Display', serif !important;
  font-size: 2rem !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  display: block !important;
  width: auto !important;
  text-align: center !important;
  text-decoration: none !important;
}
.mobile-menu a:hover {
  color: #D4A017 !important;
}
.mobile-menu .nav-cta-mob {
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  background: #D4A017 !important;
  color: #0C1B33 !important;
  padding: 0.85rem 2.5rem !important;
  display: inline-block !important;
}

/* ═══ FINAL MOBILE FIXES ═══ */

/* Mobile menu - fully isolated */
#mobileMenu {
  position: fixed !important;
  top: 68px !important;
  left: 0 !important; right: 0 !important; bottom: 0 !important;
  background: #0C1B33 !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2rem !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease !important;
}
#mobileMenu.open {
  opacity: 1 !important;
  pointer-events: all !important;
}
#mobileMenu a {
  all: unset !important;
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 1.8rem !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,0.9) !important;
  cursor: pointer !important;
  text-align: center !important;
  display: block !important;
}
#mobileMenu a:hover { color: #D4A017 !important; }
#mobileMenu .nav-cta-mob {
  all: unset !important;
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  background: #D4A017 !important;
  color: #0C1B33 !important;
  padding: 0.85rem 2.5rem !important;
  cursor: pointer !important;
  display: block !important;
  text-align: center !important;
  margin-top: 1rem !important;
}

/* Footer links - specific selectors only */
.site-footer .footer-links a {
  color: rgba(255,255,255,0.45) !important;
  background: none !important;
  padding: 0 !important;
  font-size: 0.88rem !important;
  font-family: inherit !important;
}
.site-footer .footer-links a:hover { color: #D4A017 !important; }
.site-footer .footer-logo { background: none !important; }
