/* RojoNorte — editorial landing
   Type: Instrument Serif (display) + Geist (UI) + JetBrains Mono (technical)
   Palette: warm off-white paper, ink, single red accent
*/

:root {
  --bg: oklch(0.972 0.008 75);
  --bg-alt: oklch(0.945 0.010 75);
  --ink: oklch(0.16 0.012 60);
  --ink-soft: oklch(0.32 0.012 60);
  --muted: oklch(0.50 0.010 60);
  --line: oklch(0.85 0.010 75);
  --line-soft: oklch(0.90 0.008 75);
  --red: oklch(0.55 0.215 27);
  --red-ink: oklch(0.45 0.215 27);

  --serif: "Instrument Serif", "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Geist", "DM Sans", "Söhne", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Söhne Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1320px;
  --pad-x: clamp(24px, 5vw, 88px);

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: oklch(0.18 0.008 65);
  --bg-alt: oklch(0.22 0.010 65);
  --ink: oklch(0.96 0.006 75);
  --ink-soft: oklch(0.82 0.008 70);
  --muted: oklch(0.62 0.010 65);
  --line: oklch(0.32 0.010 65);
  --line-soft: oklch(0.26 0.010 65);
  --red: oklch(0.66 0.22 27);
  --red-ink: oklch(0.72 0.22 27);
  color-scheme: dark;
}

[data-theme="black"] {
  --bg: oklch(0.07 0.004 60);
  --bg-alt: oklch(0.12 0.006 60);
  --ink: oklch(0.97 0.005 75);
  --ink-soft: oklch(0.84 0.008 70);
  --muted: oklch(0.60 0.010 65);
  --line: oklch(0.20 0.010 60);
  --line-soft: oklch(0.15 0.008 60);
  --red: oklch(0.68 0.235 27);
  --red-ink: oklch(0.74 0.235 27);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  transition: background 240ms ease, color 240ms ease;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: default; padding: 0; }
img, svg { display: block; max-width: 100%; }

/* ── layout ───────────────────────────────────────────── */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.rule {
  height: 1px;
  background: var(--line);
  width: 100%;
}

/* ── nav ──────────────────────────────────────────────── */
nav.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.brand .brand-mark { width: 26px; height: 26px; flex-shrink: 0; }
.brand em {
  font-style: italic;
  color: var(--red);
  font-weight: 400;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 160ms;
}
.nav-links a:hover { color: var(--ink); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tog {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--bg);
}
.tog button {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: all 180ms;
}
.tog button.on {
  background: var(--ink);
  color: var(--bg);
}
.theme-tog {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: background 160ms, color 160ms;
}
.theme-tog:hover { background: var(--bg-alt); color: var(--ink); }

/* ── buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: -0.005em;
  font-weight: 500;
  transition: transform 160ms, background 200ms, color 200ms;
}
.btn-red {
  background: var(--red);
  color: oklch(0.99 0 0);
}
.btn-red:hover { background: var(--red-ink); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--bg-alt); }
.btn .arrow {
  display: inline-block;
  transition: transform 200ms;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ── hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: clamp(64px, 10vw, 140px);
  padding-bottom: clamp(80px, 12vw, 180px);
  overflow: hidden;
}
.hero-rose {
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: 0.07;
  color: var(--ink);
}
[data-theme="dark"] .hero-rose,
[data-theme="black"] .hero-rose { opacity: 0.10; }

/* hero v1 — centered editorial */
.hero-v1 .hero-rose {
  width: min(900px, 90vw);
  height: min(900px, 90vw);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
}
.hero-v1 .hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.hero-kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-kicker .dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--red) 22%, transparent);
}
.headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 9.5vw, 152px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  max-width: 14ch;
  margin: 0;
  color: var(--ink);
}
.headline em {
  font-style: italic;
  color: var(--red);
}
.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  max-width: 58ch;
  color: var(--ink-soft);
  margin: 0;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* hero v2 — asymmetric */
.hero-v2 .hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero-v2 .hero-inner { grid-template-columns: 1fr; }
}
.hero-v2 .headline {
  font-size: clamp(48px, 7vw, 112px);
  text-align: left;
  max-width: none;
}
.hero-v2 .hero-text { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero-v2 .hero-sub { text-align: left; }
.hero-v2 .hero-cta { justify-content: flex-start; }
.hero-v2 .compass-stage {
  aspect-ratio: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* coordinate strip */
.coord-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  gap: 24px;
  flex-wrap: wrap;
}
.coord-strip span:nth-child(2) { color: var(--ink-soft); }

/* ── section header ───────────────────────────────────── */
.section {
  padding-top: clamp(80px, 9vw, 140px);
  padding-bottom: clamp(80px, 9vw, 140px);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.35fr) minmax(0, 0.65fr);
  gap: 56px;
  margin-bottom: clamp(48px, 6vw, 88px);
}
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.eyebrow b {
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.16em;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.section-title em { font-style: italic; color: var(--red); }
.section-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 18px 0 0;
  text-wrap: pretty;
}

