/* Rapic, Inc — Sentez-register: flat black, one accent, hairlines, mono labels.
   Fonts self-hosted. No gradients, no glass, no shadows-as-decoration. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/archivo-latin-wdth-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/archivo-latin-ext-wdth-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}

:root {
  --bg: #000000;
  --text: #fafafa;
  --text-muted: rgba(255, 255, 255, 0.66);
  --text-dim: rgba(255, 255, 255, 0.5);
  --hairline: rgba(255, 255, 255, 0.14);
  --hairline-soft: rgba(255, 255, 255, 0.07);
  --accent: #6395fa;
  --live: #34d399;
  --font-sans: 'Archivo', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  font-size: 1rem;
  line-height: 1.65;
}

::selection {
  background: var(--accent);
  color: #000;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: clamp(1.25rem, 5vw, 3rem);
  padding-right: clamp(1.25rem, 5vw, 3rem);
}

/* ---------- Type utilities ---------- */

.accent {
  color: var(--accent);
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

/* ---------- Nav ---------- */

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.wordmark {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  color: var(--text);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* ---------- Links (arrow style) ---------- */

.arrow-link {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.arrow-link .arrow {
  display: inline-block;
  transition: transform 180ms ease;
}

.arrow-link:hover {
  color: var(--text);
}

.arrow-link:hover .arrow {
  transform: translateX(3px);
}

.arrow-link.strong {
  color: var(--accent);
}

.arrow-link.strong:hover {
  color: #8db3ff;
}

.arrow-link.muted {
  color: var(--text-dim);
}

.arrow-link.muted:hover {
  color: var(--text-muted);
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(3.5rem, 9vh, 7rem);
  padding-bottom: clamp(3rem, 7vh, 5rem);
}

.hero-title {
  font-weight: 600;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 21ch;
  margin-bottom: 1.75rem;
  text-wrap: balance;
}

.hero-description {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 2.25rem;
}

.hero-links {
  display: flex;
  gap: 2.5rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.hero-links .arrow-link {
  font-size: 1.05rem;
}

/* ---------- Stat band ---------- */

.stat-band {
  display: flex;
  gap: clamp(2rem, 6vw, 5rem);
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline-soft);
  flex-wrap: wrap;
}

.stat dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.stat dd {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.9rem;
  color: var(--text);
  line-height: 1;
}

/* ---------- Sections ---------- */

.section {
  padding-top: clamp(3.5rem, 8vh, 6rem);
  padding-bottom: clamp(1rem, 2vh, 2rem);
}

.section-head {
  border-top: 1px solid var(--hairline);
  padding-top: 1.5rem;
  margin-bottom: 3rem;
  max-width: 62ch;
}

.section-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  text-wrap: balance;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ---------- Company rows ---------- */

.company-row {
  display: grid;
  grid-template-columns: 170px 1fr 320px;
  gap: 1.5rem 2.5rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--hairline-soft);
  align-items: start;
}

.row-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.shot-link {
  display: block;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 180ms ease;
}

.shot-link:hover {
  border-color: var(--accent);
}

.row-shot {
  display: block;
  width: 100%;
  height: auto;
}

.row-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status.live {
  color: var(--live);
}

.status.live .dot {
  background: var(--live);
}

.status.dev {
  color: var(--text-dim);
}

.status.dev .dot {
  background: var(--text-dim);
}

.row-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.row-title {
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}

.row-text {
  font-size: 0.975rem;
  color: var(--text-muted);
  max-width: 58ch;
  margin-bottom: 1rem;
}

.row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}

.row-tags span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.row-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  white-space: nowrap;
  justify-self: end;
}

.row-link.muted-note {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.pipeline-note {
  padding: 1.5rem 0 0.5rem;
  border-top: 1px solid var(--hairline-soft);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ---------- Shared infrastructure list ---------- */

.system-list {
  max-width: 760px;
}

.system-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--hairline-soft);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  padding-top: 0.3rem;
}

.step-title {
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.step-text {
  font-size: 0.975rem;
  color: var(--text-muted);
  max-width: 58ch;
}

.system-outro {
  margin-top: 2.5rem;
  font-weight: 500;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  letter-spacing: -0.01em;
  max-width: 48ch;
  line-height: 1.5;
}

/* ---------- Founders ---------- */

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
}

.founder {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline-soft);
}

.founder-photo {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--hairline);
  flex-shrink: 0;
  filter: grayscale(1);
}

.founder-name {
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.founder-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0.3rem 0 0.75rem;
}

.founder-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.founder-links {
  display: flex;
  gap: 1.75rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.founder-links .arrow-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* ---------- Footer ---------- */

.footer {
  margin-top: clamp(3rem, 8vh, 6rem);
  border-top: 1px solid var(--hairline);
  padding: 2rem 0 2.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .company-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .row-meta {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
  }

  .row-side {
    max-width: 480px;
  }

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

@media (max-width: 600px) {
  .system-step {
    grid-template-columns: 44px 1fr;
    column-gap: 1rem;
  }

  .stat-band {
    gap: 2rem;
  }

  .founder {
    flex-direction: column;
  }

  .founder-photo {
    width: 96px;
    height: 96px;
  }
}

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

  .arrow-link .arrow {
    transition: none;
  }
}
