/* =========================================================
   Site styles — RTL, light & dark, calm and professional
   ========================================================= */
:root {
  --bg: #070b16;
  --bg-2: #0a1020;
  --surface: #0d1527;
  --surface-2: #111b31;
  --border: rgba(148, 163, 184, .11);
  --border-strong: rgba(148, 163, 184, .2);
  --text: #e8edf6;
  --muted: #92a0b8;
  --star: rgba(255, 255, 255, .55);
  --glass: rgba(13, 21, 39, .72);
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 24px 48px -28px rgba(0, 0, 0, .7);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f6f8fc;
  --bg-2: #eef2f9;
  --surface: #ffffff;
  --surface-2: #f2f5fb;
  --border: rgba(15, 23, 42, .08);
  --border-strong: rgba(15, 23, 42, .14);
  --text: #0f172a;
  --muted: #5b6577;
  --star: rgba(37, 99, 235, .28);
  --glass: rgba(255, 255, 255, .78);
  --shadow: 0 24px 48px -30px rgba(15, 23, 42, .28);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .35s, color .35s;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1em; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.ic { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(860px, 100% - 48px); }
.center { text-align: center; margin-top: 36px; }
.muted { color: var(--muted); }
.muted-sm { color: var(--muted); font-size: .85rem; }
.grad { background: linear-gradient(100deg, var(--accent), var(--accent2) 60%, var(--accent)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; }
.motion .grad { animation: shine 10s linear infinite; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .75em 1.4em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap; line-height: 1.4;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, border-color .3s, color .3s;
}
.btn-lg { padding: .85em 1.7em; font-size: 1rem; }
.btn-sm { padding: .5em 1.05em; font-size: .85rem; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -12px var(--accent); }
.btn-primary:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--accent) 88%, #fff); box-shadow: 0 16px 30px -14px var(--accent); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); transform: translateY(-2px); }
.btn .ic { transition: transform .35s var(--ease); }
.btn:hover .ic { transform: translateX(-3px); }

.tag {
  display: inline-flex; align-items: center; gap: .35em; padding: .18em .7em; border-radius: 999px;
  font-size: .76rem; font-weight: 600; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 11%, transparent);
}
[data-theme="dark"] .tag { color: color-mix(in srgb, var(--accent) 65%, #fff); }
.tag .ic { width: 1em; height: 1em; }
.tag-float { position: absolute; top: 12px; inset-inline-start: 12px; backdrop-filter: blur(10px); background: rgba(7, 11, 22, .55) !important; color: #fff !important; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: .74rem; padding: .12em .6em; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); direction: ltr; }

/* ---------- Announcement ---------- */
.announce { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; font-size: .88rem; font-weight: 500; background: var(--accent); color: #fff; position: relative; z-index: 60; }
.announce .ic { transition: transform .3s var(--ease); }
.announce:hover .ic { transform: translateX(-4px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); border-bottom: 1px solid transparent; transition: background .4s, border-color .4s; }
.site-header.scrolled { background: var(--glass); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border-color: var(--border); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.12rem; margin-inline-end: auto; }
.brand img { height: 38px; width: auto; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: 1rem; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a:not(.btn) { padding: .42em .85em; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: .93rem; transition: color .25s, background .25s; }
.nav a:not(.btn):hover, .nav a.active { color: var(--text); }
.nav a.active { background: var(--surface-2); }
.nav-cta { margin-inline-start: 10px; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.icon-toggle { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; color: var(--text); transition: border-color .25s, transform .35s var(--ease); }
.icon-toggle:hover { border-color: var(--accent); }
.icon-toggle .ic { width: 19px; height: 19px; }
.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: block; }
[data-theme="dark"] .i-moon { display: none; }
.icon-toggle:active { transform: rotate(-20deg) scale(.94); }
.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(calc(100svh - var(--header-h)), 860px); display: flex; align-items: center; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 40px) 0 44px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.hero-grid, .starfield { position: absolute; inset: 0; }
.hero-grid {
  background-image: radial-gradient(var(--star) 1px, transparent 1.2px), radial-gradient(var(--star) .8px, transparent 1px);
  background-size: 120px 120px, 70px 70px; background-position: 0 0, 35px 50px; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 25%, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .32; }
.b1 { width: 440px; height: 440px; background: var(--accent); top: -140px; inset-inline-end: -80px; }
.b2 { width: 360px; height: 360px; background: var(--accent2); bottom: -40px; inset-inline-start: -120px; opacity: .24; }
.b3 { width: 220px; height: 220px; background: var(--accent); top: 45%; left: 42%; opacity: .1; }
.motion .b1 { animation: drift 24s ease-in-out infinite alternate; }
.motion .b2 { animation: drift 28s ease-in-out infinite alternate-reverse; }
[data-theme="light"] .blob { opacity: .14; }

.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 64px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: .32em .95em; border-radius: 999px; font-size: .84rem; font-weight: 500; background: var(--surface); border: 1px solid var(--border-strong); margin-bottom: 22px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.motion .dot { animation: pulse 2.4s infinite; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.22; margin-bottom: 18px; letter-spacing: -.01em; }
.lead { font-size: clamp(1.02rem, 1.35vw, 1.15rem); color: var(--muted); max-width: 38em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-socials { display: flex; gap: 8px; margin-top: 32px; }
.hero-socials a, .socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--muted); border: 1px solid var(--border); background: var(--surface); transition: color .3s, border-color .3s, transform .35s var(--ease); }
.hero-socials a:hover, .socials a:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 55%, transparent); transform: translateY(-3px); }

.hero-visual { position: relative; display: grid; place-items: center; }
.portrait { position: relative; width: min(390px, 100%); aspect-ratio: 4 / 5; }
.portrait > img, .portrait .orb { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 28px; border: 1px solid var(--border-strong); box-shadow: var(--shadow); z-index: 1; }
.portrait-ring { position: absolute; inset: -12px; border-radius: 36px; z-index: 0; opacity: .6; padding: 1.5px;
  background: conic-gradient(from var(--angle, 0deg), var(--accent), transparent 30%, var(--accent2), transparent 70%, var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.motion .portrait-ring { animation: spin 16s linear infinite; }
.orb { display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent) 28%, var(--surface)), var(--surface) 70%); }
.orb span { position: absolute; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); aspect-ratio: 1; }
.orb span:nth-child(1) { width: 40%; } .orb span:nth-child(2) { width: 65%; } .orb span:nth-child(3) { width: 90%; }
.motion .orb span { animation: breathe 6s ease-in-out infinite; }
.motion .orb span:nth-child(2) { animation-delay: -2s; }
.motion .orb span:nth-child(3) { animation-delay: -4s; }
.orb-ic { width: 60px; height: 60px; color: var(--accent); }

