/* =====================================================================
   Jie — site styles (dark theme)
   Colours live in :root below. Ink black and paper white do most of the
   work. One soft blue (--accent) is used as a SOLID colour, never as a
   glow: the sale bar, the quote card, picked options, ticks. A deeper
   pen blue (--accent-deep) is only the highlight behind "More enquiries".
   No gradients, glows or grid backdrops. Main buttons are white with
   black text; on the blue quote card they're black with white text.

   Motion rules (keep the site smooth on cheap phones):
   - Only animate transform and opacity.
   - No blur / backdrop-filter, no big animated shadows.
   - Everything moving is switched off for "reduce motion" visitors,
     and the page is fully visible if JavaScript is off.
   ===================================================================== */

/* Fonts: self-hosted Google Fonts (SIL Open Font License), latin subset */
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 500 900; font-stretch: 100% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../assets/fonts/atkinson-next-latin.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
  --bg: #0C0C0D;          /* page: neutral ink black */
  --bg-2: #141415;        /* panels */
  --bg-3: #1C1C1E;        /* raised panels, controls */
  --line: #262628;        /* hairlines */
  --line-2: #36363A;      /* stronger borders, hover */
  --text: #F2F2EE;        /* paper white */
  --muted: #A1A19C;       /* secondary text on dark (7.5:1) */
  --accent: #AFC6EE;      /* soft blue, used solid (ink text on it: 11:1) */
  --accent-2: #C7D7F5;    /* lighter soft blue, for small text on dark */
  --accent-deep: #2F5BD3; /* pen blue behind "More enquiries" (white text on it: 5.9:1) */
  --ink: #0C0C0D;         /* text on white and blue */
  --ink-2: #33405A;       /* secondary text on the blue (6:1) */

  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: 20px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --section-y: clamp(52px, 7vw, 92px);
  --head-h: 58px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  background: var(--bg);
  color-scheme: dark;
  scrollbar-color: var(--line-2) var(--bg);
  accent-color: var(--accent);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;      /* 17px */
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; line-height: 1.05; letter-spacing: -0.015em; font-weight: 800; }
p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; --head-h: 68px; } }

