/* servicios.css: servicios.html only. Owner: servicios builder. Static layout first (it IS the final frame of every
   demo); animation start states only under html.motion or set by demos.js through Web Animations. Uses the tokens
   and primitives of base.css (no token is redefined here except the page-local --chips-h and --sky-star). */

:root { --chips-h: 61px; --sky-star: var(--ink-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sky-star: var(--star-2); } }
:root[data-theme="dark"] { --sky-star: var(--star-2); }
/* Anchors land below the bar AND the sticky chips row. */
html { scroll-padding-top: calc(var(--bar-h) + var(--chips-h) + 12px); }

/* ---------- S0 · intro ---------- */
.svc-intro { position: relative; padding: calc(var(--bar-h) + clamp(48px, 9vw, 128px)) 0 clamp(40px, 6vw, 72px); overflow: clip; }
.svc-intro__sky {
  position: absolute; top: 0; left: 0; width: 100%; height: calc(var(--bar-h) + 50svh);
  fill: var(--sky-star); pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 30svh), transparent);
  mask-image: linear-gradient(#000 calc(100% - 30svh), transparent);
}
.svc-intro__sky { overflow: visible; }   /* nudge.js carries stars past the edge */
.svc-intro__sky stop { stop-color: var(--sky-star); }   /* nudge.js star glow */
.svc-intro__sky.is-fading circle { transition: opacity .8s; }
.svc-intro__sky.is-live circle { opacity: 1; }
.svc-intro__sky circle { opacity: .5; }
.svc-intro__sky .b { opacity: .85; }
.svc-intro__in > * + * { margin-top: var(--s-5); }
.svc-intro__h1 {
  font-size: var(--t-h2); line-height: .98; letter-spacing: -.035em; font-weight: 700; font-variation-settings: "opsz" 96;
  max-width: 10em; /* em, not ch: ch changes with the font swap and would re-wrap the H1 (CLS) */
}
.svc-intro .sub { font-size: var(--t-lead); }
@media (min-width: 768px) { .svc-intro__h1 { font-size: calc(var(--t-display) * .75); line-height: .94; letter-spacing: -.04em; } }
/* Hidden only until demos.js splits it for the word reveal; the animation is a fail-safe (never stays invisible). */

/* ---------- chips index: sticky for the whole page, slides up with the bar ---------- */
.chips {
  position: sticky; top: var(--bar-h); z-index: 40;
  background: var(--paper);   /* solid like the bar: when the bar hides this row is the top edge, and at 88 % the demos read through */
  border-block: 1px solid var(--rule);
  transition: transform var(--d-ui) var(--ease);
}
.motion .bar[data-hidden] ~ main .chips { transform: translateY(calc(-1 * var(--bar-h))); }
.chips .chips__list {
  display: flex; gap: var(--s-2); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; padding: var(--s-2) var(--gutter);
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
}
.chips__list::-webkit-scrollbar { display: none; }
.chips__list li { flex: none; }
.chips .chip:not([aria-current]):hover { border-color: var(--ink); }
/* the ✓ of the current chip sits in the padding: the spy never changes a chip's width (no layout shift) */
.chips .chip { padding-inline: 24px; }
.chips .chip::before { position: absolute; left: 9px; font-size: .8125rem; }
@media (min-width: 600px) { .chips__list { -webkit-mask-image: none; mask-image: none; } }

/* ---------- cosmic index rail (>=1280, decorative) ---------- */
.svc-rail { display: none; }
@media (min-width: 1280px) {
  .js .svc-rail {
    display: block; position: fixed; z-index: 2; top: 24vh; height: 56vh; width: 11px;
    left: calc(max(var(--gutter), (100% - var(--content)) / 2) * .4 - 5px);
    opacity: 0; transition: opacity var(--d-reveal) var(--ease); pointer-events: none;
  }
  .svc-rail.is-on { opacity: 1; }
  .svc-rail::before, .svc-rail__fill { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; width: 1px; background: var(--rule); }
  .svc-rail__fill { background: var(--ink-2); transform: scaleY(0); transform-origin: 50% 0; }
  .svc-rail__star {
    position: absolute; left: 0; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%;
    border: 1.5px solid var(--field); background: var(--paper);
    transition: background-color var(--d-reveal) var(--ease), border-color var(--d-reveal) var(--ease), box-shadow var(--d-reveal) var(--ease);
  }
  .svc-rail__star.is-on { background: var(--solved); border-color: var(--solved); box-shadow: 0 0 0 5px color-mix(in oklab, var(--solved) 22%, transparent); }
}

