/* Abiclean preview. One light theme.
   Radius rule: panels 16px, buttons full pill, inputs 10px. */
:root {
  --bg: #f6faf9;
  --on-bg: #0d2140;
  --muted: #3c4f66;
  --surface: #ffffff;
  --on-surface: #0d2140;
  --mint: #3ddbb0;
  --on-mint: #0d2140;
  --mint-soft: #e2f6ef;
  --on-mint-soft: #0d2140;
  --ink: #0d2140;
  --on-ink: #f6faf9;
  --line: #c9d8d3;
  --error: #b42318;
  --ribbon: #0d2140;
  --on-ribbon: #f6faf9;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-ui: cubic-bezier(0.2, 0, 0, 1);
  --ease-wipe: cubic-bezier(0.55, 0, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--on-bg);
  font: 400 1.0625rem/1.6 "Geist", system-ui, sans-serif;
  overflow-wrap: anywhere;
}
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 30; background: var(--surface); color: var(--on-surface); padding: 8px 12px; }

.ribbon {
  background: var(--ribbon);
  color: var(--on-ribbon);
  font-size: 0.8125rem;
  text-align: center;
  padding: 6px 16px;
}

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.03em; text-decoration: none; }
.brand-mark { width: 22px; height: 22px; fill: var(--mint); stroke: var(--ink); stroke-width: 2.5; transition: rotate .45s var(--ease); }
.brand:hover .brand-mark { rotate: 90deg; }
.top nav { display: flex; align-items: center; gap: 24px; }
.top nav a:not(.btn) { position: relative; text-decoration: none; font-weight: 500; font-size: 0.975rem; }
.top nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--ink); transform: scaleX(0); transform-origin: right;
  transition: transform .3s var(--ease-ui);
}
.top nav a:not(.btn):hover::after, .top nav a:not(.btn):focus-visible::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 767px) { .top nav { display: none; } }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border: 0; border-radius: 999px;
  background: var(--mint); color: var(--on-mint);
  font: 600 1rem/1 "Geist", system-ui, sans-serif;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  position: relative; overflow: hidden; isolation: isolate;
  transition: scale .15s ease-out, background-color .2s var(--ease-ui);
}
/* A shine passes across the button on hover, like a just-wiped surface. */
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .85) 50%, transparent 70%);
  transform: translateX(-110%);
}
@media (hover: hover) {
  .btn:hover { background: var(--mint-soft); color: var(--on-mint-soft); }
  .btn:hover::after { transform: translateX(110%); transition: transform .65s var(--ease-ui); }
}
.btn:active { scale: 0.96; }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: .95rem; }
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--mint); text-underline-offset: 5px; transition: text-decoration-color .2s var(--ease-ui); }
.link:hover { text-decoration-color: var(--ink); }

