/* ──────────────────────────────────────────────────────────
   we break desks — styles
   pure mono (per BRAND_GUIDE.md). product colours only inside
   product cards. inter tight everywhere except pathhog wordmark.
   ────────────────────────────────────────────────────────── */

:root {
  /* colour — two only, per brand guide */
  --black: #000000;
  --white: #FFFFFF;
  --hairline: rgba(0, 0, 0, 0.08);

  /* product brand colours — only inside product cards */
  --pathhog-coral: #FF3D2E;
  --bash-rack: #0A0A0A;
  --bash-charge: #00E676;

  /* type */
  --font: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --font-pathhog: 'Poppins', system-ui, -apple-system, sans-serif;

  /* type scale */
  --t-display: clamp(3.5rem, 12vw, 10rem);
  --t-h1: clamp(1.75rem, 4vw, 2.75rem);
  --t-h2: clamp(1.25rem, 2vw, 1.5rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;
  --t-eyebrow: 0.75rem;

  /* space scale */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-6: 48px;
  --s-8: 64px;
  --s-12: 96px;
  --s-16: 128px;
  --s-24: 192px;

  /* tracking */
  --tracking-tight: -0.02em;
  --tracking-wide: 0.08em;

  /* layout */
  --max-w: 1280px;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  font-size: var(--t-body);
  line-height: 1.5;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Nav ──────────────────────────────────────────────────── */

.nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--s-3) var(--s-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wordmark {
  font-weight: 500;
  font-size: var(--t-small);
  letter-spacing: var(--tracking-wide);
}

.nav-links {
  display: flex;
  gap: var(--s-4);
}

.nav-links a {
  font-size: var(--t-small);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: lowercase;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--s-16) var(--s-4) var(--s-12);
}

.hero h1 {
  font-size: clamp(2.75rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: var(--tracking-tight);
  max-width: 18ch;
  text-wrap: balance;
}

.hero-meta {
  margin-top: var(--s-6);
  font-size: var(--t-h2);
  font-weight: 500;
  max-width: 36ch;
  line-height: 1.4;
}

/* ── Thesis (the bet) ─────────────────────────────────────── */

.thesis {
  border-top: 1px solid var(--hairline);
  padding-top: var(--s-12);
}

.thesis-prose {
  max-width: 32ch;
}

.thesis-prose p {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: var(--s-2);
  letter-spacing: -0.01em;
}

.thesis-prose p:last-child {
  margin-bottom: 0;
}

.thesis-payoff {
  margin-top: var(--s-4) !important;
  font-weight: 700 !important;
}

/* ── Story (what "break a desk" means) ────────────────────── */

.story {
  border-top: 1px solid var(--hairline);
  padding-top: var(--s-12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: start;
}

.story .eyebrow {
  grid-column: 1 / -1;
}

.story-prose {
  max-width: 38ch;
}

.story-prose p {
  font-size: var(--t-h2);
  line-height: 1.45;
  font-weight: 400;
  margin-bottom: var(--s-3);
}

.story-prose p:first-child {
  font-weight: 600;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: var(--s-4);
}

.story-payoff {
  margin-top: var(--s-4);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
}

.hand-image {
  margin: 0;
  position: relative;
}

.hand-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #ededed;
  filter: grayscale(1) contrast(1.05);
}

/* show the "needs an image" placeholder only when src is empty */
.hand-image:has(img[src=""])::before,
.hand-image:has(img:not([src]))::before {
  content: "hand image — paste an unsplash url in index.html";
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s-4);
  aspect-ratio: 3 / 2;
  background: #ededed;
  color: #999;
  font-size: var(--t-small);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.hand-image:has(img[src=""]) img,
.hand-image:has(img:not([src])) img {
  display: none;
}

.hand-image figcaption {
  margin-top: var(--s-2);
  font-size: var(--t-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: rgba(0, 0, 0, 0.5);
}

.hand-image figcaption a {
  border-bottom: 1px solid currentColor;
}

/* ── Anti-positioning (what we don't do) ──────────────────── */

.anti {
  border-top: 1px solid var(--hairline);
  padding-top: var(--s-12);
  max-width: 720px;
}

.anti-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-6) 0;
}

.anti-list li {
  font-size: var(--t-h2);
  line-height: 1.4;
  font-weight: 400;
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--hairline);
  position: relative;
  padding-left: var(--s-4);
}

