/* ==========================================================================
   FEIJOADA ANONYMOUS — Azulejo Modernista
   One continuous glazed tile wall. Cream glaze ground, faint grout grid,
   cobalt/sun/leaf/terra geometric motifs, 3px ink grout borders everywhere.
   ========================================================================== */

:root {
  /* --- the wall: glazed cream, grout ink --- */
  --tile: #f7f2e7;        /* glazed cream — the page ground */
  --tile-2: #efe7d3;      /* recessed glaze, alternating bands */
  --tile-3: #e4d9be;      /* deepest recess — tracks, wells */
  --ink: #191714;         /* grout, and all primary text */
  --muted: #565040;       /* 7.2:1 on --tile */

  /* --- the glaze colors --- */
  --cobalt: #1e4f9c;      /* 7.1:1 cream-on-cobalt */
  --sun: #f2b705;         /* 9.9:1 ink-on-sun */
  --leaf: #2a6f46;        /* 5.4:1 cream-on-leaf */
  --terra: #ad4a22;       /* 4.95:1 cream-on-terra */

  /* rgb channels */
  --ink-rgb: 25, 23, 20;
  --tile-rgb: 247, 242, 231;
  --cobalt-rgb: 30, 79, 156;
  --sun-rgb: 242, 183, 5;
  --leaf-rgb: 42, 111, 70;
  --terra-rgb: 173, 74, 34;

  /* the black bean — the product mark */
  --bean-lit: #4a4238;
  --bean-mid: #241f19;
  --bean-dark: #100d0a;
  --bean-surface: radial-gradient(circle at 38% 32%, var(--bean-lit), var(--bean-mid) 60%, var(--bean-dark));

  --grout: 3px solid var(--ink);
  --grout-thin: 2px solid var(--ink);

  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "Archivo", -apple-system, system-ui, sans-serif;
  --font-mono: "Courier Prime", "Courier New", ui-monospace, monospace;

  --maxw: 1200px;
  --topbar-h: 62px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--ink) var(--tile-2);
}

section[id] { scroll-margin-top: calc(var(--topbar-h) + 40px); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 300;
  background: var(--sun); color: var(--ink);
  font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none;
  padding: 12px 18px; border: var(--grout); border-top: 0; border-radius: 0 0 10px 10px;
  transition: top .18s cubic-bezier(.16,1,.3,1);
}
.skip-link:focus { top: 0; }

body {
  background-color: var(--tile);
  background-image:
    repeating-linear-gradient(0deg, rgba(var(--ink-rgb),.045) 0 2px, transparent 2px 96px),
    repeating-linear-gradient(90deg, rgba(var(--ink-rgb),.045) 0 2px, transparent 2px 96px);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--sun); color: var(--ink); }

a { color: inherit; text-underline-offset: 3px; }

input, select, textarea { caret-color: var(--cobalt); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono); font-weight: 700;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cobalt); background: var(--tile);
  border: 2px solid var(--cobalt); border-radius: 4px;
  padding: 5px 11px 4px; transform: rotate(-1.2deg);
}

.section-head { text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 5.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 18px auto 0;
  max-width: 18ch;
  text-wrap: balance;
}
.section-head p {
  color: var(--muted);
  max-width: 54ch;
  margin: 18px auto 0;
  font-size: clamp(16px, 2vw, 19px);
}

section { position: relative; }
.band { padding: clamp(72px, 11vw, 140px) 0; }

/* tile frieze */
.band::before, footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 24px;
  border-top: var(--grout); border-bottom: var(--grout);
  background-color: var(--tile);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='24' viewBox='0 0 56 24'%3E%3Cpath d='M14 3 L26 12 L14 21 L2 12 Z' fill='%231e4f9c'/%3E%3Cpath d='M42 3 L54 12 L42 21 L30 12 Z' fill='%23f2b705'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: center;
}
#checklist, #incidents, #sponsor { background-color: transparent; }
#confessions, #meetings { background-color: var(--tile-2); }

