:root {
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --bg: #ffffff;
  --bg-alt: #fbfbfd;
  --bg-dark: #000000;
  --line: #d2d2d7;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --danger: #c9252d;
  --radius: 20px;
  --radius-lg: 28px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 52px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.03em; line-height: 1.06; }
h1 { font-size: clamp(2.5rem, 7.2vw, 5.5rem); letter-spacing: -.038em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); letter-spacing: -.022em; line-height: 1.2; }
h4 { font-size: .875rem; letter-spacing: 0; color: var(--ink-3); text-transform: none; }
p  { margin: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

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

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }
.wrap--narrow { max-width: 760px; }
.center { text-align: center; }

.section { padding: clamp(84px, 12vw, 160px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #f5f5f7; }
.section--dark h2, .section--dark h3 { color: #f5f5f7; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--accent);
}
.eyebrow--light { color: #6fb6ff; }

.lead {
  margin: 22px auto 0;
  max-width: 42ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-2);
}
.section--dark .lead { color: #a1a1a6; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 24px;
  background: var(--accent); color: #fff;
  border: 0; border-radius: 980px;
  font: inherit; font-size: 1.0625rem; font-weight: 400; letter-spacing: -.01em;
  white-space: nowrap; cursor: pointer;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 34px; padding: 0 16px; font-size: .875rem; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #f2f2f4; }
.btn--full { width: 100%; margin-top: 8px; }
.btn[disabled] { opacity: .55; cursor: progress; }

.btn__spin { display: none; width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-busy .btn__spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.link {
  display: inline-flex; align-items: center;
  font-size: 1.0625rem; color: var(--accent);
}
.link::after { content: "›"; margin-left: 5px; font-size: 1.2em; line-height: 0; transition: transform .25s var(--ease); }
.link:hover { text-decoration: none; }
.link:hover::after { transform: translateX(3px); }
.link--light { color: #fff; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.nav__inner {
  max-width: 1040px; margin: 0 auto; padding: 0 22px;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.nav__brand:hover { text-decoration: none; }
.nav__mark { width: 22px; height: 22px; fill: var(--accent); }
.nav__mark-wave { fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; }
.nav__word { font-size: 1.1875rem; font-weight: 600; letter-spacing: -.028em; white-space: nowrap; }

.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font-size: .8125rem; color: var(--ink); opacity: .85; white-space: nowrap; }
.nav__links a:hover { opacity: 1; text-decoration: none; }

.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__phone { font-size: .8125rem; font-weight: 500; color: var(--ink); white-space: nowrap; }

.nav__toggle {
  display: none; margin-left: auto;
  width: 40px; height: 40px; padding: 0;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__toggle span { display: block; width: 17px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

.nav__panel { display: none; flex-direction: column; padding: 8px 22px 26px; border-top: 1px solid rgba(0,0,0,.06); }
.nav__panel[hidden] { display: none; }
.nav__panel a { padding: 15px 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -.025em; color: var(--ink); border-bottom: 1px solid rgba(0,0,0,.06); }
.nav__panel a:hover { text-decoration: none; }
.nav__panel-phone { color: var(--accent) !important; border-bottom: 0 !important; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(88svh, 780px); display: flex; align-items: flex-end; overflow: hidden; background: #10161c; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 38%, rgba(0,0,0,.06) 72%, rgba(0,0,0,.22) 100%);
}
.hero__body {
  position: relative; z-index: 2;
  max-width: 1040px; width: 100%; margin: 0 auto;
  padding: 0 22px clamp(56px, 8vw, 96px);
  color: #fff;
}
.hero__body h1 { max-width: 14ch; text-wrap: balance; }
.hero__sub { max-width: 46ch; margin-top: 22px; font-size: clamp(1.0625rem, 1.6vw, 1.3125rem); line-height: 1.48; color: rgba(255,255,255,.88); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; }

/* ---------- trust bar ---------- */
.trust { border-bottom: 1px solid var(--line); background: var(--bg); }
.trust__list {
  max-width: 1040px; margin: 0 auto; padding: 40px 22px; list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.trust__list li { display: flex; flex-direction: column; gap: 4px; }
.trust__list strong { font-size: clamp(1.375rem, 2.6vw, 1.875rem); font-weight: 600; letter-spacing: -.03em; }
.trust__list span { font-size: .8125rem; color: var(--ink-3); }

/* ---------- before / after ---------- */
.ba {
  position: relative; margin-top: clamp(44px, 6vw, 72px);
  border-radius: var(--radius-lg); overflow: hidden;
  background: #e8e8ed; aspect-ratio: 16 / 10;
  box-shadow: 0 20px 60px rgba(0,0,0,.13);
  touch-action: pan-y;
  user-select: none;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__clip { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 50% 0 0); will-change: clip-path; }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; margin-left: -1px; background: rgba(255,255,255,.95);
  box-shadow: 0 0 14px rgba(0,0,0,.35); pointer-events: none; will-change: left;
}
.ba__grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.96);
  box-shadow: 0 3px 14px rgba(0,0,0,.3);
}
.ba__grip::before, .ba__grip::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.ba__grip::before { left: 13px; transform: translateY(-50%); border-right: 7px solid var(--ink); }
.ba__grip::after  { right: 13px; transform: translateY(-50%); border-left: 7px solid var(--ink); }

.ba__tag {
  position: absolute; top: 16px; z-index: 3;
  padding: 5px 12px; border-radius: 980px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: .75rem; font-weight: 500; letter-spacing: .01em;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  pointer-events: none;
}
.ba__tag--before { left: 16px; }
.ba__tag--after { right: 16px; }

.ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent;
}
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 56px; height: 100%; cursor: ew-resize; }
.ba__range::-moz-range-thumb { width: 56px; height: 100%; border: 0; background: transparent; cursor: ew-resize; }
.ba__range:focus-visible { opacity: 1; outline: 3px solid var(--accent); outline-offset: -3px; }

/* drag-to-clean: a canvas holds the dirty image and is erased under the pointer.
   Only active once the canvas is wired up, so the split slider stays the fallback. */
.ba__scrub { position: absolute; inset: 0; width: 100%; height: 100%; display: none; touch-action: none; cursor: crosshair; z-index: 2; }
.ba--scrub .ba__scrub { display: block; }
.ba--scrub .ba__clip, .ba--scrub .ba__handle { display: none; }
.ba--scrub .ba__range { inset: auto; width: 1px; height: 1px; overflow: hidden; pointer-events: none; }
.ba--scrub .ba__range:focus-visible { inset: 0; width: 100%; height: 100%; opacity: 1; pointer-events: auto; }
.ba__reset {
  position: absolute; right: 16px; bottom: 16px; z-index: 4;
  border: 0; border-radius: 980px; padding: 8px 16px;
  font: inherit; font-size: .78rem; font-weight: 600; letter-spacing: .01em;
  background: rgba(0,0,0,.58); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: none; transition: background .18s ease;
}
.ba--scrub .ba__reset { display: block; }
.ba__reset:hover { background: rgba(0,0,0,.78); }
.ba__reset:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ba__hint {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 3;
  padding: 10px 20px; border-radius: 980px; pointer-events: none; white-space: nowrap;
  background: rgba(0,0,0,.55); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .84rem; font-weight: 600; letter-spacing: .01em;
  opacity: 0; transition: opacity .3s ease;
}
.ba--scrub .ba__hint { opacity: 1; }
.ba--scrub.ba--dirty .ba__hint { opacity: 0; }

/* ---------- service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: clamp(44px, 6vw, 72px); }
.card {
  background: var(--bg); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(0,0,0,.07);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.section--alt .card { background: #fff; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0,0,0,.1); }
.card--wide { grid-column: 1 / -1; }
.card__media { aspect-ratio: 4 / 3; background: #e8e8ed; overflow: hidden; }
.card--wide .card__media { aspect-ratio: 21 / 8; }
.card--wide .card__media img { object-position: center 62%; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.035); }
.card__body { padding: 26px 26px 30px; }
.card__body p { margin-top: 10px; color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.card__body .link { margin-top: 14px; font-size: 1rem; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: clamp(44px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { padding-top: 26px; border-top: 1px solid rgba(255,255,255,.22); }
.steps__n { display: block; margin-bottom: 14px; font-size: .8125rem; font-weight: 600; color: #6fb6ff; letter-spacing: .02em; }
.steps p { margin-top: 10px; color: #a1a1a6; font-size: 1rem; line-height: 1.5; }

/* ---------- areas ---------- */
.areas {
  list-style: none; margin: clamp(40px, 5vw, 60px) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 9px;
}
.areas li {
  padding: 8px 15px; border-radius: 980px;
  background: #fff; border: 1px solid var(--line);
  font-size: .875rem; color: var(--ink);
}
.areas__note { margin-top: 26px; text-align: center; font-size: .9375rem; color: var(--ink-3); }

/* ---------- form ---------- */
.wrap--form { max-width: 1040px; display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.form__intro .lead { margin-left: 0; max-width: 34ch; }
.form__points { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.form__points li { position: relative; padding-left: 26px; font-size: .9375rem; color: var(--ink-2); }
.form__points li::before {
  content: ""; position: absolute; left: 0; top: .36em;
  width: 15px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.form__alt { margin-top: 26px; font-size: .9375rem; color: var(--ink-3); }

.form {
  background: #fff; padding: clamp(26px, 3.4vw, 40px);
  border-radius: var(--radius-lg); border: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 14px 44px rgba(0,0,0,.06);
}
.field { display: block; margin-bottom: 20px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field legend { display: block; margin-bottom: 7px; padding: 0; font-size: .8125rem; font-weight: 500; color: var(--ink-2); }
.opt { font-weight: 400; color: var(--ink-3); }

.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%236e6e73' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px;
}
.field :is(input, select, textarea):focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0,113,227,.14);
}
.field.is-invalid :is(input, select, textarea) { border-color: var(--danger); }
.field__err { margin-top: 6px; font-size: .8125rem; color: var(--danger); min-height: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { margin: 0; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-block; padding: 9px 15px; border-radius: 980px;
  border: 1px solid var(--line); background: #fff;
  font-size: .875rem; color: var(--ink); cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.chip span:hover { border-color: var(--ink-3); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form__fine { margin-top: 14px; text-align: center; font-size: .75rem; color: var(--ink-3); }
.form__status { margin-top: 14px; text-align: center; font-size: .9375rem; }
.form__status.is-ok { color: #1a7f37; }
.form__status.is-bad { color: var(--danger); }

.form.is-sent .field, .form.is-sent button, .form.is-sent .form__fine { display: none; }
.form__done { text-align: center; padding: 18px 0; }
.form__done h3 { margin-bottom: 10px; }
.form__done p { color: var(--ink-2); }
.form__done svg { width: 52px; height: 52px; margin: 0 auto 20px; display: block; }

/* ---------- footer ---------- */
.footer { padding: 60px 0 40px; background: var(--bg-alt); border-top: 1px solid var(--line); font-size: .8125rem; color: var(--ink-2); }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 36px; }
.footer__brand p { margin-top: 12px; max-width: 34ch; line-height: 1.5; }
.footer h4 { margin-bottom: 12px; }
.footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--ink); }
.footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
  color: var(--ink-3); font-size: .75rem;
}

/* ---------- mobile action bar ---------- */
.mobar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 99;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
  background: rgba(255,255,255,.84);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(0,0,0,.08);
}
.mobar a {
  flex: 1; display: flex; align-items: center; justify-content: center;
  min-height: 46px; border-radius: 980px; font-size: 1rem; font-weight: 500;
}
.mobar a:hover { text-decoration: none; }
.mobar__call { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.mobar__quote { background: var(--accent); color: #fff; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .wrap--form { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 24px 0; border-top: 1px solid rgba(255,255,255,.22); }
}

@media (max-width: 940px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__panel { display: flex; }
  .mobar { display: flex; }
  body { padding-bottom: 74px; }
}

@media (max-width: 768px) {
  .cards { grid-template-columns: 1fr; }
  .card--wide .card__media { aspect-ratio: 16 / 9; }
  .trust__list { grid-template-columns: 1fr 1fr; gap: 26px 16px; padding: 32px 22px; }
  .hero { min-height: min(82svh, 640px); }
  .ba { aspect-ratio: 4 / 3; border-radius: var(--radius); }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__cta { gap: 16px; }
  .hero__cta .btn { width: 100%; }
}

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