/* ==========================================================================
   Horizon Quality Roofing Inc. — Roofing Website
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --ink: #0d1014;
  --ink-2: #13171d;
  --ink-3: #1b2028;
  --paper: #f6f3ee;
  --paper-2: #ede8e0;
  --white: #ffffff;
  --accent: #d98a4e;
  --accent-2: #c2703a;
  --accent-soft: rgba(217, 138, 78, 0.14);
  --text: #16191e;
  --muted: #676c75;
  --muted-light: rgba(255, 255, 255, 0.62);
  --line: rgba(13, 16, 20, 0.1);
  --line-light: rgba(255, 255, 255, 0.1);

  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1280px;
  --header-h: 84px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow-sm: 0 2px 8px rgba(13, 16, 20, 0.06);
  --shadow: 0 20px 50px -20px rgba(13, 16, 20, 0.25);
  --shadow-lg: 0 40px 80px -30px rgba(13, 16, 20, 0.45);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

/* Subtle film grain for a tactile, premium finish */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

::selection { background: var(--accent); color: var(--white); }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.section { padding-block: clamp(80px, 11vw, 150px); position: relative; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 22px;
}
.eyebrow__line { width: 28px; height: 1.5px; background: currentColor; display: inline-block; }
.eyebrow--light { color: var(--accent); }

.section-title {
  font-size: clamp(2.15rem, 4.3vw, 3.65rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 17ch;
  text-wrap: balance;
}
.section-title em,
.hero__title em,
.footer__cta em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent-2);
  font-size: 1.08em;
  line-height: 0.9;
}
.section-title--light { color: var(--white); }
.section-title--light em { color: var(--accent); }

.lead { font-size: 1.12rem; color: var(--muted); max-width: 54ch; margin-top: 24px; }
.lead--light { color: var(--muted-light); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid transparent;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.3s, border-color 0.3s, background 0.3s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-hover, rgba(255, 255, 255, 0.14));
  transform: translateY(101%);
  border-radius: inherit;
  transition: transform 0.5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { transform: translateY(-2px); }
.btn__arrow { width: 18px; height: 18px; stroke-width: 2.2; transition: transform 0.4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--ink); --btn-hover: #e9a06a; box-shadow: 0 12px 30px -12px rgba(217, 138, 78, 0.7); }
.btn--accent:hover { box-shadow: 0 18px 40px -12px rgba(217, 138, 78, 0.85); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--white); --btn-hover: var(--ink-3); }
.btn--ghost-light { --btn-bg: rgba(255, 255, 255, 0.06); --btn-fg: var(--white); border-color: rgba(255, 255, 255, 0.28); backdrop-filter: blur(10px); }
.btn--ghost-light:hover { border-color: rgba(255, 255, 255, 0.6); }
.btn--sm { padding: 11px 20px; font-size: 0.88rem; }
.btn--lg { padding: 18px 32px; font-size: 1rem; }
.btn--block { width: 100%; }

.play {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--ink);
  margin-left: -8px;
}
.play svg { width: 12px; height: 12px; fill: currentColor; stroke: none; margin-left: 2px; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--ink);
  display: grid; place-items: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.preloader__mark { width: 72px; height: 72px; stroke-width: 3; }
.preloader__mark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 1.1s var(--ease) forwards; }
.preloader__mark path:first-child { stroke: var(--accent); }
.preloader__mark path:last-child { stroke: var(--white); animation-delay: 0.25s; }
.is-loaded .preloader { opacity: 0; visibility: hidden; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  color: var(--white);
  transition: transform 0.5s var(--ease), background 0.4s, box-shadow 0.4s;
}
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(13, 16, 20, 0.82);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  opacity: 0;
  transition: opacity 0.4s;
}
.header.is-scrolled::before { opacity: 1; }
.header.is-scrolled { box-shadow: 0 1px 0 var(--line-light); }
.header.is-hidden { transform: translateY(-100%); }

.topbar { font-size: 0.8rem; color: rgba(255, 255, 255, 0.7); border-bottom: 1px solid var(--line-light); overflow: hidden; max-height: 44px; transition: max-height 0.4s var(--ease), opacity 0.3s; }
.header.is-scrolled .topbar { max-height: 0; opacity: 0; border-color: transparent; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 42px; gap: 20px; }
.topbar__note { display: flex; align-items: center; gap: 10px; }
.topbar__links { display: flex; align-items: center; gap: 16px; }
.topbar__links a:hover { color: var(--white); }
.topbar__sep { width: 1px; height: 12px; background: var(--line-light); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }

