/* Formutis — shared styles */
:root {
  --bg: #000000;
  --text: #F4F4F2;
  --text-strong: #FFFFFF;
  --text-soft: #B8B8B5;
  --text-muted: #A8A8A5;
  --label: #8C8C89;
  --faint: #4A4A4A;
  --line: rgba(255, 255, 255, .07);
  --line-strong: rgba(255, 255, 255, .12);
  --accent: #5CB868;
  --accent-hover: #74CC80;
  --gutter: clamp(20px, 4vw, 72px);
  --font-body: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Sora', 'Geist', sans-serif;
  --font-ui: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { display: block; max-width: 100%; }
a { color: var(--text); }
a:hover { color: var(--text-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 10px 14px; background: var(--text); color: #000; border-radius: 6px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Page shell: every page fits one screen on desktop */
.page { overflow-x: clip; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }

/* Header */
.site-header {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--font-ui); font-size: 19px; font-weight: 700; letter-spacing: .1em;
  color: var(--text); text-decoration: none;
}
.nav { display: flex; align-items: center; gap: 40px; font-size: 15px; }
.nav a { color: #CFCFCC; text-decoration: none; transition: color .2s; }
.nav a:hover { color: var(--text-strong); }
.nav a[aria-current="page"] { color: var(--text-strong); font-weight: 700; }

.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px;
  background: transparent; border: 0; color: var(--text); cursor: pointer;
}
.menu-toggle .bar { display: block; width: 18px; height: 1.4px; background: currentColor; transition: transform .25s; }
.menu-toggle .bars { display: flex; flex-direction: column; gap: 7px; }
.menu-open .menu-toggle .bar:first-child { transform: translateY(4.2px) rotate(45deg); }
.menu-open .menu-toggle .bar:last-child { transform: translateY(-4.2px) rotate(-45deg); }

/* Shared type */
.display {
  margin: 0; font-family: var(--font-display); font-weight: 500;
  letter-spacing: -.035em; line-height: 1;
}
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-ui); font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--label);
}
.marker { width: 6px; height: 6px; background: var(--accent); flex-shrink: 0; }
.marker--white { background: var(--text); }

