/* ============================================================
   capetownatlantisquads.co.za — WildX Adventures · Atlantis Dunes
   Theme: "High-contrast cinematic — white-sand edition"  (v3)
   White body, obsidian bands (nav / hero / reviews / footer),
   claw-red accent (logo theme), Syne + Inter type.
   One stylesheet for every page. Edit here, fix everywhere.

   v3: wrapped-flex margin chains replaced with gap (kills the
   indented-second-row padding bug). Mobile rhythm tightened.
   v4: red claw logo RESTORED at the client's request — nav + footer now
   use assets/logo.png (repo copy, no third-party host). Accent system
   recoloured amber→logo-theme red: --red #e01212 (fills, AA with white),
   --red-hot #ff1a1a (highlights on obsidian), --red-deep #b31414
   (links on white). Favicon, tears and slot art follow.
   v5: card titles retuned (18.5px, flex-shared row — price tag stays put);
   chat dock added: greeting bubble at 5s → WhatsApp + Email options slide
   out, red-tint icons, hover shows true colours; fab restyled to the
   black disc / white glyph / separated red ring lockup.
   v6: the electric dune amber returns as the FRAME colour (client ask).
   Every photo wears it — price-card listings (.card 2px + .imgbox rule),
   gallery photos (.ph-frame 3px), activities section heroes (.sechero 3px).
   Red stays the action colour; amber now belongs to the photos. Full-bleed
   hero, map and video slots stay unframed.
   v7: videos join images in the global media sizing (gallery mp4 blew out
   vertically — video was missing from the img/svg/iframe max-width rule,
   so width/height attributes rendered it at raw 800x1078 inside a ~370px
   column, clipped at the sides and full height). Video now sizes exactly
   like an img: capped to its frame, proportional height. Nothing else touched.

   WANT THE BLACK VERSION BACK? Every colour is a token.
   Add  data-theme="dark"  to the <html> tag on any page and the
   light tokens below are overridden by the dark block — no other
   changes needed.
   ============================================================ */

:root {
  /* ---- light cinematic (active) ---- */
  --bg: #ffffff;             /* page background */
  --bg-warm: #f7f5f0;        /* warm dune-tint band */
  --surface: #ffffff;        /* cards / panels on light */
  --obsidian: #0f1012;       /* nav, hero base, feature bands, footer */
  --obsidian-2: #17181c;     /* raised dark surface */
  --ink: #0f1012;            /* headings on light */
  --text: #3f3f46;           /* body on light */
  --mute: #71717a;           /* muted on light */
  --text-inv: #f4f4f5;       /* body on obsidian */
  --mute-inv: #a1a1aa;       /* muted on obsidian (spec grey) */
  --red: #e01212;           /* claw red (logo theme) — fills, tags, stars; 4.9:1 with white */
  --red-hot: #ff1a1a;       /* hot claw red — highlights + kickers on obsidian */
  --red-deep: #b31414;      /* deep claw red — links + kickers on white (AA contrast) */
  --amber: #f59e0b;         /* electric dune amber — photo frames (back by popular demand, v6) */
  --line: rgba(15, 16, 18, 0.10);        /* hairline on light */
  --line-inv: rgba(255, 255, 255, 0.12); /* hairline on obsidian */
  --disp: "Syne", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --shadow: 0 10px 30px rgba(15, 16, 18, 0.08);
  --shadow-lift: 0 18px 44px rgba(15, 16, 18, 0.14);
  --r: 6px;                  /* hard edges. nothing rounder than this */
}

