:root {
  --font-display: "Saira Extra Condensed", "Arial Narrow", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 4px;
  --header-h: 128px;
  --max: 1120px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-theme="plomberie"] {
  --paper: #0a3480;
  --paper-2: #ffffff;
  --ink: #0a3480;
  --muted: #3d5a8a;
  --line: #0a3480;
  --tape: #0a3480;
  --tape-2: #ffffff;
  --cta: #0a3480;
  --cta-ink: #ffffff;
  --cta-2: #0a3480;
  --stamp: #0a3480;
  --focus: #0a3480;
  --ok: #0f7a4a;
  --err: #b42318;
}

[data-theme="debouchage"] {
  --paper: #0b5e38;
  --paper-2: #ffffff;
  --ink: #0b5e38;
  --muted: #3d6e54;
  --line: #0b5e38;
  --tape: #0b5e38;
  --tape-2: #ffffff;
  --cta: #0b5e38;
  --cta-ink: #ffffff;
  --cta-2: #0b5e38;
  --stamp: #0b5e38;
  --focus: #0b5e38;
  --ok: #22a05a;
  --err: #b42318;
}

[data-theme="chauffage"] {
  --paper: #8a2a12;
  --paper-2: #ffffff;
  --ink: #8a2a12;
  --muted: #8a4a38;
  --line: #8a2a12;
  --tape: #8a2a12;
  --tape-2: #ffffff;
  --cta: #8a2a12;
  --cta-ink: #ffffff;
  --cta-2: #8a2a12;
  --stamp: #8a2a12;
  --focus: #8a2a12;
  --ok: #0f7a4a;
  --err: #b42318;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper-2);
  line-height: 1.5;
  font-size: 1.0625rem;
  min-height: 100dvh;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* --- Header --- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper-2);
  border-bottom: 3px solid var(--paper);
  width: 100%;
}

.top__bar {
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  display: block;
  height: 120px;
  width: 120px;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 0.4rem;
}

.nav a {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.15rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid transparent;
  color: var(--muted);
}

.nav a[aria-current="page"] {
  color: #fff;
  border-color: var(--paper);
  background: var(--paper);
}

.nav--top {
  flex-shrink: 0;
}

.top__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

/* --- Burger + menu page (#section) --- */
.burger {
  width: 2.6rem;
  height: 2.6rem;
  border: 2px solid var(--paper);
  background: var(--paper);
  color: #fff;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.burger:hover { filter: brightness(1.08); }
.burger__lines,
.burger__lines::before,
.burger__lines::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.burger__lines::before,
.burger__lines::after {
  content: "";
  position: absolute;
  left: 0;
}
.burger__lines::before { top: -6px; }
.burger__lines::after { top: 6px; }
.burger[aria-expanded="true"] .burger__lines {
  background: transparent;
}
.burger[aria-expanded="true"] .burger__lines::before {
  top: 0;
  transform: rotate(45deg);
}
.burger[aria-expanded="true"] .burger__lines::after {
  top: 0;
  transform: rotate(-45deg);
}
.menu {
  border-top: 1px solid rgb(10 52 128 / .12);
  background: var(--paper-2);
  max-height: min(70vh, 28rem);
  overflow: auto;
}
.menu__nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem 1.35rem;
}
.menu__label {
  margin: 0.85rem 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.menu__label:first-child { margin-top: 0; }
.menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}
.menu__link {
  display: block;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 1.25rem;
  color: var(--ink);
  padding: 0.55rem 0.15rem;
  border-bottom: 1px solid rgb(10 52 128 / .1);
}
.menu__link:hover,
.menu__link:focus-visible {
  color: var(--paper);
}
.menu__call {
  margin-top: 1rem;
  width: 100%;
}
body.is-menu-open {
  overflow: hidden;
}
#rappel,
#services,
#deroule,
#pourquoi,
#faq,
#contact,
#local,
#autour,
#immeuble,
#top {
  scroll-margin-top: 7rem;
}
[data-theme="debouchage"] .burger {
  border-color: var(--paper);
  color: var(--paper);
}

.live {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.live__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.15rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  transition: transform 0.15s var(--ease), filter 0.15s var(--ease);
}

.btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--call {
  background: var(--cta);
  color: var(--cta-ink);
  animation: pulse 1.8s ease-out infinite;
}

