/* Shared chrome for static pages (About, Blog). Token-matched to the app. */
@font-face {
  font-family: 'Geist';
  src: url('/fonts/Geist-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/GeistMono-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0b0b0d;
  --ink-2: #121114;
  --line: rgba(244, 241, 234, 0.08);
  --cream: #f4f1ea;
  --muted: #9d998f;
  --gold: #d6b678;
}

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

html {
  background: var(--ink);
}

body {
  background: var(--ink);
  color: var(--cream);
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

::selection {
  background: rgba(214, 182, 120, 0.28);
  color: #fff;
}

.page-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background: rgba(11, 11, 13, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.page-nav img {
  height: 20px;
  width: auto;
  display: block;
}

.page-nav nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  font-size: 0.9rem;
}

.page-nav nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.4s;
}

.page-nav nav a:hover {
  color: var(--cream);
}

.page-nav .cta {
  color: var(--ink);
  background: var(--cream);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 500;
}

.page-nav .cta:hover {
  color: var(--ink);
}

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
}

main.wide {
  max-width: 62rem;
}

.eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 600;
  margin: 1rem 0 1.2rem;
}

.lede {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 40rem;
}

article h2 {
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 2.6rem 0 0.9rem;
}

article h3 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 2rem 0 0.7rem;
}

article p {
  margin: 0 0 1.1rem;
  color: rgba(244, 241, 234, 0.86);
}

article ul {
  margin: 0 0 1.2rem 1.2rem;
  color: rgba(244, 241, 234, 0.86);
}

article li {
  margin-bottom: 0.55rem;
}

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

article strong {
  color: var(--cream);
}

.post-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2.2rem;
}

.frame {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2rem;
  padding: 0.5rem;
  margin: 2.2rem 0;
}

.frame img {
  width: 100%;
  display: block;
  border-radius: 1.5rem;
}

.card-grid {
  display: grid;
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.post-card {
  display: block;
  border: 1px solid var(--line);
  background: var(--ink-2);
  border-radius: 1.5rem;
  padding: 1.8rem;
  text-decoration: none;
  color: var(--cream);
  transition: border-color 0.4s, transform 0.4s;
}

.post-card:hover {
  border-color: rgba(214, 182, 120, 0.4);
  transform: translateY(-2px);
}

.post-card h2 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.post-card p {
  color: var(--muted);
  font-size: 0.98rem;
}

.post-card .read {
  display: inline-block;
  margin-top: 1rem;
  color: var(--gold);
  font-size: 0.9rem;
}

.cta-block {
  margin-top: 3.5rem;
  border: 1px solid rgba(214, 182, 120, 0.4);
  background: rgba(214, 182, 120, 0.05);
  border-radius: 2rem;
  padding: 2.2rem;
  text-align: center;
}

.cta-block h2 {
  margin: 0 0 0.6rem;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.cta-block p {
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.cta-block a {
  display: inline-block;
  background: var(--cream);
  color: var(--ink);
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
}

.page-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-footer img {
  height: 18px;
  width: auto;
}

.page-footer a {
  color: var(--muted);
  text-decoration: none;
}

.page-footer a:hover {
  color: var(--cream);
}

@media (max-width: 640px) {
  .page-nav nav a.hide-sm {
    display: none;
  }
  .page-nav nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 0.4rem;
    font-size: 0.85rem;
    gap: 1rem;
  }
}

/* ---- Services pillars ---- */
.pillar-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 2.6rem;
}

.pillar {
  border: 1px solid var(--line);
  background: var(--ink-2);
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s;
}

.pillar:hover {
  border-color: rgba(214, 182, 120, 0.4);
}

.pillar-icon {
  width: 34px;
  height: 34px;
  fill: var(--gold);
  margin-bottom: 1.2rem;
}

.pillar h2 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.pillar p {
  color: var(--muted);
  font-size: 0.97rem;
  flex: 1;
}

.pillar .go {
  margin-top: 1.4rem;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.95rem;
}

.pillar .go:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Marching-ants CTA ---- */
.ants-btn {
  position: relative;
  display: inline-block;
  background: var(--cream);
  color: var(--ink);
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
}

.ants-btn .ants {
  position: absolute;
  inset: -7px;
  width: calc(100% + 14px);
  height: calc(100% + 14px);
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  pointer-events: none;
}

.ants-btn .ants rect {
  stroke-dasharray: 2.2 3.2;
  animation: ants-march 9s linear infinite;
}

@keyframes ants-march {
  to {
    stroke-dashoffset: -100;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ants-btn .ants rect {
    animation: none;
  }
}

/* ---- Results video grid: click to play, sound on ---- */
.video-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin: 2.6rem 0 1rem;
}

.video-grid figure {
  margin: 0;
}

.video-grid video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: var(--ink-2);
}

.video-grid figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.pillar h3 {
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 1.1rem 0 0.35rem;
  font-weight: 500;
}

.pillar p + h3 {
  margin-top: 1.3rem;
}

.video-grid figure.wide {
  grid-column: 1 / -1;
}

.video-grid figure.wide video {
  aspect-ratio: 16 / 9;
}