.float-chip, .tool-chip { display: inline-flex; align-items: center; gap: 8px; padding: .45em .95em; border-radius: 12px; font-size: .86rem; font-weight: 600; direction: ltr; white-space: nowrap; border: 1px solid var(--border-strong); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.float-chip .ic, .tool-chip .ic { color: var(--accent); width: 1.05em; height: 1.05em; }
.float-chip img, .tool-chip img { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; }
.float-chip { position: absolute; z-index: 2; box-shadow: var(--shadow); }
.fc1 { top: 10%; inset-inline-start: -6%; }
.fc2 { top: 44%; inset-inline-end: -9%; }
.fc3 { bottom: 12%; inset-inline-start: -3%; }
.fc4 { bottom: -3%; inset-inline-end: 12%; }
.motion .float-chip { animation: float 7s ease-in-out infinite; }
.motion .fc2 { animation-delay: -2s; } .motion .fc3 { animation-delay: -4s; } .motion .fc4 { animation-delay: -5.5s; }
.scroll-hint { position: absolute; bottom: 24px; left: 50%; translate: -50% 0; width: 24px; height: 40px; border-radius: 20px; border: 1.5px solid var(--border-strong); display: flex; justify-content: center; padding-top: 8px; }
.scroll-hint span { width: 3px; height: 7px; border-radius: 3px; background: var(--muted); }
.motion .scroll-hint span { animation: scrolly 2s var(--ease) infinite; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; position: relative; }
.section-tight { padding: 24px 0; }
#stats + .section { padding-top: 64px; }
.section-alt { background: var(--bg-2); }
.page-top { padding-top: 56px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 44px; }
.section-head-text { max-width: 640px; }
.section-head h2, .section-head h1 { font-size: clamp(1.65rem, 2.8vw, 2.3rem); margin-bottom: .3em; }
.section-head p { color: var(--muted); font-size: 1.02rem; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 600; font-size: .88rem; margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.head-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.head-link .ic { transition: transform .35s var(--ease); }
.head-link:hover .ic { transform: translateX(-4px); }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.masonry { align-items: start; }
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease), background-color .35s; }
a.card:hover, .service-card:hover, .book-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 35%, transparent); box-shadow: var(--shadow); }
.ph { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 10px; color: var(--muted); text-align: center; padding: 20px;
  background: radial-gradient(circle at 75% 15%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), radial-gradient(circle at 15% 95%, color-mix(in srgb, var(--accent2) 14%, transparent), transparent 55%), var(--surface-2); }
.ph-ic { width: 36px; height: 36px; opacity: .6; }
.ph span { font-weight: 600; color: var(--text); opacity: .8; }

/* ---------- Stats band ---------- */
.stats-band { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--border); padding: 40px 36px 30px; isolation: isolate;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--surface)), var(--surface) 70%); box-shadow: var(--shadow); }
.stats-band::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 60%, transparent), transparent); }
.stats-band::after { content: ""; position: absolute; z-index: -1; width: 55%; height: 140px; top: -70px; left: 22.5%; border-radius: 50%; background: var(--accent); opacity: .12; filter: blur(60px); }
.stats-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); }
.stat { display: grid; justify-items: center; align-content: start; text-align: center; gap: 4px; padding: 6px 12px; }
.stats-grid .stat + .stat { border-inline-start: 1px solid var(--border); }
.stat strong { font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat > span:last-child { color: var(--muted); font-size: .92rem; }
.stat-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; margin-bottom: 6px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.stat-icon .ic { width: 18px; height: 18px; }
.tools-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--border); }
.tools-label { color: var(--muted); font-weight: 500; margin-inline-end: 4px; }
.tool-chip { border-radius: 999px; padding: .5em 1.05em; background: var(--bg) !important; transition: border-color .3s, transform .35s var(--ease); }
a.tool-chip:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.about-media-wrap { position: relative; padding: 0 0 22px 22px; }
.about-media { aspect-ratio: 1; border-radius: 24px; overflow: hidden; border: 1px solid var(--border-strong); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.exp-badge { position: absolute; left: 0; bottom: 0; display: grid; gap: 0; padding: 14px 20px; border-radius: 18px; background: var(--accent); color: #fff; box-shadow: 0 18px 34px -16px var(--accent); text-align: start; min-width: 120px; }
.exp-badge strong { font-size: 1.7rem; line-height: 1.2; font-weight: 700; }
.exp-badge span { font-size: .88rem; opacity: .92; }
.motion .exp-badge { animation: float 7s ease-in-out infinite; }
.about-body .section-head { margin-bottom: 16px; }
.about-text { color: var(--muted); font-size: 1.05rem; }
.skills { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.skills li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: .93rem; min-height: 56px; transition: border-color .3s, transform .4s var(--ease); }
.skills li:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); transform: translateY(-2px); }
.skill-ic { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.skill-ic .ic { width: 18px; height: 18px; }
.skills li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.about-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Services ---------- */
.service-card { padding: 26px 22px; display: flex; flex-direction: column; }
.service-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 18px; color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, transparent); transition: transform .5s var(--ease); }
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.05); }
.service-icon .ic { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.08rem; }
.service-card p { color: var(--muted); font-size: .93rem; }
.mini-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; font-size: .9rem; }
.mini-list li { display: flex; align-items: center; gap: 8px; }
.mini-list .ic { color: var(--accent); width: 1em; height: 1em; }
.price-from { margin-top: auto; padding-top: 18px; color: var(--muted); font-size: .88rem; }
.price-from strong { color: var(--text); }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 28px; }
.filters button { padding: .4em 1.05em; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent; color: var(--muted); cursor: pointer; font-weight: 500; font-size: .88rem; transition: all .3s var(--ease); }
.filters button:hover { color: var(--text); }
.filters button.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.is-hidden { display: none !important; }

/* ---------- Works ---------- */
.work-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.work-media img, .work-media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
a.card:hover .work-media img, a.card:hover .work-media video, a.card:hover .post-media img { transform: scale(1.05); }
.play-badge { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(7, 11, 22, .45); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .25); transition: transform .4s var(--ease), opacity .4s; pointer-events: none; }
.play-badge .ic { width: 20px; height: 20px; margin-inline-end: -3px; }
a.card:hover .play-badge { transform: scale(1.08); }
.work-card.playing .play-badge { opacity: 0; }
.work-body { padding: 18px 20px 20px; }
.work-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.work-body p { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }

/* ---------- Prompts ---------- */
.prompt-media { aspect-ratio: 16 / 10; overflow: hidden; }
.prompt-media img { width: 100%; height: 100%; object-fit: cover; }
.prompt-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.prompt-body h3 { font-size: 1.03rem; margin: 0; }
.prompt-body p { margin: 0; }
.prompt-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prompt-text { margin: 0; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--border); font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .8rem; line-height: 1.7; white-space: pre-wrap; word-break: break-word; max-height: 9.5em; overflow: hidden; color: color-mix(in srgb, var(--text) 82%, var(--muted)); unicode-bidi: plaintext; text-align: start; }
.copy-btn { align-self: flex-start; }
.copy-btn.copied { border-color: #22c55e; color: #16a34a; }
.search-box { position: relative; max-width: 440px; margin: -12px 0 22px; }
.search-box .ic { position: absolute; inset-inline-start: 16px; top: 50%; translate: 0 -50%; color: var(--muted); }
.search-box input { width: 100%; padding: .75em 2.8em .75em 1em; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); outline: none; transition: border-color .3s; }
.search-box input:focus { border-color: var(--accent); }

/* ---------- Books ---------- */
.book-card { display: flex; flex-direction: column; }
.book-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.book-card:hover .book-cover img { transform: scale(1.04); }
.book-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.book-body h3 { font-size: 1.07rem; }
.book-body p { color: var(--muted); font-size: .92rem; }
.book-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--border); padding-top: 16px; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price strong { font-size: 1.15rem; }
.price del { color: var(--muted); font-size: .86rem; }

/* ---------- Testimonials ---------- */
.testimonial { margin: 0; padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.quote-ic { width: 30px; height: 30px; color: color-mix(in srgb, var(--accent) 45%, transparent); }
.stars { display: flex; gap: 2px; }
.stars span { color: var(--border-strong); }
.stars span.on { color: #f5b301; }
.stars .ic { width: 15px; height: 15px; }
.testimonial blockquote { margin: 0; font-size: .98rem; line-height: 1.85; flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--border); }
.testimonial figcaption strong { display: block; font-size: .94rem; }
.testimonial figcaption small { color: var(--muted); }
.avatar { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Partners ---------- */
.logo-rows { display: grid; gap: 18px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; }
.motion .marquee-track { animation: marquee 45s linear infinite; }
.motion .marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 50s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 56px; padding-inline-end: 56px; }
.logo-item { height: 72px; display: grid; place-items: center; flex-shrink: 0; }
.logo-item img, .partner-logo img { max-height: 58px; max-width: 150px; object-fit: contain; transition: transform .4s var(--ease), opacity .3s; }
.logo-item:hover img { transform: scale(1.06); }
.partner-name { font-weight: 700; color: var(--muted); font-size: 1.05rem; white-space: nowrap; padding: 0 6px; }
.pl-dark { display: none; }
[data-theme="dark"] .pl-dark { display: block; }
[data-theme="dark"] .pl-light:not(.pl-only) { display: none; }
[data-theme="dark"] .needs-tile { background: #f4f6fb; border-radius: 14px; padding: 8px 18px; height: 72px; }
[data-theme="dark"] .needs-tile img { max-height: 50px; }
.btn-outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.partner-card { display: flex; align-items: center; gap: 16px; padding: 18px; }
.partner-logo { width: 96px; height: 72px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); padding: 8px; }
.partner-logo img { max-height: 54px; max-width: 80px; }
[data-theme="dark"] .partner-logo.needs-tile { background: #f4f6fb; padding: 8px; height: 72px; }
.partner-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.partner-info small { color: var(--muted); font-size: .84rem; }
.partner-go { color: var(--muted); }
a.partner-card:hover .partner-go { color: var(--accent); }

/* ---------- Blog ---------- */
.post-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-body { padding: 18px 20px 20px; }
.post-body h3 { font-size: 1.05rem; }
.post-body p { color: var(--muted); font-size: .91rem; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .84rem; margin-bottom: 10px; }
.post-meta > span:not(.tag) { display: inline-flex; align-items: center; gap: 6px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: .9rem; }
.link-more .ic { transition: transform .35s var(--ease); }
a.card:hover .link-more .ic { transform: translateX(-4px); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; align-items: start; }
.contact-info { display: grid; gap: 10px; }
.info-row { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .3s, transform .4s var(--ease); }
a.info-row:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateX(-4px); }
.info-row small { display: block; color: var(--muted); font-size: .8rem; }
.info-row strong { font-weight: 600; font-size: .96rem; }
.info-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, transparent); flex-shrink: 0; }
.contact-info .socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.contact-form { padding: 28px; display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: .88rem; color: var(--muted); font-weight: 500; }
.contact-form input, .contact-form textarea { width: 100%; padding: .78em 1em; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--bg); outline: none; transition: border-color .3s, box-shadow .3s; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.contact-form .btn { justify-self: start; }
.contact-form .btn[disabled] { opacity: .6; pointer-events: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin: 0; font-weight: 500; color: #16a34a; min-height: 1.5em; }
.form-msg.err { color: #dc2626; }

/* ---------- Detail pages ---------- */
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; margin-bottom: 26px; transition: color .3s; }
.back-link:hover { color: var(--text); }
.detail-head { margin-bottom: 34px; }
.detail-head h1 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); margin-top: 14px; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }
.detail-cover { margin: 0 0 40px; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); }
.detail-cover img { width: 100%; max-height: 640px; object-fit: cover; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 40px; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame:has(video) { aspect-ratio: auto; display: flex; justify-content: center; }
.video-frame video { max-height: 80vh; width: auto; max-width: 100%; }
.prose { font-size: 1.06rem; line-height: 2; }
.prose h2 { font-size: 1.55rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose img { border-radius: 14px; margin: 1.5em 0; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.prose blockquote { margin: 1.5em 0; padding: 1em 1.4em; border-inline-start: 3px solid var(--accent); background: var(--surface); border-radius: 12px; }
.prose pre, .prose code { font-family: ui-monospace, Menlo, Consolas, monospace; direction: ltr; text-align: left; }
.prose pre { background: var(--bg-2); border: 1px solid var(--border); padding: 1em; border-radius: 12px; overflow-x: auto; font-size: .9rem; }
.prose iframe, .prose video { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 14px; }
.gallery { columns: 3 240px; column-gap: 16px; margin-top: 40px; }
.gallery-item { display: block; margin-bottom: 16px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); break-inside: avoid; }
.gallery-item img { width: 100%; transition: transform .8s var(--ease); }
.gallery-item:hover img { transform: scale(1.03); }
.share { display: flex; align-items: center; gap: 10px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); }
.share a, .share button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; color: var(--muted); transition: color .3s, border-color .3s; }
.share a:hover, .share button:hover { color: var(--text); border-color: var(--accent); }

