/* Northlight Sites. Plain CSS, no build step. */

@font-face { font-family: "Jost"; src: url("assets/fonts/jost-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("assets/fonts/jost-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("assets/fonts/jost-600.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }

/* ---------- Tokens: dark is the default brand theme ---------- */
:root {
  --bg: #16161b;
  --bg-raised: #1a1a20;
  --panel: #1b1b21;
  --surface: rgba(34, 34, 42, 0.55);
  --surface-strong: rgba(30, 30, 36, 0.82);
  --input-bg: #111115;
  --chrome: #26262e;
  --before-bg: #1c1c22;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --control-border: rgba(255, 255, 255, 0.4);
  --text: #f4f4f7;
  --body: #c8c8d3;
  --muted: #9e9eae;
  --accent: #a18eff;
  --accent-text: #b4a5ff;
  --accent-tint: rgba(161, 142, 255, 0.14);
  --mint: #3ee6a8;
  --mint-text: #3ee6a8;
  --pink: #e95cff;
  --grad: linear-gradient(135deg, #a18eff, #3ee6a8);
  --grad-text: linear-gradient(100deg, #3ee6a8 0%, #5fd4d6 42%, #ab9bff 100%);
  /* Primary CTA: sunset gradient with dark text in both themes (>= 5.8:1 on every stop) */
  --btn-bg: linear-gradient(135deg, #ffc15e 0%, #ff8a3d 52%, #ff5e62 100%);
  --btn-text: #2b1407;
  --btn-glow: rgba(255, 122, 61, 0.45);
  --knob-bg: linear-gradient(135deg, #a18eff 0%, #3ee6a8 100%);
  --knob-text: #0c0a1a;
  --glow-rgb: 145 114 255;
  --glow2-rgb: 62 230 168;
  --ghost-bg: rgba(255, 255, 255, 0.04);
  --shadow-card: 0 14px 34px -14px rgb(0 0 0 / 0.8), 0 2px 6px rgb(0 0 0 / 0.35);
  --shadow-lift: 0 34px 70px -28px rgb(0 0 0 / 0.85);
  --blur: blur(18px) saturate(160%);
  --hero-bg:
    radial-gradient(110% 70% at 78% -6%, rgba(124, 92, 255, 0.22), transparent 62%),
    radial-gradient(80% 60% at 12% 0%, rgba(62, 230, 168, 0.12), transparent 60%),
    linear-gradient(#111116, var(--bg));
  --aurora-opacity: 0.8;
  --stars-opacity: 0.6;
  --horizon: rgba(118, 96, 255, 0.34);
  --day-o: 0;
  /* the city at night: violet ink lines, warm lit windows */
  --c-far-fill: #1b1b23; --c-far-ink: rgba(140, 122, 255, 0.42);
  --c-back-fill: #1a1a21; --c-back-ink: rgba(150, 132, 255, 0.5);
  --c-mid-fill: #18181e; --c-mid-ink: rgba(165, 148, 255, 0.78);
  --c-front-fill: #16161b; --c-front-ink: rgba(190, 178, 255, 0.92);
  --c-detail: rgba(160, 142, 255, 0.4); --c-win-off: rgba(160, 142, 255, 0.16);
  --c-win: #ffcf7a; --lit-o: 1; --c-clock: #ffe3a8; --c-hands: #3a2a12;
  --c-smoke: rgba(214, 206, 255, 0.42); --c-smoke-mid: rgba(200, 190, 255, 0.16); --c-flag: #b8a6ff;

  --radius-card: 16px;
  --radius-control: 11px;
  --radius-small: 7px;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 520ms;
  --font: "Jost", "Futura", "Avenir Next", "Century Gothic", "Segoe UI", system-ui, sans-serif;
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 68px;
  --section-y: clamp(56px, 7vw, 96px);
  /* Skyline scales with the page width (viewBox 1440x160), so its spires are never cropped */
  --skyline-h: max(60px, 13.2vw); /* height of the drawn city (1440:190), min 60px on phones */
  --orb-d: 40px; --orb-x: calc(100% - 42px); --orb-y: 38px;
  color-scheme: dark;
}

[data-theme="light"] {
  /* Daylight: warm white and pale sky, sky-blue accents, sun-orange CTAs */
  --bg: #f8f7f3;
  --bg-raised: #eef4f9;
  --panel: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --input-bg: #ffffff;
  --chrome: #e6ebf1;
  --before-bg: #edf0f4;
  --line: rgba(20, 30, 50, 0.1);
  --line-strong: rgba(20, 30, 50, 0.18);
  --control-border: #858b98;
  --text: #14171f;
  --body: #3a3f4b;
  --muted: #5a606c;
  --accent: #5b42d8;
  --accent-text: #5038c4;
  --accent-tint: rgba(91, 66, 216, 0.1);
  --mint: #14b886;
  --mint-text: #0a7a5a;
  --pink: #e2553f;
  --grad: linear-gradient(135deg, #5b42d8, #0d7a63);
  --grad-text: linear-gradient(100deg, #0b6b50 0%, #1d63a8 48%, #4f2fd6 100%);
  --btn-glow: rgba(255, 110, 60, 0.38);
  --knob-bg: linear-gradient(135deg, #5b42d8 0%, #0d7a63 100%);
  --knob-text: #ffffff;
  --glow-rgb: 91 66 216;
  --glow2-rgb: 255 160 90;
  --ghost-bg: rgba(255, 255, 255, 0.62);
  --shadow-card: 0 16px 36px -20px rgb(30 50 90 / 0.26), 0 2px 6px rgb(30 50 90 / 0.06);
  --shadow-lift: 0 34px 70px -32px rgb(30 50 90 / 0.38);
  --aurora-opacity: 0;
  --stars-opacity: 0;
  --day-o: 1;
  --horizon: rgba(255, 255, 255, 0.6);
  /* the city by day: slate ink on soft blue-grey */
  --c-far-fill: #d8dfeb; --c-far-ink: #9aa7c0;
  --c-back-fill: #d1d9e7; --c-back-ink: #8592b2;
  --c-mid-fill: #c9d2e1; --c-mid-ink: #66749a;
  --c-front-fill: #bfc9da; --c-front-ink: #505e82;
  --c-detail: rgba(80, 94, 130, 0.5); --c-win-off: rgba(80, 94, 130, 0.42);
  --c-win: #ffcf7a; --lit-o: 0; --c-clock: #f4f1e8; --c-hands: #2b3550;
  --c-smoke: rgba(255, 255, 255, 0.8); --c-smoke-mid: rgba(255, 255, 255, 0.32); --c-flag: #c4574a;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--text); margin: 0; line-height: 1.1; }
h2 { font-weight: 500; letter-spacing: -0.025em; text-wrap: balance; }
h3 { font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgb(var(--glow-rgb) / 0.35); color: var(--text); }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 8px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; border-radius: var(--radius-control); background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.glass {
  background: var(--surface);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--radius-control);
  font: inherit; font-size: 1.0625rem; font-weight: 600; line-height: 1.2; letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: translate var(--dur) var(--ease-spring), box-shadow .3s ease, background-color .2s ease, border-color .2s ease, scale .15s ease;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-text); box-shadow: 0 12px 30px -14px var(--btn-glow), inset 0 1px 0 rgb(255 255 255 / 0.3); }
.btn-primary:hover { translate: 0 -2px; box-shadow: 0 18px 38px -14px var(--btn-glow), inset 0 1px 0 rgb(255 255 255 / 0.3); }
.btn:active { scale: 0.98; }
.btn-ghost { background: var(--ghost-bg); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { translate: 0 -2px; border-color: var(--accent-text); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 1rem; }
.btn-block { width: 100%; }

.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent-text); font-weight: 600; text-decoration: none; }
.text-link .icon { width: 1.1em; height: 1.1em; transition: translate var(--dur) var(--ease-spring); }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.text-link:hover .icon { translate: 2px -2px; }
.inline-link { display: inline-block; padding-block: 9px; margin-block: -9px; color: var(--accent-text); text-underline-offset: 4px; overflow-wrap: anywhere; }

.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -20px rgb(0 0 0 / 0.6); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 0; color: var(--text); text-decoration: none; margin-right: auto; }
.logo-mark { flex: none; color: var(--text); }
.logo-word { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; }
.logo-word span { color: var(--muted); font-weight: 400; }

.site-nav { display: flex; align-items: center; }
.site-nav ul { display: flex; gap: 2px; }
.site-nav ul a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius-control);
  color: var(--body); font-size: 1rem; text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.site-nav ul a:hover { color: var(--text); background: var(--ghost-bg); }
.site-nav ul a.is-active { color: var(--text); background: var(--accent-tint); }
.nav-cta { display: none; }

.header-tools { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--ghost-bg); color: var(--text); cursor: pointer;
  transition: border-color .2s ease;
}
.theme-toggle:hover { border-color: var(--accent-text); }
.theme-toggle .icon { grid-area: 1 / 1; width: 20px; height: 20px; transition: opacity .3s ease, rotate var(--dur) var(--ease-spring), scale var(--dur) var(--ease-spring); }
.theme-toggle .icon-moon { opacity: 0; rotate: -90deg; scale: 0.4; color: #2d4a86; }
.theme-toggle .icon-sun { color: #ffb347; }
[data-theme="light"] .theme-toggle .icon-sun { opacity: 0; rotate: 90deg; scale: 0.4; }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 1; rotate: 0deg; scale: 1; }

.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; background: none; border: 0; border-radius: var(--radius-control); color: var(--text); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 2px; margin: 0 auto; background: currentColor; border-radius: 2px;
  transition: translate .3s var(--ease-spring), rotate .3s var(--ease-spring), background-color .2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { translate: 0 7px; rotate: 45deg; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { translate: 0 -7px; rotate: -45deg; }

@media (max-width: 1179px) {
  .header-cta { display: none; }
  .theme-toggle { border-color: transparent; background: none; }
  .js .nav-toggle { display: block; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 12px; padding: 8px var(--gutter) 24px;
    background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -24px rgb(0 0 0 / 0.5);
  }
  .js .nav-open .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: flex; min-height: 52px; padding: 0 4px; font-size: 1.125rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .site-nav ul a.is-active { background: none; color: var(--accent-text); }
  .nav-cta { display: inline-flex; margin-top: 8px; min-height: 52px; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .site-nav { order: 3; width: 100%; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; }
  html:not(.js) .site-nav ul a { border: 0; font-size: 1rem; }
}

/* ---------- Hero: aurora over the Edinburgh skyline ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--hero-bg); }
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sky::before { /* horizon glow, painted behind the skyline */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--skyline-h) * 1.9);
  background: radial-gradient(70% 100% at 60% 100%, var(--horizon), transparent 75%);
}
.stars {
  position: absolute; inset: 0 0 35% 0; opacity: var(--stars-opacity); transition: opacity 1s ease;
  background-image:
    radial-gradient(1px 1px at 24px 36px, #fff, transparent),
    radial-gradient(1px 1px at 142px 92px, rgb(255 255 255 / 0.7), transparent),
    radial-gradient(1.5px 1.5px at 236px 18px, rgb(255 255 255 / 0.85), transparent),
    radial-gradient(1px 1px at 318px 160px, rgb(255 255 255 / 0.6), transparent),
    radial-gradient(1px 1px at 88px 210px, rgb(255 255 255 / 0.5), transparent),
    radial-gradient(1.5px 1.5px at 390px 250px, rgb(255 255 255 / 0.6), transparent),
    radial-gradient(1px 1px at 470px 120px, rgb(255 255 255 / 0.55), transparent);
  background-size: 520px 300px;
  -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent);
  mask-image: linear-gradient(to bottom, #000 20%, transparent);
}

.stars::after { /* a second set of stars that twinkle (night only, paused with everything else) */
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 62px 74px, #fff, transparent),
    radial-gradient(1px 1px at 188px 28px, rgb(255 255 255 / 0.9), transparent),
    radial-gradient(1.5px 1.5px at 296px 206px, #fff, transparent),
    radial-gradient(1px 1px at 408px 58px, rgb(255 255 255 / 0.85), transparent),
    radial-gradient(1.2px 1.2px at 118px 248px, #fff, transparent);
  background-size: 470px 310px;
  animation: twinkle 2.6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.15; } to { opacity: 1; } }
.aurora { position: absolute; inset: -12% -10% 22% -10%; opacity: var(--aurora-opacity); transition: opacity 1s ease; }
.curtain {
  position: absolute; top: 0; height: 100%; border-radius: 50%;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent);
  mask-image: radial-gradient(closest-side, #000 30%, transparent);
  transform-origin: 50% 100%;
  will-change: translate, scale, opacity;
  animation: sway var(--t, 18s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
}
.curtain::after { /* faint vertical rays */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.045) 0 1px, transparent 1px 8px);
}
.c1 {
  left: -4%; width: 52%;
  background: linear-gradient(to top, transparent 6%, rgba(62, 230, 168, 0.55) 36%, rgba(63, 201, 214, 0.32) 58%, rgba(124, 92, 255, 0.26) 78%, rgba(233, 92, 255, 0.12) 90%, transparent);
  transform: rotate(-14deg) skewX(-18deg);
  --t: 19s;
}
.c2 {
  left: 30%; width: 48%; top: -6%;
  background: linear-gradient(to top, transparent 8%, rgba(62, 230, 168, 0.3) 34%, rgba(124, 92, 255, 0.42) 64%, rgba(233, 92, 255, 0.18) 86%, transparent);
  transform: rotate(9deg) skewX(14deg);
  --t: 23s; --delay: -7s;
}
.c3 {
  right: -6%; width: 40%; top: 6%;
  background: linear-gradient(to top, transparent 10%, rgba(62, 230, 168, 0.42) 40%, rgba(63, 201, 214, 0.26) 62%, rgba(124, 92, 255, 0.2) 82%, transparent);
  transform: rotate(-6deg) skewX(-10deg);
  --t: 27s; --delay: -13s;
}
@keyframes sway {
  0% { translate: -3% 0; scale: 1 1; opacity: 0.72; }
  50% { opacity: 1; }
  100% { translate: 4% -3%; scale: 1.05 1.12; opacity: 0.86; }
}
.hero.is-paused .curtain, .hero.is-paused .pill-dot::after,
.hero.is-user-paused .curtain, .hero.is-user-paused .pill-dot::after { animation-play-state: paused; }
.motion-toggle {
  position: absolute; right: max(12px, calc((100vw - var(--container)) / 2 - 56px)); bottom: 14px; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); cursor: pointer;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: color .2s ease, border-color .2s ease;
}
.motion-toggle:hover { color: var(--text); border-color: var(--accent-text); }
.motion-toggle .icon { grid-area: 1 / 1; width: 18px; height: 18px; }
.motion-toggle .icon-play, .motion-toggle[aria-pressed="true"] .icon-pause { display: none; }
.motion-toggle[aria-pressed="true"] .icon-play { display: block; }

/* ---------- Day sky (light theme): sun, soft clouds, warm haze ---------- */
.daysky {
  position: absolute; inset: 0; overflow: hidden; opacity: var(--day-o); transition: opacity 1s ease;
  background: linear-gradient(180deg, #8ec1ec 0%, #b4d7f4 30%, #d9eaf8 56%, #f6e8d9 80%, #fde0c4 100%);
}
/* Moon (night) and sun (day) share one spot and one disc size, so switching theme is a swap:
   one sets and fades while the other rises and fades in. */
.orb {
  position: absolute; left: var(--orb-x); top: var(--orb-y); width: var(--orb-d); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  transition: opacity 1.1s ease, translate 1.1s cubic-bezier(0.3, 0.1, 0.3, 1);
}
.moon {
  border-radius: 50%;
  background:
    radial-gradient(20% 16% at 63% 36%, rgba(118, 112, 150, 0.34), transparent 100%),
    radial-gradient(15% 13% at 40% 60%, rgba(118, 112, 150, 0.26), transparent 100%),
    radial-gradient(11% 9% at 68% 66%, rgba(118, 112, 150, 0.22), transparent 100%),
    radial-gradient(9% 8% at 34% 34%, rgba(118, 112, 150, 0.16), transparent 100%),
    radial-gradient(circle at 38% 34%, #fffbf1 0%, #f1ecdd 58%, #d8d2c1 100%);
  box-shadow: 0 0 16px 2px rgba(228, 222, 255, 0.26), 0 0 54px 14px rgba(150, 135, 255, 0.12);
  opacity: calc(1 - var(--day-o));
  translate: 0 calc(var(--day-o) * 32%);
}
.sun { translate: 0 calc((1 - var(--day-o)) * 32%); }
.sun-disc {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 45% 42%, #fffef9 0%, #fff4cf 55%, #ffd987 100%);
  box-shadow: 0 0 10px 2px rgba(255, 244, 210, 0.95);
}
.sun-halo { /* the warm glow that makes the same-size disc read bigger and brighter */
  position: absolute; inset: -150%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 244, 210, 0.9) 0%, rgba(255, 224, 155, 0.55) 22%, rgba(255, 196, 120, 0.24) 48%, rgba(255, 180, 110, 0.08) 72%, transparent 100%);
  will-change: scale, opacity;
  animation: sun-glow 11s ease-in-out infinite alternate;
}
.sun-rays { /* faint rays, turning very slowly */
  position: absolute; inset: -260%; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 238, 196, 0.16) 0deg 4deg, transparent 4deg 15deg);
  -webkit-mask-image: radial-gradient(closest-side, transparent 22%, #000 32%, transparent 72%);
  mask-image: radial-gradient(closest-side, transparent 22%, #000 32%, transparent 72%);
  animation: sun-rays 160s linear infinite;
}
@keyframes sun-glow { from { scale: 0.94; opacity: 0.85; } to { scale: 1.06; opacity: 1; } }
@keyframes sun-rays { to { rotate: 360deg; } }
.cloud {
  position: absolute; width: var(--w, 340px); aspect-ratio: 3.2; opacity: var(--o, 0.85);
  /* every blob fades out inside the box, so no hard edges */
  background:
    radial-gradient(24% 38% at 28% 62%, rgba(255, 255, 255, 0.95) 0 45%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(22% 46% at 52% 48%, rgba(255, 255, 255, 0.95) 0 45%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(20% 36% at 74% 62%, rgba(255, 255, 255, 0.9) 0 45%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(44% 22% at 50% 78%, rgba(255, 255, 255, 0.85) 0 50%, rgba(255, 255, 255, 0) 100%);
  will-change: translate;
  animation: cloud-drift var(--t, 100s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
}
.cl1 { --w: clamp(200px, 26vw, 380px); top: 3%; left: -6%; --t: 95s; }
.cl2 { --w: clamp(150px, 17vw, 250px); top: 9%; left: 40%; --t: 120s; --delay: -40s; --o: 0.7; }
.cl3 { --w: clamp(220px, 30vw, 440px); top: 58%; left: 60%; --t: 110s; --delay: -70s; --o: 0.6; }
@keyframes cloud-drift { from { translate: -5vw 0; } to { translate: 6vw 0; } }
.haze {
  position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--skyline-h) * 2.2);
  background: radial-gradient(70% 100% at 55% 100%, rgba(255, 196, 140, 0.55), transparent 72%);
}
/* only the visible sky animates */
.hero.is-paused .stars::after, .hero.is-user-paused .stars::after, [data-theme="light"] .stars::after,
.hero.is-paused .sun-halo, .hero.is-paused .sun-rays, .hero.is-paused .cloud,
.hero.is-user-paused .sun-halo, .hero.is-user-paused .sun-rays, .hero.is-user-paused .cloud,
:root:not([data-theme="light"]) .sun-halo, :root:not([data-theme="light"]) .sun-rays, :root:not([data-theme="light"]) .cloud,
[data-theme="light"] .curtain { animation-play-state: paused; }

/* Theme switch: a short crossfade so day turns into night (skipped for reduced motion in JS) */
.theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition-property: background-color, border-color, color, fill, stroke, stop-color, opacity, box-shadow !important;
  transition-duration: 0.7s !important; transition-timing-function: ease !important; transition-delay: 0s !important;
}
.theme-anim .daysky, .theme-anim .aurora, .theme-anim .stars { transition-duration: 1.1s !important; }
.theme-anim .orb { transition: opacity 1.1s ease, translate 1.1s cubic-bezier(0.3, 0.1, 0.3, 1) !important; }
.sky-fx { position: absolute; left: 0; width: 100%; height: 0; pointer-events: none; }
.theme-anim .theme-toggle .icon { transition: opacity 0.3s ease, rotate var(--dur) var(--ease-spring), scale var(--dur) var(--ease-spring) !important; }

/* ---------- The city: hand-drawn Edinburgh skyline ----------
   The box keeps the drawing's 1440:190 ratio; below 455px wide it stays 455px and is cropped evenly at the sides.
   Looping motion (smoke, flag) lives on HTML layers that only use transform/opacity (composited); birds and fireworks are drawn on the sky canvas (main.js);
   the SVG itself only animates once, on load (line draw-in, lights coming on). */
.city {
  position: absolute; left: 50%; bottom: -1px; width: max(100%, 455px); aspect-ratio: 1440 / 190; translate: -50% 0;
  --ink-w: 1.35; --fine-w: 0.7;
}
.city::after { /* the bottom of the drawing melts into the page */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9%;
  background: linear-gradient(to bottom, transparent, var(--bg) 92%); pointer-events: none;
}
.city-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.city-art .fill { stroke: none; animation: city-fill 1.3s ease both; animation-delay: calc(var(--dl, 0s) + 0.7s); }
.city-art .ink {
  fill: none; stroke-width: var(--ink-w); stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
  animation: city-draw 2.2s cubic-bezier(0.45, 0, 0.2, 1) both; animation-delay: var(--dl, 0s);
}
.city-art .far { --dl: 0s; }
.city-art .back { --dl: 0.12s; }
.city-art .mid { --dl: 0.25s; }
.city-art .front { --dl: 0.5s; }
.city-art .far .fill { fill: var(--c-far-fill); }
.city-art .far .ink { stroke: var(--c-far-ink); }
.city-art .back .fill { fill: var(--c-back-fill); }
.city-art .back .ink { stroke: var(--c-back-ink); }
.city-art .mid .fill { fill: var(--c-mid-fill); }
.city-art .mid .ink { stroke: var(--c-mid-ink); }
.city-art .front .fill { fill: var(--c-front-fill); }
.city-art .front .ink { stroke: var(--c-front-ink); }
.city-art .fine { fill: none; stroke: var(--c-detail); stroke-width: var(--fine-w); stroke-linecap: round; animation: city-fill 1.2s ease both; animation-delay: 1.5s; }
.city-art .fine-far { stroke: var(--c-far-ink); }
.city-art .fine-back { stroke: var(--c-back-ink); opacity: 0.8; }
.city-art .wins { fill: var(--c-win-off); stroke: none; animation: city-fill 1.2s ease both; animation-delay: 1.5s; }
.city-art .wins-back { opacity: 0.7; }
.city-art .lights { opacity: var(--lit-o); transition: opacity 1s ease; }
.city-art .lights rect { fill: var(--c-win); animation: win-on 0.6s ease-out both; animation-delay: var(--d); }
.city.relight .city-art .lights rect { animation-name: win-on-again; }
.city-art .clock-face { fill: var(--c-clock); stroke: var(--c-front-ink); stroke-width: 0.8; }
.city-art .clock-ticks path { stroke: var(--c-hands); stroke-width: 0.6; }
.city-art .clock-h, .city-art .clock-m { stroke: var(--c-hands); stroke-linecap: round; transform-box: view-box; transform-origin: 941px 106px; }
.city-art .clock-h { stroke-width: 1.3; }
.city-art .clock-m { stroke-width: 0.9; }
.city-art .clock-pin { fill: var(--c-hands); }
@keyframes city-draw { from { stroke-dashoffset: 1; } }
@keyframes city-fill { from { opacity: 0; } }
@keyframes win-on { from { opacity: 0; } }
@keyframes win-on-again { from { opacity: 0; } }

.flag { position: absolute; width: 1.45%; aspect-ratio: 1.5; translate: 0 -2%; transform-origin: 0 50%; animation: flag-wave 2.8s ease-in-out infinite alternate; }
.flag svg { display: block; width: 100%; height: 100%; fill: var(--c-flag); }
@keyframes flag-wave { from { transform: skewY(-7deg) scaleX(0.9); } to { transform: skewY(5deg) scaleX(1); } }

.smokes { position: absolute; inset: 0; opacity: calc(1 - var(--day-o)); transition: opacity 1s ease; } /* smoke only at night */
.smoke { /* a soft, blurred puff: radial fade, no edges, no strokes */
  position: absolute; width: 1%; aspect-ratio: 1.35; translate: -50% -55%; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, var(--c-smoke) 0%, var(--c-smoke-mid) 45%, transparent 100%);
  animation: puff 8.4s cubic-bezier(0.3, 0.1, 0.4, 1) infinite; animation-delay: var(--sd, 0s);
}
@keyframes puff { /* rises, leans with the wind, grows and fades; always upwards */
  0% { opacity: 0; transform: translate(0, 0) scale(calc(0.4 * var(--sk, 1))); }
  12% { opacity: 1; transform: translate(4%, -40%) scale(calc(0.7 * var(--sk, 1))); }
  45% { opacity: 0.75; transform: translate(40%, -175%) scale(calc(1.35 * var(--sk, 1))); }
  100% { opacity: 0; transform: translate(150%, -360%) scale(calc(2.4 * var(--sk, 1))); }
}



/* only what's visible moves; everything pauses off screen or with the pause button */
.hero.is-paused .city *, .hero.is-paused .city, .hero.is-user-paused .city *, .hero.is-user-paused .city { animation-play-state: paused !important; }
[data-theme="light"] .city-art .lights rect, [data-theme="light"] .smoke { animation-play-state: paused; }

@media (max-width: 760px) { .city { --ink-w: 2.1; --fine-w: 1; } }
/* Phones: a closer view of the landmark core (the castle to the Balmoral), about 45% scale instead of 30% */
@media (max-width: 560px) {
  .smoke { width: 1.5%; }
  :root { --skyline-h: 21.95vw; }                       /* = 166vw x 190/1440, the box height */
  .city { width: 166vw; left: -12.1vw; translate: none; --ink-w: 2.4; --fine-w: 1.1; }
  .city-art .wins { opacity: 0.6; }
  .motion-toggle { bottom: calc(var(--skyline-h) + 6px); } /* float in the sky, not over the clock */
}
@media (max-width: 360px) { .city-art .fine { display: none; } }
@media (min-width: 1800px) { .city { --ink-w: 1.1; --fine-w: 0.55; } }
@media (prefers-reduced-motion: reduce) { .smoke { display: none; } }

.hero-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr); /* one left-aligned column; the sky, moon and city fill the rest */
  padding-top: clamp(40px, 5.5vw, 76px);
  padding-bottom: calc(var(--skyline-h) + clamp(28px, 5vw, 96px)); /* open sky above the city: text stays clear, fireworks have room */
}
.pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 26px; padding: 0 14px 0 12px;
  font-size: 0.9375rem; font-weight: 500; color: var(--text); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  transition: border-color .2s ease;
}
.pill:hover { border-color: var(--accent-text); }
.pill .icon { width: 16px; height: 16px; color: var(--accent-text); transition: translate var(--dur) var(--ease-spring); }
.pill:hover .icon { translate: 3px 0; }
.pill-short { display: none; }
@media (max-width: 480px) { .pill-long { display: none; } .pill-short { display: inline; } }
.pill-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex: none; }
.pill-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--mint); opacity: 0; animation: ping 2.6s ease-out 3; }
@keyframes ping { 0% { scale: 0.6; opacity: 0.45; } 80%, 100% { scale: 2.2; opacity: 0; } }

