/* Decumano Arquitectos
   White ground, one grotesque (TeX Gyre Heros, GUST Font License), photos first.
   Order: fonts · tokens · base · header · windows (fixed photos) · sections · cards · sheet (pop-up) · contact · misc */

@font-face { font-family: "Heros"; src: url("/assets/fonts/TeXGyreHeros-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Heros"; src: url("/assets/fonts/TeXGyreHeros-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #FFFFFF;
  --soft: #F3F2EF;
  --ink: #161616;
  --ink-2: #3B3B3B;
  --gray: #6A6A6A;
  --line: #E1DFDA;
  --dark: #121211;
  --sans: "Heros", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: 20px;
  --max: 1360px;
  --top-h: 64px;
  --bar-h: 52px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --pad: 40px; } }
@media (min-width: 1200px) { :root { --pad: 56px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--top-h); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; padding-bottom: var(--bar-h); }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: var(--pad); top: -80px; z-index: 100; background: var(--ink); color: var(--bg); padding: 12px 16px; }
.skip:focus { top: 8px; }
h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 400; line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.lede { font-size: 1.125rem; color: var(--ink-2); max-width: 46ch; margin-top: 16px; }
.line-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.line-link:hover { text-decoration-thickness: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; background: var(--ink); color: var(--bg); text-decoration: none; border: 1px solid var(--ink); transition: background-color .25s, color .25s; }
.btn:hover { background: #000; }
.btn--light { background: #FFFFFF; color: var(--ink); border-color: #FFFFFF; }
.btn--light:hover { background: transparent; color: #FFFFFF; }
.section-head { display: grid; gap: 16px; border-top: 1px solid var(--ink); padding-top: 20px; margin-bottom: 36px; }
.section-head .lede { margin-top: 0; }
.lede p + p { margin-top: 12px; }
@media (min-width: 900px) { .section-head { grid-template-columns: 5fr 7fr; gap: 64px; margin-bottom: 48px; } .section-head h2 { max-width: 18ch; } .section-head .lede { max-width: 60ch; } }

/* ---------- Header: transparent over the photo, white after it ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--top-h); background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease); }
.top.is-over { background: transparent; border-color: transparent; color: #FFFFFF; }
.top-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-inline: var(--pad); }
.brand { text-decoration: none; font-weight: 700; letter-spacing: .02em; display: inline-flex; align-items: center; gap: .3em; min-height: 44px; }
.brand span { font-weight: 400; }
.menu-toggle { min-height: 44px; min-width: 44px; background: none; border: 0; padding: 0 4px; cursor: pointer; }
.menu { display: none; }
.menu a { text-decoration: none; display: flex; align-items: center; min-height: 48px; }
.menu a:hover { text-decoration: underline; text-underline-offset: 5px; }
.menu.is-open { display: flex; flex-direction: column; position: absolute; top: var(--top-h); left: 0; right: 0; background: var(--bg); color: var(--ink); padding: 8px var(--pad) 20px; border-bottom: 1px solid var(--line); }
.menu.is-open a { border-bottom: 1px solid var(--line); }
.menu .menu-wa { font-weight: 700; }
@media (min-width: 1140px) {
  .menu-toggle { display: none; }
  .menu, .menu.is-open { display: flex; position: static; flex-direction: row; align-items: center; gap: 24px; padding: 0; background: none; color: inherit; border: 0; font-size: .9375rem; }
  .menu.is-open a { border: 0; }
  .menu .menu-wa { margin-left: 8px; min-height: 40px; padding: 0 16px; border: 1px solid currentColor; }
  .menu .menu-wa:hover { text-decoration: none; background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .top.is-over .menu .menu-wa:hover { background: #FFFFFF; color: var(--ink); border-color: #FFFFFF; }
}

/* ---------- Windows: the photo stays still, the page scrolls over it ---------- */
.window { position: relative; clip-path: inset(0); color: #FFFFFF; background: var(--dark); }
/* The fixed photo takes the LARGE viewport height (constant), so it doesn't rescale when the
   phone's address bar hides or shows while scrolling; its own layer keeps it from jittering. */
.window-img { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; transform: translateZ(0); backface-visibility: hidden; pointer-events: none; }
.window-img img { width: 100%; height: 100%; object-fit: cover; }
.window::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,.08) 70%); pointer-events: none; }
.window--hero::after { background: linear-gradient(to top, rgba(10,10,9,.78) 0%, rgba(10,10,9,.5) 45%, rgba(10,10,9,.12) 80%); }
.window--hero { min-height: calc(100vh - var(--bar-h)); min-height: calc(100svh - var(--bar-h)); padding-top: calc(var(--top-h) + 40px); display: flex; flex-direction: column; justify-content: flex-end; }
@media (min-width: 1140px) { .window--hero { min-height: 100vh; min-height: 100svh; } }
.hero-text { position: relative; z-index: 2; padding: 0 var(--pad) 24px; max-width: 1100px; }
.hero-text h1 { font-size: clamp(2.25rem, 4.6vw, 4rem); font-weight: 400; line-height: 1.04; letter-spacing: -0.025em; max-width: 16ch; }
.hero-lead { margin-top: 18px; font-size: clamp(1.125rem, 1.6vw, 1.375rem); max-width: 40ch; }
.hero-more { margin-top: 10px; font-size: 1rem; max-width: 62ch; color: rgba(255,255,255,.9); }
@media (max-width: 699px) { .hero-more { display: none; } }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.hero-link { color: #FFFFFF; display: inline-flex; align-items: center; min-height: 48px; text-decoration: underline; text-underline-offset: 5px; }
.hero-line { margin-top: 24px; font-size: .8125rem; letter-spacing: .02em; color: rgba(255,255,255,.88); }
.hero-line span { display: block; margin-top: 2px; }
.hero-caption { position: relative; z-index: 2; align-self: flex-start; margin: 0 var(--pad) 16px; text-align: left; background: none; border: 0; color: #FFFFFF; font-size: .8125rem; cursor: pointer; min-height: 44px; padding: 0; text-decoration: underline; text-decoration-color: rgba(255,255,255,.5); text-underline-offset: 4px; }
.hero-caption:hover { text-decoration-color: #FFFFFF; }
@media (min-width: 960px) { .hero-text { padding-bottom: 72px; } .hero-caption { position: absolute; right: var(--pad); bottom: 24px; margin: 0; text-align: right; } }
.window.is-empty::after { display: none; }
/* Provisional drawings (no photo yet): darker veil so white text stays readable */
.window:has(.is-drawn)::after { background: linear-gradient(to top, rgba(18,18,17,.78), rgba(18,18,17,.18) 70%); }
.window--quote { min-height: 70vh; min-height: 70svh; display: flex; align-items: flex-end; }
.quote { position: relative; z-index: 2; padding: 96px var(--pad) 72px; max-width: 980px; }
.quote blockquote { font-size: clamp(1.5rem, 2.8vw, 2.5rem); line-height: 1.2; letter-spacing: -0.015em; }
.quote figcaption { margin-top: 20px; font-size: .9375rem; color: rgba(255,255,255,.85); }

/* ---------- Bands (white sections that slide over the photos) ---------- */
.band { position: relative; z-index: 2; background: var(--bg); padding-block: 56px; }
@media (min-width: 900px) { .band { padding-block: 80px; } }
.band:not(.band--soft) + .band:not(.band--soft) { padding-top: 0; }
.intro-grid { display: grid; gap: 32px; }
.statement { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 400; line-height: 1.2; letter-spacing: -0.015em; max-width: 22ch; }
.intro-side p + p { margin-top: 0; }
.intro-side { display: grid; gap: 14px; color: var(--ink-2); max-width: 58ch; align-content: start; }
@media (min-width: 900px) { .intro-grid { grid-template-columns: 7fr 5fr; gap: 64px; } }

/* ---------- Works: cards that lift on hover ---------- */

.works-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; border-top: 1px solid var(--ink); padding-top: 12px; margin-bottom: 32px; }
.page-lede { max-width: 62ch; margin: 20px 0 48px; }
.filter { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .9375rem; }
.filter button { background: none; border: 0; padding: 0; min-height: 44px; cursor: pointer; color: var(--gray); }
.filter button:hover { color: var(--ink); }
.filter button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.no-js .filter { display: none; }

.cards { display: grid; gap: 40px 24px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; } }
.cards li[hidden] { display: none; }
.card { position: relative; display: block; text-decoration: none; background: var(--bg); transition: transform .55s var(--ease), box-shadow .55s var(--ease), opacity .4s var(--ease); }
.card-media { display: block; overflow: hidden; background: var(--soft); aspect-ratio: 4 / 3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card-text { display: grid; gap: 2px; padding: 14px 2px 4px; transition: padding .55s var(--ease); }
.card-title { font-weight: 700; }
.card-meta { font-size: .875rem; color: var(--gray); }
.card-summary { font-size: .9375rem; color: var(--ink-2); margin-top: 6px; }
.card-tags { font-size: .8125rem; color: var(--gray); margin-top: 6px; }
@media (hover: hover) {
  .card:hover, .card:focus-visible { z-index: 3; transform: translateY(-10px) scale(1.035); box-shadow: 0 30px 60px -28px rgba(0,0,0,.45); }
  .card:hover .card-media img, .card:focus-visible .card-media img { transform: scale(1.06); }
  .card:hover .card-text, .card:focus-visible .card-text { padding-inline: 14px; padding-bottom: 14px; }
  .cards:hover .card:not(:hover) { opacity: .55; }
}
.card:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.works-lede { color: var(--gray); font-size: .9375rem; max-width: 46ch; }
.works-more { margin-top: 40px; }
@media (max-width: 699px) { .cards--selected li:nth-child(n+5) { display: none; } }
.page { padding-top: calc(var(--top-h) + 56px); }
@media (min-width: 900px) { .page { padding-top: calc(var(--top-h) + 88px); } }
.page-title { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; }

.menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Services ---------- */
.service-grid { display: grid; gap: 48px 40px; }
@media (min-width: 900px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 64px; } }
.service { display: grid; gap: 12px; align-content: start; border-top: 1px solid var(--line); padding-top: 20px; }
.service h3 { font-size: 1.25rem; font-weight: 400; letter-spacing: -0.01em; }
.service-sub { font-weight: 700; }
.service p { color: var(--ink-2); max-width: 58ch; }

/* ---------- Differentials ---------- */
.diffs { background: var(--soft); }
.diff-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .diff-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; } }
.diff-grid h3 { margin-bottom: 8px; }
.diff-grid p { color: var(--ink-2); }
.diff-close { margin-top: 36px; font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.3; max-width: 44ch; }