/* ============ TOP BAR ============ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(20px, 5vw, 48px);
  background: var(--tile);
  border-bottom: var(--grout);
  transition: box-shadow .3s;
}
.topbar.scrolled { box-shadow: 0 10px 24px -14px rgba(var(--ink-rgb),.45); }
.brand-mark {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 19px;
  letter-spacing: -0.01em;
}
.brand-mark .fa {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 7px;
  background: var(--sun); color: var(--ink);
  border: var(--grout-thin);
  font-family: var(--font-mono); font-weight: 700; font-size: 14px;
  letter-spacing: 0;
}
.topbar nav { display: flex; gap: 24px; font-size: 13px; font-weight: 600; }
.topbar nav a {
  color: var(--muted); text-decoration: none; padding: 6px 0;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.topbar nav a:hover { color: var(--cobalt); border-bottom-color: var(--cobalt); }
@media (max-width: 760px) { .topbar nav { display: none; } }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  letter-spacing: 0.01em;
  padding: 14px 26px; border-radius: 10px;
  border: var(--grout); cursor: pointer; text-decoration: none;
  box-shadow: 0 8px 18px -10px rgba(var(--ink-rgb),.55);
  transition: transform .16s cubic-bezier(.16,1,.3,1), box-shadow .2s ease, background .2s;
}
.btn-primary { background: var(--cobalt); color: var(--tile); }
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--leaf);
  box-shadow: 0 14px 26px -12px rgba(var(--ink-rgb),.6);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: var(--tile); color: var(--ink); }
.btn-ghost:hover { background: var(--sun); transform: translateY(-2px); }

/* focus ring */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 4px; }

/* ============ HERO ============ */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  text-align: center; position: relative; overflow: hidden;
  padding: 120px 0 90px;
}
.hero-inner { position: relative; z-index: 2; }

/* the mural */
.mural {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 6px; padding: 6px;
  width: min(460px, 84vw); margin: 0 auto 10px;
  background: var(--ink);
  border: var(--grout); border-radius: 14px;
  box-shadow: 0 22px 40px -20px rgba(var(--ink-rgb),.5);
}
.mtile {
  position: relative; aspect-ratio: 1; border-radius: 5px; overflow: hidden;
  display: grid; place-items: center;
  background: var(--tile);
  color: var(--tile);
  animation: tileIn .55s cubic-bezier(.16,1,.3,1) both;
}
.mtile svg { display: block; width: 54%; height: 54%; }
.mtile:nth-child(2) { animation-delay: .05s; } .mtile:nth-child(3) { animation-delay: .1s; }
.mtile:nth-child(4) { animation-delay: .15s; } .mtile:nth-child(5) { animation-delay: .2s; }
.mtile:nth-child(6) { animation-delay: .25s; } .mtile:nth-child(7) { animation-delay: .3s; }
.mtile:nth-child(8) { animation-delay: .35s; } .mtile:nth-child(9) { animation-delay: .4s; }
.mtile:nth-child(10) { animation-delay: .45s; } .mtile:nth-child(11) { animation-delay: .5s; }
.mtile:nth-child(12) { animation-delay: .55s; }
@keyframes tileIn {
  from { opacity: 0; transform: rotate(-8deg) scale(.6); }
  to { opacity: 1; transform: none; }
}
/* glazes */
.c-cobalt { background: var(--cobalt); } .c-sun { background: var(--sun); }
.c-leaf { background: var(--leaf); } .c-terra { background: var(--terra); }
.c-cream { background: var(--tile); }
/* rest tiles */
.mtile::before { content: ""; position: absolute; background: var(--tile); }
.m-q::before { inset: 0; border-radius: 0 0 0 100%; }
.m-h::before { left: 0; right: 0; bottom: 0; height: 50%; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.m-dot::before { inset: 24%; border-radius: 50%; }
.m-d::before { inset: 0; clip-path: polygon(0 0, 100% 0, 0 100%); }
.m-bean::before {
  width: 56%; height: 38%; left: 22%; top: 31%;
  border-radius: 50% / 58%; background: var(--bean-surface);
  transform: rotate(-16deg);
  box-shadow: inset 0 1px 2px rgba(var(--tile-rgb),.3);
}
/* shape/icon glaze overrides */
.s-ink { color: var(--ink); } .s-ink::before { background: var(--ink); }
.s-cobalt { color: var(--cobalt); } .s-cobalt::before { background: var(--cobalt); }
.s-terra { color: var(--terra); } .s-terra::before { background: var(--terra); }
.s-leaf { color: var(--leaf); } .s-leaf::before { background: var(--leaf); }

.hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(30px, 6vw, 64px); line-height: 1.06;
  letter-spacing: -0.025em; margin-top: 28px;
  max-width: 20ch; margin-left: auto; margin-right: auto;
  text-wrap: balance;
}
.country-slot {
  display: inline-block; min-width: 8em; max-width: 100%;
  text-align: center; white-space: nowrap;
}
.hero h1 .country {
  display: inline-block; white-space: nowrap;
  color: var(--ink); background: var(--sun);
  border: var(--grout); border-radius: 10px;
  padding: 0 .22em;
  transform: rotate(-.6deg);
}
.type-caret {
  display: inline-block; width: 4px; height: .82em; vertical-align: -.06em;
  background: var(--ink); margin-left: 5px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero .sub {
  color: var(--muted); font-size: clamp(16px, 2.3vw, 21px);
  max-width: 44ch; margin: 24px auto 34px;
}
.hero .sub em { color: var(--cobalt); font-style: italic; font-weight: 600; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note {
  margin-top: 32px; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase;
}
.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: var(--muted); font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: bob 2.4s ease-in-out infinite; z-index: 3;
}
@keyframes bob { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,7px)} }