.hero-copy { max-width: 760px; }
.hero h1 { font-size: clamp(2.375rem, 1.25rem + 3.6vw, 3.75rem); font-weight: 500; line-height: 1.04; letter-spacing: -0.03em; }
.hero .lead { margin-top: 24px; max-width: 34em; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); color: var(--body); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: 0.9375rem; color: var(--muted); }
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ticks .icon { width: 18px; height: 18px; color: var(--mint-text); stroke-width: 2.2; }

/* Device frame, used by the phone in the Our work showcase */
.phone {
  background: #0b0b0e; border: 1px solid rgb(255 255 255 / 0.16); border-radius: 26px; padding: 6px;
  box-shadow: var(--shadow-lift), 0 0 0 6px rgb(255 255 255 / 0.03);
}
.phone img { width: 100%; aspect-ratio: 1 / 2; object-fit: cover; object-position: top; border-radius: 20px; background: #1c1c22; }
[data-theme="light"] .hero .ticks { color: var(--body); }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section-raised { background: var(--bg-raised); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2, .contact h2 { font-size: clamp(2rem, 1.45rem + 2.2vw, 3.125rem); line-height: 1.08; }
.section-lead { margin-top: 18px; font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); color: var(--body); text-wrap: pretty; }
.hero .lead, .work-note, .empty-state p { text-wrap: pretty; }

.bullets { display: grid; gap: 8px; }
.bullets li { position: relative; padding-left: 20px; }
.bullets li::before { content: ""; position: absolute; left: 2px; top: 0.66em; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }

/* Steps: a timeline, not a card grid */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.step-top { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.step-num {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%;
  font-size: 1.25rem; font-weight: 600; color: var(--text);
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad) border-box;
  border: 2px solid transparent;
  box-shadow: 0 0 30px -8px rgb(var(--glow-rgb) / 0.6);
}
.step:not(:last-child) .step-top::after { content: ""; flex: 1; height: 1px; margin-left: 6px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.step h3 { font-size: 1.25rem; margin-bottom: 12px; }
.step .bullets { color: var(--body); }

/* ---------- Work: before/after showcase ---------- */
.work-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 5vw, 72px); align-items: start; }
.work-intro .section-head { margin-bottom: 28px; }