/* ── services ─────────────────────────────────────────── */
.services {
  border-top: 1px solid var(--line);
}
.service {
  display: grid;
  grid-template-columns: 64px 1fr 1.2fr auto;
  gap: 40px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding 240ms ease;
}
@media (max-width: 880px) {
  .service { grid-template-columns: 48px 1fr; gap: 16px; }
  .service .svc-body { grid-column: 2; }
  .service .svc-tags { grid-column: 1 / -1; padding-left: 64px; }
  .service .svc-arrow { display: none; }
}
.service .svc-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  padding-top: 8px;
}
.service .svc-name {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 4px;
  font-weight: 400;
}
.service .svc-body p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 50ch;
  padding-top: 6px;
}
.service .svc-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
}
.service .svc-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}
.service .svc-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  margin-top: 4px;
  transition: all 240ms;
}
.service:hover .svc-arrow {
  background: var(--red);
  color: oklch(0.99 0 0);
  border-color: var(--red);
  transform: rotate(-45deg);
}
.service:hover { background: linear-gradient(to right, transparent, color-mix(in oklch, var(--bg-alt) 60%, transparent), transparent); }

/* ── why monterrey ────────────────────────────────────── */
.why {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.why-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) { .why-grid { grid-template-columns: 1fr; } }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  margin-top: 36px;
}
.stat .stat-num {
  font-family: var(--serif);
  font-size: clamp(40px, 4.8vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 400;
}
.stat .stat-num em { font-style: italic; color: var(--red); }
.stat .stat-lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.stat .stat-desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 6px;
  max-width: 28ch;
  line-height: 1.45;
}

.map-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.map-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.map-meta b { font-weight: 500; color: var(--ink-soft); }
.map-legend {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
}
.map-legend .lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.map-legend .lg .swatch {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ink);
}
.map-legend .lg.origin .swatch { background: var(--red); box-shadow: 0 0 0 3px color-mix(in oklch, var(--red) 20%, transparent); }

/* ── process ──────────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 880px) { .process-grid { grid-template-columns: 1fr 1fr; } }
.step {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  position: relative;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.step:last-child { border-right: 0; }
@media (max-width: 880px) {
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
.step-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.step-num em { font-style: normal; color: var(--red); }
.step-title {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 20px 0 10px;
  font-weight: 400;
}
.step-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}
.step-foot {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 24px;
}

/* ── team ─────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 28px;
}
@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }
.member {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.member .portrait {
  aspect-ratio: 4/5;
  position: relative;
  background:
    repeating-linear-gradient(
      45deg,
      color-mix(in oklch, var(--line) 65%, transparent) 0 1px,
      transparent 1px 9px),
    var(--bg-alt);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  overflow: hidden;
}
.member .portrait::after {
  /* tiny compass tick in upper-left of every portrait */
  content: "";
  position: absolute;
  left: 12px; top: 12px;
  width: 8px; height: 8px;
  border-top: 1px solid var(--red);
  border-left: 1px solid var(--red);
}
.member .portrait-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: linear-gradient(to top, color-mix(in oklch, var(--bg-alt) 92%, transparent), transparent);
}
.member .portrait-meta em { color: var(--red); font-style: normal; letter-spacing: 0.14em; }
.member-name {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0;
  font-weight: 400;
  color: var(--ink);
}
.member-role {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 4px 0 0;
}
.member-bg {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 6px 0 0;
  max-width: 30ch;
}

.hiring {
  margin-top: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  flex-wrap: wrap;
}
.hiring .hiring-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hiring .hiring-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hiring .hiring-kicker .blink {
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}
.hiring .hiring-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin: 0;
  font-weight: 400;
  max-width: 36ch;
}

/* ── case studies ─────────────────────────────────────── */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 980px) { .cases-grid { grid-template-columns: 1fr; } }
.case {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg);
  transition: border-color 200ms, transform 200ms;
}
.case:hover { border-color: var(--ink-soft); }
.case-img {
  aspect-ratio: 4/3;
  background:
    repeating-linear-gradient(135deg,
      color-mix(in oklch, var(--line) 60%, transparent) 0 1px,
      transparent 1px 12px),
    var(--bg-alt);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 12px;
}
.case-img span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.case-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.case-meta b { color: var(--ink-soft); font-weight: 500; }
.case-name {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.12;
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.case-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}
.case-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 6px;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.case-foot em { color: var(--red); font-style: normal; }

