/* ───── Adspider theme tokens ───────────────────────────────── */
:root {
  --bg:     #F4EFE6;          /* warm cream */
  --bg-2:   #ECE5D7;          /* deeper cream */
  --ink:    #16140F;          /* near-black */
  --ink-2:  #2A2620;
  --muted:  #7A7468;
  --line:   rgba(22,20,15,.12);
  --line-2: rgba(22,20,15,.22);
  --accent: #E2502B;          /* burnt orange */
  --accent-ink: #16140F;
  --card:   #FBF7EF;
}

[data-theme="ink"] {
  --bg:     #0E0D0B;
  --bg-2:   #161411;
  --ink:    #F4EFE6;
  --ink-2:  #DDD6C7;
  --muted:  #8A8475;
  --line:   rgba(244,239,230,.12);
  --line-2: rgba(244,239,230,.22);
  --accent: #FF6A37;
  --accent-ink: #0E0D0B;
  --card:   #15130F;
}

[data-theme="bone"] {
  --bg:     #EDE9DD;
  --bg-2:   #E3DECF;
  --ink:    #1A1A1A;
  --ink-2:  #2E2E2E;
  --muted:  #6E6B62;
  --line:   rgba(26,26,26,.12);
  --line-2: rgba(26,26,26,.22);
  --accent: #1F4A35;        /* forest */
  --accent-ink: #EDE9DD;
  --card:   #F4F0E4;
}

html, body { background: var(--bg); color: var(--ink); }
body { font-family: "Geist", ui-sans-serif, system-ui, sans-serif; font-feature-settings: "ss01","cv11"; }

/* ───── Typography helpers ────────────────────────────────── */
.font-display { font-family: "Instrument Serif", ui-serif, Georgia, serif; font-weight: 400; letter-spacing: -0.01em; }
.font-display-i { font-family: "Instrument Serif", ui-serif, Georgia, serif; font-style: italic; font-weight: 400; }
.font-mono { font-family: "Geist Mono", ui-monospace, monospace; }

.kicker {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}

/* ───── Layout helpers ────────────────────────────────────── */
.container-page { max-width: 1320px; margin-inline: auto; padding-inline: 24px; }
@media (min-width: 768px)  { .container-page { padding-inline: 40px; } }
@media (min-width: 1280px) { .container-page { padding-inline: 56px; } }

.hairline { border-color: var(--line); }
.hairline-2 { border-color: var(--line-2); }

/* ───── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap; cursor: pointer; border: 1px solid transparent;
}
.btn .arrow {
  display: inline-flex; width: 22px; height: 22px; border-radius: 999px;
  align-items: center; justify-content: center;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.btn:hover .arrow { transform: translateX(3px) rotate(-45deg); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary .arrow { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover .arrow { background: var(--ink); color: var(--bg); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost .arrow { background: transparent; border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-ghost:hover .arrow { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ───── Service card hover ────────────────────────────────── */
.svc-card { position: relative; overflow: hidden; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.svc-card .svc-bg {
  position: absolute; inset: 0;
  background: var(--ink); color: var(--bg);
  transform: translateY(101%); transition: transform .6s cubic-bezier(.2,.8,.2,1);
  z-index: 0;
}
.svc-card:hover .svc-bg { transform: translateY(0); }
.svc-card > * { position: relative; z-index: 1; }
.svc-card:hover .svc-num,
.svc-card:hover .svc-title,
.svc-card:hover .svc-desc,
.svc-card:hover .svc-meta,
.svc-card:hover .svc-mark { color: var(--bg); }
.svc-card:hover .svc-mark { border-color: var(--bg); }

/* ───── Marquee ──────────────────────────────────────────── */
.marquee { display: flex; gap: 0; overflow: hidden; mask-image: linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); }
.marquee-track {
  display: flex; gap: 0; flex-shrink: 0;
  animation: marquee 38s linear infinite;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ───── Tickers and dots ──────────────────────────────────── */
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.live-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 999px; box-shadow: 0 0 0 4px rgba(226,80,43,.18); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(226,80,43,.18); }
  50%     { box-shadow: 0 0 0 8px rgba(226,80,43,.04); }
}

/* ───── Form fields ───────────────────────────────────────── */
.field {
  width: 100%; background: transparent;
  border: 0; border-bottom: 1px solid var(--line-2);
  padding: 16px 0; font-size: 16px; color: var(--ink);
  outline: none; transition: border-color .25s ease;
  font-family: inherit;
}
.field::placeholder { color: var(--muted); }
.field:focus { border-color: var(--ink); }
.field-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-family: "Geist Mono", monospace; }

/* ───── Avatar gradients (no external images) ─────────────── */
.av { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 14px; letter-spacing: -0.01em; border-radius: 999px; flex-shrink: 0; }
.av-1 { background: radial-gradient(120% 120% at 30% 20%, #F2B49A, #C24A26); }
.av-2 { background: radial-gradient(120% 120% at 30% 20%, #C7C9CC, #2E3338); }
.av-3 { background: radial-gradient(120% 120% at 30% 20%, #E7D6B5, #6B5638); }
.av-4 { background: radial-gradient(120% 120% at 30% 20%, #A6C8B9, #2E5A47); }
.av-5 { background: radial-gradient(120% 120% at 30% 20%, #D6BBE0, #563D63); }
.av-6 { background: radial-gradient(120% 120% at 30% 20%, #ABC7E0, #2C4761); }

/* ───── Animated reveals ──────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ───── Header link underline ─────────────────────────────── */
.nav-link {
  position: relative; padding: 6px 2px; color: var(--ink-2);
  transition: color .25s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1px;
  background: var(--accent); transition: right .35s cubic-bezier(.2,.7,.2,1);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { right: 0; }

/* ───── Spider mark glyph used in logo ───────────────────── */
.mark-glyph { font-family: "Instrument Serif", serif; font-style: italic; line-height: 1; }

/* ───── Workflow timeline rule ────────────────────────────── */
.wf-row { border-top: 1px solid var(--line); }
.wf-row:last-child { border-bottom: 1px solid var(--line); }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Selection */
::selection { background: var(--accent); color: var(--accent-ink); }