.picker { margin: 0; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); display: grid; gap: 2px; min-inline-size: 0; }
.pick {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 14px;
  border-radius: var(--radius-control); cursor: pointer; transition: background-color .3s ease;
}
.pick:hover { background: var(--ghost-bg); }
.pick:has(input:checked) { background: var(--accent-tint); }
.pick input {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 1.8px solid var(--control-border); display: grid; place-items: center; cursor: pointer;
  transition: border-color .2s ease;
}
.pick input::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); scale: 0; transition: scale var(--dur) var(--ease-spring); }
.pick input:checked { border-color: var(--accent-text); }
.pick input:checked::after { scale: 1; }
.pick input:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; }
.pick-text { display: grid; gap: 1px; }
.pick-short { display: none; }
.pick-name { color: var(--text); font-weight: 500; font-size: 1.0625rem; }
.pick-meta { color: var(--muted); font-size: 0.9375rem; line-height: 1.35; }
.work-note { margin-top: 16px; font-size: 0.9375rem; color: var(--muted); }
html:not(.js) .picker { display: none; }

.projects { display: grid; gap: 64px; }
.project[hidden] { display: none; }
.project.is-entering .stage, .project.is-entering .project-info { animation: swap-in var(--dur) var(--ease-out) both; }
.project.is-entering .project-info { animation-delay: 60ms; }
@keyframes swap-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }

