/* MOLONLABE CAPITAL LLC, molonlabecapital.us. Direction A "Monolith". */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --graphite: #1C1D20;
  --slate: #2E3035;
  --field: #232428;
  --oolite: #E3E1DB;
  --ash: #A29E96;
  --edge: #7A766F;
  --bronze: #A8743F;
  --lume: #E3B877;
  --alert: #F0A38C;
  --brass: #C4955F;
  --rule: rgba(227, 225, 219, .14);
  --rule-b: rgba(168, 116, 63, .55);
  --gut: clamp(1rem, 4vw, 5rem);
  /* Content frame: on very wide screens the gutters grow so lines and columns stay together. */
  --frame: 120rem;
  --pad: max(var(--gut), calc(50% - var(--frame) / 2));
  --wide: 125%;
  --head: 4.25rem;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: var(--slate) var(--graphite);
  /* 16px up to ~1440px, then grows gently with the screen (21px on a 4K display at 100%). Uses the
     smaller of width and 16:9-equivalent height so ultra-wide monitors do not get oversized type. */
  font-size: clamp(100%, .8125rem + .208 * min(1vw, 1.78vh), 131.25%);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-width: 320px;
  background: var(--graphite);
  color: var(--oolite);
  font: 400 1.0625rem/1.6 "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-stretch: 100%;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--bronze); color: var(--graphite); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--lume); }
:focus-visible { outline: 2px solid var(--lume); outline-offset: 3px; border-radius: 1px; }
h1, h2, h3 { font-weight: 300; font-stretch: var(--wide); margin: 0; text-wrap: balance; }
p { margin: 0; }
address { font-style: normal; }
[id] { scroll-margin-top: var(--head); }
.num { font-variant-numeric: tabular-nums lining-nums; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.wm-s { fill: none; stroke: currentColor; stroke-linejoin: miter; stroke-miterlimit: 14; stroke-width: var(--wm-sw, 8); }
.wm-a { fill: var(--wm-acc, currentColor); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 30;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
  background: var(--oolite); color: var(--graphite); font-weight: 500; text-decoration: none; border-radius: 2px;
}
.skip:focus { top: .75rem; }
.skip:hover { color: var(--graphite); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  height: var(--head); margin-bottom: calc(var(--head) * -1);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 var(--pad);
  background: linear-gradient(var(--graphite) 45%, rgba(28, 29, 32, 0));
}
.brand { display: flex; align-items: center; gap: .75rem; min-height: 44px; text-decoration: none; color: var(--oolite); }
.brand:hover { color: var(--oolite); }
.brand svg { display: block; flex: none; }
.brand .mk { width: 1.375rem; height: 1.375rem; color: var(--bronze); }
.brand .wm { width: 6.8125rem; height: .75rem; --wm-sw: 10; --wm-acc: var(--lume); }
.brand small { font-size: .75rem; font-stretch: var(--wide); font-weight: 500; color: var(--ash); letter-spacing: .04em; padding-top: 1px; }
.nav { display: flex; align-items: center; gap: clamp(.25rem, 1.6vw, 1.25rem); font-size: .9375rem; }
.nav > a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .4rem; text-decoration: none; color: var(--ash); }
.nav > a:hover { color: var(--oolite); }
.lang { display: flex; margin-left: .35rem; border: 1px solid var(--rule); border-radius: 2px; }
.lang a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 42px;
  font-size: .8125rem; font-weight: 500; letter-spacing: .02em; text-decoration: none; color: var(--ash);
}
.lang a:hover { color: var(--oolite); }
.lang a[aria-current] { color: var(--graphite); background: var(--oolite); }

/* ---------- stage: hero + services over a pinned scene ---------- */
.stage { position: relative; }
.scene {
  --cx: .68; --cy: .49;
  position: sticky; top: 0; z-index: 0;
  height: 100vh; height: 100svh;
  margin-bottom: -100vh; margin-bottom: -100svh;
  overflow: hidden;
  container-type: size;
  pointer-events: none;
}
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
.scene canvas.on { opacity: 1; }
.poster {
  position: absolute; left: calc(var(--cx) * 100%); top: calc(var(--cy) * 100%);
  height: min(88.8cqh, 97.8cqw); width: auto; aspect-ratio: 4 / 3;
  transform: translate(-50%, -50%);
  transition: opacity .9s var(--ease);
}
/* With scripting and motion allowed, the bronze waits in low light until the live scene takes over. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .poster { opacity: .42; }
  /* Safety net: if the live scene never starts (script blocked, very slow device), light the poster after 6 s. */
  .scene:not(.live):not(.static) .poster { animation: poster-up .9s var(--ease) 6s forwards; }
}
@keyframes poster-up { to { opacity: 1; } }
.scene.static .poster { opacity: 1; }


