/* ─────────────────────────────────────────────
   Oleava Technologies — YC-grade design system
   Clean, editorial, deep-tech confident
───────────────────────────────────────────── */

/* ── Local fonts ── */
@font-face {
  font-family: 'Archivo SemiCondensed';
  src: url('./fonts/Archivo_SemiCondensed-SemiBold.ttf') format('truetype');
  /* Single SemiBold file; declare a range so 600–700 requests render from it
     without faux-bold synthesis. */
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #111827;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: 'Archivo SemiCondensed', 'Space Grotesk', 'Manrope', sans-serif;
  font-weight: 600;
  letter-spacing: -0.035em;
}
p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; }

/* ── Tokens ── */
:root {
  --dark:        #09172B;
  --dark-2:      #0E2040;
  --accent:      #0EA5D8;
  --accent-dim:  #0891BF;
  --ink:         #111827;
  --muted:       #64748B;
  --border:      #E2E8F0;
  --bg-light:    #F5F7FA;
  --radius:      12px;
}

/* ── Container ── */
.container {
  /* Side margins: 48px/side up to ~1344px (so 48 @1280), then margins grow —
     96 @1440, ~336 @1920. */
  width: min(1248px, calc(100% - 96px));
  margin: 0 auto;
}

/* ── Section scaffold ── */
.section          { padding: clamp(80px, 10vw, 128px) 0; }
.section-white    { background: #ffffff; }
.section-light    { background: var(--bg-light); }
.section-dark     { background: var(--dark); }


/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 84px;
}
.nav-logo { flex-shrink: 0; }   /* don't let the flex nav compress the logo */
.nav-logo img { height: 60px; width: auto; max-width: none; }   /* keep aspect ratio */

/* Hamburger toggle — hidden on desktop, shown on phones */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav nav {
  display: flex;
  gap: 30px;
  flex: 1;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
}
.nav nav a { transition: color 0.15s; }
.nav nav a:hover { color: var(--accent); }


/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  border: none;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  text-decoration: none;
  white-space: nowrap;
}

/* Nav CTA */
.btn-nav {
  height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}
.btn-nav:hover { background: var(--dark-2); }

/* Hero primary */
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dim); }

/* Hero ghost (on dark bg) */
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.88);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.36);
}

/* Contact ghost (on dark bg) */
.btn-outline-light {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
}


/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  background: var(--dark);
  padding: clamp(88px, 11vw, 140px) 0 clamp(80px, 10vw, 120px);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 60px;
  align-items: stretch;
}
.hero-text { display: grid; gap: 28px; align-content: center; }
.hero-visual { display: flex; flex-direction: column; }

.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  font-family: 'Archivo SemiCondensed', 'Space Grotesk', 'Manrope', sans-serif;
  font-weight: 600;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.07;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: 1.06rem;
  line-height: 1.74;
  color: rgba(255, 255, 255, 0.65);
  max-width: 56ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
/* In the visual column, sit the buttons at the bottom so they line up
   with the last line of the left-panel copy — and keep them side by side. */
.hero-visual .hero-actions {
  margin-top: auto;
  padding-top: 20px;
  flex-wrap: nowrap;
}

/* Hero visual */
.hero-frame {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  /* 3:2 sits closer to the 16:9 video than 4:3, so cover crops less of the
     sides while keeping roughly the same frame height. */
  aspect-ratio: 3 / 2;
  /* Drop the frame past the kicker line (kicker height + 28px row gap)
     so its top aligns with the "Are you ready…" headline. */
  margin-top: 48px;
}
.hero-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;            /* fill the frame edge-to-edge */
  display: block;
}
.hero-submark {
  position: absolute;
  top: -30px;
  right: -25px;
  width: 150px;
  height: 150px;
  z-index: 2;
  filter: drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.25));
}
.hero-submark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hero-caption {
  margin-top: 16px;
}
.hero-chip {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}
.chip-label {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  padding-top: 1px;
}
.chip-value {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
}


