/* ============================================================
   ANCESTORS MOBILE l — Serrekunda, Banjul
   Composition: clashing warm neons on near-black, typographic
   collage headline, book-spread layout with page-turn nav,
   dictated-quote signature, single accent-block reveal.
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-raise: #121212;
  --ink: #ffffff;
  --ink-dim: #b9b3ad;
  --ink-faint: #7d7772;
  --accent-a: #ff2f92;
  --accent-b: #ff8a00;
  --accent-c: #f4ff33;
  --signal: #ffffff;
  --rule: rgba(255, 255, 255, 0.14);
  --gutter: 4px;
  --pad: clamp(1.15rem, 4vw, 3.25rem);
  --maxw: 1180px;
  --step--1: clamp(0.78rem, 0.74rem + 0.2vw, 0.9rem);
  --step-0: clamp(0.98rem, 0.93rem + 0.3vw, 1.12rem);
  --step-1: clamp(1.25rem, 1.1rem + 0.8vw, 1.7rem);
  --step-2: clamp(1.7rem, 1.35rem + 1.8vw, 2.9rem);
  --step-3: clamp(2.4rem, 1.6rem + 4.4vw, 5.4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  font-variation-settings: "wdth" 100, "wght" 400;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 { margin: 0; line-height: 1.02; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--accent-c);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

/* ---------- view transitions between pages/sections ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) {
  animation: vt-out 320ms cubic-bezier(.4, 0, .9, .3) both;
}
::view-transition-new(root) {
  animation: vt-in 420ms cubic-bezier(.2, .7, .1, 1) both;
}
@keyframes vt-out { to { opacity: 0; transform: translateX(-2.5%) scale(.99); } }
@keyframes vt-in  { from { opacity: 0; transform: translateX(2.5%) scale(.99); } }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 62px;
  padding-block: 0.55rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-variation-settings: "wdth" 88, "wght" 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.brand-mark {
  width: 12px; height: 12px;
  background: var(--accent-a);
  box-shadow: 6px 0 0 var(--accent-b), 12px 0 0 var(--accent-c);
  margin-right: 12px;
  flex: none;
}
.brand small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  font-variation-settings: "wdth" 100, "wght" 400;
  text-transform: uppercase;
}
.head-nav { display: flex; align-items: center; gap: 0.35rem; }
.head-nav a {
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.7rem 0.7rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink-dim);
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.head-nav a:hover { color: var(--ink); border-bottom-color: var(--accent-b); }
.head-nav .call-link {
  color: var(--bg);
  background: var(--accent-c);
  font-variation-settings: "wdth" 92, "wght" 700;
  border-bottom-color: transparent;
  padding-inline: 0.9rem;
}
.head-nav .call-link:hover { background: var(--signal); color: var(--bg); }
@media (max-width: 720px) {
  .head-nav a:not(.call-link) { display: none; }
}

/* ---------- book spread ---------- */
.spread {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 900px) {
  .spread { grid-template-columns: 1fr var(--gutter) 1fr; }
}
.leaf { padding: clamp(1.6rem, 4vw, 3.4rem) var(--pad); min-width: 0; }
.leaf--left { border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) {
  .leaf--left { border-bottom: 0; border-right: 0; }
}
.spine {
  background: linear-gradient(180deg, transparent, var(--rule) 12%, var(--rule) 88%, transparent);
  position: relative;
}
@media (min-width: 900px) {
  .spine::after {
    content: "";
    position: absolute;
    inset: 0 -14px;
    background: linear-gradient(90deg, rgba(0,0,0,.55), transparent 45%, transparent 55%, rgba(0,0,0,.55));
    pointer-events: none;
  }
}
@media (max-width: 899px) {
  .spine { height: 1px; background: var(--rule); }
}

/* page-turn: content slides sideways when a section is targeted */
.turnable { animation: none; }
.turnable:target { animation: pageTurn 520ms cubic-bezier(.2, .7, .1, 1) both; }
@keyframes pageTurn {
  from { opacity: 0; transform: translateX(3.5%) rotateY(-2deg); }
  to   { opacity: 1; transform: none; }
}

