@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');
:root:root { --primary: #2563eb; --secondary: #f59e0b; --accent: #ec4899; --background: #eff6ff; --surface: #ffffff; --text: #0f172a; --text-muted: #64748b; --border: #e4ecfc; --success: #16a34a; --warning: #f59e0b; --error: #dc2626; --radius-sm: 4px; --radius-md: 8px; --radius-lg: 16px; --radius-pill: 9999px; --shadow-sm: 0 1px 2px rgba(0,0,0,0.06); --shadow-md: 0 4px 12px rgba(0,0,0,0.08); --shadow-lg: 0 12px 32px rgba(0,0,0,0.12); --font-heading: 'Roboto', sans-serif; --font-body: 'Roboto', sans-serif; --font-size: 16px; --line-height: 1.6; }
:root:root[data-theme="dark"] { --primary: #2563EB; --secondary: #F59E0B; --accent: #EC4899; --background: #0b0f17; --surface: #131a24; --text: #e5e7eb; --text-muted: #94a3b8; --border: rgba(255,255,255,0.10); --error: #DC2626; }
/* ZartonAI — design tokens (zar theme, matched exactly) */
@import url('https://fonts.googleapis.com/css2?family=Syncopate:wght@400;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --primary: #4f46e5;
  --secondary: #818cf8;
  --accent: #16a34a;
  --background: #eef2ff;
  --surface: #ffffff;
  --text: #312e81;
  --text-muted: #64748b;
  --border: #c7d2fe;
  --success: #16a34a;
  --warning: #f59e0b;
  --error: #dc2626;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --font-heading: 'Syncopate', sans-serif;
  --font-body: 'Space Mono', monospace;
  --font-size: 16px;
  --line-height: 1.6;

  /* derived (kept in the same hue family, not invented) */
  --primary-rgb: 79, 70, 229;
  --accent-rgb: 22, 163, 74;
  --surface-2: #f5f7ff;
  --glow: 0 0 0 1px rgba(var(--primary-rgb), .35), 0 8px 30px rgba(var(--primary-rgb), .18);
  --grid-line: rgba(49, 46, 129, .06);
  --header-h: 76px;
}

[data-theme="dark"] {
  --primary: #4F46E5;
  --secondary: #818CF8;
  --accent: #16A34A;
  --background: #0b0f17;
  --surface: #131a24;
  --text: #e5e7eb;
  --text-muted: #94a3b8;
  --border: rgba(255,255,255,0.10);
  --error: #DC2626;

  --surface-2: #0f1620;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.5);
  --shadow-lg: 0 18px 44px rgba(0,0,0,0.6);
  --glow: 0 0 0 1px rgba(var(--primary-rgb), .5), 0 10px 40px rgba(var(--primary-rgb), .28);
  --grid-line: rgba(129, 140, 248, .08);
}

/* ZartonAI — sections & components */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size);
  line-height: var(--line-height);
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  transition: background .4s ease, color .4s ease;
  overflow-x: hidden;
}
h1,h2,h3,h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
::selection { background: var(--primary); color: #fff; }

.container { width: min(1200px, 92vw); margin-inline: auto; }
.eyebrow { font-family: var(--font-body); font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--primary); font-weight: 700; }
.eyebrow::before { content: "// "; color: var(--accent); }
.muted { color: var(--text-muted); }
.section { padding: clamp(56px, 9vh, 120px) 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.7rem); margin: 14px 0 0; text-transform: uppercase; }
.section-head p { margin-top: 16px; color: var(--text-muted); font-size: 1rem; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-body); font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; padding: 15px 26px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { background: var(--secondary); color: #0b0f17; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-accent { background: var(--accent); color: #fff; }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 60; display: flex; align-items: center; transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: color-mix(in srgb, var(--background) 82%, transparent); backdrop-filter: blur(14px); border-bottom-color: var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-word { font-family: var(--font-heading); font-weight: 700; font-size: 1.02rem; letter-spacing: .04em; text-transform: uppercase; }
.brand-word b { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 14px; }

/* desktop inline nav */
.nav-desktop { display: none; align-items: center; gap: 28px; }
@media (min-width: 980px) { .nav-desktop { display: flex; } }
.nav-desktop a { color: var(--text-muted); font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; font-weight: 700; position: relative; padding: 6px 0; }
.nav-desktop a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--primary); transition: width .25s ease; }
.nav-desktop a:hover { color: var(--text); }
.nav-desktop a:hover::after { width: 100%; }