.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; transition: height 0.4s var(--ease); }
.header.is-scrolled .nav { height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 12px; font-size: 1.3rem; font-weight: 500; letter-spacing: -0.03em; }
.logo__mark { width: 40px; height: 40px; stroke-width: 3.2; }
.logo__mark rect { fill: var(--white); stroke: none; }
.logo__a { stroke: var(--accent); }
.logo__b { stroke: var(--ink); }
.logo b { font-weight: 800; }
.logo:hover .logo__a { animation: bob 0.6s var(--ease); }
@keyframes bob { 50% { transform: translateY(-2px); } }

.nav__menu ul { display: flex; gap: 6px; }
.nav__menu ul a {
  position: relative;
  padding: 10px 14px;
  font-size: 0.93rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  border-radius: 100px;
  transition: color 0.3s, background 0.3s;
}
.nav__menu ul a:hover,
.nav__menu ul a.is-active { color: var(--white); background: rgba(255, 255, 255, 0.08); }
.nav__mobile-cta { display: none; }

.nav__actions { display: flex; align-items: center; gap: 22px; }
.nav__phone { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 0.95rem; }
.nav__phone small { display: block; font-size: 0.72rem; font-weight: 500; color: rgba(255, 255, 255, 0.6); line-height: 1.2; }
.nav__phone-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.2); transition: background 0.3s, border-color 0.3s; }
.nav__phone-icon svg { width: 17px; height: 17px; }
.nav__phone:hover .nav__phone-icon { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22); position: relative; z-index: 2; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.8px; background: currentColor; border-radius: 2px; transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger.is-open span:first-child { top: 21px; transform: rotate(45deg); }
.burger.is-open span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; transform: scale(1.12); transition: transform 2.4s var(--ease); }
.is-loaded .hero__media img { transform: scale(1.02); }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 12, 16, 0.92) 0%, rgba(10, 12, 16, 0.7) 38%, rgba(10, 12, 16, 0.15) 75%, rgba(10, 12, 16, 0.3) 100%),
    linear-gradient(0deg, rgba(10, 12, 16, 0.85) 0%, rgba(10, 12, 16, 0) 35%),
    linear-gradient(180deg, rgba(10, 12, 16, 0.6) 0%, rgba(10, 12, 16, 0) 22%);
}

.hero__inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 48px;
  padding-top: calc(var(--header-h) + 42px + 60px);
  padding-bottom: 60px;
}
.hero__content { max-width: 820px; }
.hero__title {
  font-size: clamp(2.7rem, 5.8vw, 5.1rem);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero__title em { color: var(--accent); }
.hero__lead { margin-top: 28px; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: rgba(255, 255, 255, 0.75); max-width: 52ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero__proof { display: flex; align-items: center; gap: 18px; margin-top: 48px; }
.hero__proof p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.7); }
.hero__proof b { color: var(--white); }
.avatars { display: flex; }
.avatars span {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 700;
  background: linear-gradient(135deg, hsl(var(--h) 45% 55%), hsl(calc(var(--h) + 30) 40% 35%));
  border: 2.5px solid var(--ink);
  margin-left: -12px;
}
.avatars span:first-child { margin-left: 0; }

.stars { display: flex; align-items: center; gap: 2px; color: #ffc65c; }
.stars svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.stars strong { margin-left: 8px; color: var(--white); font-size: 0.95rem; }
.stars--accent { color: var(--accent); }

.hero__card {
  width: 340px;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}
.hero__card-head { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 600; color: #1e8a50; margin-bottom: 14px; }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 4px rgba(47, 191, 113, 0.18); }
.hero__card h3 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.025em; margin-bottom: 18px; }
.hero__card-list { display: grid; gap: 11px; margin-bottom: 24px; }
.hero__card-list li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--muted); }
.hero__card-list svg { width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); stroke-width: 3; }

