/* reach-x.com/assets/css/reachx.css
 *
 * Dark, cinematic agency identity. Fixed dark theme by design, not a
 * light/dark toggle: the mood is the brand, not a preference fallback.
 */

:root {
  --bg: #0a0a0b;
  --bg-raised: #141414;
  --bg-raised-2: #1b1b1b;
  --cream: #ece7da;
  --cream-soft: rgba(236, 231, 218, 0.72);
  --muted: #8b877c;
  --rule: #262624;
  --accent: #ece7da;
  --accent-ink: #0a0a0b;
  --gold: #d8a657;
  --gold-text: #e8c07d;
  --gold-soft: rgba(216, 166, 87, 0.16);
  --coral: #e2683c;
  --coral-text: #f0916b;
  --coral-soft: rgba(226, 104, 60, 0.16);
  --teal: #2f8f8f;
  --teal-text: #7fd1d1;
  --teal-soft: rgba(47, 143, 143, 0.16);
  --violet: #7c6fd1;
  --violet-text: #b3a8ef;
  --violet-soft: rgba(124, 111, 209, 0.16);
  --teal-glow: rgba(47, 143, 143, 0.22);
  --measure: 64ch;
  --display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --accent-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Ambient color wash behind every page, fixed so it doesn't reflow or
 * repeat with scroll. Kept low-opacity: color as atmosphere, not noise. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 38% at 88% 0%, rgba(216, 166, 87, 0.32), transparent 62%),
    radial-gradient(42% 32% at 4% 100%, rgba(47, 143, 143, 0.28), transparent 65%),
    radial-gradient(38% 30% at 20% 30%, rgba(124, 111, 209, 0.12), transparent 65%);
  pointer-events: none;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-top: 3.2rem; }
h3 { font-size: 1.2rem; margin-top: 2rem; }

.label + h1, .label + h2, .label + h3 { margin-top: 0; }

p { margin: 0 0 1.1rem; max-width: var(--measure); color: var(--cream-soft); }

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

em, .accent {
  font-family: var(--accent-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.label {
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

.lede {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--cream-soft);
  max-width: var(--measure);
}

.rule {
  border: 0;
  height: 1px;
  margin: 3.5rem 0;
  background: linear-gradient(90deg, var(--rule) 0%, var(--gold-soft) 50%, var(--rule) 100%);
}

/* ---------- Header ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}

.brandmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--cream);
  text-decoration: none;
}

.topbar nav { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.topbar nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--cream-soft);
  text-decoration: none;
}
.topbar nav a:hover, .topbar nav a[aria-current="page"] { color: var(--gold); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(55% 60% at 80% 8%, rgba(216, 166, 87, 0.4), transparent 62%),
    radial-gradient(45% 55% at 100% 55%, rgba(226, 104, 60, 0.22), transparent 65%),
    radial-gradient(40% 45% at 10% 95%, rgba(47, 143, 143, 0.3), transparent 65%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

.hero h1 { max-width: 16ch; }

.hero .lede { margin-top: 1.4rem; max-width: 46ch; }

.hero .cta-row { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ---------- Decorative mark ---------- */
/* Abstract overlapping-rings graphic, standing in for imagery Reach X
 * doesn't have (no client/team photography). Pure inline SVG, no assets. */

.art-mark {
  position: absolute;
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
  width: min(46vw, 620px);
  height: auto;
  z-index: 0;
  pointer-events: none;
}

.art-mark.art-mark-inline {
  position: static;
  transform: none;
  width: min(70vw, 320px);
  margin: 2rem auto 0;
  display: block;
}

@media (max-width: 900px) {
  .art-mark:not(.art-mark-inline) { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { opacity: 0.88; }

.btn-ghost {
  display: inline-block;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--cream-soft);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.15rem;
  text-decoration: none;
}
.btn-ghost:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- Sections ---------- */

section.block { padding: 4.5rem 0; border-top: 1px solid var(--rule); }
section.block:first-of-type { border-top: 0; }

/* ---------- Service chip grid (home teaser) ---------- */

.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.chip {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cream-soft);
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.chip:hover { transform: translateY(-2px); filter: brightness(1.25); }

.chip:nth-of-type(4n+1) { border-color: rgba(216, 166, 87, 0.5); background: var(--gold-soft); color: var(--gold-text); }
.chip:nth-of-type(4n+2) { border-color: rgba(226, 104, 60, 0.5); background: var(--coral-soft); color: var(--coral-text); }
.chip:nth-of-type(4n+3) { border-color: rgba(47, 143, 143, 0.5); background: var(--teal-soft); color: var(--teal-text); }
.chip:nth-of-type(4n+4) { border-color: rgba(124, 111, 209, 0.5); background: var(--violet-soft); color: var(--violet-text); }

/* ---------- Service detail entries (services.html) ---------- */

.service-entry {
  padding: 2.2rem 0 2.2rem 1.4rem;
  border-bottom: 1px solid var(--rule);
  border-left: 3px solid transparent;
  transition: border-left-color 0.2s ease;
}
.service-entry:last-of-type { border-bottom: 0; }
.service-entry .num { font-family: var(--display); font-size: 0.85rem; letter-spacing: 0.08em; }
.service-entry ul { margin: 1rem 0 0; padding-left: 1.2rem; color: var(--cream-soft); }
.service-entry li { margin-bottom: 0.4rem; }

.service-entry:nth-of-type(4n+1) { border-left-color: rgba(216, 166, 87, 0.5); }
.service-entry:nth-of-type(4n+1) .num { color: var(--gold-text); }
.service-entry:nth-of-type(4n+2) { border-left-color: rgba(226, 104, 60, 0.5); }
.service-entry:nth-of-type(4n+2) .num { color: var(--coral-text); }
.service-entry:nth-of-type(4n+3) { border-left-color: rgba(47, 143, 143, 0.5); }
.service-entry:nth-of-type(4n+3) .num { color: var(--teal-text); }
.service-entry:nth-of-type(4n+4) { border-left-color: rgba(124, 111, 209, 0.5); }
.service-entry:nth-of-type(4n+4) .num { color: var(--violet-text); }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  background: var(--bg-raised);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 4rem 0;
  text-align: center;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(45% 80% at 30% 100%, rgba(216, 166, 87, 0.3), transparent 70%),
    radial-gradient(45% 80% at 75% 0%, rgba(226, 104, 60, 0.18), transparent 70%);
  pointer-events: none;
}
.cta-band .wrap { position: relative; }
.cta-band h2 { margin-top: 0; }
.cta-band .lede { margin: 0.8rem auto 2rem; }

/* ---------- Entity block ---------- */

.entity {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--cream-soft);
}
.entity strong { color: var(--cream); font-weight: 600; }

/* ---------- Form ---------- */

.field { margin-bottom: 1.1rem; max-width: 34rem; }
.field label { display: block; font-size: 0.85rem; color: var(--cream-soft); margin-bottom: 0.35rem; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--cream);
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.7rem 0.8rem;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cream-soft);
}
.field textarea { min-height: 8rem; resize: vertical; }

/* ---------- Footer ---------- */

.sitefoot {
  border-top: 1px solid var(--rule);
  margin-top: 2rem;
  padding: 2.4rem 0 3rem;
  font-size: 0.85rem;
  color: var(--cream-soft);
}
.sitefoot p { margin-bottom: 0.5rem; max-width: none; }
.sitefoot .entity { margin: 0 0 1.2rem; }
.sitefoot nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.sitefoot nav a { color: var(--cream-soft); text-decoration: none; font-size: 0.85rem; }
.sitefoot nav a:hover { color: var(--cream); }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
}
