/* ============================================
   AVENOR — avenorhq.com
   Dark institutional holding company site
   Berkshire Hathaway meets Y Combinator
   ============================================ */

/* --- TOKENS --- */
:root {
  --bg-primary: #0B1426;
  --bg-alt: #0F1A2E;
  --gold: #E8C547;
  --blue: #3B82F6;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --rule-gold: rgba(232, 197, 71, 0.2);
  --content-width: 1120px;
  --section-pad: 120px;
  --section-pad-mobile: 80px;
}

/* --- RESET --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- SKIP LINK (a11y) --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--gold);
  color: var(--bg-primary);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  z-index: 200;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

/* --- REVEAL ANIMATION --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.revealed {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children in same section */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.4s; }

/* --- CONTAINER --- */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}
.nav-solid {
  background: rgba(11, 20, 38, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule-gold);
}
.nav-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-wordmark {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.12em;
  color: var(--gold);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.nav-link:hover,
.nav-link-active {
  color: var(--text-primary);
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  padding: 12px 32px;
  transition: background 0.25s ease, color 0.25s ease;
  cursor: pointer;
}
.btn:hover {
  background: var(--gold);
  color: var(--bg-primary);
}
.btn-nav {
  font-size: 13px;
  padding: 8px 24px;
  flex-shrink: 0;
}

/* --- SECTION ACCENT IMAGES --- */
.section-accent-image {
  margin-bottom: 48px;
  border-radius: 2px;
  overflow: hidden;
  max-height: 300px;
  border: 1px solid var(--rule-gold);
}
.section-accent-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

/* Team accent image */
.team-accent-image {
  margin-bottom: 48px;
  border-radius: 2px;
  overflow: hidden;
  max-height: 260px;
  border: 1px solid var(--rule-gold);
}
.team-accent-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* Banner dividers between sections */
.banner-divider {
  width: 100%;
  max-height: 160px;
  overflow: hidden;
}
.banner-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

/* --- SECTIONS --- */
.section {
  padding: var(--section-pad) 0;
  background: var(--bg-primary);
  position: relative;
}
.section-alt {
  background: var(--bg-alt);
}
.section + .section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--content-width), calc(100% - 80px));
  height: 1px;
  background: var(--rule-gold);
}
.section-alt + .section::before,
.section:not(.section-alt) + .section-alt::before {
  /* divider still shows between alternating backgrounds */
}

/* --- SECTION LABEL --- */
.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* --- SECTION HEADLINE --- */
.section-headline {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 56px;
}

/* --- SECTION RULE --- */
.section-rule {
  width: 80px;
  height: 1px;
  background: var(--rule-gold);
  margin: 64px 0;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 40px 120px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero-dark-marble-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.58;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, var(--bg-primary) 85%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.hero-wordmark {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero-rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 28px;
}
.hero-tagline {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 28px;
}
.hero-positioning {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.hero-credibility {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 40px;
}
.btn-hero {
  font-size: 15px;
  padding: 14px 36px;
}

/* ============================================
   PILLARS (What We Do)
   ============================================ */
.pillars {
  display: flex;
  gap: 0;
}
.pillar {
  flex: 1;
  padding: 0 40px;
}
.pillar:first-child { padding-left: 0; }
.pillar:last-child { padding-right: 0; }
.pillar-divider {
  width: 1px;
  background: var(--rule-gold);
  flex-shrink: 0;
}
.pillar-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.pillar-copy {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.pillar-accent {
  font-size: 16px;
  color: var(--text-primary);
  margin-top: 20px;
  font-weight: 500;
}

/* ============================================
   TRACK RECORD
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
.stat { text-align: left; }
.stat-number {
  display: block;
  font-size: 72px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.stat-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.track-description {
  max-width: 720px;
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1.7;
}

/* Portfolio subsection */
.portfolio-brand {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.portfolio-copy {
  max-width: 640px;
}
.portfolio-copy p {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 12px;
}
.portfolio-copy p:last-child { margin-bottom: 0; }

/* Covelle image */
.covelle-image-wrap {
  margin-top: 48px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.covelle-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--bg-primary));
  pointer-events: none;
}
.covelle-image {
  width: 100%;
  display: block;
}

/* ============================================
   THE PLATFORM
   ============================================ */
.platform-intro {
  font-size: 18px;
  color: var(--text-primary);
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 48px;
}

/* Platform image */
.platform-image-wrap {
  margin-bottom: 56px;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--rule-gold);
}
.platform-image {
  width: 100%;
  display: block;
}

/* Capabilities grid */
.platform-capabilities {
  margin-bottom: 56px;
}
.platform-cap-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-gold);
  border-left: 1px solid var(--rule-gold);
}
.cap-item {
  padding: 24px 28px;
  border-right: 1px solid var(--rule-gold);
  border-bottom: 1px solid var(--rule-gold);
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.cap-number {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.cap-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

/* Compounding thesis */
.platform-compound {
  margin-bottom: 56px;
  padding: 48px 0;
  border-top: 1px solid var(--rule-gold);
  border-bottom: 1px solid var(--rule-gold);
}
.compound-headline {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gold);
  max-width: 700px;
  margin-bottom: 20px;
}
.compound-copy {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
}

/* Differentiators */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 56px;
}
.diff-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.diff-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Team credential callout */
.platform-team-cred {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-secondary);
  font-style: italic;
}