.hero__bottom { border-top: 1px solid var(--line-light); background: rgba(10, 12, 16, 0.35); backdrop-filter: blur(12px); }
.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero__stats > div { padding: 26px 0 26px 28px; border-left: 1px solid var(--line-light); }
.hero__stats > div:first-child { border-left: 0; padding-left: 0; }
.hero__stats strong { font-family: var(--font-serif); font-weight: 400; font-size: 2.4rem; line-height: 1; letter-spacing: -0.02em; }
.hero__stats strong span { color: var(--accent); font-size: 0.6em; margin-left: 2px; }
.hero__stats p { font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); margin-top: 6px; }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: rgba(255, 255, 255, 0.55); border-top: 1px solid var(--line-light); overflow: hidden; padding-block: 28px; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 48px; padding-right: 48px; }
.mq { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; transition: color 0.3s; }
.mq i { font-family: var(--font-serif); font-weight: 400; font-size: 1.15em; margin-left: 4px; }
.mq:hover { color: var(--white); }
.mq-dot { width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.about__media { position: relative; }
.about__img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.about__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about__media:hover .about__img img { transform: scale(1.04); }

.about__badge {
  position: absolute; top: 40px; right: -46px;
  width: 128px; height: 128px; border-radius: 50%;
  background: var(--ink); color: var(--white);
  display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.about__badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.about__badge-ring text { fill: rgba(255, 255, 255, 0.85); stroke: none; font-size: 9.5px; font-weight: 700; letter-spacing: 2px; font-family: var(--font-sans); }
.about__badge-icon { width: 38px; height: 38px; stroke-width: 3.2; }
.about__badge-icon path:first-child { stroke: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

.about__float {
  position: absolute; left: -36px; bottom: 48px;
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px 18px 18px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.about__float strong { display: block; font-size: 0.98rem; letter-spacing: -0.02em; }
.about__float p { font-size: 0.82rem; color: var(--muted); }
.about__float-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); }
.about__float-icon svg { width: 24px; height: 24px; }
@keyframes float { 50% { transform: translateY(-10px); } }

.about__features { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--line); }
.feature { display: flex; gap: 16px; }
.feature__icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); color: var(--accent-2); transition: background 0.3s, color 0.3s, transform 0.4s var(--ease); }
.feature__icon svg { width: 22px; height: 22px; }
.feature:hover .feature__icon { background: var(--ink); color: var(--accent); transform: rotate(-6deg); }
.feature h4 { font-size: 1.02rem; letter-spacing: -0.02em; margin-bottom: 4px; }
.feature p { font-size: 0.9rem; color: var(--muted); line-height: 1.55; }

.about__footer { display: flex; align-items: center; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.signature { display: flex; flex-direction: column; padding-left: 32px; border-left: 1px solid var(--line); }
.signature__name { font-family: var(--font-serif); font-style: italic; font-size: 1.8rem; line-height: 1; color: var(--ink); }
.signature__role { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

/* ---------- Section head ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(48px, 6vw, 72px); }
.section-head__text { max-width: 42ch; color: var(--muted-light); font-size: 1.02rem; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .section-title { margin-inline: auto; }

/* ---------- Services ---------- */
.services { background: var(--ink); color: var(--white); overflow: hidden; }
.services::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -300px;
  background: radial-gradient(circle, rgba(217, 138, 78, 0.12), transparent 60%);
  pointer-events: none;
}
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.service {
  position: relative;
  display: flex; flex-direction: column;
  padding: 40px 34px 34px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-2), var(--ink-2));
  border: 1px solid var(--line-light);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.5s var(--ease), border-color 0.4s, background 0.4s;
}
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(217, 138, 78, 0.16), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
.service:hover { transform: translateY(-6px); border-color: rgba(217, 138, 78, 0.45); }
.service:hover::before { opacity: 1; }
.service__num { position: absolute; top: 30px; right: 32px; font-family: var(--font-serif); font-size: 1.5rem; color: rgba(255, 255, 255, 0.22); }
.service__icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-light); color: var(--accent); margin-bottom: 32px; transition: background 0.4s, color 0.4s, transform 0.5s var(--ease); }
.service__icon svg { width: 28px; height: 28px; stroke-width: 1.6; }
.service:hover .service__icon { background: var(--accent); color: var(--ink); transform: scale(1.06) rotate(-4deg); }
.service h3 { font-size: 1.4rem; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 12px; }
.service p { color: var(--muted-light); font-size: 0.95rem; margin-bottom: 22px; }
.service ul { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.service li { font-size: 0.76rem; font-weight: 600; padding: 6px 12px; border-radius: 100px; background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.8); }
.service__link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem; padding-top: 22px; border-top: 1px solid var(--line-light); }
.service__link svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.service:hover .service__link svg { transform: translate(3px, -3px); color: var(--accent); }

