@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/inter-tight.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Theme tokens: light is the default */
:root {
  --text: #1d1d1f;
  --muted: #6e6e73;
  --bg: #ffffff;
  --alt: #f5f5f7;
  --surface: #ffffff;
  --input-bg: #ffffff;
  --line: #d2d2d7;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --nav-border: rgba(0, 0, 0, 0.08);
  --nav-link: rgba(0, 0, 0, 0.8);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --accent: #e3711b;
  --ok: #1d8f4e;
  --err: #c0161c;
  --toggle-track: #e8e8ed;
  --toggle-knob: #ffffff;
  --toggle-sun: #e3711b;
  --toggle-moon: #8e8e93;
  --g1: #2fbf71;
  --g2: #0aa5c8;
  --radius: 28px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter Tight", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

/* Dark tokens: chosen by the switch, or by the system when JS is off */
:root[data-theme="dark"] {
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --bg: #000000;
  --alt: #0d0d0e;
  --surface: #1d1d1f;
  --input-bg: #1d1d1f;
  --line: #424245;
  --nav-bg: rgba(22, 22, 23, 0.72);
  --nav-border: rgba(255, 255, 255, 0.1);
  --nav-link: rgba(255, 255, 255, 0.8);
  --blue: #0071e3;
  --blue-hover: #0a84ff;
  --link: #2997ff;
  --accent: #ff9f40;
  --ok: #30d158;
  --err: #ff453a;
  --toggle-track: #3a3a3c;
  --toggle-knob: #000000;
  --toggle-sun: #8e8e93;
  --toggle-moon: #ffd60a;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --text: #f5f5f7; --muted: #a1a1a6; --bg: #000000; --alt: #0d0d0e; --surface: #1d1d1f;
    --input-bg: #1d1d1f; --line: #424245; --nav-bg: rgba(22, 22, 23, 0.72);
    --nav-border: rgba(255, 255, 255, 0.1); --nav-link: rgba(255, 255, 255, 0.8);
    --link: #2997ff; --accent: #ff9f40; --ok: #30d158; --err: #ff453a;
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Smooth colour change only while switching, so page load never animates */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease !important;
}
.theme-anim .toggle-knob {
  transition: transform 0.38s cubic-bezier(0.3, 1.35, 0.5, 1), background-color 0.4s ease !important;
}
.theme-anim .ico { transition: color 0.3s ease, opacity 0.3s ease, transform 0.38s ease !important; }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.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;
}

/* Nav: frosted glass bar */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--nav-border);
}
.nav-inner {
  max-width: 1024px; margin: 0 auto; height: 52px; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-icon { width: 28px; height: 28px; }
.brand-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; gap: 28px; font-size: 13px; color: var(--nav-link); }
.nav-links a:hover { color: var(--text); }

/* Theme switch */
.theme-toggle {
  border: 0; background: none; padding: 2px; margin: 0; cursor: pointer;
  border-radius: 999px; color: inherit; -webkit-tap-highlight-color: transparent;
}
.toggle-track {
  position: relative; display: block; width: 56px; height: 30px; border-radius: 999px;
  background: var(--toggle-track);
  box-shadow: inset 0 0 0 1px var(--nav-border);
}
.theme-toggle:hover .toggle-track { filter: brightness(0.97); }
:root[data-theme="dark"] .theme-toggle:hover .toggle-track { filter: brightness(1.15); }
.toggle-knob {
  position: absolute; top: 3px; left: 3px; z-index: 1;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--toggle-knob);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.38s cubic-bezier(0.3, 1.35, 0.5, 1);
}
:root[data-theme="dark"] .toggle-knob { transform: translateX(26px); }
.ico {
  position: absolute; top: 7px; z-index: 2; width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  pointer-events: none; transition: color 0.3s ease, opacity 0.3s ease, transform 0.38s ease;
}
.ico-sun { left: 7px; color: var(--toggle-sun); }
.ico-moon { right: 7px; color: var(--toggle-moon); fill: currentColor; stroke: none; opacity: 0.7; }
:root[data-theme="dark"] .ico-sun { opacity: 0.7; transform: rotate(-30deg); }
:root[data-theme="dark"] .ico-moon { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .toggle-knob, .ico { transition: none; } }