/* ---------- eyebrow / markers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.1rem;
  font-variation-settings: "wdth" 100, "wght" 500;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent-b);
  flex: none;
}

/* ---------- collage headline ---------- */
.collage {
  font-size: var(--step-3);
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.collage span { display: inline-block; margin-right: 0.18em; }
.collage .w1 { font-variation-settings: "wdth" 78, "wght" 800; }
.collage .w2 { font-variation-settings: "wdth" 118, "wght" 300; color: var(--accent-b); }
.collage .w3 { font-variation-settings: "wdth" 92, "wght" 700; }
.collage .w4 {
  font-variation-settings: "wdth" 130, "wght" 200;
  -webkit-text-stroke: 1.5px var(--accent-a);
  color: transparent;
}
.collage .w5 { font-variation-settings: "wdth" 84, "wght" 900; color: var(--accent-c); }

/* ---------- accent block reveal (single signature moment) ---------- */
.accent-block {
  display: inline-block;
  background: var(--accent-a);
  color: var(--bg);
  padding: 0.06em 0.28em 0.12em;
  font-variation-settings: "wdth" 88, "wght" 800;
  animation: revealFromLeft 800ms cubic-bezier(.2, .7, .1, 1) both;
  animation-timeline: view();
  animation-range: entry 10% cover 34%;
}
@keyframes revealFromLeft {
  from { clip-path: inset(0 100% 0 0); background: var(--signal); }
  to   { clip-path: inset(0 0 0 0); background: var(--accent-a); }
}

/* ---------- dictated quote ---------- */
.dictated {
  font-size: var(--step-2);
  line-height: 1.18;
  font-variation-settings: "wdth" 96, "wght" 500;
  max-width: 22ch;
  margin: 0;
  text-wrap: pretty;
}
.dictated .dw {
  display: inline-block;
  opacity: 0;
  animation: dictate 420ms ease-out both;
  animation-delay: calc(var(--i) * 190ms + 260ms);
}
.dictated .dw::after {
  content: "";
  display: inline-block;
  width: 0.09em;
  height: 0.92em;
  background: var(--accent-c);
  margin-left: 0.06em;
  vertical-align: -0.08em;
  animation: caret 900ms steps(1) infinite;
}
.dictated .dw:last-child::after { animation: caret 900ms steps(1) infinite; }
@keyframes dictate { from { opacity: 0; transform: translateY(0.22em); } to { opacity: 1; transform: none; } }
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.quote-attr {
  margin-top: 1.4rem;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  text-decoration: none;
  font-variation-settings: "wdth" 92, "wght" 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  border: 2px solid var(--accent-c);
  color: var(--accent-c);
  background: transparent;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn:hover { background: var(--accent-c); color: var(--bg); }
.btn--solid { background: var(--accent-c); color: var(--bg); }
.btn--solid:hover { background: var(--signal); border-color: var(--signal); color: var(--bg); }
.btn--ghost { border-color: var(--rule); color: var(--ink); }
.btn--ghost:hover { background: var(--accent-b); border-color: var(--accent-b); color: var(--bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }

/* ---------- stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
.stat { background: var(--bg); padding: 1.5rem var(--pad); }
.stat b {
  display: block;
  font-size: var(--step-2);
  font-variation-settings: "wdth" 82, "wght" 800;
  color: var(--accent-b);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- section shell ---------- */
.section { padding-block: clamp(2.6rem, 7vw, 5.5rem); border-bottom: 1px solid var(--rule); }
.section-head { margin-bottom: 2.2rem; max-width: 62ch; }
.section-head h2 { font-size: var(--step-2); text-transform: uppercase; }
.section-head p { color: var(--ink-dim); margin-top: 0.9rem; }

/* ---------- services ---------- */
.services {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.service {
  background: var(--bg);
  padding: 1.6rem 1.4rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: background 200ms ease;
}
.service:hover { background: var(--bg-raise); }
.service .num {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent-a);
  font-variation-settings: "wdth" 100, "wght" 700;
}
.service h3 {
  font-size: var(--step-1);
  font-variation-settings: "wdth" 88, "wght" 700;
  text-transform: uppercase;
}
.service p { color: var(--ink-dim); font-size: 0.95rem; margin: 0; }
.service .meta {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--rule);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-c);
}

/* ---------- photo band ---------- */
.photo-band { position: relative; border-bottom: 1px solid var(--rule); }
.photo-band img { width: 100%; height: clamp(240px, 42vw, 460px); object-fit: cover; filter: saturate(1.05) contrast(1.05); }
.photo-band figcaption {
  position: absolute;
  left: var(--pad);
  bottom: 1rem;
  right: var(--pad);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9);
}

