/* ─── Fonts ───────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Host+Grotesk:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Geist:wght@300;400;500&display=swap');

@font-face {
  font-family: 'LigaSans';
  src: url('../assets/fonts/LigaSans-Bold.otf') format('opentype');
  font-weight: 700;
  font-display: block;
}

/* ─── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; }

/* ─── Design tokens ───────────────────────────────────────────────────── */
:root {
  --bg:             #ffffff;
  --fg:             #0a0a0a;
  --muted:          rgba(10,10,10,0.55);
  --border:         rgba(10,10,10,0.12);
  --accent-orange:  #FF5100;
  --accent-yellow:  #FDCB12;
  --accent-blue:    #1E8DE4;

  --font-display:   'LigaSans', sans-serif;
  --font-headline:  'Host Grotesk', sans-serif;
  --font-body:      'Geist', sans-serif;

  --text-xl:    64px;
  --text-lg:    53px;
  --text-md:    40px;
  --text-body:  17px;
  --text-sm:    14px;

  --nav-h: 64px;
  --page-x: clamp(24px, 5vw, 80px);
  --transition: 0.35s ease;
}

html[data-theme="dark"] {
  --bg:     #0a0a0a;
  --fg:     #f0f0f0;
  --muted:  rgba(240,240,240,0.5);
  --border: rgba(240,240,240,0.12);
}

/* ─── Base ────────────────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

/* ─── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-x);
}

.nav-left { display: flex; align-items: center; gap: 32px; }

.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  transition: opacity var(--transition);
}
.nav-link:hover { opacity: 0.5; }
.nav-link.active { opacity: 1; }

/* Talk to us CTA — orange, low-profile, brand-aligned */
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--accent-orange);
  color: #ffffff;
  font-family: var(--font-headline);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.nav-cta:hover {
  background: var(--fg);
  color: var(--bg);
}

.nav-right { display: flex; align-items: center; gap: 20px; }

.nav-icon, .theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--fg);
  transition: opacity var(--transition);
  cursor: pointer;
}
.nav-icon:hover, .theme-toggle:hover { opacity: 0.5; }
.nav-icon svg { width: 20px; height: 20px; fill: currentColor; }
.theme-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ─── Hero ────────────────────────────────────────────────────────────── */
.hero {
  height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 var(--page-x);
  position: relative;
  overflow: hidden;
}

.hero-spacer { height: var(--nav-h); flex-shrink: 0; }

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 24px;
}

.hero-tagline {
  font-family: var(--font-headline);
  font-size: clamp(20px, 2.4vw, var(--text-md));
  font-weight: 400;
  line-height: 1.3;
  max-width: 560px;
  color: var(--fg);
}

/* Scroll indicator */
.scroll-hint {
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  flex-shrink: 0;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Hero bottom row: wordmark + logo */
.hero-bottom {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  flex-shrink: 0;
  padding-bottom: clamp(16px, 3vw, 40px);
  overflow: hidden;
}

.hero-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fg);
  line-height: 0.9;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "calt" 0;
  letter-spacing: -0.01em;
}

.hero-logo {
  flex-shrink: 0;
  width: auto;
  /* height set by JS to match wordmark cap height */
}

/* ─── Sections ────────────────────────────────────────────────────────── */
.section {
  padding: clamp(80px, 12vh, 160px) var(--page-x);
}

.section-divider { display: none; }

/* ─── Subheadline section ─────────────────────────────────────────────── */
.intro-sub {
  font-family: var(--font-headline);
  font-size: clamp(28px, 4vw, var(--text-lg));
  font-weight: 600;
  line-height: 1.15;
  max-width: 980px;
  margin-bottom: 48px;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.intro-body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  max-width: 640px;
  color: var(--muted);
}

/* ─── Offerings (bold redesign) ────────────────────────────────────────── */
.offerings-header {
  margin-bottom: clamp(60px, 10vh, 120px);
}

.offerings-header h2 {
  font-family: var(--font-headline);
  font-size: clamp(40px, 6vw, var(--text-xl));
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--fg);
  margin-bottom: 32px;
}

.offerings-header p {
  font-family: var(--font-headline);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--fg);
  max-width: 720px;
}

/* Stack cards vertically — each is a bold, full-width row */
.offerings-grid {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--fg);
}