.service--featured { background: linear-gradient(160deg, #e29a62 0%, var(--accent-2) 100%); border-color: transparent; color: var(--ink); }
.service--featured .service__num { color: rgba(13, 16, 20, 0.35); }
.service--featured .service__icon { background: var(--ink); color: var(--accent); border-color: transparent; }
.service--featured p { color: rgba(13, 16, 20, 0.75); }
.service--featured li { background: rgba(13, 16, 20, 0.12); color: var(--ink); }
.service--featured .service__link { border-color: rgba(13, 16, 20, 0.18); }
.service--featured:hover { border-color: transparent; }
.service--featured:hover .service__icon { background: var(--ink); color: var(--accent); }
.service--featured:hover .service__link svg { color: var(--ink); }
.service--featured::before { background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.25), transparent 45%); }

/* ---------- Before / After ---------- */
.compare { background: var(--paper); }
.compare__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.compare__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.compare__specs div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.compare__specs div:nth-child(odd) { padding-right: 20px; border-right: 1px solid var(--line); }
.compare__specs div:nth-child(even) { padding-left: 24px; }
.compare__specs dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; color: var(--muted); }
.compare__specs dd { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; }

.ba {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 10.5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  user-select: none;
  touch-action: pan-y;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__label { position: absolute; top: 22px; padding: 8px 16px; border-radius: 100px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; background: rgba(13, 16, 20, 0.6); color: var(--white); backdrop-filter: blur(10px); pointer-events: none; }
.ba__label--before { left: 22px; }
.ba__label--after { right: 22px; background: var(--accent); color: var(--ink); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--white); transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); }
.ba__knob { position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; border-radius: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; background: var(--white); color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); transition: transform 0.3s var(--ease); }
.ba__knob svg { width: 22px; height: 22px; stroke-width: 2.2; }
.ba:hover .ba__knob { transform: translate(-50%, -50%) scale(1.08); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; margin: 0; }
.ba__range { pointer-events: none; }
.ba { cursor: ew-resize; }
.ba:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }
.ba.is-dragging .ba__knob { transform: translate(-50%, -50%) scale(0.94); }

/* ---------- Stats ---------- */
.stats { background: var(--paper-2); border-block: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(40px, 5vw, 64px) 32px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font-family: var(--font-serif); font-weight: 400; font-size: clamp(3rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.stat p { margin-top: 12px; color: var(--muted); font-size: 0.95rem; max-width: 22ch; }

/* ---------- Projects ---------- */
.projects { background: var(--paper); }
.section-head--dark .section-head__text { color: var(--muted); }
.filters { display: flex; gap: 6px; padding: 6px; border-radius: 100px; background: var(--white); border: 1px solid var(--line); flex-wrap: wrap; }
.filter { padding: 10px 20px; border-radius: 100px; font-weight: 600; font-size: 0.88rem; color: var(--muted); transition: background 0.3s, color 0.3s; }
.filter:hover { color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--white); }

.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 300px; gap: 20px; }
.project { position: relative; border-radius: var(--radius); overflow: hidden; color: var(--white); cursor: pointer; isolation: isolate; background: var(--ink); }
.project--lg { grid-column: span 2; grid-row: span 2; }
.project--wide { grid-column: 1 / -1; grid-row: span 1; }
.projects__grid.is-filtered .project { grid-column: auto; grid-row: span 1; }
.project.is-hidden { display: none; }
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease); }
.project::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 12, 16, 0.88) 0%, rgba(10, 12, 16, 0.2) 45%, rgba(10, 12, 16, 0) 70%); transition: opacity 0.5s; }
.project:hover img { transform: scale(1.07); }
.project__info { position: absolute; left: 28px; right: 90px; bottom: 26px; transition: transform 0.6s var(--ease); }
.project:hover .project__info { transform: translateY(-6px); }
.project__tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.project h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.03em; line-height: 1.15; }
.project--lg h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.project p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.7); margin-top: 4px; }
.project__arrow { position: absolute; right: 26px; bottom: 26px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.25); transition: background 0.4s, color 0.4s, transform 0.5s var(--ease); }
.project__arrow svg { width: 20px; height: 20px; stroke-width: 2; }
.project:hover .project__arrow { background: var(--accent); color: var(--ink); border-color: var(--accent); transform: rotate(45deg); }

