/* =====================================================================
   MapService — one stylesheet
   Mood: a calm engineering drawing office. Drafting paper, survey green,
   terracotta mark-ups, title blocks, grid ticks.
   Mobile first (360px+). Breakpoints: 720px (tablet), 1024px (desktop).
   ===================================================================== */

/* ---------- 1. Design tokens ---------------------------------------- */
:root {
  /* Ground + ink */
  --paper:      #F5F3EC;   /* page ground: drafting paper            */
  --paper-2:    #EDEAE0;   /* recessed panels, map placeholders       */
  --sheet:      #FFFFFF;   /* cards, the "sheet" on the desk          */
  --ink:        #14211A;   /* body text, title-block rules            */
  --ink-2:      #3D4A42;   /* secondary text                          */
  --ink-3:      #5A665E;   /* muted labels (AA on paper & sheet)      */
  --line:       #DAD6C9;   /* hairlines, card borders                 */
  --line-2:     #B9B4A3;   /* stronger rules, dashed drop borders     */
  --grid:       rgba(29, 91, 46, .07);

  /* Brand */
  --green:      #1D5B2E;   /* primary actions, links, live status     */
  --green-800:  #154521;   /* hover / pressed                         */
  --green-900:  #0E2B17;   /* footer ground                           */
  --green-100:  #D6E6D7;
  --green-50:   #EAF2EA;
  --terra:      #A94A24;   /* accent: mark-ups, eyebrows, prices      */
  --terra-100:  #F2DCCF;
  --terra-50:   #F9EDE6;

  /* Signals */
  --amber:      #7A4E00;   --amber-bg: #FBEFD3;   /* due soon / waiting */
  --red:        #A11F1F;   --red-bg:   #FBE4E1;   /* late / failed      */
  --water:      #CFE1E8;                           /* map water         */

  /* Type: one family, two weights (400, 600) + system mono */
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --w-regular: 400;
  --w-bold: 600;

  --fs-xs:  12px;
  --fs-s:   14px;
  --fs-m:   16px;
  --fs-l:   18px;
  --fs-xl:  22px;
  --fs-2xl: 28px;
  --fs-3xl: clamp(34px, 6vw, 56px);
  --lh-tight: 1.15;
  --lh: 1.55;

  /* Spacing (4px base) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px;

  /* Radius + shadow */
  --r-s: 6px;
  --r:   10px;
  --r-l: 16px;
  --r-pill: 999px;
  --sh-1: 0 1px 0 rgba(20, 33, 26, .04), 0 1px 3px rgba(20, 33, 26, .06);
  --sh-2: 0 1px 0 rgba(20, 33, 26, .04), 0 12px 28px -12px rgba(20, 33, 26, .22);
  --sh-sheet: 0 2px 0 rgba(20, 33, 26, .05), 0 24px 48px -20px rgba(20, 33, 26, .30);

  --tap: 44px;              /* minimum touch target */
  --focus: 0 0 0 3px var(--sheet), 0 0 0 5px var(--green);
}

/* ---------- 2. Base ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-m);
  line-height: var(--lh);
  font-weight: var(--w-regular);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: var(--w-bold); line-height: var(--lh-tight); letter-spacing: -0.01em; overflow-wrap: anywhere; }
h1 { font-size: var(--fs-3xl); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-l); }
p  { margin: 0; }
a  { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-800); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-s); }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-s); }
.xsmall { font-size: var(--fs-xs); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stack > * + * { margin-top: var(--s-4); }
.stack-s > * + * { margin-top: var(--s-2); }
.stack-l > * + * { margin-top: var(--s-8); }
.row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* Server-supplied values (prices, phone, hours). Django fills these. */
.srv { font-feature-settings: "tnum"; }

/* ---------- 3. Layout ----------------------------------------------- */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--s-4); }
.section { padding: var(--s-12) 0; }
.section--tight { padding: var(--s-8) 0; }
.section--rule { border-top: 1px solid var(--line); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase;
  color: var(--terra);
}
.eyebrow::before { content: ""; width: 14px; height: 1px; background: currentColor; }
.section-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-8); max-width: 680px; }
.section-head p { color: var(--ink-2); font-size: var(--fs-l); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }

.order-layout { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); align-items: start; }
.order-main { display: grid; gap: var(--s-6); min-width: 0; }
.order-aside { display: grid; gap: var(--s-4); min-width: 0; }

@media (min-width: 720px) {
  .wrap { padding: 0 var(--s-6); }
  .section { padding: var(--s-16) 0; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .wrap { padding: 0 var(--s-8); }
  .section { padding: var(--s-20) 0; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .order-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-8); }
  .order-aside { position: sticky; top: var(--s-6); }
}

/* ---------- 4. Buttons, badges, chips -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--tap); padding: 10px 20px;
  border: 1px solid transparent; border-radius: var(--r-s);
  font: inherit; font-weight: var(--w-bold); font-size: var(--fs-m); line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  background: var(--green); color: #fff;
}
.btn:hover { background: var(--green-800); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: var(--fs-l); }
.btn--block { width: 100%; }
.btn--ghost { background: var(--sheet); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn--terra { background: var(--terra); }
.btn--terra:hover { background: #8E3D1D; }
.btn--quiet { background: transparent; color: var(--green); padding-inline: var(--s-2); }
.btn--quiet:hover { background: var(--green-50); color: var(--green-800); }
.btn--wa { background: #1F7A45; }
.btn--wa:hover { background: #17603A; }
.btn--danger { background: var(--red); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 28px; padding: 3px 10px; border-radius: var(--r-pill);
  font-size: var(--fs-s); font-weight: var(--w-bold); line-height: 1.2;
  background: var(--green-50); color: var(--green-800);
}
.badge--terra { background: var(--terra-50); color: var(--terra); }
.badge--amber { background: var(--amber-bg); color: var(--amber); }
.badge--red   { background: var(--red-bg); color: var(--red); }
.badge--plain { background: var(--paper-2); color: var(--ink-2); }
.badge--outline { background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); }

.chip {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 8px 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--sheet);
  font: inherit; font-size: var(--fs-s); color: var(--ink); cursor: pointer; text-decoration: none;
}
.chip:hover { border-color: var(--green); color: var(--green-800); }
.chip[aria-pressed="true"], .chip--on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- 5. Availability status ---------------------------------- */
.avail { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-s); color: var(--ink-2); white-space: nowrap; }
.avail__dot { width: 10px; height: 10px; border-radius: 50%; background: #2E8B47; box-shadow: 0 0 0 4px rgba(46, 139, 71, .18); flex: none; }
.avail strong { color: var(--ink); font-weight: var(--w-bold); }
.avail--closed .avail__dot { background: #8C877A; box-shadow: 0 0 0 4px rgba(140, 135, 122, .2); }
.avail--pill { padding: 6px 12px 6px 10px; border-radius: var(--r-pill); background: var(--sheet); border: 1px solid var(--line); }

/* ---------- 6. Header ------------------------------------------------ */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; gap: var(--s-4); min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo:hover { color: var(--ink); }
.logo__mark { width: 36px; height: 36px; flex: none; }
.logo__name { font-weight: var(--w-bold); font-size: var(--fs-l); letter-spacing: -0.01em; line-height: 1; }
.logo__sub { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .04em; margin-top: 3px; font-weight: var(--w-regular); }
.nav { display: none; gap: var(--s-1); align-items: center; }
.nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 12px; text-decoration: none; color: var(--ink-2); font-size: var(--fs-s); border-radius: var(--r-s); }
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.site-header .avail--pill { display: none; }
.menu { position: relative; }
.menu > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--sheet); cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__panel { position: absolute; right: 0; top: 52px; z-index: 20; width: min(300px, calc(100vw - 32px)); background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-2); padding: var(--s-2); display: grid; }
.menu__panel a { display: flex; align-items: center; min-height: var(--tap); padding: 0 12px; text-decoration: none; color: var(--ink); border-radius: var(--r-s); }
.menu__panel a:hover { background: var(--paper); }
.header-status { display: flex; align-items: center; gap: var(--s-2); padding: 8px var(--s-4); border-top: 1px solid var(--line); background: var(--sheet); font-size: var(--fs-s); }
@media (min-width: 1024px) {
  .nav { display: flex; }
  .menu { display: none; }
  .site-header .avail--pill { display: inline-flex; }
  .header-status { display: none; }
}

/* ---------- 7. Hero -------------------------------------------------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--paper);
}
.hero__contours { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__in { position: relative; display: grid; gap: var(--s-10); padding-block: var(--s-10) var(--s-12); }
.hero__copy { display: grid; gap: var(--s-5); align-content: start; }
.hero__lede { font-size: var(--fs-l); color: var(--ink-2); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__proof { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--fs-s); color: var(--ink-2); padding-top: var(--s-2); }
.hero__proof span { display: inline-flex; align-items: center; gap: 6px; }
.hero__proof svg { width: 16px; height: 16px; color: var(--green); flex: none; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero h1 .accent { color: var(--terra); }
@media (min-width: 1024px) {
  .hero__in { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center; padding-block: var(--s-16) var(--s-20); }
}

/* The map sheet: a framed map with coordinate ticks — used in hero & samples */
.sheet {
  position: relative; background: var(--sheet); padding: 14px; border-radius: 4px;
  box-shadow: var(--sh-sheet); border: 1px solid var(--line);
}
.sheet__frame { position: relative; border: 1px solid var(--ink); }
.sheet__frame img { width: 100%; }
.sheet__ticks { position: absolute; inset: -9px; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 12.5%) top / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 12.5%) bottom / 100% 6px no-repeat,
    repeating-linear-gradient(0deg, var(--ink) 0 1px, transparent 1px 12.5%) left / 6px 100% no-repeat,
    repeating-linear-gradient(0deg, var(--ink) 0 1px, transparent 1px 12.5%) right / 6px 100% no-repeat;
  opacity: .55;
}
.sheet__caption { display: flex; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin-top: 10px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .03em; }
.sheet__stamp {
  position: absolute; right: -10px; bottom: 34px; transform: rotate(-4deg);
  background: var(--sheet); border: 1.5px solid var(--terra); color: var(--terra); border-radius: 4px;
  padding: 6px 10px; font-family: var(--mono); font-size: 12px; line-height: 1.3; letter-spacing: .04em; text-transform: uppercase; box-shadow: var(--sh-1);
}
.sheet__stamp b { display: block; font-family: var(--font); font-size: 15px; letter-spacing: 0; text-transform: none; }

