/* Zentessa site, 2026 redesign. Used by the home page, /work/, privacy, thank-you and 404.
   The admin, login and OmniHome pages still use /assets/styles.css. */
:root {
  color-scheme: light dark;
  --z-navy: #070C1C; --z-indigo: #14307F; --z-blue: #2F6BF0; --z-sky: #8FB2FF;
  --bg: #F6F6F3; --bg-2: #EEEFEA; --surface: #FFFFFF; --text: #0A1022; --muted: #4B5466;
  --border: #E2E4E8; --accent: var(--z-blue); --accent-ink: #FFFFFF;
  --green: #16A34A; --error: #B91C1C;
  --glow: color-mix(in srgb, var(--z-blue) 16%, transparent);
  --shadow: 0 1px 2px rgb(7 12 28 / .05), 0 12px 32px -12px rgb(7 12 28 / .16);
  --shadow-lg: 0 2px 4px rgb(7 12 28 / .05), 0 40px 80px -24px rgb(7 12 28 / .28);
  --radius: 20px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --z-blue: #6C97FF;
    --bg: #0A0D16; --bg-2: #0E121D; --surface: #131826; --text: #EEF1F7; --muted: #9AA3B5;
    --border: #232A3B; --accent-ink: #060A14;
    --green: #4ADE80; --error: #FCA5A5;
    --glow: color-mix(in srgb, var(--z-blue) 22%, transparent);
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -12px rgb(0 0 0 / .6);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 40px 80px -24px rgb(0 0 0 / .7);
  }
}

* { box-sizing: border-box; }
/* No double-tap zoom on phones and tablets (pinch zoom is turned off in each page's viewport tag). */
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--font);
  background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--z-blue); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Highlighted words in headings: same font as the heading, picked out in colour where a page sets one. */
.serif { font-style: normal; }

/* Logo: dark ink in light mode, white in dark mode */
.logo { display: block; height: 40px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo-light { display: none; } .logo-dark { display: block; } }

/* Header: glassy, sticky, gains a border once the page scrolls */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) { position: relative; padding: 8px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .93rem; transition: color .2s, background .2s; }
.nav-links a:not(.btn):hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.nav-links a.active { color: var(--text); background: color-mix(in srgb, var(--z-blue) 12%, transparent); }
.nav-links .btn { margin-left: 10px; }
@media (max-width: 820px) { .nav-links a:not(.btn) { display: none; } .logo { height: 34px; } }

/* Buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 24px; border-radius: 999px;
  background: var(--text); color: var(--bg); font: inherit; font-weight: 600; font-size: .98rem; text-decoration: none;
  border: 1px solid var(--text); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--text) 60%, transparent); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-blue { background: var(--z-blue); border-color: var(--z-blue); color: var(--accent-ink); }
.btn-blue:hover { box-shadow: 0 10px 28px -8px color-mix(in srgb, var(--z-blue) 70%, transparent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--text) 35%, transparent); box-shadow: none; }
.btn-small { padding: 8px 18px; font-size: .9rem; }

/* Section furniture */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--z-blue); }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.band { padding: 112px 0; }
.band.alt { background: var(--bg-2); }
.band-head { max-width: 62ch; margin-bottom: 52px; }
.band-head h2, h2.big { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.06; letter-spacing: -.035em; margin: 0 0 16px; font-weight: 700; text-wrap: balance; }
.band-head p { color: var(--muted); margin: 0; font-size: 1.1rem; text-wrap: pretty; }
@media (max-width: 760px) { .band { padding: 80px 0; } .band-head { margin-bottom: 36px; } }

/* Cards with a soft spotlight that follows the pointer (set by --mx / --my in JS) */
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; isolation: isolate; }
.spot::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 60%); }
.spot:hover::after { opacity: 1; }

/* Scroll reveal: only hidden once JS has confirmed it can show them again */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Forms */
label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 7px; }
label span { color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; padding: 13px 15px; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--z-blue); box-shadow: 0 0 0 4px var(--glow); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0; color: var(--muted); font-size: .9rem; }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.site-footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .launch-badge { display: inline-flex; line-height: 0; }
.site-footer .launch-badge img { height: 40px; width: auto; }

/* Simple centred pages (thank-you, 404) */
.simple { max-width: 680px; text-align: center; padding: 104px 16px 112px; }
.simple h1 { font-size: clamp(2.2rem, 5.5vw, 3.2rem); letter-spacing: -.035em; line-height: 1.05; margin: 0 0 16px; text-wrap: balance; }
.simple .lead { color: var(--muted); font-size: 1.12rem; margin: 0 auto 32px; max-width: 52ch; }
.simple .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

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