/* ---------- Process ---------- */
.process { background: var(--white); }
.process__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.step__top { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.step__num { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-family: var(--font-serif); font-size: 1.6rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); transition: background 0.4s, color 0.4s, transform 0.5s var(--ease); }
.step:hover .step__num { background: var(--accent); color: var(--ink); border-color: var(--accent); transform: scale(1.06); }
.step__line { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); position: relative; }
.step__line::after { content: ""; position: absolute; right: -2px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.step:last-child .step__line { display: none; }
.step h3 { font-size: 1.3rem; letter-spacing: -0.03em; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Warranty / Why ---------- */
.warranty { background: var(--ink); color: var(--white); overflow: hidden; }
.warranty::before { content: ""; position: absolute; width: 800px; height: 800px; left: -300px; bottom: -400px; background: radial-gradient(circle, rgba(217, 138, 78, 0.12), transparent 60%); pointer-events: none; }
.warranty__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 7vw, 100px); align-items: center; position: relative; }
.warranty__card { padding: clamp(36px, 4vw, 56px); border-radius: var(--radius-lg); background: var(--paper); color: var(--ink); position: relative; overflow: hidden; }
.warranty__card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid var(--line); box-shadow: 0 0 0 30px rgba(13, 16, 20, 0.02), 0 0 0 60px rgba(13, 16, 20, 0.02); }
.warranty__seal { display: flex; align-items: center; gap: 16px; margin-bottom: 36px; }
.warranty__years { font-family: var(--font-serif); font-size: 7rem; line-height: 0.8; color: var(--accent-2); letter-spacing: -0.04em; }
.warranty__label { font-size: 0.85rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.3; }
.warranty__card h3 { font-size: 1.75rem; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 14px; }
.warranty__card p { color: var(--muted); margin-bottom: 32px; }
.warranty__card p em { font-family: var(--font-serif); font-size: 1.15em; color: var(--ink); }