.hero__actions .btn--call,
.phone-card .btn--call {
  animation-name: pulse-light;
}

.btn--call:hover,
.btn--call:focus-visible {
  animation: none;
}

.btn--dark {
  background: var(--cta-2);
  color: #fff;
}

.btn--ghost {
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn--block {
  width: 100%;
}

.btn__phone {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0;
  font-size: 0.92rem;
  text-transform: none;
}

/* --- Layout --- */
.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.hero {
  background: var(--paper);
  color: #fff;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

.hero__media {
  overflow: hidden;
  background: #1a1a1a;
  display: grid;
  height: 220px;
  min-height: 220px;
  order: -2;
}

.hero__media picture,
.hero__media img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__media img {
  object-fit: cover;
  object-position: 28% 18%;
}

.hero__panel {
  padding: 2.2rem clamp(1.15rem, 3vw, 2.4rem) 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.35rem;
}

.hero__copy {
  min-width: 0;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 8.4vw, 6.4rem);
  line-height: 0.86;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.hero .kicker,
.hero .lede {
  color: rgb(255 255 255 / 0.82);
}

.hero h1 span {
  display: block;
  color: #fff;
}

.hero .btn--call {
  background: #fff;
  color: var(--paper);
}

.hero .btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgb(255 255 255 / 0.45);
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38ch;
  margin: 0 0 1.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 0;
}

.tape {
  grid-column: 1 / -1;
  order: -1;
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  height: 2.5rem;
  background: #111;
  color: #fff;
  border-top: 3px solid #000;
}

.tape__track {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  width: max-content;
  animation: tape 32s linear infinite;
  will-change: transform;
}

@media (hover: hover) {
  .tape:hover .tape__track {
    animation-play-state: paused;
  }
}

.tape__run {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin: 0;
  padding: 0.55rem 1.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.05rem;
  white-space: nowrap;
}

.tape__run span + span::before {
  content: "·";
  margin-right: 1.6rem;
  color: #7ad0ff;
}

@keyframes tape {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* --- Form --- */
.pipe-frame {
  --pipe-w: 15px;
  --pipe-fit: 26px;
  position: relative;
  padding: 18px;
}

.pipe-frame__run,
.pipe-frame__fit {
  position: absolute;
  pointer-events: none;
}

.pipe-frame__run--h {
  left: 22px;
  right: 22px;
  height: var(--pipe-w);
  border-radius: 8px;
  background: linear-gradient(
    180deg,
    #8a8a8a 0%,
    #5c5c5c 22%,
    #3a3a3a 46%,
    #1f1f1f 52%,
    #4a4a4a 78%,
    #6e6e6e 100%
  );
}

.pipe-frame__run--t {
  top: 5px;
}

.pipe-frame__run--b {
  bottom: 5px;
}

.pipe-frame__run--v {
  top: 22px;
  bottom: 22px;
  width: var(--pipe-w);
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    #8a8a8a 0%,
    #5c5c5c 22%,
    #3a3a3a 46%,
    #1f1f1f 52%,
    #4a4a4a 78%,
    #6e6e6e 100%
  );
}

.pipe-frame__run--l {
  left: 5px;
}

.pipe-frame__run--r {
  right: 5px;
}

.pipe-frame__run--h::before,
.pipe-frame__run--h::after,
.pipe-frame__run--v::before,
.pipe-frame__run--v::after {
  content: "";
  position: absolute;
  background: linear-gradient(180deg, #7a7a7a, #3d3d3d 45%, #1a1a1a 52%, #555);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6);
}

.pipe-frame__run--h::before,
.pipe-frame__run--h::after {
  top: -3px;
  width: 9px;
  height: calc(100% + 6px);
  border-radius: 2px;
}

.pipe-frame__run--h::before {
  left: 22%;
}

.pipe-frame__run--h::after {
  right: 22%;
}

.pipe-frame__run--v::before,
.pipe-frame__run--v::after {
  left: -3px;
  height: 9px;
  width: calc(100% + 6px);
  border-radius: 2px;
  background: linear-gradient(90deg, #7a7a7a, #3d3d3d 45%, #1a1a1a 52%, #555);
}

.pipe-frame__run--v::before {
  top: 22%;
}

.pipe-frame__run--v::after {
  bottom: 22%;
}

.pipe-frame__fit {
  width: var(--pipe-fit);
  height: var(--pipe-fit);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #9a9a9a 0%, #5a5a5a 30%, #2a2a2a 64%, #4a4a4a 100%);
  box-shadow:
    inset 0 0 0 4px #1a1a1a,
    inset 0 0 0 6px #6a6a6a,
    0 2px 4px rgb(0 0 0 / 0.35);
  z-index: 2;
}

.pipe-frame__fit--tl {
  top: 0;
  left: 0;
}

.pipe-frame__fit--tr {
  top: 0;
  right: 0;
}

.pipe-frame__fit--bl {
  bottom: 0;
  left: 0;
}

.pipe-frame__fit--br {
  bottom: 0;
  right: 0;
}

.work-zone {
  background: var(--paper-2);
  color: var(--ink);
  border: 0;
  padding: 1.15rem 1.1rem 1.2rem;
  position: relative;
  border-radius: 6px;
}

.stamp {
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--stamp);
  border: 2px solid var(--stamp);
  padding: 0.15rem 0.4rem;
  transform: rotate(8deg);
  opacity: 0.85;
  pointer-events: none;
}

.work-zone h2,
.form-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.85rem;
  margin: 0 0 0.15rem;
  line-height: 1;
}

.work-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin-bottom: 0.7rem;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0.45rem 0;
  color: var(--ink);
  border-radius: 0;
  width: 100%;
}