/* ============ DIAGNOSTIC CHECKLIST ============ */
.saudade-meter {
  position: sticky; top: calc(var(--topbar-h) + 10px); z-index: 40;
  background: var(--tile);
  border: var(--grout-thin); border-radius: 10px;
  box-shadow: 0 12px 26px -18px rgba(var(--ink-rgb),.5);
  max-width: var(--maxw); margin: 0 auto; padding: 12px clamp(20px,5vw,48px);
}
.saudade-meter .track {
  height: 12px; background: var(--tile-3); border-radius: 999px; overflow: hidden;
  border: var(--grout-thin);
}
.saudade-meter .fill {
  height: 100%; width: 100%; border-radius: 999px;
  background: var(--cobalt);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .28s cubic-bezier(.16,1,.3,1);
}
.saudade-meter .label {
  font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
  display: flex; justify-content: space-between; gap: 12px; margin-top: 8px;
}
.saudade-meter .label b { color: var(--cobalt); font-weight: 700; }

.steps-list {
  margin-top: 44px; display: grid;
  grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 20px) clamp(20px, 3vw, 28px);
}
.step {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(14px, 2vw, 22px);
  align-items: center;
  background: var(--tile); border: var(--grout);
  border-radius: 14px; padding: 18px clamp(18px, 2.4vw, 24px);
  box-shadow: 0 12px 26px -18px rgba(var(--ink-rgb),.5);
  opacity: 0; transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease, background .3s;
  cursor: pointer;
}
.step.in { opacity: 1; transform: none; }
.step:hover { background: var(--tile-2); }
.step:has(.check input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.step .check input {
  -webkit-appearance: none; appearance: none;
  width: 30px; height: 30px; margin-top: 4px; cursor: pointer;
  background: var(--tile); border: var(--grout-thin); border-radius: 8px;
  display: grid; place-items: center;
  transition: background .15s, border-color .15s;
}
.step .check input:checked { background: var(--sun); }
.step .check input:checked::after { content: "✓"; color: var(--ink); font-size: 18px; font-weight: 700; }
.step .check input:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.step:has(.check input:checked) { background: rgba(var(--sun-rgb),.16); }
.step .body h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(18px, 2.4vw, 25px); line-height: 1.14; letter-spacing: -0.015em;
}
.step .icon {
  width: 44px; height: 44px; border-radius: 10px; border: var(--grout-thin);
  display: grid; place-items: center; color: var(--tile); background: var(--cobalt);
}
.step:nth-child(3n+2) .icon { background: var(--leaf); }
.step:nth-child(3n+3) .icon { background: var(--terra); }
.step .icon svg { width: 24px; height: 24px; }
.dx-status {
  text-align: center; font-family: var(--font-mono); font-weight: 700; font-size: 13px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 34px;
}
@media (max-width: 720px) {
  .steps-list { grid-template-columns: 1fr; }
  .step { grid-template-columns: auto 1fr; }
  .step .icon { display: none; }
}