.hero {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 7rem var(--pad) clamp(2.5rem, 8vh, 5.5rem);
}
.hero-copy { max-width: min(44rem, 46vw); }
.hero h1 { font-size: clamp(2rem, 3.2vw, 3.4rem); line-height: 1.06; letter-spacing: -.012em; }
.lede { margin-top: 1.5rem; max-width: 31rem; color: var(--ash); }
.lede strong { font-weight: 500; color: var(--oolite); }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.25rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.35rem;
  background: var(--lume); color: var(--graphite); border: 0; border-radius: 2px;
  font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease);
}
.btn:hover { background: var(--oolite); color: var(--graphite); }
.btn:active { background: #CFA265; }
.btn[disabled] { cursor: progress; background: var(--ash); }
.link { display: inline-flex; align-items: center; min-height: 44px; color: var(--oolite); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(227, 184, 119, .7); }

.services { position: relative; z-index: 1; padding: clamp(6rem, 18vh, 11rem) var(--pad) clamp(6rem, 20vh, 12rem); }
.services .col { max-width: min(36rem, 44vw); }
.services h2, .about h2, .contact h2 { font-size: clamp(1.75rem, 2.4vw, 2.5rem); line-height: 1.15; }
.services .intro { margin-top: 1.25rem; color: var(--ash); max-width: 32rem; }
.areas { margin: 3.5rem 0 0; padding: 0; }
.areas div { padding: 1.6rem 0 1.8rem; border-top: 1px solid var(--rule); }
.areas dt { font-size: clamp(1.3rem, 1.8vw, 1.65rem); font-stretch: var(--wide); font-weight: 400; line-height: 1.2; }
.areas dd { margin: .65rem 0 0; color: var(--ash); max-width: 31rem; }

/* ---------- about ---------- */
.about { position: relative; z-index: 2; background: var(--graphite); padding: clamp(5rem, 12vw, 9rem) var(--pad) clamp(4rem, 9vw, 7rem); border-top: 1px solid var(--rule); }
.about-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: start; }
.about-text h2 { margin-bottom: 1.75rem; }
.about-text p { max-width: 36rem; color: var(--ash); }
.about-text p + p { margin-top: 1.1rem; }
.about-text p:first-of-type { color: var(--oolite); font-size: clamp(1.125rem, 1.4vw, 1.3rem); line-height: 1.5; }
.ways { margin: 0; padding: 0; }
.ways div { padding: 1.4rem 0 1.5rem; border-top: 1px solid var(--rule); }
.ways div:last-child { border-bottom: 1px solid var(--rule); }
.ways dt { font-size: 1.125rem; font-stretch: 112%; font-weight: 400; }
.ways dd { margin: .45rem 0 0; color: var(--ash); }
.about-note { margin-top: clamp(3rem, 6vw, 4.5rem); color: var(--ash); font-size: .9375rem; }
.about-note a { color: var(--oolite); text-decoration-color: rgba(227, 184, 119, .7); }

/* ---------- contact ---------- */
.contact { position: relative; z-index: 2; background: var(--graphite); padding: clamp(4rem, 10vw, 8rem) var(--pad) clamp(4rem, 9vw, 7rem); border-top: 1px solid var(--rule); }
.contact .grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem clamp(2rem, 5vw, 5rem); align-items: start; }
.contact .q { margin-top: 1rem; color: var(--ash); max-width: 30rem; }
.mail {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 1.5rem;
  font-size: clamp(1.2rem, 2.1vw, 2rem); font-stretch: 112%; font-weight: 300; line-height: 1.25;
  text-decoration-color: rgba(227, 184, 119, .55); overflow-wrap: anywhere;
}