/* ═══════════════════════════════════════════
   STATS STRIP
═══════════════════════════════════════════ */
.stats-strip {
  background: var(--dark-2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.stats-inner {
  display: flex;
  align-items: stretch;
}
.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 40px 36px;
}
.stat strong {
  font-family: 'Archivo SemiCondensed', 'Space Grotesk', sans-serif;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 600;
  color: #f6f8ed;
  letter-spacing: -0.035em;
  line-height: 1;
}
.stat span {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #f6f8ed;
}
.stat-sep {
  width: 1px;
  background: rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════
   SECTION TYPOGRAPHY
═══════════════════════════════════════════ */
.section-header       { margin-bottom: 60px; }
.section-header-inline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}
.section-aside {
  max-width: 42ch;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.68;
  padding-bottom: 4px;
}

.section-label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-label-light { color: rgba(14, 165, 216, 0.80); }

h2 {
  font-family: 'Archivo SemiCondensed', 'Space Grotesk', 'Manrope', sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 1.09;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.heading-light { color: #ffffff; }

h4 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
h5 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
p { color: var(--muted); }
.section-sub {
  margin-top: 16px;
  font-size: 1.04rem;
  color: var(--muted);
  max-width: 58ch;
  line-height: 1.7;
}
/* Team intro paragraph spans the full panel width. */
#team .section-sub { max-width: none; }

/* Services header — floating video on the left, copy on the right */
.services-header {
  display: grid;
  grid-template-columns: 800px 1fr;
  gap: 32px;
  align-items: stretch;
  margin-bottom: 40px;
}
.services-media {
  align-self: start;       /* don't stretch to the text height */
  border-radius: 16px;
  overflow: hidden;        /* no border — the video reads as a floating panel */
}
.services-media video {
  width: 100%;
  height: auto;            /* fill the 800px width at native ratio — never cropped */
  display: block;
}
/* Let the copy fill the right column and start level with the video top. */
.services-copy .section-sub { max-width: none; }
.services-copy .section-sub:first-child { margin-top: 0; }
/* Blue "Services" tag introducing the Assess → Scale cards. */
.services-tag { margin-bottom: 16px; }


/* ═══════════════════════════════════════════
   THREE-COL (About section)
═══════════════════════════════════════════ */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}
.col-item {
  padding: 40px 36px 40px 0;
  border-right: 1px solid var(--border);
}
.col-item:first-child { padding-left: 0; }
.col-item:last-child  { border-right: none; padding-right: 0; padding-left: 36px; }
.col-item:not(:first-child):not(:last-child) { padding-left: 36px; }
.col-item h4 { margin-bottom: 12px; }
.col-item p  { font-size: 0.97rem; line-height: 1.72; }


/* ═══════════════════════════════════════════
   PLATFORM — split header
═══════════════════════════════════════════ */
.platform-header {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 48px;
}
.platform-copy p {
  font-size: 1rem;
  line-height: 1.74;
  color: var(--muted);
  margin-bottom: 16px;
}
.platform-copy p:last-child { margin-bottom: 0; }

/* Challenge header — left panel ~25% wider than the right; narrower
   column gap reclaims ~5% extra width for the left panel. */
.challenge-header { grid-template-columns: 1.78fr 1fr; gap: 24px; }


/* ═══════════════════════════════════════════
   PROCESS FLOW
═══════════════════════════════════════════ */
.process-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
  background: #ffffff;
}
.process-step {
  position: relative;
  padding: 28px 26px 32px;
  border-right: 1px solid var(--border);
}
.process-step:last-child { border-right: none; }

/* Oleava gate — highlighted step */
.step-oleava {
  background: linear-gradient(160deg, rgba(14, 165, 216, 0.07) 0%, rgba(14, 165, 216, 0.02) 100%);
  border-top: 2px solid var(--accent);
}
.oleava-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--border);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  font-family: 'Space Grotesk', sans-serif;
}
.step-accent {
  background: var(--accent);
  color: #ffffff;
}
.process-step h5 {
  font-size: 0.96rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.process-step p {
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--muted);
}


/* ═══════════════════════════════════════════
   PROOF CARDS
═══════════════════════════════════════════ */
.proof-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.proof-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}
.proof-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  flex-shrink: 0;
}
.proof-body {
  padding: 22px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.proof-body-full { justify-content: center; }

.proof-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.proof-card h4 {
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.proof-card p { font-size: 0.93rem; line-height: 1.66; }

/* Third proof card — text only, plain */
.proof-card-plain {
  background: var(--bg-light);
}

.feature-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.feature-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.58;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}


/* ═══════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
  gap: 1px;
}
.service-item {
  background: #ffffff;
  padding: 36px 40px;
  display: grid;
  gap: 10px;
}
.service-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.service-item h4 {
  font-size: 1.04rem;
  margin-bottom: 0;
}
.service-tagline {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.98rem !important;
  line-height: 1.4 !important;
  margin: -2px 0 2px;
}
.service-item p { font-size: 0.95rem; line-height: 1.68; }


/* ═══════════════════════════════════════════
   TEAM
═══════════════════════════════════════════ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.team-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  background: #ffffff;
  display: grid;
  gap: 6px;
}
.team-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 4px;
}
.team-card h5 {
  font-size: 0.96rem;
  color: var(--ink);
  margin-bottom: 0;
}
.team-role {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}
.team-card p:not(.team-role) {
  font-size: 0.88rem;
  line-height: 1.62;
  color: var(--muted);
  margin-top: 4px;
}


/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-col h2 { margin-bottom: 8px; }
.contact-sub {
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.50);
  margin-bottom: 28px;
  line-height: 1.68;
}

/* FAQ */
.faq-list {
  margin-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.faq-list details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.97rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.84);
  user-select: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.22s ease;
}
details[open] > summary::after { transform: rotate(45deg); }
.faq-list p {
  margin-top: 12px;
  font-size: 0.94rem;
  line-height: 1.70;
  color: rgba(255, 255, 255, 0.48);
}