/* ---------- Process ---------- */
.steps { display: grid; gap: 32px; }
.steps li { display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 1px solid var(--line); }
.steps .step-sub { font-weight: 700; color: var(--ink); }
.steps p { font-size: .9375rem; color: var(--ink-2); }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; } }
.process-close { display: grid; gap: 20px; margin-top: 40px; padding: 32px; background: var(--soft); align-items: center; }
.process-close p { font-size: 1.125rem; max-width: 60ch; }
@media (min-width: 900px) { .process-close { grid-template-columns: 1fr auto; gap: 40px; padding: 40px; } }

/* ---------- Studio ---------- */

.studio-grid { display: grid; gap: 40px; border-top: 1px solid var(--ink); padding-top: 20px; }
.studio-photo { margin: 0; }
.studio-photo img { width: 100%; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--soft); }
.studio-photo figcaption { margin-top: 8px; font-size: .875rem; color: var(--gray); }
.studio-text h3 { margin-top: 16px; }
.studio-text { display: grid; gap: 18px; align-content: start; max-width: 60ch; }
.studio-text > p { color: var(--ink-2); }
@media (min-width: 900px) { .studio-grid { grid-template-columns: 5fr 7fr; gap: 64px; } .studio-text h2 { margin-bottom: 8px; } }
.faq-grid { display: grid; gap: 32px; border-top: 1px solid var(--ink); padding-top: 20px; }
.faq-grid > div:first-child { display: grid; gap: 24px; align-content: start; justify-items: start; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 5fr 7fr; gap: 64px; } .faq-grid h2 { max-width: 16ch; } }
.faq { border-top: 1px solid var(--line); }
.faq-more > summary { color: var(--gray); }
.faq-more > summary::after { content: none; }
.faq-more[open] > summary { display: none; }
.faq-more > details:last-child { border-bottom: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 56px; padding-block: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.25rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); padding-bottom: 16px; font-size: .9375rem; }

