/* Static SEO pages (/about/, /case-studies/, /services/*) — styled to the
   homepage design system. Every token below is copied from src/index.html's
   :root so these pages read as the same site: ink black, bone text, brass
   warmth (NOT gold), feat #ff4d1f accent, letterspaced uppercase labels
   with the brass dot, weight-300 display type. If the homepage tokens
   change, re-sync these values. */
:root {
  --ink: #000000;
  --ink-2: #0b0908;
  --paper: oklch(0.955 0.014 85);
  --paper-ink: oklch(0.215 0.012 55);
  --paper-dim: oklch(0.4 0.018 60);
  --bone: oklch(0.935 0.012 82);
  --bone-2: oklch(0.82 0.010 80);
  --bone-dim: oklch(0.64 0.010 75);
  --dim: var(--bone-dim);
  --rule: oklch(0.32 0.010 60);
  --rule-light: oklch(0.82 0.014 80);
  --accent: #ff4d1f;
  --brass: oklch(0.82 0.035 70);
  --brass-dim: oklch(0.62 0.025 70);
  --wrap: 1360px;
  --pad-x: clamp(28px, 4.2vw, 80px);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: "Albert Sans", "Helvetica Neue", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Film-grain overlay — same treatment as the homepage. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.96  0 0 0 0 0.93  0 0 0 0 0.86  0 0 0 0.045 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.45;
  mix-blend-mode: overlay;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(100%, var(--wrap));
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.88);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(16px);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 500;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: var(--bone-dim);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--bone);
}

.hero {
  min-height: 58svh;
  display: grid;
  align-items: center;
  padding: clamp(72px, 10vw, 132px) 0 clamp(64px, 8vw, 104px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: end;
}

/* Homepage eyebrow spec: 11px / 400 / 0.22em caps in bone-dim, led by the
   4px brass dot. This replaces the old gold text label. */
.eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brass);
  vertical-align: middle;
  margin: 0 0.9em 2px 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

/* Homepage display type: weight 300, tight leading, restrained scale. */
h1 {
  margin-bottom: 24px;
  font-size: clamp(32px, 5.5vw, 62px);
  font-weight: 300;
  line-height: 1.08;
  max-width: 18ch;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(26px, 3.8vw, 44px);
  font-weight: 300;
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}

.lede {
  max-width: 62ch;
  color: var(--bone-dim);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.hero-aside {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  color: var(--bone-dim);
}

.hero-aside strong,
.metric strong {
  display: block;
  color: var(--bone);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  line-height: 1.1;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Homepage button spec: letterspaced uppercase outline, bone fill on hover. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 15px 24px;
  border: 1px solid var(--bone-2);
  border-radius: 0;
  background: transparent;
  color: var(--bone);
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

.button:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

.button.alt {
  border-color: var(--rule);
  color: var(--bone-dim);
}

.button.alt:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

.section {
  padding: clamp(64px, 9vw, 108px) 0;
  border-top: 1px solid var(--rule);
}

.section.paper {
  background: var(--paper);
  color: var(--paper-ink);
  border-top: 0;
}

.section.paper .lede,
.section.paper .copy,
.section.paper .mini,
.section.paper .faq p {
  color: var(--paper-dim);
}

.section.paper .eyebrow {
  color: var(--paper-dim);
}

.split {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 6vw, 72px);
}

.copy {
  max-width: 70ch;
  color: var(--bone-dim);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tile {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.3s ease;
}

.tile:hover {
  border-color: var(--bone-dim);
}

.paper .tile {
  border-color: var(--rule-light);
  background: rgba(255, 255, 255, 0.45);
}

.tile a {
  text-decoration: none;
}

/* Small caps label inside tiles/cards — same voice as the eyebrow, no dot. */
.mini {
  margin-bottom: 10px;
  color: var(--bone-dim);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric {
  padding: 22px;
  border-top: 1px solid var(--rule);
  color: var(--bone-dim);
}

.paper .metric {
  border-color: var(--rule-light);
  color: var(--paper-dim);
}

.paper .metric strong {
  color: var(--paper-ink);
}

/* Pull-quote for case studies: brass hairline, italic, same voice as the
   homepage testimonials. */
.quote {
  margin: 22px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--brass);
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
  color: var(--bone-2);
  max-width: 58ch;
}

.quote .attr {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.paper .quote {
  color: var(--paper-dim);
}

.paper .quote .attr {
  color: var(--paper-dim);
}

.faq {
  display: grid;
  gap: 18px;
}

.faq article {
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.paper .faq article {
  border-color: var(--rule-light);
}

.crumbs {
  margin-bottom: 22px;
  color: var(--bone-dim);
  font-size: 14px;
}

.crumbs a {
  color: var(--bone-2);
  text-decoration: none;
}

.paper .crumbs a {
  color: var(--paper-dim);
}

.media-band {
  min-height: 360px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.04)),
    url("/assets/californios-team.jpg") center / cover;
}

footer {
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  color: var(--bone-dim);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 820px) {
  .site-nav .wrap,
  .hero-grid,
  .split,
  footer .wrap {
    display: block;
  }

  .nav-links {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .hero-aside {
    margin-top: 36px;
  }

  .grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(32px, 9vw, 48px);
  }
}