/* ---- dark cinematic (dormant) — activates with <html data-theme="dark"> ---- */
[data-theme="dark"] {
  --bg: #0f1012;
  --bg-warm: #141519;
  --surface: #17181c;
  --ink: #ffffff;
  --text: #d4d4d8;
  --mute: #a1a1aa;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lift: 0 18px 44px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { overflow-x: clip; }   /* sticky-safe. never overflow-x:hidden */

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

::selection { background: var(--red); color: #ffffff; }

img, svg, iframe, video { display: block; max-width: 100%; }
img, video { height: auto; }

a { color: var(--red-deep); text-decoration: none; }
a:hover { color: var(--ink); }

/* grid + flex children never blow out their tracks */
[grid] > *, .grid > *, .row > *, .cards > * { min-width: 0; }

h1, h2, h3, .disp {
  font-family: var(--disp);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.2px;
  color: var(--ink);
}

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--red); color: #ffffff; padding: 10px 16px; font-weight: 700;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- buttons: base ALWAYS transparent (native white kill) ---------- */
.btn {
  background: transparent;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: var(--r);
  display: inline-block;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-solid { background: var(--red); color: #ffffff; border-color: var(--red); }
.btn-solid:hover { background: var(--obsidian); border-color: var(--obsidian); color: var(--red-hot); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #ffffff; }
.btn-ghost:hover { background: var(--red); border-color: var(--red); color: #ffffff; }
.btn-dark { background: var(--obsidian); border-color: var(--obsidian); color: #ffffff; }
.btn-dark:hover { background: var(--red); border-color: var(--red); color: #ffffff; }
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* transparent base buttons sitting on obsidian bands (review cards etc.) */
.sec-black .btn:not(.btn-solid),
.phero .btn:not(.btn-solid):not(.btn-ghost) { border-color: rgba(255, 255, 255, 0.5); color: #ffffff; }
.sec-black .btn:not(.btn-solid):hover,
.phero .btn:not(.btn-solid):not(.btn-ghost):hover {
  background: var(--red); border-color: var(--red); color: #ffffff;
}

/* ---------- logo (red claw wordmark, repo copy) + text fallback ----------
   assets/logo.png ships with the site — no postimg dependency. Nav uses
   .logo-img, footer .logo-foot. The old text wordmark stays below as a
   documented fallback if the image is ever unavailable. */
.logo-img { display: block; height: 38px; width: auto; }
.logo-foot { display: block; height: 54px; width: auto; }
.wordmark {
  font-family: var(--disp); font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.5px; color: #ffffff; font-size: 19px; line-height: 1;
  white-space: nowrap;
}
.wordmark b { color: var(--red-hot); font-weight: 800; }
.wordmark-foot { font-size: 24px; letter-spacing: 2px; }

/* ---------- nav (persistent, identical markup on every page) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 16, 18, 0.97);
  border-bottom: 1px solid var(--line-inv);
}
.nav-in {
  display: flex; flex-wrap: wrap; align-items: center;
  padding: 12px 20px; max-width: 1180px; margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; min-width: 0; margin-right: 20px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
.nav-links a {
  color: rgba(255, 255, 255, 0.85); font-weight: 700; font-size: 14px;
  letter-spacing: 1.2px; text-transform: uppercase;
  padding: 6px 0; border-bottom: 3px solid transparent;
}
.nav-links a:hover { color: #ffffff; border-bottom-color: var(--red-hot); }
.nav-links a[aria-current="page"] { color: #ffffff; border-bottom-color: var(--red-hot); }
.nav-cta { margin-left: auto; }
.nav-cta .btn { font-size: 12px; padding: 10px 16px; }
/* tablets + small laptops: wordmark + CTA on row 1, links on a hairline row 2
   (Syne wordmark is wide — a one-row nav only fits from ~1000px up) */
@media (min-width: 701px) and (max-width: 1000px) {
  .nav-in { padding: 12px 16px 10px; }
  .nav-logo { margin-right: 0; }
  .logo-img { height: 34px; }
  .nav-cta { order: 2; margin-left: auto; }
  .nav-links {
    order: 3; width: 100%; margin-top: 10px; padding-top: 10px;
    border-top: 1px solid var(--line-inv); gap: 4px 20px;
  }
  .nav-links a { font-size: 12.5px; letter-spacing: 1px; padding: 4px 0; }
}
@media (max-width: 700px) {
  .nav-cta { display: none; } /* the floating WhatsApp button carries booking on mobile */
  .nav-in { padding: 12px 16px 10px; }
  .nav-logo { margin-right: 0; }
  .logo-img { height: 30px; }
  /* deliberate second row: wordmark above, hairline, then the four links */
  .nav-links {
    width: 100%; margin-top: 10px; padding-top: 10px;
    border-top: 1px solid var(--line-inv); gap: 4px 18px;
  }
  .nav-links a { font-size: 12.5px; letter-spacing: 1px; padding: 4px 0; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex; align-items: flex-end;
  background: var(--obsidian);
  overflow: hidden;
}
.hero-imgbox { position: absolute; inset: 0; }
.hero-imgbox img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,16,18,0.5) 0%, rgba(15,16,18,0.22) 42%, rgba(15,16,18,0.92) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 40px 0 56px; width: 100%; }
.eyebrow {
  display: inline-block; font-weight: 800; font-size: 13px;
  letter-spacing: 3px; text-transform: uppercase; color: var(--red-hot);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(40px, 7.5vw, 88px);
  color: #ffffff;
  max-width: 14ch;
}
.hero h1 .x { color: var(--red-hot); }
.hero-sub { max-width: 52ch; font-size: clamp(16px, 2.4vw, 19px); color: #e4e4e7; margin-top: 18px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.badge {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 16, 18, 0.72);
  border-radius: var(--r);
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-inv);
  min-width: 0;
}
.badge b { color: #ffffff; }
.badge .star { color: var(--red-hot); }

/* ---------- torn X divider ---------- */
/* tear-red: normal-flow strip between the dark hero and the white page.
   Its inline polygon is claw red #ff1a1a since v4 (the red came back).
   tear-on-sand: sits INSIDE .phero, transparent strip, white inline polygon
   tears the obsidian page-hero open into the light content below. */
.tear { display: block; width: 100%; height: 40px; }
.tear-red { background: var(--obsidian); }
.tear-on-sand { background: transparent; }

/* ---------- sections ---------- */
.sec { padding: 76px 0; }
.sec-sand { background: var(--bg); color: var(--text); }          /* white band */
.sec-warm { background: var(--bg-warm); color: var(--text); }     /* warm dune-tint band */
.sec-panel { background: var(--bg-warm); color: var(--text); }    /* legacy name, same tint */
.sec-black { background: var(--obsidian); color: var(--text-inv); }
.sec-head { margin-bottom: 36px; max-width: 720px; }
.sec-kicker {
  font-weight: 800; font-size: 12.5px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--red-hot); margin-bottom: 10px; display: block;
}
.sec-sand .sec-kicker, .sec-warm .sec-kicker, .sec-panel .sec-kicker { color: var(--red-deep); }
.sec-head h2 { font-size: clamp(28px, 4.6vw, 48px); color: var(--ink); }
.sec-black .sec-head h2 { color: #ffffff; }
.sec-head p { margin-top: 12px; font-size: 17px; max-width: 60ch; }
.sec-black .sec-head p { color: var(--mute-inv); }

/* ---------- cards grid (grid gap safe; flex uses margins) ---------- */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.grid-2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* activity card — the clean package grid */
.card {
  background: var(--surface);
  border: 2px solid var(--amber); /* framed listing — dune amber */
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift), 0 6px 18px rgba(245, 158, 11, 0.22); }
.imgbox { position: relative; padding-top: 75%; overflow: hidden; background: var(--bg-warm); border-bottom: 2px solid var(--amber); }
.imgbox img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s ease; }
.card:hover .imgbox img { transform: scale(1.03); }
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.card-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.card-top > * { min-width: 0; }
/* titles sized so the price tag keeps its place: the title may shrink to its
   longest word (never through one), and if title + tag can't share the row
   the tag wraps below and self-aligns right — a clean price line */
.card-body h3 { font-size: 18.5px; line-height: 1.18; letter-spacing: 0.2px; min-width: min-content; }
.card-top .tag { margin-left: auto; }
.tag {
  display: inline-block; background: var(--red); color: #ffffff;
  font-family: var(--disp); font-weight: 800; font-size: 20px; letter-spacing: 0.5px;
  padding: 6px 14px; border-radius: var(--r);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 96% 100%, 0 100%);
}
.tag-sm { font-size: 17px; padding: 4px 11px; }
.card-lines { margin: 12px 0 14px; padding: 0; list-style: none; flex: 1 1 auto; }
.card-lines li { padding: 3px 0 3px 20px; position: relative; font-size: 14.5px; color: var(--text); }
.card-lines li::before { content: ""; position: absolute; left: 0; top: 11px; width: 9px; height: 9px; background: var(--red); transform: rotate(45deg); }
.card-lines li.no::before { background: var(--mute); }

/* the permit line — tour cost above, mandatory fee below the tear line */
.permit {
  margin: 0 0 16px;
  padding: 10px 2px 0;
  border-top: 1px dashed rgba(15, 16, 18, 0.22);
  font-size: 13px; font-weight: 600; color: var(--mute);
  display: flex; align-items: center; min-width: 0;
}
.permit::before { content: ""; width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); flex: 0 0 auto; margin-right: 8px; margin-top: 1px; }
.card-cta { margin-top: auto; }
.card-cta .btn { width: 100%; text-align: center; }
.card-flag {
  display: inline-block; background: var(--obsidian); color: var(--red-hot);
  font-size: 11.5px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--r); margin-bottom: 12px; align-self: flex-start;
}

/* section hero (activities) */
.sechero { position: relative; padding-top: 42%; overflow: hidden; border-radius: var(--r); border: 3px solid var(--amber); }
.sechero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sechero-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(15,16,18,0) 0%, rgba(15,16,18,0.85) 70%);
  color: #ffffff; font-family: var(--disp); font-weight: 800;
  font-size: clamp(18px, 3vw, 26px); text-transform: uppercase;
}