/* ---------- Contact ---------- */
.contact { background: var(--soft); }
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 80px; } }
.contact .lede { max-width: 48ch; }
.contact-btn { margin-top: 28px; }
.contact-data { margin-top: 36px; display: grid; gap: 14px; border-top: 1px solid var(--ink); padding-top: 16px; font-size: .9375rem; }
.contact-data div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.contact-data dt { color: var(--gray); }
.contact-data a { overflow-wrap: anywhere; }
.contact--short .contact-grid { align-items: end; }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .9375rem; color: var(--ink-2); }
.field .hint { color: var(--gray); font-size: .875rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px; font-size: 1rem; background: var(--bg); border: 1px solid #A8A6A1; border-radius: 0; appearance: none; -webkit-appearance: none; }
.field textarea { min-height: 140px; resize: vertical; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #A11B12; }
.error { color: #A11B12; font-size: .875rem; }
.error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit { justify-self: start; min-height: 52px; padding: 0 28px; background: var(--ink); color: var(--bg); border: 0; cursor: pointer; transition: background-color .25s; }
.submit:hover { background: #000; }
.form-note { font-size: .875rem; color: var(--gray); }
.form-note .link { text-decoration: underline; text-underline-offset: 3px; }
.form-status { font-size: .9375rem; min-height: 1.4em; }

/* ---------- Footer ---------- */
.foot { position: relative; z-index: 2; background: var(--bg); border-top: 1px solid var(--ink); font-size: .9375rem; }
.foot-grid { display: grid; gap: 28px; padding-block: 40px 24px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1fr auto; gap: 64px; } }
.foot-name { font-weight: 700; letter-spacing: .02em; }
.foot-kinds, .foot-area { color: var(--gray); margin-top: 6px; }
.foot-contact a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; overflow-wrap: anywhere; }
.foot-contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 16px 24px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--gray); }
.foot-base a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; }
.foot-base > span:last-child { display: flex; flex-wrap: wrap; gap: 0 24px; }