.field textarea {
  min-height: 72px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--tape);
}

.consent {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.4rem 0 0.9rem;
}

.consent input {
  margin-top: 0.2rem;
}

.form-error {
  display: none;
  color: var(--err);
  font-size: 0.88rem;
  margin: 0 0 0.7rem;
}

.form-error.is-on {
  display: block;
}

.form-ok {
  display: none;
  padding: 1.4rem 0.2rem 0.4rem;
}

.form-ok.is-on {
  display: block;
}

.form-ok h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 2rem;
  margin: 0 0 0.4rem;
  line-height: 1;
}

.form-fields.is-off {
  display: none;
}

/* --- Sections --- */
.block {
  background: var(--paper-2);
  border-top: 3px solid var(--paper);
}

.block--alt,
.block--fill {
  background: var(--paper);
  color: #fff;
  border-top-color: var(--paper-2);
}

.block--alt .intro,
.block--fill .intro,
.block--alt .run__step p,
.block--fill .run__step p,
.block--alt .faq details p,
.block--fill .faq details p {
  color: rgb(255 255 255 / 0.82);
}

.block--alt .run__step,
.block--fill .run__step,
.block--alt .faq details,
.block--fill .faq details {
  background: rgb(255 255 255 / 0.12);
  border-color: rgb(255 255 255 / 0.28);
}

.block--alt .run__step strong,
.block--fill .run__step strong {
  color: #fff;
}

.block--alt a,
.block--fill a {
  color: #fff;
}

.block--alt .why li,
.block--fill .why li {
  border-color: rgb(255 255 255 / 0.28);
}

.block__inner {
  padding: 2.6rem 0 2.8rem;
}

.block h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  letter-spacing: 0.03em;
  line-height: 0.95;
  margin: 0 0 0.5rem;
}

.block .intro {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 1.6rem;
}

.tickets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.ticket {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--paper);
  padding: 1rem 1rem 1.05rem;
}

.marques {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.marque {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 0.7rem 0.85rem;
  background: #fff;
  border: 1px solid var(--line);
}

.marque img {
  width: 100%;
  max-width: 148px;
  height: 40px;
  object-fit: contain;
}

.block--alt .ticket {
  background: #fff;
  border-top-color: var(--paper);
}

.ticket h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.3rem;
}

.ticket p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

a.ticket--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

a.ticket--link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgb(0 0 0 / 0.08);
}

a.ticket--link h3 {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.crumbs {
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.72);
}

.crumbs a {
  color: inherit;
  text-underline-offset: 3px;
}

.run {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.6rem;
  align-items: stretch;
}

.run__step {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 1rem;
}