/* anchor chips (light default; dark variant inside .phero) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-block; border: 1.5px solid rgba(15, 16, 18, 0.2); color: var(--ink);
  font-weight: 700; font-size: 13.5px; letter-spacing: 1px; text-transform: uppercase;
  padding: 9px 16px; border-radius: var(--r); background: var(--surface); min-width: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.chip:hover { background: var(--red); border-color: var(--red); color: #ffffff; }
.phero .chip { background: transparent; border-color: rgba(255, 255, 255, 0.4); color: #ffffff; }
.phero .chip:hover { background: var(--red); border-color: var(--red); color: #ffffff; }

/* note strips */
.note {
  border-left: 5px solid var(--red);
  background: var(--surface);
  border-radius: var(--r);
  padding: 18px 20px;
  color: var(--text);
  font-size: 15px;
  box-shadow: var(--shadow);
}
.note b { color: var(--ink); }
.sec-sand .note { background: var(--bg-warm); }
.sec-black .note { background: var(--obsidian-2); color: var(--text-inv); border-color: var(--red); }
.sec-black .note b { color: #ffffff; }
.note + .note { margin-top: 16px; }
.grid .note + .note { margin-top: 0; } /* inside a grid the gap already separates */

/* reviews (obsidian band) */
.rev-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 820px) { .rev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rev-card {
  background: var(--obsidian-2); border: 1px solid var(--line-inv); border-radius: var(--r);
  padding: 26px; min-width: 0;
}
.rev-score { font-family: var(--disp); font-weight: 800; font-size: 50px; color: #ffffff; line-height: 1; }
.rev-score .star { color: var(--red-hot); font-size: 32px; }
.rev-meta { font-size: 14px; color: var(--mute-inv); margin: 10px 0 16px; }
.rev-src { font-weight: 800; color: var(--text-inv); font-size: 15px; }
.rev-card .btn { margin-top: 18px; }

/* gallery */
.masonry { columns: 1; column-gap: 16px; }
@media (min-width: 560px) { .masonry { columns: 2; } }
@media (min-width: 980px) { .masonry { columns: 3; } }
.masonry > * { margin-bottom: 16px; break-inside: avoid; }
.ph-frame {
  display: block; border-radius: var(--r); overflow: hidden;
  border: 3px solid var(--amber); background: var(--bg-warm); min-width: 0; /* framed photo */
}
.ph-frame img, .ph-frame video { width: 100%; transition: transform 0.2s ease; }
.ph-frame:hover img, .ph-frame:hover video { transform: scale(1.02); }

/* video slots (obsidian band) */
.vidbox { position: relative; padding-top: 56.25%; border-radius: var(--r); overflow: hidden; background: var(--obsidian-2); border: 1px solid var(--line-inv); }
.vid-slot {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 16px;
  color: var(--text-inv);
}
.play { width: 64px; height: 64px; border-radius: 50%; background: var(--red); position: relative; margin-bottom: 14px; }
.play::after { content: ""; position: absolute; left: 26px; top: 19px; border-left: 20px solid #ffffff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.vid-slot span { font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.vid-slot small { color: var(--mute-inv); font-size: 12.5px; margin-top: 4px; }

/* find us */
.mapbox { position: relative; padding-top: 62%; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--bg-warm); }
.mapbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fact { border-top: 1px solid var(--line); padding: 16px 0; }
.fact:first-child { border-top: 0; }
.fact dt { font-weight: 800; font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--red-deep); }
.fact dd { margin-top: 4px; font-size: 16px; color: var(--ink); }
.fact dd a { color: var(--red-deep); font-weight: 700; }
.fact dd a:hover { color: var(--ink); }
.panel-sand { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); min-width: 0; }