/* ---------- 8. Title block (label/value cells, drawing-sheet style) -- */
.tblock { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--ink); background: var(--sheet); }
.tblock > div { padding: 8px 12px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); min-width: 0; }
.tblock > div:nth-child(2n) { border-right: 0; }
.tblock > div.full { grid-column: 1 / -1; border-right: 0; }
.tblock > div:nth-last-child(-n+1) { border-bottom: 0; }
.tblock dt, .tblock .k { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.tblock dd, .tblock .v { display: block; margin: 2px 0 0; font-weight: var(--w-bold); overflow-wrap: anywhere; }

/* ---------- 9. Service ladder --------------------------------------- */
.scalebar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: 8px; border: 1px solid var(--ink); margin-bottom: var(--s-4); }
.scalebar span:nth-child(odd) { background: var(--ink); }
.ladder { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); counter-reset: rung; }
.rung {
  position: relative; display: grid; gap: var(--s-4); align-content: start;
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-6) var(--s-5) var(--s-5);
  box-shadow: var(--sh-1);
}
.rung__num { font-family: var(--mono); font-size: var(--fs-s); color: var(--terra); letter-spacing: .06em; }
.rung__kind { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.rung h3 { font-size: var(--fs-xl); }
.rung__lead { color: var(--ink-2); font-size: var(--fs-s); }
.rung__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.rung__facts > div { padding: 10px 0; }
.rung__facts > div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.rung__facts .k { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.rung__facts .v { font-weight: var(--w-bold); font-size: var(--fs-l); line-height: 1.25; }
.rung__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-s); color: var(--ink-2); }
.rung__list li { display: flex; gap: 8px; }
.rung__list li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; background: var(--green); transform: rotate(45deg); }
.rung__cta { margin-top: auto; }
.rung--engineer { background: var(--green-900); border-color: var(--green-900); color: #EEF3EC; }
.rung--engineer h3, .rung--engineer .rung__facts .v { color: #fff; }
.rung--engineer .rung__lead, .rung--engineer .rung__list { color: #C9D6C9; }
.rung--engineer .rung__kind, .rung--engineer .rung__facts .k { color: #A9BBA9; }
.rung--engineer .rung__num { color: #F0A986; }
.rung--engineer .rung__facts { border-color: #6F8A73; }
.rung--engineer .rung__facts > div + div { border-color: #3B5A42; }
.rung--engineer .rung__list li::before { background: #F0A986; }
@media (min-width: 720px) { .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ladder { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- 10. Catalogue (scales to 10+ map types) ------------------ */
.catalogue { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.catalogue__bar { display: flex; flex-wrap: wrap; gap: var(--s-2); padding: var(--s-4); border-bottom: 1px solid var(--line); background: var(--paper); align-items: center; }
.catalogue__search { flex: 1 1 220px; }
.cat-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s-3) var(--s-4); padding: var(--s-4); border-bottom: 1px solid var(--line); align-items: center; }
.cat-row:last-child { border-bottom: 0; }
.cat-row__thumb { width: 72px; height: 54px; border: 1px solid var(--line-2); border-radius: 3px; overflow: hidden; background: var(--paper-2); }
.cat-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-row__name { font-weight: var(--w-bold); }
.cat-row__desc { font-size: var(--fs-s); color: var(--ink-2); }
.cat-row__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: center; font-size: var(--fs-s); }
.cat-row__price { font-weight: var(--w-bold); }
.cat-row__meta .btn { margin-left: auto; }
.cat-row--soon .cat-row__name { color: var(--ink-2); }
@media (min-width: 720px) {
  .cat-row { grid-template-columns: 96px minmax(0, 1fr) auto; }
  .cat-row__thumb { width: 96px; height: 68px; }
  .cat-row__meta { grid-column: auto; justify-content: flex-end; }
}

/* ---------- 11. Cards -------------------------------------------------- */
.card { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-5); box-shadow: var(--sh-1); }
.card--flush { padding: 0; overflow: hidden; }
.card__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-4); margin-bottom: var(--s-4); }
.card__head h2 { font-size: var(--fs-xl); }
.card--paper { background: var(--paper); box-shadow: none; }
.card--ink { background: var(--green-900); border-color: var(--green-900); color: #E9F0E8; }
.card--ink h2, .card--ink h3 { color: #fff; }
@media (min-width: 720px) { .card { padding: var(--s-6) var(--s-8); } .card--flush { padding: 0; } }

/* Sample-map / layout cards */
.layout-card { display: grid; gap: var(--s-3); background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-3); }
.layout-card__img { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--paper-2); aspect-ratio: 297 / 203; }
.layout-card__img img { width: 100%; height: 100%; object-fit: cover; }
.layout-card h3 { font-size: var(--fs-m); padding: 0 var(--s-1); }
.layout-card p { font-size: var(--fs-s); color: var(--ink-2); padding: 0 var(--s-1) var(--s-1); }
.layouts { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .layouts { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 479px) { .layouts { grid-template-columns: minmax(0, 1fr); } }

.samples { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .samples { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; } }

/* ---------- 12. How it works ---------------------------------------- */
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
.how li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--ink); }
.how__n { font-family: var(--mono); font-size: var(--fs-xl); color: var(--terra); line-height: 1; }
.how h3 { font-size: var(--fs-m); margin-bottom: 4px; }
.how p { font-size: var(--fs-s); color: var(--ink-2); }
.how__time { display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: var(--fs-xs); color: var(--green); }
@media (min-width: 720px) { .how { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .how { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); } }

/* ---------- 13. Hours + availability -------------------------------- */
.hours { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); }
.hours__now { display: grid; gap: var(--s-3); align-content: start; }
.hours__big { font-size: var(--fs-2xl); font-weight: var(--w-bold); line-height: 1.2; }
.hours__table { width: 100%; border-collapse: collapse; border: 1px solid var(--ink); background: var(--sheet); font-size: var(--fs-s); }
.hours__table th, .hours__table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.hours__table th { font-family: var(--mono); font-weight: var(--w-regular); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--paper); border-bottom: 1px solid var(--ink); }
.hours__table tr.is-today td { background: var(--green-50); font-weight: var(--w-bold); }
@media (min-width: 1024px) { .hours { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s-12); } }

/* ---------- 14. About the engineer ---------------------------------- */
.engineer { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); align-items: start; }
.portrait { position: relative; aspect-ratio: 4 / 5; max-width: 340px; background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; display: grid; place-items: center; }
.portrait__ph { text-align: center; color: var(--ink-3); font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; }
.portrait__ph b { display: block; font-family: var(--font); font-size: 56px; letter-spacing: -0.02em; color: var(--green); text-transform: none; }
.portrait__tag { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; background: var(--sheet); border-top: 1px solid var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.engineer__creds { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.promises li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--s-3); align-items: start; }
.promises svg { width: 22px; height: 22px; color: var(--green); margin-top: 2px; }
.quote-line { font-size: var(--fs-xl); line-height: 1.4; }
@media (min-width: 1024px) { .engineer { grid-template-columns: 300px minmax(0, 1fr); gap: var(--s-12); } }