.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 1.5rem; }
.form .full { grid-column: 1 / -1; }
.form .hint { grid-column: 1 / -1; color: var(--ash); font-size: .875rem; }
.field label { display: block; margin-bottom: .45rem; font-size: .9375rem; font-weight: 500; }
.field label span { font-weight: 400; color: var(--ash); }
.field input, .field textarea {
  display: block; width: 100%; min-height: 48px; margin: 0; padding: .7rem .85rem;
  background: var(--field); color: var(--oolite);
  border: 1px solid var(--edge); border-radius: 2px;
  font: inherit; line-height: 1.45; caret-color: var(--lume);
  transition: border-color .2s var(--ease);
}
.field textarea { min-height: 9.5rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--ash); }
.field input:focus, .field textarea:focus { border-color: var(--lume); outline: 2px solid var(--lume); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--alert); }
.err { margin-top: .4rem; color: var(--alert); font-size: .875rem; }
.err:empty { display: none; }
.check { display: flex; gap: .85rem; align-items: flex-start; }
.check input {
  flex: none; width: 1.375rem; height: 1.375rem; margin: .1rem 0 0; accent-color: var(--lume); cursor: pointer;
}
.check label { font-size: .9375rem; color: var(--ash); line-height: 1.5; cursor: pointer; }
.check label a { color: var(--oolite); }
.check-wrap .err { margin-left: 2.225rem; }
.hp { display: none; }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-note { color: var(--ash); font-size: .875rem; max-width: 26rem; }
.status { grid-column: 1 / -1; font-size: .9375rem; }
.status:empty { display: none; }
.status { padding: 1rem 1.15rem; border: 1px solid var(--rule-b); border-radius: 2px; background: var(--slate); }
.status.bad { border-color: var(--alert); }

