/* Apex Servicios Financieros — hoja de estilos
   Paleta corporativa: carbón #1E1E1E, rojo #D83641 y neutros.
   Sin recursos externos: tipografías del sistema, rápido y sin transferir datos a terceros. */
:root {
  --ink: #1e1e1e;
  --red: #d83641;
  --red-deep: #b92b36;
  --white: #ffffff;
  --paper: #f1f1ef;
  --stone: #e3e2de;
  --tint: #f8e1e3;
  --muted: #5f5d58;
  --muted-on-ink: #c6c4be;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Source Serif Pro", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --m: clamp(20px, 4vw, 56px);
  --max: 1280px;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem);
  --fs-h3: clamp(1.3125rem, 1.15rem + 0.6vw, 1.625rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.6vw, 3.5rem);
  --fs-d2: clamp(2rem, 1.2rem + 3.2vw, 4.5rem);
  --fs-d1: clamp(2.125rem, 0.5rem + 6vw, 6.25rem);
  --fs-small: 0.9375rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.tone-ink :focus-visible, .site-footer :focus-visible { outline-color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; }
.skip:focus { top: 10px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--m)); margin-inline: auto; padding-inline: var(--m); }
.section { padding-block: clamp(80px, 10vw, 150px); }
.section-tight { padding-block: clamp(48px, 6vw, 88px); }