.why { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 48px; border-top: 1px solid var(--line-light); }
.why__item { padding: 32px 32px 32px 0; border-bottom: 1px solid var(--line-light); transition: background 0.4s; }
.why__item:nth-child(even) { padding: 32px 0 32px 32px; border-left: 1px solid var(--line-light); }
.why__item h4 { display: flex; align-items: baseline; gap: 12px; font-size: 1.15rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.why__item h4 span { font-family: var(--font-serif); font-weight: 400; font-size: 1rem; color: var(--accent); }
.why__item p { color: var(--muted-light); font-size: 0.93rem; }

/* ---------- Reviews ---------- */
.reviews { background: var(--paper); overflow: hidden; }
.reviews__nav { display: flex; align-items: center; gap: 36px; }
.reviews__score { display: flex; align-items: center; gap: 14px; }
.reviews__score > strong { font-family: var(--font-serif); font-weight: 400; font-size: 3.4rem; line-height: 1; }
.reviews__score p { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.arrows { display: flex; gap: 10px; }
.arrow { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(13, 16, 20, 0.18); transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease); }
.arrow svg { width: 20px; height: 20px; }
.arrow:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.arrow:active { transform: scale(0.94); }
.arrow:disabled { opacity: 0.35; pointer-events: none; }

.slider { overflow: visible; }
.slider__track { display: flex; gap: 24px; transition: transform 0.8s var(--ease); cursor: grab; touch-action: pan-y; }
.slider__track.is-dragging { transition: none; cursor: grabbing; }
.review {
  flex: 0 0 calc((100% - 24px) / 2);
  display: flex; flex-direction: column;
  padding: clamp(32px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  user-select: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.review.is-dim { opacity: 0.45; }
.review__quote { width: 40px; height: 40px; fill: var(--accent); stroke: none; margin-bottom: 26px; }
.review blockquote { font-family: var(--font-serif); font-size: clamp(1.35rem, 2.1vw, 1.75rem); line-height: 1.35; letter-spacing: -0.01em; color: var(--ink); flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 14px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.review figcaption strong { display: block; font-size: 1rem; letter-spacing: -0.02em; }
.review figcaption small { font-size: 0.84rem; color: var(--muted); }
.review__avatar { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; color: var(--white); background: linear-gradient(135deg, hsl(var(--h) 45% 55%), hsl(calc(var(--h) + 30) 40% 35%)); }
.slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.slider__dots button { width: 8px; height: 8px; border-radius: 100px; background: rgba(13, 16, 20, 0.18); transition: width 0.5s var(--ease), background 0.3s; }
.slider__dots button.is-active { width: 32px; background: var(--accent); }

/* ---------- FAQ ---------- */
.faq { background: var(--white); }
.faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.faq__intro { position: sticky; top: 120px; }
.faq__help { display: flex; align-items: center; gap: 16px; margin-top: 40px; padding: 20px 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); max-width: 380px; }
.faq__help-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--accent); }
.faq__help-icon svg { width: 22px; height: 22px; }
.faq__help strong { display: block; font-size: 0.98rem; letter-spacing: -0.02em; }
.faq__help a { font-size: 0.9rem; color: var(--accent-2); font-weight: 700; }
.faq__help a:hover { text-decoration: underline; }

.accordion { border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc__btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 30px 0; text-align: left; font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 700; letter-spacing: -0.025em; transition: color 0.3s; }
.acc__btn:hover { color: var(--accent-2); }
.acc__icon { position: relative; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line); transition: background 0.4s, border-color 0.4s, transform 0.5s var(--ease); }
.acc__icon::before,
.acc__icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 1.8px; background: currentColor; transform: translate(-50%, -50%); transition: transform 0.5s var(--ease); }
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc.is-open .acc__icon { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: rotate(180deg); }
.acc.is-open .acc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.acc__panel > p { overflow: hidden; color: var(--muted); max-width: 62ch; }
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc.is-open .acc__panel > p { padding-bottom: 30px; }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--white); overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; background: url("../assets/images/hero.jpg") center / cover; opacity: 0.08; filter: grayscale(1); pointer-events: none; }
.contact::after { content: ""; position: absolute; width: 900px; height: 900px; left: -200px; top: -300px; background: radial-gradient(circle, rgba(217, 138, 78, 0.16), transparent 60%); pointer-events: none; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; position: relative; z-index: 1; }
.contact__list { display: grid; gap: 26px; margin-top: 48px; }
.contact__list li { display: flex; align-items: center; gap: 18px; }
.contact__icon { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; border: 1px solid var(--line-light); background: rgba(255, 255, 255, 0.04); color: var(--accent); transition: background 0.3s, color 0.3s; }
.contact__icon svg { width: 22px; height: 22px; }
.contact__list li:hover .contact__icon { background: var(--accent); color: var(--ink); }
.contact__list small { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-light); font-weight: 600; }
.contact__list div > a, .contact__list div > span { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.45; }
.contact__list a:hover { color: var(--accent); }

.form { position: relative; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--white); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden; }
.form__head { margin-bottom: 28px; }
.form__head h3 { font-size: 1.6rem; letter-spacing: -0.03em; }
.form__head p { color: var(--muted); font-size: 0.92rem; }
.form__chips { border: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.form__chips legend { font-size: 0.82rem; font-weight: 700; color: var(--muted); margin-bottom: 12px; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 10px 18px; border-radius: 100px; border: 1px solid var(--line); font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: all 0.3s var(--ease); }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; margin-bottom: 14px; }
.field input,
.field textarea {
  width: 100%;
  padding: 26px 18px 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.98rem;
  outline: none;
  resize: vertical;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.field textarea { min-height: 110px; }
.field label { position: absolute; left: 19px; top: 18px; font-size: 0.95rem; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform 0.3s var(--ease), color 0.3s; }
.field input:focus,
.field textarea:focus { border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(0.78); color: var(--accent-2); font-weight: 600; }
.field__error { display: none; font-size: 0.78rem; color: #d64545; margin-top: 6px; padding-left: 4px; font-weight: 600; }
.field.is-invalid input { border-color: #d64545; background: #fff7f7; }
.field.is-invalid .field__error { display: block; }

.form .btn { margin-top: 10px; }
.form .btn.is-loading .btn__label::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
.form__note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: 0.8rem; color: var(--muted); }
.form__note svg { width: 14px; height: 14px; }

.form__success { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px; background: var(--white); opacity: 0; visibility: hidden; transform: scale(0.98); transition: all 0.6s var(--ease); }
.form.is-sent .form__success { opacity: 1; visibility: visible; transform: none; }
.form__success-icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--ink); margin-bottom: 24px; box-shadow: 0 0 0 12px var(--accent-soft); }
.form__success-icon svg { width: 36px; height: 36px; stroke-width: 2.6; stroke-dasharray: 30; stroke-dashoffset: 30; }
.form.is-sent .form__success-icon svg { animation: draw 0.8s 0.3s var(--ease) forwards; }
.form__success h3 { font-size: 2rem; letter-spacing: -0.03em; }
.form__success p { color: var(--muted); max-width: 34ch; margin-top: 8px; }