.offering-card {
  display: grid;
  grid-template-columns: 96px 1fr 1fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: start;
  padding: clamp(40px, 6vw, 72px) 0 clamp(40px, 6vw, 72px) clamp(24px, 3vw, 40px);
  border-bottom: 2px solid var(--fg);
  transition: filter var(--transition), opacity var(--transition), background var(--transition);
  position: relative;
  cursor: default;
}

.offering-card.blurred {
  filter: blur(3px);
  opacity: 0.18;
}

.offering-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 56px);
  font-weight: 700;
  color: var(--accent-orange);
  letter-spacing: -0.01em;
  line-height: 1;
  font-variant-ligatures: none;
}

.offering-title {
  font-family: var(--font-headline);
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.offering-body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--muted);
  max-width: 460px;
}

/* Hover: orange accent bar slides in from the left */
.offering-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 6px;
  background: var(--accent-orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}
.offering-card:hover::before { transform: scaleY(1); }

/* Color-cycle the numbers per card so all three brand colors appear */
.offering-card:nth-child(2) .offering-num { color: var(--accent-yellow); }
.offering-card:nth-child(3) .offering-num { color: var(--accent-blue); }
.offering-card:nth-child(4) .offering-num { color: var(--accent-orange); }

/* In light mode, yellow needs a slight darken for legibility on white */
html:not([data-theme="dark"]) .offering-card:nth-child(2) .offering-num {
  color: #c9a200;
}

/* ─── About: Founders ─────────────────────────────────────────────────── */
.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
}

.founder-headshot {
  width: clamp(180px, 22vw, 280px);
  /* aspect-ratio: 1 / 1; */
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-yellow) 100%);
  margin-bottom: 32px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.founder-headshot::after {
  content: 'HEADSHOT';
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  color: rgba(0,0,0,0.6);
  text-transform: uppercase;
}

.founder-headshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.founder-name {
  font-family: var(--font-headline);
  font-size: clamp(36px, 4.5vw, var(--text-xl));
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  color: var(--fg);
}

.founder-bio {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--muted);
  max-width: 480px;
}

/* ─── Process section ─────────────────────────────────────────────────── */
.process-section {
  background: var(--bg);
  color: var(--fg);
  padding: clamp(80px, 14vh, 180px) var(--page-x);
}

.process-section h2 {
  font-family: var(--font-headline);
  font-size: clamp(40px, 5vw, var(--text-xl));
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 56px;
  color: var(--fg);
}

.process-body {
  font-family: var(--font-headline);
  font-size: clamp(22px, 2.4vw, 36px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--fg);
  max-width: 880px;
  margin-bottom: 64px;
}

.process-brands {
  font-family: var(--font-headline);
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-bottom: 80px;
}

.brand-name { display: inline; margin-right: 6px; }
/* Cycle through three confident, legible colors on either bg.
   Yellow is darkened (#c9a200) for white-bg legibility. */
.brand-name:nth-child(4n+1) { color: var(--accent-orange); }
.brand-name:nth-child(4n+2) { color: var(--fg); }
.brand-name:nth-child(4n+3) { color: var(--accent-blue); }
.brand-name:nth-child(4n)   { color: #c9a200; }

html[data-theme="dark"] .brand-name:nth-child(4n)   { color: var(--accent-yellow); }

.process-cta {
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
  padding-top: 32px;
  border-top: 2px solid var(--fg);
  flex-wrap: wrap;
}

.process-cta .cta-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.process-cta .cta-link {
  font-family: var(--font-headline);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  color: var(--accent-orange);
  letter-spacing: -0.01em;
  transition: opacity var(--transition);
}
.process-cta .cta-link:hover { opacity: 0.7; }

/* ─── Footer ──────────────────────────────────────────────────────────── */
.footer {
  padding: 32px var(--page-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--muted);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.05em;
  color: var(--fg);
  font-variant-ligatures: none;
}

/* ─── Scroll reveal ───────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .offering-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: clamp(32px, 6vw, 48px) 0;
  }

  .offering-num {
    font-size: 28px;
  }

  .offering-title {
    font-size: clamp(28px, 7vw, 40px);
  }

  .founders-grid {
    grid-template-columns: 1fr;
    gap: 80px;
  }

  .founder-headshot {
    max-width: 320px;
  }

  .hero-tagline { font-size: clamp(18px, 5vw, 26px); }
  .hero-logo { height: clamp(28px, 8vw, 48px); }

  .offerings-header {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .process-cta { flex-direction: column; gap: 8px; align-items: flex-start; }
}