/* ---------- 15. FAQ -------------------------------------------------- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 56px; padding: var(--s-3) 0; cursor: pointer; font-weight: var(--w-bold); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 22px; color: var(--terra); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 var(--s-5); color: var(--ink-2); max-width: 46em; }

/* ---------- 16. Contact block / strip -------------------------------- */
.contact { display: grid; gap: var(--s-3); grid-template-columns: minmax(0, 1fr); }
.contact__tile {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s-3); align-items: center;
  min-height: 72px; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r); background: var(--sheet);
  color: var(--ink); text-decoration: none; font: inherit; text-align: left; cursor: pointer;
}
.contact__tile:hover { border-color: var(--green); color: var(--ink); }
.contact__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--green); }
.contact__icon svg { width: 22px; height: 22px; }
.contact__tile--voice .contact__icon { background: var(--terra-50); color: var(--terra); }
.contact__label { font-weight: var(--w-bold); display: block; }
.contact__sub { font-size: var(--fs-s); color: var(--ink-3); display: block; }
.contact-strip { background: var(--sheet); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-strip__in { display: grid; gap: var(--s-5); padding-block: var(--s-10); }
@media (min-width: 720px) { .contact--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .contact-strip__in { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: center; } }
.contact--compact .contact__tile { min-height: 56px; padding: 10px 12px; grid-template-columns: 36px minmax(0, 1fr); }
.contact--compact .contact__icon { width: 36px; height: 36px; }
.contact--compact .contact__icon svg { width: 18px; height: 18px; }

/* "Three equal ways in": form, call/WhatsApp, voice */
.ways { display: grid; gap: var(--s-2); grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px; background: var(--paper-2); border-radius: var(--r); }
.ways__opt { display: grid; justify-items: center; gap: 4px; min-height: 64px; padding: 10px 6px; border-radius: 8px; border: 1px solid transparent; background: transparent; font: inherit; font-size: var(--fs-s); font-weight: var(--w-bold); color: var(--ink-2); cursor: pointer; text-align: center; }
.ways__opt svg { width: 20px; height: 20px; }
.ways__opt[aria-selected="true"] { background: var(--sheet); color: var(--ink); border-color: var(--line); box-shadow: var(--sh-1); }
.ways__opt small { font-weight: var(--w-regular); font-size: var(--fs-xs); color: var(--ink-3); }
@media (min-width: 720px) { .ways__opt { grid-template-columns: auto auto; justify-content: center; align-items: center; } .ways__opt small { grid-column: 1 / -1; } }

/* ---------- 17. Footer ----------------------------------------------- */
.site-footer { background: var(--green-900); color: #C9D5CA; font-size: var(--fs-s); }
.site-footer a { color: #fff; }
.site-footer__in { display: grid; gap: var(--s-8); padding-block: var(--s-12) var(--s-8); grid-template-columns: minmax(0, 1fr); }
.site-footer h2 { font-size: var(--fs-m); color: #fff; margin-bottom: var(--s-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.attribution { border-top: 1px solid #2D4A35; padding-block: var(--s-5) var(--s-8); font-family: var(--mono); font-size: var(--fs-xs); color: #A8B9AA; line-height: 1.7; }
@media (min-width: 720px) { .site-footer__in { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- 18. Order header + steps bar ----------------------------- */
.order-head { display: grid; gap: var(--s-3); padding: var(--s-8) 0 var(--s-5); }
.order-head__top { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); align-items: center; }
.order-code { font-family: var(--mono); font-size: var(--fs-s); letter-spacing: .06em; color: var(--terra); }
.order-head h1 { font-size: clamp(28px, 4.4vw, 40px); }
.order-head__sub { color: var(--ink-2); max-width: 46em; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.steps li { display: grid; gap: 8px; font-size: var(--fs-xs); color: var(--ink-3); min-width: 0; }
.steps li::before { content: ""; height: 4px; border-radius: 2px; background: var(--line); }
.steps li.is-done::before { background: var(--green-100); }
.steps li.is-done { color: var(--green); }
.steps li.is-now::before { background: var(--green); }
.steps li.is-now { color: var(--ink); font-weight: var(--w-bold); }
.steps__label { display: none; }
.steps__n { font-family: var(--mono); }
.steps-mobile { display: flex; justify-content: space-between; gap: var(--s-3); font-size: var(--fs-s); margin-top: 6px; }
.steps-mobile b { font-weight: var(--w-bold); }
@media (min-width: 720px) {
  .steps { gap: 8px; }
  .steps li { font-size: var(--fs-s); }
  .steps__label { display: inline; }
  .steps-mobile { display: none; }
}

/* Promised-time banner + countdown */
.eta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); padding: var(--s-4) var(--s-5); border: 1px solid var(--ink); background: var(--sheet); border-radius: var(--r-s); }
.eta__label { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); display: block; }
.eta__time { font-size: var(--fs-xl); font-weight: var(--w-bold); line-height: 1.2; }
.eta__note { font-size: var(--fs-s); color: var(--ink-3); flex-basis: 100%; }
.countdown { display: inline-flex; align-items: baseline; gap: 4px; font-family: var(--mono); font-feature-settings: "tnum"; }
.countdown__seg { display: grid; justify-items: center; min-width: 52px; padding: 6px 8px; background: var(--ink); color: #fff; border-radius: 4px; font-size: var(--fs-xl); line-height: 1.1; }
.countdown__seg small { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #B7C4BA; }
.countdown__sep { color: var(--ink-3); font-size: var(--fs-xl); }
.countdown--amber .countdown__seg { background: var(--amber); }
.countdown--red .countdown__seg { background: var(--red); }
.countdown--sm .countdown__seg { min-width: 0; font-size: var(--fs-m); padding: 3px 7px; }

/* ---------- 19. Summary card (side) ---------------------------------- */
.summary { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1); }
.summary__img { border-bottom: 1px solid var(--line); background: var(--paper-2); aspect-ratio: 297 / 190; overflow: hidden; }
.summary__img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.summary__body { padding: var(--s-4) var(--s-5) var(--s-5); display: grid; gap: var(--s-3); }
.summary__title { display: flex; justify-content: space-between; gap: var(--s-3); align-items: baseline; }
.summary__title h2 { font-size: var(--fs-m); }
.kv { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0; font-size: var(--fs-s); }
.kv dt { color: var(--ink-3); padding: 7px 12px 7px 0; border-top: 1px dashed var(--line); }
.kv dd { margin: 0; padding: 7px 0; text-align: right; font-weight: var(--w-bold); border-top: 1px dashed var(--line); overflow-wrap: anywhere; }
.kv dt:first-of-type, .kv dd:first-of-type { border-top: 0; }
.kv .total { border-top: 1px solid var(--ink); font-size: var(--fs-m); color: var(--ink); }
.summary__note { font-size: var(--fs-xs); color: var(--ink-3); }

/* ---------- 20. Forms ------------------------------------------------ */
.field { display: grid; gap: 6px; align-content: start; }
.field + .field { margin-top: var(--s-5); }
.label { font-weight: var(--w-bold); font-size: var(--fs-s); }
.label .opt { font-weight: var(--w-regular); color: var(--ink-3); }
.hint { font-size: var(--fs-s); color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--sheet);
  font: inherit; font-size: var(--fs-m); color: var(--ink);
}
.textarea { min-height: 120px; resize: vertical; line-height: var(--lh); }
.input::placeholder, .textarea::placeholder { color: #7F887F; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-100); }
.input--mono { font-family: var(--mono); letter-spacing: .04em; }
.input-group { display: flex; align-items: stretch; }
.input-group__pre { display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-2); border-right: 0; border-radius: var(--r-s) 0 0 var(--r-s); background: var(--paper); font-family: var(--mono); color: var(--ink-2); }
.input-group .input { border-radius: 0 var(--r-s) var(--r-s) 0; }
.field--error .input { border-color: var(--red); }
.field__error { color: var(--red); font-size: var(--fs-s); font-weight: var(--w-bold); }
.check { display: flex; gap: var(--s-3); align-items: flex-start; min-height: var(--tap); padding-top: 10px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green); flex: none; }
.form-row { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); }
.form-row .field + .field { margin-top: 0; }
@media (min-width: 720px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; padding-top: var(--s-2); }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset legend { padding: 0; font-weight: var(--w-bold); margin-bottom: var(--s-3); }
.divider { border: 0; border-top: 1px solid var(--line); margin: var(--s-6) 0; }

/* Segmented control (radio group styled as buttons) */
.seg { display: inline-flex; flex-wrap: wrap; padding: 3px; gap: 3px; background: var(--paper-2); border-radius: var(--r-s); }
.seg label { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border-radius: 4px; font-size: var(--fs-s); font-weight: var(--w-bold); color: var(--ink-2); cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label.is-on { background: var(--sheet); color: var(--ink); box-shadow: var(--sh-1); }

/* ---------- 21. Dropzone + draw map --------------------------------- */
.dropzone {
  display: grid; justify-items: center; text-align: center; gap: var(--s-2);
  padding: var(--s-8) var(--s-4); border: 1.5px dashed var(--line-2); border-radius: var(--r);
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--sheet);
}
.dropzone__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--green); }
.dropzone__icon svg { width: 26px; height: 26px; }
.dropzone__title { font-weight: var(--w-bold); font-size: var(--fs-l); }
.dropzone__formats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: var(--s-2); }
.dropzone__formats span { font-family: var(--mono); font-size: 11px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink-2); }
.dropzone.is-over { border-color: var(--green); background-color: var(--green-50); }
.file-pill { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-s); background: var(--sheet); }
.file-pill__type { font-family: var(--mono); font-size: 11px; font-weight: var(--w-bold); padding: 6px 7px; border-radius: 4px; background: var(--green-50); color: var(--green-800); flex: none; }
.file-pill__name { font-weight: var(--w-bold); min-width: 0; overflow-wrap: anywhere; }
.file-pill__meta { font-size: var(--fs-s); color: var(--ink-3); }
.file-pill__x { margin-left: auto; }

.mapview { position: relative; border: 1px solid var(--line-2); border-radius: var(--r-s); overflow: hidden; background: #ECE8DC; }
.mapview svg.mapview__art { display: block; width: 100%; height: auto; }
.mapview__tools { position: absolute; top: 10px; left: 10px; display: grid; gap: 6px; }
.mapview__tools button { width: var(--tap); height: var(--tap); display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--sheet); color: var(--ink); cursor: pointer; padding: 0; }
.mapview__tools button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.mapview__tools svg { width: 20px; height: 20px; }
.mapview__zoom { position: absolute; top: 10px; right: 10px; display: grid; border: 1px solid var(--line-2); border-radius: var(--r-s); overflow: hidden; background: var(--sheet); }
.mapview__zoom button { width: var(--tap); height: var(--tap); border: 0; background: var(--sheet); font: inherit; font-size: 20px; cursor: pointer; }
.mapview__zoom button + button { border-top: 1px solid var(--line); }
.mapview__search { position: absolute; left: 64px; right: 64px; top: 10px; }
.mapview__search .input { min-height: var(--tap); box-shadow: var(--sh-1); }
.mapview__attr { position: absolute; right: 0; bottom: 0; padding: 2px 6px; background: rgba(255, 255, 255, .85); font-size: 11px; color: var(--ink-2); }
.mapview__label { position: absolute; left: 10px; bottom: 10px; padding: 6px 10px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-s); font-size: var(--fs-s); box-shadow: var(--sh-1); }