.icon { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.2em; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: var(--r-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.sprite { position: absolute; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  background: var(--text); color: var(--ink);
  border: 0; border-radius: var(--r-md);
  font-family: var(--f-display); font-weight: 750; font-size: 1rem; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.btn:hover { background: #FFFFFF; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.btn-big { min-height: 58px; padding: 16px 28px; font-size: 1.08rem; }
.btn-dark { background: var(--bg-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-dark:hover { background: #22242B; }

.btn-ink { background: var(--ink); color: var(--text); }
.btn-ink:hover { background: #000; }

.btn-ghost {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 4px;
  color: var(--text); font-weight: 700; text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 2px; background-repeat: no-repeat; background-position: 0 calc(100% - 10px);
  transition: color .2s var(--ease);
}
.btn-ghost:hover { color: var(--accent-2); }

/* ---------- Floating top: sale banner + header stay on screen ---------- */
.top { position: sticky; top: 0; z-index: 60; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  background: rgba(6, 11, 22, 0);
  border-bottom: 1px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.site-header.is-scrolled { background: var(--bg); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--head-h); }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 850; font-stretch: 115%; font-size: 1.2rem;
  text-decoration: none; letter-spacing: -0.01em; margin-right: auto;
}
.wordmark img { display: block; height: 46px; width: auto; }
.site-nav { display: none; gap: 30px; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .96rem; transition: color .2s var(--ease); }
.site-nav a:hover { color: var(--text); }
@media (min-width: 900px) { .site-nav { display: flex; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: calc(var(--head-h) + 28px) 0 56px; margin-top: calc(-1px - var(--head-h)); }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; } .hero { padding-bottom: 80px; } }

.hero-title {
  font-size: clamp(2.3rem, 6.4vw, 4.5rem);
  font-weight: 850; font-stretch: 112%;
  line-height: .98; letter-spacing: -0.03em;
  max-width: 13ch;
}
/* The selling point, highlighted like a marker pen */
.hero-title .mark {
  background-image: linear-gradient(var(--accent-deep), var(--accent-deep));
  background-repeat: no-repeat; background-position: 0 86%; background-size: calc(var(--m, 1) * 100%) 40%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 .06em; margin: 0 -.06em;
}
.hero-sub { margin-top: 26px; font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.hero-sub strong { color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; }
.hero-terms { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 10px; color: var(--muted); font-size: .98rem; }
.hero-terms li { display: flex; align-items: center; gap: 10px; }
.icon-check { color: var(--accent); }
@media (min-width: 640px) { .hero-terms { display: flex; flex-wrap: wrap; gap: 10px 26px; } }

/* ---------- Sale bar: floats at the top (inside .top) ---------- */
.sale-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 36px; padding: 6px var(--gutter);
  background: var(--accent); color: var(--ink); text-decoration: none;
  font-size: .84rem; font-weight: 700; text-align: center; line-height: 1.3;
}
.sale-bar:hover { background: var(--accent-2); }
.sale-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); flex: none; }
.motion .sale-dot { animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
@media (min-width: 720px) { .sale-bar { font-size: .92rem; min-height: 40px; } }

/* ---------- Drag to compare: a small browser window ---------- */
.hero-visual { margin: 0 auto; width: 100%; max-width: 640px; }
.hero-visual figcaption { text-align: center; margin-top: 14px; font-size: .82rem; color: var(--muted); }
.win {
  border-radius: 14px; overflow: hidden; background: #16171C;
  box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px -30px rgba(0, 0, 0, .85);
}
.win-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #1E2026; }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3A3D46; }
.win-bar span { margin-left: 8px; flex: 1; max-width: 62%; padding: 3px 12px; border-radius: 99px; background: #0E0F12; color: var(--muted); font-size: .74rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compare {
  --pos: 50%;
  position: relative; aspect-ratio: 4 / 3.15; overflow: hidden; container-type: inline-size;
  touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none;
}
.cmp-pane { position: absolute; inset: 0; font-size: clamp(8.5px, 3.1cqw, 15.5px); line-height: 1.35; overflow: hidden; }
.cmp-after { clip-path: inset(0 0 0 var(--pos)); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); pointer-events: none; }
.cmp-knob {
  position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: #fff; color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.cmp-knob svg { width: 22px; height: 22px; }
.cmp-tag { position: absolute; bottom: 10px; font-size: .72rem; font-weight: 800; padding: 4px 9px; border-radius: 99px; pointer-events: none; }
.cmp-tag-before { left: 10px; background: rgba(0,0,0,.65); color: #fff; }
.cmp-tag-after { right: 10px; background: var(--ink); color: #fff; }
.cmp-range { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; opacity: 0; margin: 0; pointer-events: none; }
.compare:has(.cmp-range:focus-visible) { outline: 3px solid var(--accent); outline-offset: -3px; }

/* BEFORE: an old static website, on purpose */
.cmp-before { background: #E4E2D6; color: #222; font-family: "Times New Roman", Times, serif; padding: 0 0 .6em; }
.ob-title { background: #1B2A8C; color: #FFE94A; font-weight: 700; font-size: 1.5em; padding: .35em .6em; text-align: center; }
.ob-links { padding: .5em .6em; text-align: center; color: #0000EE; font-size: 1em; }
.ob-red { background: #E3141B; color: #fff; font: 700 .9em Arial, Helvetica, sans-serif; text-align: center; padding: .35em 0; white-space: nowrap; overflow: hidden; }
.ob-h { font: 700 1.35em "Times New Roman", serif; color: #7A1010; padding: .5em .6em .1em; letter-spacing: 0; }
.ob-text { padding: 0 .6em; font-size: 1.05em; }
.ob-img { margin: .6em .6em 0; height: 5.6em; border: 2px inset #999; background: repeating-linear-gradient(45deg, #D2D2D2 0 .6em, #C2C2C2 .6em 1.2em); display: grid; place-items: center; color: #555; font: .95em Arial, sans-serif; }
.ob-small { padding: .6em .6em 0; font-size: .85em; color: #444; }
.ob-small b { background: #000; color: #3CFF3C; font-family: "Courier New", monospace; padding: 0 .3em; }

/* AFTER: a website built to get enquiries */
.cmp-after { background: #F4F5F7; color: var(--ink); display: flex; flex-direction: column; gap: .7em; padding: 0 0 .9em; font-family: var(--f-body); }
.nb-bar { display: flex; align-items: center; gap: 1em; padding: .8em 1em; background: #fff; box-shadow: 0 1px 0 #E1E3E8; }
.nb-bar > b { font-family: var(--f-display); font-weight: 850; font-size: 1.1em; margin-right: auto; }
.nb-links { display: flex; gap: .9em; color: #555B66; font-size: .9em; }
.nb-links i { font-style: normal; }
.nb-btn { display: inline-flex; align-items: center; gap: .35em; background: var(--ink); color: #fff; font-weight: 800; font-size: .85em; padding: .45em .9em; border-radius: 99px; }
.nb-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: .8em; align-items: center; padding: 0 1em; flex: 1; min-height: 0; }
.nb-copy { display: grid; gap: .45em; align-content: center; background: var(--ink); color: #fff; border-radius: .9em; padding: 1.1em; height: 100%; }
.nb-copy small { color: var(--accent); font-size: .85em; }
.nb-copy b { font-family: var(--f-display); font-weight: 850; font-size: 1.75em; line-height: 1.05; }
.nb-cta { justify-self: start; display: inline-flex; align-items: center; gap: .35em; background: #fff; color: var(--ink); font-weight: 800; font-size: .9em; padding: .45em .9em; border-radius: 99px; margin-top: .3em; }
.nb-prices { background: #fff; border-radius: .8em; padding: .3em .9em; box-shadow: 0 1px 0 #E1E3E8; }
.nb-prices div { display: flex; justify-content: space-between; gap: .6em; padding: .65em 0; border-bottom: 1px solid #ECEDF1; }
.nb-prices div:last-child { border-bottom: 0; }
.nb-prices b { font-weight: 800; white-space: nowrap; }
.nb-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5em; padding: 0 1em; height: 22%; }
.nb-gallery i { border-radius: .6em; background: linear-gradient(150deg, #D5D8DE, #B3B8C2); }
.nb-gallery i:nth-child(2) { background: linear-gradient(150deg, #C7CFD9, #9EAABA); }
.nb-gallery i:nth-child(3) { background: linear-gradient(150deg, #CBD2EA, #A3ADD0); }
.nb-gallery i:nth-child(4) { background: linear-gradient(150deg, #D8DCE4, #AEB6C4); }

/* ---------- Price calculator: options on the left, a printed-style quote on the right ---------- */
.calc-grid { display: grid; gap: 16px; align-items: start; margin-top: 32px; }
@media (min-width: 980px) { .calc-grid { grid-template-columns: 1.3fr .7fr; gap: 24px; } .calc-result { position: sticky; top: 124px; } }
.calc-form { display: grid; gap: 26px; }
.calc-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc-form legend { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-family: var(--f-display); font-weight: 780; font-size: 1.12rem; margin-bottom: 12px; padding: 0; }
.calc-form legend span { font-family: var(--f-body); font-weight: 600; font-size: .86rem; color: var(--accent-2); }
.calc-groups { display: grid; gap: 22px; }

/* Site size: two cards, each with its price */
.calc-sizes { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.calc-opt { position: relative; display: block; cursor: pointer; }
.calc-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.calc-opt .box {
  display: grid; gap: 3px; height: 100%; padding: 13px 14px; border-radius: var(--r-md);
  background: var(--bg-3); border: 1.5px solid var(--line-2); color: var(--text);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.calc-opt .box b { font-family: var(--f-display); font-size: 1.02rem; line-height: 1.2; }
.calc-opt .box small { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.opt-price { margin-top: 6px; font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.opt-price s { font-weight: 600; font-size: .85em; color: var(--muted); margin-right: 2px; }
.calc-opt:hover .box { border-color: #4A4A50; }
.calc-opt input:checked + .box { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.calc-opt input:checked + .box small, .calc-opt input:checked + .box s { color: var(--ink-2); }
.calc-opt input:focus-visible + .box { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Options: toggles with a live price tag */
.calc-extras { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-chip { position: relative; cursor: pointer; }
.calc-chip.has-hint { flex: 1 1 100%; }
.calc-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.calc-chip > span {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 42px; padding: 8px 10px 8px 12px; border-radius: var(--r-md);
  background: var(--bg-3); border: 1.5px solid var(--line-2); font-size: .93rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.calc-chip b { font-weight: 650; }
.calc-chip > span::before {
  content: ""; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid #5C5C62; flex: none;
  background: center / 12px no-repeat;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.calc-chip small { flex-basis: 100%; padding-left: 24px; color: var(--muted); font-size: .84rem; line-height: 1.35; }
.calc-chip:hover > span { border-color: #4A4A50; }
.calc-chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.calc-chip input:checked + span small { color: var(--ink-2); }
.calc-chip input:checked + span::before {
  background-color: var(--ink); border-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23AFC6EE' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.calc-chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.tag {
  font-style: normal; font-size: .74rem; font-weight: 750; font-variant-numeric: tabular-nums;
  padding: 1px 7px; border-radius: var(--r-sm); color: var(--muted); border: 1px solid var(--line-2);
}
.tag-free { color: var(--accent-2); border-color: rgba(175, 198, 238, .45); }
.tag-plus { color: var(--text); border-color: #55555B; }
.calc-chip input:checked + span .tag { color: var(--ink); border-color: rgba(12, 12, 13, .35); }

/* The quote: solid soft blue, ink text, like a printed quotation */
.calc-result {
  display: grid; gap: 14px; padding: clamp(20px, 4vw, 28px); border-radius: var(--r-lg);
  background: var(--accent); color: var(--ink);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .7);
}
.quote-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1.5px solid var(--ink); }
.quote-head > span:first-child { font-family: var(--f-display); font-weight: 850; font-size: 1.2rem; }
.quote-pkg { font-weight: 700; font-size: .92rem; color: var(--ink-2); }
.quote-pkg span { display: inline-block; color: var(--ink); }
.quote-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .95rem; }
.quote-lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.ql-label { display: grid; gap: 2px; min-width: 0; }
.ql-label small { color: var(--ink-2); font-size: .82rem; line-height: 1.35; }
.ql-amt { flex: none; font-weight: 750; font-variant-numeric: tabular-nums; }
.ql-sale .ql-amt { color: var(--ink); }
.ql-free { color: var(--ink-2); }
.ql-free .ql-amt { color: var(--ink); }
.quote-total { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-top: 12px; border-top: 1.5px dashed rgba(12, 12, 13, .45); }
.quote-total-label { display: grid; font-family: var(--f-display); font-weight: 850; font-size: 1.15rem; line-height: 1.15; }
.quote-total-label small { font-family: var(--f-body); font-weight: 500; font-size: .8rem; color: var(--ink-2); }
.calc-price { font-family: var(--f-display); font-weight: 900; font-stretch: 112%; font-size: clamp(3rem, 9vw, 3.9rem); line-height: .9; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.calc-price .cur { font-size: .4em; vertical-align: .95em; margin-right: 3px; }
.calc-extra { font-size: .88rem; color: var(--ink); background: rgba(12, 12, 13, .08); border: 1px solid rgba(12, 12, 13, .25); border-radius: var(--r-sm); padding: 8px 11px; }
.calc-result .btn { width: 100%; }
.calc-note { color: var(--ink-2); font-size: .82rem; }

/* Phones: a small price bar that follows you while you pick */
.calc-mini {
  position: sticky; bottom: 12px; z-index: 5; margin-bottom: -72px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 16px; border-radius: var(--r-md);
  background: var(--accent); color: var(--ink); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .8);
  transition: opacity .25s var(--ease), transform .3s var(--ease-out);
}
.calc-mini > span { display: grid; line-height: 1.2; }
.calc-mini small { color: var(--ink-2); font-size: .8rem; }
.calc-mini b { font-family: var(--f-display); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.calc-mini .btn { background: var(--ink); color: var(--text); }
.calc-mini.is-gone { opacity: 0; transform: translateY(10px); pointer-events: none; }
@media (min-width: 980px) { .calc-mini { display: none; } }
.calc-bump { animation: bump .45s var(--ease-out); }
@keyframes bump { 30% { transform: translateY(-4px) scale(1.04); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section-y) 0; }
.section-title { font-size: clamp(2.1rem, 5.4vw, 3.8rem); font-stretch: 108%; letter-spacing: -0.025em; max-width: 18ch; }

/* ---------- Portfolio ---------- */
.work-grid { display: grid; gap: 18px; margin-top: 48px; }
@media (min-width: 760px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
.work-card {
  position: relative; overflow: hidden; display: grid; gap: 8px; text-decoration: none;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 14px 22px;
}
.work-card img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; margin-bottom: 8px; transition: transform .6s var(--ease-out); }
.work-card:hover img { transform: scale(1.03); }
.work-card h3, .work-card p, .work-card .btn-link { padding: 0 6px; }
.work-card p { color: var(--muted); }
.work-card .btn-link { color: var(--accent-2); font-weight: 700; }

/* ---------- How it works: a numbered row, hairlines instead of boxes ---------- */
.how-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; counter-reset: step; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .how-steps { grid-template-columns: repeat(4, 1fr); gap: 28px; border-top: 0; } }
.how-steps li {
  counter-increment: step; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; row-gap: 2px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) { .how-steps li { grid-template-columns: 1fr; padding: 18px 0 0; border-bottom: 0; border-top: 1.5px solid var(--line-2); } }
.how-steps li::before {
  content: counter(step); grid-row: span 2;
  font-family: var(--f-display); font-weight: 850; font-size: 1.6rem; line-height: 1; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 720px) { .how-steps li::before { grid-row: auto; margin-bottom: 10px; } }
.how-steps b { font-family: var(--f-display); font-size: 1.12rem; font-weight: 780; line-height: 1.2; }
.how-steps span { color: var(--muted); font-size: .95rem; }
.how-steps li:last-child b { color: var(--accent); }

/* WHY A WEBSITE: one sourced stat, then what a customer sees with and without a site */
.why .section-title { font-size: clamp(1.8rem, 4.2vw, 2.6rem); }
.why-stat { display: grid; gap: 8px; margin-top: 22px; }
.why-num { font-family: var(--f-display); font-weight: 900; font-stretch: 112%; font-size: clamp(3.2rem, 11vw, 5rem); line-height: .85; letter-spacing: -0.04em; color: var(--accent); font-variant-numeric: tabular-nums; margin: 0; }
.why-claim { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.05rem, 2.4vw, 1.3rem); line-height: 1.4; max-width: 24ch; margin: 0; }
@media (min-width: 720px) { .why-stat { grid-template-columns: auto 1fr; align-items: end; gap: 28px; } }
.why-cmp { display: grid; gap: 14px; margin-top: 24px; }
@media (min-width: 760px) { .why-cmp { grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; } }
.why-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 20px; }
.why-card h3 { font-size: 1.05rem; line-height: 1.3; margin: 0 0 14px; }
.why-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.why-card li { color: var(--muted); font-size: .95rem; line-height: 1.4; }
.why-card li b { display: block; font-family: var(--f-display); font-weight: 780; color: var(--text); margin-bottom: 2px; }
.why-card.is-with { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.why-card.is-with li { color: var(--ink-2); }
.why-card.is-with li b { color: var(--ink); }
.why-source { margin: 22px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; max-width: 70ch; }
.why-source a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Testimonials (enable in index.html when real) ---------- */
.quotes { display: grid; gap: 18px; margin-top: 48px; }
@media (min-width: 760px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quote { margin: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; }
.quote blockquote { margin: 0 0 16px; font-size: 1.15rem; }
.quote figcaption { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 28px; }
@media (min-width: 980px) { .faq-wrap { grid-template-columns: .6fr 1.4fr; gap: 64px; align-items: start; } }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px 0; font-family: var(--f-display); font-weight: 750; font-size: 1.1rem;
  transition: color .2s var(--ease);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent-2); }
.faq-list summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(var(--text), var(--text)) center / 12px 2px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 2px 12px no-repeat;
  transition: transform .35s var(--ease-out), background-color .25s var(--ease), border-color .25s var(--ease);
}
.faq-list details[open] summary::after {
  transform: rotate(135deg); border-color: var(--accent); background-color: var(--accent);
  background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink));
}
.faq-a { padding: 0 48px 20px 0; color: var(--muted); }
/* Smooth open/close where supported (newer Chrome / Edge); others just open */
.faq-list details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete;
}
.faq-list details[open]::details-content { block-size: auto; }

/* ---------- Contact ---------- */
.contact-card {
  position: relative; overflow: hidden;
  display: grid; gap: 24px; align-items: center;
  padding: clamp(22px, 4vw, 44px); border-radius: var(--r-lg);
  background: var(--bg-2); border: 1px solid var(--line-2);
}
@media (min-width: 860px) { .contact-card { grid-template-columns: 220px 1fr; gap: 44px; } }
.portrait {
  position: relative; width: min(100%, 220px); aspect-ratio: 480 / 560; border-radius: 22px; overflow: hidden;
  background: var(--bg-3); display: grid; place-items: center;
  box-shadow: 0 0 0 1px var(--line-2);
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait .portrait-fallback { position: static; inset: auto; width: auto; height: 96px; object-fit: contain; }
.contact-copy { display: grid; gap: 16px; justify-items: start; }
.contact-copy > p { color: var(--muted); font-size: 1.1rem; max-width: 50ch; }
.contact-number { font-size: .98rem !important; }
.contact-number a { color: var(--text); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 0; overflow: hidden; }
.footer-inner { display: grid; gap: 18px; padding-bottom: 32px; }
@media (min-width: 860px) { .footer-inner { grid-template-columns: 1fr auto; align-items: start; } .footer-privacy { grid-column: 1 / -1; } }
.footer-brand { font-family: var(--f-display); font-weight: 800; font-size: 1.1rem; }
.footer-small { color: var(--muted); font-size: .9rem; }
.footer-small a { color: var(--text); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--accent-2); }
/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--text); color: var(--ink);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .7);
  transition: transform .3s var(--ease-out), opacity .3s var(--ease);
}
.wa-float .icon { width: 28px; height: 28px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--text); opacity: 0; pointer-events: none;
}
.wa-float.is-hidden, .wa-float.is-covering { opacity: 0; transform: scale(.6); pointer-events: none; }
@media (min-width: 1100px) { .wa-float { display: none; } }

/* ---------- Privacy page ---------- */
.page { padding: 56px 0 88px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(2.2rem, 8vw, 3.4rem); font-weight: 850; font-stretch: 110%; margin-bottom: 18px; }
.page h2 { font-size: 1.4rem; margin: 34px 0 10px; }
.page p, .page li { color: var(--muted); }
.page a { color: var(--accent-2); }
.page p + p { margin-top: 12px; }
.page .back-link { margin-top: 36px; }
.page ul { padding-left: 1.2em; display: grid; gap: 6px; }

/* =====================================================================
   MOTION
   Only active when <html> has the "motion" class (set in index.html's
   <head> for visitors who haven't asked for reduced motion).
   ===================================================================== */
/* Hero load sequence */
.motion [data-load] { animation: rise .9s var(--ease-out) both; }
.motion [data-load="0"] { animation-delay: .05s; }
.motion [data-load="2"] { animation-delay: .5s; }
.motion [data-load="3"] { animation-delay: .7s; }
.motion [data-load="4"] { animation-delay: .85s; }
.motion .hero-visual[data-load] { animation: rise 1.1s var(--ease-out) .5s both; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 24px, 0); } }

/* Headings split into words by JS: each word slides up out of a mask */
.motion [data-split]:not(.is-split) { opacity: 0; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.wi { display: inline-block; }
.motion .is-split .wi { transform: translate3d(0, 108%, 0); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 55ms); }
.motion .is-split.is-in .wi { transform: none; }
/* The marker sweeps in once the words have landed, then follows your scroll
   (JS sets --m from 1 to 0 as you scroll down, and back up again). */
.motion .hero-title .mark { --m: 0; transition: background-size 1s var(--ease-out) 1.05s; }
.motion .hero-title.is-in .mark { --m: 1; }
.motion .hero-title .mark.is-live { transition: none; }
.motion .hero-title.is-split .wi { transition-duration: 1.1s; transition-delay: calc(150ms + var(--i) * 70ms); }

/* Fade and rise when scrolled into view */
.motion [data-reveal] {
  opacity: 0; transform: translate3d(0, 34px, 0);
  transition: opacity .9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.motion [data-reveal].is-in { opacity: 1; transform: none; }
/* Floating WhatsApp: a ring that pulses out every few seconds */
.motion .wa-float::before { animation: ring 3.2s var(--ease-out) infinite 2s; }
@keyframes ring { 0% { opacity: .7; transform: scale(1); } 60%, 100% { opacity: 0; transform: scale(1.7); } }

/* Pause everything that loops while it's off screen or the tab is hidden */
.is-paused, .is-paused * { animation-play-state: paused !important; }

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

/* ---------- Language switch (EN | 中文) ---------- */
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; background: var(--bg-2); flex: none; }
.lang button { min-height: 36px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: .86rem; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--ink); }
.lang button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.header-inner { gap: 12px; }
@media (min-width: 900px) { .header-inner { gap: 24px; } }
/* Chinese: system Chinese fonts, looser spacing (the English fonts have no Chinese characters) */
:lang(zh) body, :lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh) .wordmark { font-family: var(--f-body), "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0; line-height: 1.25; }
:lang(zh) .wordmark { font-family: var(--f-display), sans-serif; }
.wordmark { white-space: nowrap; }
@media (max-width: 480px) {
  .header-inner { gap: 8px; }
  .wordmark img { height: 42px; }
  .lang button { min-width: 40px; padding: 0 9px; }
  .header-inner .btn-small { padding: 8px 12px; gap: 6px; }
}
@media (max-width: 410px) { .header-inner .btn-small span { display: none; } .header-inner .btn-small { padding: 8px 12px; } }

/* ---------- Aircon / plumber pages ---------- */
.vp-hero .hero-grid { grid-template-columns: 1fr; }
.vp-hero .hero-copy { max-width: 46rem; }
.vp-fig { margin: 0; }
.vp-fig .win a { display: block; }
.vp-fig img { display: block; width: 100%; height: auto; }
.vp-fig figcaption { margin-top: 10px; color: var(--muted); font-size: .85rem; }
@media (min-width: 980px) { .vp-hero:has(.vp-fig) .hero-grid { grid-template-columns: .95fr 1.05fr; gap: 56px; } }
.vp-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.vp-list li { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.vp-list b { font-family: var(--f-display); font-size: 1.12rem; font-weight: 780; line-height: 1.25; }
.vp-list span { color: var(--muted); max-width: 60ch; }
@media (min-width: 820px) { .vp-list li { grid-template-columns: 17rem 1fr; gap: 32px; align-items: baseline; } }
.vp-related { margin: 28px 0 0; }
.vp-related a { color: var(--accent-2); font-weight: 700; text-underline-offset: 3px; }
.vp-hero .hero-title { font-size: clamp(2.2rem, 5vw, 3.8rem); }

/* Proof pill above the hero title */
.hero-proof { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 9px 18px; font-weight: 650; color: var(--text); border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); font-size: .9rem; color: var(--muted); text-decoration: none; line-height: 1.3; }
.hero-proof b { color: var(--text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.hero-proof:hover { border-color: var(--accent); }
.hero-proof-dot { width: 9px; height: 9px; border-radius: 50%; background: #1fa85a; box-shadow: 0 0 0 3px rgba(31,168,90,.2); flex: none; }

/* Skip rendering work for sections far below the fold (sizes measured at phone / tablet+ so anchor jumps land right) */
.section.why, .section.how, .section.faq, .section.contact { content-visibility: auto; }
.section.why { contain-intrinsic-size: auto none auto 1270px; }
.section.how { contain-intrinsic-size: auto none auto 490px; }
.section.faq { contain-intrinsic-size: auto none auto 530px; }
.section.contact { contain-intrinsic-size: auto none auto 655px; }
@media (min-width: 700px) {
  .section.why { contain-intrinsic-size: auto none auto 780px; }
  .section.how { contain-intrinsic-size: auto none auto 360px; }
  .section.faq { contain-intrinsic-size: auto none auto 520px; }
  .section.contact { contain-intrinsic-size: auto none auto 600px; }
}