/* ---------- footer ---------- */
.foot {
  position: relative; z-index: 2; background: var(--graphite);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 2rem clamp(2rem, 5vw, 5rem);
  padding: 2.5rem var(--pad) 2.75rem; border-top: 1px solid var(--rule);
  font-size: .875rem; color: var(--ash); line-height: 1.6;
}
.foot .id b { display: block; color: var(--oolite); font-weight: 500; font-stretch: 112%; letter-spacing: .02em; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot address a { display: inline-flex; align-items: center; min-height: 44px; }
.foot nav ul { list-style: none; margin: -.6rem 0 0; padding: 0; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; }
.foot .copy { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 1px solid var(--rule); }

/* ---------- legal pages ---------- */
.page { padding: calc(var(--head) + clamp(1.25rem, 5vw, 4rem)) var(--pad) clamp(4rem, 9vw, 7rem); }
.back { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; color: var(--ash); text-decoration: none; font-size: .9375rem; }
.back:hover { color: var(--oolite); }
.back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.legal-doc { max-width: 46rem; margin-top: clamp(2rem, 5vw, 3.5rem); }
.legal-doc h1 { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.1; letter-spacing: -.01em; }
.legal-doc h2 { margin: 3rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 400; line-height: 1.3; }
.legal-doc h2[id] { scroll-margin-top: calc(var(--head) + .5rem); }
.legal-doc h3 { margin: 2rem 0 0; font-size: 1.0625rem; font-weight: 500; font-stretch: 100%; }
.legal-doc p, .legal-doc ul, .legal-doc ol, .legal-doc table, .legal-doc address { margin: 1rem 0 0; }
.legal-doc p, .legal-doc li { max-width: 68ch; }
.legal-doc ul, .legal-doc ol { padding-left: 1.25rem; }
.legal-doc li + li { margin-top: .45rem; }
.legal-doc li::marker { color: var(--bronze); }
.legal-doc a { color: var(--oolite); text-decoration-color: rgba(227, 184, 119, .6); overflow-wrap: anywhere; }
.legal-doc a:hover { color: var(--lume); }
.legal-doc strong, .legal-doc b { font-weight: 500; }
.legal-doc .updated { margin-top: 1rem; color: var(--ash); font-size: .9375rem; }
.legal-doc .notice { margin-top: 1.75rem; padding: 1.1rem 1.25rem; background: var(--slate); border: 1px solid var(--rule-b); border-radius: 2px; }
.legal-doc table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.legal-doc th, .legal-doc td { text-align: left; vertical-align: top; padding: .75rem 1rem .75rem 0; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.legal-doc th { font-weight: 500; color: var(--ash); font-size: .875rem; border-bottom-color: rgba(227, 225, 219, .3); }
.legal-doc code { font-size: .9em; }

/* Legal pages: justified text with a side column (contents + related pages).
   Narrow screens: the contents become a compact menu next to "Back to home"; the related block is
   left to the footer, which repeats it. Wide screens: two columns, the side column sticks. */
.legal { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "back toc" "doc doc"; align-items: center; column-gap: 1rem; }
.legal > .back { grid-area: back; justify-self: start; }
.legal > .legal-doc { grid-area: doc; max-width: 43rem; }
.legal .legal-doc p, .legal .legal-doc li { max-width: none; }
.legal .legal-doc p, .legal .legal-doc li, .legal .legal-doc td {
  text-wrap: pretty;
  -webkit-hyphens: auto; hyphens: auto;
  hyphenate-limit-chars: 7 3 3;
}
.legal .legal-doc p, .legal .legal-doc li { text-align: justify; word-spacing: -.01em; }
.legal .legal-doc .updated { text-align: left; }
.legal .legal-doc a { -webkit-hyphens: manual; hyphens: manual; }
.side { display: contents; }
.side-h { color: var(--ash); font-size: .8125rem; font-weight: 500; font-stretch: 112%; letter-spacing: .02em; }
.rel { display: none; }

.toc { grid-area: toc; position: relative; justify-self: end; }
.toc summary {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: 0 .9rem;
  list-style: none; cursor: pointer; user-select: none;
  border: 1px solid var(--rule); border-radius: 2px;
  font-size: .9375rem; color: var(--oolite);
  transition: border-color .2s var(--ease);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary:hover { border-color: var(--edge); }
.toc details[open] summary { border-color: var(--rule-b); }
.chev { width: 14px; height: 14px; fill: none; stroke: var(--brass); stroke-width: 1.5; transition: transform .3s var(--ease); }
.toc details[open] .chev { transform: rotate(180deg); }
.toc ol {
  position: absolute; z-index: 5; right: 0; top: calc(100% + .5rem);
  width: min(23rem, calc(100vw - 2 * var(--gut)));
  max-height: min(68vh, 34rem); overflow-y: auto; overscroll-behavior: contain;
  margin: 0; padding: .4rem 0; list-style: none;
  background: var(--slate); border: 1px solid var(--rule); border-radius: 2px;
  box-shadow: 0 1.25rem 2.5rem -.75rem rgba(0, 0, 0, .65);
}
.toc li a {
  position: relative; display: grid; grid-template-columns: 1.85rem minmax(0, 1fr); align-items: baseline;
  min-height: 44px; padding: .65rem 1.1rem .65rem 1rem;
  color: var(--ash); font-size: .9375rem; line-height: 1.35; text-decoration: none;
}
.toc .n { color: var(--brass); font-size: .8125rem; font-stretch: 112%; font-variant-numeric: tabular-nums lining-nums; }
.toc li a:hover { color: var(--oolite); }
.toc li a[aria-current] { color: var(--oolite); }
.toc li a[aria-current] .n { color: var(--lume); }

@media (min-width: 58em) {
  .legal {
    grid-template-columns: minmax(0, 43rem) minmax(15rem, 18.5rem);
    grid-template-areas: "back ." "doc side";
    justify-content: space-between; align-items: start;
    column-gap: clamp(3rem, 7vw, 8rem);
    max-width: 84rem;
  }
  .side {
    grid-area: side; display: block;
    position: sticky; top: calc(var(--head) + 1.25rem);
    margin-top: clamp(2rem, 5vw, 3.5rem);
    max-height: calc(100vh - var(--head) - 2.5rem); max-height: calc(100svh - var(--head) - 2.5rem);
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
    padding: .35rem 0 1rem;
  }
  .toc { position: static; }
  .toc ol {
    position: static; width: auto; max-height: none; overflow: visible;
    margin-top: .9rem; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none;
    border-left: 1px solid var(--rule);
  }
  .toc li a { min-height: 0; padding: .42rem 0 .42rem 1.1rem; font-size: .875rem; }
  .toc li a::before { content: ""; position: absolute; left: -1px; top: .5rem; bottom: .5rem; width: 1px; background: transparent; transition: background-color .3s var(--ease); }
  .toc li a:hover::before { background: var(--edge); }
  .toc li a[aria-current]::before { background: var(--lume); }
  .rel { display: block; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
  .rel ul { list-style: none; margin: .35rem 0 1.25rem; padding: 0; }
  .rel a { display: inline-flex; align-items: center; min-height: 2.25rem; color: var(--oolite); font-size: .9375rem; text-decoration: none; overflow-wrap: anywhere; }
  .rel a:hover { color: var(--lume); text-decoration: underline; text-decoration-color: rgba(227, 184, 119, .6); }
  .rel .side-h + p { margin-top: .35rem; }
  /* Browsers that can style the details content keep the contents always open; elsewhere it stays a disclosure. */
  @supports selector(::details-content) {
    .toc details::details-content { content-visibility: visible; }
    .toc summary { pointer-events: none; cursor: default; min-height: 0; padding: 0; border: 0; }
    .toc summary span { color: var(--ash); font-size: .8125rem; font-weight: 500; font-stretch: 112%; letter-spacing: .02em; }
    .toc .chev { display: none; }
  }
}
@media (min-width: 58em) and (pointer: coarse) {
  .toc li a, .rel a { min-height: 44px; }
}

/* ---------- 404 ---------- */
.nf { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: center; min-height: 100vh; min-height: 100svh; padding: calc(var(--head) + 2rem) var(--pad) 4rem; }
.nf .legal-doc { margin-top: 0; order: 1; }
.nf .legal-doc h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
.nf-art { order: 2; width: 100%; max-width: 28rem; height: auto; justify-self: center; display: block; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .scene { --cx: .7; }
  .hero-copy { max-width: min(36rem, 44vw); }
}
@media (min-width: 2400px) {
  .scene { --cx: .66; }
}
/* Short, wide viewports (phones held sideways, small laptop windows): tighter hero so the copy fits. */
@media (max-height: 540px) and (min-aspect-ratio: 3/2) {
  .hero { padding-top: calc(var(--head) + .75rem); padding-bottom: 1.5rem; }
  .hero h1 { font-size: clamp(1.6rem, 3.7vw, 2.4rem); }
  .lede { margin-top: .9rem; }
  .acts { margin-top: 1.25rem; }
}
/* Stacked hero (lambda above the text). Must match `stacked` in monolith.js. Phones held sideways
   (short and wide) keep the side-by-side composition instead. */
@media (max-width: 860px) and (max-aspect-ratio: 3/2), (max-aspect-ratio: 19/20) {
  .scene { --cx: .5; --cy: .345; }
  .hero { padding-top: 58vh; padding-top: 58svh; padding-bottom: 2.5rem; }
  .hero-copy, .services .col { max-width: 40rem; }
  .hero h1 { font-size: clamp(1.85rem, 6.6vw, 2.75rem); font-stretch: 112%; }
  .services { background: linear-gradient(rgba(28, 29, 32, 0), rgba(28, 29, 32, .92) 7rem, rgba(28, 29, 32, .92)); }
}
@media (max-width: 860px) {
  .brand small { display: none; }
  .about-in, .contact .grid, .nf { grid-template-columns: minmax(0, 1fr); }
  .foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot .id { grid-column: 1 / -1; }
  .nf { align-content: center; }
  .nf .legal-doc { order: 2; }
  .nf-art { order: 1; max-width: 13rem; justify-self: start; }
}
/* 404 on a phone held sideways: keep text and drawing side by side so the message is above the fold. */
@media (max-width: 860px) and (max-height: 540px) and (min-aspect-ratio: 3/2) {
  .nf { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); padding-top: calc(var(--head) + 1rem); }
  .nf .legal-doc { order: 1; }
  .nf-art { order: 2; max-width: 11rem; justify-self: center; }
}
@media (max-width: 639px) {
  .nav .hide-s { display: none; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: minmax(0, 1fr); }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .legal-doc table { font-size: .875rem; }
  .legal-doc th, .legal-doc td { padding-right: .65rem; }
}
@media (max-width: 400px) {
  .top { gap: .5rem; }
  .brand { gap: .55rem; }
  .brand .wm { width: 92px; height: 10px; }
  .nav { gap: 0; }
  .nav > a { padding: 0 .5rem; }
  .lang { margin-left: .25rem; }
}
@media (max-width: 340px) {
  .brand { gap: .45rem; }
  .brand .wm { width: 84px; height: 9px; }
  .nav > a { padding: 0 .4rem; font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .btn, .lang a[aria-current] { border: 1px solid CanvasText; }
}
