/* ─── 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="color"] {
  --bg:     #1E8DE4;
  --fg:     #ffffff;
  --muted:  rgba(255,255,255,0.78);
  --border: rgba(255,255,255,0.22);
}

/* In color mode, small accent text uses brand yellow for contrast */
html[data-theme="color"] .hero-accent,
html[data-theme="color"] .product-status,
html[data-theme="color"] .contact-cta .cta-link,
html[data-theme="color"] .process-cta .cta-link {
  color: var(--accent-yellow);
}

html[data-theme="color"] .founder-name a {
  border-bottom-color: var(--accent-yellow);
}

/* ─── 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;
  position: relative;
}

/* Full-viewport brand-blue layer, off by default. Fades in slowly when the
   TECH pill is hovered and fades back out on mouseout. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  background: var(--accent-blue);
  transition: opacity 1.6s ease;
}

/* Make sure real page content stays visible above the ::before layer. */
body > * {
  position: relative;
  z-index: 1;
}

body:has(.hero-tag:hover)::before {
  opacity: 0.9;
}

/* ─── 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; }
.theme-toggle .icon-moon circle { fill: var(--accent-blue); stroke: none; }
.theme-toggle .icon-sun circle { fill: none; stroke: currentColor; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="color"] .theme-toggle .icon-sun { display: block; }
html[data-theme="color"] .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; }

/* Centered editorial stage */
.hero-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 24px;
  gap: clamp(20px, 3vh, 36px);
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-mark {
  height: clamp(28px, 4vh, 38px);
  width: auto;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.01em;
  color: var(--fg);
  line-height: 1;
  font-variant-ligatures: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  height: clamp(22px, 2.8vh, 26px);
  padding: 0 9px;
  background: var(--accent-orange);
  color: #ffffff;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  cursor: default;
  transform-origin: center;
  transition: transform 0.15s ease;
}

.hero-headline {
  font-family: var(--font-headline);
  font-size: clamp(36px, 5.8vw, 88px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--fg);
  max-width: 16ch;
}

.hero-sub {
  font-family: var(--font-headline);
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
  max-width: 56ch;
}

.hero-accent {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-orange);
  font-weight: 500;
}

/* 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); }
}

/* ─── 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;
}

/* ─── Products (minimal two-up) ───────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  border-top: 2px solid var(--fg);
  padding-top: clamp(40px, 6vw, 72px);
  margin-bottom: clamp(48px, 8vw, 96px);
}

.product-status {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 16px;
}

.product-title {
  font-family: var(--font-headline);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 20px;
}

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

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

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

.contact-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);
}
.contact-cta .cta-link:hover { opacity: 0.7; }

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

.founder-name a {
  color: inherit;
  border-bottom: 2px solid var(--accent-orange);
  transition: opacity var(--transition);
}
.founder-name a:hover { opacity: 0.7; }

.founder-headshot {
  width: clamp(160px, 18vw, 240px);
  aspect-ratio: 1 / 1;
  /* 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="color"] .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 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--fg);
  font-variant-ligatures: none;
}

.footer-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  background: var(--accent-orange);
  color: #ffffff;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

/* ─── 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;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .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; }
}