/* ---------- service template ---------- */
.svc { padding-block: var(--section-y); }
.svc + .svc { border-top: 1px solid var(--rule); }
.svc__grid { display: grid; gap: var(--s-7); align-items: center; }
.svc__text > * + * { margin-top: var(--s-3); }
.svc__text .t-h2 { margin-top: var(--s-2); max-width: 16ch; }
.svc__text .svc__label { margin-top: var(--s-6); }
.svc__text .svc__label + p { margin-top: var(--s-2); }
.svc__num { color: var(--solved-ink); }
.svc__cta { margin-top: var(--s-6) !important; white-space: normal; text-align: left; padding-block: var(--s-3); }
.svc__demo { min-width: 0; }
@media (min-width: 768px) { .svc__demo { width: 100%; max-width: 560px; margin-inline: auto; } }
@media (min-width: 1280px) {
  .svc__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .svc__text { grid-column: 1 / span 5; grid-row: 1; }
  .svc__demo { grid-column: 6 / span 7; grid-row: 1; max-width: none; }
  .svc--flip .svc__text { grid-column: 8 / span 5; }
  .svc--flip .svc__demo { grid-column: 1 / span 7; }
}
/* Quiet one-shot entrance of the text block (demos.js marks it; only with motion). */
.motion .svc__text[data-reveal] > * { transition: opacity var(--d-reveal) var(--ease), transform var(--d-reveal) var(--ease); }
.motion .svc__text[data-reveal]:not(.is-in) > * { opacity: 0; transform: translateY(24px); }
.svc__text[data-reveal] > :nth-child(2) { transition-delay: 80ms; }
.svc__text[data-reveal] > :nth-child(n+3) { transition-delay: 160ms; }
.svc__text[data-reveal] > :nth-child(n+5) { transition-delay: 240ms; }
.svc__text[data-reveal] > :last-child { transition-delay: 320ms; }
.motion .svc__text[data-reveal].no-tr > * { transition: none; } /* revealed by keyboard focus: at once */

/* ---------- demo frame (common contract, SPEC §6.3) ---------- */
.demo {
  position: relative; overflow: hidden; contain: layout paint;
  background: var(--surface); border-radius: var(--r-m);
  border: 1px solid var(--elev-border); box-shadow: var(--shadow-2);
}
.demo__cap { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s-2) var(--s-4); margin-top: var(--s-4); }
.demo__replay {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4) 0 var(--s-3);
  border: 1.5px solid var(--field); border-radius: var(--r-pill); font-size: .9375rem; font-weight: 600;
  transition: border-color var(--d-micro) var(--ease);
}
.demo__replay:hover { border-color: var(--ink); }
.demo__replay svg { width: 18px; height: 18px; }
.demo__text { flex: 0 1 auto; color: var(--ink-2); font-size: .9375rem; }
.demo__text summary {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; cursor: pointer; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; list-style: none;
}
.demo__text summary::-webkit-details-marker { display: none; }
.demo__text summary::after { content: "+"; font-family: var(--f-mono); text-decoration: none; display: inline-block; transition: transform var(--d-ui) var(--ease); }
.demo__text[open] summary::after { transform: rotate(45deg); }
.demo__text summary:hover { text-decoration-thickness: 2px; text-decoration-color: var(--solved-ink); }
.demo__text ol { padding-left: 1.25em; }
.demo__text li + li, .demo__text ol + p { margin-top: var(--s-2); }
.demo__text b { color: var(--ink); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .demo__replay { display: none; } }
.demo--telegram + .demo__cap { max-width: 320px; margin-inline: auto; }
@media (min-width: 768px) { .demo--telegram + .demo__cap { max-width: 420px; } }