/* ============ CONFESSIONS ============ */
.corkboard {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 28px; align-items: start;
}
.confession {
  background: var(--tile); color: var(--ink);
  border: var(--grout); border-radius: 10px; padding: 28px 24px 22px;
  position: relative;
  box-shadow: 0 14px 28px -16px rgba(var(--ink-rgb),.5);
  font-family: var(--font-mono); font-size: 14px; line-height: 1.55;
  transition: transform .18s ease;
}
.confession:nth-child(3n+1) { transform: rotate(-1.4deg); }
.confession:nth-child(3n+2) { transform: rotate(1deg); margin-top: 22px; }
.confession:nth-child(3n+3) { transform: rotate(-0.6deg); margin-top: 10px; }
.confession:hover { animation: tremble .35s linear infinite; z-index: 5; }
@keyframes tremble {
  0%{transform:translate(0,0) rotate(-.6deg)} 25%{transform:translate(1px,-1px) rotate(.4deg)}
  50%{transform:translate(-1px,1px) rotate(-.9deg)} 75%{transform:translate(1px,1px) rotate(.6deg)}
  100%{transform:translate(-1px,0) rotate(-.4deg)}
}
.confession .pin {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 17px; height: 17px; border-radius: 3px; border: var(--grout-thin);
  background: var(--cobalt);
  box-shadow: 0 3px 5px rgba(var(--ink-rgb),.35);
}
.confession:nth-child(3n+2) .pin { background: var(--sun); }
.confession:nth-child(3n+3) .pin { background: var(--terra); }
.confession .stamp {
  font-weight: 700; font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--terra); border: 2px solid var(--terra); display: inline-block;
  padding: 3px 8px; border-radius: 3px; margin-bottom: 14px;
  transform: rotate(-2deg);
}
.confession blockquote {
  font-family: var(--font-body); font-weight: 600; font-size: 17.5px;
  line-height: 1.42; color: var(--ink); margin-bottom: 16px;
}
.confession .meta { border-top: 2px dashed rgba(var(--ink-rgb),.3); padding-top: 12px; }
.confession .meta .name { font-weight: 700; color: var(--ink); }
.confession .meta .loc { color: var(--muted); }
.confession .meta .vice { color: var(--terra); margin-top: 4px; }
.confession .meta .vice b { font-weight: 700; }

/* ============ INCIDENT REPORTS ============ */
.case {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px);
  align-items: center; margin-bottom: clamp(48px, 7vw, 90px);
}
.case:nth-child(even) .case-visual { order: 2; }
.case-file {
  background: var(--tile); border: var(--grout);
  border-radius: 16px; padding: clamp(24px, 3vw, 38px);
  box-shadow: 0 14px 30px -18px rgba(var(--ink-rgb),.5);
}
.case-file .filetag {
  font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.case-file .filetag .dot { width: 9px; height: 9px; border-radius: 2px; background: var(--terra); transform: rotate(45deg); }
.case-file h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(21px, 2.8vw, 30px); line-height: 1.1; letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.case-file p { color: var(--muted); font-size: 15.5px; margin-bottom: 18px; }
.rating { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.case-visual, .case-file { min-width: 0; }
.rating .beans { display: inline-flex; gap: 4px; }
.sadbean { width: 20px; height: 20px; opacity: .3; color: var(--muted); }
.sadbean.on { opacity: 1; color: var(--terra); }

.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ba figure {
  position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3;
  border: var(--grout); background: var(--tile-3);
  box-shadow: 0 12px 24px -16px rgba(var(--ink-rgb),.5);
}
.ba figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ba figcaption {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--font-mono); font-weight: 700; font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  background: var(--cobalt); color: var(--tile); padding: 5px 10px; border-radius: 999px;
  border: 2px solid var(--ink);
}
.ba figcaption.bad { background: var(--terra); }
@media (max-width: 780px) {
  .case { grid-template-columns: 1fr; }
  .case:nth-child(even) .case-visual { order: 0; }
}

/* ============ MEETING FINDER ============ */
.map-shell {
  display: grid; grid-template-columns: 1.7fr 1fr; gap: 0;
  border: var(--grout); border-radius: 18px; overflow: hidden;
  background: var(--tile); min-height: 520px;
  box-shadow: 0 16px 34px -20px rgba(var(--ink-rgb),.5);
}
.map-canvas {
  position: relative;
  background-color: var(--tile);
  background-image:
    repeating-linear-gradient(0deg, rgba(var(--cobalt-rgb),.07) 0 2px, transparent 2px 64px),
    repeating-linear-gradient(90deg, rgba(var(--cobalt-rgb),.07) 0 2px, transparent 2px 64px);
  overflow: hidden;
}
.map-canvas svg.world { position: absolute; inset: 0; width: 100%; height: 100%; }
.marker {
  position: absolute; transform: translate(-50%,-50%);
  width: 44px; height: 44px; cursor: pointer;
  display: grid; place-items: center; border: 0; background: transparent; padding: 0;
}
.marker:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; border-radius: 50%; }
.marker .bean-mark {
  width: 22px; height: 16px; border-radius: 50%/55%;
  background: var(--bean-surface);
  box-shadow: 0 3px 8px rgba(var(--ink-rgb),.55), inset 0 1px 1px rgba(var(--tile-rgb),.3);
  transition: transform .2s;
}
.marker::after {
  content: ""; position: absolute; inset: 1px; border-radius: 50%;
  border: 2px solid var(--cobalt); opacity: 0;
  animation: ping 2.4s ease-out infinite;
}
.marker:hover .bean-mark, .marker.active .bean-mark { transform: scale(1.35); }
.marker.active::after { animation-duration: 1.4s; }
@keyframes ping { 0%{transform:scale(.4);opacity:.7} 100%{transform:scale(1.6);opacity:0} }
.marker .city-tag {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-weight: 700; font-size: 10px; letter-spacing: .1em;
  color: var(--tile); white-space: nowrap; background: var(--ink);
  padding: 3px 8px; border-radius: 4px; opacity: 0; transition: opacity .2s; pointer-events: none;
}
.marker:hover .city-tag, .marker.active .city-tag { opacity: 1; }

