/*
 * Axios Lab — marketing site styles.
 *
 * Palette rationale:
 *   Warm dark background (#0d0b08) instead of pure black — reads as
 *   sophisticated and human rather than cold-tech. Off-white text
 *   (#f6f2e9) not #ffffff — pure white on dark hurts eyes and looks
 *   cheap. Single amber accent (#e9a340) picks up the warmth of the
 *   background and ties the family visually to PoliticSource without
 *   copying it.
 *
 * Typography rationale:
 *   DM Serif Display for the wordmark + section titles — the serif
 *   is deliberate: says "studio, craft, considered" rather than
 *   "SaaS." Inter for body text — cleanest sans on screen at every
 *   size. Two families, no more.
 *
 * Everything is intentionally low-motion. No parallax, no on-scroll
 * fades. Studios that don't respect a reader's attention read as
 * anxious.
 */

:root {
  --bg: #0d0b08;
  --bg-elev: #14110c;
  --border: rgba(246, 242, 233, 0.08);
  --border-strong: rgba(246, 242, 233, 0.16);
  --ink: #f6f2e9;
  --ink-soft: rgba(246, 242, 233, 0.68);
  --ink-quiet: rgba(246, 242, 233, 0.44);
  --accent: #e9a340;
  --accent-soft: rgba(233, 163, 64, 0.14);
  --success: #6cbf6a;

  --font-serif: 'DM Serif Display', 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-w: 1120px;
  --pad-x: clamp(20px, 5vw, 48px);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Very subtle radial warmth in the background — reads as "hand-lit"
 * rather than flat. Two lights, top-left and bottom-right, low opacity. */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(120px);
}
body::before {
  top: -220px;
  left: -180px;
  width: 640px;
  height: 640px;
  background: radial-gradient(
    circle,
    rgba(233, 163, 64, 0.16) 0%,
    rgba(233, 163, 64, 0) 70%
  );
}
body::after {
  bottom: -300px;
  right: -240px;
  width: 720px;
  height: 720px;
  background: radial-gradient(
    circle,
    rgba(200, 120, 40, 0.11) 0%,
    rgba(200, 120, 40, 0) 70%
  );
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 120ms ease;
}
a:hover {
  color: var(--accent);
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ============================================================
 * Wordmark
 * ============================================================
 *
 * "AxiosLab" set in the serif, with the leading A + L styled as
 * accent-color caps. Reads as a compact monogram at nav size
 * and a full wordmark at hero size — same DOM structure, just
 * scaled by the parent's font-size.
 */
.wordmark {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
  font-weight: 400;
}
.wordmark-a,
.wordmark-l {
  color: var(--accent);
}
.wordmark-tail {
  color: var(--ink);
}
.wordmark-sep {
  color: var(--ink);
}
.wordmark-nav {
  font-size: 22px;
}

/* ============================================================
 * Top nav
 * ============================================================
 *
 * Fixed but not overbearing. Backdrop-filter blurs the content
 * behind it on scroll so the wordmark stays readable when a
 * product card scrolls under it. Falls back to a translucent
 * background on browsers without backdrop-filter (still readable).
 */
.topnav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13, 11, 8, 0.72);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a:hover {
  color: var(--ink);
}

@media (max-width: 640px) {
  .nav-links {
    gap: 20px;
  }
  .nav-links a {
    font-size: 13px;
  }
}

/* ============================================================
 * Hero
 * ============================================================
 *
 * Big wordmark, one-line tagline, and a small eyebrow chip.
 * Padding uses `clamp` so the vertical rhythm scales with the
 * viewport without an explicit mobile media query.
 */
.hero {
  padding-top: clamp(80px, 12vw, 160px);
  padding-bottom: clamp(60px, 10vw, 120px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-quiet);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(233, 163, 64, 0.6);
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  margin: 0;
  line-height: 0.98;
  font-size: clamp(72px, 16vw, 192px);
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero-title .wm {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
}
.hero-title .wordmark-a,
.hero-title .wordmark-l {
  color: var(--accent);
  font-style: italic;
}
.hero-title .wordmark-tail {
  color: var(--ink);
}
.hero-sub {
  margin: 32px 0 0;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 720px;
  font-weight: 400;
}
.hero-sub em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink);
}

/* ============================================================
 * Sections (Work, Studio, Contact)
 * ============================================================ */
