/*
  Typography: Fenice-first old-money aesthetic with refined fallbacks.
  NOTE: To use Fenice, place font files in /fonts and update src URLs below,
  or connect an Adobe/Monotype kit and declare `--brand-serif: "Fenice", ...`.
*/
@font-face {
  font-family: "Fenice";
  src: local("Fenice"), local("Fenice Regular");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fenice";
  src: local("Fenice"), local("Fenice Medium");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fenice";
  src: local("Fenice"), local("Fenice Bold");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-serif: "Fenice", Didot, "Libre Baskerville", "Cormorant Garamond", Garamond, serif;
  --brand-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

  --green-deep: #0b1f1a; /* deep green, heritage */
  --green-dark: #0f2b24;
  --green-ink: #12342b;
  --cream: #f7f4ee;     /* parchment */
  --paper: #fffdf8;     /* lighter parchment */
  --gold: #c3a459;      /* antique gold */
  --gold-deep: #9b7a2f;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --border: #e6e1d5;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-elev: 0 20px 60px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--brand-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle reveal animations */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.display {
  font-family: var(--brand-serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: 0.2px;
}
h1, h2, h3 {
  font-family: var(--brand-serif);
  margin: 0 0 12px;
  color: var(--green-deep);
}
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }

.lead { font-size: 20px; max-width: 780px; color: var(--green-ink); }
.copy { font-size: 18px; color: var(--ink); }
.muted { color: var(--muted); }
.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; }
.kicker { font-family: var(--brand-serif); color: var(--green-ink); margin-top: 24px; }

.container { width: min(1200px, 92%); margin: 0 auto; }
.narrow { width: min(900px, 92%); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
  background: linear-gradient(to bottom, rgba(247,244,238,0.85), rgba(247,244,238,0.6));
  border-bottom: 1px solid rgba(195,164,89,0.18);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--brand-serif); color: var(--green-deep); }
.brand-wordmark { font-family: var(--brand-serif); font-weight: 500; letter-spacing: .02em; color: var(--green-deep); font-size: 20px; }
.brand-logo { height: 36px; width: auto; display: block; }
.brand-initial { font-size: 24px; border: 1px solid var(--gold); color: var(--green-deep); padding: 4px 10px; border-radius: 99px; }
.brand-divider { color: var(--gold); }
.brand-name { letter-spacing: 0.06em; font-variant: small-caps; }
.brand.small .brand-initial { font-size: 18px; padding: 2px 8px; }
.brand.small .brand-name { font-size: 14px; }