/* ── cta ──────────────────────────────────────────────── */
.cta-section {
  position: relative;
  overflow: hidden;
  padding-top: clamp(96px, 12vw, 180px);
  padding-bottom: clamp(96px, 12vw, 180px);
  border-top: 1px solid var(--line);
}
.cta-section .cta-rose {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.06;
  z-index: 0;
}
[data-theme="dark"] .cta-section .cta-rose,
[data-theme="black"] .cta-section .cta-rose { opacity: 0.10; }
.cta-section .cta-rose svg { width: min(800px, 90vw); height: auto; }
.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}
.cta-section .headline {
  font-size: clamp(56px, 8vw, 128px);
}
.cta-form {
  display: flex;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 6px;
  border-radius: 999px;
  align-items: center;
  width: min(520px, 100%);
  margin-top: 12px;
}
.cta-form input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: 0;
  padding: 0 16px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}
.cta-form input::placeholder { color: var(--muted); }

/* ── footer ───────────────────────────────────────────── */
footer.footer {
  border-top: 1px solid var(--line);
  padding-top: 56px;
  padding-bottom: 40px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 56px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h5 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  font-weight: 500;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a:hover { color: var(--ink); }
.footer-brand p {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.3;
  font-style: italic;
  color: var(--ink-soft);
  margin: 14px 0 0;
  max-width: 28ch;
}
.footer-bot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
  gap: 16px;
}

/* ── compass arrow animations ─────────────────────────── */
@keyframes needle-settle {
  0% { transform: rotate(140deg); }
  30% { transform: rotate(-30deg); }
  55% { transform: rotate(20deg); }
  75% { transform: rotate(-8deg); }
  100% { transform: rotate(0deg); }
}
.needle {
  transform-origin: 50% 50%;
  animation: needle-settle 2.6s cubic-bezier(.5,.1,.3,1) both;
}

/* ── map arc draw ─────────────────────────────────────── */
.arc {
  stroke-dasharray: var(--len, 600);
  stroke-dashoffset: var(--len, 600);
  animation: draw 2400ms cubic-bezier(.65,.05,.36,1) forwards;
  animation-delay: var(--delay, 0ms);
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}
.arc-dot {
  opacity: 0;
  animation: pop 400ms ease-out forwards;
  animation-delay: var(--delay, 0ms);
  transform-origin: center;
}
@keyframes pop {
  0% { opacity: 0; transform: scale(0); }
  100% { opacity: 1; transform: scale(1); }
}
.arc-origin {
  transform-origin: center;
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: 1; }
  70% { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* utilities */
.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1, "ss01" 1; }
.red { color: var(--red); }
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms cubic-bezier(.2,.6,.2,1), transform 800ms cubic-bezier(.2,.6,.2,1);
}
.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}

/* ── hamburger / mobile nav ───────────────────────────────── */
.menu-tog {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--ink-soft);
  transition: background 160ms, color 160ms;
  flex-shrink: 0;
}
.menu-tog:hover { background: var(--bg-alt); color: var(--ink); }

.nav-drawer {
  border-top: 1px solid var(--line);
  padding: 16px var(--pad-x) 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: color-mix(in oklch, var(--bg) 96%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.nav-drawer a {
  font-size: 16px;
  font-family: var(--sans);
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  transition: color 160ms;
}
.nav-drawer a:hover { color: var(--ink); }
.nav-drawer .btn-red {
  margin-top: 18px;
  width: 100%;
  justify-content: center;
  border-bottom: 0;
  padding: 13px 22px;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-tog { display: inline-flex; }
  .nav-cta { display: none; }
}

/* ── mobile breakpoints (<600px) ─────────────────────────── */
@media (max-width: 600px) {
  .process-grid { grid-template-columns: 1fr; }
  .step {
    min-height: unset;
    padding: 24px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .step:last-child { border-bottom: 0; }

  .footer-grid { grid-template-columns: 1fr; }

  .hiring {
    flex-direction: column;
    align-items: flex-start;
  }

  .service { gap: 12px; }
  .service .svc-tags { padding-left: 0; }
}

/* ── mobile breakpoints (<480px) ─────────────────────────── */
@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .coord-strip {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .section-head { gap: 16px; }
}
