/* ============================================================
   Painting & Drywall Experts — design system
   Palette: charcoal ink, white, brand blue (from the original
   site); premium feel comes from type scale, spacing and depth.
   ============================================================ */
:root {
  --ink: #1d1e20;
  --ink-deep: #161719;
  --paper: #ffffff;
  --blue: #285eb0;
  --blue-deep: #1e458c;
  --blue-tint: #eaf1fa;
  --mist: #f4f6f9;
  --line: #e3e8ef;
  --muted: #5b6472;
  --font-head: "Outfit", "DM Sans", sans-serif;
  --font-body: "Inter", "DM Sans", sans-serif;
  --wrap: 1180px;
  --radius: 14px;
  --shadow-1: 0 1px 2px rgba(22, 23, 25, .06), 0 8px 24px rgba(22, 23, 25, .07);
  --shadow-2: 0 2px 4px rgba(22, 23, 25, .08), 0 18px 44px rgba(22, 23, 25, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Stop Android Chrome's automatic "font boosting", which enlarges hero text
     on some phones (Samsung, Oppo) and breaks it into many short lines. */
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
body {
  margin: 0;
  font: 400 1rem/1.65 var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: 1.22rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 4vw, 2rem); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--blue); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 1rem/1 var(--font-head);
  padding: .95rem 1.7rem; border-radius: 10px;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn-solid { background: var(--blue); color: #fff; }
.btn-solid:hover { background: var(--blue-deep); transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn-line { border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--blue); color: var(--blue); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- topbar ---------- */
.topbar { background: var(--ink-deep); color: #cfd4dc; font-size: .84rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .45rem; }
.topbar a { color: #fff; text-decoration: none; margin-left: 1.2rem; }
.topbar a:hover { text-decoration: underline; }
@media (max-width: 640px) { .topbar-note { display: none; } .topbar-in { justify-content: center; } .topbar a { margin: 0 .6rem; } }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.06rem; line-height: 1.1; letter-spacing: -.01em; }
.brand-name em { font-style: normal; color: var(--blue); }
.brand-name span { display: block; font-size: .6rem; font-weight: 600; letter-spacing: .22em; color: var(--muted); margin-top: .18rem; }
.menu { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu a { display: block; padding: .55rem .8rem; text-decoration: none; color: var(--ink); font: 500 .95rem/1 var(--font-body); border-radius: 8px; transition: color .15s, background-color .15s; }
.menu > li > a:hover, .menu > li > a[aria-current="page"] { color: var(--blue); background: var(--blue-tint); }
.menu-lang a { color: var(--muted); font-weight: 600; border: 1px solid var(--line); border-radius: 8px; padding: .45rem .7rem; }
.sub-toggle { display: none; }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-2); padding: .45rem; margin: .35rem 0 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { padding: .6rem .8rem; }
.sub a:hover { background: var(--mist); color: var(--blue); }
.head-cta { padding: .8rem 1.4rem; }
.nav-toggle { display: none; }

@media (max-width: 980px) {
  .head-cta { display: none; }
  .nav-toggle {
    display: grid; place-items: center; width: 46px; height: 46px;
    background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    content: ""; display: block; width: 20px; height: 2px; background: var(--ink);
    position: relative; transition: transform .2s, opacity .2s;
  }
  .nav-toggle-bar::before { position: absolute; top: -6px; }
  .nav-toggle-bar::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: rotate(-90deg) translateX(-6px); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { opacity: 0; }
  .menu {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2);
    padding: .8rem clamp(1rem, 4vw, 2rem) 1.2rem; gap: .1rem; display: none;
  }
  .menu.open { display: flex; }
  .menu a { padding: .85rem .6rem; font-size: 1.05rem; }
  .has-sub { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .sub-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  }
  .sub-toggle::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
  .sub-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); }
  .sub { position: static; grid-column: 1 / -1; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 .4rem .8rem; padding: 0; display: none; }
  .sub-toggle[aria-expanded="true"] ~ .sub { display: block; }
}

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20, 22, 26, .88) 15%, rgba(20, 22, 26, .55) 55%, rgba(20, 22, 26, .25)); }
.hero-in { padding-block: clamp(5rem, 12vw, 9.5rem); max-width: 700px; }
.eyebrow {
  display: inline-block; font: 600 .8rem/1 var(--font-head); letter-spacing: .18em; text-transform: uppercase;
  color: #fff; background: rgba(40, 94, 176, .55); border: 1px solid rgba(255, 255, 255, .25);
  padding: .5rem .9rem; border-radius: 99px; margin-bottom: 1.3rem;
}
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #e8ebf0; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .22); }
.proof b { display: block; font: 700 1.7rem/1 var(--font-head); }
.proof span { font-size: .85rem; color: #c9cfd8; }

/* ---------- sections ---------- */
.sec { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.sec-mist { background: var(--mist); }
.sec-ink { background: var(--ink); color: #fff; }
.sec-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.sec-head .kicker { font: 600 .8rem/1 var(--font-head); letter-spacing: .18em; text-transform: uppercase; color: var(--blue); display: block; margin-bottom: .8rem; }
.sec-ink .kicker { color: #8fb4e8; }
.sec-head p { color: var(--muted); font-size: 1.06rem; }
.sec-ink .sec-head p { color: #b9c0cb; }

/* ---------- service cards ---------- */
.cards { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: transparent; }
.card-img { aspect-ratio: 3 / 2; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.045); }
.card-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.card-more { font: 600 .92rem/1 var(--font-head); color: var(--blue); display: inline-flex; align-items: center; gap: .4rem; }
.card:hover .card-more { text-decoration: underline; }

/* ---------- about ---------- */
.about-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr 1fr; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-2); }
.about-media::before { content: ""; position: absolute; inset: 1.4rem -1.4rem -1.4rem 1.4rem; border: 2px solid var(--blue); border-radius: var(--radius); z-index: -1; }
.about-points { list-style: none; margin: 1.4rem 0 2rem; padding: 0; display: grid; gap: .85rem; }
.about-points li { display: flex; gap: .7rem; align-items: baseline; }
.about-points li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); transform: translateY(-1px); }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } .about-media { margin-inline: 1.4rem 1.4rem; } }