.icon-btn { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: transparent; color: var(--text); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

.menu-btn { display: inline-flex; }
@media (min-width: 980px) { .menu-btn { display: none; } }

/* header consult CTA: visible on desktop, moved into the drawer on mobile */
.header-cta { display: none; }
@media (min-width: 980px) { .header-cta { display: inline-flex; } }

/* ---------- slide-in drawer (from right) ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(2,4,10,.55); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; z-index: 70; }
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 86vw); background: var(--surface); border-left: 1px solid var(--border); transform: translateX(105%); transition: transform .38s cubic-bezier(.7,0,.2,1); z-index: 80; display: flex; flex-direction: column; padding: 26px; }
.drawer.open { transform: translateX(0); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; color: var(--text); padding: 16px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; opacity: 0; transform: translateX(24px); }
.drawer.open nav a { animation: drawerIn .5s forwards; }
.drawer.open nav a:nth-child(1){animation-delay:.08s}.drawer.open nav a:nth-child(2){animation-delay:.13s}.drawer.open nav a:nth-child(3){animation-delay:.18s}.drawer.open nav a:nth-child(4){animation-delay:.23s}.drawer.open nav a:nth-child(5){animation-delay:.28s}.drawer.open nav a:nth-child(6){animation-delay:.33s}.drawer.open nav a:nth-child(7){animation-delay:.38s}
.drawer nav a:hover { color: var(--primary); padding-left: 8px; }
.drawer nav a span { color: var(--text-muted); font-family: var(--font-body); font-size: .7rem; }
@keyframes drawerIn { to { opacity: 1; transform: translateX(0); } }
.drawer-foot { margin-top: auto; padding-top: 24px; color: var(--text-muted); font-size: .74rem; }
.drawer-foot .btn { width: 100%; justify-content: center; margin-bottom: 18px; }

/* ---------- hero (100vh) ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 80% 20%, transparent 40%, var(--background) 100%); }
.hero .container { position: relative; z-index: 2; padding-top: var(--header-h); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 5.2rem); text-transform: uppercase; line-height: .98; }
.hero h1 .accent { color: var(--primary); }
.hero-lede { margin-top: 26px; font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--text-muted); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-stats { display: flex; gap: 34px; margin-top: 52px; flex-wrap: wrap; }
.hero-stats .stat span { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 1.9rem; color: var(--text); }
.hero-stats .stat small { color: var(--text-muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.hero-panel { position: relative; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 60%, transparent); backdrop-filter: blur(8px); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-lg); }
.hero-panel .tick { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.hero-panel .ping { position:absolute; top:18px; right:18px; width:9px;height:9px;border-radius:50%;background:var(--accent); box-shadow:0 0 0 0 rgba(var(--accent-rgb),.6); animation: ping 1.8s infinite; }
@keyframes ping { 70%{box-shadow:0 0 0 12px rgba(var(--accent-rgb),0)} 100%{box-shadow:0 0 0 0 rgba(var(--accent-rgb),0)} }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; color: var(--text-muted); font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint .bar { width: 1px; height: 40px; background: linear-gradient(var(--primary), transparent); animation: scrollbar 2s ease-in-out infinite; }
@keyframes scrollbar { 0%,100%{opacity:.3;transform:scaleY(.6)} 50%{opacity:1;transform:scaleY(1)} }

/* ---------- generic grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); }
.card .media { aspect-ratio: 16/10; background: var(--surface-2); position: relative; overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card h3 { font-size: 1.05rem; line-height: 1.25; letter-spacing: 0; }
.card .excerpt { color: var(--text-muted); font-size: .88rem; }
.meta-row { display: flex; align-items: center; gap: 12px; font-size: .72rem; color: var(--text-muted); letter-spacing: .06em; text-transform: uppercase; margin-top: auto; }
.tag { display: inline-flex; align-items: center; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; padding: 5px 10px; border-radius: var(--radius-pill); border: 1px solid var(--border); color: var(--text-muted); }
.tag.solid { background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); border-color: transparent; }

/* image placeholder look */
.ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background-image: repeating-linear-gradient(45deg, var(--grid-line) 0 10px, transparent 10px 20px); }
.ph span { font-family: var(--font-body); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); background: var(--surface); padding: 5px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); }