/* Contact form */
.contact-form { display: grid; gap: 14px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form label { display: grid; gap: 7px; }
.contact-form span {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.90);
  outline: none;
  resize: vertical;
  transition: border-color 0.18s, background 0.18s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255, 255, 255, 0.22); }
.contact-form select option { background: #1a2d47; color: #fff; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(14, 165, 216, 0.45);
  background: rgba(255, 255, 255, 0.08);
}
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}


/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 22px;
}
.footer-brand img { height: 44px; opacity: 0.9; }
.footer-brand p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.34);
  max-width: 400px;
}
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.87rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.40);
  transition: color 0.15s;
}
.footer-links a:hover { color: rgba(255, 255, 255, 0.78); }


/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

/* ── 1140px — tablet landscape ── */
@media (max-width: 1140px) {
  .hero-inner {
    grid-template-columns: 1fr;
    max-width: 680px;
  }
  .hero-visual { max-width: 520px; }
  .hero-frame { margin-top: 0; }   /* stacked layout — no headline offset needed */

  .services-header {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .services-media { max-width: 520px; }
  .services-media video { height: auto; }   /* natural ratio when stacked */

  .platform-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .proof-row {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .proof-card-plain {
    grid-column: 1 / -1;
  }
  .proof-body-full { flex-direction: row; gap: 40px; }
  .proof-body-full h4 { min-width: 160px; }

  .process-flow {
    grid-template-columns: 1fr 1fr;
  }
  .process-step {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .process-step:nth-child(2n) { border-right: none; }
  .process-step:nth-child(3),
  .process-step:nth-child(4) { border-bottom: none; }

  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── 900px — tablet portrait ── */
@media (max-width: 900px) {
  .section-header-inline {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .section-aside { max-width: 100%; }

  .three-col { grid-template-columns: 1fr 1fr; }
  .col-item { padding: 32px 28px 32px 0; }
  .col-item:last-child { padding-left: 28px; grid-column: span 2; border-right: none; }

  .proof-row {
    grid-template-columns: 1fr;
  }
  .proof-card-plain { grid-column: auto; }
  .proof-body-full { flex-direction: column; gap: 0; }

  .services-grid { grid-template-columns: 1fr; }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .stats-inner { flex-direction: column; }
  .stat { padding: 28px 32px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .stat:last-child { border-bottom: none; }
  .stat-sep { display: none; }

  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── 640px — mobile ── */
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }

  .nav-logo img { height: 46px; }   /* smaller, undistorted logo on phones */

  /* Show the hamburger; collapse the links into a dropdown panel */
  .nav-toggle { display: inline-flex; }
  .nav-inner { gap: 12px; }
  .nav-logo { margin-right: auto; }   /* push CTA + toggle to the right */
  .nav nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex: none;
    flex-direction: column;
    gap: 0;
    justify-content: flex-start;
    padding: 6px 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.08);
  }
  .nav.nav-open nav { display: flex; }
  .nav nav a {
    padding: 14px 24px;
    font-size: 1rem;
  }
  .nav nav a + a { border-top: 1px solid var(--border); }

  h1  { font-size: 2.15rem; }
  h2  { font-size: 1.85rem; }

  .hero { padding: 72px 0 64px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }

  .three-col { grid-template-columns: 1fr; }
  .col-item,
  .col-item:last-child { grid-column: auto; padding: 28px 0; border-right: none; }
  .col-item { border-bottom: 1px solid var(--border); }
  .col-item:last-child { border-bottom: none; }

  .process-flow { grid-template-columns: 1fr; }
  .process-step { border-right: none; border-bottom: 1px solid var(--border); }
  .process-step:last-child { border-bottom: none; }

  .team-grid { grid-template-columns: 1fr 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-brand { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ═══════════════════════════════════════════
   TEAM SECTION  (merged from styles-yc-team-v2.css)
═══════════════════════════════════════════ */
/* ─────────────────────────────────────────────
   Oleava — Team section v2
   Square photo · wavy bottom edge
   Hover: semi-transparent bio overlay
   Hover: LinkedIn panel slides from right
   Extends: styles-yc.css
───────────────────────────────────────────── */

/* ── Grid ── */
.team-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ── Card shell ──
   overflow: visible is REQUIRED so the LinkedIn panel
   can extend beyond the card's right edge.
   The visual card appearance lives inside .team-card-inner. */
.team-card {
  position: relative;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  box-shadow: none;
  display: block;
}

/* ── Inner wrapper — holds clip + border + rounded corners ── */
.team-card-inner {
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s ease, border-color 0.22s ease;
}
.team-card:hover .team-card-inner {
  border-color: #cbd5e1;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
}


/* ══════════════════════════════════════════
   PHOTO AREA
══════════════════════════════════════════ */
.team-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  /* Placeholder gradient when no headshot loaded */
  background: linear-gradient(160deg, #0c1e37 0%, #163252 55%, #0e2845 100%);
}

/* Initials — visible until real headshot is added */
.team-initials {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(14, 165, 216, 0.42);
  pointer-events: none;
  user-select: none;
}

/* Headshot image — covers initials when loaded */
.team-photo img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: filter 0.40s ease;
}

/* ── Wavy bottom edge ──
   White SVG wave sits above the photo, creating a soft
   transition into the white info section below. */
.team-wave {
  position: absolute;
  bottom: -1px;   /* -1px seals any sub-pixel gap */
  left: 0;
  width: 100%;
  height: 30px;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

/* ── Bio overlay ──
   88% opacity → the blurred photo is ~12% visible through it.
   This satisfies the "5–10% background still visible" request. */
.team-bio-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 22px 20px;
  background: rgba(9, 23, 43, 0.88);
  opacity: 0;
  transition: opacity 0.32s ease;
}

/* ── Hover: blur photo + reveal bio + hide wave ── */
.team-photo:hover img {
  /* Mild blur — the dark overlay does most of the work.
     brightness(0.5) ensures the bleed-through stays subtle. */
  filter: blur(3px) brightness(0.5);
}
.team-photo:hover .team-bio-overlay {
  opacity: 1;
}
.team-photo:hover .team-wave {
  opacity: 0;
}

.team-bio-text {
  font-size: 0.90rem;
  line-height: 1.68;
  color: #f6f8ed;
  /* override base muted color */
}


/* ══════════════════════════════════════════
   INFO STRIP  (below photo)
══════════════════════════════════════════ */
.team-info {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
}

.team-num-badge {
  display: none;   /* numbers removed from the team cards */
}

.team-info h5 {
  font-size: 0.99rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 0;
}

.team-job-title {
  font-size: 0.79rem;
  line-height: 1.46;
  color: #64748B;
  margin-top: 2px;
  /* Always reserve two lines so one-line titles get an extra line of space
     before the Co-Founder badge — keeping every card the same height. */
  min-height: 3.4em;
}

.team-founder-badge {
  display: inline-block;
  margin-top: 9px;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(14, 165, 216, 0.09);
  border: 1px solid rgba(14, 165, 216, 0.22);
  color: #0EA5D8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  width: fit-content;
}


/* ══════════════════════════════════════════
   LINKEDIN PANEL
   Slides out from the right edge of the card on hover.
   Anchored at ~30% from card top (midpoint of square photo).
══════════════════════════════════════════ */
.team-social-panel {
  position: absolute;
  left: calc(100% - 1px); /* flush with card-inner right border */
  top: 30%;
  transform: translateY(-50%) translateX(-4px); /* start barely peeking */
  opacity: 0;
  pointer-events: none;
  z-index: 50;

  /* Spring easing for a satisfying slide-in */
  transition:
    transform 0.28s cubic-bezier(0.34, 1.46, 0.64, 1),
    opacity 0.20s ease;

  background: #ffffff;
  border-radius: 0 12px 12px 0;
  box-shadow: 5px 4px 20px rgba(0, 0, 0, 0.13), 0 1px 4px rgba(0, 0, 0, 0.08);
  padding: 14px 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.team-card:hover .team-social-panel {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* LinkedIn link inside panel */
.team-social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 36px;
  padding: 9px 6px;
  border-radius: 8px;
  color: #0A66C2;      /* LinkedIn brand blue */
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}
.team-social-link:hover {
  background: #0A66C2;
  color: #ffffff;
}
.team-social-link svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.team-social-link span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.60rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94A3B8;
  line-height: 1;
  transition: color 0.16s ease;
}
.team-social-link:hover span {
  color: rgba(255, 255, 255, 0.75);
}


/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1140px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (max-width: 540px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .team-initials      { font-size: 1.8rem; }
  .team-bio-overlay   { padding: 14px 13px; }
  .team-bio-text      { font-size: 0.80rem; line-height: 1.55; }
  .team-info          { padding: 12px 13px 15px; }
  .team-info h5       { font-size: 0.88rem; }
  .team-job-title     { font-size: 0.74rem; }

  /* LinkedIn panel hidden on touch devices — hover doesn't apply */
  .team-social-panel  { display: none; }
}