.section {
  padding-top: clamp(64px, 10vw, 120px);
  padding-bottom: clamp(64px, 10vw, 120px);
  position: relative;
}
.section + .section {
  border-top: 1px solid var(--border);
}
.section-head {
  margin-bottom: clamp(40px, 6vw, 72px);
  max-width: 800px;
}
.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  font-weight: 500;
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  margin: 0;
  font-size: clamp(36px, 5.5vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
}
.section-title em {
  font-style: italic;
  color: var(--accent);
}
.section-sub {
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ============================================================
 * Product cards
 * ============================================================
 *
 * Three-column grid on desktop that collapses to a single column
 * under 720px. Card is a real <a> so the whole tile is clickable —
 * lower CTR floor than a subtle "learn more" link.
 */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 960px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .products {
    grid-template-columns: 1fr;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--ink);
  transition:
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 220ms ease,
    background 220ms ease;
  position: relative;
  overflow: hidden;
  min-height: 260px;
}
.product-card:hover {
  border-color: var(--border-strong);
  background: #17130d;
  transform: translateY(-2px);
  color: var(--ink);
}
.product-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.product-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0;
  line-height: 1;
}
.ps-mark {
  background: linear-gradient(140deg, #1c5fd8 0%, #0b2545 100%);
  box-shadow: 0 6px 18px rgba(28, 95, 216, 0.35);
}
.qz-mark {
  background: linear-gradient(140deg, #7c3aed 0%, #4c1d95 100%);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.28);
}
.placeholder-mark {
  background: transparent;
  border: 1px dashed var(--border-strong);
  color: var(--ink-quiet);
  font-family: var(--font-sans);
  font-size: 18px;
}
.product-status {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.status-live {
  background: rgba(108, 191, 106, 0.14);
  color: var(--success);
  border: 1px solid rgba(108, 191, 106, 0.3);
}
.status-dev {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(233, 163, 64, 0.32);
}
.status-none {
  background: transparent;
  color: var(--ink-quiet);
  border: 1px solid var(--border);
}
.product-name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.product-sub {
  font-size: 14px;
  color: var(--ink-quiet);
  margin: 0 0 16px;
}
.product-desc {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 24px;
  flex: 1;
}
.product-foot {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.product-card:hover .product-foot {
  color: var(--accent);
}

.product-card-placeholder {
  cursor: default;
  background: transparent;
  border-style: dashed;
}
.product-card-placeholder:hover {
  transform: none;
  background: transparent;
  border-color: var(--border);
}
.placeholder-foot {
  color: var(--ink-quiet);
}

/* ============================================================
 * Studio section
 * ============================================================ */
.section-studio {
  background:
    radial-gradient(
      ellipse at 20% 0%,
      rgba(233, 163, 64, 0.05) 0%,
      transparent 60%
    ),
    transparent;
}
.studio-body {
  max-width: 720px;
}
.studio-body p {
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.studio-body p:last-child {
  margin-bottom: 0;
}
.studio-body p:first-child::first-letter {
  font-family: var(--font-serif);
  font-size: 3.4em;
  float: left;
  line-height: 0.9;
  padding: 6px 12px 0 0;
  color: var(--accent);
}

/* ============================================================
 * Contact
 * ============================================================
 *
 * Single email as the sole call to action. Card wraps it so the
 * click target is generous, and the hover state pulls the eye
 * without needing a button-shaped affordance.
 */
.section-contact {
  padding-bottom: clamp(80px, 12vw, 160px);
}
.contact-card {
  margin-top: 8px;
  padding: 48px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background:
    radial-gradient(
      ellipse at top left,
      rgba(233, 163, 64, 0.08) 0%,
      transparent 55%
    ),
    var(--bg-elev);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.contact-email {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1.1;
}
.contact-email:hover {
  color: #f5b96b;
}
.contact-note {
  font-size: 14px;
  color: var(--ink-quiet);
}

@media (max-width: 640px) {
  .contact-card {
    padding: 32px 24px;
  }
}

/* ============================================================
 * Footer
 * ============================================================ */
.site-foot {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--ink-quiet);
  font-size: 13px;
}
.site-foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.foot-left,
.foot-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.foot-brand {
  font-family: var(--font-serif);
  color: var(--ink-soft);
}
.foot-sep {
  color: var(--ink-quiet);
  opacity: 0.5;
}
.site-foot a {
  color: var(--ink-soft);
}
.site-foot a:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .site-foot-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