/* Titulares */
.display, .display-2, .h2, .h3, .brand, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em; }
.display { font-size: var(--fs-d1); line-height: 1; letter-spacing: -0.03em; }
.display-2 { font-size: var(--fs-d2); line-height: 1.04; max-width: 20ch; }
.h2 { font-size: var(--fs-h2); line-height: 1.08; }
.h2::before { content: ""; display: block; width: 56px; height: 12px; background: var(--red); margin-bottom: 22px; }
.h3, h3 { font-size: var(--fs-h3); line-height: 1.2; }
.lead { font-size: var(--fs-lead); line-height: 1.5; max-width: 46ch; margin-top: 20px; }
.prose p { max-width: 62ch; }
.prose p + p, .prose ul, .prose h2, .prose h3 { margin-top: 1.1em; }
.prose h2 { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.2; margin-top: 2em; }
.prose h3 { font-family: var(--serif); font-size: var(--fs-lead); }
.prose ul { list-style: disc; padding-left: 1.3em; }
.textlink { color: var(--red-deep); font-weight: 600; text-underline-offset: 4px; }
.tone-ink .textlink { color: #fff; }

/* Botones: un único estilo, esquinas casi rectas como el logotipo */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 2px; cursor: pointer;
  font-weight: 600; font-size: var(--fs-body); line-height: 1.2; text-decoration: none; text-align: center;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-red { background: var(--red); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-stone { background: var(--stone); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn-red:hover { background: var(--red-deep); }
  .btn-ink:hover { background: #3a3a3a; }
  .btn-stone:hover { background: #d9d5cd; }
  .btn-light:hover { background: var(--stone); }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.arrow { transition: transform 200ms var(--ease); }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); }
.bar { display: flex; align-items: center; gap: 28px; min-height: 78px; }
.brand { display: block; flex: none; }
.brand img { height: 46px; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; background: none; border: 0;
  font-weight: 600; font-size: var(--fs-body); text-decoration: none; cursor: pointer; border-radius: 2px;
}
.nav-link[aria-current="page"] { color: var(--red-deep); }
.has-sub { position: relative; }
.has-sub > .nav-link::after {
  content: ""; width: 7px; height: 7px; margin: -3px 0 0 9px; border: solid currentColor; border-width: 0 2px 2px 0;
  transform: rotate(45deg); transition: transform 160ms var(--ease);
}
.has-sub.open > .nav-link::after { transform: rotate(225deg); margin-top: 3px; }
.sub { display: none; position: absolute; left: 0; top: 100%; min-width: 320px; padding: 10px; background: var(--paper); }
.has-sub.open .sub { display: grid; }
.sub a { display: block; padding: 12px 14px; text-decoration: none; font-weight: 600; }
.sub a[aria-current="page"] { color: var(--red-deep); }
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover { background: var(--paper); }
  .sub a:hover { background: var(--stone); }
}
.bar-cta { min-height: 46px; padding: 0 22px; }
.menu-btn { display: none; position: relative; width: 48px; height: 48px; margin-left: auto; background: none; border: 0; cursor: pointer; }
.menu-btn i { position: absolute; left: 11px; right: 11px; height: 3px; background: var(--ink); transition: transform 200ms var(--ease); }
.menu-btn i:nth-child(2) { top: 19px; }
.menu-btn i:nth-child(3) { top: 28px; }
.menu-btn[aria-expanded="true"] i:nth-child(2) { transform: translateY(4.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }
@media (max-width: 959px) {
  .menu-btn { display: block; }
  .bar-cta { display: none; }
  .nav { display: none; position: fixed; inset: 78px 0 0 0; margin: 0; padding: 12px var(--m) 100px; background: var(--white); overflow-y: auto; }
  .nav-open .nav { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { width: 100%; min-height: 56px; padding: 0; font-family: var(--serif); font-size: 1.5rem; }
  .has-sub > .nav-link::after { display: none; }
  .sub { display: grid; position: static; min-width: 0; padding: 0 0 12px 12px; background: none; }
  .sub a { padding: 10px 0; font-weight: 400; }
}

/* Barra de llamada en móvil */
.call-bar { display: none; }
@media (max-width: 959px) {
  .call-bar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px var(--m) calc(10px + env(safe-area-inset-bottom)); background: var(--white); }
  .call-bar .btn { min-height: 50px; padding: 0 12px; }
  body { padding-bottom: 72px; }
  .nav-open .call-bar { display: none; }
}

/* Reveal y movimiento (solo con JS; sin JS todo se ve) */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.mask { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.mask > span { display: block; }
.js .mask > span { transform: translateY(108%); }
.js.ready .mask > span { transform: none; transition: transform 700ms var(--ease); }
.js.ready .mask:nth-of-type(2) > span { transition-delay: 90ms; }

/* Tonos de sección y pictogramas */
.tone-ink { background: var(--ink); color: #fff; --pg-a: #fff; --pg-b: #8d8b86; --pg-bg: var(--ink); }
.tone-ink .lead, .tone-ink p { color: var(--muted-on-ink); }
.tone-ink h1, .tone-ink h2, .tone-ink h3 { color: #fff; }
.tone-red { background: var(--tint); --pg-a: var(--ink); --pg-b: #a8999b; --pg-bg: var(--tint); }
.tone-stone { background: var(--stone); --pg-a: var(--ink); --pg-b: #a7a39a; --pg-bg: var(--stone); }
.tone-white { background: #fff; --pg-a: var(--ink); --pg-b: #b4b1aa; --pg-bg: #fff; }
.tone-paper { background: var(--paper); --pg-a: var(--ink); --pg-b: #b1ada5; --pg-bg: var(--paper); }
.pg-a { fill: var(--pg-a); } .pg-b { fill: var(--pg-b); } .pg-bg { fill: var(--pg-bg); } .pg-red { fill: var(--red); }
.pictogram { width: 100%; height: auto; }

/* Inicio: hero */
.hero { padding-block: clamp(32px, 5vw, 72px) clamp(64px, 8vw, 112px); display: grid; gap: clamp(28px, 4vw, 56px); }
.hero-copy { display: contents; }
.hero .display { grid-column: 1 / -1; }
.hero-lead { margin-top: 0; }
.hero-body { display: grid; gap: 28px; align-content: start; }
.hero-points { display: grid; gap: 10px; margin-top: 8px; }
.hero-points li { position: relative; padding-left: 28px; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 14px; height: 5px; background: var(--red); }
.hero-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 960px) {
  .hero { grid-template-columns: 5fr 7fr; align-items: start; }
  .hero .display { grid-column: 1 / -1; }
}

/* Inicio: áreas */
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }
.svc-grid { display: grid; gap: 16px; grid-template-columns: repeat(6, 1fr); }
.card {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 24px; padding: clamp(24px, 3vw, 40px);
  text-decoration: none; grid-column: span 6; min-height: 340px;
  transition: transform 220ms var(--ease);
}
.card .pictogram { width: 92px; }
.card h3 { font-size: var(--fs-h3); }
.card p { margin-top: 10px; max-width: 34ch; }
.card .more { color: inherit; }
@media (hover: hover) and (pointer: fine) { .card:hover .arrow, .row:hover .arrow, .post-card:hover .arrow { transform: translateX(6px); } .card:hover { transform: translateY(-4px); } }
@media (min-width: 720px) { .card { grid-column: span 3; } .card:nth-child(n + 3) { grid-column: span 2; } }
@media (min-width: 720px) and (max-width: 1099px) { .card:nth-child(n + 3) { grid-column: span 3; } .card:nth-child(5) { grid-column: span 6; } }
@media (min-width: 1100px) { .card .pictogram { width: 110px; } }

/* Herramienta: ¿Qué necesitas hoy? */
.tool-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .tool-grid { grid-template-columns: 4fr 8fr; gap: 64px; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 48px; padding: 10px 18px; border: 0; border-radius: 2px; background: #333; color: #fff; cursor: pointer; text-align: left;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--red); }
@media (hover: hover) and (pointer: fine) { .chip:hover { background: #4a4a4a; } .chip[aria-pressed="true"]:hover { background: var(--red-deep); } }
.tool-out { margin-top: 28px; background: #2a2a2a; padding: clamp(24px, 3vw, 40px); min-height: 280px; }
.tool-res h3 { font-size: var(--fs-h3); }
.tool-res > p { margin-top: 8px; max-width: 48ch; }
.js .tool-res { display: none; }
.js .tool-res.on { display: block; animation: fade 260ms var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tool-res + .tool-res { margin-top: 24px; }
.js .tool-res + .tool-res { margin-top: 0; }
.ticks { display: grid; gap: 10px; margin-top: 20px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 14px; height: 5px; background: var(--red); }
.ticks-lg { gap: 16px; font-size: var(--fs-lead); line-height: 1.4; }
.ticks-lg li::before { top: 0.6em; }

/* Por qué Apex */
.why-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .why-grid { grid-template-columns: 5fr 7fr; gap: 80px; } .why-side { position: sticky; top: 110px; align-self: start; } }
.why-img { width: 100%; max-width: 440px; margin-top: 36px; aspect-ratio: 3 / 4; object-fit: cover; }
.why-list { display: grid; gap: clamp(28px, 3vw, 40px); }
.why-list li { padding: clamp(24px, 3vw, 36px); background: var(--paper); }
.why-list p { margin-top: 10px; max-width: 52ch; }
.section-tight .why-list li, .why .why-list li { background: var(--paper); }

/* Proceso: barras que ascienden, como la barra del logotipo */
.proc-head { margin-bottom: clamp(36px, 5vw, 64px); }
.steps { display: grid; gap: 16px; align-items: end; }
.step { padding: 28px; background: var(--paper); }
.step h3 { margin-bottom: 10px; }
.step-4 { background: var(--ink); color: #fff; }
.step-4 p { color: var(--muted-on-ink); }
.step-3 { background: var(--stone); }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step-1 { min-height: 220px; } .step-2 { min-height: 270px; } .step-3 { min-height: 320px; } .step-4 { min-height: 370px; }
  .step-4::before { content: ""; display: block; width: 44px; height: 10px; background: var(--red); margin-bottom: 24px; }
}

/* Equipo */
.team-head { max-width: 820px; margin-bottom: clamp(36px, 5vw, 64px); }
.people { display: grid; gap: 16px; }
@media (min-width: 840px) { .people { grid-template-columns: 1fr 1fr; } }
.person { display: grid; grid-template-columns: auto 1fr; gap: 28px; padding: clamp(24px, 3vw, 40px); background: var(--paper); align-items: start; }
.monogram { display: grid; place-items: center; width: 96px; height: 120px; background: var(--ink); color: #fff; font: 700 var(--fs-h2)/1 var(--serif); position: relative; }
.monogram::before { content: ""; position: absolute; left: 14px; top: -10px; width: 44px; height: 10px; background: var(--red); }
.person .role { color: var(--muted); margin: 4px 0 14px; }
.person p + p { margin-top: 12px; }
@media (max-width: 520px) { .person { grid-template-columns: 1fr; } }

/* Confianza */
.trust-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .trust-grid { grid-template-columns: 5fr 7fr; gap: 80px; } }
.trust-img { width: 100%; max-width: 520px; aspect-ratio: 3 / 4; object-fit: cover; }
.trust-text .h2 { margin-bottom: 28px; max-width: 18ch; }

/* Banda final */
.cta-band { padding-block: clamp(80px, 10vw, 140px); }
.cta-inner { display: grid; gap: 48px; align-items: end; }
@media (min-width: 960px) { .cta-inner { grid-template-columns: 7fr 5fr; gap: 80px; } }
.display-2 { max-width: 18ch; }
.cta-phones p { margin-bottom: 8px; }
.phones { display: grid; gap: 4px; }
.phones a { text-decoration: none; }
.phones span { font-weight: 600; margin-right: 6px; }
.phones-big a { font-family: var(--serif); font-weight: 700; font-size: var(--fs-h3); color: #fff; }
.hours { display: grid; gap: 4px; margin-top: 20px; }
.hours span { font-weight: 600; margin-right: 6px; }

/* Páginas interiores */
.page-hero { padding-block: clamp(36px, 5vw, 72px) clamp(40px, 5vw, 72px); }
.page-hero .display-2 { margin-top: 24px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: var(--fs-small); }
.crumbs li + li::before { content: "/"; margin-right: 6px; }
.crumbs a { text-underline-offset: 3px; }
.tone-ink .crumbs ol, .tone-ink .crumbs { color: var(--muted-on-ink); }

.rows { display: grid; gap: 0; }
.row { display: block; padding-block: clamp(32px, 4vw, 56px); text-decoration: none; }
.row-in { display: grid; gap: 24px; align-items: center; }
.row .pictogram { width: 110px; }
.row-text p { margin-top: 10px; max-width: 54ch; }
.mini { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mini li { padding: 6px 12px; background: rgba(255, 255, 255, 0.55); font-size: var(--fs-small); }
.tone-ink .mini li { background: #333; color: #fff; }
@media (min-width: 960px) { .row-in { grid-template-columns: 140px 1fr auto; gap: 56px; } .row .pictogram { width: 120px; } }

.client-list, .grid4, .grid3 { display: grid; gap: 16px; margin-top: clamp(28px, 4vw, 48px); }
.client-list li, .grid4 li, .grid3 li { padding: clamp(22px, 3vw, 32px); background: var(--paper); }
.client-list p, .grid4 p, .grid3 p { margin-top: 8px; }

@media (min-width: 720px) { .client-list, .grid4 { grid-template-columns: repeat(2, 1fr); } .grid3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .client-list, .grid4 { grid-template-columns: repeat(4, 1fr); } .grid3 { grid-template-columns: repeat(3, 1fr); } }
.tone-ink .grid4 li { background: #2a2a2a; }
.tone-stone .grid4 li { background: #f0eee9; }

/* Área */
.area-hero { padding-block: clamp(36px, 5vw, 72px) clamp(56px, 7vw, 104px); }
.area-hero-grid { display: grid; gap: 40px; align-items: center; }
.area-hero .display-2 { margin-top: 24px; }
.area-art { max-width: 300px; }
@media (min-width: 960px) { .area-hero-grid { grid-template-columns: 8fr 4fr; } .area-art { justify-self: end; width: 100%; max-width: 340px; } }
.area-intro { display: grid; gap: 28px; }
@media (min-width: 960px) { .area-intro { grid-template-columns: 5fr 7fr; gap: 80px; } }
.svc-tiles { display: grid; gap: 12px; margin-top: 36px; }
.svc-tiles li { padding: 22px 24px; background: #fff; font-weight: 600; line-height: 1.35; }
@media (min-width: 720px) { .svc-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .svc-tiles { grid-template-columns: repeat(3, 1fr); } }
.note { margin-top: 28px; padding: 24px 28px; background: var(--tint); max-width: 820px; }
.benefit-list { display: grid; gap: 16px; margin-top: 36px; }
.benefit-list li { padding: 28px; background: var(--paper); }
.benefit-list p { margin-top: 8px; }
@media (min-width: 720px) { .benefit-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .benefit-list { grid-template-columns: repeat(4, 1fr); } }
.inline-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.inline-links a { display: inline-block; padding: 12px 18px; background: var(--paper); font-weight: 600; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .inline-links a:hover { background: var(--stone); } }

/* Nosotros */
.story-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .story-grid { grid-template-columns: 6fr 6fr; gap: 80px; } }
.wide-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.who-grid, .promise-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .who-grid, .promise-grid { grid-template-columns: 4fr 8fr; gap: 80px; } }
.philo .lead { max-width: 60ch; }

/* FAQ */
.faq { display: grid; gap: 32px; }
@media (min-width: 960px) { .faq { grid-template-columns: 4fr 8fr; gap: 48px; } .sticky { position: sticky; top: 110px; align-self: start; } }
.tiles { display: grid; gap: 8px; }
details { background: var(--paper); transition: background-color 200ms var(--ease), color 200ms var(--ease); }
details[open] { background: var(--ink); color: #fff; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 16px 24px; list-style: none; cursor: pointer; font-weight: 600; font-size: var(--fs-body); line-height: 1.35; }
summary::-webkit-details-marker { display: none; }
details > p { padding: 0 24px 24px; max-width: 60ch; }
details[open] > p { color: var(--muted-on-ink); }
.pm { position: relative; flex: none; width: 16px; height: 16px; }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; background: currentColor; transition: transform 160ms var(--ease); }
.pm::after { transform: rotate(90deg); }
details[open] .pm::after { transform: rotate(0); }
@supports (interpolate-size: allow-keywords) {
  details { interpolate-size: allow-keywords; }
  details::details-content { height: 0; opacity: 0; overflow: clip; transition: height 220ms var(--ease), opacity 220ms var(--ease), content-visibility 220ms allow-discrete; }
  details[open]::details-content { height: auto; opacity: 1; }
}

/* Contacto */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 7fr 5fr; gap: 80px; align-items: start; } }
.form-wrap { padding: clamp(24px, 4vw, 48px); background: var(--paper); }
.form-wrap h2 { margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #8f8c84; border-radius: 2px; background: #fff;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 0; border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 24px; }
.check input { flex: none; width: 22px; height: 22px; margin-top: 3px; accent-color: var(--red); }
.form-msg { margin-top: 16px; font-weight: 600; }
.form-msg.ok { color: #1f6b3a; }
.form-msg.err { color: var(--red-deep); }
.info-list { display: grid; gap: 22px; margin: 24px 0 8px; }
.info-list dt { font-weight: 600; margin-bottom: 4px; }
.info a { text-underline-offset: 4px; }
.map { position: relative; margin-top: 20px; min-height: 380px; background: var(--paper); }
.map iframe { display: block; width: 100%; height: 440px; border: 0; }
.map-gate { display: grid; align-content: center; justify-items: start; min-height: 380px; padding: clamp(24px, 4vw, 56px); }
.map-gate p { max-width: 56ch; }
.addr { margin-top: 14px; color: var(--muted); }

/* Blog */
.post-list { display: grid; gap: 16px; }
.post-card { display: grid; gap: 10px; padding: clamp(24px, 3vw, 36px); background: var(--paper); text-decoration: none; }
.post-card time, .post-meta { color: var(--muted); font-size: var(--fs-small); }
.post { padding-block: clamp(36px, 5vw, 72px); }
.post .display-2 { margin-top: 24px; max-width: 22ch; }
.post-meta { margin: 20px 0 36px; }
.post-body { max-width: 68ch; }
.empty { padding: clamp(28px, 4vw, 56px); background: var(--paper); max-width: 760px; }
.empty p { margin-top: 10px; }

/* Legal */
.draft { margin-bottom: 28px; padding: 20px 24px; background: var(--tint); }
.legal-h1 { max-width: none; }
.legal .prose { max-width: 72ch; }

/* Pie */
.site-footer { background: var(--ink); color: var(--muted-on-ink); padding-top: clamp(64px, 8vw, 112px); overflow: hidden; }
.foot-grid { display: grid; gap: 40px; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; } }
.foot-brand img { width: 150px; }
.foot-slogan { margin-top: 20px; font-family: var(--serif); font-size: var(--fs-lead); color: #fff; max-width: 18ch; }
.foot-h { font: 600 var(--fs-body)/1.3 var(--sans); color: #fff; margin-bottom: 14px; }
.foot-list { display: grid; gap: 8px; }
.site-footer a { text-underline-offset: 4px; }
.foot-legal { display: grid; gap: 12px; margin-top: 56px; padding-block: 24px; font-size: var(--fs-small); }
.foot-legal ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-word { margin: 0; padding-inline: var(--m); font: 700 clamp(7rem, 30vw, 26rem)/0.8 var(--serif); letter-spacing: -0.04em; color: #2b2b2b; user-select: none; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { transform: none; transition: opacity 150ms linear; }
  .js .mask > span { transform: none; opacity: 0; }
  .js.ready .mask > span { opacity: 1; transition: opacity 150ms linear; }
  .btn:active, .chip:active { transform: none; }
  .card:hover { transform: none; }
  .js .tool-res.on { animation: none; }
  details::details-content { transition: opacity 120ms linear; height: auto; }
}

.band { margin: 0; }
.band img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 719px) {
  .band img { aspect-ratio: 4 / 3; }
  .mask { display: inline; overflow: visible; padding: 0; margin: 0; }
  .mask > span { display: inline; }
  .js .mask > span { transform: none; opacity: 0; }
  .js.ready .mask > span { opacity: 1; transition: opacity 500ms var(--ease); }
}