.anti-list li:first-child {
  border-top: 1px solid var(--hairline);
}

.anti-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: rgba(0, 0, 0, 0.4);
}

.anti-payoff {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  max-width: 32ch;
  margin-top: var(--s-6);
}

/* ── Section base ─────────────────────────────────────────── */

section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--s-8) var(--s-4) var(--s-12);
}

.eyebrow {
  text-transform: uppercase;
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--s-6);
}

/* ── Apps grid ────────────────────────────────────────────── */

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}

.card {
  display: flex;
  flex-direction: column;
  padding: var(--s-6);
  min-height: 360px;
  transition: transform 0.18s ease;
  position: relative;
}

a.card:hover {
  transform: translateY(-2px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card-icon {
  height: 56px;
  width: auto;
  display: block;
}

.card--pathhog .card-icon {
  /* pathhog logo is 140x178 (taller than wide) — let height drive */
  height: 64px;
}

.card-badge {
  text-transform: uppercase;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  padding: 6px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  line-height: 1;
}

.card-body {
  margin-top: auto;
  padding-top: var(--s-6);
}

.card-mark {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: var(--tracking-tight);
}

.card-line {
  font-size: var(--t-h2);
  font-weight: 500;
  line-height: 1.3;
  margin-top: var(--s-2);
  max-width: 28ch;
}

.card-cta {
  font-size: var(--t-small);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  margin-top: var(--s-4);
}

/* product-specific overrides (the one place product colours appear) */

.card--pathhog {
  background: var(--pathhog-coral);
  color: var(--white);
}

.card--pathhog .card-mark {
  font-family: var(--font-pathhog);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card--bash {
  background: var(--bash-rack);
  color: var(--white);
  cursor: default;
}

.card--bash .card-icon {
  color: var(--bash-charge);
}

.card--bash .card-mark {
  color: var(--bash-charge);
  letter-spacing: -0.04em;
  font-size: clamp(3.5rem, 9vw, 5.5rem);
  line-height: 0.95;
}

.card--bash .card-badge {
  color: var(--bash-charge);
}

.card--bash .card-cta {
  color: var(--bash-charge);
  opacity: 0.6;
}

/* ── About ────────────────────────────────────────────────── */

.about {
  border-top: 1px solid var(--hairline);
  padding-top: var(--s-12);
}

.about-prose {
  max-width: 720px;
}

.about-prose p {
  font-size: var(--t-h2);
  line-height: 1.45;
  font-weight: 400;
  margin-bottom: var(--s-3);
}

.about-prose p:last-child {
  margin-bottom: 0;
}

.about-link {
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* ── Footer ───────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--hairline);
  max-width: var(--max-w);
  margin: var(--s-12) auto 0;
  padding: var(--s-8) var(--s-4);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}

.footer-label {
  text-transform: uppercase;
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--s-2);
}

.footer p {
  font-size: var(--t-small);
  line-height: 1.5;
}

.footer a {
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.footer-bottom {
  margin-top: var(--s-8);
  padding-top: var(--s-3);
  border-top: 1px solid var(--hairline);
}

.footer-bottom p {
  font-size: var(--t-eyebrow);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 720px) {
  .nav {
    padding: var(--s-3);
  }

  .nav-links {
    gap: var(--s-3);
  }

  .hero {
    padding: var(--s-12) var(--s-3) var(--s-8);
  }

  section {
    padding: var(--s-6) var(--s-3) var(--s-8);
  }

  .thesis,
  .story,
  .anti,
  .about {
    padding-top: var(--s-8);
  }

  .story {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }

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

  .card {
    min-height: 280px;
    padding: var(--s-4);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }

  .footer {
    padding: var(--s-6) var(--s-3);
  }
}