.primary-nav { display: flex; align-items: center; gap: 18px; }
.nav-link { color: var(--green-ink); text-decoration: none; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 10px; border-radius: 8px; }
.nav-link:hover { background: rgba(195,164,89,0.12); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 999px; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; font-weight: 600; }
.button-gold { background: var(--gold); color: #0b0b0b; box-shadow: var(--shadow-soft); }
.button-gold:hover { background: var(--gold-deep); transform: translateY(-1px); }
.button-ghost { background: transparent; border: 1px solid var(--gold); color: var(--green-deep); }
.button-ghost:hover { background: rgba(195,164,89,0.12); }
.button-outline { border: 1px solid var(--gold); color: var(--green-deep); padding: 10px 14px; border-radius: 999px; text-decoration: none; }
.button-link { appearance: none; background: none; border: none; color: var(--gold-deep); font-weight: 600; padding: 0; cursor: pointer; }
.button-link:hover { text-decoration: underline; }

.hero {
  background:
    radial-gradient(1200px 500px at 80% -100px, rgba(195,164,89,0.18), transparent 60%),
    linear-gradient(180deg, #ffffff, var(--cream) 40%, var(--paper));
  padding: 120px 0 80px;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}
.hero-content {
  display: flex;
  flex-direction: column;
}
.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 24px; }
/* Hero text flourish */
.hero .display { background: linear-gradient(180deg, var(--green-deep), var(--green-ink)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.section { padding: 80px 0; }
.section-alt { background: #fbfaf6; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header { margin-bottom: 28px; }
.section-header h2 { position: relative; display: inline-block; padding-bottom: 8px; }
.section-header h2::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}
.card {
  grid-column: span 4;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 220px;
}
.section#companies .card { grid-column: span 3; padding: 18px; }
.section#companies .card h3 { font-size: 18px; }
.section#companies .muted { font-size: 14px; }
.section#companies .tag { font-size: 11px; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elev); border-color: rgba(195,164,89,0.5); }
.card-badge { display: inline-block; font-family: var(--brand-serif); border: 1px solid var(--gold); color: var(--green-deep); padding: 4px 10px; border-radius: 999px; margin-bottom: 8px; font-size: 14px; }
.tag { display: inline-block; margin: 8px 0 12px; background: rgba(195,164,89,0.12); color: var(--green-ink); padding: 4px 10px; border-radius: 999px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

/* Refined headings/spacing inside cards */
.card h3 { margin: 6px 0 6px; }
.card .muted { margin: 0 0 6px; }
.card .button-link { margin-top: auto; }

/* Balance the two-card equity section into two even columns */
.section#equity .card { grid-column: span 6; }

/* Subtle visual lift for equity cards */
.section#equity .card {
  background: linear-gradient(180deg, #ffffff, #fffdf8);
}

/* Ensure grid items stretch equally */
.card-grid { align-items: stretch; }

.founder { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; }
.founder-card { height: 360px; border-radius: var(--radius); background:
  linear-gradient(135deg, rgba(195,164,89,.18), rgba(11,31,26,.1)),
  url('headshotlanceboyer.png') center/cover no-repeat; border: 1px solid var(--border); box-shadow: var(--shadow-soft);
}

.section-cta { background: var(--green-deep); color: #f3efe4; text-align: center; border-top: 1px solid rgba(195,164,89,0.24); }
.section-cta h2 { color: #ffffff; }
.cta .button-ghost { border-color: #e3cf94; color: #fff; }
.cta .button-ghost:hover { background: rgba(227,207,148,0.12); }

.site-footer { background: #0e221d; color: var(--cream); padding: 26px 0; }
.footer { display: flex; align-items: center; justify-content: space-between; }
.site-footer .footer-copy,
.site-footer .footer-copy * { color: #ffffff !important; text-align: center; }
.site-footer .footer-copy div { margin: 4px 0; }
.legal { display: flex; gap: 16px; color: #efe9d7; font-size: 14px; }
/* Footer brand overrides for light-on-dark */
.site-footer .brand { color: var(--cream); }
.site-footer .brand-name { color: var(--cream); }
.site-footer .brand-divider { color: #e3cf94; }
.site-footer .brand-initial { color: var(--cream); border-color: #e3cf94; }

/* Modals */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 6vh 16px; overflow: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(11,31,26,0.6); backdrop-filter: blur(3px); }
.modal-dialog {
  position: relative; z-index: 101;
  width: min(820px, 92%);
  max-height: 88vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, #fffefb, #fffdf6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px 28px;
  box-shadow: var(--shadow-elev);
}
.modal-dialog { border-top: 6px solid var(--gold); }
.modal-close { position: absolute; top: 8px; right: 10px; background: transparent; border: none; font-size: 28px; color: var(--green-ink); cursor: pointer; }
.bullets { margin: 14px 0 0 22px; }
.modal-dialog { max-height: 88vh; overflow: auto; }
.modal-dialog p { margin: 10px 0 0; }
.modal-section { margin-top: 10px; }
.modal-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 26px; align-items: start; }
.modal-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.button-gold[href^="http"] { text-decoration: none; }

/* Modal typography refinements */
.modal-dialog h3 { font-family: var(--brand-serif); font-size: clamp(24px, 2.6vw, 34px); color: var(--green-deep); margin-bottom: 6px; }
.modal-subhead { font-family: var(--brand-serif); color: var(--green-ink); margin: 18px 0 6px; font-size: 18px; }
.modal-meta { margin: 0 0 8px; color: var(--muted); }
.chip { display: inline-block; background: rgba(195,164,89,0.12); color: var(--green-ink); padding: 4px 10px; border-radius: 999px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.rule { height: 1px; background: linear-gradient(90deg, rgba(195,164,89,0.35), rgba(230,225,213,1)); margin: 16px 0; border-radius: 2px; }

/* Services / Process */
.services-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.service { grid-column: span 4; background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-soft); }
.service h3 { margin-top: 6px; }
.crest { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--brand-serif); color: var(--green-deep); background: rgba(195,164,89,0.06); }
.service-note { grid-column: span 4; background: #fff; border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 14px; }

/* Press strip */
.section-press { background: #f6f3eb; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.press-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
.press-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.press-logos { display: flex; gap: 10px; flex-wrap: wrap; }
.press-pill { border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: 12px; color: var(--green-ink); background: #fff; text-decoration: none; display: inline-block; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.press-pill:hover { border-color: var(--gold); box-shadow: 0 2px 8px rgba(195,164,89,0.15); transform: translateY(-1px); }

/* Responsive */
@media (max-width: 1024px) {
  .card { grid-column: span 6; }
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-logo { order: -1; }
}
@media (max-width: 640px) {
  .hero { padding: 90px 0 60px; }
  .card { grid-column: span 12; }
  .founder { grid-template-columns: 1fr; }
  .primary-nav { gap: 10px; }
  .modal-grid { grid-template-columns: 1fr; }
  .brand-logo { height: 28px; }
  .service, .service-note { grid-column: span 12; }
  .hero-inner { grid-template-columns: 1fr; }
  .logo-image { max-width: 280px; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }


