/* El Terrenator: the site's tokens and everything more than one page shares (header, contact bar,
   footer, buttons, the lead forms and the "Me interesa" dialog). Page CSS lives in its own file
   (home.css, inventario.css, lote.css, legal.css). Ported from the approved mockup v4.8
   (G2Eco designs/elterrenator/v2/src/base.css and the shared rules of sitio.html).
   Brand: charcoal #16181b and sign yellow #ffc629 (terrenator brands/terrenator/DESIGN.md). Yellow is a
   fill with charcoal text on it, never text on white (about 1.6:1). No inline style anywhere: the CSP
   drops it. Markup contract: G26 partials.html (Agent 0). */

/* ---------- fonts: self-hosted, OFL 1.1 (licences beside the files), latin subset covers Spanish ---------- */
@font-face { font-family: "Anton"; src: url("/fonts/anton-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  /* colour */
  --ink: #16181b;        /* charcoal: the page, and text on yellow */
  --ink-2: #1e2124;      /* raised surface (cards, forms) */
  --ink-3: #2a2d31;      /* hover, context line */
  --well: #0f1012;       /* inputs, the deepest surface */
  --paper: #ffffff;      /* text on charcoal */
  --muted: #c9c3b7;      /* secondary text (about 11:1) */
  --dim: #948d81;        /* small print (about 5.6:1) */
  --sign: #ffc629;       /* sign yellow: the one accent, a fill */
  --sign-hover: #ffd457;
  --sign-ink: #16181b;   /* text on yellow */
  --glass: rgba(22, 24, 27, .62);
  --line: rgba(255, 255, 255, .14);
  --line-2: rgba(255, 255, 255, .28);
  --field: #3a3d42;
  --ok: #8bd6a3;
  --err: #ff9482;

  /* type: Anton for headings (keep line-height >= 1.04: the Q tail and the É accent), Figtree for the rest */
  --display: "Anton", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 16px;       /* phones first; never below 16px for body copy */
  --fs-lg: clamp(16px, 1.25vw, 19px);
  --fs-h3: 20px;
  --fs-h2: clamp(32px, 4.4vw, 58px);
  --fs-h1: clamp(36px, 5.6vw, 84px);

  /* space (4px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 72px;
  --band: clamp(56px, 9vw, 110px);   /* section padding */

  --radius: 6px;
  --radius-lg: 10px;
  --tap: 44px;           /* minimum touch target */
  --max: 1180px;         /* page width */
  --max-text: 40rem;

  /* the sticky top: desktop one 64px row; phone 48px header + 48px contact bar (plan 5.9) */
  --nav-h: 64px;
  --bar-h: 0px;
  --top-h: calc(var(--nav-h) + var(--bar-h));
  --safe-t: env(safe-area-inset-top, 0px);

  color-scheme: dark;
}
@media (max-width: 760px) {
  :root { --nav-h: 48px; --bar-h: 48px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  /* WCAG 2.2 2.4.11: a focused or linked element is never hidden under the sticky top */
  scroll-padding-top: calc(var(--top-h) + var(--safe-t) + 8px);
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 var(--fs-base)/1.55 var(--body);
  overflow-x: clip;
  overflow-wrap: break-word;
}
h1, h2, h3 { margin: 0 0 var(--sp-3); font-family: var(--display); font-weight: 400; line-height: 1.06; letter-spacing: .01em; }
h1 { font-size: var(--fs-h1); line-height: 1.04; text-transform: uppercase; text-wrap: balance; }
h2 { font-size: var(--fs-h2); text-transform: uppercase; text-wrap: balance; }
h3 { font-family: var(--body); font-weight: 800; font-size: var(--fs-h3); line-height: 1.25; letter-spacing: 0; }
p { margin: 0 0 var(--sp-4); }
a { color: inherit; }
img, video, svg { max-width: 100%; }
img, video { display: block; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
:focus-visible { outline: 3px solid var(--sign); outline-offset: 2px; }
[hidden] { display: none !important; }

/* visually hidden, still read */
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* "Saltar a ..." link, first in <body> */
.skip-link { position: absolute; left: -10000px; top: 0; z-index: 60; }
.skip-link:focus { left: var(--sp-4); top: calc(var(--safe-t) + 8px); padding: 10px 16px; border-radius: var(--radius); background: var(--sign); color: var(--sign-ink); font-weight: 800; text-decoration: none; }

/* layout */
.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: var(--max); margin: 0 auto; }
section.band { padding-block: var(--band); }

/* type helpers */
.eyebrow, .kicker { margin: 0 0 8px; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--sign); }
h2.sec { margin: 0 0 12px; font-size: var(--fs-h2); }
.sec-lede { margin: 0 0 28px; max-width: var(--max-text); color: var(--muted); }
.lede { margin: 0; max-width: 33rem; font-size: var(--fs-lg); color: #f1ebe0; }
.note { margin: 14px 0 0; font-size: var(--fs-xs); color: var(--dim); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
/* "Imágenes ilustrativas": the label every AI image carries (CLAUDE.md). Put it in the image's box. */
.ilus { position: absolute; z-index: 2; left: 10px; bottom: 10px; margin: 0; padding: 3px 8px; border-radius: 3px; background: rgba(16, 15, 14, .6); color: rgba(255, 255, 255, .88); font-size: 11px; font-weight: 600; letter-spacing: .04em; pointer-events: none; }
.ilus-inline { font-size: var(--fs-xs); color: var(--dim); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 4px; border: 2px solid transparent; font: 800 15px/1.1 var(--body); text-decoration: none; cursor: pointer; text-align: center; }
.btn-y { background: var(--sign); color: var(--sign-ink); }
.btn-y:hover { background: var(--sign-hover); }
.btn-o { border-color: rgba(255, 255, 255, .75); color: var(--paper); background: rgba(16, 15, 14, .35); }
.btn-o:hover { background: rgba(16, 15, 14, .6); }
.btn:disabled { opacity: .6; cursor: progress; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* call buttons in page content: Llamar (yellow), WhatsApp, Mensaje */
.cbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.cb { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); min-width: var(--tap); padding: 0 18px; border-radius: var(--radius); font: 800 15px/1 var(--body); text-decoration: none; white-space: nowrap; }
.cb svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cb-call { background: var(--sign); color: var(--sign-ink); }
.cb-call:hover { background: var(--sign-hover); }
.cb-wa, .cb-sms { background: var(--ink-2); color: var(--paper); border: 1px solid var(--line-2); }
.cb-wa:hover, .cb-sms:hover { border-color: var(--sign); }

/* small yellow label on photos and cards */
.tag { display: inline-block; justify-self: start; padding: 2px 7px; border-radius: 3px; background: var(--sign); color: var(--sign-ink); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- lot cards (inventory list, nearby lots) ---------- */
.lcard { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--ink-2); }
.lphoto { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #1a1c1f; }
.lphoto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.lcard:hover .lphoto img { transform: scale(1.04); }
.lbody { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 16px; }
.acres { font-family: var(--display); font-size: 28px; line-height: 1.1; letter-spacing: .01em; }
.city { font-weight: 700; }
.rule-line { color: var(--muted); font-size: var(--fs-sm); }
.feat { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.feat span, .feat li { padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: var(--fs-xs); font-weight: 700; }
.card-cta { color: var(--sign); font-weight: 800; font-size: var(--fs-sm); text-decoration: none; }
.card-cta:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .lphoto img { transition: none; } .lcard:hover .lphoto img { transform: none; } }

/* ---------- header: brand, nav, "♪ Corrido", contact bar ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  padding-top: var(--safe-t);
  background: rgba(22, 24, 27, .96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 14px; min-height: var(--nav-h); }
.nav .wm { display: inline-flex; gap: .3em; flex: none; border-radius: 4px; color: var(--paper); font-family: var(--display); font-size: 21px; line-height: 1; letter-spacing: .03em; text-decoration: none; white-space: nowrap; }
.nav .wm span:first-child { color: var(--sign); }
.nav .wm:focus-visible { outline-offset: 4px; }

.nav-links { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-links a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 10px; border-radius: 4px; color: var(--muted); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--paper); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--sign); }

/* phone menu: <details>, works without JavaScript */
.nav-menu { position: relative; display: none; }
.nav-menu > summary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; min-width: 40px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--radius); font-weight: 800; font-size: 13px; cursor: pointer; list-style: none; }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav-menu[open] > summary { border-color: var(--sign); }
.nav-menu ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 45; display: grid; min-width: 220px; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ink-2); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); }
.nav-menu a { display: flex; align-items: center; min-height: var(--tap); padding: 0 12px; border-radius: var(--radius); color: var(--paper); font-weight: 700; text-decoration: none; }
.nav-menu a:hover { background: var(--ink-3); }

/* "♪ Corrido" (motion add-on music button; it ships hidden and the add-on shows it) */
.nav-music { display: inline-flex; align-items: center; gap: 7px; flex: none; min-height: 40px; padding: 0 12px 0 10px; border: 1px solid var(--field); border-radius: 999px; background: transparent; color: var(--paper); font: 800 13px/1 var(--body); cursor: pointer; white-space: nowrap; }
.nav-music:hover { border-color: var(--sign); }
.nav-music .mu-i { display: inline-flex; align-items: flex-end; gap: 2px; width: 14px; height: 14px; }
.nav-music .mu-i i { flex: 1; height: 30%; border-radius: 1px; background: currentColor; opacity: .55; }
.nav-music[aria-pressed="true"] { border-color: var(--sign); background: var(--sign); color: var(--sign-ink); }
.nav-music[aria-pressed="true"] .mu-i i { opacity: 1; animation: mu .9s ease-in-out infinite alternate; }
.nav-music[aria-pressed="true"] .mu-i i:nth-child(2) { animation-delay: -.3s; }
.nav-music[aria-pressed="true"] .mu-i i:nth-child(3) { animation-delay: -.6s; }
@keyframes mu { from { height: 25%; } to { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .nav-music[aria-pressed="true"] .mu-i i { animation: none; height: 80%; } }

/* ---------- the contact bar (plan 5.9): Llamar, WhatsApp, Mensaje, Me interesa ---------- */
.contact-bar { display: flex; align-items: center; gap: 8px; margin-left: auto; min-width: 0; }
.cbar-b { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); min-width: var(--tap); margin: 0; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--ink-2); color: var(--paper); font: 800 14.5px/1 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer; }
.cbar-b svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cbar-b:hover { border-color: var(--sign); }
.cbar-call { border-color: var(--sign); background: var(--sign); color: var(--sign-ink); }
.cbar-call:hover { background: var(--sign-hover); }
.cbar-mi { border: 2px solid var(--sign); background: transparent; color: var(--sign); }
.cbar-mi:hover { background: rgba(255, 198, 41, .12); }
.cbar-t { display: grid; gap: 2px; text-align: left; }
/* the number under Llamar and Mensaje, on a desktop only: tel: and sms: often open nothing there (UXG-7) */
.cbar-n { display: none; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; opacity: .85; user-select: all; }
@media (hover: hover) and (pointer: fine) and (min-width: 761px) {
  .cbar-n { display: block; }
}

/* The landing keeps the bar out of the drive: the home script adds body.bar-wait at start and
   .is-shown to the bar once the drive stage has left the screen. Without JavaScript neither class
   exists, so the bar shows. body.nav-wait does the same for the whole header (#nav.is-shown):
   then the header floats over the page instead of taking space. */
body.bar-wait .contact-bar:not(.is-shown) { display: none; }
body.nav-wait .nav { position: fixed; left: 0; right: 0; transform: translateY(-110%); transition: transform .35s ease; }
body.nav-wait .nav.is-shown { transform: none; }
body.nav-wait .nav:focus-within { transform: none; }
@media (prefers-reduced-motion: reduce) { body.nav-wait .nav { transition: none; } }

@media (max-width: 1100px) {
  .nav-links a { padding: 0 7px; font-size: 14px; }
  .cbar-b { padding: 0 10px; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
}
@media (max-width: 760px) {
  /* phone: a 48px header row, then the 48px bar of four equal cells, icon above a 14px label */
  .nav.gutter { padding-left: max(10px, env(safe-area-inset-left, 0px)); padding-right: max(10px, env(safe-area-inset-right, 0px)); }
  .nav-in { flex-wrap: wrap; gap: 0 8px; min-height: 0; }
  .nav .wm { order: 1; margin-right: auto; min-height: var(--nav-h); align-items: center; font-size: 18px; }
  .nav-music { order: 2; min-height: 36px; padding: 0 10px 0 8px; font-size: 12px; }
  .nav-menu { order: 3; }
  .nav-menu > summary { min-height: 36px; }
  .contact-bar { order: 4; flex: 0 0 100%; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; height: var(--bar-h); margin: 0 calc(-1 * max(10px, env(safe-area-inset-right, 0px))) 0 calc(-1 * max(10px, env(safe-area-inset-left, 0px))); border-top: 1px solid var(--line); }
  body.bar-wait .contact-bar:not(.is-shown) { display: none; }
  .cbar-b { flex-direction: column; gap: 3px; height: var(--bar-h); min-height: 0; padding: 4px 2px 3px; border: 0; border-radius: 0; background: transparent; color: var(--paper); font-size: 14px; line-height: 1; }
  .cbar-b + .cbar-b { border-left: 1px solid var(--line); }
  .cbar-b svg { width: 19px; height: 19px; }
  .cbar-call { background: var(--sign); color: var(--sign-ink); }
  .cbar-call:hover { background: var(--sign-hover); }
  .cbar-mi { border: 0; color: var(--sign); }
  .cbar-t { text-align: center; }
}
@media (max-width: 360px) {
  .cbar-b { font-size: 13px; }
  .nav-music .mu-n { font-size: 11px; }
}

/* ---------- lead forms (home #contacto, "Me interesa") ---------- */
form.lead { display: grid; gap: 14px; min-width: 0; padding: clamp(16px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ink-2); }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.lead label.f, .lead legend { display: block; margin-bottom: 6px; padding: 0; font-size: var(--fs-sm); font-weight: 700; }
.lead .opt { color: var(--dim); font-weight: 600; }
.lead input[type="text"], .lead input[type="tel"], .lead input[type="email"], .lead select, .lead textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--field); border-radius: var(--radius); background: var(--well); color: var(--paper); font: inherit; font-size: 16px; /* 16px: no zoom on iOS */
}
.lead textarea { min-height: 96px; resize: vertical; }
.lead input:focus, .lead select:focus, .lead textarea:focus { border-color: var(--sign); outline: none; box-shadow: 0 0 0 3px rgba(255, 198, 41, .25); }
.lead input[aria-invalid="true"] { border-color: var(--err); }
.lead .helper { margin: -4px 0 0; font-size: 13px; color: var(--dim); }
.lead .err, .lead [data-g2-reach-error] { margin: 0; color: var(--err); font-weight: 700; font-size: var(--fs-sm); }
.lead .form-status { margin: 0; font-weight: 700; }
.lead .form-status:empty { display: none; }
.lead .form-status[data-state="ok"] { padding: 12px 14px; border-left: 4px solid var(--ok); border-radius: var(--radius); background: var(--ink-3); color: var(--paper); }
.lead .form-status[data-state="error"] { color: var(--err); }
.lead .ctas { margin-top: 4px; }
/* honeypot: off-screen for people, filled by bots (leads.honeypot "hp_url") */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* pill radios: "¿Cómo prefieres que te contacte?" */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pill span { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 14px; border: 1px solid var(--field); border-radius: 999px; font-weight: 700; font-size: var(--fs-sm); cursor: pointer; }
.pill input:checked + span { border-color: var(--sign); background: var(--sign); color: var(--sign-ink); }
.pill input:focus-visible + span { outline: 3px solid var(--sign); outline-offset: 2px; }