/* ---------- Home ---------- */
.home { position: relative; height: 100vh; height: 100svh; min-height: 680px; overflow: hidden; }
.home .page { height: 100%; position: relative; z-index: 2; }
.hero-video {
  position: absolute; top: 53%; left: 54%; width: 44%; height: min(78%, 48.4vw);
  transform: translateY(-50%);
  object-fit: cover; object-position: center center; pointer-events: none; z-index: 1;
}
.hero {
  flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 28px;
  max-width: 760px; padding: 0 var(--gutter);
}
.hero h1 { font-size: clamp(48px, 6.4vw, 96px); }
.hero p { margin: 0; max-width: 500px; font-size: 19px; line-height: 1.55; color: var(--text-soft); }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  min-height: 44px; padding: 0 16px; margin-top: 8px;
  background: var(--accent); color: #0A0A0A; border-radius: 8px;
  font-size: 14px; font-weight: 500; text-decoration: none; transition: background .2s;
}
.btn-primary:hover { background: var(--accent-hover); color: #0A0A0A; }

.proof {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 32px 96px;
  padding: 28px var(--gutter) 36px; border-top: 1px solid var(--line);
}
.proof-group { display: flex; flex-direction: column; gap: 16px; }
.proof-group--center { align-items: center; }
.proof-group .eyebrow { color: var(--text); font-size: 12px; }
.proof-logos { display: flex; align-items: center; gap: 32px; }
.proof-logos img { width: auto; opacity: .8; }

/* ---------- Team ---------- */
.content {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(32px, 6vh, 64px) var(--gutter);
}
.team-content { gap: clamp(28px, 5vh, 56px); }
.team-content h1 { font-size: clamp(44px, 5vw, 72px); }
.team-content h1 .dot { color: #5C5C5A; }
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 3vw, 48px); align-items: start;
}
.member { display: flex; flex-direction: column; gap: 20px; }
.member-photo { height: clamp(200px, 32vh, 300px); overflow: hidden; border-radius: 6px; background: #111; }
.member-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center center;
  filter: grayscale(1); transition: filter .5s;
}
.member:hover .member-photo img { filter: grayscale(0); }
.member-body { display: flex; flex-direction: column; gap: 8px; }
.member-name { font-family: var(--font-ui); font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--label); }
.member-role { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.member-bio { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.tags { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 5px; padding: 8px 0 0; margin: 0; list-style: none; }
.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
  font-size: 11px; color: #E6E6E3; white-space: nowrap;
}
.tag::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

.join {
  display: flex; flex-direction: column; justify-content: space-between;
  height: clamp(200px, 32vh, 300px); padding: 28px;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 6px;
  color: var(--text); text-decoration: none; transition: border-color .2s;
}
.join:hover { border-color: var(--text-strong); }
.join-title { font-family: var(--font-display); font-size: 24px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.join-cta { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; margin-top: 16px; }
.join-cta svg { transition: transform .3s; }
.join:hover .join-cta svg { transform: translateX(4px); }

/* ---------- Traction ---------- */
.traction-content { gap: clamp(40px, 7vh, 72px); }
.traction-block {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 56px; align-items: start;
}
.traction-block + .traction-block { padding-top: clamp(40px, 7vh, 72px); border-top: 1px solid var(--line); }
.traction-text { display: flex; flex-direction: column; gap: 18px; max-width: 460px; }
.traction-text h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -.03em; }
.traction-text p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.logo-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong);
  margin: 0; padding: 0; list-style: none;
}
.logo-cell {
  display: flex; flex-direction: column; justify-content: space-between;
  height: clamp(130px, 18vh, 170px); padding: 16px 18px;
  border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
  transition: background .3s;
}
.logo-cell:hover { background: rgba(255, 255, 255, .03); }
.logo-cell img { align-self: center; width: auto; max-width: 85%; object-fit: contain; opacity: .8; transition: opacity .3s; }
.logo-cell:hover img { opacity: 1; }
.logo-cell .eyebrow { font-size: 10px; gap: 8px; }
.logo-cell .eyebrow--on { color: var(--text); }
.logo-cell .eyebrow .marker { width: 5px; height: 5px; }
.cell-id { align-self: flex-end; font-size: 10px; color: var(--faint); }

/* ---------- Demo ---------- */
.demo-page { height: 100vh; height: 100svh; min-height: 600px; }
.demo-content { min-width: 0; min-height: 0; gap: 18px; padding: clamp(28px, 5vh, 56px) var(--gutter); }
.video-frame {
  width: 100%; aspect-ratio: 16 / 9; max-height: 64vh;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 6px; overflow: hidden; background: #000;
}
.video-frame video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.demo-claim { margin: 10px 0 0; font-size: 20px; line-height: 1.4; color: #E6E6E3; }
.demo-claim.is-fitted { white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-header { padding-top: 16px; padding-bottom: 16px; }
  .wordmark { font-size: 16px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; background: #000; border-bottom: 1px solid var(--line);
  }
  .menu-open .nav { display: flex; }
  .nav a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }

  .home { height: auto; min-height: 100svh; }
  .home .page { min-height: 100svh; }
  .hero-video { position: relative; top: auto; bottom: auto; left: auto; width: 100%; height: min(40svh, 92vw); transform: none; }
  .home-stack { display: flex; flex-direction: column; flex: 1; }
  .hero { justify-content: flex-start; gap: 18px; padding-top: 8px; padding-bottom: 28px; }
  .hero h1 { font-size: 46px; }
  .hero p { font-size: 16px; }
  .proof { flex-direction: column; gap: 22px; padding-top: 20px; padding-bottom: 28px; }
  .proof-group--center { align-items: flex-start; }
  .proof-group .eyebrow { font-size: 10px; }
  .proof-logos { gap: 24px; }

  .tags { flex-wrap: wrap; justify-content: flex-start; }
  .join { height: auto; min-height: 180px; gap: 32px; }

  .demo-page { height: auto; min-height: 100svh; }
  .demo-content { justify-content: flex-start; }
  .logo-cell .eyebrow { font-size: 9px; letter-spacing: .06em; white-space: nowrap; }
  .video-frame { max-height: none; }
  .demo-claim { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.eyebrow { margin: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