.map-canvas, .map-sidebar { min-width: 0; }
.map-sidebar { padding: 28px 26px; border-left: var(--grout); display: flex; flex-direction: column; }
.map-sidebar h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; margin-bottom: 4px; letter-spacing: -0.01em; }
.map-sidebar .hint { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; margin-bottom: 22px; }
.meeting-card { border-top: 2px dashed rgba(var(--ink-rgb),.3); padding-top: 18px; margin-top: auto; }
.meeting-card .restaurant { font-family: var(--font-display); font-weight: 400; font-size: 20px; letter-spacing: -0.01em; }
.meeting-card .addr { color: var(--muted); font-size: 14px; margin: 2px 0 16px; }
.schedule { display: grid; gap: 8px; }
.schedule .row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px;
  background: var(--tile-2); border: var(--grout-thin); padding: 10px 14px; border-radius: 8px;
}
.schedule .row .type { color: var(--cobalt); font-weight: 700; letter-spacing: .06em; }
.schedule .row .time { color: var(--ink); text-align: right; }
@media (max-width: 820px) {
  .map-shell { grid-template-columns: 1fr; }
  .map-canvas { min-height: 340px; }
  .map-sidebar { border-left: 0; border-top: var(--grout); }
  .meeting-card { margin-top: 22px; }
}
.map-tools { border-top: 2px dashed rgba(var(--ink-rgb),.3); margin-top: 22px; padding-top: 18px; }
.map-tools-label { font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.map-tools-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-sm { padding: 10px 18px; font-size: 13px; min-height: 44px; }
.linklike {
  background: none; border: 0; color: var(--cobalt); font-weight: 700;
  font-family: var(--font-mono); font-size: 12px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
  padding: 0; min-height: 44px;
  display: inline-flex; align-items: center;
}
.linklike:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.city-form { display: flex; gap: 8px; margin-top: 10px; }
.city-form input {
  flex: 1; min-width: 0; background: var(--tile); border: var(--grout-thin);
  border-radius: 10px; padding: 10px 12px; color: var(--ink);
  font-family: var(--font-body); font-size: 14px;
}
.city-form input::placeholder { color: var(--muted); }
.city-form input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-color: var(--cobalt); }
.map-status { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 10px; min-height: 16px; }
.map-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: none; }
.map-shell.real-mode .map-frame { display: block; }
.map-shell.real-mode .marker, .map-shell.real-mode svg.world { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ============ ADOPTION FORM ============ */
.form-card {
  max-width: 620px; margin: 0 auto; background: var(--tile);
  border: var(--grout); border-radius: 18px; padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 20px 44px -24px rgba(var(--ink-rgb),.55);
}
.field { margin-bottom: 22px; }
.field label {
  display: block; font-family: var(--font-mono); font-weight: 700; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 9px;
}
.field input[type=text], .field select {
  width: 100%; background: var(--tile); border: var(--grout-thin);
  border-radius: 10px; padding: 14px 16px; color: var(--ink);
  font-family: var(--font-body); font-size: 16px; transition: border-color .2s;
}
.field input::placeholder { color: var(--muted); }
.field input:focus-visible, .field select:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 2px; border-color: var(--cobalt);
}
.field input.ok { border-color: var(--leaf); }
.field [aria-invalid="true"] { border-color: var(--terra); }
.field .helper { font-family: var(--font-mono); font-size: 12px; margin-top: 7px; min-height: 16px; color: var(--muted); }
.field .helper.good { color: var(--leaf); font-weight: 700; }
.field .helper.needed { color: var(--terra); font-weight: 700; }