/* ---------- coverage / areas ---------- */
.areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.6rem 2rem;
}
.area h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-variation-settings: "wdth" 88, "wght" 700;
  margin-bottom: 0.5rem;
  color: var(--accent-b);
}
.area p { color: var(--ink-dim); font-size: 0.92rem; margin: 0; }

/* ---------- two-column detail ---------- */
.detail-grid {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .detail-grid { grid-template-columns: 1.15fr 0.85fr; }
}
.detail-grid h3 {
  font-size: var(--step-1);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  font-variation-settings: "wdth" 88, "wght" 700;
}
.detail-grid p { color: var(--ink-dim); }
.pull {
  border-left: 3px solid var(--accent-a);
  padding-left: 1.1rem;
  margin: 1.6rem 0 0;
  font-size: var(--step-1);
  line-height: 1.3;
  font-variation-settings: "wdth" 96, "wght" 500;
  color: var(--ink);
}

/* ---------- hours table ---------- */
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td {
  text-align: left;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.92rem;
}
.hours th {
  font-variation-settings: "wdth" 88, "wght" 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 400;
}
.hours td { text-align: right; color: var(--accent-c); font-variation-settings: "wdth" 92, "wght" 600; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours-note { margin-top: 1rem; font-size: 0.85rem; color: var(--ink-faint); }

/* ---------- contact panel ---------- */
.contact-panel {
  border: 1px solid var(--rule);
  background: var(--bg-raise);
  padding: clamp(1.5rem, 4vw, 2.6rem);
}
.contact-phone {
  display: inline-block;
  font-size: var(--step-2);
  font-variation-settings: "wdth" 84, "wght" 800;
  text-decoration: none;
  color: var(--accent-c);
  letter-spacing: -0.01em;
  margin: 0.3rem 0 0.6rem;
  border-bottom: 3px solid transparent;
  transition: border-color 160ms ease, color 160ms ease;
}
.contact-phone:hover { border-bottom-color: var(--accent-a); color: var(--signal); }
.contact-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list dt {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.3rem;
}
.contact-list dd { margin: 0; font-size: 1rem; }
.contact-list a { color: var(--accent-b); text-decoration: none; border-bottom: 1px solid currentColor; }
.contact-list a:hover { color: var(--signal); }
.no-form-note {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--rule);
  font-size: 0.86rem;
  color: var(--ink-faint);
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.faq details { background: var(--bg); padding: 1.1rem 1.3rem; }
.faq summary {
  cursor: pointer;
  font-variation-settings: "wdth" 90, "wght" 600;
  text-transform: uppercase;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.faq summary::marker { color: var(--accent-a); }
.faq details[open] summary { color: var(--accent-c); }
.faq p { margin-top: 0.8rem; color: var(--ink-dim); font-size: 0.94rem; }

/* ---------- footer ---------- */
.site-foot { padding-block: 2.6rem 5rem; }
.foot-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 2rem;
}
.foot-grid h3 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.7rem;
  font-variation-settings: "wdth" 100, "wght" 500;
}
.foot-grid p, .foot-grid a { font-size: 0.9rem; color: var(--ink-dim); text-decoration: none; }
.foot-grid a:hover { color: var(--accent-c); }
.claim-banner {
  display: block;
  font-size: 0.78rem;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--rule);
  color: var(--ink-dim);
  text-decoration: none;
  margin-bottom: 1.2rem;
  transition: background 160ms ease, color 160ms ease;
}
.claim-banner:hover { background: rgba(255, 255, 255, 0.1); color: var(--ink); }
.foot-base {
  border-top: 1px solid var(--rule);
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--ink-faint);
}
.attribution { position: static; opacity: 1; font-size: 0.76rem; }
.attribution a { color: var(--ink-faint); text-decoration: none; }
.attribution a:hover { color: var(--accent-c); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dictated .dw { opacity: 1; animation: none; }
  .dictated .dw::after { animation: none; opacity: 0; }
  .accent-block { animation: none; clip-path: none; background: var(--accent-a); }
  .turnable:target { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