/* ---------- services ---------- */
.svc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.svc .num { font-family: var(--font-heading); font-size: .8rem; color: var(--accent); }
.svc h3 { font-size: 1.2rem; text-transform: uppercase; margin: 18px 0 12px; }
.svc p { color: var(--text-muted); font-size: .9rem; }
.svc .price { margin-top: 18px; font-family: var(--font-heading); color: var(--text); font-size: .92rem; }
.svc .price small { color: var(--text-muted); font-family: var(--font-body); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- feature band ---------- */
.band { background: var(--surface); border-block: 1px solid var(--border); }
.split { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px){ .split { grid-template-columns: 1fr 1fr; } }
.media-frame { border: 1px solid var(--border); border-radius: var(--radius-lg); aspect-ratio: 4/3; position: relative; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-lg); }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); font-size: .92rem; }
.checklist li .dot { color: var(--accent); flex: none; margin-top: 2px; }

/* ---------- search / facets ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.search-box { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; background: var(--surface); flex: 1; min-width: 240px; }
.search-box input { border: 0; background: transparent; color: var(--text); font-family: var(--font-body); font-size: .9rem; width: 100%; outline: none; }
.facets { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.facets button { font-family: var(--font-body); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; padding: 9px 16px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: transparent; color: var(--text-muted); cursor: pointer; transition: all .2s; }
.facets button:hover, .facets button[aria-pressed="true"], .facets button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.sortsel { font-family: var(--font-body); font-size: .8rem; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); }
.count { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- newsletter ---------- */
.newsletter { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--border); background:
  radial-gradient(90% 140% at 90% 10%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 60%),
  var(--surface); padding: clamp(32px, 5vw, 64px); }
.newsletter h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); text-transform: uppercase; }
.zar-form { display: grid; gap: 14px; margin-top: 24px; max-width: 520px; }
.zar-form .row { display: flex; gap: 12px; flex-wrap: wrap; }
.zar-form input, .zar-form textarea, .zar-form select { flex: 1; min-width: 200px; font-family: var(--font-body); font-size: .92rem; padding: 15px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--background); color: var(--text); }
.zar-form textarea { width: 100%; min-height: 140px; resize: vertical; }
.zar-form label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.form-note { font-size: .72rem; color: var(--text-muted); }

/* ---------- article / detail ---------- */
.article-hero { padding-top: calc(var(--header-h) + 40px); }
.article-hero .kicker { display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.article-title { font-size: clamp(1.9rem, 4.6vw, 3.4rem); text-transform: uppercase; margin: 20px 0; max-width: 20ch; }
.article-body { max-width: 720px; }
.article-body p { margin: 20px 0; color: var(--text); }
.prose :is(h2,h3){ text-transform: uppercase; margin: 40px 0 14px; }
.prose p { color: var(--text-muted); margin: 18px 0; }
.byline { display: flex; align-items: center; gap: 14px; margin: 26px 0; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; flex: none; }
.avatar img { width:100%;height:100%;object-fit:cover; }
.cover { aspect-ratio: 21/9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); position: relative; margin: 10px 0 40px; }
.breadcrumbs { display: flex; gap: 8px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); padding-top: calc(var(--header-h) + 24px); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }

/* ---------- team ---------- */
.member { text-align: center; }
.member .avatar-lg { width: 100%; aspect-ratio: 1; border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; position: relative; margin-bottom: 16px; }
.member h3 { font-size: 1rem; text-transform: uppercase; }
.member .role { color: var(--accent); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }

/* ---------- faq ---------- */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); margin-bottom: 14px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 24px; font-family: var(--font-heading); font-weight: 700; font-size: .98rem; text-transform: uppercase; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .pm { color: var(--primary); transition: transform .25s; flex: none; }
.faq-item[open] summary .pm { transform: rotate(45deg); }
.faq-item .ans { padding: 0 24px 24px; color: var(--text-muted); font-size: .92rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 72px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 760px){ .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); } }
.footer-col h4 { font-family: var(--font-body); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 18px; }
.footer-col a { display: block; color: var(--text); font-size: .88rem; padding: 7px 0; }
.footer-col a:hover { color: var(--primary); }
.footer-brand p { color: var(--text-muted); font-size: .9rem; margin-top: 16px; max-width: 34ch; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); font-size: .74rem; color: var(--text-muted); letter-spacing: .06em; }