/* ---------- stats band ---------- */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); text-align: center; }
.stat { padding: 1.6rem 1rem; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.stat b { display: block; font: 700 clamp(2.2rem, 4vw, 3rem)/1 var(--font-head); color: #fff; }
.stat span { color: #aeb6c2; font-size: .92rem; }

/* ---------- areas ---------- */
.areas-grid { display: grid; gap: 2.4rem; grid-template-columns: 1fr 1fr; }
.area-block h3 { display: flex; align-items: center; gap: .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.chip {
  font: 500 .88rem/1 var(--font-body); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: .5rem .95rem;
}
@media (max-width: 720px) { .areas-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 0; grid-template-columns: 5fr 7fr; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-2); }
.contact-info { background: var(--ink); color: #fff; padding: clamp(1.8rem, 4vw, 3rem); }
.contact-info h2 { color: #fff; }
.contact-info p { color: #b9c0cb; }
.contact-lines { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1rem; }
.contact-lines a { color: #fff; text-decoration: none; font-weight: 600; }
.contact-lines a:hover { text-decoration: underline; }
.contact-lines span { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #8b93a1; margin-bottom: .15rem; }
.contact-form { background: #fff; padding: clamp(1.8rem, 4vw, 3rem); }
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font: 600 .88rem/1.2 var(--font-head); margin-bottom: .4rem; }
input, textarea {
  width: 100%; font: 400 1rem/1.4 var(--font-body); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: .8rem .95rem; background: var(--mist);
  transition: border-color .15s, background-color .15s;
}
input:focus, textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(40, 94, 176, .15); }
textarea { min-height: 130px; resize: vertical; }
.req { color: var(--blue); }
.hp { position: absolute; left: -5000px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(115deg, var(--blue-deep), var(--blue)); color: #fff; }
.cta-band-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: clamp(2.4rem, 5vw, 3.4rem); }
.cta-band h2 { margin: 0; color: #fff; }
.cta-band p { margin: .4rem 0 0; color: #dbe6f5; }
.cta-band .btn-solid { background: #fff; color: var(--blue-deep); }
.cta-band .btn-solid:hover { background: var(--mist); }

/* ---------- footer ---------- */
.site-foot { background: var(--ink-deep); color: #b9c0cb; font-size: .95rem; }
.foot-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; padding-block: clamp(3rem, 6vw, 4.5rem); }
.brand-foot { color: #fff; }
.brand-foot .brand-name span { color: #8b93a1; }
.foot-brand p { margin-top: 1rem; max-width: 30em; }
.foot-social { display: flex; gap: .8rem; margin-top: 1.2rem; }
.foot-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .07); transition: background-color .2s, transform .2s; }
.foot-social a:hover { background: rgba(255, 255, 255, .15); transform: translateY(-2px); }
.foot-col h2 { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.foot-col a { color: #b9c0cb; text-decoration: none; }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-base { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 1.2rem; font-size: .85rem; color: #8b93a1; }
@media (max-width: 980px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- subpage hero (compact) ---------- */
.hero-sub .hero-in { padding-block: clamp(3.5rem, 8vw, 6rem); max-width: 760px; }
.hero-sub .hero-bg::after { background: linear-gradient(100deg, rgba(20, 22, 26, .9) 20%, rgba(20, 22, 26, .6) 60%, rgba(20, 22, 26, .35)); }
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; list-style: none; margin: 0 0 1.2rem; padding: 0; font: 500 .85rem/1 var(--font-body); }
.crumbs a { color: #cdd6e2; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs li + li::before { content: "/"; color: #7d8592; margin-right: .45rem; }
.crumbs [aria-current] { color: #fff; }

/* ---------- split rows (image + text, alternating) ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr 1fr; align-items: center; }
.split + .split { margin-top: clamp(3rem, 7vw, 5rem); }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-2); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split h2, .split h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.split p { color: var(--muted); }
.split p:last-child { margin-bottom: 0; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
}
@media (min-width: 881px) { .split-rev .split-media { order: 2; } }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: .8rem; overflow: hidden; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  cursor: pointer; list-style: none; padding: 1.05rem 1.3rem;
  font: 600 1.02rem/1.35 var(--font-head); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(45deg); transition: transform .2s; margin-top: -4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details[open] summary { color: var(--blue); }
.faq details p { padding: 0 1.3rem 1.15rem; margin: 0; color: var(--muted); }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery-grid button {
  display: block; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden;
  cursor: zoom-in; background: var(--mist); box-shadow: var(--shadow-1);
  transition: transform .25s, box-shadow .25s;
}
.gallery-grid button:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.gallery-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .5s; }
.gallery-grid button:hover img { transform: scale(1.04); }
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none; place-items: center;
  background: rgba(15, 16, 18, .92); padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 86vh; width: auto; height: auto; border-radius: 10px; box-shadow: var(--shadow-2); }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem; width: 46px; height: 46px;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: rgba(255, 255, 255, .08);
  color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .2); }

/* ---------- long-form prose (privacy policy) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2rem; display: grid; gap: .45rem; margin: 0 0 1em; }

/* ---------- contact info tiles ---------- */
.info-tiles { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 2rem; }
.info-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.info-tile h3 { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.info-tile a { font: 600 1.05rem/1.4 var(--font-head); color: var(--ink); text-decoration: none; }
.info-tile a:hover { color: var(--blue); }
.info-tile p { margin: 0; font: 600 1.05rem/1.4 var(--font-head); color: var(--ink); }

/* ---------- newsletter strip ---------- */
.newsletter { background: var(--blue-tint); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 2.6rem); display: grid; gap: 1.4rem; grid-template-columns: 1.2fr 1fr; align-items: center; }
.newsletter h2 { margin: 0 0 .3rem; font-size: 1.35rem; }
.newsletter p { margin: 0; color: var(--muted); }
.newsletter form { display: flex; flex-wrap: wrap; gap: .7rem; }
.newsletter input { flex: 1 1 180px; background: #fff; }
@media (max-width: 780px) { .newsletter { grid-template-columns: 1fr; } }

/* ---------- small phones ---------- */
/* Grid items default to min-width:auto, so one wide child can push a column
   past the screen edge on small phones. Let every grid column shrink. */
.cards > *, .about-grid > *, .about-points > *, .stats > *, .areas-grid > *,
.contact-grid > *, .contact-lines > *, .form-grid > *, .foot-grid > *, .foot-col ul > *,
.split > *, .gallery-grid > *, .info-tiles > *, .newsletter > *, .prose ul > * { min-width: 0; }

/* Small phones (~360px), often with the phone's text size turned up:
   keep hero headings, labels and buttons from wrapping awkwardly. */
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(1.5rem, 8vw, 2rem); }
  /* Sized to the screen, not the text setting, so the label stays on one line */
  .eyebrow, .sec-head .kicker, .contact-lines span { font-size: min(.72rem, 3.3vw); letter-spacing: 1px; }
  /* same pill, but its height comes from line-height instead of vertical
     padding, so a one-line label measures (and reads) as one line */
  .eyebrow { padding: 0 .7rem; line-height: calc(1em + 1rem); }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; padding-left: 18px; padding-right: 18px; }
  /* email and phone in the top bar: never split a phone number across lines */
  .topbar-links { display: flex; flex-wrap: wrap; justify-content: center; row-gap: .15rem; }
  .topbar a { white-space: nowrap; }
}

/* ---------- reveal on scroll (subtle, reduced-motion safe) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
  .rv.in { opacity: 1; transform: none; }
}