/* ---------- 22. Place list (confirm the place) ----------------------- */
.places { display: grid; gap: var(--s-3); }
.place { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s-3); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r); background: var(--sheet); cursor: pointer; }
.place input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); }
.place.is-on { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.place__name { font-weight: var(--w-bold); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.place__meta { font-size: var(--fs-s); color: var(--ink-3); }
.place-grid { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .place-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; } }

/* ---------- 23. Layout picker ---------------------------------------- */
.picker { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pick { position: relative; display: grid; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--sheet); cursor: pointer; align-content: start; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick__img { aspect-ratio: 297 / 203; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--paper-2); }
.pick__img img { width: 100%; height: 100%; object-fit: cover; }
.pick__name { font-size: var(--fs-s); font-weight: var(--w-bold); padding: 0 4px 4px; line-height: 1.3; }
.pick__desc { font-size: var(--fs-xs); color: var(--ink-3); padding: 0 4px 4px; }
.pick.is-on { border-color: var(--green); box-shadow: 0 0 0 2px var(--green); }
.pick.is-on::after { content: ""; position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 50%; background: var(--green) no-repeat center / 14px; box-shadow: 0 0 0 2px #fff;
  background-image: linear-gradient(transparent, transparent); }
.pick__tick { position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; display: none; place-items: center; box-shadow: 0 0 0 2px #fff; }
.pick.is-on .pick__tick { display: grid; }
.pick.is-on::after { display: none; }
.pick__tick svg { width: 15px; height: 15px; }
.picker--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 720px) { .picker { grid-template-columns: repeat(3, minmax(0, 1fr)); } .picker--compact { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* "More options" disclosure */
.more { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.more > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 56px; padding: 0 var(--s-5); cursor: pointer; font-weight: var(--w-bold); }
.more > summary::-webkit-details-marker { display: none; }
.more > summary small { font-weight: var(--w-regular); color: var(--ink-3); }
.more > summary::after { content: "+"; font-family: var(--mono); font-size: 22px; color: var(--terra); }
.more[open] > summary::after { content: "−"; }
.more__body { padding: var(--s-2) var(--s-5) var(--s-6); border-top: 1px solid var(--line); background: var(--sheet); border-radius: 0 0 var(--r) var(--r); }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.suggest .chip { min-height: 36px; padding: 6px 12px; font-size: var(--fs-s); text-align: left; }

/* ---------- 24. Preview ---------------------------------------------- */
.preview { display: grid; gap: var(--s-4); }
.preview__stage { position: relative; padding: var(--s-5); background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--paper-2);
  border-radius: var(--r); border: 1px solid var(--line); display: grid; place-items: center; }
.preview__stage .sheet { width: 100%; max-width: 560px; }
.preview__meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); justify-content: space-between; font-size: var(--fs-s); color: var(--ink-3); }
.tweaks { display: grid; gap: var(--s-4); }
.tweaks__row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.paths { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
.path { display: grid; gap: var(--s-3); padding: var(--s-5); border-radius: var(--r); border: 1px solid var(--line); background: var(--sheet); align-content: start; }
.path h3 { font-size: var(--fs-xl); }
.path__price { font-size: var(--fs-2xl); font-weight: var(--w-bold); line-height: 1.1; }
.path__price small { font-size: var(--fs-s); font-weight: var(--w-regular); color: var(--ink-3); }
.path--buy { border: 2px solid var(--green); }
.path--expert { background: var(--green-900); border-color: var(--green-900); color: #DCE6DB; }
.path--expert h3, .path--expert .path__price { color: #fff; }
.path--expert .path__price small, .path--expert .hint { color: #B4C4B5; }
.path--expert .check { color: #fff; }
.addon { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); border: 1px dashed var(--line-2); border-radius: var(--r-s); background: var(--paper); cursor: pointer; }
.addon input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green); flex: none; }
.addon__price { margin-left: auto; font-weight: var(--w-bold); white-space: nowrap; }
.path--expert .addon { background: rgba(255,255,255,.06); border-color: #4C6B54; color: #fff; }
@media (min-width: 720px) { .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Waiting state ("Making your preview") */
.making { display: grid; gap: var(--s-5); }
.making__head { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; }
.plotter { position: relative; height: 10px; border: 1px solid var(--ink); background:
  linear-gradient(90deg, var(--ink) 1px, transparent 1px) 0 0 / 10% 100%; border-radius: 2px; overflow: hidden; }
.plotter__fill { position: absolute; inset: 0 auto 0 0; width: 3%; background: var(--green); transition: width .5s linear; overflow: hidden; }
.plotter__fill::after { content: ""; position: absolute; inset: 0 -40px 0 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.28) 0 8px, transparent 8px 16px); animation: plotter-run 1s linear infinite; }
.plotter--sweep .plotter__fill { width: 34%; animation: plotter-sweep 1.5s ease-in-out infinite alternate; transition: none; }
@keyframes plotter-run { to { transform: translateX(-22.6px); } }
@keyframes plotter-sweep { from { left: 0; } to { left: 66%; } }
.making__time { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-s); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.making__pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: making-pulse 1.2s ease-in-out infinite; }
@keyframes making-pulse { 50% { transform: scale(.55); opacity: .45; } }
.making__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: var(--fs-s); }
.making__steps li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; color: var(--ink-3); }
.making__steps li.is-done { color: var(--ink); }
.making__steps li.is-now { color: var(--ink); font-weight: var(--w-bold); }
.making__steps .dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.making__steps li.is-done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.making__steps li.is-now .dot { border-color: var(--green); box-shadow: inset 0 0 0 4px var(--sheet); background: var(--green); }
.making__steps .dot svg { width: 11px; height: 11px; display: none; }
.making__steps li.is-done .dot svg { display: block; }
.making__steps li.is-now .dot { animation: making-pulse 1.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .plotter__fill::after, .making__pulse, .making__steps li.is-now .dot, .plotter--sweep .plotter__fill { animation: none; }
  .plotter--sweep .plotter__fill { width: 100%; opacity: .5; }
}
.sheet-skeleton { aspect-ratio: 297 / 420; max-width: 360px; width: 100%; background: var(--sheet); border: 1px solid var(--line-2); padding: 12px; display: grid; grid-template-rows: 1fr auto; gap: 10px; }
.sheet-skeleton__map { border: 1px solid var(--ink); background:
  linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 18px 18px,
  linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 18px 18px, var(--paper); }
.sheet-skeleton__tb { height: 54px; border: 1px solid var(--ink); background: repeating-linear-gradient(90deg, transparent 0 32%, var(--ink) 32% calc(32% + 1px)); }

/* ---------- 25. Payment states --------------------------------------- */
.pay { display: grid; gap: var(--s-5); }
.amount { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-2); padding: var(--s-4) var(--s-5); background: var(--paper); border-radius: var(--r-s); border: 1px solid var(--line); }
.amount__v { font-size: var(--fs-2xl); font-weight: var(--w-bold); font-feature-settings: "tnum"; }
.networks { display: flex; flex-wrap: wrap; gap: 6px; }
.networks span { font-size: var(--fs-xs); font-weight: var(--w-bold); padding: 4px 8px; border-radius: 4px; border: 1px solid var(--line); background: var(--sheet); color: var(--ink-2); }
.pay-state { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--s-4); padding: var(--s-5); border-radius: var(--r); border: 1px solid var(--line); background: var(--sheet); }
.pay-state__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; }
.pay-state__icon svg { width: 28px; height: 28px; }
.pay-state h3 { font-size: var(--fs-xl); margin-bottom: 4px; }
.pay-state p { color: var(--ink-2); }
.pay-state__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s-3); }
.pay-state--waiting { border-color: #E2C98A; background: #FFFBF1; }
.pay-state--waiting .pay-state__icon { background: var(--amber-bg); color: var(--amber); }
.pay-state--paid { border-color: var(--green); background: var(--green-50); }
.pay-state--paid .pay-state__icon { background: var(--green); color: #fff; }
.pay-state--failed { border-color: #E3A9A2; background: #FFF6F5; }
.pay-state--failed .pay-state__icon { background: var(--red-bg); color: var(--red); }
.phone-mock { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-4); background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-s); font-size: var(--fs-s); }
.phone-mock b { font-family: var(--mono); }
.fallback { border-top: 1px dashed var(--line-2); padding-top: var(--s-4); }
.fallback summary { cursor: pointer; font-size: var(--fs-s); color: var(--ink-2); min-height: var(--tap); display: flex; align-items: center; }
.lipa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--ink); margin: var(--s-3) 0 var(--s-4); }
.lipa > div { padding: 10px 12px; }
.lipa > div + div { border-left: 1px solid var(--ink); }

/* ---------- 26. Download list ---------------------------------------- */
.downloads { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--sheet); }
.dl { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s-2) var(--s-4); align-items: center; padding: var(--s-4); border-bottom: 1px solid var(--line); }
.dl:last-child { border-bottom: 0; }
.dl__type { width: 48px; height: 56px; border: 1px solid var(--ink); border-radius: 2px 10px 2px 2px; display: grid; place-items: end center; padding-bottom: 6px; font-family: var(--mono); font-size: 11px; font-weight: var(--w-bold); background: var(--sheet); }
.dl__type--pdf { color: var(--terra); }
.dl__type--png { color: #1E5A73; }
.dl__type--zip { color: var(--green); }
.dl__name { font-weight: var(--w-bold); }
.dl__meta { font-size: var(--fs-s); color: var(--ink-3); }
.dl .btn { grid-column: 1 / -1; }
@media (min-width: 720px) { .dl { grid-template-columns: 48px minmax(0, 1fr) auto; } .dl .btn { grid-column: auto; } }
.upsell { display: grid; gap: var(--s-4); padding: var(--s-6); border-radius: var(--r); background: var(--green-900); color: #D6E1D5; position: relative; overflow: hidden; }
.upsell h2 { color: #fff; font-size: var(--fs-xl); }
.upsell__clock { font-family: var(--mono); color: #F0A986; font-size: var(--fs-s); letter-spacing: .04em; }

/* ---------- 27. Revision: tiers, attachments, voice recorder --------- */
.tiers { display: grid; gap: var(--s-3); grid-template-columns: minmax(0, 1fr); }
.tier { position: relative; display: grid; gap: var(--s-3); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r); background: var(--sheet); cursor: pointer; align-content: start; }
.tier input { position: absolute; opacity: 0; pointer-events: none; }
.tier__top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; }
.tier h3 { font-size: var(--fs-l); }
.tier__price { font-size: var(--fs-xl); font-weight: var(--w-bold); }
.tier__time { font-family: var(--mono); font-size: var(--fs-s); color: var(--green); }
.tier ul { margin: 0; padding-left: 18px; font-size: var(--fs-s); color: var(--ink-2); display: grid; gap: 4px; }
.tier.is-on { border-color: var(--green); box-shadow: 0 0 0 2px var(--green); }
.tier__radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.tier.is-on .tier__radio { border: 7px solid var(--green); }
@media (min-width: 720px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.attach { display: grid; gap: var(--s-2); }
.attach__add { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.recorder { display: grid; gap: var(--s-4); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.recorder__main { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.rec-btn { width: 64px; height: 64px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--terra); color: #fff; cursor: pointer; flex: none; box-shadow: 0 0 0 6px var(--terra-50); }
.rec-btn svg { width: 26px; height: 26px; }
.rec-btn.is-recording { background: var(--red); box-shadow: 0 0 0 6px var(--red-bg); }
.rec-btn--play { background: var(--ink); box-shadow: 0 0 0 6px var(--paper-2); width: 52px; height: 52px; }
.recorder__time { font-family: var(--mono); font-size: var(--fs-xl); font-feature-settings: "tnum"; }
.recorder__hint { font-size: var(--fs-s); color: var(--ink-3); }
.wave { display: flex; align-items: center; gap: 3px; height: 40px; flex: 1 1 160px; min-width: 140px; }
.wave span { flex: 1; max-width: 5px; background: var(--ink-3); border-radius: 2px; }
.wave span.is-played { background: var(--terra); }
.recorder__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.voice-chip { display: flex; align-items: center; gap: var(--s-3); padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--sheet); }
.voice-chip .rec-btn--play { width: 40px; height: 40px; box-shadow: none; }
.voice-chip .rec-btn--play svg { width: 18px; height: 18px; }
.voice-chip .wave { height: 28px; min-width: 100px; }

/* Timeline (revision status) */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: var(--s-3); padding-bottom: var(--s-5); }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li:last-child { padding-bottom: 0; }
.timeline__dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-2); background: var(--sheet); color: #fff; z-index: 1; }
.timeline__dot svg { width: 14px; height: 14px; }
.timeline li.is-done .timeline__dot { background: var(--green); border-color: var(--green); }
.timeline li.is-done::before { background: var(--green); }
.timeline li.is-now .timeline__dot { border-color: var(--terra); background: var(--terra-50); }
.timeline li.is-now .timeline__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--terra); }
.timeline__t { font-weight: var(--w-bold); }
.timeline__d { font-size: var(--fs-s); color: var(--ink-3); }
.timeline__when { font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-3); white-space: nowrap; padding-top: 4px; }