/* ---------- Footer ---------- */
.footer { position: relative; background: #0a0c10; color: rgba(255, 255, 255, 0.65); padding-top: clamp(64px, 8vw, 100px); overflow: hidden; }
.footer__cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-bottom: 64px; border-bottom: 1px solid var(--line-light); }
.footer__cta h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); color: var(--white); letter-spacing: -0.035em; line-height: 1.08; max-width: 18ch; }
.footer__cta em { color: var(--accent); }

.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.5fr; gap: 40px; padding-block: 64px; }
.footer__brand p { margin-top: 20px; font-size: 0.92rem; max-width: 34ch; }
.logo--light { color: var(--white); }
.socials { display: flex; gap: 10px; margin-top: 26px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-light); transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease); }
.socials a:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }
.footer__col h4 { color: var(--white); font-size: 0.95rem; letter-spacing: -0.01em; margin-bottom: 20px; }
.footer__col ul { display: grid; gap: 12px; }
.footer__col a { font-size: 0.92rem; transition: color 0.3s, padding 0.3s var(--ease); }
.footer__col a:hover { color: var(--accent); padding-left: 4px; }
.footer__news p { font-size: 0.9rem; margin-bottom: 18px; }
.news { display: flex; padding: 5px; border-radius: 100px; border: 1px solid var(--line-light); background: rgba(255, 255, 255, 0.04); transition: border-color 0.3s; }
.news:focus-within { border-color: var(--accent); }
.news input { flex: 1; min-width: 0; padding: 10px 16px; background: none; border: 0; outline: none; color: var(--white); font-size: 0.92rem; }
.news input::placeholder { color: rgba(255, 255, 255, 0.45); }
.news button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--ink); transition: transform 0.3s var(--ease); }
.news button:hover { transform: rotate(-45deg); }
.news button svg { width: 18px; height: 18px; stroke-width: 2.2; }
.news.is-done { border-color: #2fbf71; }

.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 28px; border-top: 1px solid var(--line-light); font-size: 0.85rem; }
.footer__bottom div { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__bottom a:hover { color: var(--white); }
.footer__wordmark {
  font-size: clamp(4rem, 17vw, 16rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.75;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 85%);
  -webkit-background-clip: text;
  background-clip: text;
  margin-top: 10px;
  margin-bottom: -0.08em;
  user-select: none;
}

/* ---------- Floating UI ---------- */
.to-top { position: fixed; right: 28px; bottom: 28px; z-index: 90; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--white); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(16px); transition: all 0.4s var(--ease); }
.to-top svg { width: 20px; height: 20px; stroke-width: 2.2; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); color: var(--ink); }

.mobile-bar { display: none; }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); will-change: opacity, transform; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .nav__phone { display: none; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer__news { grid-column: 1 / -1; max-width: 460px; }
}

