/* ============================================================
   blamdom.dev — v8
   Design system: monochrome. Off-white ground, near-black ink.
   No accent color. Space Grotesk / Inter.
   Motion: one reveal pattern, respects prefers-reduced-motion.
   ============================================================ */

:root {
  --bg: #0d0d0d;
  --bg-raise: #121212;
  --bg-card: #141414;
  --line: rgba(244, 244, 240, 0.1);
  --line-strong: rgba(244, 244, 240, 0.24);
  --text: #f4f4f0;
  --text-dim: #a3a39d;
  --text-faint: #6e6e68;
  --ink: #f4f4f0;
  --ink-contrast: #0d0d0d;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 0.625rem;
  --radius-sm: 0.375rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --width: 68.75rem; /* 1100px */

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ink); color: var(--ink-contrast); }

.skip {
  position: absolute;
  left: -100rem;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--ink-contrast);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Reveal: the only motion on the page */
[data-reveal] {
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: var(--rd, 0s);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.header.is-solid { border-bottom-color: var(--line); }
.header__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.header__logo-dot { color: var(--text-faint); font-weight: 500; }
.header__nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}
.header__nav a {
  color: var(--text-dim);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.header__nav a:hover,
.header__nav a[aria-current="page"] { color: var(--text); }
.header__nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.header__actions { display: flex; align-items: center; gap: 0.75rem; }
.header__cta {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-contrast);
  background: var(--ink);
  padding: 0.5rem 1.125rem;
  border-radius: 999px;
  text-decoration: none;
}
.header__cta:hover { color: var(--ink-contrast); text-decoration: none; }
.header__menu {
  display: none;
  flex-direction: column;
  gap: 0.375rem;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.625rem;
  cursor: pointer;
}
.header__menu span {
  display: block;
  width: 1.125rem;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.35s var(--ease);
}
.menu.open { transform: none; }
.menu__nav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
}
.menu__close {
  position: absolute;
  top: 1.25rem;
  right: var(--gutter);
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
  cursor: pointer;
}
.menu__foot {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-faint);
  font-size: 0.875rem;
}

/* ---------- Hero (index) ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7rem var(--gutter) 4rem;
}
.hero__inner {
  max-width: 56rem;
  margin: 0 auto;
  width: 100%;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2rem;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero__lead {
  max-width: 40rem;
  color: var(--text-dim);
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  margin-bottom: 2.25rem;
}
.hero__foot { display: flex; align-items: center; gap: 0.875rem; flex-wrap: wrap; }

/* ---------- Page head (platform) ---------- */
.pagehead {
  padding: 8rem var(--gutter) 3.5rem;
  border-bottom: 1px solid var(--line);
}
.pagehead__inner { max-width: var(--width); margin: 0 auto; }
.pagehead__back {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 2rem;
}
.pagehead__back:hover { color: var(--text); }
.pagehead__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.pagehead__lede {
  color: var(--text-dim);
  font-size: 1.125rem;
  max-width: 40rem;
}

/* ---------- Pills ---------- */
.pill {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease);
}
.pill--solid { background: var(--ink); color: var(--ink-contrast); }
.pill--solid:hover { transform: translateY(-2px); }
.pill--ghost {
  border-color: var(--line-strong);
  color: var(--text);
}
.pill--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .pill:hover { transform: none; } }

/* ---------- Section scaffolding ---------- */
section { padding: 5rem var(--gutter); }
.kicker {
  color: var(--text-faint);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-sub {
  color: var(--text-dim);
  max-width: 38rem;
  margin-top: 0.875rem;
}
.section-sub a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Stats band ---------- */
.stats { padding: 0; border-block: 1px solid var(--line); }
.stats__grid {
  max-width: var(--width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stats__cell {
  padding: 2.25rem 1.5rem;
  border-left: 1px solid var(--line);
}
.stats__cell:first-child { border-left: none; }
.stats__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.375rem;
}
.stats__lab { color: var(--text-dim); font-size: 0.875rem; line-height: 1.5; }

/* ---------- What we do (index) ---------- */
.what__head { max-width: var(--width); margin: 0 auto 1rem; }
.what__list {
  max-width: var(--width);
  margin: 0 auto;
}
.what__item {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0;
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
}
.what__item:last-child { border-bottom: 1px solid var(--line); }
.what__num {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-faint);
  padding-top: 0.25rem;
}
.what__title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.625rem;
}
.what__desc {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 44rem;
}