.stage { position: relative; padding: 0 9% 7% 0; --pos: 0; }
.browser { position: relative; border-radius: 14px; overflow: hidden; background: #0b0b0e; border: 1px solid var(--line-strong); box-shadow: var(--shadow-lift); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--chrome); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgb(127 127 140 / 0.45); }
.browser-url { flex: 1; max-width: 48%; height: 18px; margin-left: 12px; border-radius: 6px; background: rgb(127 127 140 / 0.16); }

.compare { position: relative; aspect-ratio: 16 / 10; overflow: hidden; container-type: inline-size; user-select: none; }
.compare .after { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.before {
  position: absolute; inset: 0;
  clip-path: inset(0 calc((100 - var(--pos)) * 1%) 0 0);
  background:
    radial-gradient(circle at 1px 1px, rgb(127 127 140 / 0.28) 1px, transparent 1.5px) 0 0 / 18px 18px,
    var(--before-bg);
}
.no-site { position: absolute; left: 6%; top: 50%; translate: 0 -50%; width: 34%; display: grid; gap: 1.2cqw; opacity: clamp(0, calc((var(--pos) - 30) / 10), 1); }
.no-site .icon { width: max(22px, 4.4cqw); height: max(22px, 4.4cqw); color: var(--muted); stroke-width: 1.6; }
.no-site-title { font-size: clamp(12px, 3.3cqw, 28px); font-weight: 500; color: var(--text); line-height: 1.15; }
.no-site-text { font-size: clamp(11px, 1.75cqw, 15px); line-height: 1.45; color: var(--muted); }

.compare-label {
  position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: rgb(12 12 16 / 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: opacity .2s ease;
}
.compare-label.is-before { left: 12px; opacity: clamp(0, calc((var(--pos) - 18) / 8), 1); }
.compare-label.is-after { right: 12px; opacity: clamp(0, calc((86 - var(--pos)) / 8), 1); }
.handle { position: absolute; top: 0; bottom: 0; left: calc(var(--pos) * 1%); width: 2px; translate: -1px 0; background: #fff; box-shadow: 0 0 18px rgb(var(--glow-rgb) / 0.8); pointer-events: none; }
.handle .icon {
  position: absolute; top: 50%; left: calc(50% + max(0px, 22px - var(--pos) * 1cqw)); translate: -50% -50%;
  width: 42px; height: 42px; padding: 10px; border-radius: 50%;
  background: var(--knob-bg); color: var(--knob-text); stroke-width: 2.2;
  box-shadow: 0 8px 24px -6px rgb(0 0 0 / 0.6);
  transition: scale var(--dur) var(--ease-spring);
}
.compare:hover .handle .icon, .compare:has(.compare-range:active) .handle .icon { scale: 1.1; }
.compare:has(.compare-range:focus-visible) .handle .icon { outline: 3px solid #0c0a1a; outline-offset: 2px; box-shadow: 0 0 0 7px #fff, 0 8px 24px -6px rgb(0 0 0 / 0.6); }
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0;
  cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none;
}

.phone-stage { position: absolute; right: 0; bottom: 0; width: 22%; border-radius: 22px; padding: 5px; opacity: clamp(0, calc((100 - var(--pos)) / 18), 1); transition: opacity .2s ease; }
.phone-stage img { border-radius: 17px; }

.project-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 32px; margin-top: 28px; align-items: start; }
.project-info h3 { font-size: 1.5rem; margin: 8px 0 6px; }
.project-info .text-link { grid-column: 1 / -1; justify-self: start; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); background: var(--accent-tint); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.mini-checks { display: grid; gap: 8px; padding-top: 6px; }
.mini-checks li { display: flex; gap: 10px; align-items: flex-start; }
.mini-checks .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--mint-text); stroke-width: 2.2; }

/* ---------- Pricing ---------- */
#pricing, #faq { isolation: isolate; overflow-x: clip; }
#pricing::before, #faq::before {
  content: ""; position: absolute; inset: 10% 0 0 38%; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 50% at 55% 45%, rgb(var(--glow-rgb) / 0.16), transparent 70%), radial-gradient(30% 40% at 85% 65%, rgb(var(--glow2-rgb) / 0.12), transparent 70%);
}
.faq-layout .section-head, .work-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.pricing-head { max-width: 720px; }
.launch-note { display: grid; gap: 6px; padding: 16px 18px; border-radius: var(--radius-card); background: var(--accent-tint); }
.launch-note p { font-size: 0.9375rem; color: var(--body); }
.launch-note .small-print { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }

/* Two choices: Looked after vs Yours to keep */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 20px; padding: clamp(22px, 3vw, 34px); }
.plan-featured { background: linear-gradient(var(--accent-tint), var(--accent-tint)), var(--surface); border-color: color-mix(in srgb, var(--accent) 38%, transparent); }
.plan-kicker { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.plan-head h3 { margin-top: 8px; font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); letter-spacing: -0.02em; }
.plan-sub { margin-top: 6px; color: var(--body); }
.plan-prices { margin: 0; border-top: 1px solid var(--line); }
.price-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.price-line dt { font-weight: 600; color: var(--text); }
.price-line dt span { display: block; margin-top: 2px; font-size: 0.9375rem; font-weight: 400; color: var(--muted); }
.price-line dd { margin: 0; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: flex-end; gap: 2px 10px; text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.price s { font-size: 1.25rem; color: var(--muted); text-decoration-thickness: 2px; text-decoration-color: var(--pink); }
.price strong { font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3rem); font-weight: 500; line-height: 1; letter-spacing: -0.03em; color: var(--text); }
.price .per { font-size: 0.9375rem; color: var(--muted); }
.price-ask strong { font-size: clamp(1.75rem, 1.45rem + 1.1vw, 2.25rem); }
.plan-list { display: grid; gap: 12px; }
.plan-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--body); }
.plan-list .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--accent-text); }
.plans-foot { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px 32px; align-items: center; margin-top: 20px; }
.plans-cta { display: grid; gap: 10px; text-align: center; }
.plans-cta p { font-size: 0.9375rem; color: var(--muted); }
.included-note { margin: -2px 0 6px; font-size: 0.9375rem; color: var(--muted); }