/* ---------- Demo 1 · Telegram ---------- */
.demo--telegram {
  aspect-ratio: 9 / 16; max-width: 320px; margin-inline: auto; padding: 7px;
  border-radius: var(--r-l); background: var(--surface-2);
}
@media (min-width: 768px) { .demo--telegram { aspect-ratio: 4 / 5; max-width: 420px; } }
.tg {
  position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border-radius: calc(var(--r-l) - 7px); background: var(--paper);
}
.tg__status { display: flex; justify-content: space-between; align-items: center; height: 28px; padding: 0 18px; font: 500 11px/1 var(--f-mono); letter-spacing: .04em; }
.tg__sys { display: inline-flex; align-items: flex-end; gap: 2px; height: 9px; }
.tg__sys i { width: 3px; background: currentColor; border-radius: 1px; }
.tg__sys i:nth-child(1) { height: 4px; } .tg__sys i:nth-child(2) { height: 6px; } .tg__sys i:nth-child(3) { height: 9px; }
.tg__sys b { width: 16px; height: 8px; margin-left: 5px; border: 1px solid currentColor; border-radius: 2px; box-shadow: inset -5px 0 0 0 var(--paper), inset 0 0 0 1px var(--paper); background: currentColor; }
.tg__head { display: flex; align-items: center; gap: 10px; padding: 6px 14px 10px; border-bottom: 1px solid var(--rule); }
.tg__avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--surface-2); }
.tg__avatar .star { --star-size: 22px; }
.tg__who { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.tg__who b { font-size: 15px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg__who span { font-size: 12px; color: var(--ink-2); }
.tg__view {
  position: relative; flex: 1; min-height: 0; overflow: hidden;
  background-image: radial-gradient(var(--rule) 1px, transparent 1.2px); background-size: 18px 18px;
}
.tg__list { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 6px; padding: 12px 10px; }
.tg__row { position: relative; display: flex; }
.tg__row--out { justify-content: flex-end; }
.tg__b {
  max-width: 80%; padding: 7px 10px 6px 12px; border-radius: var(--r-bubble);
  font-size: 15px; line-height: 1.35; text-wrap: auto; transform-origin: 100% 100%;
}
.tg__row--out .tg__b { background: var(--surface-2); border-bottom-right-radius: 6px; }
.tg__row--in .tg__b { background: var(--surface); border: 1px solid var(--rule); border-bottom-left-radius: 6px; transform-origin: 0 100%; }
.tg__t { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; font: 500 11px/1 var(--f-mono); color: var(--ink-2); vertical-align: -1px; white-space: nowrap; }
.tg__ticks { width: 17px; height: 10px; overflow: visible; }
.tg__ticks path { fill: none; stroke: var(--solved); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.tg__typing {
  position: absolute; top: 0; left: 0; display: inline-flex; gap: 4px; padding: 11px 13px;
  border-radius: var(--r-bubble) var(--r-bubble) var(--r-bubble) 6px; background: var(--surface); border: 1px solid var(--rule);
  opacity: 0; transform-origin: 0 100%;
}
.tg__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); opacity: .45; }
.tg__keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-right: 20%; }
.tg__key {
  display: block; padding: 8px 4px; text-align: center; border-radius: 10px; font-size: 14px; font-weight: 600; line-height: 1.2;
  background: var(--surface); border: 1px solid var(--rule); color: var(--ink);
}
.tg__key.is-picked { background: var(--solved); border-color: var(--solved); color: var(--on-solved); }
.tg__finger {
  position: absolute; top: 0; left: 0; z-index: 3; width: 24px; height: 24px; border-radius: 50%; pointer-events: none;
  background: color-mix(in oklab, var(--ink) 30%, transparent); box-shadow: 0 0 0 1px color-mix(in oklab, var(--paper) 60%, transparent);
  opacity: 0;
}

