/* North Line Painting Services — brand: charcoal / silver / slate / white */
:root {
  --ink: #131416;
  --charcoal: #242629;
  --panel: #1b1d20;
  --line: #34373b;
  --slate: #6b6f76;
  --silver: #aeb2b7;
  --silver-hi: #e3e5e8;
  --white: #ffffff;
  --text: #eceef0;
  --muted: #a6aab0;
  --paper: #f3f3f1;
  --paper-text: #24262a;
  --paper-muted: #5b5f66;
  --metal: linear-gradient(180deg, #eef0f2 0%, #c9ccd0 55%, #aeb2b7 100%);
  --radius: 10px;
  --head: "Raleway", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: 6px; font-weight: 600; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--silver-hi); outline-offset: 3px; }

/* Eyebrow with the "north line" rule */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 .78rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase;
  color: var(--silver); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.center .eyebrow::after { content: ""; width: 36px; height: 1px; background: currentColor; }
.lede { color: var(--muted); font-size: 1.12rem; max-width: 62ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 6px;
  font: 600 .98rem/1 var(--body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 1.04rem; }
.btn-block { width: 100%; }
.btn-silver { background: var(--metal); color: #15171a; border-color: #d9dce0; box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 6px 18px rgba(0,0,0,.35); }
.btn-silver:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 10px 24px rgba(0,0,0,.45); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled, .site-header.open { background: rgba(19,20,22,.94); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand img { width: 200px; height: auto; }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.primary-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--text); opacity: .88; }
.primary-nav a:hover { opacity: 1; color: var(--white); }
.nav-phone { font-variant-numeric: tabular-nums; color: var(--silver) !important; }
.nav-toggle { display: none; }

/* Hero */
.hero { position: relative; min-height: max(640px, 92svh); display: flex; flex-direction: column; justify-content: center; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(19,20,22,.5) 0%, rgba(19,20,22,.28) 22%, rgba(19,20,22,.32) 60%, rgba(19,20,22,.62) 100%);
}
.hero-content { text-align: center; padding: calc(var(--header-h) + 40px) 0 40px; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); font-weight: 700; max-width: 16ch; margin-inline: auto; text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #d8dadd; max-width: 46ch; margin: 0 auto 34px; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.trust-bar {
  list-style: none; margin: 0 auto 36px; padding: 18px 8px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.trust-bar li { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: .92rem; font-weight: 500; color: #d3d6d9; }
.trust-bar svg, .contact-list svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--silver); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Sections */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-dark { background: var(--charcoal); }
.section-ink { background: var(--ink); }
.section-light { background: var(--paper); color: var(--paper-text); }
.section-light .eyebrow { color: var(--slate); }
.section-head { margin-bottom: 48px; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 16 / 10; background: var(--panel);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06);
}
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.service-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,20,22,0) 25%, rgba(19,20,22,.55) 55%, rgba(19,20,22,.92) 100%); }
.service-card:hover img { transform: scale(1.04); }
.service-body { position: absolute; inset: auto 0 0; z-index: 1; padding: 30px 32px; }
.service-body h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: .35em; }
.service-body p { margin: 0; color: #d2d5d8; font-size: .98rem; max-width: 52ch; }

/* Before / after */
.ba-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.ba-tabs button {
  font: 600 .92rem/1 var(--body); color: var(--muted); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; cursor: pointer;
}
.ba-tabs button:hover { color: var(--white); border-color: var(--slate); }
.ba-tabs button[aria-selected="true"] { background: var(--metal); color: #15171a; border-color: #d9dce0; }
.ba-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin-bottom: 14px; color: var(--muted); font-size: .92rem; }
.ba-meta strong { color: var(--text); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ba-pair figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--panel); }
.ba-pair img { width: 100%; height: 100%; object-fit: cover; }
.ba-pair figure:last-child { box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  font: 700 .74rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 4px; background: rgba(19,20,22,.85); color: var(--text);
}
.badge-light { background: var(--metal); color: #15171a; }
.js .ba-panel { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* About */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about-copy p { color: var(--muted); }
.about-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0 0; padding-top: 30px; border-top: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column-reverse; text-align: center; }
.stats dd { margin: 0; font: 800 clamp(2rem, 4vw, 2.8rem)/1 var(--head); background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats dt { margin-top: 10px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Process */
.process-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.process-photo { margin: 0; }
.process-photo img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.process-photo figcaption { margin-top: 10px; font-size: .85rem; color: var(--paper-muted); }
.steps { list-style: none; counter-reset: step; margin: 30px 0 0; padding: 0; display: grid; gap: 4px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; padding: 18px 0; border-top: 1px solid #d9dad7; }
.steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font: 700 1.05rem/1.5 var(--head); color: var(--slate); letter-spacing: .06em; }
.steps h3 { font-size: 1.2rem; margin: 0 0 4px; color: var(--paper-text); }
.steps p { margin: 0; color: var(--paper-muted); }

/* Service area — the north line */
.area-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.north-line { position: relative; padding-left: 8px; justify-self: center; }
.compass {
  display: grid; place-items: center; width: 36px; height: 36px; margin: 0 0 10px -9px;
  border: 1px solid var(--slate); border-radius: 50%;
  font: 700 .85rem/1 var(--head); color: var(--silver);
}
.north-line ul { list-style: none; margin: 0; padding: 0; position: relative; }
.north-line ul::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--silver-hi), var(--slate)); }
.north-line li { position: relative; padding: 4px 0 4px 30px; color: var(--muted); font-size: .98rem; line-height: 1.5; }
.north-line li::before { content: ""; position: absolute; left: -3px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--ink); border: 2px solid var(--silver); }
.north-line li.end { color: var(--white); font-weight: 600; font-family: var(--head); font-size: 1.15rem; letter-spacing: .02em; }
.north-line li.end::before { width: 14px; height: 14px; left: -6px; margin-top: -7px; background: var(--silver-hi); border-color: var(--silver-hi); box-shadow: 0 0 0 5px rgba(227,229,232,.12); }