/* ---------- Sheet: the project pop-up ---------- */
.sheet { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--ink); overflow: hidden; }
.sheet::backdrop { background: rgba(14, 14, 13, .72); }
.sheet[open] { animation: sheet-in .45s var(--ease); }
.sheet[open]::backdrop { animation: fade-in .45s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.sheet.is-closing { animation: sheet-out .25s ease-in forwards; }
@keyframes sheet-out { to { opacity: 0; transform: translateY(16px) scale(.99); } }
.sheet-inner { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.sheet-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; padding: 8px 12px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.sheet-close { min-height: 44px; padding: 0 12px; background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.sheet-body { display: grid; }
.sheet-media { display: grid; gap: 4px; }
.sheet-media img { width: 100%; background: var(--soft); }
.sheet-media figcaption { font-size: .875rem; color: var(--gray); padding: 8px 20px 16px; }
.sheet-plan { background: var(--bg); padding: 24px 0; }
.sheet-plan img { background: var(--bg); }
.sheet-info { padding: 32px 20px 48px; display: grid; gap: 24px; align-content: start; }
.sheet-info h2 { font-size: clamp(1.75rem, 2.6vw, 2.5rem); }
.sheet-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; border-top: 1px solid var(--ink); padding-top: 16px; font-size: .9375rem; }
.sheet-data dt { color: var(--gray); font-size: .8125rem; }
.sheet-text { display: grid; gap: 14px; color: var(--ink-2); max-width: 56ch; }
.sheet-info .btn { justify-self: start; }
.sheet-data .wide { grid-column: 1 / -1; }
.sheet-nav { display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 12px; }
.sheet-nav button, .sheet-nav a { background: none; border: 0; padding: 0; min-height: 44px; display: flex; align-items: center; text-align: left; cursor: pointer; color: var(--gray); text-decoration: none; }
.sheet-nav button:hover, .sheet-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 1000px) {
  .sheet { width: calc(100% - 64px); max-width: 1400px; height: calc(100% - 64px); margin: auto; }
  .sheet-body { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .sheet-info { position: sticky; top: 61px; align-self: start; padding: 48px 48px 56px; max-height: calc(100vh - 64px - 61px); overflow-y: auto; }
}

/* ---------- Project page (same content as the pop-up, own address) ---------- */
.project-page { padding-top: var(--top-h); }
.project-bar { padding-block: 16px; font-size: .9375rem; }
.project-bar a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gray); }
.project-bar a:hover { color: var(--ink); }
.project-page .sheet-info h1 { font-size: clamp(1.75rem, 2.6vw, 2.5rem); font-weight: 400; line-height: 1.15; letter-spacing: -0.015em; }
@media (min-width: 1000px) {
  .project-page .sheet-body { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); padding-inline: var(--pad); gap: 0 8px; }
  .project-page .sheet-info { position: sticky; top: var(--top-h); align-self: start; max-height: calc(100vh - var(--top-h)); overflow-y: auto; }
}

