/* Parallel Human: static site.
   Dark palette, one warm accent used sparingly (numbers, chips, CTA hover). */

:root {
  --background: #0a0a0a;
  --background-raised: #0e0e0e;
  --foreground: #f2f0ec;
  --muted: #141414;
  --muted-foreground: #8a8a8a;
  --border: #232323;
  --border-strong: #333333;
  --accent: #404040;
  --accent-strong: #f2f0ec;

  /* the one warm accent color: used only for numbers, chips, CTA hover */
  --warm: #ff7a45;
  --warm-dim: #4a2c1c;

  --max-width: 1080px;
  --max-width-narrow: 720px;

  /* Fluid type scale */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.05rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.55rem + 1.6vw, 2.6rem);
  --step-4: clamp(3rem, 2.1rem + 4vw, 5.6rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: var(--step-0);
  line-height: 1.6;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--foreground);
  color: var(--background);
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus {
  left: 24px;
  top: 24px;
}

a {
  color: var(--foreground);
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  color: #c7c7c7;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(6px);
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.wordmark {
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--foreground);
}

.main-nav {
  position: relative;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--foreground);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted-foreground);
  font-size: 0.92rem;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s var(--ease-out), border-color 0.15s var(--ease-out);
}

.nav-links a:hover {
  color: var(--warm);
  border-bottom-color: var(--warm);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }
  .nav-links {
    display: none;
    position: absolute;
    right: 0;
    top: 44px;
    flex-direction: column;
    background: #0f0f0f;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 20px;
    gap: 14px;
    min-width: 160px;
  }
  .nav-links.open {
    display: flex;
  }
}

/* Sections: asymmetric rhythm, not uniform padding */
section {
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 84px;
}

section:last-of-type {
  border-bottom: none;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: var(--step--1);
  color: var(--warm);
  margin-bottom: 20px;
  font-weight: 600;
}

h2 {
  font-size: var(--step-3);
  margin-bottom: 8px;
}

/* Hero */
.hero {
  position: relative;
  padding-top: 148px;
  padding-bottom: 128px;
  overflow: hidden;
  background:
    radial-gradient(700px 380px at 8% -15%, rgba(255, 122, 69, 0.07), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: var(--step-4);
  line-height: 1.02;
  max-width: 920px;
  margin-bottom: 30px;
}

.hero-sub {
  font-size: var(--step-1);
  line-height: 1.55;
  max-width: 560px;
  color: #c7c7c7;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero motif: drifting parallel lines suggesting parallel work.
   Pure CSS, decorative, respects prefers-reduced-motion. */
.hero-motif {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-motif span {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 69, 0.35), transparent);
  animation: drift 18s linear infinite;
}

.hero-motif span:nth-child(1) { top: 14%; animation-duration: 22s; }
.hero-motif span:nth-child(2) { top: 32%; animation-duration: 28s; animation-delay: -4s; }
.hero-motif span:nth-child(3) { top: 50%; animation-duration: 19s; animation-delay: -9s; }
.hero-motif span:nth-child(4) { top: 68%; animation-duration: 25s; animation-delay: -2s; }
.hero-motif span:nth-child(5) { top: 86%; animation-duration: 21s; animation-delay: -13s; }

@keyframes drift {
  0% { transform: translateX(-4%); opacity: 0.4; }
  50% { transform: translateX(4%); opacity: 0.9; }
  100% { transform: translateX(-4%); opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-motif span {
    animation: none;
    opacity: 0.5;
    transform: none;
  }
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 15px 28px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s var(--ease-out), border-color 0.18s var(--ease-out),
    color 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}

.btn-primary {
  background: var(--warm);
  color: #1a0e08;
}
.btn-primary:hover {
  background: #ff9166;
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--foreground);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--warm);
  color: var(--warm);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn-primary:hover,
  .btn-ghost:hover {
    transform: none;
  }
}

/* Hero fade-in on load */
.hero-fade {
  opacity: 0;
  transform: translateY(10px);
  animation: hero-fade-in 0.7s var(--ease-out) forwards;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes hero-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-fade {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* How it works: large numbered visual blocks, one sentence each */
.how {
  padding: 88px 0 104px;
}

.how h2 {
  margin-bottom: 48px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.step {
  padding: 40px 28px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.step:hover {
  border-color: var(--warm);
  transform: translateY(-4px);
}

.step-num {
  display: block;
  font-size: var(--step-3);
  font-weight: 800;
  color: var(--warm);
  line-height: 1;
  margin-bottom: 18px;
}

.step p {
  color: var(--foreground);
  font-size: var(--step-1);
  line-height: 1.4;
  margin: 0;
  max-width: 24ch;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .step:hover {
    transform: none;
  }
}

/* Companies */
.companies {
  padding: 64px 0 112px;
}

.companies h2 {
  margin-bottom: 24px;
}

.stat-strip {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 52px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-size: var(--step-2);
  font-weight: 800;
  color: var(--warm);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  max-width: 16ch;
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .company-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .company-grid {
    grid-template-columns: 1fr;
  }
}

.company-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  background: var(--muted);
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}

.company-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.6);
}

@media (max-width: 560px) {
  .company-card:hover {
    transform: none;
  }
}

.company-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.company-head h3 {
  font-size: 1.1rem;
}

.card-subname {
  display: block;
  font-weight: 400;
  font-size: 0.72em;
  color: var(--muted-foreground);
  letter-spacing: 0;
  margin-top: 2px;
}

.company-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
  color: #c7c7c7;
}

.stage {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid var(--warm-dim);
  color: var(--warm);
  background: rgba(255, 122, 69, 0.08);
  font-weight: 600;
}

/* Work with us */
.work-with-us {
  padding: 96px 0 108px;
}

.work-with-us h2 {
  margin-bottom: 40px;
}

.doors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}

@media (max-width: 860px) {
  .doors {
    grid-template-columns: 1fr;
  }
}

.door {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  background: var(--background-raised);
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.door:hover {
  border-color: var(--warm);
  transform: translateY(-3px);
}

@media (max-width: 560px) {
  .door:hover {
    transform: none;
  }
}

.door h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.door p {
  margin: 0;
  font-size: 0.95rem;
}

/* Apply form: sits directly under the doors, serves (a) and (b) */
.apply-form {
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

.form-row input,
.form-row select {
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--foreground);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s var(--ease-out), background 0.15s var(--ease-out);
}

.form-row select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted-foreground) 50%),
    linear-gradient(135deg, var(--muted-foreground) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 15px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.form-row input:hover,
.form-row select:hover {
  border-color: var(--border-strong);
}

.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--warm);
  background: var(--background-raised);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  min-height: 1.2em;
  margin: 0;
}

.form-status.is-success {
  color: #8fd19e;
}

.form-status.is-error {
  color: #e0857e;
}

.apply-fallback {
  margin-top: 28px;
  font-size: 0.92rem;
  color: var(--muted-foreground);
}

/* Founder */
.founder {
  padding: 84px 0 96px;
}

.founder p {
  max-width: 620px;
  font-size: var(--step-1);
  line-height: 1.55;
  color: #c7c7c7;
}

/* Footer */
.site-footer {
  padding: 40px 0 60px;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin: 4px 0;
}

.site-footer a {
  color: var(--muted-foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s var(--ease-out);
}

.site-footer a:hover {
  color: var(--warm);
}

/* Scroll reveal: restrained fade + rise, triggered by main.js via IntersectionObserver. */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