/* CTA band with the van-wrap diagonal stripes */
.cta-band { position: relative; overflow: hidden; background: var(--charcoal); padding: clamp(80px, 10vw, 120px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 120px; transform: skewX(-32deg);
  background: linear-gradient(180deg, rgba(174,178,183,.16), rgba(174,178,183,.04));
}
.cta-band::before { right: 6%; }
.cta-band::after { right: calc(6% + 150px); width: 46px; opacity: .7; }
.cta-inner { position: relative; z-index: 1; text-align: center; }
.cta-inner h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.cta-inner p { color: var(--muted); font-size: 1.15rem; max-width: 44ch; margin: 0 auto 34px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact-list { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list svg { margin-top: 3px; }
.contact-list span { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-list a { font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; }
.quote-form { background: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 4vw, 38px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--body); color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 13px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--silver) 50%), linear-gradient(135deg, var(--silver) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--silver); box-shadow: 0 0 0 3px rgba(174,178,183,.2); }
.field .invalid { border-color: #e0786c; }
.field input::placeholder, .field textarea::placeholder { color: #6f747a; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 14px 0 0; min-height: 1.4em; font-size: .95rem; color: var(--muted); }
.form-status.ok { color: #9fd8a8; }
.form-status.err { color: #f0a097; }

/* Footer */
.site-footer { background: #0f1012; padding: 72px 0 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 220px; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); max-width: 34ch; }
.site-footer h2 { font: 700 .8rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.footer-bottom p { margin: 0; }

.mobile-bar { display: none; }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .service-card img, .btn { transition: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .primary-nav ul { gap: 18px; }
  .nav-phone { display: none; }
}
@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .brand img { width: 170px; }
  .header-cta { display: none; }
  .nav-toggle {
    display: grid; place-items: center; margin-left: auto; width: 46px; height: 46px;
    background: transparent; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; cursor: pointer;
  }
  .bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .2s ease, background-color .2s ease; }
  .bars { position: relative; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -6px; }
  .bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(19,20,22,.98); border-bottom: 1px solid var(--line); padding: 8px 20px 24px;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .primary-nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav ul a { display: block; padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav-phone { display: block; margin-top: 16px; font-size: 1.1rem; }
  .trust-bar { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .trust-bar li { justify-content: flex-start; font-size: .88rem; }
  .about-grid, .process-grid, .area-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-photo { aspect-ratio: 4 / 3; }
  .process-photo { order: 2; }
  .process-photo img { aspect-ratio: 4 / 3; }
  .north-line { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; padding-bottom: 72px; }
  .container { width: calc(100% - 32px); }
  .service-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { aspect-ratio: 4 / 3.4; }
  .service-body { padding: 22px 20px; }
  .ba-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .ba-tabs button { flex: none; }
  .ba-pair { grid-template-columns: 1fr; gap: 12px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .stats dt { font-size: .66rem; letter-spacing: .08em; }
  .cta-band::after { display: none; }
  .cta-band::before { right: -40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr;
    position: fixed; inset: auto 0 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(19,20,22,.96); border-top: 1px solid var(--line); backdrop-filter: blur(8px);
  }
}

/* Service cards open a category popup */
.card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 0;
  background: none; border: 0; cursor: pointer;
  font: 600 .82rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--silver-hi);
}
.service-card:has(.card-link) { cursor: pointer; }
.card-link span { transition: transform .2s ease; }
.service-card:hover .card-link span, .card-link:focus-visible span { transform: translateX(4px); }
.service-card:has(.card-link:focus-visible) { outline: 2px solid var(--silver-hi); outline-offset: 3px; }

.cat-dialog {
  width: min(1100px, 100% - 32px); max-height: calc(100svh - 48px); margin: auto; padding: 0;
  background: var(--charcoal); color: var(--text); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.cat-dialog::backdrop { background: rgba(8,9,10,.78); backdrop-filter: blur(4px); }
.cat-dialog[open] { animation: pop .3s cubic-bezier(.2,.7,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.cat-inner { position: relative; padding: clamp(24px, 4vw, 48px); }
.cat-inner h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); padding-right: 48px; }
.cat-close {
  position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--panel); color: var(--white); border: 1px solid var(--line); border-radius: 50%;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.cat-close:hover { border-color: var(--silver); }
.cat-pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 22px; margin-top: 28px; }
.cat-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; margin-top: 22px; }
.cat-photos:empty { display: none; }
.cat-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.cat-note { grid-column: 1 / -1; margin: 0; padding: 16px 18px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: .95rem; }
.cat-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.cat-cta p { margin: 0; font: 700 1.2rem/1.2 var(--head); }
body.dialog-open { overflow: hidden; }

/* Before / after reveal slider: after on top, a sliver of before showing */
@property --reveal { syntax: "<percentage>"; inherits: true; initial-value: 14%; }
.ba-card { margin: 0; }
.ba-slider {
  --reveal: 14%;
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius);
  background: var(--panel); cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  transition: --reveal .7s cubic-bezier(.65,0,.35,1);
}
.ba-slider.dragging { transition: none; cursor: ew-resize; }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ba-slider .ba-after { clip-path: inset(0 0 0 var(--reveal)); }
.ba-slider .ba-before { filter: saturate(.9); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: clamp(1px, var(--reveal), calc(100% - 1px)); width: 2px; margin-left: -1px;
  background: var(--silver-hi); box-shadow: 0 0 12px rgba(0,0,0,.5); pointer-events: none;
}
.ba-knob {
  position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  display: grid; place-items: center; border-radius: 50%; background: var(--metal); color: #15171a;
  box-shadow: 0 4px 16px rgba(0,0,0,.45); font: 700 1rem/1 var(--body);
}
.ba-slider .badge { pointer-events: none; transition: opacity .3s ease; }
.ba-slider .ba-tag-after { left: auto; right: 14px; }
.ba-hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 1; white-space: nowrap; pointer-events: none;
  padding: 9px 14px; border-radius: 999px; background: rgba(19,20,22,.82); color: var(--white);
  font: 600 .82rem/1 var(--body); letter-spacing: .04em; backdrop-filter: blur(6px);
}
.ba-slider:focus-visible { outline: 2px solid var(--silver-hi); outline-offset: 3px; }
.ba-card figcaption { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-top: 12px; color: var(--muted); font-size: .92rem; }
.ba-card figcaption strong { color: var(--text); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { .ba-slider { transition: none; } .cat-dialog[open] { animation: none; } }
@media (max-width: 720px) {
  .cat-dialog { width: 100%; max-width: 100%; max-height: 100svh; height: 100svh; border-radius: 0; border: 0; }
  .cat-inner { padding: 22px 16px 40px; }
  .cat-close { top: 12px; right: 12px; }
}
