/* The Fifth Kind — shared styles for service pages, blog, work, about.
   Mirrors the homepage tokens (index.html keeps its own inline CSS). */
:root {
  --ink: #0a0a0f; --ink-2: #101017; --ink-3: #16161f;
  --line: rgba(255,255,255,.09); --line-strong: rgba(255,255,255,.16);
  --paper: #f5f4f0; --muted: #a3a2ab;
  --orange: #f97316; --amber: #f59e0b; --indigo: #6366f1; --emerald: #10b981;
  --grad: linear-gradient(92deg, #f97316 10%, #f59e0b 60%, #fbbf24 95%);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--ink); color: var(--paper); font-family: var(--body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: var(--orange); }
::selection { background: var(--orange); color: var(--ink); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 6vw; }
.narrow { max-width: 780px; }

/* header */
header.site { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(14px); background: rgba(10,10,15,.82); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 20px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--paper); text-decoration: none; white-space: nowrap; }
.logo .fifth { color: var(--orange); }
.nav ul { display: flex; gap: 24px; list-style: none; }
.nav ul a, .nav .btn { white-space: nowrap; }
.nav ul a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--paper); }
.menu { display: none; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--body); font-weight: 600; font-size: 15px; padding: 13px 26px; border-radius: 100px; text-decoration: none; cursor: pointer; border: none; transition: transform .2s, box-shadow .2s; }
.btn-orange { background: var(--grad); color: #1a0e02; }
.btn-orange:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(249,115,22,.35); }
.btn-ghost { background: transparent; color: var(--paper); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.nav .btn { padding: 9px 20px; font-size: 14px; }
@media (max-width: 1120px) {
  .nav > ul, .nav > .btn { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; color: var(--paper); font-weight: 600; font-size: 15px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 100px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu ul { display: flex; flex-direction: column; gap: 0; position: absolute; right: 0; top: 48px; background: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 14px; padding: 8px; min-width: 240px; list-style: none; }
  .menu ul a { display: block; padding: 10px 12px; color: var(--paper); text-decoration: none; border-radius: 8px; }
  .menu ul a:hover { background: var(--ink-3); }
}

/* breadcrumbs */
.crumbs { font-size: 13px; color: var(--muted); padding-top: 26px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--orange); }
.crumbs span { margin: 0 8px; opacity: .5; }

/* hero */
.page-hero { padding: 34px 0 56px; border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--orange); font-weight: 600; display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--orange); }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -.025em; margin-bottom: 22px; text-wrap: balance; max-width: 18ch; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: .06em; }
.answer { font-size: 19px; color: #d9d8d3; max-width: 64ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-facts span { font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 100px; padding: 6px 14px; }

/* sections */
section.block { padding: 72px 0; border-bottom: 1px solid var(--line); }
section.block:last-of-type { border-bottom: 0; }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.8vw, 44px); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 18px; text-wrap: balance; }
h3 { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.25; margin-bottom: 8px; }
.lede { color: var(--muted); font-size: 18px; max-width: 62ch; margin-bottom: 32px; }