/* Message / comments bubble */
.note { padding: var(--s-4); border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); font-size: var(--fs-s); }
.note__who { font-weight: var(--w-bold); font-size: var(--fs-xs); font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.note--engineer { background: var(--green-50); border-color: var(--green-100); }

/* ---------- 28. Quote card ------------------------------------------- */
.quote { display: grid; gap: 0; border: 1px solid var(--ink); background: var(--sheet); border-radius: 2px; }
.quote__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); padding: var(--s-5); border-bottom: 1px solid var(--ink); align-items: baseline; }
.quote__price { font-size: clamp(30px, 5vw, 44px); font-weight: var(--w-bold); line-height: 1; font-feature-settings: "tnum"; }
.quote__cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quote__cells > div { padding: var(--s-3) var(--s-5); border-bottom: 1px solid var(--line); }
.quote__cells > div:nth-child(odd) { border-right: 1px solid var(--line); }
.quote__incl { padding: var(--s-5); }
.quote__incl ul { margin: var(--s-2) 0 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-2); }

/* ---------- 29. Alerts / error states -------------------------------- */
.alert { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--r); border: 1px solid; }
.alert svg { width: 22px; height: 22px; margin-top: 1px; }
.alert h3 { font-size: var(--fs-m); margin-bottom: 2px; }
.alert p, .alert li { font-size: var(--fs-s); }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert__actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.alert--error { background: #FFF6F5; border-color: #E3A9A2; color: #5B1414; }
.alert--error svg { color: var(--red); }
.alert--warn { background: #FFFBF1; border-color: #E2C98A; color: #4A3200; }
.alert--warn svg { color: var(--amber); }
.alert--info { background: var(--green-50); border-color: var(--green-100); color: var(--green-900); }
.alert--info svg { color: var(--green); }

/* ---------- 30. Owner's work queue ----------------------------------- */
.queue-app { max-width: 760px; margin: 0 auto; }
.queue-top { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) 0; }
.queue-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--ink); background: var(--sheet); }
.queue-stats > div { padding: 10px 12px; }
.queue-stats > div + div { border-left: 1px solid var(--ink); }
.queue-stats b { display: block; font-size: var(--fs-2xl); line-height: 1.1; font-family: var(--mono); }
.queue-tabs { display: flex; gap: 6px; overflow-x: auto; padding: var(--s-4) 0 var(--s-3); }
.queue { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.qrow { position: relative; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.qrow::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--green-100); }
.qrow--soon::before { background: #D9A23A; }
.qrow--late::before { background: var(--red); }
.qrow > summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px var(--s-3); padding: var(--s-4) var(--s-4) var(--s-4) var(--s-5); cursor: pointer; }
.qrow > summary::-webkit-details-marker { display: none; }
.qrow__code { font-family: var(--mono); font-size: var(--fs-s); color: var(--ink-2); }
.qrow__title { font-weight: var(--w-bold); grid-column: 1 / 2; }
.qrow__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: var(--fs-s); color: var(--ink-3); align-items: center; }
.qrow__due { text-align: right; display: grid; justify-items: end; gap: 2px; grid-row: 1 / 3; grid-column: 2; }
.qrow__left { font-family: var(--mono); font-size: var(--fs-l); font-weight: var(--w-bold); font-feature-settings: "tnum"; }
.qrow--soon .qrow__left { color: var(--amber); }
.qrow--late .qrow__left { color: var(--red); }
.qrow__body { padding: 0 var(--s-4) var(--s-4) var(--s-5); display: grid; gap: var(--s-3); border-top: 1px dashed var(--line); padding-top: var(--s-4); }
.qrow__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
.qrow__actions .btn--block { grid-column: 1 / -1; }
.attach-list { display: flex; flex-wrap: wrap; gap: 6px; }
.attach-list a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--paper); font-size: var(--fs-s); text-decoration: none; color: var(--ink); }

/* ---------- 31. Canvas helper (mockup board labels only) ------------- */
.state-label { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 4px; padding: 2px 8px; margin-bottom: var(--s-3); background: var(--sheet); }

/* ---------- 32. Site additions (Django build) ------------------------- */
/* Django form widgets carry no classes: give them the .input look */
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r-s);
  background: var(--sheet); font: inherit; font-size: var(--fs-m); color: var(--ink); }
textarea { min-height: 96px; resize: vertical; line-height: var(--lh); }
input[type=text]:focus, input[type=email]:focus, input[type=tel]:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-100); }
.errorlist { list-style: none; margin: 0; padding: 0; color: var(--red); font-size: var(--fs-s); font-weight: var(--w-bold); }
/* selected states without JavaScript */
.seg label:has(input:checked) { background: var(--sheet); color: var(--ink); box-shadow: var(--sh-1); }
.pick:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 2px var(--green); }
.pick:has(input:checked) .pick__tick { display: grid; }
.place:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.seg input:focus-visible + *, .pick:has(input:focus-visible), .seg label:has(input:focus-visible) { box-shadow: var(--focus); }
.dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone { position: relative; cursor: pointer; }
.leaflet-map { height: 420px; border: 1px solid var(--line-2); border-radius: var(--r-s); z-index: 0; }
.leaflet-map--short { height: 260px; }
.pane[hidden] { display: none; }
.sheet__frame img { background: var(--sheet); }
/* In shaa Allah: part of the sentence, in the text's own font, size and colour */
.insha { unicode-bidi: isolate; white-space: nowrap; }
[hidden] { display: none !important; }
.tier:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 2px var(--green); }
.tier:has(input:checked) .tier__radio { border: 7px solid var(--green); }
.tier:has(input:focus-visible) { box-shadow: var(--focus); }
.attach-list .file-pill { padding: 6px 10px; }
.voice-chip audio { height: 36px; }
.order-main, .order-aside, .queue, .qrow__body { grid-template-columns: minmax(0, 1fr); }
.queue-top { flex-wrap: wrap; }
.qrow__due { min-width: 0; }
.site-header .btn { white-space: nowrap; }
@media (max-width: 479px) { .site-header .btn { min-height: 40px; padding: 8px 12px; font-size: var(--fs-s); } .logo__sub { display: none; } }

/* ---------- 33. Service cards: label above value, one column at every size ---------- */
.rung__facts { grid-template-columns: minmax(0, 1fr); }
.rung__facts .k, .rung__facts .v { display: block; }
.rung__facts .k { margin-bottom: 2px; }
.rung__facts > div { min-width: 0; padding: 10px 0; }
.rung__facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
.rung--engineer .rung__facts > div + div { border-top-color: #3B5A42; }

/* ---------- 34. Step 1: ways in, place search, "what you get" ---------- */
.search { display: flex; gap: 8px; }
.search .input { flex: 1; min-width: 0; }
.search__results { list-style: none; margin: 4px 0 0; padding: 4px; background: var(--sheet); border: 1px solid var(--line-2);
  border-radius: var(--r-s); box-shadow: var(--sh-2); position: relative; z-index: 500; }
.search__results button { display: block; width: 100%; text-align: left; min-height: var(--tap); padding: 8px 10px; border: 0;
  background: none; font: inherit; color: var(--ink); cursor: pointer; border-radius: 4px; }
.search__results button:hover, .search__results button:focus-visible { background: var(--green-50); }
.kinds { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0; font-size: var(--fs-s); color: var(--ink-2); }
.kinds b { color: var(--ink); }
.pane { display: grid; gap: 4px; }
.file-pill--bad { border-color: var(--red); }
.file-pill--bad .file-pill__meta { color: var(--red); font-weight: var(--w-bold); }
.get-strip { display: flex; gap: 12px; align-items: center; padding: 10px; margin-bottom: 16px; background: var(--sheet);
  border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); font-size: var(--fs-s); }
.get-strip img { width: 84px; height: 58px; object-fit: cover; object-position: top left; border: 1px solid var(--line); border-radius: 4px; flex: none; }
.get-lg { display: none; }
@media (min-width: 1024px) { .get-sm { display: none; } .get-lg { display: grid; } }
@media (max-width: 479px) { .hide-xs { display: none; } .ways__opt small { display: none; } }
@media (hover: none) { .hide-touch { display: none; } }
.leaflet-map { height: 420px; }
@media (max-width: 719px) { .leaflet-map { height: 360px; } }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps--3 li { font-size: var(--fs-s); }