.run__step strong {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.run__step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.run__tape {
  width: 40px;
  align-self: center;
  height: 2px;
  background: currentColor;
  opacity: 0.45;
}

.why {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.why ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.why li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.why li:first-child {
  border-top: 1px solid var(--line);
}

.why li b {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.3rem;
}

.phone-card {
  background: var(--cta-2);
  color: #fff;
  padding: 1.4rem 1.3rem;
  text-align: center;
}

.phone-card p {
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.phone-card a {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: #fff;
  line-height: 1;
}

.phone-card .btn {
  margin-top: 1rem;
  background: #fff;
  color: var(--paper);
}

.faq {
  display: grid;
  gap: 0.65rem;
}

.faq details {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.25rem;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.cta-band .pipe-frame {
  max-width: 640px;
  margin: 0 auto;
}

.foot {
  background: var(--cta-2);
  color: #fff;
  border-top: 3px solid var(--paper-2);
}

.foot__inner {
  padding: 1.6rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-size: 0.9rem;
}

.foot__logo {
  display: block;
  flex-shrink: 0;
}

.foot__logo img {
  display: block;
  height: 88px;
  width: 88px;
  object-fit: contain;
}

.foot .nav a {
  color: #fff;
  border-color: rgb(255 255 255 / 0.4);
}

.foot .nav a[aria-current="page"] {
  background: #fff;
  color: var(--paper);
  border-color: #fff;
}

.foot a {
  color: #fff;
  text-underline-offset: 3px;
}

.foot__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.legal {
  padding: 2.5rem 0 4rem;
  max-width: 72ch;
}

.legal h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 3rem;
  line-height: 0.95;
  margin: 0 0 1rem;
}

.legal h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.5rem;
  margin: 1.6rem 0 0.4rem;
}

.dock {
  position: fixed;
  right: 0.85rem;
  bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  gap: 0.45rem;
  pointer-events: none;
}

.dock__btn {
  pointer-events: auto;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 6.6rem;
  padding: 0.48rem 0.75rem;
  border-radius: 999px;
  border: 2px solid #111;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.92rem;
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.18);
}

.dock__btn svg {
  flex-shrink: 0;
}

.dock__btn--call {
  background: var(--cta);
  color: #fff;
  animation: pulse-dock 1.8s ease-out infinite;
}

.dock__btn--wa {
  background: #128c4b;
  color: #fff;
  animation: pulse-wa 1.8s ease-out infinite 0.9s;
}

.dock__btn:hover,
.dock__btn:focus-visible {
  filter: brightness(1.08);
  animation: none;
}

@media (min-width: 561px) {
  .hero__media {
    height: 250px;
    min-height: 250px;
  }

  .hero__media img {
    object-position: 30% 22%;
  }
}

@media (min-width: 881px) {
  .hero {
    grid-template-columns: minmax(20rem, 42rem) minmax(0, 1fr);
    min-height: 36rem;
  }

  .hero__media,
  .tape {
    order: 0;
  }

  .hero__media {
    height: auto;
    min-height: 100%;
  }

  .hero__media img {
    object-position: 32% 40%;
  }
}

@media (max-width: 880px) {
  :root {
    --header-h: 0px;
  }

  .top__bar {
    flex-wrap: wrap;
    row-gap: 0.35rem;
    min-height: 0;
  }

  .nav--top {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    display: flex;
  }

  .tape__run {
    font-size: 0.95rem;
    padding: 0.48rem 1.1rem;
    gap: 1.2rem;
  }

  .hero__panel {
    padding: 1.5rem 1.15rem 2rem;
  }

  .hero__grid,
  .why,
  .tickets {
    grid-template-columns: 1fr;
  }

  .stack {
    max-width: 22rem;
  }

  .tickets {
    grid-template-columns: 1fr 1fr;
  }

  .run {
    grid-template-columns: 1fr;
  }

  .run__tape {
    width: 2px;
    height: 22px;
    justify-self: center;
    transform: none;
  }

  .nav--top a {
    flex: 1;
    text-align: center;
    font-size: 0.98rem;
    padding: 0.4rem 0.4rem;
    letter-spacing: 0.04em;
  }

  .marques {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .logo img {
    height: 88px;
    width: 88px;
  }

  .top__right .live {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }

  .top .btn__phone {
    display: none;
  }

  .top__right .btn--call {
    padding: 0.55rem 0.9rem;
    font-size: 1.05rem;
  }

  .foot__inner {
    padding-bottom: 4.4rem;
  }
}

@media (max-width: 380px) {
  .nav--top a {
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    padding: 0.35rem 0.28rem;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 12vw, 3.2rem);
  }
}

@media (max-width: 560px) {
  .dock {
    left: 0.7rem;
    right: 0.7rem;
  }

  .dock__btn {
    flex: 1;
    min-width: 0;
    font-size: 0.84rem;
    padding: 0.48rem 0.55rem;
    white-space: nowrap;
  }

  .tickets {
    grid-template-columns: 1fr;
  }

  .marques {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wrap {
    width: min(100% - 1.5rem, var(--max));
  }

  .stamp {
    position: static;
    display: inline-block;
    transform: rotate(0);
    margin-bottom: 0.6rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }

  .drip,
  .btn--call,
  .dock__btn {
    animation: none !important;
  }

  .tape__track {
    animation: none !important;
    will-change: auto;
  }

  .tape__track .tape__run + .tape__run {
    display: none;
  }

  .tape {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    height: auto;
  }

  .tape__track {
    position: static;
  }
}

.drip {
  transform-origin: 50% 0;
  animation: drip 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--cta) 50%, transparent);
  }
  70% {
    box-shadow: 0 0 0 14px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

@keyframes pulse-light {
  0% {
    box-shadow: 0 0 0 0 rgb(255 255 255 / 0.55);
  }
  70% {
    box-shadow: 0 0 0 14px rgb(255 255 255 / 0);
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

@keyframes pulse-dock {
  0% {
    box-shadow:
      0 6px 18px rgb(0 0 0 / 0.18),
      0 0 0 0 color-mix(in srgb, var(--cta) 55%, transparent);
  }
  70% {
    box-shadow:
      0 6px 18px rgb(0 0 0 / 0.18),
      0 0 0 12px transparent;
  }
  100% {
    box-shadow:
      0 6px 18px rgb(0 0 0 / 0.18),
      0 0 0 0 transparent;
  }
}

@keyframes pulse-wa {
  0% {
    box-shadow:
      0 6px 18px rgb(0 0 0 / 0.18),
      0 0 0 0 rgb(18 140 75 / 0.55);
  }
  70% {
    box-shadow:
      0 6px 18px rgb(0 0 0 / 0.18),
      0 0 0 12px rgb(18 140 75 / 0);
  }
  100% {
    box-shadow:
      0 6px 18px rgb(0 0 0 / 0.18),
      0 0 0 0 transparent;
  }
}

.hero h1.is-local {
  font-size: clamp(2.2rem, 5.6vw, 4.2rem);
  line-height: 0.92;
}

.hero h1.is-local span {
  margin-top: 0.35rem;
  font-size: 0.72em;
  line-height: 0.95;
}

.local {
  max-width: 68ch;
}

.local p {
  margin: 0 0 1rem;
}

.villages,
.swap {
  max-width: 68ch;
  margin: 1.1rem 0 0;
  color: var(--muted);
}

.swap a,
.local a,
.ticket a {
  text-underline-offset: 3px;
}

.nearby {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.nearby a {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}

.nearby a:hover {
  background: var(--paper);
  color: #fff;
}

.zone-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem 1.25rem;
}

.zone-grid li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}

.zone-grid strong {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.35rem;
  line-height: 1;
}

.zone-grid span {
  font-size: 0.92rem;
}

.zone-grid a {
  text-underline-offset: 3px;
}

.stack {
  display: grid;
  gap: 3px;
  align-self: center;
}

.stack__roof,
.stack__floor {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stack__roof {
  text-align: center;
  font-size: 0.85rem;
  padding: 0.35rem;
  background: #111;
  color: #fff;
}

.stack__floor {
  display: flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--paper-2);
  font-size: 1.05rem;
}

.stack__floor.is-wet {
  background: var(--paper);
  color: #fff;
  border-color: #111;
}

.stack__floor--cave {
  background: #1a1a1a;
  color: #fff;
  border-color: #111;
}

.block--alt .nearby a {
  border-color: rgb(255 255 255 / 0.45);
  color: #fff;
}

.block--alt .nearby a:hover {
  background: #fff;
  color: var(--paper);
}

.block--alt .swap {
  color: rgb(255 255 255 / 0.82);
}

.block--alt .ticket a {
  color: var(--ink);
}

@keyframes drip {
  0%,
  20% {
    transform: translateY(0) scaleY(1);
    opacity: 1;
  }
  70% {
    transform: translateY(18px) scaleY(1.15);
    opacity: 0.4;
  }
  100% {
    transform: translateY(28px) scaleY(0.6);
    opacity: 0;
  }
}