/* ---------- WhatsApp bar (phones) ---------- */
.wa-bar { position: fixed; inset: auto 0 0 0; z-index: 30; display: flex; align-items: center; justify-content: center; min-height: var(--bar-h); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--bg); text-decoration: none; }
@media (min-width: 1140px) { .wa-bar { display: none; } body { padding-bottom: 0; } }

/* ---------- Cookie banner ---------- */
.consent { position: fixed; left: 8px; right: 8px; bottom: calc(var(--bar-h) + 8px); z-index: 45; background: var(--bg); border: 1px solid var(--ink); padding: 12px 16px; font-size: .9375rem; display: grid; gap: 12px; max-width: 520px; }
.consent[hidden] { display: none; }
.consent .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent button { min-height: 44px; padding: 0 16px; cursor: pointer; border: 1px solid var(--ink); background: var(--bg); }
.consent button.accept { background: var(--ink); color: var(--bg); }
@media (min-width: 960px) { .consent { bottom: 16px; left: auto; right: 16px; } }

html.is-locked, html.is-locked body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover, .card:focus-visible { transform: none; }
  .card:hover .card-media img { transform: none; }
}
@media print { .top, .wa-bar, .consent, .window-img { display: none !important; } .window { color: var(--ink); background: none; } body { padding: 0; } }

/* ---------- Text pages: privacy, 404 ---------- */
.legal .wrap > * { max-width: 68ch; }
.legal h2 { margin-top: 40px; font-size: 1.25rem; font-weight: 700; letter-spacing: 0; }
.legal p, .legal ul { margin-top: 12px; color: var(--ink-2); }
.legal ul { padding-left: 20px; list-style: disc; display: grid; gap: 8px; }
.legal a:not(.btn) { text-underline-offset: 3px; }
.legal-date { color: var(--gray); }
.legal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px !important; }
a.hero-caption { display: inline-flex; align-items: center; }