/* the consent boxes (feedIntake add-on: its wording, never ours) */
.g2-feed-intake-consent { display: grid; gap: 10px; }
.g2-feed-intake-box { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--muted); font-size: 13px; line-height: 1.45; cursor: pointer; }
.g2-feed-intake-box input { width: 22px; height: 22px; margin: 0; accent-color: var(--sign); }
.consent-links { margin: -4px 0 0; font-size: 13px; color: var(--dim); }
.consent-links a { color: var(--muted); }
.mi-hint { margin: -4px 0 0; padding: 8px 12px; border-left: 3px solid var(--sign); background: var(--ink-3); font-size: 13px; font-weight: 600; }
.turnstile-slot:empty { display: none; }

/* the no-JS thanks on the home (the kit answers a plain post with 303 /?quote=sent#quote-sent) */
.quote-sent { display: none; }
.quote-sent:target { display: grid; gap: 6px; margin-bottom: 18px; padding: 18px 20px; border-left: 4px solid var(--ok); border-radius: var(--radius-lg); background: var(--ink-2); }
.quote-sent strong { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.1; text-transform: uppercase; color: var(--sign); }

/* ---------- "Me interesa": <dialog class="mi"> ----------
   Shipped with `open`, so without JavaScript it is a plain section in the page (#me-interesa). With
   data-mi-modal, contacto.js closes it at load and opens it as a modal; without that attribute (the
   lot page) it stays in the page and "Me interesa" scrolls to it. */