/* ---------- Reviews (empty state) ---------- */
#reviews { padding-block: clamp(40px, 5vw, 64px); }
.empty-state { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; padding: clamp(24px, 3.5vw, 36px) clamp(22px, 4vw, 44px); }
.empty-state h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.2; }
.empty-state p { margin-top: 8px; max-width: 40em; color: var(--body); }
.empty-state .btn { flex: none; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.faq-layout .section-head { margin-bottom: 0; }
.faq-list { overflow: hidden; }
.faq-list details + details { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding: 16px 24px;
  font-size: 1.125rem; font-weight: 500; color: var(--text); cursor: pointer; list-style: none;
  transition: background-color .2s ease;
}
.faq-list summary:hover { background: var(--ghost-bg); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:focus-visible { outline-offset: -3px; border-radius: var(--radius-card); }
.faq-list summary .icon { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--ghost-bg); border: 1px solid var(--line); transition: rotate var(--dur) var(--ease-spring), background-color .2s ease; }
.faq-list details[open] summary .icon { rotate: 45deg; background: var(--accent-tint); color: var(--accent-text); }
.faq-list details p { padding: 0 24px 22px; max-width: 42em; color: var(--body); }

/* ---------- Contact ---------- */
.contact { overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.contact-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 60% at 10% 100%, rgb(var(--glow2-rgb) / 0.14), transparent 70%),
    radial-gradient(50% 60% at 95% 30%, rgb(var(--glow-rgb) / 0.14), transparent 70%);
}
.contact-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(36px, 6vw, 80px);
  grid-template-areas: "copy form" "next form"; grid-template-rows: auto 1fr; align-items: start;
}
.contact-copy { grid-area: copy; }
.contact-form { grid-area: form; }
.next { grid-area: next; }
.big-email {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; margin-top: 28px;
  font-size: clamp(1.1875rem, 0.95rem + 1vw, 1.625rem); font-weight: 500; color: var(--text); text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(var(--accent-text), var(--accent-text)) 0 100% / 0 2px no-repeat;
  transition: background-size .4s var(--ease-out);
}
.big-email:hover { background-size: 100% 2px; }
.big-email .icon { width: 26px; height: 26px; color: var(--accent-text); }

