/* Zoxas Studio — static site styles. System fonts only, no external requests. */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #10141c;
  --muted: #586070;
  --line: #e1e4ea;
  --accent: #3446d4;
  --accent-ink: #ffffff;
  --was: #9a5b13;
  --now: #0d7a5a;
  --code-bg: #eef0f4;
  --shadow: 0 1px 2px rgba(16, 20, 28, .04), 0 8px 24px -12px rgba(16, 20, 28, .12);
  --radius: 14px;
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1120px;
  --gutter: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d12; --surface: #12151d; --ink: #e9ecf3; --muted: #9aa3b5; --line: #232836;
    --accent: #8d98ff; --accent-ink: #0b0d12; --was: #e0a25a; --now: #47c99f; --code-bg: #181c27;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -16px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0d12; --surface: #12151d; --ink: #e9ecf3; --muted: #9aa3b5; --line: #232836;
  --accent: #8d98ff; --accent-ink: #0b0d12; --was: #e0a25a; --now: #47c99f; --code-bg: #181c27;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -16px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 22px; height: 22px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 14.5px; padding: 6px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.theme-btn { border: 1px solid var(--line); background: var(--surface); color: var(--muted); width: 34px; height: 34px; border-radius: 9px;
  display: inline-grid; place-items: center; cursor: pointer; margin-left: 4px; flex: none; }
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn:hover { color: var(--ink); }
@media (max-width: 560px) {
  .nav a.hide-sm { display: none; }
  .nav { gap: 0; }
  .nav a { padding: 6px 6px; font-size: 14px; }
  .brand { gap: 8px; font-size: 15px; }
  .site-header .wrap { gap: 8px; }
}

/* Type */
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.12; margin: 0; font-weight: 650; }
h1 { font-size: clamp(34px, 5.6vw, 60px); letter-spacing: -.035em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 19px; letter-spacing: -.015em; line-height: 1.3; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 40em; line-height: 1.55; }
.eyebrow { font: 500 12.5px/1.45 var(--font-mono); letter-spacing: .04em; color: var(--muted); text-transform: uppercase; margin: 0 0 18px; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 11px; font-weight: 560; font-size: 15.5px;
  text-decoration: none; border: 1px solid transparent; white-space: nowrap; transition: transform .15s ease, background-color .15s ease; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* Sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: 36px; }
.section-head h2 { margin-bottom: 12px; }

/* Hero */
.hero { padding-top: clamp(48px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--muted); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Signature: the readout — what we measure, before and after */
.readout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.readout-top { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line);
  font: 500 12px/1.4 var(--font-mono); color: var(--muted); letter-spacing: .03em; text-transform: uppercase; }
.readout-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 16px 18px; border-bottom: 1px solid var(--line);
  text-decoration: none; transition: background-color .15s ease; }
.readout-row:last-child { border-bottom: 0; }
.readout-row:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.readout-row .svc { font-weight: 600; letter-spacing: -.01em; }
.readout-row .price { font: 500 14px/1.5 var(--font-mono); color: var(--muted); text-align: right; white-space: nowrap; }
.metric { grid-column: 1 / -1; font: 400 13.5px/1.5 var(--font-mono); color: var(--muted); }
.metric .was { color: var(--was); }
.metric .now { color: var(--now); font-weight: 600; }
.metric .arrow { color: var(--muted); padding: 0 4px; }

/* Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: " →"; color: var(--muted); }
.card .who { color: var(--muted); margin: 0; }
.card .card-foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; }
.card .price-tag { font: 600 15px/1.4 var(--font-mono); }
.card .price-tag small { font-weight: 400; color: var(--muted); }

/* Steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 18px; border-top: 2px solid var(--ink); min-width: 0; }
.steps li::before { content: counter(step); font: 500 13px/1 var(--font-mono); color: var(--muted); display: block; margin-bottom: 12px; }
.steps h3 { margin-bottom: 8px; font-size: 17px; }
.steps p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.principles h3 { font-size: 17px; margin-bottom: 6px; }
.principles p { color: var(--muted); margin: 0; font-size: 15px; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }

/* Video */
.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 24px; }
@media (max-width: 680px) { .videos { grid-template-columns: minmax(0, 1fr); justify-content: center; } }
figure { margin: 0; }
.video-frame { aspect-ratio: 9 / 16; width: 100%; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
figcaption strong { color: var(--ink); font-weight: 600; display: block; font-size: 14.5px; margin-bottom: 2px; }

/* Service page */
.svc-hero { padding-bottom: 40px; }
.svc-hero h1 { font-size: clamp(32px, 4.6vw, 52px); margin-bottom: 18px; max-width: 18em; }
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .svc-layout { grid-template-columns: 1fr; } }
.svc-aside { position: sticky; top: 84px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
@media (max-width: 900px) { .svc-aside { position: static; } }
.svc-aside .big { font: 600 34px/1 var(--font-mono); letter-spacing: -.02em; margin: 6px 0 4px; }
.svc-aside .big small { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.svc-aside dl { margin: 18px 0 0; display: grid; gap: 10px; font-size: 14.5px; }
.svc-aside dt { color: var(--muted); font-size: 12.5px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .03em; }
.svc-aside dd { margin: 0; }
.svc-aside .btn { width: 100%; justify-content: center; margin-top: 20px; }
.svc-aside .fine { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.prose h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -.02em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--muted); }
.prose code { font: 13.5px var(--font-mono); background: var(--code-bg); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.measure { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 0 0 8px; }
.measure .label { font: 500 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 10px; }
.measure .formula { font: 500 clamp(16px, 2.2vw, 20px)/1.4 var(--font-mono); }
.measure .formula .was { color: var(--was); }
.measure .formula .now { color: var(--now); }
.note { border-left: 3px solid var(--line); padding: 4px 0 4px 16px; color: var(--muted); }

/* Legal / plain pages */
.page-head { padding-bottom: 24px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 12px; }
.legal { max-width: 44em; }
.legal h2 { font-size: 20px; margin: 36px 0 10px; }
.legal p, .legal li { color: color-mix(in srgb, var(--ink) 86%, var(--muted)); }

/* CTA band */
.cta-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px; }
.cta-band h2 { max-width: 18em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .legal-name { color: var(--ink); font-weight: 560; }

/* Load motion: one quiet rise for the hero, nothing else moves */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .rise-2 { animation-delay: .08s; }
  .rise-3 { animation-delay: .16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.metric .pair { white-space: nowrap; }
.svc-aside .big small { display: block; margin-top: 6px; }
@media (max-width: 900px) { .svc-aside { order: -1; } }

/* 24.11r: hero shows the work — demo video next to the text */
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
.hero-video { width: 100%; max-width: 300px; justify-self: end; }
.hero .email-line { margin-top: 14px; }
.fine.email-line, .email-line { font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-video { justify-self: start; max-width: 240px; }
}
.measure-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .measure-grid { grid-template-columns: minmax(0, 1fr); } }
/* 24.11s: on narrow screens the demo caption sits ABOVE the hero video, so it is in the first screen at 390 px */
@media (max-width: 900px) {
  .hero-video { display: flex; flex-direction: column-reverse; }
  .hero-video figcaption { margin: 0 0 10px; }
}
/* 24.11s: at <=900 px the whole demo (video + caption) is in the first screen: small video next to its caption,
   placed right after the heading */
@media (max-width: 900px) {
  .hero-grid { display: flex; flex-direction: column; gap: 0; }
  .hero-grid > div:first-child { display: contents; }
  .hero-grid .eyebrow { order: 1; }
  .hero-grid h1 { order: 2; }
  .hero-grid .hero-video { order: 3; }
  .hero-grid .lede { order: 4; }
  .hero-grid .btn-row { order: 5; }
  .hero-grid .email-line { order: 6; }
  .hero-video { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center;
                max-width: none; width: 100%; margin: 0 0 22px; justify-self: stretch; }
  .hero-video figcaption { margin: 0; }
}