.slider-field .slider-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 4px; }
.slider-emoji { font-size: 34px; line-height: 1; }
.slider-verdict { font-family: var(--font-body); font-weight: 600; font-style: italic; font-size: 17px; text-align: right; max-width: 60%; color: var(--cobalt); }
input[type=range] {
  width: 100%; -webkit-appearance: none; appearance: none; height: 10px;
  border-radius: 999px; background: var(--cobalt);
  box-sizing: content-box; padding: 17px 0; background-clip: content-box;
  margin: 0 0 -8px;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--sun); border: 3px solid var(--ink); cursor: grab;
  box-shadow: 0 3px 7px rgba(var(--ink-rgb),.4);
}
input[type=range]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%; background: var(--sun);
  border: 3px solid var(--ink); cursor: grab;
}
.range-ends { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .05em; }

/* certificate */
.certificate {
  display: none; margin-top: 10px; text-align: center;
  background: var(--tile); color: var(--ink); border-radius: 14px; padding: 38px 30px;
  border: 3px solid var(--cobalt); position: relative;
  box-shadow: 0 16px 34px -18px rgba(var(--ink-rgb),.5);
  animation: certIn .8s cubic-bezier(.16, 1, .3, 1) both;
}
.certificate::before {
  content: ""; position: absolute; inset: 9px; pointer-events: none;
  border: 2px dashed var(--terra); border-radius: 8px;
}
.certificate.show { display: block; }
.certificate:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
@keyframes certIn { from { opacity: 0; transform: scale(.965) rotate(-.8deg);} to { opacity:1; transform:none; } }
.certificate .seal {
  position: absolute; right: 22px; bottom: 22px; width: 76px; height: 76px; border-radius: 50%;
  background: var(--sun); color: var(--ink); border: var(--grout);
  display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: 9px;
  text-align: center; letter-spacing: .1em; transform: rotate(-12deg);
  box-shadow: 0 4px 10px rgba(var(--ink-rgb),.35); line-height: 1.3; padding: 6px;
}
.certificate .cert-eyebrow { font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--cobalt); }
.certificate h3 { font-family: var(--font-display); font-weight: 400; font-size: 30px; margin: 10px 0; letter-spacing: -0.01em; }
.certificate .cert-name { font-weight: 700; font-style: italic; font-size: 24px; border-bottom: 3px solid var(--sun); display: inline-block; padding: 0 20px 4px; margin: 6px 0 14px; overflow-wrap: anywhere; }
.certificate p { font-size: 14px; color: var(--muted); max-width: 40ch; margin: 0 auto; }

/* ============ FOOTER ============ */
footer {
  background: var(--ink); color: var(--tile);
  padding: 96px 0 40px; position: relative;
}
footer::before { background-color: var(--tile); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; margin-bottom: 44px; }
.foot-mark { font-family: var(--font-display); font-weight: 400; font-size: 26px; letter-spacing: -0.01em; margin-bottom: 12px; }
.foot-tag { color: #b9b2a4; font-size: 14px; max-width: 40ch; }
footer h4 { font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--sun); margin-bottom: 14px; }
footer ul { list-style: none; display: grid; gap: 5px; }
footer ul a { color: #b9b2a4; text-decoration: none; font-size: 14px; transition: color .2s; display: inline-block; padding: 5px 0; }
footer ul a:hover { color: var(--sun); }
.foot-fine { border-top: 2px solid rgba(var(--tile-rgb),.22); padding-top: 26px; text-align: center; font-family: var(--font-mono); font-size: 12px; color: #b9b2a4; letter-spacing: .04em; line-height: 1.8; }
.foot-fine b { color: var(--tile); font-weight: 700; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .type-caret, .scroll-cue, .marker::after { animation: none !important; }
  .confession:hover { animation: none !important; }

  .mtile { animation: none !important; }
  .step { opacity: 1 !important; transform: none !important; transition: background .2s; }
  .certificate { animation: none !important; }

  .saudade-meter .fill { transition-duration: 1ms; }
  .btn:hover, .btn-primary:hover, .btn-primary:active, .btn-ghost:hover { transform: none !important; }
  .marker:hover .bean-mark, .marker.active .bean-mark { transition: none; }
  .skip-link { transition: none; }
}