.next { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 32em; }
.next h3 { font-size: 1.125rem; margin-bottom: 16px; }
.next ol { display: grid; gap: 14px; counter-reset: next; }
.next li { position: relative; padding-left: 42px; counter-increment: next; }
.next li::before {
  content: counter(next); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.875rem; font-weight: 600; color: var(--accent-text);
  border: 1.5px solid color-mix(in srgb, var(--accent-text) 55%, transparent);
}

.contact-form { padding: clamp(22px, 3.5vw, 36px); display: grid; gap: 18px; background: var(--surface-strong); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 15px; border: 1px solid var(--control-border); border-radius: var(--radius-control);
  font: inherit; font-size: 1rem; color: var(--text); background: var(--input-bg);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field ::placeholder { color: var(--muted); opacity: 0.85; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 2px; border-color: var(--accent-text); }
.form-note { font-size: 0.875rem; color: var(--muted); text-align: center; }
.form-hint { margin-bottom: -6px; font-size: 0.875rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-raised); padding-block: 48px 28px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.footer-brand p { margin-top: 10px; max-width: 30em; font-size: 0.9375rem; color: var(--muted); }
.footer-email { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; color: var(--accent-text); font-weight: 500; text-underline-offset: 4px; }
.footer-cols { display: flex; gap: 56px; justify-content: flex-end; }
.footer-cols div { display: grid; align-content: start; }
.footer-title { margin-bottom: 4px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.footer-cols a { display: inline-flex; align-items: center; min-height: 44px; color: var(--body); font-size: 0.9375rem; text-decoration: none; }
.footer-cols a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }

/* ---------- Trades band ---------- */
.trades { border-block: 1px solid var(--line); background: var(--bg-raised); }
.trades-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; padding-block: 18px; }
.trades-label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.trades-list { display: flex; flex-wrap: wrap; gap: 4px 24px; color: var(--muted); }
.trades-list li { position: relative; }
.trades-list li + li::before { content: ""; position: absolute; left: -14px; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-text); opacity: 0.6; translate: 0 -50%; }

/* ---------- What's included ---------- */
.included { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); overflow: hidden; }
.included-group { padding: clamp(22px, 3vw, 34px); }
.included-group + .included-group { border-left: 1px solid var(--line); background: var(--accent-tint); }
.included-group h3, .extras-head .kicker { margin-bottom: 6px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.included-group:first-child .feature-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.feature-list li, .extras-list li, .why-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line); }
.feature-list .icon, .extras-list .icon, .why-list .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--accent-text); }
.feature-list strong, .extras-list strong, .why-list strong { display: block; color: var(--text); font-weight: 600; }
.feature-list span, .extras-list span, .why-list span { color: var(--body); }
.included .text-link { margin-top: 10px; }

/* ---------- Extras ---------- */
.extras { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 16px clamp(36px, 5vw, 72px); align-items: start; margin-top: clamp(44px, 6vw, 72px); padding-top: clamp(32px, 4vw, 44px); border-top: 1px solid var(--line); }
.extras-head h3 { font-size: 1.5rem; }
.extras-head p { margin-top: 8px; color: var(--body); max-width: 26em; }
.extras-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.extras-list .icon { color: var(--mint-text); }
@media (min-width: 1000px) { .extras-list li:nth-child(-n+2) { border-top: 0; padding-top: 0; } }

