/* Shared styles for the public pages (home.html, trades.html). */
:root {
  --bg: #f7f6f3; --panel: #ffffff; --text: #16191d; --muted: #5d6673; --line: #e3e1dc;
  --accent: #1f5fbf; --accent-hover: #184c99; --accent-text: #ffffff; --soft: #eef3fb;
  --warm: #f2a54a; --night: #0d1726;
  --error: #b42318; --error-bg: #fde8e8; --ok: #1a7f37; --ok-bg: #e7f6ec;
  --radius: 14px; --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216; --panel: #171b21; --text: #e8eaed; --muted: #9ba5b1; --line: #29303a;
    --accent: #8fb8ff; --accent-hover: #b3cfff; --accent-text: #0d1522; --soft: #162438;
    --error: #ff8a80; --error-bg: #3a1c1c; --ok: #7ee2a0; --ok-bg: #16301f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 21px; }
.eyebrow { font: 600 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); margin: 14px 0 0; max-width: 640px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 10px; font: 600 16px/1 var(--body);
       text-decoration: none; border: 1px solid transparent; transition: background .15s, transform .15s, border-color .15s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: var(--accent-text); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn.ghost:hover { border-color: #fff; }
.btn.outline { color: var(--text); border-color: var(--line); background: var(--panel); }

/* Navigation: sits over the hero photo */
.nav { position: absolute; inset: 0 0 auto; z-index: 3; }
.nav .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; padding-bottom: 20px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 21px/1 var(--display); letter-spacing: -0.01em; }
.brand svg { width: 26px; height: 26px; }
.nav .links { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav .links a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.nav .links a:hover { color: #fff; }
.nav .links .btn { padding: 9px 16px; font-size: 15px; }
@media (max-width: 1080px) { .nav .links .hide-md { display: none; } }
@media (max-width: 720px) { .nav .links .hide-sm { display: none; } }

/* Hero: full-bleed photo or video with a dark gradient for legible text */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: #fff; background: var(--night); overflow: hidden; }
.hero.short { min-height: min(70vh, 620px); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media.flip { transform: scaleX(-1); } /* Puts the person on the right, clear of the headline */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8, 14, 24, .55) 0%, rgba(8, 14, 24, .12) 30%, rgba(8, 14, 24, .35) 60%, rgba(8, 14, 24, .88) 100%); }
.hero > .wrap { position: relative; z-index: 2; padding-top: 112px; padding-bottom: clamp(48px, 8vh, 88px); width: 100%; }
@media (max-width: 720px) { .hero > .wrap { padding-top: 96px; } .nav .links { gap: 14px; } }
.hero h1 { font-size: clamp(38px, 6.4vw, 72px); max-width: 820px; text-wrap: balance; }
.hero .lead { color: rgba(255, 255, 255, .86); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 14px; color: rgba(255, 255, 255, .78); }
.hero .meta span::before { content: "●"; color: var(--warm); margin-right: 8px; font-size: 9px; vertical-align: 2px; }

/* Sections */
section.block { padding: clamp(64px, 10vw, 112px) 0; }
section.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Fade-in on scroll (only when JS marks the page ready, so content never stays hidden) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Footer */
footer.site { padding: 36px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
footer.site a { color: var(--muted); }
