/* ==========================================================================
   RV Electronics — main stylesheet
   Sections: 1 Fonts  2 Tokens  3 Base  4 Layout helpers  5 Buttons
             6 Header  7 Hero  8 Forms  9 Home sections  10 TV checker
             11 Inner pages  12 Footer  13 Floating bars + dialog
             14 Motion  15 Print
   ========================================================================== */

/* 1. Fonts (self-hosted, so no third-party request slows the page) -------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* 2. Tokens --------------------------------------------------------------- */
:root {
  /* Colours taken from the RV Electronics logo */
  --ink: #0b1b3d;          /* headings, dark sections */
  --ink-2: #12295c;
  --body: #3a4763;         /* paragraph text */
  --muted: #62708c;
  --cobalt: #1348b8;       /* logo blue */
  --cobalt-deep: #0c2f86;
  --violet: #a95ce0;       /* logo purple */
  --cyan: #46bee8;         /* chip pins in the logo */
  --paper: #f3f6fc;        /* cool page tint */
  --white: #ffffff;
  --line: #dbe3f1;

  /* Action colours */
  --sun: #ffc533;          /* call button */
  --sun-deep: #f0ae00;
  --wa: #0f8544;           /* WhatsApp button (dark enough for white text) */
  --wa-deep: #0a6c36;
  --danger: #c62828;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 20px;

  --shadow-card: 0 1px 2px rgba(11, 27, 61, .06), 0 12px 32px -12px rgba(11, 27, 61, .18);
  --shadow-pop: 0 24px 60px -20px rgba(6, 18, 48, .55);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 8vw, 104px);
  --header-h: 84px;
}