/* ---------- Why us / about ---------- */
.about-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.why .section-head { margin-bottom: 20px; }
.why-list .icon { color: var(--mint-text); }
.about-card { position: relative; display: grid; gap: 16px; padding: clamp(24px, 3.5vw, 36px); overflow: hidden; }
.about-card::before { content: ""; position: absolute; inset: -40% -30% auto auto; width: 70%; height: 80%; z-index: -1; background: radial-gradient(closest-side, rgb(var(--glow-rgb) / 0.22), transparent); pointer-events: none; }
.about-card { isolation: isolate; }
.about-top { display: flex; align-items: center; gap: 16px; }
.monogram {
  display: grid; place-items: center; width: 60px; height: 60px; flex: none; border-radius: 50%;
  font-size: 1.625rem; font-weight: 600; color: var(--text);
  background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box; border: 2px solid transparent;
  box-shadow: 0 0 34px -8px rgb(var(--glow-rgb) / 0.6);
}
.about-top h3 { font-size: 1.25rem; }
.about-role { color: var(--muted); font-size: 0.9375rem; }
.about-card > p { color: var(--body); }
.about-name { padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.about-name strong { color: var(--text); }

/* ---------- Contact extras ---------- */
.assure { display: grid; gap: 12px; margin-top: 24px; }
.assure li { display: flex; gap: 12px; align-items: flex-start; max-width: 32em; color: var(--body); }
.assure .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--mint-text); }
.form-head h3 { font-size: 1.25rem; }
.form-head .form-hint { margin: 4px 0 0; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; translate: 0 22px; transition: opacity var(--dur) var(--ease-out), translate 700ms var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-visible { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; translate: none; }
  .motion-toggle { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 380px) { :root { --orb-d: 34px; --orb-x: calc(100% - 36px); --orb-y: 30px; } .hero-inner { padding-top: 66px; } } /* the offer pill fills the width: moon/sun sits above it */
@media (min-width: 561px) { :root { --orb-d: 48px; --orb-x: calc(100% - 64px); --orb-y: 50px; } }
@media (min-width: 1000px) { :root { --orb-d: clamp(54px, 4.3vw, 78px); --orb-x: 52%; --orb-y: 70px; } }
@media (max-width: 1099px) {
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 680px; }
  .step { position: relative; padding: 0 0 30px 66px; }
  .step:last-child { padding-bottom: 0; }
  .step-top { position: absolute; left: 0; top: -4px; margin: 0; flex-direction: column; align-items: center; }
  .step:not(:last-child)::before { content: ""; position: absolute; left: 24px; top: 52px; bottom: 6px; width: 1px; background: linear-gradient(var(--line-strong), transparent); }
  .step:not(:last-child) .step-top::after { display: none; }
  .step h3 { padding-top: 11px; font-size: 1.25rem; margin-bottom: 10px; }
}

@media (max-width: 999px) {
  .work-layout, .faq-layout, .about-layout, .extras, .included, .plans, .plans-foot { grid-template-columns: 1fr; }
  .included-group + .included-group { border-left: 0; border-top: 1px solid var(--line); }
  .faq-layout .section-head, .work-intro { position: static; }
  .work-layout { gap: 20px; }
  .work-intro { display: contents; }
  .work-intro .section-head { margin-bottom: 8px; }
  .picker { order: 1; }
  .projects { order: 2; }
  .work-note { order: 3; margin-top: 4px; }
  .work-intro .section-head { max-width: 640px; }
  .contact-layout { grid-template-columns: 1fr; grid-template-areas: "copy" "form" "next"; grid-template-rows: none; }
  .contact-copy { margin-bottom: 32px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { justify-content: flex-start; gap: 48px; }
}

@media (max-width: 760px) {
  :root { --header-h: 62px; --aurora-opacity: 0.62; }
  [data-theme="light"] { --aurora-opacity: 0; }
  .cloud { --o: 0.6; }
  .project-info { grid-template-columns: 1fr; }
  .included-group:first-child .feature-list, .extras-list { grid-template-columns: 1fr; }
  .trades-inner { gap: 8px 24px; padding-block: 16px; }
  .trades-list { gap: 2px 16px; }
  .trades-list li + li::before { display: none; }
  .feature-list li, .extras-list li, .why-list li { padding: 13px 0; }
  .stage { padding: 0 7% 9% 0; }
  .phone-stage { width: 25%; border-radius: 16px; padding: 4px; }
  .phone-stage img { border-radius: 12px; }
  .compare-label { top: 8px; font-size: 0.6875rem; padding: 3px 8px; }
  .compare-label.is-before { left: 8px; }
  .compare-label.is-after { right: 8px; }
  .handle .icon { width: 36px; height: 36px; padding: 8px; }
  .price { justify-content: flex-start; text-align: left; }
  .aurora { inset: -10% -45% 30% -45%; }
  .empty-state { flex-direction: column; align-items: flex-start; }
  .picker { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; }
  .pick { justify-content: center; min-height: 52px; padding: 8px 6px; text-align: center; }
  .pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; border-radius: var(--radius-control); }
  .pick:has(input:focus-visible) { outline: 3px solid var(--accent-text); outline-offset: 2px; }
  .pick-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pick-short { display: block; font-size: 0.9375rem; font-weight: 500; line-height: 1.2; color: var(--text); }
  .pick:has(input:checked) { box-shadow: inset 0 -2px 0 var(--accent-text); }
}

@media (max-width: 520px) {
  body { font-size: 1rem; }
  .price-line { flex-direction: column; align-items: flex-start; gap: 8px; }
  .price-line .price { justify-content: flex-start; text-align: left; }
  .btn-row .btn { flex: 1 1 100%; }
  .field-row { grid-template-columns: 1fr; }
  .pill { font-size: 0.875rem; }
  .no-site { width: 60%; left: 6%; }
  .no-site-text { display: none; }
  .stage { padding: 0; }
  .phone-stage { display: none; }
  .faq-list summary { padding: 14px 18px; font-size: 1.0625rem; }
  .faq-list details p { padding: 0 18px 20px; }
}

@media (max-width: 359px) {
  .monogram { width: 44px; height: 44px; font-size: 1.25rem; }
  .logo-word { font-size: 1.125rem; }
  .logo-mark { width: 30px; height: 30px; }
  .header-tools { gap: 6px; }
}
