/* NomadicExperts — public website (templates/site/), loaded after style.css.
 * Theme "Night Caravan" (docs/decisions.md, 2026-11-06). "Go nomad."
 *
 * Built from style.css's tokens. What the website adds on top of the calm app, in
 * Monkeynme's grammar (glow, glass cards, a patterned night background, decorative
 * SVGs, a playful nav) but with our own pieces:
 *
 *   - a starfield: layered CSS radial dots (Monkeynme's dot grid, as stars), subtle on
 *     the whole page, denser and twinkling in the hero; a CSS crescent moon
 *   - glow: sand-gold radial light behind the camel, gold text-shadow on the claim and
 *     the figures, a soft gold halo on primary buttons, a pulse on hover
 *   - glass cards: translucent night-blue with a sand hairline; they lift on hover
 *   - artwork (templates/site/_art.html): the camel mascot, three dune layers with a
 *     caravan of three camels on the ridge, a dune line above the footer
 *   - nav items with sub-labels ("How it works · The Route"), a star cursor on links
 *   - reveal on scroll with CSS only (animation-timeline: view()). Content is VISIBLE
 *     by default: the reveal runs only where the browser supports scroll timelines and
 *     the reader has not asked for reduced motion. No script.
 *
 * Contrast on the website's own grounds (style.css lists the rest):
 *     hero ground #070E22 -> #0B1530; gold glow peak #302F33; terracotta glow #251E31
 *     #F4EFE6 on #302F33 11.51;  #C2BBAE on #302F33 6.91;  #F5B942 claim on #302F33 7.47
 *     #C2BBAE on #251E31 8.35;  #9BA3C0 hero note on #0B1530 7.21
 *     glass card composite #111C40..#142049: #C2BBAE >= 7.76, #F5B942 >= 8.93
 *     #7D86A8 outline of the secondary hero button on #070E22 5.34
 *     stars are 1-1.5 px dots at <= 0.5 alpha on the page (decorative; glass cards
 *     and solid surfaces sit under all running text except headings and the hero)
 *
 * RTL (Arabic): logical properties throughout (margin-inline, padding-inline,
 * inset-inline, text-align: start), so dir="rtl" mirrors the layout. The dunes mirror
 * too. No inline style, no webfont, no external request.
 */

body.site {
  --stars:
    radial-gradient(1px 1px at 23px 41px, rgba(244, 239, 230, 0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 131px 87px, rgba(244, 239, 230, 0.40) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 178px 163px, rgba(245, 185, 66, 0.50) 50%, transparent 51%),
    radial-gradient(1px 1px at 67px 181px, rgba(244, 239, 230, 0.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 199px 17px, rgba(244, 239, 230, 0.30) 50%, transparent 51%);
  background-color: var(--ground);
  background-image: var(--stars);
  background-size: 223px 223px;
}
.site-main { flex: 1 0 auto; }

/* The star cursor over what can be clicked (website only; the app keeps the hand). */
body.site a, body.site button, body.site summary, body.site label[for] {
  cursor: url("/static/cursor-star.svg") 14 14, pointer;
}

/* ─── header ───────────────────────────────────────────────────────────── */

.site-head--public { background: color-mix(in srgb, var(--ground-dark) 86%, transparent); border-bottom-color: var(--rule-dark); }
.site-head--public .wrap { max-width: 1320px; }
.site-head--public .head-menu-body { inset-inline: 0; }
.site-head--public .wordmark { font-size: 1.18rem; }

.nav-l { display: inline; }
.nav-sub {
  display: inline; margin-inline-start: 0.5rem;
  font-size: 0.76rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0.01em;
}
.site-nav a:hover .nav-sub, .site-nav a[aria-current="page"] .nav-sub { color: var(--ink-2); }

.head-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem;
  margin-top: 0.75rem; padding: 0.75rem 0.75rem 0; border-top: 1px solid var(--rule);
}
.head-actions .btn { white-space: nowrap; }
.head-signin {
  display: inline-flex; align-items: baseline; padding: 0.45rem 0.6rem; border-radius: var(--r-ctl);
  color: var(--ink); font-weight: 600; font-size: 0.92rem; text-decoration: none;
}
.head-signin:hover { background: var(--ground-alt); }
.head-signin:hover .nav-sub { color: var(--ink-2); }

.lang-menu { position: relative; }
.lang-menu > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.7rem; border-radius: var(--r-ctl); border: 1px solid var(--ctl-border);
  font-size: 0.86rem; font-weight: 500; color: var(--ink-2);
}
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary:hover { color: var(--ink); background: var(--ground-alt); border-color: var(--brand); }
.lang-code { font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; color: var(--brand-ink); }
.lang-list {
  list-style: none; margin: 0.4rem 0 0; padding: 0.35rem;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.1rem;
  background: var(--ground-dark); border: 1px solid var(--sand-line); border-radius: var(--r-tile);
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.8); min-width: 15rem;
}
.lang-list a { display: block; padding: 0.4rem 0.6rem; border-radius: var(--r-ctl); color: var(--ink-2); text-decoration: none; font-size: 0.9rem; }
.lang-list a:hover { background: var(--ground-alt); color: var(--ink); }
.lang-list a[aria-current="true"] { color: var(--brand-ink); background: var(--brand-pale); font-weight: 600; }

