/* ===== Fonts ===== */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== Tokens ===== */
:root {
  --bg: #0e1210;
  --bg-elevated: #141a17;
  --text-heading: #f5f7f5;
  --text-body: #c9d2ce;
  --text-muted: #8a9691;
  --green-deep: #2e5d3e;
  --green-bright: #5a9d73;
  --border: rgba(255, 255, 255, 0.1);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Cinzel", "Times New Roman", serif;
  --container-width: 1120px;
  --radius: 8px;
  --transition: 200ms ease;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 5rem;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { color: var(--text-heading); font-weight: 600; line-height: 1.25; margin: 0 0 var(--space-2); }
h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 var(--space-2); }
p:last-child { margin-bottom: 0; }

/* ===== Layout ===== */
.container {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-3);
}
main { display: block; }
.section {
  padding-block: var(--space-6);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}
.section--alt { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: var(--space-4); }
.eyebrow {
  display: inline-block;
  color: var(--green-bright);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

/* ===== Header / nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 18, 16, 0.92);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.625rem;
  position: relative;
}
/* ===== Brand (icon + wordmark) ===== */
.brand { display: flex; align-items: baseline; gap: 0.625rem; }
.brand-icon { width: auto; display: block; }
.brand-word {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-heading);
  line-height: 1;
}
.brand--nav .brand-icon { height: 26px; transform: translateY(4px); }
.brand--nav .brand-word { font-size: 1.5rem; }
.brand--footer .brand-icon { height: 24px; }
.brand--footer .brand-word { font-size: 1rem; }
.brand-hero { display: flex; align-items: baseline; gap: var(--space-2); margin-bottom: var(--space-3); }
.brand-hero .brand-icon { height: clamp(2.7rem, 6.5vw, 4.35rem); transform: translateY(clamp(0.42rem, 1.01vw, 0.67rem)); }
.brand-hero .hero-wordmark {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-heading);
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.site-nav a {
  color: var(--text-body);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition);
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--green-bright); }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-heading);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .site-nav.is-open { max-height: 240px; }
  .site-nav a {
    width: 100%;
    padding: var(--space-2) var(--space-3);
    border-top: 1px solid var(--border);
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:hover, .btn:focus-visible { transform: translateY(-1px); }
.btn-primary { background: var(--green-bright); color: #0b120d; }
.btn-primary:hover, .btn-primary:focus-visible { background: #6fb384; }
.btn-secondary { background: transparent; border-color: var(--border); color: var(--text-heading); }
.btn-secondary:hover, .btn-secondary:focus-visible { border-color: var(--green-bright); color: var(--green-bright); }
.btn-group { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--space-5);
  overflow: hidden;
  box-sizing: border-box;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 0%, rgba(46, 93, 62, 0.18), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 720px; }
.hero-subtitle {
  font-size: 1.125rem;
  color: var(--green-bright);
  font-weight: 500;
  margin-bottom: var(--space-3);
}
.hero-lede { font-size: 1.125rem; color: var(--text-body); }
.hero-support { color: var(--text-muted); }

/* ===== Cards ===== */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.card-portfolio {
  display: grid;
  gap: var(--space-3);
}
.card-portfolio .eyebrow { color: var(--green-bright); }
.card-grid { display: grid; gap: var(--space-3); }
@media (min-width: 768px) {
  .card-grid--2 { grid-template-columns: 1fr 1fr; }
}

/* ===== Timeline ===== */
.timeline { border-left: 2px solid var(--border); padding-left: var(--space-4); display: grid; gap: var(--space-5); }
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-4) - 5px);
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-bright);
}
.timeline-date {
  display: block;
  color: var(--green-bright);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

/* ===== Ownership / responsibilities ===== */
.ownership-grid { display: grid; gap: var(--space-2); margin: var(--space-3) 0; }
.ownership-grid dt { color: var(--text-muted); font-size: 0.875rem; }
.ownership-grid dd { margin: 0 0 var(--space-2); color: var(--text-heading); font-weight: 500; }
.responsibility-list { display: grid; gap: 0.5rem; margin-top: var(--space-2); }
.responsibility-list li {
  padding-left: 1.25rem;
  position: relative;
  color: var(--text-body);
}
.responsibility-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-bright);
}

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding-block: var(--space-4); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand .brand { margin-bottom: var(--space-1); }
.footer-legal { color: var(--text-muted); font-size: 0.8125rem; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.footer-links a { color: var(--text-muted); font-size: 0.875rem; transition: color var(--transition); }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--green-bright); }

/* ===== Founder ===== */
.founder-card { display: flex; gap: var(--space-4); align-items: flex-start; }
.founder-photo-wrap { position: relative; flex-shrink: 0; display: block; }
.founder-photo {
  width: 120px;
  height: 120px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--border);
  display: block;
  transition: border-color var(--transition);
}
.founder-photo-wrap:hover .founder-photo,
.founder-photo-wrap:focus-visible .founder-photo { border-color: var(--green-bright); }
.founder-linkedin-badge {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--green-bright);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1;
  transition: border-color var(--transition), color var(--transition);
}
.founder-photo-wrap:hover .founder-linkedin-badge,
.founder-photo-wrap:focus-visible .founder-linkedin-badge { border-color: var(--green-bright); color: var(--text-heading); }
.founder-role { color: var(--green-bright); font-weight: 600; font-size: 0.9375rem; margin-bottom: var(--space-2); }
.founder-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--space-3); }
.founder-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(90, 157, 115, 0.12);
  color: var(--green-bright);
}
@media (max-width: 600px) {
  .founder-card { flex-direction: column; }
}

/* ===== Legal page prose ===== */
.prose { max-width: 720px; }
.prose h2 { margin-top: var(--space-5); }
.prose h2:first-child { margin-top: 0; }