/* starting text for the project name */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.chips[hidden] { display: none; }
.chip { min-height: 32px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: inherit; font: inherit; font-size: 14px; cursor: pointer; }
.chip:hover, .chip:focus-visible { border-color: var(--terra); }
.chip--on, .chip--on:hover { background: var(--ink); border-color: var(--ink); color: #fff; }  /* the rule above resets .chip's colours */
[data-signatures][hidden], [data-parties][hidden] { display: none; }
.more--inner { background: var(--paper); }
.parts { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-3); }
.parts .is-here { color: #1F5C2E; }
.parts .is-missing { color: #A61B1B; font-weight: var(--w-bold); }
.more__body > .form-row + .form-row, .more__body > .form-row + .field { margin-top: var(--s-4); }

/* language switch, the simple first step (09-11) */
.lang-switch { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.lang-switch b { color: var(--ink); font-weight: 600; }
.lang-switch a { color: var(--ink-3); text-decoration: none; }
.lang-switch a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 900px) { .site-header .lang-switch { display: none; } }
.ways[hidden], .other-ways[hidden] { display: none; }
.draw-tools { gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.other-ways { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 4px 0 12px; font-size: 14px; }
.other-ways a { display: inline-flex; gap: 6px; align-items: center; }
.other-ways svg { width: 16px; height: 16px; }
.code-box { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--r); margin-top: 14px; }
.code-box b { font-family: var(--mono, monospace); font-size: 20px; letter-spacing: 1px; }
.place-line { margin: 0 0 14px; }
.nav a { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1439px) { .nav a.nav__extra { display: none; } }
@media (min-width: 1024px) and (max-width: 1179px) { .site-header .avail--pill { display: none; } }
.beta-strip { background: var(--amber-bg); border-bottom: 1px solid var(--line); font-size: 14px; padding: 8px 0; color: var(--ink); }
.cat-row--soon .cat-row__thumb { display: grid; place-items: center; color: var(--ink-3); }
.cat-row--soon .cat-row__thumb svg { width: 24px; height: 24px; }

/* ---- motion (16-11): swaying contours on the home page, eased transitions. Off when the device asks for less motion */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }               /* a soft cross-fade from page to page, where the browser can */
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

  .hero__contours { animation: contour-drift 26s ease-in-out infinite alternate; transform-origin: 70% 50%; will-change: transform; }
  .hero__contours path { transform-box: fill-box; transform-origin: center; animation: contour-sway 11s ease-in-out infinite alternate; }
  .hero__contours path:nth-child(2) { animation-duration: 13s; animation-delay: -3s; }
  .hero__contours path:nth-child(3) { animation-duration: 9s; animation-delay: -5s; animation-direction: alternate-reverse; }
  .hero__contours path:nth-child(4) { animation-duration: 15s; animation-delay: -2s; }
  .hero__contours path:nth-child(5) { animation-duration: 8s; animation-delay: -6s; animation-direction: alternate-reverse; }
  .hero__contours path:nth-child(6) { animation-duration: 17s; animation-delay: -4s; }
  .hero__contours path:nth-child(7) { animation-duration: 19s; animation-delay: -8s; animation-direction: alternate-reverse; }
  .hero__contours path:nth-child(8) { animation-name: contour-flow; animation-duration: 12s; }
  .hero__contours path:nth-child(9) { animation-name: contour-flow; animation-duration: 14s; animation-delay: -5s; }
  @keyframes contour-sway { from { transform: translate(-7px, 4px) rotate(-1.4deg) scale(.985); } to { transform: translate(9px, -6px) rotate(1.6deg) scale(1.02); } }
  @keyframes contour-flow { from { transform: translate(-14px, 5px); } to { transform: translate(16px, -7px); } }
  @keyframes contour-drift { from { transform: translate(-6px, 0) scale(1); } to { transform: translate(8px, -5px) scale(1.03); } }

  main { animation: page-in .38s ease-out both; }
  .hero__copy > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__copy > *:nth-child(2) { animation-delay: .06s; } .hero__copy > *:nth-child(3) { animation-delay: .12s; }
  .hero__copy > *:nth-child(4) { animation-delay: .18s; } .hero__copy > *:nth-child(5) { animation-delay: .24s; }
  .hero .sheet { animation: rise .8s .2s cubic-bezier(.2, .7, .2, 1) both; }
  .preview__stage img { animation: page-in .6s ease-out both; }
  @keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

  .btn { transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
  .btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(20, 40, 25, .16); }
  .btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
  .rung, .layout-card, .pick, .contact__tile, .cat-row, .tier, .get-strip { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease; }
  .rung:hover, .layout-card:hover, .pick:hover, .contact__tile:hover, .tier:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20, 40, 25, .12); }
  .layout-card__img img, .pick__img img { transition: transform .5s ease; }
  .layout-card:hover .layout-card__img img, .pick:hover .pick__img img { transform: scale(1.04); }
  .nav a, .lang-switch a, .menu__panel a, a { transition: color .15s ease, background-color .15s ease; }
  .input, input, textarea, select { transition: border-color .15s ease, box-shadow .15s ease; }
  details[open] > *:not(summary) { animation: reveal .28s ease-out both; }
  .alert, .pay-state, .code-box, .beta-strip { animation: reveal .35s ease-out both; }
  .search__results li { animation: reveal .18s ease-out both; }
  @keyframes reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

  /* sections ease in as they scroll into view, where the browser can tie motion to scrolling */
  @supports (animation-timeline: view()) {
    .section-head, .rung, .layout-card, .cat-row, .how li, .promises li, .faq details, .samples > * {
      animation: rise-in linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    @keyframes rise-in { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
  }
}

/* ---- landing page (16-11): a short page with map furniture (north arrows, scale bars, graticule) floating behind it */
.deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; color: var(--green); }
.deco__crosses { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .28; }
.deco__lon, .deco__lat { position: absolute; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px;
  letter-spacing: .08em; color: var(--ink-3); opacity: .75; }
.deco__lon { left: 0; right: 0; top: 6px; padding-inline: 4%; }
.deco__lon span, .deco__lat span { position: relative; }
.deco__lon span::after { content: ""; position: absolute; left: 50%; top: 100%; height: 7px; border-left: 1px solid currentColor; }
.deco__lat { top: 0; bottom: 0; left: 6px; flex-direction: column; padding-block: 56px 28px; }
.deco__lat span::after { content: ""; position: absolute; left: calc(100% + 4px); top: 50%; width: 7px; border-top: 1px solid currentColor; }
.deco__item { position: absolute; pointer-events: none; color: var(--green); overflow: visible; }
.deco__north { width: 74px; height: 89px; opacity: .2; }
.deco__north--a { left: 43%; top: 9%; width: 96px; height: 115px; }
.deco__north--b { right: 2.5%; bottom: 7%; width: 40px; height: 73px; color: var(--terra); opacity: .28; }
.deco__north--c { right: 5%; top: 44px; width: 44px; height: 81px; opacity: .16; }
.deco__scale { width: 220px; height: 34px; opacity: .3; }
.deco__scale--a { left: 3%; bottom: 22px; }
.deco__scale--b { right: 9%; top: 34px; width: 176px; height: 27px; opacity: .22; }
.deco__scale--c { left: 56%; top: 62px; width: 200px; height: 31px; opacity: .2; }
@media (max-width: 1023px) {
  .deco__lat, .deco__scale--b, .deco__scale--c { display: none; }
  .deco__lon span:nth-child(even) { display: none; }
  .deco__north--a { left: auto; right: -14px; top: 30px; width: 78px; height: 94px; opacity: .16; }
  .deco__scale--a { left: auto; right: 16px; bottom: 12px; width: 150px; height: 23px; }
  .deco__north--b { display: none; }
  .deco__north--c { right: 12px; top: 20px; opacity: .13; }
}
.lp-hero .hero__in { z-index: 1; }