/* Desktop: from 1200px the menu is a row; the nav items stack label over sub-label
   (Monkeynme's "Services / Jungle Tactics"). Below, the "Menu" panel lists them with
   the sub-label beside the label. */
@supports selector(::details-content) {
  @media (min-width: 1200px) {
    .site-head--public .head-menu { flex: 1; margin-inline-start: 0; }
    .site-head--public .head-menu > summary { display: none; }
    .site-head--public .head-menu::details-content { content-visibility: visible; }
    .site-head--public .head-menu-body {
      position: static; display: flex; align-items: center; gap: 1rem;
      padding: 0; background: none; border: 0; box-shadow: none;
    }
    .site-head--public .site-nav { flex-direction: row; gap: 0.15rem; }
    .site-head--public .site-nav a, .head-signin {
      display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem;
      padding: 0.4rem 0.7rem; font-size: 0.93rem; font-weight: 600; color: var(--ink); line-height: 1.15;
    }
    .site-head--public .site-nav a:hover, .head-signin:hover { background: transparent; color: var(--brand-ink); }
    .site-head--public .site-nav a[aria-current="page"] { background: none; color: var(--brand-ink); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
    .nav-sub { margin-inline-start: 0; font-size: 0.72rem; }
    .head-actions { margin: 0; margin-inline-start: auto; padding: 0; border: 0; flex-wrap: nowrap; }
    .lang-list { position: absolute; inset-inline-end: 0; top: 100%; z-index: 50; }
    .lang-name { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  }
}

/* ─── buttons on the website ───────────────────────────────────────────── */

.btn-lg { padding: 0.95rem 1.5rem; min-height: 3.1rem; font-size: 1rem; }
.btn-on-dark { background: transparent; color: var(--on-dark); border-color: var(--ctl-border); }
.btn-on-dark:hover { background: rgba(245, 185, 66, 0.08); border-color: var(--brand); color: var(--on-dark); }
.btn-glow { box-shadow: 0 10px 34px -8px var(--brand-glow); }
.btn-terra { box-shadow: 0 8px 26px -10px rgba(224, 96, 58, 0.55); }
@media (prefers-reduced-motion: no-preference) {
  .btn-glow:hover { animation: ne-sand-pulse 1.4s ease-out infinite; transform: translateY(-1px); }
  .btn-terra:hover { transform: translateY(-1px); }
}
@keyframes ne-sand-pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 185, 66, 0.5), 0 10px 34px -8px var(--brand-glow); }
  100% { box-shadow: 0 0 0 16px rgba(245, 185, 66, 0), 0 10px 34px -8px var(--brand-glow); }
}

