/* Atlas Legal, demonstracao da Upsite Labs.
   A historia e a norma em duas colunas, sobre a biblioteca em fotografia. */

@font-face {
  font-family: "Literata";
  src: url("fonts/literata-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Literata";
  src: url("fonts/literata-latin-ext.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20AB, U+2C60-2C7F;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-400-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}


:root {
  --stone: #ebe4d5;
  --paper: #f8f4ea;
  --navy: #151b30;
  --navy-2: #202a4a;
  --ink: #1b1e2c;
  --ink-soft: #565b6e;
  --oxblood: #8c2f39;
  --brass: #d5ac6a;
  --line: rgba(27, 30, 44, 0.16);
  --line-lt: rgba(248, 244, 234, 0.24);
  --display: "Literata", Georgia, "Times New Roman", serif;
  --text: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  /* Radius scale: control, field, panel, sheet. Photographs take the arch. */
  --r1: 12px;
  --r2: 22px;
  --r3: 36px;
  --arch: 999px 999px 32px 32px;
  --bow: clamp(28px, 5vw, 72px);
  --t: cubic-bezier(0.2, 0.8, 0.2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--text); font-size: clamp(1rem, 0.96rem + 0.22vw, 1.08rem); line-height: 1.66; color: var(--ink); background: var(--stone); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }
@media (min-width: 900px) { .wrap { width: min(100% - 4rem, var(--wrap)); } }
.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; }
[hidden] { display: none !important; }
.skip { position: fixed; top: 0.6rem; left: 0.6rem; z-index: 200; transform: translateY(-160%); background: var(--brass); color: var(--navy); font-weight: 600; font-size: 0.85rem; padding: 0.7rem 1rem; border-radius: 999px; text-decoration: none; transition: transform 0.2s var(--t); }
.skip:focus-visible { transform: translateY(0); }
:where(a, button, summary, input, select, textarea, [tabindex="0"]):focus-visible { outline: 3px solid var(--oxblood); outline-offset: 3px; border-radius: var(--r1); }
.band--navy :where(a, button, summary, input, select, textarea, [tabindex="0"]):focus-visible, .topbar :where(a, button):focus-visible, .hero :where(a):focus-visible { outline-color: var(--brass); }
.form :where(input, select, textarea, button):focus-visible { outline-color: var(--oxblood); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0.7rem 1.4rem; font-family: var(--text); font-weight: 600; font-size: 0.92rem; text-decoration: none; border: 1.6px solid transparent; border-radius: 999px; cursor: pointer; background: transparent; color: inherit; transition: transform 0.18s var(--t), background 0.2s var(--t), color 0.2s var(--t), border-color 0.2s var(--t); }
.btn--lg { min-height: 54px; padding: 0.85rem 1.7rem; font-size: 0.98rem; }
.btn--solid { background: var(--brass); color: var(--navy); border-color: var(--brass); }
.btn--solid:hover { background: #e3bf84; transform: translateY(-2px); }
.btn--solid:disabled, .btn--line:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn--line { border-color: currentColor; }
.btn--line:hover { background: rgba(248, 244, 234, 0.12); transform: translateY(-2px); }
.form .btn--line:hover { background: rgba(27, 30, 44, 0.07); }
.stepbtn { width: 48px; height: 48px; border-radius: 50%; border: 1.6px solid currentColor; background: transparent; color: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; display: inline-grid; place-items: center; padding: 0 0 0.15em; transition: background 0.18s var(--t), color 0.18s var(--t); }
.stepbtn:hover:not(:disabled) { background: var(--brass); color: var(--navy); border-color: var(--brass); }
.stepbtn:disabled { opacity: 0.4; cursor: not-allowed; }

.topbar { position: sticky; top: 0; z-index: 100; background: rgba(235, 228, 213, 0.9); backdrop-filter: blur(10px); }
.topbar__in { display: flex; align-items: center; gap: 1.4rem; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.brand__mark { width: 32px; height: 32px; color: var(--oxblood); }
.brand__mark svg { width: 100%; height: 100%; }
.head-nav { margin-left: auto; }
.head-nav ul { display: flex; gap: 0.2rem; }
.head-nav a { display: inline-block; font-size: 0.9rem; font-weight: 500; text-decoration: none; padding: 0.55rem 0.9rem; border-radius: 999px; transition: background 0.2s var(--t); }
.head-nav a:hover { background: rgba(27, 30, 44, 0.08); }
.head-cta { min-height: 44px; background: var(--navy); color: var(--paper); }
.head-cta:hover { background: var(--navy-2); }
.menu-btn { display: none; }

.drawer { position: fixed; inset: 0; z-index: 150; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(12, 14, 26, 0.6); opacity: 0; transition: opacity 0.3s var(--t); cursor: pointer; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; top: 0.6rem; right: 0.6rem; bottom: 0.6rem; width: min(86vw, 380px); background: var(--navy); color: var(--paper); border-radius: var(--r3); padding: 1.3rem 1.5rem 1.8rem; display: flex; flex-direction: column; gap: 1.2rem; transform: translateX(110%); transition: transform 0.34s var(--t); overflow-y: auto; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__title { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.drawer__close { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-lt); background: transparent; color: var(--paper); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.drawer__list a { display: block; padding: 0.8rem 0; font-family: var(--display); font-weight: 600; font-size: 1.5rem; text-decoration: none; border-bottom: 1px solid var(--line-lt); }
.drawer__list a:hover { color: var(--brass); }
.drawer__cta { align-self: flex-start; }

/* Hero: one arched-corner plate */
.hero { padding: 0 0 clamp(1.6rem, 4vw, 2.6rem); }
.hero__card { position: relative; margin: 0 clamp(0.5rem, 1.6vw, 1.2rem); min-height: min(76vh, 620px); border-radius: var(--r3); overflow: hidden; display: grid; align-items: end; color: var(--paper); background: var(--navy); }
.hero__card picture, .hero__card img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__card img { object-fit: cover; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 18, 36, 0.92), rgba(14, 18, 36, 0.35) 62%, rgba(14, 18, 36, 0.2)); }
.hero__copy { position: relative; padding: clamp(1.4rem, 4vw, 3.2rem); max-width: 56rem; }
.hero__title { font-size: clamp(2.2rem, 5.2vw, 4.2rem); line-height: 1.02; margin: 0 0 1rem; text-wrap: balance; }
.lead { font-size: 1.1rem; max-width: 40ch; }
.hero .lead { color: rgba(248, 244, 234, 0.9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.notice { margin-top: clamp(1rem, 2.4vw, 1.6rem); padding: clamp(1.1rem, 3vw, 1.6rem) clamp(1.2rem, 3vw, 2rem); border-radius: var(--r2); background: var(--oxblood); color: #fff8f0; }
.notice p { margin: 0; max-width: 78ch; }
.notice__title { font-family: var(--display); font-size: 1.2rem; font-weight: 600; margin-bottom: 0.35rem !important; }
.demo-note { margin: 1rem 0 0; font-size: 0.8rem; color: var(--ink-soft); max-width: 70ch; }

/* Bands: each one bows over the one before it */
.band { position: relative; padding: calc(var(--bow) + clamp(2.2rem, 5vw, 4rem)) 0 clamp(3rem, 6vw, 5rem); margin-top: calc(var(--bow) * -1); border-radius: 50% 50% 0 0 / var(--bow) var(--bow) 0 0; background: var(--stone); }
.materias { margin-top: 0; border-radius: 0; padding-top: clamp(2rem, 5vw, 3.4rem); }
.band--navy { background: var(--navy); color: var(--paper); }
.band--navy .sec-intro { color: rgba(248, 244, 234, 0.82); }
.head { max-width: 60ch; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); margin: 0 0 0.7rem; }
.sec-intro { color: var(--ink-soft); max-width: 58ch; margin: 0; }
.gen-note { font-size: 0.84rem; color: var(--ink-soft); margin: 1.2rem 0 0; max-width: 70ch; }

/* Matters */
.materias__head { display: grid; gap: 1.6rem; margin-bottom: clamp(1.4rem, 3vw, 2.2rem); align-items: end; }
@media (min-width: 900px) { .materias__head { grid-template-columns: 1fr 230px; } }
.arch picture { display: block; border-radius: var(--arch); overflow: hidden; }
.arch img { width: 100%; height: auto; aspect-ratio: 4 / 4.6; object-fit: cover; }
@media (max-width: 899px) { .arch { max-width: 200px; } }
.picker { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.pbtn { min-height: 46px; padding: 0.5rem 1.1rem; border-radius: 999px; border: 1.6px solid var(--line); background: var(--paper); color: var(--ink); font: 600 0.92rem var(--text); cursor: pointer; transition: background 0.18s var(--t), color 0.18s var(--t), border-color 0.18s var(--t); }
.pbtn:hover { border-color: var(--ink); }
.pbtn[aria-selected="true"] { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.spread__name { margin-bottom: 0.6rem; }
.js .spread__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.spreads[data-enhanced] .spread { display: none; }
.spreads[data-enhanced] .spread.is-on { display: grid; animation: fade 0.35s var(--t); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.spread { display: grid; border-radius: var(--r3); overflow: hidden; box-shadow: 0 18px 40px rgba(21, 27, 48, 0.12); }
.spreads:not([data-enhanced]) .spread + .spread { margin-top: 1.2rem; }
.spreads:not([data-enhanced]) .picker { display: none; }
@media (min-width: 820px) { .spread { grid-template-columns: 1fr 1fr; } }
.spread__col { padding: clamp(1.4rem, 3.4vw, 2.4rem); }
.spread__col--case { background: var(--navy); color: var(--paper); }
.spread__col--norm { background: var(--paper); }
.spread__h { font-family: var(--display); font-size: 1.5rem; font-weight: 600; margin: 0 0 0.7rem; }
.spread__col--case .spread__h { color: var(--brass); }
.spread__col--norm .spread__h { color: var(--oxblood); }
.spread__next { padding: 0.8rem 1rem; border-radius: var(--r1); background: rgba(140, 47, 57, 0.1); font-weight: 500; }
.spread__sub { font-family: var(--text); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin: 1.3rem 0 0.6rem; opacity: 0.85; }
.dots { display: grid; gap: 0.4rem; }
.dots li { position: relative; padding-left: 1.3rem; font-size: 0.96rem; }
.dots li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }
.spread__col--norm .dots li::before { background: var(--oxblood); }

/* Case path */
.stages__bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.sbtn { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 48px; padding: 0.4rem 1.1rem 0.4rem 0.5rem; border-radius: 999px; border: 1.6px solid var(--line-lt); background: transparent; color: var(--paper); font: 500 0.92rem var(--text); cursor: pointer; transition: background 0.18s var(--t), color 0.18s var(--t); }
.sbtn__n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(248, 244, 234, 0.14); font-weight: 700; font-size: 0.85rem; }
.sbtn:hover { background: rgba(248, 244, 234, 0.08); }
.sbtn[aria-selected="true"] { background: var(--brass); color: var(--navy); border-color: var(--brass); }
.sbtn[aria-selected="true"] .sbtn__n { background: var(--navy); color: var(--brass); }
.stages:not([data-enhanced]) .stages__bar, .stages:not([data-enhanced]) .stages__nav { display: none; }
.stages__panel { background: var(--navy-2); border-radius: var(--r3); padding: clamp(1.4rem, 4vw, 2.4rem); }
.stage-text h3 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.7rem; color: var(--brass); }
.stage-text p { max-width: 62ch; margin: 0; }
.stage-text + .stage-text { margin-top: 1.4rem; }
.stages__nav { display: flex; gap: 0.7rem; margin-top: 1.4rem; flex-wrap: wrap; }
.how { margin-top: clamp(2rem, 5vw, 3rem); display: grid; gap: 0.7rem; }
@media (min-width: 900px) { .how { grid-template-columns: repeat(2, 1fr); } }
.how li { display: grid; gap: 0.2rem; padding: 1.1rem 1.4rem; border-radius: var(--r2); background: rgba(248, 244, 234, 0.07); }
.how b { font-family: var(--display); font-size: 1.15rem; font-weight: 600; color: var(--brass); }

/* Fees */
.hon__grid { display: grid; gap: clamp(1.6rem, 4vw, 3rem); }
@media (min-width: 900px) { .hon__grid { grid-template-columns: 0.8fr 1.2fr; align-items: start; } }
.fees { display: grid; gap: 0.7rem; }
@media (min-width: 640px) { .fees { grid-template-columns: repeat(2, 1fr); } }
.fee { background: var(--paper); border-radius: var(--r2); padding: 1.3rem 1.4rem; }
.fee dt { font-family: var(--display); font-weight: 600; font-size: 1.3rem; margin-bottom: 0.4rem; color: var(--oxblood); }
.fee dd { font-size: 0.96rem; color: var(--ink-soft); }
.fee:last-child { background: var(--navy); }
.fee:last-child dt { color: var(--brass); }
.fee:last-child dd { color: rgba(248, 244, 234, 0.86); }

/* Gallery */
.gal { outline-offset: 6px; }
.gal__track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 0.4rem; border-radius: var(--r3); }
.gal__track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; }
.slide img { width: 100%; height: clamp(240px, 46vw, 460px); object-fit: cover; border-radius: var(--r3); }
.slide figcaption { margin: 0.8rem 0 0 0.4rem; font-size: 0.9rem; color: rgba(248, 244, 234, 0.86); }
.gal__ctl { display: flex; align-items: center; gap: 1rem; margin-top: 1.2rem; }
.gal__count { margin: 0; min-width: 5ch; font-weight: 600; }
.gal:not([data-enhanced]) ~ .gal__ctl { display: none; }

/* Terms */
.termos__grid { display: grid; gap: clamp(1.6rem, 4vw, 3rem); }
@media (min-width: 900px) { .termos__grid { grid-template-columns: 0.8fr 1.2fr; align-items: start; } .termos__grid > div:first-child { position: sticky; top: 92px; } }
.faq { display: grid; gap: 0.6rem; }
.faq__item { background: var(--paper); border-radius: var(--r2); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.2rem; min-height: 56px; cursor: pointer; list-style: none; font-family: var(--display); font-weight: 600; font-size: 1.12rem; border-radius: var(--r2); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--oxblood); }
.faq__sign { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.6px solid var(--line); }
.faq__sign::before, .faq__sign::after { content: ""; position: absolute; inset: 50% 6px auto; height: 1.8px; background: currentColor; }
.faq__sign::after { transform: rotate(90deg); transition: transform 0.3s var(--t); }
[open] > summary .faq__sign::after { transform: rotate(0deg); }
.faq__body { padding: 0 1.2rem 1.2rem; max-width: 62ch; }
.faq__body p { margin: 0; color: var(--ink-soft); }

/* Contact */
.contacto__grid { display: grid; gap: clamp(1.6rem, 4vw, 3rem); }
@media (min-width: 880px) { .contacto__grid { grid-template-columns: 0.95fr 1.05fr; align-items: start; } }
.contacto .lead { color: rgba(248, 244, 234, 0.88); max-width: 42ch; }
.warn { margin: 1.4rem 0; padding: 1.2rem 1.4rem; border-radius: var(--r2); background: var(--oxblood); color: #fff8f0; }
.warn p { margin: 0; font-size: 0.95rem; }
.warn__title { font-family: var(--display); font-size: 1.2rem; font-weight: 600; margin-bottom: 0.4rem !important; }
.where { display: grid; gap: 0.6rem; }
.where div { padding: 0.8rem 1.1rem; border-radius: var(--r2); background: rgba(248, 244, 234, 0.08); }
.where dt { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brass); }
.contacto__note { font-size: 0.84rem; margin: 1rem 0 0; color: rgba(248, 244, 234, 0.78); }
.form, .form__done { background: var(--paper); color: var(--ink); padding: clamp(1.3rem, 3vw, 2rem); border-radius: var(--r3); }
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field--group { border: 0; margin: 0; padding: 0; gap: 0.4rem; }
.field > label, .field legend { font-weight: 600; font-size: 0.86rem; color: var(--ink-soft); padding: 0; }
.field input:not([type="radio"], [type="checkbox"]), .field select, .field textarea { font: inherit; color: var(--ink); background: #fff; border: 1.6px solid rgba(27, 30, 44, 0.4); border-radius: var(--r2); padding: 0.7rem 1rem; min-height: 48px; width: 100%; transition: border-color 0.18s var(--t); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(27, 30, 44, 0.7); }
.field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; cursor: pointer; padding-right: 2.8rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23565b6e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px 8px; }
.field :is(input, select, textarea)[aria-invalid="true"] { border-color: #a31d1d; box-shadow: inset 0 0 0 1px #a31d1d; }
.opts { display: grid; gap: 0.1rem; }
.opts--pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.opts--pills .opt { border: 1.6px solid var(--line); border-radius: 999px; padding: 0.1rem 1.1rem 0.1rem 0.8rem; background: #fff; }
.opts--pills .opt:has(input:checked) { border-color: var(--oxblood); background: #fbeeee; }
.opt { display: flex; align-items: center; gap: 0.7rem; min-height: 44px; font-size: 0.95rem; cursor: pointer; }
.opt input { appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 2px solid rgba(27, 30, 44, 0.55); background: #fff; cursor: pointer; }
.opt input[type="radio"] { border-radius: 50%; }
.opt input[type="checkbox"] { border-radius: 7px; }
.opt input:hover { border-color: var(--oxblood); }
.opt input[type="checkbox"]:checked { background-color: var(--oxblood); border-color: var(--oxblood); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.6 8.4l3.3 3.3L13.4 4.2' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 13px; }
.opt input[type="radio"]:checked { background-color: var(--oxblood); border-color: var(--oxblood); background-image: radial-gradient(circle at center, #fff 0 28%, transparent 31%); }
.field__err { margin: 0; font-size: 0.86rem; color: #a31d1d; font-weight: 600; }
.field__err::before { content: "Erro: "; }
.form__submit { justify-self: start; background: var(--navy); color: var(--paper); border-color: var(--navy); }
.form__submit:hover { background: var(--navy-2); }
.form__submit:disabled { opacity: 0.7; cursor: progress; }
.form__done-title { font-size: 1.5rem; margin: 0 0 0.6rem; }
.form__done p { margin: 0 0 1.1rem; }

.foot { background: #0e1224; color: var(--paper); padding: 2.4rem 0 3rem; margin-top: -1px; }
.foot__in { display: grid; gap: 1rem; }
.foot__brand { font-family: var(--display); font-weight: 600; font-size: 1.25rem; }
.foot__note { font-size: 0.8rem; line-height: 1.6; color: rgba(248, 244, 234, 0.75); max-width: 78ch; margin: 0; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; }
.foot__nav a { font-size: 0.9rem; text-decoration: none; padding: 0.5rem 0; }
.foot__nav a:hover { color: var(--brass); }

@media (max-width: 800px) {
  .head-nav, .head-cta { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; cursor: pointer; }
  .menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
  .menu-btn__bars { position: relative; }
  .menu-btn__bars::before { position: absolute; top: -6px; left: 0; }
  .menu-btn__bars::after { position: absolute; top: 6px; left: 0; }
}
body.is-locked { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .pbtn, .sbtn, .drawer__panel, .drawer__scrim, .faq__sign::after, .skip { transition: none; }
  .spreads[data-enhanced] .spread.is-on { animation: none; }
}
@media (prefers-reduced-transparency: reduce) { .topbar { background: var(--stone); backdrop-filter: none; } }

/* Page loader: CSS clears it by itself; app.js removes it earlier on load. */
.loader{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;background:#151B30;pointer-events:none;animation:ld-out 1s both}.ld-mark{width:72px;height:72px}@keyframes ld-out{0%,70%{opacity:1;visibility:visible}100%{opacity:0;visibility:hidden}}.ld-mark{width:88px;height:auto}.ld-l,.ld-r{transform-box:fill-box;animation:ld-open .7s cubic-bezier(.2,.8,.2,1) both}.ld-l{transform-origin:100% 50%}.ld-r{transform-origin:0 50%}@keyframes ld-open{from{transform:scaleX(.05)}to{transform:scaleX(1)}}@media (prefers-reduced-motion:reduce){.loader{display:none}}

/* Loader timing: visible ~1.2s then fade (JS); CSS fallback hides ~2.2s with no JS. */
.loader{animation:loader-fallback 2.2s cubic-bezier(.16,1,.3,1) both;transition:opacity .5s ease}
.loader.is-out{opacity:0!important;visibility:hidden!important}
@keyframes loader-fallback{0%,84%{opacity:1;visibility:visible}100%{opacity:0;visibility:hidden}}