.lp-how { position: relative; overflow: hidden; background: var(--green-900); color: #fff; }
.lp-how__contours { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lp-how__north { right: -46px; bottom: -58px; width: 230px; height: 230px; color: #fff; opacity: .07; }
.lp-how__in { position: relative; display: grid; gap: var(--s-8); padding-block: var(--s-12); }
.lp-how__head { display: grid; gap: var(--s-3); }
.lp-how .eyebrow { color: #BFE0C6; }
.lp-how h2 { color: #fff; }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-6); counter-reset: none; }
.lp-steps li { position: relative; display: grid; gap: var(--s-2); align-content: start; padding-top: var(--s-4); border-top: 1px solid rgba(255, 255, 255, .28); }
.lp-steps li::before { content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.lp-steps__n { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: #BFE0C6; }
.lp-steps h3 { color: #fff; font-size: var(--fs-l); }
.lp-steps p { color: rgba(255, 255, 255, .78); font-size: var(--fs-s); }
.lp-how__cta { justify-self: start; background: #fff; color: var(--green-900); border-color: #fff; }
.lp-how__cta:hover { background: var(--green-50); color: var(--green-900); }
@media (min-width: 640px) { .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .lp-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-8); } .lp-how__in { padding-block: var(--s-16); } }

.lp-layouts, .lp-services, .lp-contact { position: relative; overflow: hidden; }
.lp-layouts { background: var(--paper-2); }
.lp-layouts > .wrap, .lp-services > .wrap, .lp-contact > .wrap { position: relative; }
.lp-strip { display: grid; gap: var(--s-4); grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lp-strip .layout-card h3 { font-size: var(--fs-s); }
@media (max-width: 1023px) {   /* a row to swipe, not five tall cards */
  .lp-strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(62%, 260px); overflow-x: auto;
    scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--s-4)); padding: 0 var(--s-4) var(--s-3); scrollbar-width: thin; }
  .lp-strip > * { scroll-snap-align: start; }
}
.lp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-top: var(--s-6); font-size: var(--fs-s); }
.lp-chips span { padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--sheet); color: var(--ink-2); }
.lp-chips .lp-chips__label { border: 0; background: none; padding: 0 var(--s-2) 0 0; font-family: var(--mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

.lp-rows { border-top: 1px solid var(--ink); }
.lp-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-2) var(--s-4); align-items: center;
  padding: var(--s-4) var(--s-2); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.lp-row:hover { background: var(--sheet); color: var(--ink); }
.lp-row__n { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--green); align-self: start; padding-top: 3px; }
.lp-row--hand .lp-row__n { color: var(--terra); }
.lp-row__what { display: grid; gap: 2px; }
.lp-row__what b { font-size: var(--fs-l); }
.lp-row__what span { color: var(--ink-2); font-size: var(--fs-s); }
.lp-row__meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: 2px var(--s-3); align-items: baseline; font-size: var(--fs-s); color: var(--ink-2); }
.lp-row__meta b { font-family: var(--mono); color: var(--green-800); }
.lp-row--hand .lp-row__meta b { color: var(--terra); }
.lp-row__go { grid-column: 3; grid-row: 1; color: var(--ink-3); font-size: 20px; }
@media (min-width: 768px) {
  .lp-row { grid-template-columns: 44px minmax(0, 1fr) 210px 28px; padding: var(--s-5) var(--s-3); }
  .lp-row__meta { grid-column: auto; flex-direction: column; gap: 2px; }
  .lp-row__go { grid-column: auto; grid-row: auto; }
}
.lp-promises { list-style: none; margin: var(--s-8) 0 0; padding: 0; display: grid; gap: var(--s-4); font-size: var(--fs-s); color: var(--ink-2); }
.lp-promises li { display: flex; gap: var(--s-3); align-items: flex-start; }
.lp-promises svg { width: 20px; height: 20px; flex: none; color: var(--green); margin-top: 1px; }
.lp-promises b { color: var(--ink); }
@media (min-width: 900px) { .lp-promises { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-8); } }

.lp-contact__north { right: 3%; top: 50%; width: 120px; height: 144px; margin-top: -72px; opacity: .09; }
@media (max-width: 1023px) { .lp-contact__north { display: none; } }

@media (prefers-reduced-motion: no-preference) {
  .deco__north--a { animation: deco-float 16s ease-in-out infinite alternate, deco-compass 9s ease-in-out infinite alternate; }
  .deco__north--b { animation: deco-float 13s -4s ease-in-out infinite alternate-reverse; }
  .deco__north--c { animation: deco-float 15s -7s ease-in-out infinite alternate; }
  .deco__scale--a { animation: deco-slide 18s ease-in-out infinite alternate; }
  .deco__scale--b { animation: deco-slide 22s -6s ease-in-out infinite alternate-reverse; }
  .deco__scale--c { animation: deco-slide 20s -9s ease-in-out infinite alternate; }
  .deco__crosses { animation: deco-grid 40s linear infinite alternate; }
  .lp-how__north { animation: deco-turn 90s linear infinite; transform-origin: center; }
  .lp-contact__north { animation: deco-compass 11s ease-in-out infinite alternate; }
  .lp-how__contours path { transform-box: fill-box; transform-origin: center; animation: contour-flow 14s ease-in-out infinite alternate; }
  .lp-how__contours path:nth-child(even) { animation-duration: 18s; animation-delay: -6s; animation-direction: alternate-reverse; }
  .lp-row, .lp-row__go { transition: background-color .18s ease, transform .18s ease, color .18s ease; }
  .lp-row:hover .lp-row__go { transform: translateX(5px); color: var(--green); }
  @keyframes deco-float { from { translate: -8px 6px; } to { translate: 10px -12px; } }
  @keyframes deco-compass { from { rotate: -7deg; } to { rotate: 6deg; } }
  @keyframes deco-slide { from { translate: -14px 0; } to { translate: 18px -4px; } }
  @keyframes deco-grid { from { translate: -10px -6px; } to { translate: 12px 8px; } }
  @keyframes deco-turn { to { rotate: 360deg; } }
  @supports (animation-timeline: view()) {
    .lp-steps li, .lp-row, .lp-chips, .lp-promises li { animation: rise-in linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}
@media (max-width: 400px) { .site-header__in { gap: var(--s-2); } .site-header .btn { padding-inline: 12px; } }
.lp-label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 var(--s-3); }
.lp-maps { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: var(--s-10); }
.lp-map { display: grid; grid-template-rows: auto 1fr; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; color: var(--ink); text-decoration: none; }
.lp-map:hover { color: var(--ink); border-color: var(--green); }
.lp-map__img { display: block; aspect-ratio: 297 / 200; background: var(--paper-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.lp-map__img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.lp-map__body { display: grid; gap: 4px; align-content: start; padding: var(--s-3) var(--s-4) var(--s-4); }
.lp-map__body b { font-size: var(--fs-l); }
.lp-map__body > span { font-size: var(--fs-s); color: var(--ink-2); }
.lp-map__body .lp-map__meta { font-family: var(--mono); font-size: 12px; color: var(--green-800); padding-top: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .lp-map { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
  .lp-map:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20, 40, 25, .12); }
  .lp-map__img img { transition: transform .5s ease; }
  .lp-map:hover .lp-map__img img { transform: scale(1.04); }
}
/* ---- landing page, second pass (16-11): generated contours, live coordinates, more map furniture */
.lp-hero .hero__contours { -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.6) 38%, #000 62%);
  mask-image: linear-gradient(100deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.6) 38%, #000 62%); }
.hc { stroke-width: 1.1; stroke-opacity: .2; }
.hc--b { stroke-opacity: .15; }
.hc--major { stroke-width: 1.9; stroke-opacity: .27; }
.deco__mk { opacity: .22; }
.deco__mk--bench { left: 33%; bottom: 13%; width: 30px; height: 30px; color: var(--terra); opacity: .4; }
.deco__chip { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--ink-3); opacity: .8; white-space: nowrap; }
.deco__chip--spot { left: calc(33% + 34px); bottom: calc(13% + 6px); color: var(--terra); }
.deco__mk--cross { right: 30%; top: 15%; width: 34px; height: 34px; }
.deco__mk--pin { left: 51%; bottom: 9%; width: 26px; height: 35px; color: var(--terra); opacity: .3; }
.deco__mk--arc { left: 1.5%; top: 34%; width: 104px; height: 104px; opacity: .16; }
.deco__mk--bound { right: 16%; bottom: 3%; width: 230px; height: 53px; opacity: .2; }
.deco__chip--ratio { left: calc(3% + 232px); bottom: 30px; }
.deco__chip--utm { right: 10px; top: 58%; writing-mode: vertical-rl; }
.deco__scale--b { height: 32px; }
.deco__mk--cross2 { left: 4%; bottom: 40px; width: 30px; height: 30px; opacity: .16; }
.deco__chip--zone { right: 5%; bottom: 26px; opacity: .6; }
.lp-how__bar { left: 52%; top: 26px; width: 200px; height: 36px; color: #fff; opacity: .12; }
.lp-how__arc { left: -18px; bottom: -18px; width: 150px; height: 150px; color: #fff; opacity: .08; }
.lp-contact__bench { right: calc(3% + 150px); top: 24px; width: 28px; height: 28px; opacity: .12; }

.deco__cursor[hidden] { display: none; }
.deco__cursor-x, .deco__cursor-y { position: absolute; left: 0; top: 0; will-change: transform; }
.deco__cursor-x { height: 100%; border-left: 1px dashed var(--green); opacity: .22; }
.deco__cursor-y { width: 100%; border-top: 1px dashed var(--green); opacity: .22; }
.deco__tick { position: absolute; left: 0; top: 0; font: 600 10px/1 var(--mono); letter-spacing: .04em; color: #fff; background: var(--green);
  padding: 3px 5px; border-radius: 3px; white-space: nowrap; will-change: transform; }
.deco__tick--lon { top: 3px; margin-left: -24px; }
.deco__tick--lat { left: 3px; margin-top: -8px; }
.deco__readout { position: absolute; left: 0; top: 0; font: 600 11px/1.45 var(--mono); letter-spacing: .03em; color: var(--green-900);
  background: color-mix(in srgb, var(--sheet) 88%, transparent); border: 1px solid var(--line-2); border-radius: 4px; padding: 5px 8px;
  white-space: nowrap; box-shadow: var(--sh-1); will-change: transform; }
.deco__readout small { font-weight: 400; font-size: 10px; color: var(--ink-3); }
@media (max-width: 1023px) {
  .deco__mk--cross, .deco__mk--arc, .deco__mk--bound, .deco__chip--ratio, .deco__chip--utm, .deco__mk--pin, .deco__tick--lat,
  .lp-how__bar, .lp-contact__bench, .deco__chip--zone { display: none; }
  .deco__mk--bench { left: auto; right: 104px; bottom: auto; top: 96px; width: 22px; height: 22px; }
  .deco__chip--spot { left: auto; right: 44px; bottom: auto; top: 102px; }
  .deco__readout { font-size: 10px; padding: 3px 6px; transform: none !important; left: auto; right: 8px; top: 26px; }
  .deco__readout small, .deco__readout br { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .lp-hero .hero__contours path { animation: none; }
  .hc { transform-box: fill-box; transform-origin: center; animation: contour-sway 17s ease-in-out infinite alternate; }
  .hc--b { animation-duration: 23s; animation-delay: -7s; animation-direction: alternate-reverse; }
  .hc--major { animation-name: contour-flow; animation-duration: 29s; animation-delay: -11s; }
  .deco__mk--bench, .deco__chip--spot { animation: deco-float 14s -3s ease-in-out infinite alternate; }
  .deco__mk--cross { animation: deco-turn 70s linear infinite; transform-origin: center; }
  .deco__mk--cross2 { animation: deco-turn 90s linear infinite reverse; transform-origin: center; }
  .deco__mk--pin { animation: deco-bob 5s ease-in-out infinite alternate; }
  .deco__mk--arc { animation: deco-compass 13s ease-in-out infinite alternate; transform-origin: 90% 90%; }
  .deco__mk--bound { animation: deco-slide 24s -5s ease-in-out infinite alternate-reverse; }
  .deco__mk--bound use { stroke-dashoffset: 0; animation: deco-dash 9s linear infinite; }
  .deco__chip--ratio, .deco__chip--utm, .deco__chip--zone { animation: deco-float 19s -8s ease-in-out infinite alternate-reverse; }
  .lp-how__bar { animation: deco-slide 26s ease-in-out infinite alternate; }
  .lp-how__arc { animation: deco-compass 15s ease-in-out infinite alternate; transform-origin: 90% 90%; }
  .lp-contact__bench { animation: deco-bob 6s ease-in-out infinite alternate; }
  .deco__cursor-x, .deco__cursor-y, .deco__tick, .deco__readout { transition: transform .12s linear; }
  @keyframes deco-bob { from { translate: 0 0; } to { translate: 0 -9px; } }
  @keyframes deco-dash { to { stroke-dashoffset: -52; } }
}
/* the live coordinates stay in the background (16-11): thin marks and quiet text, no boxes */
.deco__cursor-x, .deco__cursor-y { opacity: .1; }
.deco__tick { font-weight: 400; font-size: 9.5px; color: var(--ink-3); background: none; padding: 0; opacity: .75; }
.deco__tick--lon { top: 18px; margin-left: 5px; }
.deco__tick--lat { left: 30px; margin-top: 4px; }
.deco__readout { font-weight: 400; font-size: 10px; color: var(--ink-3); background: none; border: 0; box-shadow: none; padding: 0; opacity: .7; }
.deco__readout small { font-size: 9.5px; }
@media (max-width: 1023px) { .deco__cursor-x, .deco__cursor-y { display: none; } .deco__readout { top: 20px; } }
@media (prefers-reduced-motion: no-preference) {
  .deco__cursor-x, .deco__cursor-y, .deco__tick, .deco__readout { transition: transform .35s ease-out; }
}
/* ---- landing page, third pass (16-11): the top section is a map of a real place (docs/showcase/make_scenes.py) */
.lp-hero { background: #cfd8b8; border-bottom-color: var(--ink); }
.scenes { position: absolute; inset: 0; overflow: hidden; }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity 2.4s ease; }
.scene.is-on { opacity: 1; }
.scene img { position: absolute; left: 50%; top: 50%; aspect-ratio: 2 / 1; min-width: 112%; min-height: 112%; width: auto; height: auto;
  max-width: none; translate: -50% -50%; display: block; }
.lp-hero .hero__copy { background: color-mix(in srgb, var(--paper) 93%, transparent); border: 1px solid var(--line-2); border-radius: 10px;
  padding: var(--s-6) var(--s-5); box-shadow: 0 18px 40px rgba(20, 35, 20, .22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lp-hero .hero__in { padding-bottom: calc(var(--s-12) + 34px); }
.deco--map { color: #fff; }
.deco--map .deco__north--a { left: auto; right: 22px; top: 18px; width: 58px; height: 70px; color: #fff; opacity: .9;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55)); animation: none; }
.deco--map .deco__cursor-x, .deco--map .deco__cursor-y { border-color: #fff; opacity: .35; }
.deco--map .deco__tick, .deco--map .deco__readout { color: #fff; opacity: .95; font-weight: 600;
  text-shadow: 0 0 3px rgba(0, 0, 0, .9), 0 1px 2px rgba(0, 0, 0, .8); }
.deco--map .deco__tick--lon { top: 6px; } .deco--map .deco__tick--lat { left: 8px; }
.scene-foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; gap: var(--s-5); padding: 10px 16px;
  font: 600 11px/1.2 var(--mono); letter-spacing: .04em; color: #fff; text-shadow: 0 0 3px rgba(0, 0, 0, .9), 0 1px 2px rgba(0, 0, 0, .8);
  background: linear-gradient(transparent, rgba(0, 0, 0, .38)); }
.scene-bar { display: grid; gap: 3px; }
.scene-bar i { display: block; height: 6px; min-width: 20px; border: 1.5px solid #fff; border-top: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  transition: width .6s ease; }
.scene-bar b { font-weight: 600; }
.scene-name { text-transform: uppercase; letter-spacing: .1em; }
.scene-credit { margin-left: auto; font-weight: 400; font-size: 9.5px; opacity: .9; text-align: right; }
@media (max-width: 1023px) {
  .lp-hero .hero__copy { padding: var(--s-5) var(--s-4); }
  .scene-credit { max-width: 46%; }
  .scene-foot { flex-wrap: wrap; gap: 6px var(--s-4); }
  .deco--map .deco__readout { top: 6px; right: 90px; }
  .deco--map .deco__tick--lon { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .scene img { animation: scene-drift 48s ease-in-out infinite alternate; }
  .scene:nth-child(2) img { animation-name: scene-drift-b; }
  .scene:nth-child(3) img { animation-duration: 56s; animation-direction: alternate-reverse; }
  @keyframes scene-drift { from { transform: translate(-4%, -3%) scale(1); } to { transform: translate(4%, 3%) scale(1.1); } }
  @keyframes scene-drift-b { from { transform: translate(4%, -3%) scale(1.1); } to { transform: translate(-4%, 3%) scale(1); } }
}
/* places the pointer comes near on the top section's map: a symbol and a name, then gone again */
.scene-tag { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 6px; margin: -9px 0 0 -9px; color: #fff;
  font: 600 12.5px/1.2 var(--font); white-space: nowrap; opacity: 0; transition: opacity .4s ease; will-change: transform, opacity;
  text-shadow: 0 0 3px rgba(0, 0, 0, .95), 0 1px 3px rgba(0, 0, 0, .85); }
.scene-tag svg { width: 18px; height: 18px; flex: none; fill: currentColor; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .9)); }
.scene-tag.is-near { opacity: 1; }
.scene-tag.is-left { flex-direction: row-reverse; margin-left: 0; translate: calc(-100% + 9px) 0; }
.scene-tag--river, .scene-tag--dam { color: #d9f0ff; }
.scene-tag--park { color: #e2f6d0; }
.scene-tag--town b, .scene-tag--place b, .scene-tag--airport b { font-weight: 400; }
@media (max-width: 1023px) { .scene-tag { font-size: 11.5px; } .scene-tag svg { width: 15px; height: 15px; } }
/* room for the map itself: a clear band above and below the text and the sample sheet */
@media (min-width: 1024px) { .lp-hero .hero__in { padding-block: 84px 150px; } .lp-hero .hero__copy { max-width: 540px; } }
@media (max-width: 1023px) { .lp-hero .hero__in { padding-top: 120px; padding-bottom: 150px; } }
/* ---- landing page, fourth pass (16-11): the map travels and zooms under script control; on phones it has a window of its own */
.scn { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; opacity: 0; transition: opacity 2.6s ease;
  will-change: transform, opacity; -webkit-user-select: none; user-select: none; }
.scn.is-on { opacity: 1; }
.scenes { background: #c9d4b0; }
.scene-ratio { font-weight: 400; opacity: .95; }
.scene-bar i { transition: none; }
.deco--map .deco__cursor-x, .deco--map .deco__cursor-y, .deco--map .deco__tick, .deco--map .deco__readout { transition: none; }
@media (max-width: 700px) {
  .lp-hero { background: var(--paper); }
  .lp-hero .scenes, .lp-hero .deco--map { bottom: auto; height: 62vh; height: min(62svh, 560px); }
  .lp-hero .hero__in { padding-top: calc(62vh - 26px); padding-top: calc(min(62svh, 560px) - 26px); padding-bottom: var(--s-10); }
  .lp-hero .hero__copy { box-shadow: 0 -8px 28px rgba(20, 35, 20, .18); -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
  .scene-foot { padding: 8px 12px 34px; }
  .scene-credit { max-width: none; flex-basis: 100%; text-align: left; margin-left: 0; font-size: 9px; }
  .deco--map .deco__readout { top: 0; right: auto; transform: none; font-size: 11px; }
  .deco--map .deco__cursor-x, .deco--map .deco__cursor-y { display: block; }
  .deco--map .deco__north--a { top: 12px; right: 12px; width: 44px; height: 53px; }
}
@media (max-width: 1023px) { .deco--map .deco__readout { transform: none !important; left: 10px; right: auto; top: 10px; font-size: 11px; padding: 0; } }
/* phones: the map-making prompt comes first. The map keeps a window above it; heading and buttons are on the first screen */
@media (max-width: 700px) {
  .lp-hero .scenes, .lp-hero .deco--map { height: 34vh; height: clamp(210px, 34svh, 300px); }
  .lp-hero .hero__in { padding-top: calc(34vh - 22px); padding-top: calc(clamp(210px, 34svh, 300px) - 22px); }
  .lp-hero .hero__copy { gap: var(--s-4); padding: var(--s-4); }
  .lp-hero .hero__copy .hero__actions { order: 3; }
  .lp-hero .hero__copy .hero__lede { order: 4; font-size: var(--fs-m); }
  .lp-hero .hero__copy .hero__proof { order: 5; }
  .lp-hero .hero__actions .btn { flex: 1 1 100%; }
  .scene-foot { padding: 6px 12px 28px; gap: 4px 12px; }
  .scene-credit { display: none; }
  .scene-name { font-size: 10px; }
  .deco--map .deco__north--a { width: 36px; height: 43px; top: 10px; right: 10px; }
}
@media (max-width: 700px) { .scene-credit { display: block; font-size: 8px; line-height: 1.25; opacity: .85; } .scene-foot { padding-bottom: 26px; } }
/* ---- logo (16-11): an M standing on a scale bar; the name in two weights, no tagline */
.logo { gap: 9px; }
.logo__mark { width: 40px; height: 40px; margin: -2px 0 -2px -3px; }
.logo__name { font-weight: var(--w-regular); font-size: 21px; letter-spacing: -0.015em; }
.logo__name b { font-weight: var(--w-bold); }
@media (max-width: 479px) { .logo__mark { width: 36px; height: 36px; } .logo__name { font-size: 19px; } }
/* the main buttons lead here: pick a map type first */
.lp-pick { font-size: var(--fs-xl, 24px); margin: 0 0 var(--s-4); scroll-margin-top: 20px; }
.lp-pick:target + .lp-maps .lp-map { animation: pick-me 1.2s ease-out 1; }
@keyframes pick-me { 0% { box-shadow: 0 0 0 0 rgba(29, 91, 46, .55); } 100% { box-shadow: 0 0 0 14px rgba(29, 91, 46, 0); } }
/* the look pickers: colours, fonts, icons, land cover colours */
.look-row { display: grid; gap: 10px 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 6px 0 12px; }
.look-row .field { margin: 0; }
.look-row select.input { width: 100%; }
/* the drawing map's background switch (street map / Google map / satellite) and the Google search entry */
.base-switch { display: flex; background: #fff; border-radius: 8px; overflow: hidden; }
.base-switch button { border: 0; background: #fff; padding: 7px 10px; font-family: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.2; color: #22302a; cursor: pointer; }
.base-switch button + button { border-left: 1px solid #d9ddd8; }
.base-switch button[aria-pressed="true"] { background: #1f4e3d; color: #fff; }
.search__google button { color: #1a56b0; font-weight: 600; }
.search__foot { padding: 8px 14px; font-size: 12.5px; }
img.gm-logo { display: block; height: 18px; width: auto; margin: 0 0 5px 10px; pointer-events: none; }  /* Google: 16-19 px tall, clear space */
img.gm-logo[hidden] { display: none; }
/* catchment choices: the lettered parts' outlets */
.sb-label { width: 22px !important; height: 22px !important; margin: -11px 0 0 -11px !important; border-radius: 50%;
  background: #2d4760; color: #fff; font: 700 12px/22px system-ui, sans-serif; text-align: center; border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.35); cursor: pointer; }
@media (max-width: 420px) { .base-switch button { padding: 7px 8px; font-size: 12px; } }