/* ---------- audio narration player ---------- */
.audio-player { display: flex; align-items: center; gap: 16px; margin: 28px 0 4px; max-width: 640px; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); box-shadow: var(--shadow-md); }
.ap-play { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--glow); transition: transform .18s ease, background .2s; }
.ap-play:hover { transform: scale(1.06); background: var(--secondary); color: #0b0f17; }
.ap-play svg { width: 20px; height: 20px; }
.ap-play .ap-icon-pause { display: none; }
.audio-player.playing .ap-icon-play { display: none; }
.audio-player.playing .ap-icon-pause { display: block; }
.ap-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.ap-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ap-label { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-body); font-weight: 700; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.ap-time { font-family: var(--font-body); font-size: .72rem; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ap-time [data-ap-current] { color: var(--text); }
.ap-wave { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.ap-wave i { width: 2px; height: 40%; background: var(--accent); border-radius: 2px; }
.audio-player.playing .ap-wave i { animation: apwave .9s ease-in-out infinite; }
.audio-player.playing .ap-wave i:nth-child(2){animation-delay:.15s}.audio-player.playing .ap-wave i:nth-child(3){animation-delay:.3s}.audio-player.playing .ap-wave i:nth-child(4){animation-delay:.45s}.audio-player.playing .ap-wave i:nth-child(5){animation-delay:.6s}
@keyframes apwave { 0%,100%{height:30%} 50%{height:100%} }
.ap-track { position: relative; height: 6px; border-radius: var(--radius-pill); background: var(--border); cursor: pointer; }
.ap-fill { position: relative; height: 100%; width: 0%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.ap-knob { position: absolute; right: -6px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 2px solid var(--primary); box-shadow: var(--shadow-sm); opacity: 0; transition: opacity .2s; }
.ap-track:hover .ap-knob, .ap-track:focus-visible .ap-knob { opacity: 1; }
.ap-speed { flex: none; font-family: var(--font-body); font-weight: 700; font-size: .74rem; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: transparent; color: var(--text-muted); cursor: pointer; transition: color .2s, border-color .2s; }
.ap-speed:hover { color: var(--primary); border-color: var(--primary); }
@media (max-width: 540px) { .ap-speed { display: none; } .audio-player { gap: 12px; padding: 12px 14px; } }

/* ---------- scroll-to-top with progress ring ---------- */
.scroll-top { position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); width: 54px; height: 54px; z-index: 55; border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: 50%; opacity: 0; visibility: hidden; transform: translateY(16px) scale(.85); transition: opacity .3s ease, transform .3s cubic-bezier(.2,.7,.3,1), visibility .3s; }
.scroll-top.show { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { transform: translateY(-2px); }
.scroll-top .ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.scroll-top .ring circle { fill: none; stroke-width: 3; }
.scroll-top .ring .track { stroke: var(--border); }
.scroll-top .ring .bar { stroke: var(--primary); stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.scroll-top .core { position: absolute; inset: 6px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text); box-shadow: var(--shadow-md); transition: color .2s, box-shadow .25s; }
.scroll-top:hover .core { color: var(--primary); box-shadow: var(--glow); }
.scroll-top .core svg { width: 18px; height: 18px; }

/* ---------- scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"]{ transition-delay: .08s; }
[data-reveal][data-delay="2"]{ transition-delay: .16s; }
[data-reveal][data-delay="3"]{ transition-delay: .24s; }
[data-reveal][data-delay="4"]{ transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal]{ opacity:1; transform:none; transition:none; }
  html { scroll-behavior: auto; }
  .drawer.open nav a { animation: none; opacity:1; transform:none; }
}

/* page intro spacing for non-hero pages */
.page-head { padding-top: calc(var(--header-h) + clamp(40px, 8vh, 90px)); padding-bottom: 20px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.6rem); text-transform: uppercase; }
.page-head p { color: var(--text-muted); margin-top: 16px; max-width: 60ch; }