/* ==========================================================
   Rhino Epoxy Flooring: Template 1, "Clear Coat"
   Light, centered, frosted glass over a flake-floor backdrop.
   Brand colors are set once here.
   ========================================================== */
:root {
  --grey: #D9D9D9;      /* brand grey, page background */
  --white: #ffffff;
  --black: #000000;
  --red: #A40000;       /* brand red */
  --red-dark: #7d0000;
  --ink-soft: #3d3d3d;  /* secondary text */

  --glass-bg: rgba(255, 255, 255, .52);
  --glass-border: rgba(255, 255, 255, .8);
  --glass-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 -10px 24px rgba(255, 255, 255, .25) inset, 0 18px 50px rgba(0, 0, 0, .12);
  --blur: blur(22px) saturate(180%);

  --radius-lg: 36px;
  --radius-md: 24px;
  --ba-radius: 28px;
  --wrap: 1160px;
  --font-display: "Red Hat Display", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Red Hat Text", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem; line-height: 1.6;
  color: var(--black);
  background: var(--grey);
  -webkit-font-smoothing: antialiased;
  position: relative;
  display: flow-root; /* keeps the top bar's 14px gap inside the page, so the fade layer lines up with the screen */
}
/* Flake background: pinned to the screen on every device */
body::before {
  content: ""; position: fixed; top: 0; left: 0; z-index: -1;
  width: 100%; height: 100vh; height: 100lvh;
  background: var(--grey) url("flakes.svg") 0 0 / 560px;
  pointer-events: none;
}

/* Page transition: each page opens blank for a moment, then fades in.
   Leaving a page fades it out to the same blank background.
   This layer is attached to the page (not pinned to the screen) because
   iPhone Safari (iOS 26) won't draw pinned layers behind its bottom toolbar.
   The script moves it to wherever you're scrolled to before fading out. */
body::after {
  /* Starts 150px above the screen and runs 160px past the bottom, so it also covers
     what iPhone Safari draws behind the status bar (top) and the toolbar (bottom). */
  content: ""; position: absolute; top: calc(var(--fade-top, 0px) - 150px); left: 0; z-index: 1000;
  width: 100%; height: calc(100vh + 310px); height: calc(100lvh + 310px);
  background: var(--grey) url("flakes.svg") 0 150px / 560px;
  pointer-events: none;
  opacity: 0;
  animation: page-fade-in .6s cubic-bezier(.4, 0, .2, 1) .1s both;
}
html.is-leaving body::after { animation: page-fade-out .3s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes page-fade-in { from { opacity: 1; } to { opacity: 0; } }
@keyframes page-fade-out { from { opacity: 0; } to { opacity: 1; } }

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 7vw, 5.25rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.125rem); font-weight: 800; }
h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); color: var(--ink-soft); max-width: 40em; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- glass ---------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 28px;
  font: 700 1rem var(--font-display);
  text-decoration: none;
  border-radius: 999px; border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.btn:active { transform: scale(.98); }