/* ─── hero: night sky, moon, glow, camel, dunes ───────────────────────── */

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 5rem 0 10.5rem;
  background-color: var(--ground-dark);
  background-image:
    radial-gradient(ellipse 34% 48% at 78% 46%, rgba(245, 185, 66, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 40% at 6% 96%, rgba(224, 96, 58, 0.12), transparent 70%),
    radial-gradient(1px 1px at 37px 53px, #F4EFE6 50%, transparent 51%),
    radial-gradient(1px 1px at 151px 19px, rgba(244, 239, 230, 0.8) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 97px 131px, #F5B942 50%, transparent 51%),
    radial-gradient(1px 1px at 11px 157px, rgba(244, 239, 230, 0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 173px 97px, rgba(244, 239, 230, 0.7) 50%, transparent 51%),
    linear-gradient(180deg, var(--ground-dark) 0%, var(--ground) 100%);
  background-size: 100% 100%, 100% 100%, 181px 181px, 181px 181px, 181px 181px, 181px 181px, 181px 181px, 100% 100%;
}
/* the crescent moon */
.hero::before {
  content: ""; position: absolute; z-index: -1; top: 3rem; inset-inline-end: 7%;
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  box-shadow: inset -0.85rem 0.4rem 0 0 #F4EFE6, 0 0 48px -6px rgba(245, 185, 66, 0.35);
  transform: rotate(-18deg);
}
[dir="rtl"] .hero::before { box-shadow: inset 0.85rem 0.4rem 0 0 #F4EFE6, 0 0 48px -6px rgba(245, 185, 66, 0.35); transform: rotate(18deg); }
/* a second, twinkling star layer */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 61px 29px, #F4EFE6 50%, transparent 51%),
    radial-gradient(2px 2px at 241px 151px, rgba(245, 185, 66, 0.9) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 187px 263px, #F4EFE6 50%, transparent 51%);
  background-size: 311px 311px;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 2rem; align-items: center;
}
.hero .eyebrow { color: var(--brand-ink); }
.hero-h {
  color: var(--on-dark); max-width: 18ch;
  font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 750; line-height: 1.03; letter-spacing: -0.035em; margin: 0 0 1.25rem;
}
.hero-line { display: block; }
.hero-claim { display: block; color: var(--brand); text-shadow: 0 0 22px rgba(245, 185, 66, 0.35); }
.hero-deck { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--on-dark-2); max-width: 54ch; margin: 0 0 2rem; }
.hero-actions { margin-top: 0; }
.hero-note { margin: 1rem 0 0; font-size: 0.9rem; color: var(--on-dark-3); }
.hero-art { display: flex; justify-content: center; align-self: end; }

.dunes { position: absolute; z-index: 0; inset-inline: 0; bottom: 0; width: 100%; height: 10rem; display: block; }
[dir="rtl"] .dunes { transform: scaleX(-1); }
.dune--back { fill: var(--surface); }
.dune-ridge { fill: none; stroke: var(--brand); stroke-opacity: 0.5; stroke-width: 1.5; }
.dune--mid { fill: var(--ground-alt); }
.dune--front { fill: var(--ground); }
.caravan { color: var(--brand); fill: var(--brand); opacity: 0.85; }
.cc-legs { fill: none; stroke: currentColor; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.caravan-rope { fill: none; stroke: var(--brand); stroke-opacity: 0.6; stroke-width: 1.2; }

@media (max-width: 860px) {
  .hero { padding: 3rem 0 7.5rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 0.5rem; }
  .hero-art { justify-content: flex-end; margin-top: -0.5rem; }
  .hero::before { top: 1.5rem; width: 2.4rem; height: 2.4rem; }
  .dunes { height: 7rem; }
}
@media (max-width: 640px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ─── the camel ────────────────────────────────────────────────────────── */

.camel { display: block; overflow: visible; }
.camel-line { fill: none; stroke: var(--brand); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.camel-body { fill: var(--surface); }
.camel-blanket { fill: var(--terra); stroke: var(--terra); }
.camel-stripe { stroke: var(--brand); stroke-width: 3; }
.camel-smile { stroke-width: 2.5; }
.camel-eye { fill: var(--ink); }
.camel-star { fill: var(--brand); transform-box: fill-box; transform-origin: center; }
.camel--hero { width: 100%; max-width: 23rem; filter: drop-shadow(0 0 26px rgba(245, 185, 66, 0.22)); }
[dir="rtl"] .camel { transform: scaleX(-1); }
@media (max-width: 860px) { .camel--hero { max-width: 11rem; } }
.camel--lost { width: 11rem; margin: 0 auto 1.25rem; filter: drop-shadow(0 0 20px rgba(245, 185, 66, 0.2)); }

/* ─── sections ─────────────────────────────────────────────────────────── */

.section { padding-top: 4rem; padding-bottom: 1rem; }
.section--alt {
  padding-bottom: 3.5rem; margin-top: 3rem;
  background-color: var(--ground-dark);
  background-image:
    radial-gradient(ellipse 50% 70% at 85% 0%, rgba(245, 185, 66, 0.07), transparent 70%),
    var(--stars);
  background-size: 100% 100%, 223px 223px;
  border-block: 1px solid var(--rule-dark);
}
.section-h { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.025em; margin-bottom: 1.75rem; max-width: 30ch; }
@media (max-width: 640px) { .section { padding-top: 2.75rem; } }

/* Glass cards: translucent night-blue, a sand hairline, a lift on hover. */
.step, .source-list li, .post-card, .price-card, .contact-card, body.site .empty,
.site-main .card:not(.card--plain), .cta-band {
  background: linear-gradient(160deg, rgba(20, 32, 73, 0.92), rgba(16, 28, 64, 0.72));
  border: 1px solid var(--sand-line);
  box-shadow: 0 22px 50px -30px rgba(0, 0, 0, 0.75);
}
.step, .post-card, .source-list li {
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.step:hover, .post-card:hover, .source-list li:hover {
  border-color: rgba(245, 185, 66, 0.4);
  box-shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(245, 185, 66, 0.08);
}
@media (prefers-reduced-motion: no-preference) {
  .step:hover, .post-card:hover { transform: translateY(-3px); }
}

/* "The Route": three waypoints on a dashed caravan track. */
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.steps::before {
  content: ""; position: absolute; z-index: 0; top: 2.6rem; inset-inline: 3rem;
  border-top: 2px dashed rgba(245, 185, 66, 0.45);
}
.step { position: relative; z-index: 1; border-radius: var(--r-card); padding: 1.5rem 1.5rem 1.6rem; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; margin-bottom: 1rem; border-radius: 50%;
  background: var(--brand); color: var(--on-brand);
  font-family: var(--mono); font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 0 0 5px rgba(245, 185, 66, 0.14), 0 0 22px rgba(245, 185, 66, 0.35);
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .steps::before { display: none; } }

/* "Star map": the live figures. */
.figs { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0; border-top: 1px solid var(--rule-strong); }
.fig { padding-block: 1.25rem; padding-inline: 0 1.25rem; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 0.3rem; }
.fig-n {
  font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--brand); text-shadow: 0 0 20px rgba(245, 185, 66, 0.3);
}
.fig-l { display: flex; align-items: center; gap: 0.45rem; font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.fig-l::before {
  content: ""; width: 0.55rem; height: 0.55rem; flex: 0 0 auto; background: var(--brand);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.fig-s { font-size: 0.86rem; color: var(--ink-2); }
.figs--page { margin-bottom: 1.25rem; }
.fig-note { font-size: 0.9rem; color: var(--ink-2); margin: 0.5rem 0 2rem; }

.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 2.5rem; }
.point { padding-inline-start: 1.1rem; border-inline-start: 3px solid var(--brand); }
.point p { color: var(--ink-2); margin: 0; }
@media (max-width: 720px) { .points { grid-template-columns: 1fr; } }

.cta-band {
  position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem;
  border-radius: var(--r-card); padding: 2rem 2.25rem; margin: 2rem 0 4rem;
  background:
    radial-gradient(ellipse 45% 120% at 100% 50%, rgba(245, 185, 66, 0.14), transparent 70%),
    linear-gradient(160deg, rgba(20, 32, 73, 0.95), rgba(7, 14, 34, 0.9));
}
.cta-band p { color: var(--on-dark-2); margin: 0; max-width: 56ch; }
.cta-h { color: var(--on-dark); font-size: 1.45rem; margin: 0 0 0.35rem; }
@media (max-width: 640px) { .cta-band { padding: 1.5rem 1.25rem; } .cta-band .btn { width: 100%; } }

/* ─── inner pages ─────────────────────────────────────────────────────── */

.site-page-head { padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule-dark); margin-bottom: 2rem; }
.site-page-head h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
.page--prose { max-width: 50rem; }
.prose-section { margin: 0 0 2.25rem; }
.prose-section h2 { font-size: 1.25rem; margin-top: 0; }
.prose-section p, .prose-list { max-width: 68ch; }
.prose-list { margin: 0 0 1rem; padding-inline-start: 1.25rem; }
.prose-list li { margin-bottom: 0.45rem; }
.prose-list li::marker { color: var(--brand); }
.legal-meta { font-size: 0.86rem; color: var(--ink-2); margin: -1rem 0 2rem; }
.address { font-style: normal; line-height: 1.7; }
.ua {
  font-family: var(--mono); font-size: 0.88rem; white-space: pre-wrap; overflow-wrap: anywhere;
  background: var(--ground-dark); border: 1px solid var(--rule-strong); border-radius: var(--r-tile);
  padding: 0.9rem 1rem; margin: 0 0 1rem; direction: ltr; text-align: left;
}
.ua code { background: none; border: 0; padding: 0; font-size: inherit; word-break: normal; }
code { direction: ltr; unicode-bidi: isolate; }

.source-group { margin-bottom: 2.25rem; }
.source-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.5rem;
}
.source-list li { border-radius: var(--r-ctl); padding: 0.65rem 0.9rem; overflow-wrap: anywhere; }
.source-list a { font-weight: 600; text-decoration: none; }
.source-list a:hover { text-decoration: underline; }

.price-grid { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 2rem; align-items: start; }
.site-main .price-card {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), 0 0 50px -12px var(--brand-glow), 0 22px 50px -30px rgba(0, 0, 0, 0.75);
}
.price-h { margin: 0.9rem 0 0.25rem; }
.price { margin: 0 0 1.25rem; }
.price-n { font-size: 2.8rem; font-weight: 750; letter-spacing: -0.035em; color: var(--brand); text-shadow: 0 0 22px rgba(245, 185, 66, 0.3); }
.price-u { color: var(--ink-2); }
.check-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.check-list li { position: relative; padding-inline-start: 1.6rem; margin-bottom: 0.55rem; }
.check-list li::before {
  content: ""; position: absolute; inset-inline-start: 0.15rem; top: 0.35em;
  width: 0.45rem; height: 0.8rem; border: solid var(--brand); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
[dir="rtl"] .check-list li::before { transform: rotate(45deg) scaleX(-1); }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }

.faq { margin: 0; }
.faq dt { font-weight: 650; margin-top: 1rem; }
.faq dd { margin: 0.25rem 0 0; color: var(--ink-2); }

.product-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.product { margin: 0 !important; }
.product p { color: var(--ink-2); margin: 0; }
@media (max-width: 640px) { .product-list { grid-template-columns: 1fr; } }

.contact-card { text-align: center; }
.contact-mail { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 650; margin: 0.25rem 0 0.75rem; }
.contact-mail a { text-decoration: none; overflow-wrap: anywhere; }

body.site .empty { border-style: solid; }
.empty--lost h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }

/* ─── blog ("Field Notes") ─────────────────────────────────────────────── */

.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; max-width: 50rem; }
.post-card { margin: 0 !important; }
.post-card-h { font-size: 1.2rem; margin: 0.25rem 0 0.5rem; }
.post-card-h a { color: var(--ink); text-decoration: none; }
.post-card-h a:hover { color: var(--brand-ink); text-decoration: underline; }
.post-card p:last-child { margin: 0; color: var(--ink-2); }
.post-meta { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-2); margin: 0; letter-spacing: 0.02em; }
.post .site-page-head .post-meta { margin-top: 1rem; }
.post .prose-section h3 { font-size: 1.05rem; margin-top: 1.25rem; }
.post .prose-section ul, .post .prose-section ol { padding-inline-start: 1.25rem; max-width: 68ch; }
.post .prose-section li { margin-bottom: 0.4rem; }
.post .prose-section li::marker { color: var(--brand); }
.post blockquote { margin: 1rem 0; padding: 0.5rem 1rem; border-inline-start: 3px solid var(--brand); color: var(--ink-2); }
.post .cta-band { margin-top: 3rem; }

/* ─── footer (deep night, under a dune line) ──────────────────────────── */

body.site > .dune-line { margin-top: 2rem; }
.site-foot--public { border-top: 0; padding: 2.5rem 0 1.5rem; font-size: 0.9rem; color: var(--on-dark-2); }
.site-foot--public .wrap { display: grid; }
.foot-grid { grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.foot-brand p { margin: 0 0 0.6rem; max-width: 32ch; }
.foot-claim { font-size: 1.15rem; font-weight: 700; color: var(--brand); text-shadow: 0 0 18px rgba(245, 185, 66, 0.3); }
.foot-h { font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-3); margin: 0 0 0.75rem; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 0.45rem; }
.site-foot--public a { color: var(--on-dark); text-decoration: none; }
.site-foot--public a:hover { color: var(--brand-ink); text-decoration: underline; }
.foot-base {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule-dark);
  display: flex !important; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 1.5rem;
  font-size: 0.84rem;
}
.foot-base p { margin: 0; }
.foot-langs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; }
.foot-langs a { color: var(--on-dark-2) !important; }
.foot-langs a[aria-current="true"] { color: var(--brand-ink) !important; font-weight: 600; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot-grid { grid-template-columns: 1fr; } }