.mi { color: var(--paper); }
.mi[open]:not(:modal) { position: static; display: block; width: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
.mi:modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100svh - 48px); padding: 0; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 14px; background: var(--ink-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.mi::backdrop { background: rgba(8, 9, 8, .74); }
.mi-in { position: relative; }
.mi:modal form.lead { border: 0; border-radius: 0; padding: 26px 24px 22px; }
.mi-x, .mi-close { display: none; }
.mi:modal .mi-x { position: absolute; right: 8px; top: 8px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); border: 0; border-radius: 50%; background: transparent; color: var(--paper); font: 400 30px/1 var(--body); cursor: pointer; }
.mi:modal .mi-x:hover { color: var(--sign); }
.mi:modal .mi-x:focus-visible { outline-offset: -3px; }
.mi:modal .mi-close { display: inline-flex; justify-self: start; }
.mi .kicker { margin: 0; }
.mi-h { margin: 0; padding-right: 40px; font: 400 30px/1.05 var(--display); text-transform: uppercase; }
.mi-h:focus { outline: none; }
.mi-about { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--ink-3); font-weight: 700; font-size: var(--fs-sm); line-height: 1.4; }
.mi-about:empty { display: none; }
@media (max-width: 760px) {
  .mi:modal { width: 100vw; max-width: 100vw; height: 100svh; max-height: 100svh; margin: 0; border: 0; border-radius: 0; }
  .mi:modal form.lead { padding: 22px 16px calc(20px + env(safe-area-inset-bottom, 0px)); }
  .mi-h { font-size: 26px; }
}

/* ---------- footer ---------- */
.site-footer { padding-block: 56px calc(48px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--ink); }
.outro { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 28px; font-family: var(--display); font-size: clamp(30px, 6vw, 64px); line-height: 1.08; text-transform: uppercase; }
.slab-y { padding: 4px 14px; background: var(--sign); color: var(--sign-ink); }
.slab-c { position: relative; padding: 4px 14px; border: 1px solid var(--line); background: #0b0c0e; color: var(--paper); }
.slab-c::after { content: ""; position: absolute; left: -6%; right: -6%; top: 50%; height: .13em; border-radius: 6px; background: var(--sign); transform: rotate(-8deg); }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px; margin-bottom: 28px; }
.foot-h { margin: 0 0 10px; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--sign); }
.foot-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.foot-list a { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); color: var(--paper); font-weight: 700; text-decoration: none; }
.foot-list a:hover { color: var(--sign); }
.foot-list .num { color: var(--muted); font-weight: 600; }
.g2-area-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.g2-area-chips li { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 600; }
.foot-line { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.foot-legal { margin-top: 8px; font-size: var(--fs-xs, 12px); }
.credit { margin: 8px 0 0; color: var(--dim); font-size: 13px; }
.credit a { color: var(--muted); }