/* ---------- What's live (index) ---------- */
.live { background: var(--bg-raise); border-block: 1px solid var(--line); }
.live__head { max-width: var(--width); margin: 0 auto 2.5rem; }
.live__grid {
  max-width: var(--width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.live__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  transition: border-color 0.25s, transform 0.25s var(--ease);
  text-decoration: none;
  color: var(--text);
}
.live__card:hover { border-color: var(--ink); transform: translateY(-2px); }
.live__tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}
.live__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.live__desc { color: var(--text-dim); font-size: 0.9375rem; }
@media (prefers-reduced-motion: reduce) { .live__card:hover { transform: none; } }

/* ---------- Products (platform page) ---------- */
.products { border-bottom: 1px solid var(--line); }
.products__grid {
  max-width: var(--width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.product {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
a.product { text-decoration: none; color: var(--text); }
a.product:hover { border-color: var(--ink); transform: translateY(-2px); }
.product__body { padding: 2rem; display: flex; flex-direction: column; flex: 1; }
.product__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.375rem;
}
.product__tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}
.product__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ink);
}
.product[data-inactive] .product__dot {
  background: transparent;
  border: 1.5px solid var(--text-faint);
}
.product__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.625rem;
}
.product__desc { color: var(--text-dim); font-size: 0.9375rem; }
@media (prefers-reduced-motion: reduce) { a.product:hover { transform: none; } }

/* ---------- Get in ---------- */
.access { border-bottom: 1px solid var(--line); }
.access__inner { max-width: 44rem; margin: 0 auto; }
.access__title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.875rem;
}
.access__sub { color: var(--text-dim); font-size: 1.0625rem; margin-bottom: 2rem; }
.access__cta-row { display: flex; align-items: center; gap: 0.875rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
  padding: 4rem var(--gutter) 2.5rem;
}
.footer__grid {
  max-width: var(--width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}
.footer__logo span { color: var(--text-faint); font-weight: 500; }
.footer__tag {
  color: var(--text-dim);
  font-size: 0.9375rem;
  margin-top: 0.75rem;
  max-width: 24rem;
}
.footer__col { display: flex; flex-direction: column; gap: 0.625rem; }
.footer__col-title {
  color: var(--text-faint);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.footer__col a { color: var(--text-dim); font-size: 0.9375rem; }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  max-width: var(--width);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 0.875rem;
}
.footer__motto { font-style: italic; }

/* ---------- Responsive: small phones ---------- */
@media (max-width: 29.99rem) {
  .stats__grid { grid-template-columns: 1fr; }
  .stats__cell { border-left: none; border-top: 1px solid var(--line); }
  .stats__cell:first-child { border-top: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 48rem) {
  section { padding: 4rem var(--gutter); }
  .header__nav { display: none; }
  .header__menu { display: flex; }
  .header__cta { display: none; }
  .hero { padding-top: 6rem; min-height: 92svh; }
  .pagehead { padding-top: 7rem; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__cell { border-left: none; border-top: 1px solid var(--line); }
  .stats__cell:nth-child(-n + 2) { border-top: none; }
  .stats__cell:nth-child(even) { border-left: 1px solid var(--line); }
  .what__item { grid-template-columns: 3rem 1fr; padding: 1.75rem 0; }
  .live__grid { grid-template-columns: 1fr; }
  .products__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__bottom { justify-content: flex-start; }
}