/* footer (obsidian close) */
.footer { background: var(--obsidian); border-top: 1px solid var(--line-inv); padding: 56px 0 88px; color: var(--text-inv); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: minmax(0,2fr) minmax(0,1fr) minmax(0,1fr); } }
.footer .wordmark { display: inline-block; margin-bottom: 14px; }
.footer p { font-size: 14px; color: var(--mute-inv); max-width: 40ch; }
.footer h4 { font-family: var(--disp); font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; font-size: 15px; color: #ffffff; margin-bottom: 12px; }
.footer ul { list-style: none; }
.footer li { padding: 3px 0; font-size: 14.5px; }
.footer a { color: #d4d4d8; }
.footer a:hover { color: var(--red-hot); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-inv); font-size: 13px; color: var(--mute-inv); }

/* ---------- floating chat dock ----------
   Black disc, white WhatsApp glyph, separated red ring (logo theme).
   5s after load a greeting bubble pops; the disc toggles two options that
   slide out above it: WhatsApp + Email. Option icons sit in the brand's
   red tint; hover reveals their true colours (WhatsApp green / email white).
   Without JS the disc stays a plain WhatsApp link (fallback kept below). */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--obsidian); border: 0; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(15, 16, 18, 0.35);
  outline: 3px solid var(--red); outline-offset: 3px;
  transition: background 0.18s ease, outline-color 0.18s ease, transform 0.18s ease;
}
.fab svg { width: 30px; height: 30px; fill: #ffffff; }
.fab .ico-x { display: none; }
.fab .ico-x path { fill: none; }
.fab.open .ico-wa { display: none; }
.fab.open .ico-x { display: block; }
.fab:hover { background: #25d366; outline-color: #25d366; transform: scale(1.06); }
.fab::before {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 3px solid var(--red-hot); opacity: 0; animation: fabping 2.4s ease-out infinite;
}
@keyframes fabping {
  0% { transform: scale(1); opacity: 0.75; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}
/* dock wraps disc + slide-out options (JS injects it; no JS = bare disc) */
.fab-dock {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.fab-dock .fab { position: relative; right: auto; bottom: auto; } /* relative keeps flex flow AND anchors the ping to the disc */
.fab-menu { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fab-menu[hidden] { display: none; } /* author display would beat the UA [hidden] rule otherwise */
.fab-opt {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  background: var(--obsidian);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(15, 16, 18, 0.30);
  outline: 2px solid var(--red); outline-offset: 2px;
  opacity: 0; transform: translateY(14px) scale(0.7);
  transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.15s ease, outline-color 0.15s ease;
}
.fab-dock.open .fab-opt { opacity: 1; transform: none; }
.fab-dock.open .fab-opt-wa { transition-delay: 0.03s; }
.fab-dock.open .fab-opt-mail { transition-delay: 0.09s; }
.fab-opt svg { width: 21px; height: 21px; fill: var(--red-hot); transition: fill 0.15s ease; }
.fab-dock.open .fab-opt:hover, .fab-dock.open .fab-opt:focus-visible { transform: scale(1.08); }
.fab-opt-wa:hover, .fab-opt-wa:focus-visible { background: #25d366; outline-color: #25d366; }
.fab-opt-wa:hover svg, .fab-opt-wa:focus-visible svg { fill: #ffffff; }
.fab-opt-mail:hover, .fab-opt-mail:focus-visible { background: #ffffff; outline-color: #ffffff; }
.fab-opt-mail:hover svg, .fab-opt-mail:focus-visible svg { fill: var(--ink); }
.fab-opt-label {
  position: absolute; right: calc(100% + 14px); top: 50%;
  transform: translateY(-50%) translateX(6px); opacity: 0; pointer-events: none;
  background: var(--obsidian); color: #ffffff; font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.5px; padding: 6px 10px; border-radius: var(--r); white-space: nowrap;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.fab-opt:hover .fab-opt-label, .fab-opt:focus-visible .fab-opt-label { opacity: 1; transform: translateY(-50%) translateX(0); }
/* greeting bubble — pops 5s after load, click it for the options */
.fab-bubble {
  position: fixed; right: 16px; bottom: 94px; z-index: 59;
  border: 1px solid var(--line); background: #ffffff; color: var(--ink);
  font-family: var(--body); font-size: 14.5px; font-weight: 700;
  padding: 12px 16px; border-radius: 16px 16px 4px 16px;
  box-shadow: var(--shadow-lift); cursor: pointer;
  display: flex; align-items: center; gap: 9px; text-align: left;
  max-width: min(78vw, 260px);
  animation: bubpop 0.3s ease backwards;
}
.fab-bubble::after {
  content: ""; position: absolute; right: 20px; bottom: -7px; width: 12px; height: 12px;
  background: #ffffff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.fab-bubble .dot { width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); flex: 0 0 auto; }
.fab-bubble:hover { transform: translateY(-2px); }
@keyframes bubpop {
  from { opacity: 0; transform: translateY(10px) scale(0.88); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 400px) {
  .fab { width: 48px; height: 48px; right: 12px; bottom: 12px; }
  .fab svg { width: 26px; height: 26px; }
  .fab-dock { right: 12px; bottom: 12px; }
  .fab-bubble { right: 10px; bottom: 76px; font-size: 13.5px; }
}

/* page hero (inner pages, obsidian band) */
.phero { background: var(--obsidian); padding: 64px 0 48px; position: relative; overflow: hidden; }
.phero h1 { font-size: clamp(34px, 6.4vw, 64px); color: #ffffff; }
.phero p { margin-top: 14px; max-width: 62ch; color: #d4d4d8; font-size: 17px; }
.phero .tear { position: absolute; left: 0; right: 0; bottom: -1px; height: 34px; }

/* reveal system — JS gated, content visible without JS */
html.js .rv { opacity: 0; transform: translateY(16px); transition: opacity 0.2s ease, transform 0.2s ease; }
html.js body.ready .rv.in, html.js body.ready .rv.rv-now { opacity: 1; transform: none; }

/* misc */
[id] { scroll-margin-top: 86px; } /* anchored sections clear the sticky nav */
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; }
.center { text-align: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.small { font-size: 13.5px; }
.mute { color: var(--mute); }
.sec-black .mute, .footer .mute { color: var(--mute-inv); }

/* ---------- mobile rhythm: tighter bands, taller map, safe anchors ---------- */
@media (max-width: 700px) {
  .sec { padding: 56px 0; }
  .sec-head { margin-bottom: 28px; }
  .phero { padding: 48px 0 40px; }
  .hero-content { padding: 32px 0 44px; }
  .tear { height: 30px; }
  .phero .tear { height: 26px; }
  .mapbox { padding-top: 88%; }  /* short map was barely usable on phones */
  .footer { padding: 48px 0 96px; }
  .logo-foot { height: 44px; }
  [id] { scroll-margin-top: 128px; } /* two-row sticky nav clearance */
}

/* 404 page: page is short — carry obsidian below the footer, not white */
.x404 { background: var(--obsidian); }

/* reduced motion kill-switch */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .rv { opacity: 1; transform: none; }
}


/* ---------- v8 · hostsmith footer credit (client watermark) ----------
   Self-contained snippet supplied by the client; styles load once from here.
   Pair with the <a class="hs-credit"> element pasted inside each page's
   .footer-bottom. The flex + margin-left rules push the credit to the right
   of the © row and keep it right-aligned when it wraps on narrow phones. */
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.footer-bottom .hs-credit { margin-left: auto; }
.hs-credit { display: inline-flex; align-items: center; gap: 0; margin: 10px 0 0;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px; line-height: 1; background: #101418; color: #e8eaed;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; padding: 8px 14px;
  text-decoration: none; white-space: nowrap; min-width: 0; }
.hs-credit:hover { border-color: #ea580c; }
.hs-credit .hs-slash { color: #ea580c; font-weight: 700; }
.hs-credit .hs-name { font-weight: 600; }
.hs-credit .hs-cursor { display: inline-block; animation: hsBlink 1.1s infinite; }
.hs-credit .hs-tag { margin-left: 10px; color: #9aa0a6; }
@keyframes hsBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hs-credit .hs-cursor { animation: none; } }