@media (max-width: 1080px) {
  :root { --header-h: 76px; }
  .topbar { display: none; }

  .burger { display: block; }
  .nav__menu {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column; justify-content: center;
    padding: 100px clamp(24px, 6vw, 48px) 40px;
    background: var(--ink);
    clip-path: circle(0% at calc(100% - 50px) 38px);
    transition: clip-path 0.8s var(--ease-in-out);
    visibility: hidden;
  }
  .nav__menu.is-open { clip-path: circle(150% at calc(100% - 50px) 38px); visibility: visible; }
  .nav__menu ul { flex-direction: column; gap: 0; }
  .nav__menu li { overflow: hidden; border-bottom: 1px solid var(--line-light); }
  .nav__menu ul a { display: block; padding: 18px 0; font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 700; letter-spacing: -0.04em; color: var(--white); border-radius: 0; background: none !important; transform: translateY(100%); transition: transform 0.7s var(--ease), color 0.3s; }
  .nav__menu ul a:hover,
  .nav__menu ul a.is-active { color: var(--accent); }
  .nav__menu.is-open ul a { transform: none; }
  .nav__menu.is-open li:nth-child(1) a { transition-delay: 0.2s; }
  .nav__menu.is-open li:nth-child(2) a { transition-delay: 0.25s; }
  .nav__menu.is-open li:nth-child(3) a { transition-delay: 0.3s; }
  .nav__menu.is-open li:nth-child(4) a { transition-delay: 0.35s; }
  .nav__menu.is-open li:nth-child(5) a { transition-delay: 0.4s; }
  .nav__menu.is-open li:nth-child(6) a { transition-delay: 0.45s; }
  .nav__mobile-cta { display: grid; gap: 12px; margin-top: 40px; opacity: 0; transition: opacity 0.6s 0.5s; }
  .nav__menu.is-open .nav__mobile-cta { opacity: 1; }
  .nav__actions > .btn { display: none; }
  .logo { position: relative; z-index: 2; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { display: none; }

  .about__grid,
  .compare__grid,
  .warranty__grid,
  .faq__grid,
  .contact__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; }
  .faq__intro { position: static; }

  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head--center { align-items: center; }

  .process__steps { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .step:nth-child(2) .step__line { display: none; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 768px) {
  body { padding-bottom: 72px; }
  .hero__inner { padding-top: calc(var(--header-h) + 50px); padding-bottom: 44px; }
  .hero__overlay { background: linear-gradient(0deg, rgba(10, 12, 16, 0.95) 10%, rgba(10, 12, 16, 0.55) 60%, rgba(10, 12, 16, 0.6) 100%); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__stats > div { padding: 20px 0 20px 20px; }
  .hero__stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero__stats > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line-light); }
  .hero__stats strong { font-size: 2rem; }
  .hero__proof { margin-top: 36px; }

  .about__badge { right: 16px; top: 16px; width: 104px; height: 104px; }
  .about__float { left: 16px; bottom: 16px; right: 16px; }
  .about__features { grid-template-columns: 1fr; }
  .signature { padding-left: 0; border-left: 0; }

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

  .projects__grid { grid-template-columns: 1fr; grid-auto-rows: 320px; }
  .project--lg,
  .project--wide { grid-column: auto; grid-row: span 1; }

  .process__steps { grid-template-columns: 1fr; row-gap: 40px; }
  .step__line { display: none; }

  .why { grid-template-columns: 1fr; }
  .why__item,
  .why__item:nth-child(even) { padding: 26px 0; border-left: 0; }

  .reviews__nav { width: 100%; justify-content: space-between; gap: 20px; }
  .review { flex-basis: 100%; }

  .form__row { grid-template-columns: 1fr; gap: 0; }

  .footer__cta { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .to-top { bottom: 90px; right: 18px; width: 46px; height: 46px; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(13, 16, 20, 0.92);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line-light);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 100px; font-weight: 700; font-size: 0.95rem; }
  .mobile-bar svg { width: 18px; height: 18px; }
  .mobile-bar__call { color: var(--white); border: 1px solid rgba(255, 255, 255, 0.25); }
  .mobile-bar__quote { background: var(--accent); color: var(--ink); }
}

@media (max-width: 520px) {
  .hero__ctas .btn { width: 100%; }
  .hero__proof { flex-direction: column; align-items: flex-start; gap: 12px; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat { border-left: 0 !important; padding-left: 0 !important; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .compare__specs { grid-template-columns: 1fr; }
  .compare__specs div:nth-child(odd) { border-right: 0; padding-right: 0; }
  .compare__specs div:nth-child(even) { padding-left: 0; }
  .ba { aspect-ratio: 4 / 3.6; }
  .filters { width: 100%; justify-content: space-between; }
  .filter { padding: 9px 14px; font-size: 0.82rem; }
  .reviews__score > strong { font-size: 2.6rem; }
  .arrow { width: 46px; height: 46px; }
  .footer__grid { grid-template-columns: 1fr; }
  .warranty__years { font-size: 5.5rem; }
}

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