/* Hero */
.hero {
  display: grid; gap: 40px; align-items: center;
  padding-top: 32px; padding-bottom: 56px;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 1fr; gap: 56px; padding-top: 48px; padding-bottom: 96px; min-height: calc(100dvh - 110px); }
}
.eyebrow { font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 20px; }
h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); letter-spacing: -0.04em; line-height: 1.02; max-width: 12ch; }
h1 em { font-style: italic; font-weight: 500; }
.lede { margin-top: 24px; font-size: 1.1875rem; color: var(--muted); max-width: 38ch; }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.hero-art { margin: 0; }
.hero-art svg { display: block; width: 100%; height: auto; max-width: 560px; margin-inline: auto; overflow: visible; }
.pane { fill: var(--surface); }
.grime { fill: var(--mint-soft); }
.pane-edge { fill: none; stroke: var(--ink); stroke-width: 2; }
.dust-dot { fill: var(--ink); opacity: .22; }
/* The cleaning pass: one continuous S-shaped wipe, mint fringe under a clean white trail. */
.trail, .trail-edge { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.trail { stroke: var(--surface); stroke-width: 104; }
.trail-edge { stroke: var(--mint); stroke-width: 118; }
.glint { fill: #fff; opacity: 0; }
.spark { fill: var(--mint); stroke: var(--ink); stroke-width: 2; }

/* Proof band */
.proof { background: var(--mint-soft); color: var(--on-mint-soft); }
.proof-inner { display: grid; gap: 8px 48px; padding-block: 56px; align-items: center; }
@media (min-width: 768px) { .proof-inner { grid-template-columns: auto 1fr; padding-block: 72px; } }
.big-num { position: relative; font-size: clamp(4.5rem, 16vw, 9rem); font-weight: 700; letter-spacing: -0.06em; line-height: .9; }
.proof h2 { position: relative; font-size: clamp(1.5rem, 3.2vw, 2.25rem); max-width: 22ch; margin-bottom: 12px; }
.proof p { margin-bottom: 16px; }

/* Services */
.services { padding-block: 88px 64px; }
.section-title { position: relative; font-size: clamp(1.875rem, 4.2vw, 3rem); max-width: 20ch; margin-bottom: 40px; }
.tiles { display: grid; gap: 16px; }
@media (min-width: 768px) { .tiles { grid-template-columns: 1.4fr 1fr; } }
.tile { position: relative; border-radius: 16px; padding: 32px; min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; }
.tile h3 { font-size: 1.75rem; }
.tile p { max-width: 40ch; }
.tile-home {
  background-color: var(--surface); color: var(--on-surface);
  background-image: radial-gradient(var(--line) 1.2px, transparent 1.4px);
  background-size: 16px 16px;
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
@media (min-width: 768px) { .tile-home { min-height: 340px; } }
.tile-work { background: var(--ink); color: var(--on-ink); }
.price-note { margin-top: 28px; color: var(--muted); max-width: 60ch; }
.price-note strong { color: var(--on-bg); }

/* Before/after plate */
.plate-wrap { padding-block: 48px 88px; }
.plate {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  border-radius: 16px; overflow: hidden; outline: 1.5px solid var(--ink); outline-offset: -1.5px;
  min-height: 320px;
}
.plate-half { display: flex; align-items: flex-start; padding: 20px; }
.plate-half span { font-weight: 600; font-size: .9375rem; padding: 6px 14px; border-radius: 999px; }
.plate-before {
  background-color: var(--mint-soft); color: var(--on-mint-soft);
  background-image: radial-gradient(rgba(13, 33, 64, .28) 1.3px, transparent 1.5px);
  background-size: 12px 12px;
}
.plate-before span { background: var(--surface); color: var(--on-surface); }
.plate-after { position: relative; background: var(--surface); color: var(--on-surface); border-left: 2px dashed var(--ink); }
.plate-half span { position: relative; z-index: 2; }
/* Grime over the After half; in its resting state it is fully wiped away. */
.plate-after::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-color: var(--mint-soft);
  background-image: radial-gradient(rgba(13, 33, 64, .28) 1.3px, transparent 1.5px);
  background-size: 12px 12px;
  clip-path: inset(0 0 0 100%);
}
.sweep { position: absolute; inset: 0; z-index: 1; transform: translateX(calc(100% + 12px)); pointer-events: none; }
.sweep::before {
  content: ""; position: absolute; top: 12%; bottom: 12%; left: -5px; width: 10px;
  border-radius: 999px; background: var(--ink); box-shadow: 0 0 0 3px var(--mint);
}
.plate-after span { background: var(--mint); color: var(--on-mint); }
.plate-note {
  grid-column: 1 / -1; background: var(--surface); color: var(--on-surface);
  padding: 20px; border-top: 1.5px solid var(--ink); font-weight: 500;
}
@media (min-width: 768px) {
  .plate { min-height: 420px; }
  .plate-note { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: min(520px, 80%); border: 1.5px solid var(--ink); border-radius: 16px; text-align: center; }
}

/* Enquiry */
.enquire { display: grid; gap: 40px; padding-block: 24px 96px; }
@media (min-width: 900px) { .enquire { grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: start; } }
.enquire .section-title { margin-bottom: 28px; }
.steps { margin: 0; padding-left: 1.25em; display: grid; gap: 14px; max-width: 42ch; }
.steps li::marker { font-weight: 700; }
.alt { margin-top: 28px; }

.form {
  background: var(--surface); color: var(--on-surface);
  border-radius: 16px; padding: 24px; display: grid; gap: 20px;
  box-shadow: 0 1px 0 var(--line), 0 18px 48px rgba(13, 33, 64, .08);
}
@media (min-width: 768px) { .form { padding: 36px; } }
.row { display: grid; gap: 20px; }
@media (min-width: 560px) { .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
label { font-weight: 600; font-size: .9375rem; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; min-width: 0; font: inherit;
  background: var(--surface); color: var(--on-surface);
  border: 1.5px solid var(--muted); border-radius: 10px;
  padding: 12px 14px;
}
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--mint); outline-offset: 0; border-color: var(--ink); }
[aria-invalid="true"] { border-color: var(--error); }
.help { font-size: .875rem; color: var(--muted); }
.err { font-size: .875rem; color: var(--error); font-weight: 500; }
.form .btn { justify-self: start; }
.success { background: var(--mint-soft); color: var(--on-mint-soft); border-radius: 10px; padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.success p { grid-column: 2; }
.tick { grid-row: 1 / span 2; width: 32px; height: 32px; }
.tick-star { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.field { position: relative; }
/* Small sparkle that marks the field in focus. */
.field > label::before {
  content: ""; position: absolute; left: -17px; top: .3em; width: 11px; height: 11px;
  background: var(--ink);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0; transform: scale(.25); filter: blur(4px);
  transition: opacity .3s var(--ease-ui), transform .3s var(--ease-ui), filter .3s var(--ease-ui);
}
.field:focus-within > label::before { opacity: 1; transform: scale(1); filter: blur(0); }
.success[hidden] { display: none; }

/* Footer */
.foot { background: var(--ink); color: var(--on-ink); padding-block: 56px; }
.foot-inner { display: grid; gap: 32px; font-size: .9375rem; }
@media (min-width: 768px) { .foot-inner { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.foot p + p { margin-top: 8px; }
.brand-foot { font-size: 1.5rem; margin-bottom: 8px; }
.foot-h { font-size: 1rem; margin-bottom: 8px; letter-spacing: 0; }
.foot .link:hover { text-decoration-color: var(--on-ink); }

.thread { display: none; }

/* Sticky mobile CTA. Visible without JS; with JS it arrives once the hero CTA scrolls away. */
.sticky-cta { display: none; }
@media (max-width: 767px) {
  .sticky-cta { display: flex; position: fixed; left: 16px; right: 16px; bottom: 12px; z-index: 20; box-shadow: inset 0 0 0 1.5px var(--ink), 0 8px 24px rgba(13, 33, 64, .18); }
  body { padding-bottom: 80px; }
  html.js .sticky-cta {
    transition: transform .4s var(--ease), opacity .25s var(--ease-ui), visibility 0s linear .4s, scale .15s ease-out;
  }
  html.js .sticky-cta:not(.show) { transform: translateY(calc(100% + 24px)); opacity: 0; visibility: hidden; }
  html.js .sticky-cta.show { transition-delay: 0s; }
}

/* ---------- Motion. Everything above is the resting (final) state. ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Hero: headline is readable from frame one; the wipe happens around it, done by ~1.2s. */
  .trail, .trail-edge { animation: draw .85s var(--ease-wipe) .05s both; }
  .glint { animation: glint .5s ease-in-out .72s; }
  .spark { transform-box: fill-box; transform-origin: center; animation: spark .42s cubic-bezier(.34, 1.4, .64, 1) both; }
  .s1 { animation-delay: .32s; } .s2 { animation-delay: .58s; } .s3 { animation-delay: .8s; }
  h1 em::before { animation: swash .45s var(--ease-wipe) .5s both; }
  .eyebrow, .lede, .actions { animation: rise .6s var(--ease) both; }
  .lede { animation-delay: .12s; } .actions { animation-delay: .22s; }
  .brand-mark { animation: spark .6s var(--ease) both; }

  /* Arrival pass: as a heading or panel scrolls in, a mint cloth sweeps across it once.
     Content is never hidden, before, during or after, so no-JS, print and full-page
     screenshots all read normally. Triggered by IntersectionObserver (.in), staggered by --d. */
  .in:is([data-reveal=""], [data-reveal="wipe"])::after {
    content: ""; position: absolute; inset: -4px -8px; z-index: 1; pointer-events: none;
    background: var(--mint); border-radius: 6px; transform: scaleX(0);
    animation: pass .8s var(--ease-wipe) var(--d, 0s) both;
  }
  .in[data-reveal="wipe"]::after { inset: 0; border-radius: 16px; }

  /* Before/after plate: the After half is squeegeed clean as you scroll past it. */
  @supports (animation-timeline: view()) {
    .plate-after::before, .sweep { animation: linear both; animation-timeline: view(); animation-range: entry 70% cover 60%; }
    .plate-after::before { animation-name: unclip; }
    .sweep { animation-name: sweep; }
  }
  @supports not (animation-timeline: view()) {
    .plate-after::before { transition: clip-path 1.2s var(--ease-wipe) .2s; }
    .sweep { transition: transform 1.2s var(--ease-wipe) .2s; }
    html.js .plate:not(.in) .plate-after::before { clip-path: inset(0); }
    html.js .plate:not(.in) .sweep { transform: translateX(0); }
  }

  @supports (animation-timeline: scroll()) {
    .thread {
      display: block; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 40;
      background: var(--mint); transform-origin: left; pointer-events: none;
      animation: grow linear both; animation-timeline: scroll(root);
    }
  }

  /* Form feedback */
  .err:not([hidden]) { animation: rise .25s var(--ease-ui) both; }
  .shake { animation: shake .36s var(--ease-ui); }
  .success:not([hidden]) { animation: rise .4s var(--ease) both; }
  .success:not([hidden]) .tick-star { animation: draw .6s var(--ease-wipe) .15s both; }
}
h1 em { position: relative; z-index: 0; }
h1 em::before {
  content: ""; position: absolute; z-index: -1; left: -.06em; right: -.04em; bottom: .06em; height: .3em;
  background: var(--mint); border-radius: 3px; transform-origin: left;
}

@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes glint { from { opacity: .75; transform: translateX(0); } to { opacity: .75; transform: translateX(860px); } }
@keyframes spark { from { opacity: 0; transform: scale(.2) rotate(-90deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes swash { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes pass {
  0% { transform: scaleX(0); transform-origin: left; }
  48% { transform: scaleX(1); transform-origin: left; }
  52% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}
@keyframes unclip { from { clip-path: inset(0); } to { clip-path: inset(0 0 0 100%); } }
@keyframes sweep { from { transform: translateX(0); } to { transform: translateX(calc(100% + 12px)); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
