/* Styles of the language switcher (src/components/lang-switch.js) and of .nav-actions, which groups it
   with the menu button. Moved out of i18n.js on 28/09/2026; the menu items became links. */
.nav-actions{display:inline-flex;align-items:center;gap:14px;flex:0 0 auto}
.lang-switch{position:relative;display:inline-flex}
.lang-btn{display:inline-flex;align-items:center;gap:6px;background:none;border:none;padding:6px 2px;font-family:"Azeret Mono",ui-monospace,monospace;font-size:11px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:#666;cursor:pointer;transition:color .2s}
.lang-btn:hover,.lang-switch.open .lang-btn{color:#141414}
.lang-globe{display:block}
.lang-caret{display:block;opacity:.7;transition:transform .2s ease}
.lang-switch.open .lang-caret{transform:rotate(180deg)}
.lang-menu{position:absolute;top:calc(100% + 12px);right:0;background:#fff;border:1px solid rgba(17,17,17,.10);border-radius:12px;box-shadow:0 12px 30px rgba(0,0,0,.10);padding:6px;display:none;flex-direction:column;min-width:168px;z-index:1100}
.lang-switch.open .lang-menu{display:flex}
.lang-menu a{display:flex;align-items:center;gap:11px;background:none;border:none;border-radius:8px;padding:10px 12px;font-family:"Azeret Mono",ui-monospace,monospace;font-size:11px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:#141414;cursor:pointer;text-align:left;white-space:nowrap}
.lang-menu a:hover{background:#F7F7F7}
.lang-menu a[aria-current="true"]{color:#133D38;font-weight:700}
.lang-flag{display:block;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.06)}

/* Case pages: the credits always sit on the left, and the link buttons go to the right when there are any
   (João, 03/10/2026: "Tem como todos ficarem alinhados à esquerda?"). Before, a page with a button had its
   credits pushed to the right by the space-between of the row. */
.live-row .credits{order:-1}
.live-row .live-actions{margin-left:auto}
/* The secondary link button with an icon (Figma, Webflow preview), for the case pages whose own style does not have it */
.live-link.is-secondary{background:transparent;color:var(--ink);border:1px solid var(--ink)}.live-link.is-secondary:hover{background:var(--ink);color:var(--bg)}
.live-link.has-icon{display:inline-flex;align-items:center;gap:10px}
.live-link__icon{height:14px;width:auto;flex:none;fill:currentColor}
/* A short note under the live link, when the client's site changed after the work (MeteorOps; João, 09/10/2026: "isso
   fica no final. Quando você colocar a pessoa para acessar o link") */
.live-actions .live-note{flex-basis:100%;max-width:420px;margin:2px 0 0;font-size:13px;line-height:1.5;color:var(--muted);text-wrap:pretty}

/* Case pages: the name of each tool of the signature strip shows in a tooltip, on hover and on keyboard focus
   (João, 03/10/2026: "melhor ter um tooltip no hover"). The build wraps the icon and writes the name from its alt
   (scripts/build.mjs). */
#mo-cover .sig-block__tool{position:relative;display:inline-flex;border-radius:var(--radius-large)}
#mo-cover .sig-block__tool:focus-visible{outline:3px solid #fff;outline-offset:6px}
#mo-cover .sig-block__tool::after{
  content:attr(data-tip);position:absolute;left:50%;bottom:calc(100% + 16px);transform:translate(-50%,6px);
  padding:10px 16px;border-radius:6px;background:#fff;color:#141414;font:500 20px/1 var(--font-primary);letter-spacing:.04em;white-space:nowrap;
  opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease;
}
#mo-cover .sig-block__tool:hover::after,#mo-cover .sig-block__tool:focus-visible::after{opacity:1;transform:translate(-50%,0)}
@media (prefers-reduced-motion: reduce){#mo-cover .sig-block__tool::after{transition:none}}

/* Project card: the one card of the site (home list, selected work on the hire page). The shell lives here and
   nowhere else: border, lift and shadow on hover, the image that grows, the title that takes the accent colour.
   A page adds only what is its own inside the card (text block, image position). Written on 03/10/2026 after the hire
   page was built with a card of its own and a hover that the site does not have (João: "isso só pode acontecer
   quando a gente não tem um sistema"). scripts/check.mjs refuses a page that defines these rules again. */
.proj{display:block;background:var(--paper);border:1px solid var(--line-soft);overflow:hidden;transition:transform .4s cubic-bezier(.16,.84,.44,1),box-shadow .4s ease}
.proj:hover{transform:translateY(-4px);box-shadow:0 26px 50px -22px rgba(0,0,0,.28)}
.proj-img{aspect-ratio:4/3;overflow:hidden;background:var(--bg-2)}
.proj-img img{width:100%;height:100%;object-fit:cover;object-position:top;transition:transform .7s cubic-bezier(.16,.84,.44,1);filter:saturate(.96)}
.proj:hover .proj-img img{transform:scale(1.05)}
.proj h3{transition:color .25s}
.proj:hover h3{color:var(--gold)}

/* Button: the one button of the site, always in a pair of one solid (primary) and one outline (secondary).
   The values are the ones of the home. Written on 03/10/2026, when the home, the About page and the hire page each
   had a copy with its own padding. scripts/check.mjs refuses a page that defines these rules again. */
.btn{display:inline-flex;align-items:center;gap:9px;font-family:var(--mono);font-size:12px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;padding:15px 26px;border-radius:5px;cursor:pointer;transition:transform .25s ease,background .25s ease,color .25s ease,border-color .25s ease}
.btn:hover{transform:translateY(-2px)}
.btn-solid{background:var(--ink);color:var(--bg)}
.btn-solid:hover{background:var(--gold)}
.btn-out{border:1px solid var(--line);color:var(--ink)}
.btn-out:hover{border-color:var(--ink);background:var(--ink);color:var(--bg)}
.btn:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
@media(max-width:640px){.btn{font-size:11px;padding:13px 22px}}

/* Case facts: the strip at the end of a case's Overview, one fact per line (Role, Scope, Timeline, Tools, Industry),
   a small label on the left and the value on the right, a thin line between lines. Born in the Love Ignites Peace
   redesign draft and turned into a piece of the system on 04/10/2026, at João's request ("adorei isso, deixa aí a
   nota pra gente implementar em outros cases"). Each value comes from a checked source; Timeline only enters with a
   start and an end that have a source, and is left out otherwise. Written by .migration/case_facts.py.
   scripts/check.mjs refuses a page that defines these rules again. */
.case-facts{margin-top:22px;border-top:1px solid var(--line)}
.case-facts_row{display:grid;grid-template-columns:140px 1fr;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}
.case-facts_row dt{font-family:var(--mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);padding-top:3px}
.case-facts_row dd{margin:0;font-size:15px;line-height:1.55;color:var(--ink-2)}
@media(max-width:700px){.case-facts_row{grid-template-columns:1fr;gap:2px}}
/* names in the strip keep their links (João, 05/10/2026), underlined like the credits */
.case-facts dd a{color:inherit;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.case-facts dd a:hover{text-decoration-thickness:2px}
.case-facts dd a:focus-visible{outline:2px solid var(--gold);outline-offset:2px}

/* Space between the pieces of a case block: a paragraph never touches the table, list, strip or figure above or below it
   (João, 06/10/2026: "ele está muito colado na tabela de cima (...) não pode se repetir em nenhuma página"); checked by
   scripts/spacing.mjs in the browser. */
[id^="mo-body-"] > :is(div,ul,ol,dl,table,figure) + p,[id^="mo-body-"] > p + :is(div,ul,ol,dl,table,figure){margin-top:22px}

/* Before and after: one design decision per block, the why in two sentences, then a drag-to-compare frame for desktop
   and one for the phone. Born in the Mobly page (06/10/2026) and turned into a piece of the system on 09/10/2026 for
   every redesign case (João: "replicar aquela estratégia lá de que a gente fez para o site da Mobile (...) você vai
   intercalando com as imagens"; "Não queremos só tela bonita, queremos rational"). Markup from
   src/components/before-after.js; the drag script is added by scripts/build.mjs to any page that has a frame. */
.ch-list{display:flex;flex-direction:column;gap:72px;margin-top:28px;width:min(1216px,calc(100vw - 40px))}
.ch{margin:0}
.ch-title{font-family:var(--display);font-weight:700;font-size:24px;line-height:1.25;color:var(--ink);margin:0}
.ch-why{max-width:760px;margin-top:10px;font-size:17px;line-height:1.65;color:var(--ink-2)}
.ch-why strong{font-weight:600;color:var(--ink)}
.ch-tip{display:inline-block;margin-top:4px;padding:10px 14px;border-radius:6px;background:#F2F2F2;font-size:14px;line-height:1.5;color:var(--ink-2)}
.ch-pair{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,.4618fr);gap:32px;align-items:start;margin-top:22px}
.ch-pair.is-single{grid-template-columns:minmax(0,1fr)}
.ch-view{margin:0;display:flex;flex-direction:column;gap:10px}
.ch-eyebrow{font-family:var(--mono);font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-2)}
@media (max-width:860px){.ch-pair{grid-template-columns:1fr}.ch-view.is-phone{max-width:320px}}
.ba-stage{position:relative;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff;user-select:none}
.ba-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top;display:block}
.ba-before{position:absolute;inset:0;clip-path:inset(0 calc(100% - var(--x)) 0 0)}
.ba-line{position:absolute;top:0;bottom:0;left:var(--x);width:2px;margin-left:-1px;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.18);pointer-events:none}
.ba-handle{position:absolute;top:50%;left:50%;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.25)}
.ba-handle::before,.ba-handle::after{content:"";position:absolute;top:50%;width:0;height:0;margin-top:-6px;border:6px solid transparent}
.ba-handle::before{left:8px;border-right-color:#111}
.ba-handle::after{right:8px;border-left-color:#111}
.ba-tag{position:absolute;bottom:12px;font-family:var(--mono);font-size:12px;letter-spacing:.08em;text-transform:uppercase;padding:6px 10px;border-radius:4px;pointer-events:none;background:#111;color:#fff}
.ba-tag.is-before{left:12px}
.ba-tag.is-after{right:12px}
.is-phone .ba-tag{font-size:10px;padding:4px 7px;bottom:8px}
.is-phone .ba-tag.is-before{left:8px}.is-phone .ba-tag.is-after{right:8px}
.is-phone .ba-handle{width:34px;height:34px;margin:-17px 0 0 -17px}
.is-phone .ba-handle::before{left:5px}.is-phone .ba-handle::after{right:5px}
.ba-range{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize}
.ba-stage:focus-within .ba-handle{outline:3px solid #2f6fde;outline-offset:2px}
.ch-note{margin-top:28px;font-size:14px;line-height:1.6;color:var(--muted)}
.ba-stage.is-single .ba-tag.is-after{left:12px;right:auto}
.is-phone .ba-stage.is-single .ba-tag.is-after{left:8px}