/* ---------- Story / timeline ---------- */
.story-head { margin-bottom: 52px; }
.story-head h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.story-span { display: inline-flex; align-items: center; gap: 12px; margin-top: 8px; padding: .45em 1.1em; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .88rem; font-weight: 600; color: var(--muted); }
.story-span i { width: 28px; height: 1px; background: var(--border-strong); }
.story-span span:first-child, .story-span span:last-child { color: var(--accent); font-variant-numeric: tabular-nums; }
.timeline { --rail: 64px; position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.tl-track { position: absolute; top: 18px; bottom: 18px; inset-inline-start: calc(var(--rail) / 2 - 1px); width: 2px; border-radius: 2px; background: var(--border-strong); overflow: hidden; }
.tl-progress { position: absolute; inset-inline: 0; top: 0; height: calc(var(--p, 0) * 100%); background: linear-gradient(var(--accent), var(--accent2)); border-radius: 2px; transition: height .15s linear; }
html:not(.js) .tl-progress, html:not(.motion) .tl-progress { height: 100%; }
.tl-item { display: grid; grid-template-columns: var(--rail) 1fr; gap: 20px; align-items: start; position: relative; }
.tl-marker { display: grid; justify-items: center; padding-top: 14px; position: relative; z-index: 1; }
.tl-year { min-width: 58px; padding: .3em .55em; border-radius: 999px; text-align: center; font-weight: 700; font-size: .85rem; font-variant-numeric: tabular-nums; color: var(--accent); background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent); transition: background .5s var(--ease), color .5s var(--ease); }
.tl-item.in .tl-year, html:not(.js) .tl-year { background: var(--accent); color: #fff; border-color: var(--accent); }
.tl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; transition: border-color .4s, box-shadow .5s var(--ease); }
.tl-card:hover { border-color: color-mix(in srgb, var(--accent) 35%, transparent); box-shadow: var(--shadow); }
.tl-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.tl-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; flex-shrink: 0; color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, transparent); }
.tl-icon .ic { width: 21px; height: 21px; }
.tl-step { display: block; font-size: .76rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.tl-card h2 { font-size: 1.15rem; margin: 0; }
.tl-card p { color: var(--muted); margin: 0; font-size: .97rem; }
.tl-img { margin-top: 16px; border-radius: 12px; border: 1px solid var(--border); max-height: 340px; width: 100%; object-fit: cover; }
.tl-item.is-highlight .tl-card { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface) 60%); }
.tl-item.is-highlight .tl-icon { background: var(--accent); color: #fff; }
.story-cta { margin-top: 64px; padding: 36px 28px; text-align: center; border-radius: 24px; border: 1px solid var(--border); background: var(--surface); }
.story-cta h3 { font-size: 1.4rem; }
.story-cta .hero-cta { justify-content: center; margin-top: 18px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(3, 6, 14, .9); backdrop-filter: blur(8px); opacity: 0; transition: opacity .35s; cursor: zoom-out; }
.lightbox.open { opacity: 1; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 14px; transform: scale(.96); transition: transform .45s var(--ease); }
.lightbox.open img { transform: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 24px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px; }
.footer-brand p { color: var(--muted); margin: 12px 0 0; max-width: 340px; font-size: .94rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--muted); font-size: .94rem; }
.footer-nav a:hover { color: var(--text); }
.site-footer .socials { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .86rem; text-align: center; }
.wa-float { position: fixed; bottom: 20px; left: 20px; z-index: 40; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #22c55e; color: #fff; box-shadow: 0 12px 28px -10px rgba(34, 197, 94, .8); transition: transform .4s var(--ease); }
.wa-float:hover { transform: scale(1.07); }
.wa-float .ic { width: 25px; height: 25px; }

/* ---------- Motion ---------- */
[data-anim] { opacity: 0; transform: translateY(16px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * .1s + .08s); }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .85s var(--ease), transform .85s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .stats-band.reveal .stat { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms + .15s); }
.js .stats-band.reveal.in .stat { opacity: 1; transform: none; }

@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-50px, 40px) scale(1.1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { --angle: 360deg; } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .5; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); } 70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@keyframes scrolly { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(13px); opacity: 0; } 100% { opacity: 0; } }
@keyframes marquee { to { transform: translateX(50%); } }
@keyframes shine { to { background-position: 200% center; } }

html:not(.motion) [data-anim], html:not(.motion) .reveal, html:not(.motion) .stats-band .stat { animation: none !important; opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-anim], .js .reveal, .js .stats-band .stat { opacity: 1 !important; transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 36px; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .menu-btn { display: grid; }
  .nav { position: fixed; inset: calc(var(--header-h) + 4px) 12px auto 12px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a:not(.btn) { padding: .7em 1em; border-radius: 10px; }
  .nav-cta { margin: 8px 0 0; }
  .hero { min-height: auto; padding-bottom: 20px; }
  #stats { padding: 12px 0; }
  #stats + .section { padding-top: 48px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { order: 2; }
  .hero .lead { margin-inline: auto; }
  .hero-cta, .hero-socials { justify-content: center; }
  .portrait { width: min(260px, 62%); aspect-ratio: 1; }
  .portrait > img, .portrait .orb { border-radius: 26px; }
  .fc1 { top: 6%; inset-inline-start: 0; } .fc2 { top: 46%; inset-inline-end: 0; } .fc3 { bottom: 6%; inset-inline-start: 4%; } .fc4 { bottom: -4%; inset-inline-end: 18%; }
  .about, .contact { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 52px 0; }
}
@media (max-width: 640px) {
  .container, .narrow { width: calc(100% - 32px); }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  /* Works: two per row on phones */
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .works-grid .work-card { border-radius: 14px; }
  .works-grid .work-media { aspect-ratio: 4 / 5; }
  .works-grid .work-body { padding: 10px 12px 12px; }
  .works-grid .work-body h3 { font-size: .9rem; margin: 0; line-height: 1.45; }
  .works-grid .work-body p, .works-grid .work-body .chips { display: none; }
  .works-grid .tag-float { top: 8px; inset-inline-start: 8px; font-size: .68rem; padding: .1em .55em; }
  .works-grid .play-badge { width: 40px; height: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .float-chip { font-size: .74rem; }
  .fc4 { display: none; }
  .contact-form { padding: 20px; }
  .footer-inner { flex-direction: column; }
  .section-head { margin-bottom: 30px; }
  .filters { margin-top: -6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex-shrink: 0; }
  .timeline { --rail: 54px; gap: 16px; }
  .tl-item { gap: 12px; }
  .tl-year { min-width: 50px; font-size: .78rem; }
  .tl-card { padding: 18px; }
  .tl-card-head { gap: 12px; }
  .tl-icon { width: 38px; height: 38px; }
}

/* ---------- Pages ---------- */
.page-header { position: relative; padding: 48px 0 8px; }
.page-header h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: .25em; }
.page-header .lead { margin: 0; }
.page-header + .section { padding-top: 44px; }
.page-top-space { height: 24px; }
.section-flush { padding-top: 40px; }
.center-text { text-align: center; }
.section-head.center-head { justify-content: center; text-align: center; }
.section-head.center-head .section-head-text { margin-inline: auto; }
.section-head.center-head .eyebrow { justify-content: center; }
.section-head.center-head .eyebrow::after { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.not-found { min-height: 60vh; display: grid; align-items: center; }
.nf-code { display: block; font-size: clamp(4rem, 12vw, 7rem); font-weight: 700; line-height: 1; color: var(--accent); opacity: .9; }
.not-found .hero-cta { justify-content: center; }
.cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 32px 34px; border-radius: 22px; border: 1px solid var(--border); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface) 65%); }
.cta-box h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: .2em; }
.cta-box p { margin: 0; }