/* prose (blog + long copy) */
.prose { max-width: 720px; }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 56px; font-size: clamp(26px, 3.2vw, 36px); }
.prose h3 { margin-top: 34px; }
.prose p, .prose li { color: #dcdbd6; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--paper); }
.prose blockquote { border-left: 3px solid var(--orange); padding: 4px 0 4px 18px; color: var(--muted); }
.prose .note { background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; font-size: 16px; }
.tldr { background: linear-gradient(135deg, rgba(249,115,22,.12), rgba(99,102,241,.06)); border: 1px solid rgba(249,115,22,.3); border-radius: 14px; padding: 20px 22px; }
.tldr b { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.toc { background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; font-size: 15px; }
.toc ol { padding-left: 20px; }
.toc a { color: var(--paper); text-decoration: none; }
.toc a:hover { color: var(--orange); }
.byline { font-size: 14px; color: var(--muted); margin-top: 6px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--ink-2); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* cards */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.card p { color: var(--muted); font-size: 16px; }
a.card { text-decoration: none; color: var(--paper); transition: border-color .2s, transform .2s; }
a.card:hover { border-color: rgba(249,115,22,.5); transform: translateY(-3px); }
.card .tag { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; display: block; }
.card .more { display: inline-block; margin-top: 14px; color: var(--orange); font-weight: 600; font-size: 14.5px; }

/* steps */
.steps { list-style: none; display: grid; gap: 14px; counter-reset: s; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: s; background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-weight: 800; color: var(--orange); font-size: 14px; display: block; margin-bottom: 8px; }
.steps li p { color: var(--muted); font-size: 15.5px; }

/* checks */
.checks { list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.checks li { padding-left: 30px; position: relative; color: #dcdbd6; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--emerald); font-weight: 700; }

/* videos */
.vids { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.vid { position: relative; border-radius: 14px; overflow: hidden; background: var(--ink-3); border: 1px solid var(--line); cursor: pointer; aspect-ratio: 9 / 16; }
.vid.wide { aspect-ratio: 16 / 9; grid-column: span 2; }
.vid img, .vid video { width: 100%; height: 100%; object-fit: cover; }
.vid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.85)); font-size: 14px; font-weight: 600; }
.vid figcaption small { display: block; color: var(--orange); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.vid .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 58px; height: 58px; border-radius: 50%; background: rgba(249,115,22,.92); display: grid; place-items: center; }
.vid.playing figcaption, .vid.playing .play { display: none; }
@media (max-width: 560px) { .vid.wide { grid-column: auto; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { color: var(--muted); padding-top: 10px; max-width: 70ch; }

/* CTA band */
.cta-band { margin: 72px 0; padding: 48px; border-radius: 22px; background: radial-gradient(120% 140% at 0% 0%, rgba(249,115,22,.22), transparent 55%), var(--ink-2); border: 1px solid rgba(249,115,22,.28); }
.cta-band h2 { max-width: 20ch; }
.cta-band p { color: var(--muted); max-width: 58ch; }
@media (max-width: 560px) { .cta-band { padding: 30px 22px; } }

/* related */
.related { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.related a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--paper); font-weight: 600; font-size: 15.5px; }
.related a span { display: block; color: var(--muted); font-weight: 400; font-size: 13.5px; margin-top: 4px; }
.related a:hover { border-color: var(--orange); }

/* lead form */
.lead { display: grid; gap: 12px; max-width: 560px; }
.lead label { font-size: 13px; color: var(--muted); }
.lead input, .lead select, .lead textarea { width: 100%; background: var(--ink-3); color: var(--paper); border: 1px solid var(--line-strong); border-radius: 10px; padding: 13px 14px; font: inherit; font-size: 16px; }
.lead input:focus, .lead select:focus, .lead textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }

/* footer */
footer.site { border-top: 1px solid var(--line); padding: 64px 0 110px; margin-top: 40px; }
.f-grid { display: grid; gap: 36px; grid-template-columns: 1.4fr repeat(3, 1fr); }
.f-grid p { color: var(--muted); font-size: 15px; margin-top: 12px; max-width: 34ch; }
.f-grid address { font-style: normal; color: var(--muted); font-size: 14px; margin-top: 14px; }
.f-grid address a { color: var(--muted); }
.f-col h4 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.f-col ul { list-style: none; display: grid; gap: 8px; }
.f-col a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.f-col a:hover { color: var(--paper); }
.f-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 13px; }
@media (max-width: 860px) { .f-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .f-grid { grid-template-columns: 1fr; } }

/* floating WhatsApp + mobile bar */
.wa-float { position: fixed; right: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.4); z-index: 90; }
.mob-cta { display: none; }
@media (max-width: 560px) {
  .wa-float { display: none; }
  .mob-cta { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(10,10,15,.94); border-top: 1px solid var(--line); z-index: 90; }
  .mob-cta .btn { flex: 1; justify-content: center; padding: 12px; }
}
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