/* ─── motion: CSS only, and only when the reader allows it ────────────── */

@media (prefers-reduced-motion: no-preference) {
  /* the hero rises in on load */
  .hero-copy > * { animation: ne-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.32s; }
  .camel--hero { animation: ne-rise 1s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both, ne-sway 7s 1.2s ease-in-out infinite; }
  .camel-star { animation: ne-twinkle 2.8s ease-in-out infinite; }
  .hero::after { animation: ne-twinkle 4.5s ease-in-out infinite alternate; }
  .camel--lost { animation: ne-sway 6s ease-in-out infinite; }
}
/* Reveal on scroll: only with scroll timelines, otherwise everything simply shows. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-h, .step, .point, .fig, .cta-band, .source-group, .post-card, .price-grid > *, .prose-section {
      animation: ne-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}
@keyframes ne-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ne-reveal { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes ne-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes ne-sway { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
[dir="rtl"] .camel--hero, [dir="rtl"] .camel--lost { animation-name: none; }
/* Paper has no scroll timeline: print everything in its final state. */
@media print { *, *::before, *::after { animation: none !important; } }

/* RTL: the eyebrow star and arrows read the other way. */
[dir="rtl"] .back-link { unicode-bidi: plaintext; }
[dir="rtl"] .table th, [dir="rtl"] .table td { text-align: right; }
[dir="rtl"] .skip { left: auto; right: -999px; }
[dir="rtl"] .skip:focus { right: 0.5rem; }

@media (forced-colors: active) {
  .step, .source-list li, .cta-band, .price-card, .post-card { border: 1px solid CanvasText; }
  .fig-l::before, .step-n { background: CanvasText; }
  .camel-line, .dune-ridge { stroke: CanvasText; }
  .dunes, .dune-line, .hero::before, .hero::after { display: none; }
}

/* ─── SEO plan 2026-11-17: keyword line of the home H1, illustrations ───── */

.hero-kw {
  display: block; max-width: 34ch; margin-bottom: 0.9rem;
  font-size: clamp(1.05rem, 1.9vw, 1.4rem); font-weight: 650; line-height: 1.3; letter-spacing: 0;
  color: var(--brand-ink);
}
/* <img> with width/height attributes: the box is reserved before the file loads (no CLS). */
.illus { margin: 2rem 0 0; }
.illus img { display: block; width: 100%; height: auto; max-width: 60rem; margin-inline: auto; }
.illus--world { margin: 0 0 2rem; }
.illus--prose { margin: 0 0 1.25rem; }
.illus--prose img { max-width: 45rem; margin-inline: 0; }