.btn-red { background: var(--red); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 22px rgba(164, 0, 0, .28); }
.btn-red:hover { background: var(--red-dark); }
.btn-glass { background: var(--glass-bg); border-color: var(--glass-border); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); color: var(--black); }
.btn-glass:hover { background: rgba(255, 255, 255, .8); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- header: floating glass pill ---------- */
.site-header {
  position: sticky; top: 14px; z-index: 1001; /* above the page fade, so the bar stays put */
  width: min(var(--wrap), 100% - 28px); margin: 14px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 10px 8px 22px;
  border-radius: 999px;
}
.brand { display: flex; }
.brand img { height: 52px; width: auto; }
.site-nav { position: relative; display: flex; align-items: center; gap: 4px; margin-left: auto; }

/* English / Español switch: its own frosted pill, stacked on computers.
   The black highlight (with a red underline) slides to the chosen language. */
.lang-switch {
  position: relative; flex: none;
  display: grid; grid-auto-rows: 21px; gap: 2px;
  padding: 3px; margin-left: -4px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .5));
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: inset 0 1px 1px #fff, inset 0 -4px 8px rgba(0, 0, 0, .05), 0 4px 14px rgba(0, 0, 0, .1);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  backdrop-filter: blur(12px) saturate(180%);
}
.lang-opt {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 0 11px; border-radius: 999px;
  font: 700 .75rem var(--font-display); letter-spacing: .01em; white-space: nowrap;
  color: var(--black); text-decoration: none;
  transition: color .24s ease, background-color .2s ease;
}
.lang-opt:hover { background: rgba(0, 0, 0, .06); }
.lang-opt[aria-current] { background: var(--black); color: #fff; }
.lang-switch.has-pill .lang-opt[aria-current] { background: transparent; }
.lang-opt.pill-off { color: var(--black); }
.lang-opt.pill-on { color: #fff; background: transparent; }
.lang-pill {
  position: absolute; z-index: 0; top: 0; left: 0; width: 0; height: 0;
  border-radius: 999px; background: var(--black); pointer-events: none;
  transition: left .24s cubic-bezier(.4, 0, .2, 1), top .24s cubic-bezier(.4, 0, .2, 1),
              width .24s cubic-bezier(.4, 0, .2, 1), height .24s cubic-bezier(.4, 0, .2, 1);
}
.lang-pill::after {
  content: ""; position: absolute; left: 50%; bottom: 2px;
  width: 52%; height: 2px; border-radius: 2px;
  background: #cc0000; transform: translateX(-50%);
}
.lang-pill.no-anim { transition: none; }
/* While switching language, the top bar fades with the page */
html.fade-header .site-header { z-index: 999; }
.site-nav a {
  position: relative; z-index: 1;
  padding: 10px 16px; border-radius: 999px;
  font: 600 .9375rem var(--font-display); text-decoration: none;
  transition: background-color .2s ease, color .25s ease;
}
.site-nav a:hover { background: rgba(255, 255, 255, .7); }
.site-nav a[aria-current=page] { background: var(--black); color: #fff; }

/* Black highlight behind the current page. When you switch pages it glides
   to the new link (the same speed however far it goes). */
.nav-pill {
  position: absolute; z-index: 0; top: 0; left: 0; width: 0; height: 0;
  border-radius: 999px; background: var(--black);
  opacity: 0; pointer-events: none;
  transition: left .28s cubic-bezier(.4, 0, .2, 1), top .28s cubic-bezier(.4, 0, .2, 1),
              width .28s cubic-bezier(.4, 0, .2, 1), height .28s cubic-bezier(.4, 0, .2, 1),
              opacity .14s ease;
}
.nav-pill.no-anim { transition: none; }
.site-nav.has-pill a[aria-current=page] { background: transparent; }
.site-nav a.pill-off { color: var(--black); }
.site-nav a.pill-on { color: #fff; background: transparent; }
.site-nav .btn { min-height: 42px; padding: 0 20px; margin-left: 8px; color: #fff; }
.site-nav .btn:hover { background: var(--red-dark); }
.menu-toggle { display: none; }

/* ---------- sections ---------- */
main { display: block; }
.section { padding: clamp(56px, 9vw, 120px) 0; }
.section-tight { padding: clamp(32px, 5vw, 64px) 0; }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { margin-top: 14px; }

/* hero */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); text-align: center; }
.hero h1 { font-size: clamp(2.5rem, 6.6vw, 5rem); }
.hero .lede { margin: 22px auto 30px; }
.hero-compare { margin: clamp(36px, 6vw, 64px) 0 0; padding: 12px 12px 4px; border-radius: calc(var(--ba-radius) + 12px); text-align: left; position: relative; }
.hero-compare .ba { aspect-ratio: 16 / 9; }
.hero-slider { position: relative; }
.hero-note { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 2; transition: opacity .25s ease, transform .25s ease; padding: 8px 20px; border-radius: 999px; font: 600 .875rem var(--font-display); color: var(--black); white-space: nowrap; pointer-events: none; }
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(8px, 2vw, 24px); text-align: center; }
.page-hero h1 { font-size: clamp(2.5rem, 6.6vw, 5rem); }
.page-hero .lede { margin: 20px auto 0; }

/* photo tiles with a glass caption */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 4; text-decoration: none; display: block; }
.tile > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover > img { transform: scale(1.04); }
.tile-cap { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 18px 20px; border-radius: var(--radius-md); }
.tile-cap p { font-size: .9375rem; color: var(--ink-soft); margin-top: 4px; }

/* process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 26px 24px 28px; border-radius: var(--radius-md); }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 18px;
  font: 800 1.125rem var(--font-display);
  color: #fff; background: var(--red); border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
}
.steps p { margin-top: 8px; font-size: .9875rem; color: var(--ink-soft); }

/* photo + text rows */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.row + .row { margin-top: clamp(56px, 8vw, 104px); }
.row-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 24px 60px rgba(0, 0, 0, .16); }
.row-photo img { width: 100%; height: 100%; object-fit: cover; }
.row.flip .row-photo { order: 2; }
.row-text p { margin-top: 16px; color: var(--ink-soft); }
.row-text .btn { margin-top: 26px; }
.plain-list { list-style: none; padding: 0; margin: 20px 0 0; }
.plain-list li { padding: 14px 0; border-top: 1px solid rgba(0, 0, 0, .14); color: var(--ink-soft); }
.plain-list strong { color: var(--black); display: block; font-family: var(--font-display); }