/* Inline link */
.inline-link {
  color: var(--gold);
  transition: color 0.2s ease;
}
.inline-link:hover {
  color: #f0d76a;
}

/* ============================================
   FOR COMPANIES
   ============================================ */
.companies-copy {
  font-size: 18px;
  color: var(--text-primary);
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 40px;
}

/* Deliverables grid */
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule-gold);
}
.deliverable-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.deliverable-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.companies-verticals {
  font-size: 18px;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 20px;
}
.companies-approach {
  font-size: 17px;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 28px;
}
.companies-synthweave {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 40px;
}

/* ============================================
   TEAM
   ============================================ */
.team-headline {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  max-width: 800px;
  margin-bottom: 16px;
}
.team-size {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 56px;
}
.founder-card {
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule-gold);
}
.founder-name {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.founder-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 16px;
}
.founder-bio {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.team-group-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.team-credential {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
  padding-left: 0;
}

/* ============================================
   CONTACT / FOOTER
   ============================================ */
.section-contact {
  padding-top: 0;
}
.section-contact .accent-hidden + .contact-content {
  padding-top: var(--section-pad);
}
.accent-banner {
  width: 100%;
  max-height: 200px;
  overflow: hidden;
  margin-bottom: 80px;
}
.accent-banner.accent-hidden {
  display: none;
}
.accent-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.contact-content {
  text-align: center;
  padding-bottom: 40px;
}
.contact-headline {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 32px;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}
.contact-link {
  font-size: 20px;
  font-weight: 500;
  color: var(--gold);
  transition: color 0.2s ease;
}
.contact-link:hover {
  color: #f0d76a;
}
.contact-location {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Footer bar */
.footer {
  background: var(--bg-alt);
  text-align: center;
  padding: 40px 40px;
  font-size: 14px;
  color: var(--text-secondary);
  border-top: 1px solid var(--rule-gold);
}

/* ============================================
   RESPONSIVE — TABLET (< 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 40px;
  }
  .pillars {
    flex-direction: column;
    gap: 48px;
  }
  .pillar {
    padding: 0;
  }
  .pillar-divider {
    width: 100%;
    height: 1px;
  }
  .team-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .deliverables-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .diff-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .compound-headline {
    font-size: 24px;
  }
  .section-headline {
    font-size: 34px;
  }
  .hero-tagline {
    font-size: 44px;
  }
}

/* ============================================
   RESPONSIVE — MOBILE (< 640px)
   ============================================ */
@media (max-width: 640px) {
  :root {
    --section-pad: 80px;
  }
  .container {
    padding: 0 24px;
  }
  .nav-inner {
    padding: 0 24px;
    height: 60px;
  }
  .nav-links {
    display: none;
  }
  .hero {
    padding: 120px 24px 80px;
    min-height: auto;
  }
  .hero-wordmark {
    font-size: 32px;
    margin-bottom: 24px;
  }
  .hero-tagline {
    font-size: 36px;
    margin-bottom: 20px;
  }
  .hero-positioning {
    font-size: 17px;
  }
  .hero-credibility {
    font-size: 16px;
    margin-bottom: 32px;
  }
  .section-headline {
    font-size: 28px;
    margin-bottom: 40px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .stat-number {
    font-size: 56px;
  }
  .team-headline {
    font-size: 28px;
  }
  .portfolio-brand {
    font-size: 26px;
  }
  .cap-grid {
    grid-template-columns: 1fr;
  }
  .compound-headline {
    font-size: 22px;
  }
  .section-accent-image,
  .section-accent-image img {
    max-height: 200px;
    height: 200px;
  }
  .team-accent-image,
  .team-accent-image img {
    max-height: 180px;
    height: 180px;
  }
  .banner-divider,
  .banner-image {
    max-height: 100px;
    height: 100px;
  }
  .contact-headline {
    font-size: 32px;
  }
  .contact-link {
    font-size: 18px;
  }
  .founder-name {
    font-size: 20px;
  }
  .accent-banner {
    max-height: 120px;
    margin-bottom: 60px;
  }
  .accent-image {
    height: 120px;
  }
}
