/* Frontier — frontier.investments (rebuilt from the Webflow site for Netlify) */
@font-face { font-family: "BDO Grotesk"; src: url("fonts/BDOGrotesk-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "BDO Grotesk"; src: url("fonts/BDOGrotesk-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "BDO Grotesk"; src: url("fonts/BDOGrotesk-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ink: #000807;
  --white: #ffffff;
  --mint: #00ff88;
  --forest: #0e3b2e;
  --forest-hover: #1f6b52;
  --text: #333333;
  --font: "BDO Grotesk", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 20px; color: var(--text); background: var(--ink); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--white); color: var(--ink); padding: 8px 12px; }

/* ---------- Nav ---------- */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 10; padding: 24px; }
.nav-inner { max-width: 700px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.brand img { width: 113px; }
.nav-links { display: flex; gap: 68px; }
.nav-links a { color: var(--white); opacity: .85; text-decoration: none; font-size: 16px; font-weight: 400; line-height: 20px; }
.nav-links a:hover, .nav-links a:focus-visible { opacity: 1; }
.menu-btn { display: none; background: none; border: 0; padding: 12px; margin: -12px; color: var(--white); cursor: pointer; }
.menu-btn svg { display: block; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 0 24px; background: var(--ink); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; background: #000; opacity: .57; z-index: 1; }
.hero-content { position: relative; z-index: 2; width: 100%; max-width: 1100px; padding: 140px 48px 140px 0; display: flex; justify-content: center; }
.hero-text { width: 100%; max-width: 640px; }
.hero-text > * { max-width: 560px; }
.hero h1 { margin: 10px 0 40px; color: var(--white); font-weight: 500; font-size: 80px; line-height: 110px; letter-spacing: 0; }
.hero p { margin: 0 0 40px; max-width: 600px; color: var(--white); opacity: .9; font-weight: 300; font-size: 22px; line-height: 32px; letter-spacing: .05em; }
.hero .lede { display: inline-block; margin-bottom: 32px; color: var(--mint); font-weight: 500; letter-spacing: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--white); padding: 40px 80px; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 40px 48px 80px 200px; display: grid; grid-template-columns: .75fr .75fr; gap: 41px 24px; }
.footer-logo { width: 111px; margin-bottom: 35px; }
.address { margin: 0; color: #000606; opacity: .85; font-weight: 300; font-size: 14px; line-height: 32px; font-style: normal; }
.footer-links { display: flex; flex-direction: column; gap: 14px; }
.footer-links a { color: var(--forest); font-weight: 500; text-decoration: none; }
.footer-links a:hover { color: var(--forest-hover); opacity: .85; }
.copyright { padding-top: 10px; font-weight: 300; }

/* ---------- Legal pages ---------- */
.legal-page { background: var(--white); }
.legal-head { max-width: 900px; margin: 0 auto; padding: 32px 20px 0; }
.legal-head img { width: 111px; }
.legal { max-width: 900px; margin: 0 auto; padding: 48px 20px 80px; color: var(--text); font-size: 15px; line-height: 1.6; }
.legal h1 { margin: 0 0 16px; font-size: 26px; line-height: 1.25; font-weight: 500; color: var(--ink); }
.legal h2 { margin: 36px 0 8px; font-size: 18px; line-height: 1.3; font-weight: 500; color: var(--ink); }
.legal p { margin: 0 0 16px; }
.legal .updated { color: #666; }
.legal a { color: var(--forest); }
.legal-page .footer { border-top: 1px solid #e5e5e5; }

/* ---------- Responsive (mirrors the Webflow breakpoints) ---------- */
@media (max-width: 991px) {
  .menu-btn { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; right: 24px; width: 280px; flex-direction: column; gap: 0; background: #000; padding: 8px 0; }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 14px 20px; }
  .hero-content { padding: 140px 32px 140px 0; }
  .hero h1, .hero p { padding-left: 20px; }
  .footer-inner { grid-template-columns: 1fr; padding: 40px 20px 80px 0; max-width: none; }
}
@media (max-width: 767px) {
  .nav { padding: 20px 16px; }
  .nav-inner { padding: 0; }
  .nav-links { right: 0; left: 0; width: auto; top: calc(100% + 4px); background: #000606; }
  .hero { padding: 72px 16px; align-items: center; justify-content: flex-start; }
  .hero-content { padding: 60px 0; }
  .hero h1, .hero p { padding-left: 0; }
  .hero h1 { font-size: 42px; line-height: 46px; margin-bottom: 24px; }
  .hero p { font-size: 16px; line-height: 24px; }
  .hero .lede { margin-bottom: 20px; }
  .footer { padding: 24px 16px; }
  .footer-inner { padding: 20px 0; gap: 32px; }
  .footer-links a, .copyright { font-size: 13px; }
}
@media (max-width: 479px) {
  .hero h1 { font-size: 34px; line-height: 39px; }
  .hero p { font-size: 16px; line-height: 25.6px; letter-spacing: .03em; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero { background: var(--ink) url("hero-poster.jpg") center / cover no-repeat; }
}