/* Shared type */
.eyebrow {
  margin: 0 0 8px;
  font-size: 21px; font-weight: 600; letter-spacing: 0.004em;
  color: var(--accent);
}
.section-title {
  margin: 0 auto;
  max-width: 820px;
  font-size: clamp(32px, 5.2vw, 56px);
  line-height: 1.07; font-weight: 700; letter-spacing: -0.03em;
  text-align: center;
}
.muted { color: var(--muted); }
.lede {
  margin: 18px auto 0; max-width: 640px;
  font-size: clamp(19px, 2.2vw, 24px); line-height: 1.38; font-weight: 500;
  color: var(--muted); letter-spacing: -0.012em;
}
.lede.small { font-size: clamp(17px, 1.8vw, 21px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px; border: 0; border-radius: 980px;
  background: var(--blue); color: #fff;
  font: inherit; font-size: 17px; font-weight: 500; cursor: pointer;
  transition: background 0.2s ease;
}
.btn:hover { background: var(--blue-hover); }
.btn:disabled { opacity: 0.6; cursor: default; }
.link { color: var(--link); font-size: 17px; }
.link:hover { text-decoration: underline; }

/* Hero */
.hero {
  text-align: center;
  padding: clamp(72px, 12vw, 140px) 22px clamp(64px, 9vw, 110px);
}
.hero h1 {
  margin: 0;
  font-size: clamp(48px, 9vw, 96px);
  line-height: 1.02; font-weight: 700; letter-spacing: -0.045em;
}
.grad {
  background: linear-gradient(90deg, var(--g1), var(--g2));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-links {
  margin-top: 34px;
  display: flex; gap: 28px; align-items: center; justify-content: center; flex-wrap: wrap;
}

/* Services */
.services {
  background: var(--alt);
  padding: clamp(72px, 10vw, 120px) 22px;
}
.tiles {
  max-width: 1024px; margin: clamp(40px, 6vw, 64px) auto 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.tile, .wide-tile {
  background: var(--surface); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
}
.tile h3, .wide-tile h3 {
  margin: 22px 0 8px;
  font-size: clamp(24px, 2.6vw, 30px); line-height: 1.12; font-weight: 700; letter-spacing: -0.025em;
}
.tile p, .wide-tile p { margin: 0; color: var(--muted); font-size: 17px; max-width: 34ch; }
.tile-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  display: grid; place-items: center;
}
.tile-icon svg {
  width: 26px; height: 26px;
  fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.wide-tile {
  max-width: 1024px; margin: 20px auto 0; text-align: center;
}
.wide-tile h3 { margin-top: 0; }
.wide-tile p { margin: 0 auto; max-width: 52ch; }

/* Coming soon + form */
.soon {
  text-align: center;
  padding: clamp(80px, 11vw, 130px) 22px;
}
.enquiry {
  max-width: 560px; margin: 36px auto 0;
  display: grid; gap: 12px;
}
.enquiry .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.enquiry input, .enquiry textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--input-bg);
  font: inherit; font-size: 17px; color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.enquiry input::placeholder, .enquiry textarea::placeholder { color: var(--muted); opacity: 1; }
.enquiry textarea { resize: vertical; min-height: 96px; }
.enquiry input:focus, .enquiry textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.2);
}
.enquiry input[aria-invalid="true"] { border-color: var(--err); }
.enquiry .btn { justify-self: center; margin-top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 4px 0 0; min-height: 1.4em; font-size: 15px; font-weight: 500; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.form-note { margin: 0; font-size: 12px; color: var(--muted); }

/* Footer */
.footer { background: var(--alt); border-top: 1px solid var(--nav-border); }
.footer-inner {
  max-width: 1024px; margin: 0 auto; padding: 20px 22px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--muted);
}
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }

/* Gentle entrance, only when JS is on and motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  .js .fade { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
  .js .fade.in { opacity: 1; transform: none; }
}

@media (max-width: 734px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .enquiry .row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