/* ---------- Demo 2 · Voz ---------- */
.demo--voz { aspect-ratio: 4 / 5; }
@media (min-width: 768px) { .demo--voz { aspect-ratio: 16 / 11; } }
.vz { display: flex; flex-direction: column; gap: var(--s-3); height: 100%; padding: var(--s-4); }
@media (min-width: 768px) { .vz { padding: var(--s-5); gap: var(--s-4); } }
.vz__call {
  display: flex; align-items: center; gap: var(--s-3); padding: 10px 14px 10px 10px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 14px;
}
.vz__icon { position: relative; display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--surface-2); }
.vz__icon svg { width: 20px; height: 20px; position: relative; }
.vz__ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--ink-2); opacity: 0; }
.vz__meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.vz__state { display: grid; font: 500 12px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.vz__s { grid-area: 1 / 1; opacity: 0; }
.vz__s.is-final { opacity: 1; }
.vz__num { font-size: 15px; font-variant-numeric: tabular-nums; letter-spacing: .02em; white-space: nowrap; }
.vz__time { font: 500 15px/1 var(--f-mono); font-variant-numeric: tabular-nums; width: 5ch; text-align: right; flex: none; }
.vz__wave { position: relative; flex: 1; min-height: 0; }
.vz__flat, .vz__canvas { position: absolute; left: 0; top: 50%; width: 100%; height: 100%; translate: 0 -50%; }
.vz__canvas { height: auto; aspect-ratio: 2 / 1; max-height: 100%; }
@media (min-width: 768px) { .vz__canvas { aspect-ratio: 3 / 1; } }
.vz__flat path { stroke: var(--ink-2); stroke-width: 2; fill: none; }
.vz__canvas { visibility: hidden; }
.demo--voz.is-armed .vz__canvas { visibility: visible; }
.demo--voz.is-armed .vz__flat { visibility: hidden; }
.vz__sum {
  position: absolute; left: 50%; top: 50%; width: min(84%, 22rem); translate: -50% -50%;
  padding: 12px 16px 14px; background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow-1);
}
.vz__sum-h { font: 500 11px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.vz__sum ul { list-style: none; padding: 0; margin-top: 6px; }
.vz__sum li { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.vz__sum svg { width: 12px; height: 12px; flex: none; }
.vz__sum path { fill: none; stroke: var(--solved); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vz__sub { display: grid; min-height: calc(1.35em * 2 + 18px); font-size: 15px; line-height: 1.35; }
.vz__line { grid-area: 1 / 1; align-self: end; opacity: 0; }
.vz__line.is-final { opacity: 1; }
.vz__who { display: block; margin-bottom: 3px; font: 500 11px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- Demo 3 · Webs ---------- */
.demo--webs { aspect-ratio: 16 / 11; }
.wb { width: 100%; height: 100%; }
.wb__dots circle { fill: var(--ink-2); }
.wb__frame { fill: var(--paper); stroke: var(--ink-2); stroke-width: 1.5; }
.wb__bar { stroke: var(--rule); stroke-width: 1.5; fill: none; }
.wb__lights circle { fill: var(--field); opacity: .55; }
.wb__url rect { fill: var(--surface-2); }
.wb__slug { font: 500 12px var(--f-mono); fill: var(--ink-2); letter-spacing: .02em; }
.wb__grid rect { fill: var(--surface-2); }
.wb__navbits rect { fill: var(--field); opacity: .45; }
.wb__navbits rect:first-child { fill: var(--ink); opacity: .85; }
.wb__h1 { font: 700 28px var(--f-sans); letter-spacing: -.03em; fill: var(--ink); }
.wb__copy rect { fill: var(--field); opacity: .42; }
.wb__img-c { fill: var(--surface); stroke: var(--rule); stroke-width: 1.5; }
.wb__img-star { fill: var(--solved); }
.wb__img-glow { fill: var(--solved); opacity: .22; }
.wb__cards circle { fill: var(--field); opacity: .4; }
.wb__cards rect { fill: var(--field); opacity: .3; }
.wb__cta-o { fill: none; stroke: var(--field); stroke-width: 1.5; }
.wb__cta-t0, .wb__cta-t { font: 600 13px var(--f-sans); }
.wb__cta-t0 { fill: var(--ink); }
.wb__cta-b { fill: var(--solved); }
.wb__cta-t { fill: var(--on-solved); }

/* ---------- Demo 4 · Clientes ---------- */
.demo--clientes { aspect-ratio: 4 / 3; }
.demo--clientes[data-layout="m"] { aspect-ratio: 9 / 13; }
.cl { position: relative; height: 100%; }
.cl__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cl__map { fill: var(--paper); stroke: var(--rule); }
.cl__roads { fill: none; stroke: var(--rule); stroke-width: 1.2; }
.cl__base circle { fill: var(--field); opacity: .5; }
.cl__lines path { fill: none; stroke: color-mix(in oklab, var(--ink) 20%, transparent); stroke-width: .75; stroke-dasharray: 1; }
.cl__fit circle { fill: var(--ink); }
.cl__on { fill: var(--solved); }
.cl__ring { fill: none; stroke: var(--solved); stroke-width: 1.2; opacity: 0; }
.cl__fit circle, .cl__on, .cl__ring { transform-box: fill-box; transform-origin: center; }
.cl__sweep { stroke: var(--ink-2); stroke-width: 1; opacity: 0; }
.cl__band { fill: transparent; stroke: var(--field); stroke-width: 1.2; stroke-linejoin: round; }
.cl__band--2 { fill: var(--surface-2); }
.cl__band--3 { fill: var(--solved); stroke: var(--solved); }
.cl__mouth { fill: var(--ink-2); }
.cl__label {
  position: absolute; top: 10px; left: 12px; font: 500 12px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2);
}
.cl__bandtxt { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.cl__bandtxt--3 { color: var(--on-solved); }
.cl__bl { font: 500 11px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.cl__bandtxt--3 .cl__bl { color: inherit; }
.odo { display: inline-flex; height: 1em; font: 500 clamp(18px, 1.2rem + .6vw, 26px)/1 var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.odo__col { display: block; width: 1ch; height: 1em; overflow: hidden; }
.odo__col.is-lead { display: none; }
.odo__strip, .odo__strip span { display: block; height: 1em; }
.odo__q { display: none; }
.odo.is-q .odo__q { display: block; }
.odo.is-q .odo__col { display: none; }
.demo--clientes[data-layout="m"] .cl__bandtxt { flex-direction: row; gap: 10px; }
.demo--clientes[data-layout="m"] .odo { font-size: 17px; }
.no-js .cl__niches { display: none; } /* the niche switch needs JS */
.cl__niches { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.cl__yours { margin-top: var(--s-3); font-weight: 600; }
.cl__yours a { display: inline-flex; align-items: center; min-height: 44px; gap: var(--s-1); }

/* ---------- S5 · contact (night stage) ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }  /* minmax(0): a long word (ca) never widens the phone column past the viewport */
.contact__head .sub { margin-top: var(--s-4); }
.contact__icon { display: block; width: 160px; height: 160px; margin: var(--s-5) auto 0; border-radius: 50%; }

.form__note { color: var(--ink-2); font-size: .9375rem; }
.field { margin-top: var(--s-5); }
.field > label, .field legend { display: block; margin-bottom: var(--s-2); font-weight: 600; }
fieldset.field { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
.field input, .field textarea {
  display: block; width: 100%; min-height: 48px; padding: 11px 14px; font-size: 1rem; line-height: 1.4;
  background: var(--paper); color: var(--ink); border: 1.5px solid var(--field); border-radius: var(--r-s);
  transition: border-color var(--d-micro) var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--star); }
.field [aria-invalid="true"] { border-color: var(--solved-ink); }
.field__help { margin: calc(-1 * var(--s-1)) 0 var(--s-2); color: var(--ink-2); font-size: .9375rem; }
.field__chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.field--group.is-invalid .chip { border-color: var(--solved-ink); }
.field__err { margin-top: var(--s-2); color: var(--solved-ink); font-size: .9375rem; font-weight: 500; }
.field__count { margin-top: var(--s-1); text-align: right; font: 500 12px/1.3 var(--f-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.form__send { width: 100%; margin-top: var(--s-6); }
.field--trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin-top: var(--s-4); min-height: 1.5em; }
.form__status:empty { min-height: 0; margin: 0; }
.form__legal { margin-top: var(--s-3); font-size: .875rem; line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
#form-copy { margin-top: var(--s-3); }
.form__fallback { margin-top: var(--s-3); }
.form__fallback label { display: block; margin-bottom: var(--s-2); color: var(--ink-2); font-size: .9375rem; }
.form__fallback textarea { width: 100%; padding: 11px 14px; font: 500 13px/1.5 var(--f-mono); background: var(--paper); color: var(--ink); border: 1.5px solid var(--field); border-radius: var(--r-s); }
.contact__alt { margin-top: var(--s-6); color: var(--ink-2); }
.contact__alt a { color: var(--ink); display: inline-block; padding-block: 11px; }

@media (min-width: 768px) {
  .contact__grid { grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-7); align-items: start; }
  .contact__head { grid-column: 1 / span 3; grid-row: 1; }
  .contact__form { grid-column: 4 / span 5; grid-row: 1; }
  .form__send { width: auto; min-width: 16rem; }
}
@media (min-width: 1280px) {
  .contact__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .contact__head { grid-column: 1 / span 5; grid-row: 1; }
  .contact__form { grid-column: 7 / span 6; grid-row: 1; }
  .contact__icon { width: 200px; height: 200px; }
}

.form__legal a { color: inherit; text-decoration: underline; }
.form__actions { position: relative; display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-6); }
.form__actions .form__send { margin: 0; width: auto; min-width: 0; }
.form__info { position: static; flex: 0 0 auto; }
.form__info summary { display: grid; place-items: center; width: 36px; height: 44px; cursor: pointer; list-style: none; color: var(--ink-2); border-radius: 50%; }
.form__info summary::-webkit-details-marker { display: none; }
.form__info summary span { display: grid; place-items: center; width: 16px; height: 16px; border: 1px solid currentColor; border-radius: 50%; font: 600 12px/1 Georgia, serif; }
.form__info summary:hover, .form__info[open] summary { color: var(--ink); }
.form__info summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.form__info-panel { position: absolute; z-index: 5; left: 0; bottom: calc(100% + 10px); width: min(24rem, calc(100vw - 4rem)); padding: 20px; border: 1px solid var(--field); border-radius: var(--r-s); background: var(--paper); box-shadow: 0 12px 32px rgb(0 0 0 / .12); }
.form__info-panel .form__legal { margin: 0; }

/* Privacy policy reader (contact.js): native modal <dialog>, read-only. Lives outside the void stage, so it uses the
   page tokens (paper/ink) and follows the theme. The body scrolls by itself (data-lenis-prevent, overscroll contained). */
.pdialog {
  width: min(100% - 2 * var(--s-4), 46rem); max-width: none; max-height: min(100dvh - 2 * var(--s-4), 52rem);
  margin: auto; padding: 0; display: none; flex-direction: column; overflow: hidden;
  background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--r-m); box-shadow: var(--shadow-2);
}
.pdialog[open] { display: flex; }
.pdialog::backdrop { background: rgb(7 7 10 / .62); }
.pdialog__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-3) var(--s-3) var(--s-3) var(--s-5); border-bottom: 1px solid var(--rule);
}
.pdialog__title { font-size: 1.25rem; line-height: 1.2; font-weight: 650; }
.pdialog__close { flex: none; }
.pdialog__body { overflow-y: auto; overscroll-behavior: contain; padding: var(--s-2) var(--s-5) var(--s-6); }
.pdialog__body:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.pdialog__body h2 { font-size: 1.125rem; line-height: 1.25; font-weight: 650; margin: var(--s-6) 0 var(--s-2); }
.pdialog__body p, .pdialog__body li, .pdialog__body dd { font-size: 1rem; line-height: 1.6; }
.pdialog__body p, .pdialog__body ul, .pdialog__body dl { margin-top: var(--s-3); }
.pdialog__body ul { padding-left: 1.25em; }
.pdialog__body li + li { margin-top: var(--s-2); }
.pdialog__body a { color: inherit; text-decoration: underline; text-underline-offset: .15em; overflow-wrap: anywhere; }
.pdialog__body a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.pdialog__body dt { font-weight: 600; margin-top: var(--s-3); }
.pdialog__body dd { margin: 0; }
.pdialog__body .legal__upd, .pdialog__body .legal__sum { color: var(--ink-2); }
.pdialog__body .legal__sum { border-left: 3px solid var(--field); padding-left: var(--s-4); }
html:has(.pdialog[open], .sdialog[open]) { overflow: hidden; }
@media (max-width: 767px) { .pdialog__body { padding-inline: var(--s-4); } .pdialog__head { padding-left: var(--s-4); } }

/* Request registered (contact.js): small centred modal <dialog> after a successful send. Same page tokens as the policy
   reader (paper/ink, follows the theme). Entrance only with motion on and not reduced; otherwise it just appears. */
.sdialog {
  width: min(100% - 2 * var(--s-4), 26rem); max-width: none; max-height: calc(100dvh - 2 * var(--s-4)); overflow-y: auto;
  margin: auto; padding: var(--s-7) var(--s-5) var(--s-5); display: none; flex-direction: column; align-items: center; text-align: center;
  background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--r-l); box-shadow: var(--shadow-2);
}
.sdialog[open] { display: flex; }
.sdialog::backdrop { background: rgb(7 7 10 / .62); }
.sdialog__mark {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--solved); color: var(--on-solved);
}
.sdialog__mark svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sdialog__title { margin-top: var(--s-5); font-family: var(--f-serif); font-weight: 400; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.5rem); line-height: 1.1; text-wrap: balance; }
.sdialog__text { margin-top: var(--s-4); }
.sdialog__text p { font-size: 1rem; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.sdialog__text p + p { margin-top: var(--s-3); }
.sdialog__text .sdialog__reply { color: var(--ink); font-weight: 600; }
.sdialog__ok { margin-top: var(--s-6); min-width: 12rem; }
.sdialog__ok:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .motion .sdialog[open] { animation: sdialog-in var(--d-reveal) var(--ease); }
  .motion .sdialog[open]::backdrop { animation: sdialog-fade var(--d-ui) ease-out; }
  .motion .sdialog[open] .sdialog__mark { animation: sdialog-pop var(--d-reveal) var(--ease) var(--d-stagger) backwards; }
}
@keyframes sdialog-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes sdialog-fade { from { opacity: 0; } }
@keyframes sdialog-pop { from { opacity: 0; transform: scale(.6); } }
