:root {
  --ink: #07141d;
  --ink-soft: #102836;
  --rain: #3da7c7;
  --rain-light: #9ddbec;
  --gold: #d9a441;
  --paper: #f4f6f5;
  --white: #ffffff;
  --muted: #b6c4cc;
  --line: rgba(157, 219, 236, 0.22);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background:
    linear-gradient(rgba(61, 167, 199, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 167, 199, 0.035) 1px, transparent 1px),
    var(--ink);
  background-size: 42px 42px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a { color: inherit; }
img, video { display: block; max-width: 100%; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 14px; }
.skip-link:focus { left: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 20, 29, 0.91);
  backdrop-filter: blur(15px);
}
.nav-shell { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { text-decoration: none; display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(217,164,65,.6); border-radius: 50%; color: var(--gold); font-size: 20px; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; letter-spacing: .075em; }
.brand-copy small { color: var(--rain-light); margin-top: 6px; font-size: .69rem; letter-spacing: .12em; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--line); color: var(--white); border-radius: 8px; padding: 9px 12px; font: inherit; }
.primary-nav { display: flex; align-items: center; gap: 25px; }
.primary-nav a { color: var(--muted); text-decoration: none; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--white); }
.primary-nav .nav-cta { color: var(--ink); background: var(--gold); padding: 10px 15px; border-radius: 4px; }

.hero { min-height: 640px; display: grid; align-items: center; overflow: hidden; position: relative; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 35%, rgba(61,167,199,.2), transparent 38%), linear-gradient(90deg, var(--ink) 0 48%, rgba(7,20,29,.28)); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr); align-items: center; gap: 60px; padding: 76px 0; }
.eyebrow { color: var(--rain-light); font-size: .78rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.08; margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(3.1rem, 7vw, 6.9rem); font-weight: 500; letter-spacing: -.045em; }
.hero h1 span { color: var(--rain-light); }
.lead { color: #d6e0e4; font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 600px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 33px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--gold); border-radius: 4px; background: var(--gold); color: var(--ink); text-decoration: none; font-weight: 800; }
.button.secondary { background: transparent; color: var(--paper); border-color: var(--line); }
.hero-art { position: relative; min-height: 500px; display: grid; place-items: end center; }
.hero-art::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border: 1px solid rgba(157,219,236,.18); border-radius: 50%; top: 8%; right: 0; box-shadow: 0 0 100px rgba(61,167,199,.13) inset; }
.hero-art img { position: relative; height: 520px; width: auto; object-fit: contain; filter: invert(82%) sepia(18%) saturate(1128%) hue-rotate(154deg) brightness(95%); opacity: .9; }

.section { padding: 90px 0; }
.section.alt { background: rgba(16,40,54,.52); border-block: 1px solid var(--line); }
.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-heading h2 { font-size: clamp(2.2rem, 4.5vw, 4rem); margin-bottom: 14px; font-weight: 500; }
.section-heading p { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { min-height: 270px; padding: 30px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(16,40,54,.9), rgba(7,20,29,.78)); box-shadow: 0 18px 36px rgba(0,0,0,.14); }
.feature-number { color: var(--gold); font-size: .75rem; letter-spacing: .18em; font-weight: 900; }
.feature-card h3 { font-size: 1.65rem; margin: 30px 0 14px; font-weight: 500; }
.feature-card p { color: #c8d4da; margin: 0; }
.media-card { border: 1px solid var(--line); background: #02080c; padding: 12px; box-shadow: var(--shadow); }
.media-card video { width: 100%; aspect-ratio: 16/9; background: #000; }

.page-hero { position: relative; padding: 96px 0 62px; border-bottom: 1px solid var(--line); overflow: hidden; background: linear-gradient(110deg, rgba(16,40,54,.8), rgba(7,20,29,.4)); }
.page-hero::after { content: ""; position: absolute; width: 310px; height: 310px; border: 1px solid rgba(157,219,236,.15); border-radius: 50%; right: 8%; top: -140px; }
.page-hero h1 { font-size: clamp(3rem, 6vw, 5.6rem); margin: 9px 0 0; }
.page-hero-image {
  min-height: 430px;
  display: grid;
  align-items: center;
  background-position: right center;
  background-size: auto 100%;
  background-repeat: no-repeat;
}
.page-hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,20,29,.98) 0%, rgba(7,20,29,.91) 31%, rgba(7,20,29,.36) 60%, rgba(7,20,29,.08) 100%);
}
.page-hero-image::after { display: none; }
.page-hero-image .wrap { position: relative; z-index: 1; }
.expertise-hero { background-image: url("fat-cat-silver-slinky.png"); }
.expertise-hero::before {
  background: linear-gradient(90deg, rgba(7,20,29,.80) 0%, rgba(7,20,29,.56) 28%, rgba(7,20,29,.14) 54%, rgba(7,20,29,0) 76%);
}
.schrodinger-hero { background-image: url("schrodingers-cat-trading-hero.png"); }
.content-grid { display: grid; grid-template-columns: minmax(0, 760px) 1fr; gap: 80px; align-items: start; }
.prose { font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; color: #d9e2e6; }
.prose p { margin: 0 0 1.45em; }
.prose strong { color: var(--white); }
.prose h2 { font-size: 2rem; color: var(--white); margin: 0 0 1.1em; }
.sidebar-card { position: sticky; top: 120px; border-top: 3px solid var(--gold); padding: 25px; background: var(--ink-soft); }
.sidebar-card h2 { font-size: 1.5rem; }
.sidebar-card p { color: var(--muted); }
.contact-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.contact-card { padding: 35px; background: var(--ink-soft); border: 1px solid var(--line); text-decoration: none; }
.contact-card span { color: var(--rain-light); font-size: .75rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 800; }
.contact-card strong { display: block; margin-top: 11px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.05rem, 1.8vw, 1.5rem); white-space: nowrap; }
.legal .prose { font-family: inherit; font-size: 1rem; max-width: 900px; }
.legal .prose p { margin-bottom: 1.25em; }
.legal-callout { margin: 0 0 35px; padding: 22px 24px; border-left: 4px solid var(--gold); background: rgba(217,164,65,.08); font-weight: 700; }

.site-footer { padding: 48px 0; border-top: 1px solid var(--line); color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; align-items: end; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a { text-decoration: none; font-size: .88rem; }
.fine-print { max-width: 680px; font-size: .79rem; color: #82949e; margin-top: 18px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; left: 20px; right: 20px; top: 74px; padding: 20px; background: #0b1e29; border: 1px solid var(--line); flex-direction: column; align-items: stretch; }
  .primary-nav.open { display: flex; }
  .primary-nav .nav-cta { text-align: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero-art { min-height: 390px; }
  .hero-art img { height: 420px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .content-grid { grid-template-columns: 1fr; gap: 45px; }
  .sidebar-card { position: static; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, 1160px); }
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: .95rem; }
  .hero { min-height: auto; }
  .hero-grid { padding: 54px 0; }
  .hero-art { min-height: 300px; }
  .hero-art img { height: 320px; }
  .section { padding: 65px 0; }
  .page-hero-image {
    min-height: 390px;
    background-position: 63% center;
  }
  .page-hero-image::before {
    background: linear-gradient(90deg, rgba(7,20,29,.96) 0%, rgba(7,20,29,.76) 55%, rgba(7,20,29,.28) 100%);
  }
  .contact-panel { grid-template-columns: 1fr; }
  .footer-grid { align-items: start; flex-direction: column; }
}