/* 3. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 5.4vw, 3.7rem); font-weight: 700; line-height: 1.03; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.65rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 650; letter-spacing: -.01em; }
h4 { font-size: 1rem; font-weight: 650; letter-spacing: 0; }

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cobalt-deep); }
strong { color: var(--ink); font-weight: 650; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

.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: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--radius-s);
}
.skip-link:focus { top: 12px; color: #fff; }

/* 4. Layout helpers ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: #c9d5ee; }
.section--ink h2, .section--ink h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { margin-top: 14px; font-size: 1.12rem; }
.section-head--center { margin-inline: auto; text-align: center; }

.lead { font-size: 1.15rem; }
.stack > * + * { margin-top: 16px; }

/* TV colour-bar strip: the one decorative motif, borrowed from a test card */
.colorbars {
  height: 5px;
  background: linear-gradient(90deg,
    #d8dde8 0 14.285%, #ffc533 0 28.57%, #46bee8 0 42.855%, #25b866 0 57.14%,
    #a95ce0 0 71.425%, #e5484d 0 85.71%, #1348b8 0);
}

/* 5. Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius-m);
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--call { background: var(--sun); color: var(--ink); box-shadow: 0 8px 20px -10px rgba(240, 174, 0, .9); }
.btn--call:hover { background: var(--sun-deep); color: var(--ink); }

.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 8px 20px -10px rgba(15, 133, 68, .9); }
.btn--wa:hover { background: var(--wa-deep); color: #fff; }

.btn--primary { background: var(--cobalt); color: #fff; box-shadow: 0 8px 20px -10px rgba(19, 72, 184, .9); }
.btn--primary:hover { background: var(--cobalt-deep); color: #fff; }

.btn--outline { background: transparent; color: var(--cobalt); border-color: var(--cobalt); }
.btn--outline:hover { background: var(--cobalt); color: #fff; }

.btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--lg { min-height: 58px; padding: 15px 28px; font-size: 1.1rem; }
.btn--sm { min-height: 42px; padding: 8px 16px; font-size: .95rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; text-decoration: none;
  border-bottom: 2px solid currentColor; padding-bottom: 1px;
}

/* 6. Header --------------------------------------------------------------- */
.topbar { background: var(--ink); color: #c9d5ee; font-size: .9rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 40px; }
.topbar__list { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.topbar__list li { display: inline-flex; align-items: center; gap: 8px; }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .icon { color: var(--cyan); width: 1.05em; height: 1.05em; }

.header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(11, 27, 61, .45); }
.header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }

.brand { display: inline-flex; flex: none; margin-right: auto; }
.brand img { width: auto; height: 60px; }

.nav__list { display: flex; gap: 4px; }
.nav__link {
  display: block; padding: 10px 14px; border-radius: var(--radius-s);
  color: var(--ink); font-weight: 600; text-decoration: none; position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px;
  border-radius: 2px; background: var(--cobalt); transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.nav__link:hover { color: var(--cobalt); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--cobalt); }

.header__actions { display: flex; align-items: center; gap: 10px; }
.header__phone {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; line-height: 1.15;
}
.header__phone-icon {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 50%; background: var(--sun); color: var(--ink);
}
.header__phone small { display: block; font-size: .78rem; color: var(--muted); font-weight: 500; }
.header__phone b { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }

.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  background: #fff; color: var(--ink); cursor: pointer;
  place-items: center;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

@media (max-width: 1080px) {
  .header__wa-label { display: none; }
  .brand img { height: 52px; }
  .header__actions .btn--wa { padding-inline: 12px; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .topbar { display: none; }
  .brand img { height: 46px; }
  .nav-toggle { display: grid; }
  .header__phone small, .header__phone b { display: none; }
  .header__actions .btn--wa { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(11, 27, 61, .4);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .nav__link { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.08rem; }
  .nav__link::after { display: none; }
  .nav__cta { display: grid; gap: 10px; padding: 0 var(--gutter) 20px; }
}
@media (min-width: 901px) { .nav__cta { display: none; } }
@media (max-width: 380px) { .brand img { height: 40px; } }

/* 7. Hero ----------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; background: var(--ink); color: #dbe5fa; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.1s ease;
}
.hero__media img.is-active { opacity: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(8, 20, 52, .96) 0%, rgba(11, 38, 108, .9) 42%, rgba(19, 72, 184, .55) 72%, rgba(169, 92, 224, .35) 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 430px);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(36px, 6vw, 80px);
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px; margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 100px;
  background: rgba(255, 255, 255, .08); color: #fff; font-size: .95rem; font-weight: 600;
}
.hero__badge .icon { color: var(--sun); }

/* Both slides sit in the same grid cell, so the hero never jumps in height */
.hero__slides { display: grid; }
.hero__slide {
  grid-area: 1 / 1; opacity: 0; visibility: hidden;
  transition: opacity .6s ease, visibility .6s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__title { color: #fff; font-size: clamp(2.15rem, 5.4vw, 3.7rem); font-weight: 700; line-height: 1.03; font-family: var(--font-display); letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.hero__text { margin-top: 18px; max-width: 560px; font-size: 1.16rem; color: #dbe5fa; }

.hero__cta { margin-top: 28px; }
.hero__points { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 28px; margin-top: 28px; }
.hero__points li { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; }
.hero__points .icon { color: var(--cyan); }

.hero__dots { display: flex; gap: 8px; margin-top: 30px; }
.hero__dot {
  width: 34px; height: 6px; padding: 0; border: 0; border-radius: 3px;
  background: rgba(255, 255, 255, .3); cursor: pointer; transition: background-color .2s, width .2s;
}
.hero__dot[aria-current="true"] { background: var(--sun); width: 52px; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero::before { background: linear-gradient(180deg, rgba(8, 20, 52, .93) 0%, rgba(11, 38, 108, .9) 60%, rgba(19, 72, 184, .82) 100%); }
}
@media (max-width: 560px) {
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__points { grid-template-columns: 1fr; }
}

/* 8. Forms ---------------------------------------------------------------- */
.lead-card {
  background: #fff; color: var(--body);
  border-radius: var(--radius-l);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-pop);
}
.hero .lead-card { animation: card-in .6s .15s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.lead-card__title { font-size: 1.5rem; }
.lead-card__sub { margin-top: 6px; margin-bottom: 18px; font-size: .98rem; color: var(--muted); }

.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 6px; min-width: 0; }
.field__label { font-size: .92rem; font-weight: 650; color: var(--ink); }
.field__label span { color: var(--danger); }
.field__hint { font-size: .85rem; color: var(--muted); }

.input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid #c5d0e4; border-radius: var(--radius-s);
  background: #fff; color: var(--ink);
  font: inherit; font-size: 1rem; line-height: 1.3;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #8c98b1; }
.input:hover { border-color: #9fb0d0; }
.input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(19, 72, 184, .16); }
select.input {
  appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1b3d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
textarea.input { min-height: 112px; resize: vertical; }

.field.is-invalid .input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(198, 40, 40, .12); }
.field__error { display: none; font-size: .87rem; font-weight: 600; color: var(--danger); }
.field.is-invalid .field__error { display: block; }

.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border: 1.5px solid #c5d0e4; border-radius: 100px; font-weight: 600; color: var(--ink);
  transition: background-color .15s, border-color .15s, color .15s;
}
.choice input:checked + span { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 3px; }

.form__note { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; color: var(--muted); line-height: 1.45; }
.form__note .icon { color: var(--wa); margin-top: 1px; width: 1.1em; height: 1.1em; }

.form__status {
  display: none; padding: 14px 16px; border-radius: var(--radius-s);
  background: #e9f7ef; border: 1px solid #b5dfc5; color: #0a4f29; font-size: .96rem;
}
.form__status.is-visible { display: block; }
.form__status a { color: #0a4f29; font-weight: 700; }

/* 9. Home sections -------------------------------------------------------- */

/* 9a. Promise strip under the hero */
.promise { background: #fff; border-bottom: 1px solid var(--line); }
.promise__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.promise__item {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 20px; border-left: 1px solid var(--line);
}
.promise__item:first-child { border-left: 0; padding-left: 0; }
.promise__icon {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px;
  border-radius: 12px; background: var(--paper); color: var(--cobalt);
}
.promise__icon .icon { width: 24px; height: 24px; }
.promise__item b { display: block; font-family: var(--font-display); font-size: 1.06rem; color: var(--ink); line-height: 1.2; }
.promise__item span { font-size: .92rem; color: var(--muted); line-height: 1.35; display: block; margin-top: 2px; }
@media (max-width: 960px) {
  .promise__list { grid-template-columns: 1fr 1fr; }
  .promise__item { padding: 18px 14px; }
  .promise__item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .promise__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .promise__item { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* 9b. Services: one ruled sheet, like a job card, instead of floating cards */
.service-sheet {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden;
}
.service-tile {
  position: relative; padding: 28px 26px 26px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--body);
  transition: background-color .2s ease;
}
.service-tile:hover { background: var(--paper); color: var(--body); }
.service-tile__icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px;
  border-radius: 14px; background: var(--cobalt); color: #fff;
  transition: background-color .2s ease, transform .2s ease;
}
.service-tile:hover .service-tile__icon { background: var(--ink); transform: rotate(-6deg); }
.service-tile__icon .icon { width: 26px; height: 26px; }
.service-tile p { margin-top: 8px; font-size: 1rem; }
.service-tile__more { display: inline-block; margin-top: 14px; color: var(--cobalt); font-weight: 700; font-size: .97rem; }
.service-tile:hover .service-tile__more { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 901px) {
  .service-tile:nth-child(3n) { border-right: 0; }
  .service-tile:nth-last-child(-n+3) { border-bottom: 0; }
}
@media (max-width: 900px) and (min-width: 601px) {
  .service-sheet { grid-template-columns: 1fr 1fr; }
  .service-tile:nth-child(2n) { border-right: 0; }
  .service-tile:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 600px) {
  .service-sheet { grid-template-columns: 1fr; }
  .service-tile { border-right: 0; padding: 22px 20px; }
  .service-tile:last-child { border-bottom: 0; }
}
.section-foot { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }

/* 9c. Why us: photo + reasons */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.split--flip > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
}

.photo { position: relative; }
.photo img { width: 100%; border-radius: var(--radius-l); object-fit: cover; background: var(--line); }
.photo--tall img { aspect-ratio: 9 / 10; }
.photo--wide img { aspect-ratio: 4 / 3; }
.photo__badge {
  position: absolute; right: -14px; bottom: 28px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius-m);
  background: var(--sun); color: var(--ink); box-shadow: var(--shadow-card);
  font-weight: 650; line-height: 1.2; max-width: 230px;
}
.photo__badge b { font-family: var(--font-display); font-size: 2.3rem; line-height: 1; letter-spacing: -.03em; }
@media (max-width: 900px) { .photo__badge { right: 12px; bottom: 12px; } .photo--tall img { aspect-ratio: 4 / 3; } }

.reasons { display: grid; gap: 22px; margin-top: 28px; }
.reason { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.reason__icon {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1.5px solid var(--line); color: var(--cobalt); background: #fff;
}
.reason p { margin-top: 4px; }

/* 9d. Process: a real four-step sequence, so the numbers mean something */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 24px 0 0; counter-increment: step; }
.step::before {
  content: counter(step);
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px;
  border-radius: 50%; background: var(--sun); color: var(--ink);
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  position: relative; z-index: 1;
}
.step::after {
  content: ""; position: absolute; top: 25px; left: 52px; right: 0; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 6px, transparent 6px 12px);
}
.step:last-child::after { display: none; }
.step p { margin-top: 8px; font-size: 1rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step { padding: 0 0 0 72px; min-height: 52px; }
  .step::before { position: absolute; left: 0; top: 0; margin: 0; }
  .step::after { top: 52px; bottom: -28px; left: 25px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .35) 0 6px, transparent 6px 12px); }
}
.steps--light .step::after { background: repeating-linear-gradient(90deg, #b9c6df 0 6px, transparent 6px 12px); }
@media (max-width: 900px) {
  .steps--light .step::after { background: repeating-linear-gradient(180deg, #b9c6df 0 6px, transparent 6px 12px); }
}

/* 9e. Brands + areas */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 100px; background: #fff;
  color: var(--ink); font-weight: 600; font-size: .98rem;
}
.chip .icon { color: var(--cobalt); width: 1em; height: 1em; }
.chip--more { background: var(--ink); border-color: var(--ink); color: #fff; }

.notice {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; margin-top: 28px;
  padding: 18px 20px; border-radius: var(--radius-m);
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--cobalt);
  font-size: .97rem;
}
.notice .icon { color: var(--cobalt); margin-top: 3px; }
.section--paper .notice { background: #fff; }

/* 9f. WhatsApp photo band (the logo gradient gets its one big moment here) */
.photo-band {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center;
  padding: clamp(28px, 5vw, 52px);
  border-radius: var(--radius-l);
  background: linear-gradient(105deg, var(--cobalt-deep) 0%, var(--cobalt) 45%, #6b55cf 78%, var(--violet) 100%);
  color: #e4ebff;
}
.photo-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.photo-band p { margin-top: 10px; max-width: 620px; }
.photo-band__actions { display: grid; gap: 10px; }
@media (max-width: 820px) { .photo-band { grid-template-columns: 1fr; } }

/* 9g. FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 72px); align-items: start; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } }
.faq-aside { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 900px) { .faq-aside { position: static; } }
.faq-aside p { margin-top: 14px; }
.faq-aside .btn-row { margin-top: 24px; }

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 1.16rem; font-weight: 650; color: var(--ink); line-height: 1.3;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon {
  width: 34px; height: 34px; padding: 7px; border-radius: 50%;
  background: var(--paper); color: var(--cobalt); transition: transform .25s ease, background-color .2s, color .2s;
}
.faq__item[open] summary .icon { transform: rotate(180deg); background: var(--cobalt); color: #fff; }
.faq__answer { padding: 0 50px 22px 0; }
.faq__answer p + p { margin-top: 10px; }

/* 9h. Closing call to action */
.cta-final { background: var(--ink); color: #c9d5ee; text-align: center; padding-block: clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.cta-final h2 { color: #fff; max-width: 780px; margin-inline: auto; }
.cta-final p { margin: 16px auto 0; max-width: 620px; font-size: 1.12rem; }
.cta-final .btn-row { justify-content: center; margin-top: 30px; }
@media (max-width: 560px) { .cta-final .btn-row .btn { width: 100%; } }
.cta-final__phone {
  display: inline-block; margin-top: 26px; font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 700; letter-spacing: -.02em;
  color: var(--sun); text-decoration: none;
}
.cta-final__phone:hover { color: #fff; }

/* 10. TV checker ---------------------------------------------------------- */
.checker {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "head tv" "pick tv" "result tv";
  column-gap: clamp(28px, 5vw, 64px); align-items: start;
}
.checker__head { grid-area: head; }
.checker__head p { margin-top: 14px; font-size: 1.12rem; }
.checker__tv { grid-area: tv; position: sticky; top: calc(var(--header-h) + 28px); padding-top: 8px; }
.checker__pick { grid-area: pick; }
.checker__result { grid-area: result; }
.checker__tvnote { margin-top: 18px; text-align: center; font-size: .92rem; color: var(--muted); }
@media (max-width: 900px) {
  .checker { grid-template-columns: 1fr; grid-template-areas: "head" "tv" "pick" "result"; }
  .checker__tv { position: static; margin-top: 24px; }
}

.tv { width: 100%; max-width: 560px; margin-inline: auto; }
.tv__bezel {
  position: relative; padding: 10px 10px 22px; border-radius: 16px;
  background: linear-gradient(180deg, #1c2333, #0c111c);
  box-shadow: 0 30px 50px -28px rgba(11, 27, 61, .8), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.tv__screen { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; }
.tv__led {
  position: absolute; left: 50%; bottom: 8px; width: 7px; height: 7px; margin-left: -3px;
  border-radius: 50%; background: #2ad06f; box-shadow: 0 0 8px #2ad06f;
}
.tv__stand { display: flex; justify-content: space-between; width: 62%; margin: 0 auto; }
.tv__stand i { display: block; width: 46px; height: 14px; background: #0c111c; clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }

/* The healthy picture: a broadcast test card */
.tv__picture {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 0 72%, #0a1020 72% 100%),
    linear-gradient(90deg,
      #d9dde6 0 14.285%, #f2c500 0 28.57%, #25c2d6 0 42.855%, #26b85c 0 57.14%,
      #b14fd8 0 71.425%, #de3d43 0 85.71%, #1a49c4 0);
  transition: opacity .35s ease, filter .35s ease;
}
.tv__picture::after {
  content: "RV ELECTRONICS";
  position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%);
  color: #fff; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(.7rem, 2.2vw, 1.05rem); letter-spacing: .14em; white-space: nowrap;
}
.tv__layer { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.tv__caption {
  position: absolute; left: 10px; top: 10px; z-index: 5;
  padding: 5px 10px; border-radius: 6px; background: rgba(0, 0, 0, .7); color: #fff;
  font-size: .82rem; font-weight: 600; line-height: 1.3;
}

/* Fault: sound is there but the screen is dark */
.tv[data-state="no-picture"] .tv__picture { opacity: .035; }
.tv[data-state="no-picture"] .tv__layer--sound { opacity: 1; }
.tv__layer--sound { display: grid; place-items: center; color: #7f8aa3; }
.tv__layer--sound .icon { width: 18%; height: auto; }

/* Fault: lines across the picture */
.tv[data-state="lines"] .tv__layer--lines { opacity: 1; }
.tv__layer--lines {
  background:
    linear-gradient(90deg, transparent 22%, #fff 22% 22.5%, transparent 22.5% 23.4%, #19f0ff 23.4% 23.8%, transparent 23.8% 61%, #ff3bd4 61% 61.6%, transparent 61.6% 62.4%, #0b0b0b 62.4% 64.5%, transparent 64.5% 83%, #37ff6b 83% 83.4%, transparent 83.4%),
    linear-gradient(180deg, transparent 38%, rgba(255, 255, 255, .5) 38% 39%, transparent 39% 40%, rgba(0, 0, 0, .55) 40% 44%, transparent 44%);
}

/* Fault: completely dead */
.tv[data-state="dead"] .tv__picture { opacity: 0; }
.tv[data-state="dead"] .tv__led { background: #39404f; box-shadow: none; }

/* Fault: switches off by itself */
.tv[data-state="restart"] .tv__picture { animation: tv-restart 4.2s infinite; }
.tv[data-state="restart"] .tv__led { animation: tv-led 4.2s infinite; }
@keyframes tv-restart {
  0%, 52% { opacity: 1; filter: none; }
  54% { opacity: .5; filter: brightness(2.2); }
  56% { opacity: 1; }
  58%, 92% { opacity: 0; }
  96% { opacity: .4; filter: brightness(1.8); }
  100% { opacity: 1; }
}
@keyframes tv-led {
  0%, 56% { background: #2ad06f; box-shadow: 0 0 8px #2ad06f; }
  58%, 92% { background: #e5484d; box-shadow: 0 0 8px #e5484d; }
  100% { background: #2ad06f; box-shadow: 0 0 8px #2ad06f; }
}

/* Fault: picture fine, no sound */
.tv[data-state="no-sound"] .tv__layer--mute { opacity: 1; }
.tv__layer--mute { display: grid; place-items: center; }
.tv__layer--mute span {
  display: grid; place-items: center; width: 22%; aspect-ratio: 1;
  border-radius: 50%; background: rgba(0, 0, 0, .72); color: #fff;
}
.tv__layer--mute .icon { width: 52%; height: auto; }

/* Fault: dark patches from a failing backlight */
.tv[data-state="dark-patch"] .tv__picture { filter: brightness(.82) saturate(.85); }
.tv[data-state="dark-patch"] .tv__layer--patch { opacity: 1; }
.tv__layer--patch {
  background:
    radial-gradient(ellipse 34% 60% at 18% 42%, rgba(0, 0, 0, .9), transparent 70%),
    radial-gradient(ellipse 22% 40% at 70% 70%, rgba(0, 0, 0, .78), transparent 70%),
    linear-gradient(90deg, rgba(0, 0, 0, .5), transparent 55%);
}

/* Fault: Smart TV stuck on the logo */
.tv[data-state="logo-stuck"] .tv__picture { opacity: 0; }
.tv[data-state="logo-stuck"] .tv__layer--boot { opacity: 1; }
.tv__layer--boot { display: grid; place-items: center; align-content: center; gap: 8%; background: #05070d; color: #fff; }
.tv__layer--boot b { font-family: var(--font-display); font-size: clamp(1rem, 3.6vw, 1.7rem); letter-spacing: .08em; }
.tv__layer--boot i {
  width: 9%; aspect-ratio: 1; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .2); border-top-color: var(--cyan);
  animation: tv-spin 1s linear infinite;
}
@keyframes tv-spin { to { transform: rotate(360deg); } }

/* Fault: cracked panel */
.tv[data-state="cracked"] .tv__layer--crack { opacity: 1; }
.tv__layer--crack svg { width: 100%; height: 100%; }

.symptoms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
.symptom {
  display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-m); background: #fff;
  color: var(--ink); font: inherit; font-weight: 650; font-size: .99rem; line-height: 1.25; text-align: left;
  cursor: pointer; transition: border-color .15s, background-color .15s, color .15s, transform .15s;
}
.symptom .icon { color: var(--cobalt); width: 22px; height: 22px; }
.symptom:hover { border-color: var(--cobalt); transform: translateY(-1px); }
.symptom[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.symptom[aria-pressed="true"] .icon { color: var(--sun); }
@media (max-width: 480px) {
  .symptoms { gap: 8px; }
  .symptom { gap: 9px; padding: 10px; font-size: .92rem; min-height: 60px; }
  .symptom .icon { width: 20px; height: 20px; }
}
@media (max-width: 330px) { .symptoms { grid-template-columns: 1fr; } }

.diagnosis {
  margin-top: 26px; padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-l); background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.diagnosis dl { margin: 16px 0 0; display: grid; gap: 14px; }
.diagnosis dt { font-weight: 700; color: var(--ink); font-size: .95rem; }
.diagnosis dd { margin: 3px 0 0; }
.diagnosis .btn-row { margin-top: 22px; }
.diagnosis__small { margin-top: 14px; font-size: .86rem; color: var(--muted); }
.diagnosis.is-swapping { animation: diagnosis-in .35s ease; }
@keyframes diagnosis-in { from { opacity: .2; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 11. Inner pages --------------------------------------------------------- */
.page-hero { position: relative; isolation: isolate; background: var(--ink); color: #dbe5fa; overflow: hidden; }
.page-hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(8, 20, 52, .95) 0%, rgba(11, 38, 108, .88) 50%, rgba(19, 72, 184, .5) 100%);
}
.page-hero__inner { padding-block: clamp(44px, 7vw, 88px); max-width: 780px; }
.page-hero h1 { color: #fff; }
.page-hero p { margin-top: 16px; font-size: 1.16rem; }
.page-hero .btn-row { margin-top: 26px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: .93rem; color: #b9c8ea; }
.crumbs a { color: #fff; text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }

.prose > * + * { margin-top: 16px; }
.prose h2 + p, .prose h3 + p { margin-top: 14px; }

.checklist { display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.checklist .icon { margin-top: 3px; color: #fff; background: var(--wa); border-radius: 50%; padding: 4px; width: 24px; height: 24px; stroke-width: 3; }
.checklist--two { grid-template-columns: 1fr 1fr; gap: 12px 28px; }
@media (max-width: 640px) { .checklist--two { grid-template-columns: 1fr; } }

/* About: three plain commitments */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { padding: 28px 26px; border-radius: var(--radius-l); background: #fff; border: 1px solid var(--line); }
.value__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--paper); color: var(--cobalt); margin-bottom: 18px; }
.value__icon .icon { width: 26px; height: 26px; }
.value p { margin-top: 8px; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr; } }

/* Services page: long-form rows with photo */
.service-row {
  display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(24px, 5vw, 60px);
  align-items: center; padding-block: clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line);
}
.service-row:first-of-type { padding-top: 0; }
.service-row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.service-row:nth-of-type(even) .service-row__media { order: 2; }
.service-row__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-l); background: var(--line); }
.service-row__head { display: flex; align-items: center; gap: 14px; }
.service-row__head .service-tile__icon { margin: 0; flex: none; }
.service-row h2 { font-size: clamp(1.45rem, 2.8vw, 1.95rem); }
.service-row p { margin-top: 14px; }
.service-row .checklist { margin-top: 18px; }
.service-row .btn-row { margin-top: 24px; }
@media (max-width: 860px) {
  .service-row { grid-template-columns: 1fr; }
  .service-row:nth-of-type(even) .service-row__media { order: 0; }
}

.jump { background: #fff; border-bottom: 1px solid var(--line); }
.jump__list { display: flex; gap: 8px; overflow-x: auto; padding-block: 14px; scrollbar-width: thin; }
.jump__list a {
  flex: none; padding: 8px 16px; border-radius: 100px; border: 1px solid var(--line);
  color: var(--ink); font-weight: 600; font-size: .96rem; text-decoration: none; white-space: nowrap;
}
.jump__list a:hover { border-color: var(--cobalt); color: var(--cobalt); }

/* Fault table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-l); background: #fff; }
.table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 1rem; }
.table th, .table td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 650; font-size: 1rem; }
.table tbody th { color: var(--ink); font-weight: 700; width: 30%; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }

/* Care tips */
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; background: #fff; }
.tip { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tip h3 { font-size: 1.08rem; }
.tip p { margin-top: 6px; font-size: .98rem; }
@media (min-width: 901px) { .tip:nth-child(3n) { border-right: 0; } .tip:nth-last-child(-n+3) { border-bottom: 0; } }
@media (max-width: 900px) { .tips { grid-template-columns: 1fr; } .tip { border-right: 0; } .tip:last-child { border-bottom: 0; } }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 940px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-cards { display: grid; gap: 14px; margin-top: 26px; }
.contact-card {
  display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center;
  padding: 18px 20px; border-radius: var(--radius-m); border: 1px solid var(--line); background: #fff;
  color: var(--body); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s;
}
a.contact-card:hover { border-color: var(--cobalt); transform: translateY(-2px); box-shadow: var(--shadow-card); color: var(--body); }
.contact-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--paper); color: var(--cobalt); }
.contact-card__icon .icon { width: 24px; height: 24px; }
.contact-card--call .contact-card__icon { background: var(--sun); color: var(--ink); }
.contact-card--wa .contact-card__icon { background: var(--wa); color: #fff; }
.contact-card__text small { display: block; font-size: .88rem; color: var(--muted); }
.contact-card__text b { display: block; font-family: var(--font-display); font-size: 1.18rem; color: var(--ink); line-height: 1.25; }
.contact-card__text span { display: block; font-size: .95rem; line-height: 1.4; }

.lead-card--flat { box-shadow: var(--shadow-card); border: 1px solid var(--line); }

.map { border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.map iframe { width: 100%; height: clamp(300px, 42vw, 440px); border: 0; }

/* 12. Footer -------------------------------------------------------------- */
.footer { background: #071330; color: #aebbd8; font-size: .98rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: 40px; padding-block: clamp(44px, 6vw, 72px); }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }
.footer__logo { display: inline-block; padding: 10px 14px; border-radius: var(--radius-m); background: #fff; }
.footer__logo img { height: 54px; width: auto; }
.footer__about { margin-top: 18px; max-width: 340px; }
.footer h2 { font-size: 1.05rem; color: #fff; margin-bottom: 16px; letter-spacing: 0; }
.footer__links { display: grid; gap: 10px; }
.footer a { color: #d5def2; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__contact { display: grid; gap: 14px; }
.footer__contact li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.footer__contact .icon { color: var(--cyan); margin-top: 3px; }
.footer__disclaimer { padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .87rem; color: #8f9dbd; line-height: 1.55; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; }

/* 13. Floating bars + dialog --------------------------------------------- */
.float-wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 14px 30px -10px rgba(10, 108, 54, .8);
  transition: transform .2s ease;
}
.float-wa:hover { transform: scale(1.08); color: #fff; }
/* Stays out of the way on the first screen, where the header and hero already
   offer WhatsApp, then slides in once the visitor scrolls. */
.js .float-wa { opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .25s ease, transform .25s ease, visibility .25s; }
.js.is-past-top .float-wa { opacity: 1; visibility: visible; transform: none; }
.js.is-past-top .float-wa:hover { transform: scale(1.08); }
.float-wa .icon { width: 32px; height: 32px; }
.float-wa::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366; animation: wa-ring 2.6s ease-out infinite;
}
@keyframes wa-ring { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.7); opacity: 0; } }

.mobile-bar { display: none; }
@media (max-width: 760px) {
  .float-wa { display: none; }
  body { padding-bottom: 66px; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    background: #fff; box-shadow: 0 -8px 24px -10px rgba(11, 27, 61, .35);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar__btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 62px; padding: 8px 4px; border: 0; font: inherit; font-size: .86rem; font-weight: 700;
    text-decoration: none; cursor: pointer;
  }
  .mobile-bar__btn .icon { width: 22px; height: 22px; }
  .mobile-bar__btn--call { background: var(--sun); color: var(--ink); }
  .mobile-bar__btn--wa { background: var(--wa); color: #fff; }
  .mobile-bar__btn--book { background: var(--cobalt); color: #fff; }
}

.dialog {
  width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: var(--radius-l); background: #fff; color: var(--body);
  box-shadow: var(--shadow-pop); overflow: auto;
}
.dialog::backdrop { background: rgba(6, 14, 36, .68); backdrop-filter: blur(3px); }
.dialog[open] { animation: dialog-in .25s ease; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.dialog__body { position: relative; padding: clamp(22px, 4vw, 32px); }
.dialog__close {
  position: absolute; right: 14px; top: 14px; display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: var(--paper); color: var(--ink); cursor: pointer;
}
.dialog__close:hover { background: var(--line); }
.dialog h2 { font-size: 1.55rem; padding-right: 44px; }

/* 14. Motion -------------------------------------------------------------- */
/* Content is only hidden when JavaScript is running (html.js), so nothing
   disappears if the script fails to load. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* 15. Print --------------------------------------------------------------- */
@media print {
  .header, .topbar, .float-wa, .mobile-bar, .hero__media, .dialog { display: none !important; }
  body { padding: 0; }
}