/* Works filter tabs */
.seg-filters { display: inline-flex; flex-wrap: nowrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); margin: -12px 0 26px; }
.seg-filters button { display: inline-flex; align-items: center; gap: 6px; border: 0; padding: .45em 1.1em; }
.seg-filters button .ic { width: 1em; height: 1em; }
.seg-filters button.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Work quick view */
.work-card { cursor: pointer; }
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 6, 14, .72); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.modal-box { position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 22px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); transform: translateY(16px) scale(.97); opacity: 0; transition: transform .45s var(--ease), opacity .3s; }
.modal.open .modal-backdrop { opacity: 1; }
.modal.open .modal-box { transform: none; opacity: 1; }
.modal-close { position: absolute; top: 12px; left: 12px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 0; cursor: pointer; color: #fff; background: rgba(7, 11, 22, .55); backdrop-filter: blur(8px); }
.modal-media { background: #000; display: grid; place-items: center; }
.modal-media img, .modal-media video { width: 100%; max-height: 62vh; object-fit: contain; }
.modal-media iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.modal-media:empty { display: none; }
.modal-body { padding: 22px 24px 24px; display: grid; gap: 10px; justify-items: start; }
.modal-body h3 { font-size: 1.25rem; margin: 0; }
.modal-body p { color: var(--muted); margin: 0; }
.modal-body .tag:empty, .modal-body p:empty, .modal-body .chips:empty { display: none; }
.modal-body .btn { margin-top: 6px; }
body.modal-open { overflow: hidden; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq-item { border-radius: 16px; background: var(--surface); border: 1px solid var(--border); transition: border-color .3s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ic { color: var(--muted); transition: transform .35s var(--ease); }
.faq-item[open] .faq-ic { transform: rotate(180deg); color: var(--accent); }
.faq-answer { padding: 0 22px 18px; color: var(--muted); }
.faq-answer p { margin: 0 0 .4em; }

/* Store page */
.store-hero { position: relative; overflow: hidden; isolation: isolate; padding: 48px 0 56px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--bg-2)), var(--bg)); border-bottom: 1px solid var(--border); }
.store-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: .3em; }
.store-hero .lead { max-width: 44em; }
.feature-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.feature-card { display: flex; align-items: flex-start; gap: 12px; min-width: 240px; flex: 0 1 280px; padding: 16px 18px; border-radius: 16px; background: var(--glass); border: 1px solid var(--border-strong); backdrop-filter: blur(10px); }
.feature-card strong { display: block; font-size: .98rem; }
.feature-card small { color: var(--muted); font-size: .86rem; }
.feature-ic { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border-radius: 11px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.feature-ic .ic { width: 19px; height: 19px; }

/* Contact verification steps */
.step { display: grid; gap: 14px; }
.step[hidden] { display: none; }
.step-code, .step-done { justify-items: center; text-align: center; padding: 10px 0; }
.step-code h3, .step-done h3 { margin: 0; font-size: 1.2rem; }
.step-code p, .step-done p { margin: 0; max-width: 32em; }
.code-ic { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.code-ic.ok { color: #16a34a; background: rgba(34, 197, 94, .14); }
.code-ic .ic { width: 26px; height: 26px; }
.contact-form .code-input { width: min(260px, 100%); text-align: center; font-size: 1.6rem; letter-spacing: .5em; padding: .5em; font-variant-numeric: tabular-nums; }
.code-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.form-note { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: .84rem; }
.form-note .ic { color: var(--accent); width: 1em; height: 1em; }
.contact.no-form { grid-template-columns: 1fr; max-width: 560px; }

@media (max-width: 900px) {
  .about-media-wrap { max-width: 420px; }
  .stats-grid { grid-template-columns: repeat(min(var(--cols, 3), 3), 1fr); row-gap: 24px; }
  .stats-grid .stat + .stat { border-inline-start: 0; }
}
@media (max-width: 640px) {
  .stats-band { padding: 28px 14px 22px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .stats-grid .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .skills { grid-template-columns: 1fr; }
  .skills li:last-child:nth-child(odd) { grid-column: auto; }
  .marquee-group { gap: 34px; padding-inline-end: 34px; }
  .logo-item { height: 56px; }
  .logo-item img { max-height: 44px; max-width: 110px; }
  .seg-filters { width: 100%; justify-content: stretch; }
  .seg-filters button { flex: 1; justify-content: center; }
  .modal { padding: 0; align-items: end; }
  .modal-box { border-radius: 22px 22px 0 0; max-height: 92vh; }
  .cta-box { padding: 24px 20px; }
  .feature-card { flex: 1 1 100%; min-width: 0; }
  .page-header { padding-top: 30px; }
}

.filter-empty { text-align: center; color: var(--muted); padding: 40px 0; margin: 0; }

.store-hero .back-link, .page-header .back-link { display: flex; width: max-content; }
.store-hero .eyebrow, .page-header .eyebrow { display: flex; width: max-content; }

/* ---------- Brand: photo + name + title ---------- */
.brand { gap: 10px; }
.brand-photo { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.brand-mark { border-radius: 50%; }
.brand-text { display: grid; line-height: 1.15; }
.brand-name { font-size: 1.05rem; font-weight: 700; }
.brand-title { font-size: .78rem; font-weight: 600; color: var(--accent); }
.brand-logo { height: 40px; width: auto; }

/* Status badge colour */
.dot { background: var(--dot, #22c55e); box-shadow: 0 0 0 0 color-mix(in srgb, var(--dot, #22c55e) 55%, transparent); }
.motion .dot { animation: pulse-dot 2.4s infinite; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--dot, #22c55e) 55%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- Partners: plain logos, same visual size ---------- */
.logo-rows { gap: 26px; }
.logo-item { height: var(--logo-h, 60px); background: none !important; padding: 0 !important; }
.logo-item img { height: auto; max-height: calc(var(--logo-h, 60px) * var(--scale, 1)); max-width: calc(var(--logo-h, 60px) * 2.6 * var(--scale, 1)); width: auto; object-fit: contain; }
.motion .marquee-track { animation-duration: var(--speed, 60s) !important; }
.motion .marquee.reverse .marquee-track { animation-duration: calc(var(--speed, 60s) * 1.1) !important; }
.marquee-group { gap: 64px; padding-inline-end: 64px; }
[data-theme="dark"] .dark-white .pl-only { filter: brightness(0) invert(1); opacity: .72; transition: filter .35s, opacity .35s, transform .4s var(--ease); }
[data-theme="dark"] .dark-white .logo-item:hover .pl-only, [data-theme="dark"] .dark-white .partner-card:hover .pl-only { filter: none; opacity: 1; }
.logo-rows.is-static .marquee { -webkit-mask-image: none; mask-image: none; }
.logo-rows.is-static .marquee-track { animation: none !important; width: auto; justify-content: center; }
.logo-rows.is-static .marquee-group { flex-wrap: wrap; justify-content: center; row-gap: 26px; padding: 0 16px; }
.logo-rows.is-static .marquee-group[aria-hidden] { display: none; }
.partner-logo { background: none !important; }
.partner-logo img { max-height: 56px; max-width: 96px; }

/* ---------- Before / after comparison ---------- */
.prompt-media.is-compare { aspect-ratio: 4 / 3; }
.compare { position: relative; width: 100%; height: 100%; overflow: hidden; user-select: none; touch-action: pan-y; background: var(--surface-2); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cmp-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; translate: -1px 0; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .4); pointer-events: none; }
.cmp-handle { position: absolute; top: 50%; left: var(--pos); translate: -50% -50%; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0f172a; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); z-index: 2; pointer-events: none; }
.cmp-handle .ic { width: 18px; height: 18px; }
.cmp-label { position: absolute; top: 10px; z-index: 2; padding: .15em .65em; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #fff; background: rgba(7, 11, 22, .6); backdrop-filter: blur(6px); pointer-events: none; }
.cmp-l-before { left: 10px; }
.cmp-l-after { right: 10px; }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; direction: ltr; }

@media (max-width: 640px) {
  /* Stats: three per row */
  .stats-grid { grid-template-columns: repeat(3, 1fr) !important; row-gap: 22px; }
  .stats-grid .stat { border-inline-start: 0 !important; padding: 4px 6px; }
  .stats-grid .stat:not(:nth-child(3n+1)) { border-inline-start: 1px solid var(--border) !important; }
  .stats-grid .stat:last-child:nth-child(odd) { grid-column: auto; }
  .stat strong { font-size: 1.45rem; }
  .stat > span:last-child { font-size: .78rem; line-height: 1.4; }
  /* Prompts: two per row */
  .prompts-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .prompts-grid .prompt-body { padding: 12px; gap: 8px; }
  .prompts-grid .prompt-body h3 { font-size: .9rem; line-height: 1.45; }
  .prompts-grid .prompt-text { font-size: .7rem; padding: 10px; max-height: 7.2em; }
  .prompts-grid .prompt-meta .muted-sm, .prompts-grid .prompt-body > p { display: none; }
  .prompts-grid .tag { font-size: .68rem; }
  .prompts-grid .copy-btn { align-self: stretch; padding: .5em .6em; font-size: .75rem; }
  .prompts-grid .prompt-media.is-compare, .prompts-grid .prompt-media { aspect-ratio: 1; }
  .prompts-grid .cmp-handle { width: 30px; height: 30px; }
  .brand-photo { width: 38px; height: 38px; }
  .marquee-group { gap: 40px; padding-inline-end: 40px; }
  .logo-rows { --logo-h: 46px !important; }
}


/* Article content (shared by the editor and the site) */
.prose .c-accent { color: #3b82f6; } .prose .c-purple { color: #8b5cf6; } .prose .c-green { color: #16a34a; }
.prose .c-amber { color: #d97706; } .prose .c-red { color: #dc2626; }
.prose .c-grad { background: linear-gradient(100deg, #3b82f6, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.prose mark { background: rgba(245, 158, 11, .28); color: inherit; padding: 0 .2em; border-radius: 4px; }
.prose .callout { margin: 1.6em 0; padding: 1em 1.3em; border-radius: 14px; background: rgba(59, 130, 246, .1); border: 1px solid rgba(59, 130, 246, .28); }
.prose .callout p:last-child { margin-bottom: 0; }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; border-radius: 16px; margin: 0; display: block; }
.prose figcaption { margin-top: .7em; text-align: center; font-size: .88rem; color: var(--muted); line-height: 1.7; }
.prose .fig-center { max-width: 66%; margin-inline: auto; }
.prose .fig-right { float: right; width: 44%; margin: .4em 0 1em 1.6em; }
.prose .fig-left { float: left; width: 44%; margin: .4em 1.6em 1em 0; }
.prose .fig-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; display: block; }
.prose hr { border: 0; height: 1px; margin: 2.4em auto; width: 40%; background: linear-gradient(90deg, transparent, currentColor, transparent); opacity: .3; }
.prose::after { content: ""; display: table; clear: both; }

@media (max-width: 640px) { .prose .fig-right, .prose .fig-left { float: none; width: 100%; margin: 1.6em 0; } .prose .fig-center { max-width: 100%; } }

/* ---------- Article page ---------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .1s linear; }
.post-article .detail-head h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.35; }
.post-prose { font-size: 1.1rem; line-height: 2.05; }
.post-prose > p:first-of-type { font-size: 1.18rem; color: var(--text); }
.post-prose p { margin: 0 0 1.3em; color: color-mix(in srgb, var(--text) 88%, var(--muted)); }
.post-prose h2 { position: relative; font-size: 1.55rem; margin: 2em 0 .7em; padding-inline-start: 16px; }
.post-prose h2::before { content: ""; position: absolute; inset-inline-start: 0; top: .3em; bottom: .3em; width: 4px; border-radius: 4px; background: linear-gradient(var(--accent), var(--accent2)); }
.post-prose h3 { font-size: 1.25rem; margin: 1.6em 0 .5em; }
.post-prose ul, .post-prose ol { padding-inline-start: 1.4em; margin: 0 0 1.4em; }
.post-prose li { margin-bottom: .45em; }
.post-prose ul li::marker { color: var(--accent); }
.post-prose ol li::marker { color: var(--accent); font-weight: 700; }
.post-prose blockquote { font-size: 1.15rem; font-weight: 500; border-inline-start-width: 4px; }
.author-box { display: flex; align-items: center; gap: 16px; margin-top: 48px; padding: 20px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.author-box img, .author-box .avatar { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box div { flex: 1; min-width: 0; }
.author-box strong { display: flex; align-items: center; gap: 8px; }
.author-box p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 640px) { .author-box { flex-wrap: wrap; } .post-prose { font-size: 1.04rem; } }

/* ---------- Partners page: logo cards ---------- */
.partner-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.partner-card { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.partner-card .partner-logo { width: auto; height: 150px; border-radius: 0; padding: 26px; background: #f8fafc !important; border-bottom: 1px solid var(--border); }
.partner-card .partner-logo img { max-height: calc(86px * var(--scale, 1)); max-width: 80%; filter: grayscale(.15); transition: transform .5s var(--ease), filter .3s; }
.partner-card:hover .partner-logo img { transform: scale(1.05); filter: none; }
.partner-card .partner-info { padding: 14px 16px; }
.partner-card .partner-info strong { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.partner-card .partner-info small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.partner-card .partner-go { position: absolute; top: 10px; left: 10px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(15, 23, 42, .1); }
.partner-card .partner-go .ic { width: 15px; height: 15px; }

@media (max-width: 640px) {
  /* Partners: moving logos on phones too, about four visible at once */
  .logo-rows { --logo-h: 40px !important; gap: 20px; }
  .marquee-group { gap: 34px !important; padding-inline-end: 34px !important; }
  /* Partners page: two per row */
  .partner-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .partner-card .partner-logo { height: 112px; padding: 18px; }
  .partner-card .partner-logo img { max-height: calc(62px * var(--scale, 1)); }
  .partner-card .partner-info { padding: 10px 12px; }
  .partner-card .partner-info strong { font-size: .84rem; }
  .partner-card .partner-info small { display: none; }
  /* Testimonials: two per row */
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .testimonials-grid .testimonial { padding: 16px 14px; gap: 10px; }
  .testimonials-grid .quote-ic { width: 22px; height: 22px; }
  .testimonials-grid .stars .ic { width: 12px; height: 12px; }
  .testimonials-grid blockquote { font-size: .84rem; line-height: 1.75; }
  .testimonials-grid figcaption { gap: 8px; padding-top: 10px; }
  .testimonials-grid .avatar { width: 32px; height: 32px; font-size: .8rem; }
  .testimonials-grid figcaption strong { font-size: .82rem; }
  .testimonials-grid figcaption small { font-size: .72rem; }
  /* Blog: two per row */
  .posts-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .posts-grid .post-body { padding: 12px; }
  .posts-grid .post-body h3 { font-size: .9rem; line-height: 1.5; margin-bottom: 4px; }
  .posts-grid .post-body p, .posts-grid .link-more { display: none; }
  .posts-grid .post-meta { font-size: .72rem; gap: 6px; margin-bottom: 6px; }
  .posts-grid .post-meta .tag { font-size: .66rem; }
  .posts-grid .post-media { aspect-ratio: 4 / 3; }
}

/* ---------- Banner image: size & shape options ---------- */
.portrait { width: min(var(--pw, 390px), 100%); }
.portrait.shape-tall { aspect-ratio: 3 / 4; }
.portrait.shape-square { aspect-ratio: 1; }
.portrait.shape-landscape { aspect-ratio: 4 / 3; }
.portrait.shape-circle { aspect-ratio: 1; }
.portrait.shape-circle > img, .portrait.shape-circle .orb { border-radius: 50%; }
.portrait.shape-circle .portrait-ring { border-radius: 50%; }
.portrait.shape-arch > img, .portrait.shape-arch .orb { border-radius: 999px 999px 28px 28px; }
.portrait.shape-arch .portrait-ring { border-radius: 999px 999px 36px 36px; }
@media (max-width: 900px) {
  .portrait { width: min(calc(var(--pw, 390px) * .68), 74%); }
  .portrait.shape-portrait { aspect-ratio: 1; }
  .portrait.shape-landscape { width: min(calc(var(--pw, 390px) * .8), 88%); }
}

/* ---------- Store: whole card opens the product ---------- */
.book-card { position: relative; }
.card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.book-card .btn { position: relative; z-index: 2; }
@media (max-width: 640px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .products-grid .book-cover { aspect-ratio: 3 / 4; }
  .products-grid .book-body { padding: 12px; }
  .products-grid .book-body h3 { font-size: .92rem; line-height: 1.5; margin-bottom: 4px; }
  .products-grid .book-body p { display: none; }
  .products-grid .book-foot { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 10px; }
  .products-grid .price strong { font-size: 1rem; }
  .products-grid .btn { justify-content: center; padding: .55em .6em; font-size: .78rem; }
  .products-grid .tag-float { top: 8px; inset-inline-start: 8px; font-size: .66rem; }
  .products-grid .ph span { font-size: .8rem; }
}

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-media { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 12px; }
.product-cover { aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); box-shadow: var(--shadow); }
.product-cover img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.product-thumbs button { width: 72px; height: 72px; flex-shrink: 0; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: none; cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s; }
.product-thumbs button.on, .product-thumbs button:hover { opacity: 1; border-color: var(--accent); }
.product-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 12px 0 10px; }
.product-info .lead { margin-bottom: 18px; }
.product-price { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 20px; }
.product-price strong { font-size: 2rem; font-weight: 700; }
.product-price del { color: var(--muted); font-size: 1.05rem; }
.product-price .save { font-size: .8rem; font-weight: 700; color: #16a34a; background: rgba(34, 197, 94, .12); padding: .2em .7em; border-radius: 999px; }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.product-actions .btn { flex: 1 1 200px; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 26px 0 0; }
.spec { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.spec small { display: block; color: var(--muted); font-size: .78rem; }
.spec strong { font-size: .98rem; }
.highlights { margin-top: 28px; padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.highlights h2 { font-size: 1.1rem; margin-bottom: 12px; }
.highlights ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.highlights li { display: flex; gap: 10px; align-items: flex-start; }
.highlights li .ic { flex-shrink: 0; margin-top: 4px; width: 20px; height: 20px; padding: 3px; border-radius: 50%; color: #fff; background: var(--accent); }
.product-details { margin-top: 56px; }
.product-details .video-frame { margin-bottom: 30px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; color: var(--muted); font-size: .86rem; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust .ic { color: var(--accent); width: 16px; height: 16px; }
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; gap: 26px; }
  .product-media { position: static; }
  .product-cover { aspect-ratio: 4 / 5; width: min(340px, 86%); margin-inline: auto; }
  .product-thumbs { justify-content: center; }
}

/* ---------- Admin bar (only when you are signed in) ---------- */
.admin-bar { position: sticky; top: 0; z-index: 80; display: flex; align-items: center; gap: 12px; padding: 8px max(16px, env(safe-area-inset-left)); background: #0f172a; color: #e2e8f0; font-size: .86rem; }
.admin-bar a { display: inline-flex; align-items: center; gap: 6px; padding: .35em .9em; border-radius: 999px; font-weight: 600; }
.admin-bar .ic { width: 15px; height: 15px; }
.ab-back { background: #2563eb; color: #fff; }
.ab-back:hover { background: #1d4ed8; }
.ab-edit { border: 1px solid rgba(255, 255, 255, .25); }
.ab-edit:hover { background: rgba(255, 255, 255, .1); }
.ab-note { color: #94a3b8; margin-inline-start: auto; }
.admin-bar + .announce + .site-header, .admin-bar + .site-header { top: 42px; }
@media (max-width: 640px) { .ab-note { display: none; } .admin-bar { gap: 8px; font-size: .8rem; } .admin-bar + .site-header { top: 40px; } }

.narrow-inner { max-width: 820px; margin-inline: auto; }

/* =========================================================
   Dark navy banner + footer (Settings > Appearance), rest light
   ========================================================= */
.dark-ends .hero, .dark-ends #stats, .dark-ends .site-footer, .dark-ends.page-home .site-header:not(.scrolled) {
  --text: #eef2fb; --muted: #a3b1cc; --surface: rgba(255, 255, 255, .045); --surface-2: rgba(255, 255, 255, .07);
  --border: rgba(148, 163, 184, .16); --border-strong: rgba(148, 163, 184, .28); --glass: rgba(12, 22, 48, .62);
  --star: rgba(255, 255, 255, .55); --bg: #0b1530; --bg-2: #0e1a38; --shadow: 0 24px 48px -28px rgba(0, 0, 0, .8);
  color: var(--text);
}
.dark-ends .hero { background: radial-gradient(1200px 600px at 80% -10%, #1a2c5c 0%, transparent 60%), linear-gradient(180deg, #0a1430 0%, #0c1834 100%); }
.dark-ends .hero-bg { -webkit-mask-image: none; mask-image: none; }
.dark-ends .hero .blob { opacity: .38; filter: blur(70px); }
.dark-ends .hero .b2 { opacity: .3; }
.dark-ends .hero-grid { opacity: .9; }
/* soft planet-like circles, as on the current site */
.dark-ends .hero::before, .dark-ends .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, rgba(59, 130, 246, .22), rgba(59, 130, 246, .06) 60%, transparent 72%); }
.dark-ends .hero::before { width: 360px; height: 360px; top: 12%; inset-inline-start: -90px; }
.dark-ends .hero::after { width: 560px; height: 560px; bottom: -260px; inset-inline-end: -140px; }
.dark-ends #stats { background: linear-gradient(180deg, #0c1834 0%, #0c1834 55%, var(--page-bg, #f6f8fc) 55%); padding-top: 0; }
.dark-ends #stats .stats-band { background: linear-gradient(180deg, #13224a, #0f1c3d); border-color: rgba(148, 163, 184, .2); box-shadow: 0 30px 60px -30px rgba(2, 6, 23, .7); }
.dark-ends #stats .stats-band::after { opacity: .25; }
.dark-ends .hero .pill { background: rgba(37, 99, 235, .14); border-color: rgba(96, 165, 250, .4); color: #cfe0ff; }
.dark-ends .hero .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.dark-ends .hero .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.dark-ends .hero .grad { background-image: linear-gradient(100deg, #60a5fa, #38bdf8 50%, #60a5fa); }
.dark-ends .hero-socials a { background: rgba(255, 255, 255, .05); }
.dark-ends .portrait > img, .dark-ends .portrait .orb { border-color: rgba(148, 163, 184, .25); }
.dark-ends .orb { background: radial-gradient(circle at 30% 25%, rgba(59, 130, 246, .35), #0f1c3d 70%); }
/* header sits on the dark banner at the top of the homepage */
.dark-ends.page-home .site-header:not(.scrolled) { background: transparent; }
.dark-ends.page-home .site-header:not(.scrolled) .nav a:not(.btn) { color: #c3cee3; }
.dark-ends.page-home .site-header:not(.scrolled) .nav a.active, .dark-ends.page-home .site-header:not(.scrolled) .nav a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .08); }
.dark-ends.page-home .site-header:not(.scrolled) .brand-name { color: #fff; }
.dark-ends.page-home .site-header:not(.scrolled) .brand-title { color: #60a5fa; }
.dark-ends.page-home .site-header:not(.scrolled) .icon-toggle { background: rgba(255, 255, 255, .06); color: #fff; }
/* footer */
.dark-ends .site-footer { background: radial-gradient(800px 400px at 15% 0%, rgba(37, 99, 235, .18), transparent 60%), #0a1430; border-top: 0; margin-top: 0; padding-top: 64px; position: relative; overflow: hidden; }
.dark-ends .site-footer::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(var(--star) 1px, transparent 1.2px), radial-gradient(var(--star) .7px, transparent 1px); background-size: 110px 110px, 61px 61px; background-position: 0 0, 30px 40px; }
.dark-ends .site-footer > * { position: relative; }
.dark-ends .site-footer .socials a { border-radius: 50%; }
.dark-ends .footer-bottom { border-top-color: rgba(148, 163, 184, .16); }
@media (max-width: 900px) {
  .dark-ends .hero::before { width: 220px; height: 220px; top: 30%; }
  .dark-ends .hero::after { width: 360px; height: 360px; }
  .dark-ends.page-home .nav a:not(.btn) { color: var(--muted); }
}
@media (max-width: 900px) {
  .dark-ends.page-home .site-header:not(.scrolled) .nav { --surface: #fff; --surface-2: #f2f5fb; --text: #0f172a; --muted: #5b6577; --border-strong: rgba(15, 23, 42, .14); color: #0f172a; }
  .dark-ends.page-home .site-header:not(.scrolled) .nav a:not(.btn) { color: #5b6577; }
  .dark-ends.page-home .site-header:not(.scrolled) .nav a.active { color: #0f172a; background: #f2f5fb; }
  .dark-ends.page-home .site-header:not(.scrolled) .menu-btn { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .25); color: #fff; }
}
/* numbers box overlaps the bottom of the dark banner (no seam) */
.dark-ends .hero { padding-bottom: 130px; }
.dark-ends #stats { background: transparent; position: relative; z-index: 2; }
.dark-ends.page-home #stats { margin-top: -96px; padding-top: 0; }
@media (max-width: 900px) {
  .dark-ends .hero { padding-bottom: 96px; }
  .dark-ends.page-home #stats { margin-top: -72px; padding-top: 0; }
}
/* other pages (e.g. About): the numbers box gets its own room, no overlap */
body:not(.page-home) #stats { padding: 0 0 60px; margin-top: -12px; }
body:not(.page-home) #stats + .section { padding-top: 12px; }
@media (max-width: 900px) { body:not(.page-home) #stats { padding-bottom: 40px; } }

/* Work cover + video on hover */
.work-media .hover-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.work-card.playing .hover-video { opacity: 1; }

/* Tighter rhythm between sections */
.section-head { margin-bottom: 34px; }
#stats + .section { padding-top: 48px; }
.page-header + .section { padding-top: 32px; }
.section-alt + .section, .section + .section-alt { }
@media (max-width: 640px) {
  .section-head { margin-bottom: 24px; }
  #stats + .section { padding-top: 36px; }
  .section-tight { padding: 16px 0; }
  .center { margin-top: 24px; }
}

[hidden], .btn[hidden] { display: none !important; }

/* Homepage works: "show more" button */
.more-wrap { margin-top: 34px; }
.btn-more { padding: .8em 2.2em; font-size: 1rem; }
@media (max-width: 640px) { .more-wrap { margin-top: 22px; } .btn-more { width: 100%; max-width: 320px; } }