/* glass panel over a photo */
.photo-band { position: relative; display: flex; justify-content: center; border-radius: var(--radius-lg); overflow: hidden; padding: clamp(20px, 5vw, 64px); }
.photo-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band .panel { position: relative; width: 100%; max-width: 640px; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-md); text-align: center; }
.photo-band .panel p { margin: 16px auto 26px; max-width: 34em; color: var(--ink-soft); }

/* three-column cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: clamp(26px, 3vw, 38px); border-radius: var(--radius-lg); }
.card p { margin-top: 14px; color: var(--ink-soft); }

/* gallery */
.filter-bar { position: relative; display: flex; justify-content: center; gap: 6px; width: fit-content; margin: 0 auto clamp(28px, 4vw, 44px); padding: 6px; border-radius: 999px; background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.filter-btn { position: relative; z-index: 1; transition: background-color .2s ease, color .25s ease; min-height: 42px; white-space: nowrap; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; font: 600 .9375rem var(--font-display); color: var(--black); cursor: pointer; }
.filter-btn:hover { background: rgba(255, 255, 255, .7); }
.filter-btn[aria-pressed=true] { background: var(--black); color: #fff; }
/* Black highlight that glides between All / Residential / Commercial */
.filter-pill {
  position: absolute; z-index: 0; top: 0; left: 0; width: 0; height: 0;
  border-radius: 999px; background: var(--black); pointer-events: none;
  transition: left .28s cubic-bezier(.4, 0, .2, 1), width .28s cubic-bezier(.4, 0, .2, 1);
}
.filter-pill.no-anim { transition: none; }
.filter-bar.has-pill .filter-btn[aria-pressed=true] { background: transparent; }
/* Projects fade out and back in when you switch tabs */
.project-grid { transition: opacity .16s ease; }
.project-grid.is-fading { opacity: 0; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project-card { margin: 0; padding: 10px 10px 4px; border-radius: calc(var(--ba-radius) + 10px); background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.project-card[hidden] { display: none; }
.project-card figcaption, .hero-compare figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 14px 12px; }
.project-card figcaption strong, .hero-compare figcaption strong { font-family: var(--font-display); }
.project-card figcaption span, .hero-compare figcaption span { color: var(--ink-soft); font-size: .9375rem; }

/* contact */
.contact { display: grid; grid-template-columns: 5fr 6fr; gap: 24px; align-items: start; }
.contact-info, .contact-form { padding: clamp(26px, 3.5vw, 44px); border-radius: var(--radius-lg); }
.contact-info > p { margin-top: 14px; color: var(--ink-soft); }
.contact-list { margin: 26px 0 0; }
.contact-list div { padding: 16px 0; border-top: 1px solid rgba(0, 0, 0, .14); }
.contact-list dt { font: 700 .9375rem var(--font-display); color: var(--ink-soft); }
.contact-list dd { margin: 4px 0 0; font-size: 1.125rem; }
.contact-list a { font-weight: 600; text-decoration-color: var(--red); text-underline-offset: 4px; }
.field { margin-bottom: 18px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; margin-bottom: 7px; font: 700 .9375rem var(--font-display); }
input:not([type=range]), select, textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  font: inherit; color: var(--black);
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(0, 0, 0, .22); border-radius: 14px;
}
textarea { min-height: 140px; resize: vertical; }
input:not([type=range]):focus, select:focus, textarea:focus { outline: 3px solid var(--red); outline-offset: 1px; border-color: transparent; }
.contact-form .btn { width: 100%; }

/* terms */
.terms { max-width: 780px; margin-inline: auto; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-lg); }
.terms ol { margin: 0; padding: 0; list-style: none; counter-reset: term; }
.terms li { counter-increment: term; padding: 24px 0; border-top: 1px solid rgba(0, 0, 0, .14); }
.terms li:first-child { border-top: 0; padding-top: 0; }
.terms h2 { font-size: 1.375rem; letter-spacing: -.015em; }
.terms h2::before { content: counter(term) ". "; color: var(--red); }
.terms p { margin-top: 10px; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer { margin: clamp(40px, 6vw, 80px) 14px 14px; padding: clamp(36px, 5vw, 64px) clamp(24px, 5vw, 64px) 28px; background: var(--black); color: var(--grey); border-radius: var(--radius-lg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { height: 54px; width: auto; }
.footer-brand p { margin-top: 14px; font: 700 1.375rem var(--font-display); letter-spacing: -.02em; color: #fff; }
.site-footer h2 { font-size: 1rem; letter-spacing: 0; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.social { display: flex; gap: 8px; margin-top: 22px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.social a:hover { background: var(--red); }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .875rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer-legal a { text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* Contact form: consent note under the Send button, and the hidden spam trap */
.form-note { margin-top: 14px; font-size: .875rem; line-height: 1.5; color: var(--ink-soft); text-align: center; }
.form-note a { color: var(--black); text-underline-offset: 3px; text-decoration-color: var(--red); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; padding: clamp(6px, 1.5vw, 14px) clamp(20px, 4vw, 44px); border-radius: var(--radius-lg); }
.faq-item + .faq-item { border-top: 1px solid rgba(0, 0, 0, .14); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font: 700 1.1875rem/1.3 var(--font-display); letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; border-radius: 8px; }
.faq-icon {
  position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--black); transition: background-color .25s ease, transform .3s cubic-bezier(.4, 0, .2, 1);
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px;
  background: #fff; transform: translate(-50%, -50%);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s cubic-bezier(.4, 0, .2, 1); }
.faq-item.is-open .faq-icon { background: var(--red); transform: rotate(180deg); }
.faq-item.is-open .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item summary:hover .faq-icon { background: var(--red); }
.faq-answer { overflow: hidden; }
.faq-answer > div { padding: 0 54px 24px 0; color: var(--ink-soft); }
.faq-answer p + p { margin-top: 12px; }
.faq-answer a, .faq-pointer a { color: var(--black); font-weight: 600; text-underline-offset: 3px; text-decoration-color: var(--red); }
.faq-answer strong { color: var(--black); }
.faq-pointer { margin-top: 14px; }
.photo-band .panel .btn-row { justify-content: center; }

/* Google review button in the footer */
.review-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 18px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08);
  color: #fff; font: 600 .9375rem var(--font-display); text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.review-btn:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); }
.review-stars { color: #f5b400; letter-spacing: 1px; font-size: .8125rem; }

/* Thank-you and page-not-found pages */
.message-page { min-height: 52vh; display: flex; align-items: center; padding-bottom: clamp(48px, 8vw, 96px); }
.message-page .btn-row { margin-top: 30px; }
.message-page .lede a { color: var(--black); font-weight: 600; text-underline-offset: 3px; text-decoration-color: var(--red); }
.other-lang { margin-top: 28px; color: var(--ink-soft); font-size: .9375rem; }
.other-lang a { color: var(--black); font-weight: 600; text-underline-offset: 3px; text-decoration-color: var(--red); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .tiles, .cards { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr 1fr; }
  .row, .contact, .footer-grid { grid-template-columns: 1fr; }
  .row.flip .row-photo { order: 0; }
  .row-center-mobile .row-text { text-align: center; }
  .row-center-mobile .plain-list { text-align: left; }
  .card { text-align: center; }
  .contact-info > h2, .contact-info > p { text-align: center; }
  .project-grid { grid-template-columns: 1fr; }
  .hero-compare .ba { aspect-ratio: 4 / 3; }
}
@media (max-width: 760px) {
  .site-header { border-radius: 28px; flex-wrap: wrap; padding: 8px 10px 8px 18px; }
  .menu-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--black); color: #fff; font: 700 .9375rem var(--font-display); cursor: pointer; }
  .site-header { row-gap: 0; column-gap: 8px; }
  .brand { margin-right: auto; }
  .lang-switch { order: 1; grid-auto-flow: column; grid-auto-rows: auto; grid-template-rows: 36px; margin-left: 0; border-radius: 999px; }
  .lang-opt { padding: 0 7px; font-size: .6875rem; }
  .lang-pill::after { bottom: 5px; }
  .site-header { column-gap: 6px; }
  .brand img { height: 38px; }
  .menu-toggle { order: 2; }
  .site-nav { order: 3; margin-left: 0; }
  .menu-toggle { min-width: 74px; padding: 0 14px; justify-content: center; }
  .header-spacer { margin-top: 14px; }
  .site-header.is-floating { position: fixed; top: 14px; left: 0; right: 0; margin: 0 auto; background: rgba(255, 255, 255, .86); }
  .site-nav {
    display: flex; flex-basis: 100%; flex-direction: column; align-items: stretch;
    max-height: 0; padding: 0; overflow: hidden;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: max-height .38s cubic-bezier(.4, 0, .2, 1), padding .38s cubic-bezier(.4, 0, .2, 1),
                opacity .2s ease, transform .38s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .38s;
  }
  .site-nav.open {
    max-height: 420px; padding: 0;
    opacity: 1; visibility: visible; transform: none;
    transition: max-height .45s cubic-bezier(.2, .8, .2, 1), padding .45s cubic-bezier(.2, .8, .2, 1),
                opacity .3s ease .06s, transform .45s cubic-bezier(.2, .8, .2, 1), visibility 0s;
  }
  /* spacing above and below the links (fixed, so the highlight stays lined up) */
  .site-nav::before { content: ""; flex: 0 0 10px; }
  .site-nav::after { content: ""; flex: 0 0 12px; }
  .site-nav a { padding: 13px 16px; }
  .site-nav .btn { margin: 8px 0 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
  .steps, .field-pair { grid-template-columns: 1fr; }
  .faq-item summary { font-size: 1.0625rem; padding: 18px 0; }
  .faq-answer > div { padding-right: 0; }
  .filter-bar { gap: 2px; }
  .filter-btn { padding: 0 14px; }
  .hero-note { top: auto; bottom: 12px; left: 12px; transform: none; padding: 7px 14px; font-size: .8125rem; }
  .hero-slider:has(.ba.dragging) .hero-note { opacity: 0; transform: translateY(4px); }
  .ba-knob { width: 46px; height: 46px; }
  .ba-knob::before { left: 10px; } .ba-knob::after { right: 10px; }
}
@media (max-width: 380px) {
  .filter-btn { padding: 0 10px; font-size: .875rem; }
  .brand img { height: 31px; }
  .lang-opt { padding: 0 5px; }
  .menu-toggle { min-width: 70px; padding: 0 12px; }
}
@media (max-width: 340px) {
  .filter-btn { padding: 0 8px; font-size: .8125rem; }
  .site-header { padding-left: 14px; }
  .lang-opt { padding: 0 6px; }
  .menu-toggle { min-width: 0; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  body::after { display: none; }
}

/* ==========================================================
   Before / after slider
   ========================================================== */
.ba {
  --pos: 50%;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--ba-radius, 24px);
  background: #1c1c1c;
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
  cursor: ew-resize;
}
.ba img { pointer-events: none; }
.ba-after, .ba-before {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; margin-left: -1px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 0 12px rgba(0, 0, 0, .35);
  pointer-events: none;
}
.ba-knob {
  transition: transform .15s ease;
  position: absolute; top: 50%; left: 50%;
  width: 54px; height: 54px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .9), inset 0 -6px 12px rgba(255, 255, 255, .18), 0 6px 20px rgba(0, 0, 0, .3);
}
.ba-knob::before, .ba-knob::after {
  content: ""; position: absolute; top: 50%;
  width: 9px; height: 9px;
  border: solid #fff; border-width: 0 0 2.5px 2.5px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5));
}
.ba.dragging .ba-knob { transform: translate(-50%, -50%) scale(1.12); }
.ba-knob::before { left: 13px; transform: translateY(-50%) rotate(45deg); }
.ba-knob::after  { right: 13px; transform: translateY(-50%) rotate(-135deg); }

.ba input[type=range] {
  position: absolute; inset: 0;
  width: 100%; height: 100%; margin: 0;
  opacity: 0;
  -webkit-appearance: none; appearance: none;
  background: transparent;
  pointer-events: none;
}
.ba input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 2px; height: 600px; }
.ba input[type=range]::-moz-range-thumb { width: 2px; height: 600px; border: 0; }
.ba:has(input:focus-visible) .ba-knob { outline: 3px solid var(--red); outline-offset: 3px; }

.ba-tag {
  position: absolute; top: 14px;
  padding: 6px 14px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .01em;
  color: #fff;
  border-radius: 999px;
  background: rgba(0, 0, 0, .34);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .35);
  pointer-events: none;
  transition: opacity .2s ease;
}
.ba-tag-before { left: 14px; }
.ba-tag-after  { right: 14px; background: rgba(164, 0, 0, .78); }
.ba.hide-before-tag .ba-tag-before, .ba.hide-after-tag .ba-tag-after { opacity: 0; }

.ba-watermark {
  position: absolute; right: 14px; bottom: 10px;
  width: 13%; min-width: 46px; max-width: 86px;
  opacity: .82;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .55));
  pointer-events: none;
}
