:root {
	--blue: #0046ad;
	--blue-dark: #003285;
	--blue-soft: #e7eefb;
	--black: #0a0a0a;
	--white: #ffffff;
	--gray-soft: #f3f5f9;
	--border: rgba(0,0,0,.12);
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	height: 100%;
	width: 100%;
	background: var(--white);
	color: var(--black);
	font-family: 'Quicksand', system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
	overflow: hidden;
}

::selection { background: rgba(0, 70, 173, .18); }

a { color: inherit; }

h1, h2, h3 {
	margin: 0;
	font-family: 'Inter', system-ui, sans-serif;
	font-weight: 900;
	letter-spacing: -0.02em;
	text-align: center;
}

/* ============== SCROLL CONTAINER ============== */
#scroll {
	position: relative;
	height: 100vh;
	height: 100dvh;
	width: 100vw;
	overflow-y: scroll;
	overflow-x: hidden;
	/* Mandatory snap between hero and about, then JS disables it as soon
	   as the user reaches the reel section so the rest scrolls freely. */
	scroll-snap-type: y mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	-webkit-overflow-scrolling: touch;
}
#scroll::-webkit-scrollbar { display: none; }

.page {
	position: relative;
	width: 100vw;
	padding: clamp(60px, 8vh, 110px) clamp(20px, 6vw, 80px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.card {
	width: 100%;
	max-width: 1000px;
}

/* ============== SECTION 1 — HERO (blue, white text, snap) ============== */
#hero,
#below-hero {
	scroll-snap-align: start;
	scroll-snap-stop: always;
}
#hero {
	background: var(--blue);
	color: var(--white);
	min-height: 100vh;
	min-height: 100dvh;
	text-align: center;
}
/* Wrapper around all post-hero sections so snap targets the whole
   block instead of forcing #about to 100vh. */
#below-hero {
	background: var(--white);
	color: var(--black);
}
#hero h1 {
	font-size: clamp(54px, 10vw, 140px);
	line-height: 0.95;
	text-transform: uppercase;
}
#hero h1 .name { display: block; }
#hero h1 .title {
	display: block;
	margin-top: 0.4em;
	font-size: clamp(18px, 2.4vw, 30px);
	font-weight: 700;
	letter-spacing: 0.04em;
	opacity: .8;
}
#hero p {
	margin: 1.6em auto 0;
	font-size: clamp(17px, 1.5vw, 21px);
	line-height: 1.45;
	max-width: 660px;
	font-weight: 500;
}

/* Scroll hint on hero */
.scroll-hint {
	position: absolute;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255,255,255,.7);
	font-size: 12px;
	letter-spacing: .25em;
	text-transform: uppercase;
	animation: bob 2.4s ease-in-out infinite;
	pointer-events: none;
}
@keyframes bob {
	0%, 100% { transform: translate(-50%, 0); opacity: .55; }
	50%      { transform: translate(-50%, 8px); opacity: 1; }
}

/* ============== OTHER SECTIONS — white bg, blue title, black text ============== */
#about, #reel, #assistant {
	background: var(--white);
	color: var(--black);
}
#about h2,
#reel h2,
#assistant h2,
#contact h2 {
	color: var(--blue);
	font-size: clamp(40px, 7vw, 96px);
	line-height: 0.95;
	text-transform: uppercase;
	margin-bottom: 0.6em;
}

/* ABOUT */
#about > * { width: 100%; max-width: 1080px; }
#about p {
	margin: 0 auto 1em;
	font-size: clamp(17px, 1.4vw, 21px);
	line-height: 1.55;
	max-width: 820px;
	font-weight: 400;
}
#about p b, #about p strong { color: var(--black); font-weight: 700; }

#about .expertise {
	margin-top: 4em;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.6em 2em;
}

#about .expertise b {
	display: block;
	font-family: 'Inter', sans-serif;
	font-weight: 800;
	color: var(--blue);
	margin-bottom: 0.3em;
	font-size: clamp(17px, 1.4vw, 21px);
	letter-spacing: 0;
	text-transform: uppercase;
}

#about .expertise span {
	font-size: clamp(16px, 1.3vw, 20px);
	color: var(--black);
	line-height: 1.5;
}

/* CLIENTS — slim marquee strip between About and Reel.
   Slow continuous scroll, grayscale logos, no hover pause. */
#clients {
	width: 100vw;
	padding: clamp(40px, 6vh, 80px) 0;
	background: var(--white);
}
.clients-title {
	font-family: 'Inter', sans-serif;
	font-weight: 800;
	font-size: clamp(14px, 1.2vw, 17px);
	letter-spacing: .14em;
	text-transform: uppercase;
	text-align: center;
	color: var(--blue);
	margin: 0 0 clamp(22px, 3vh, 40px);
	padding: 0 20px;
}
.clients-track {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
	        mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.clients-marquee {
	display: flex;
	align-items: center;
	gap: clamp(30px, 4vw, 60px);
	width: max-content;
	animation: clients-scroll 150s linear infinite;
}

.clients-marquee img {
	flex: 0 0 180px;
	width: 180px;
	height: 90px;
	object-fit: contain;
}

.apidom .clients-marquee img {
	filter: grayscale(1);
}

@keyframes clients-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}
@media (max-width: 600px) {
	.clients-marquee img {
		flex: 0 0 120px;
		width: 120px;
		height: 60px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.clients-marquee { animation: none; }
}

/* REEL */
#reel {
	padding: clamp(60px, 8vh, 110px) 0 0;
	text-align: center;
}
#reel h2 {
	margin: 0 0 clamp(24px, 4vh, 60px);
	padding: 0 clamp(20px, 6vw, 80px);
}
#reel .reel-frame {
	position: relative;
	width: min(85vh, 92vw);
	margin: 0 auto;
	aspect-ratio: 1 / 1;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 14px 30px rgba(0,70,173,.18);
	background: #000;
}
#reel video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
/* Portrait / square viewport (width ≤ height): the square video
   covers the full width edge-to-edge. */
@media (max-aspect-ratio: 1 / 1) {
	#reel .reel-frame {
		width: 100vw;
		max-width: 100vw;
		aspect-ratio: 1 / 1;
		margin: 0;
		border-radius: 0;
		box-shadow: none;
	}
}
#sound-toggle {
	position: absolute;
	right: 18px;
	bottom: 18px;
	z-index: 5;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,.3);
	background: rgba(0,0,0,.5);
	color: #fff;
	cursor: pointer;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	display: grid;
	place-items: center;
	transition: transform .2s ease, background .2s ease;
}
#sound-toggle:hover { transform: scale(1.06); background: rgba(0,0,0,.75); }
#sound-toggle svg { width: 22px; height: 22px; fill: #fff; }

/* ASSISTANT (inline section: title + subtitle + input + examples) */
#assistant {
	text-align: center;
}
.assistant-eyebrow { display: none; }   /* slot now empty — blob moved into the pill */

/* Compact blob sitting on the left of the input pill. */
.ai-blob.ai-blob-pill {
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	margin-left: 4px;
	box-shadow: 0 2px 8px rgba(15, 10, 50, .25);
}
.ai-blob.ai-blob-pill span { filter: blur(4px); }

/* Siri-style animated blob — base sphere with 4 drifting glow orbs inside,
   strictly clipped to a circle. No container rotation (avoids the diamond
   artifact when blurred children are clipped + rotated).
   Colors are HARD-CODED so the blob keeps its identity regardless of the
   per-host theme variables. */
.ai-blob {
	position: relative;
	display: inline-block;
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	border-radius: 50%;
	overflow: hidden;
	isolation: isolate;
	clip-path: circle(50% at 50% 50%);   /* enforce hard circular clip */
	/* Deep indigo sphere — universally "AI orb" feel. */
	background:
		radial-gradient(circle at 70% 25%, #c7d2fe 0%, transparent 45%),
		radial-gradient(circle at 30% 85%, #0c0a2e 0%, transparent 55%),
		#1e1b4b;
	box-shadow: 0 4px 14px rgba(15, 10, 50, .35);
}
.ai-blob span {
	position: absolute;
	border-radius: 50%;
	filter: blur(5px);
	mix-blend-mode: screen;
	will-change: transform;
}
/* Three accent orbs — fixed "AI palette" hues that swirl on top of the
   brand-tinted sphere. Cyan / magenta / violet feels universally "Siri". */
.ai-blob span:nth-child(1) {
	width: 80%;
	height: 80%;
	top: -10%;
	left: -10%;
	background: radial-gradient(circle, #22d3ee 0%, transparent 70%);   /* cyan */
	animation: blob-a 2.4s ease-in-out infinite;
}
.ai-blob span:nth-child(2) {
	width: 70%;
	height: 70%;
	top: 30%;
	left: 40%;
	background: radial-gradient(circle, #ec4899 0%, transparent 65%);   /* hot pink */
	animation: blob-b 2.9s ease-in-out infinite;
}
.ai-blob span:nth-child(3) {
	width: 65%;
	height: 65%;
	top: 50%;
	left: -10%;
	background: radial-gradient(circle, #a855f7 0%, transparent 70%);   /* violet */
	animation: blob-c 3.4s ease-in-out infinite;
}
.ai-blob span:nth-child(4) {
	width: 55%;
	height: 55%;
	top: -5%;
	left: 50%;
	background: radial-gradient(circle, #fbbf24 0%, transparent 70%);   /* amber */
	animation: blob-d 3.9s ease-in-out infinite;
}
@keyframes blob-a {
	0%, 100% { transform: translate(0, 0)        scale(1); }
	33%      { transform: translate(50%, 60%)    scale(1.3); }
	66%      { transform: translate(20%, 30%)    scale(.85); }
}
@keyframes blob-b {
	0%, 100% { transform: translate(0, 0)        scale(1); }
	33%      { transform: translate(-60%, -50%)  scale(1.25); }
	66%      { transform: translate(-20%, 30%)   scale(.9); }
}
@keyframes blob-c {
	0%, 100% { transform: translate(0, 0)        scale(1); }
	50%      { transform: translate(80%, -40%)   scale(1.35); }
}
@keyframes blob-d {
	0%, 100% { transform: translate(0, 0)        scale(1); }
	33%      { transform: translate(-40%, 60%)   scale(1.3); }
	66%      { transform: translate(20%, 30%)    scale(.8); }
}
@media (prefers-reduced-motion: reduce) {
	.ai-blob span { animation: none; }
}
#assistant .subtitle {
	font-size: clamp(15px, 1.3vw, 19px);
	margin: -.2em auto 2em;
	max-width: 720px;
	color: #333;
	font-weight: 500;
	line-height: 1.5;
}

/* Auto-scrolling marquee of example questions under the input. */
.example-questions {
	margin-top: 2em;
	width: 100%;
	max-width: 100vw;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
	        mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.example-questions-track {
	display: flex;
	gap: 12px;
	width: max-content;
	animation: example-scroll 60s linear infinite;
}
.example-questions:hover .example-questions-track {
	animation-play-state: paused;
}
@keyframes example-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}
.example-q {
	flex: 0 0 auto;
	padding: 10px 18px;
	background: var(--blue-soft);
	color: var(--blue);
	border: 0;
	border-radius: 999px;
	font-family: 'Quicksand', sans-serif;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background .2s ease, color .2s ease, transform .2s ease;
}
.example-q:hover {
	background: var(--blue);
	color: var(--white);
	transform: translateY(-2px);
}

.assistant-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;                       /* space between blob ↔ input ↔ button */
	background: var(--white);
	border: 2px solid var(--blue);
	border-radius: 999px;
	padding: 6px 6px 6px 8px;        /* the blob now provides the left lead */
	max-width: 640px;
	width: 100%;
	margin: 0 auto;
	box-shadow: 0 14px 30px rgba(0,70,173,.18);
	transition: box-shadow .2s ease;
}
.assistant-input-wrap:focus-within {
	box-shadow: 0 18px 36px rgba(0,70,173,.28), 0 0 0 4px rgba(0,70,173,.18);
}
#assistant-input,
#popup-input {
	flex: 1;
	background: transparent;
	border: 0;
	outline: 0;
	color: var(--black);
	font-family: 'Quicksand', sans-serif;
	font-size: clamp(16px, 1.4vw, 18px);
	font-weight: 500;
	padding: 14px 8px;
	min-width: 0;
}
#assistant-input::placeholder,
#popup-input::placeholder { color: rgba(0,0,0,.42); }
#assistant-send,
#popup-send {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--blue);
	color: var(--white);
	border: 0;
	cursor: pointer;
	display: grid;
	place-items: center;
	padding: 0;
	transition: transform .2s ease, opacity .2s ease, background .2s ease;
}
#assistant-send:hover,
#popup-send:hover { background: var(--blue-dark); transform: scale(1.05); }
#assistant-send:disabled,
#popup-send:disabled { opacity: .4; cursor: default; transform: none; }
#assistant-send svg,
#popup-send svg { width: 20px; height: 20px; }

/* ============== CONTACT (footer) — blue background, white text + form ============== */
#contact {
	background: var(--blue);
	color: var(--white);
	text-align: center;
}

#contact h2 {
	color: var(--white);
}

/* Sticker-style highlight on the contact title.
   - Each <strong> is on its own line, with its white background tilted via
     a ::before pseudo-element painted BEHIND every h2 text (including the
     surrounding white text), so words from the previous/next line overlap
     the sticker visually with their text-shadow showing.
   - h2 has isolation:isolate so the ::before's z-index:-1 stays within
     this stacking context. */
#contact h2 {
	isolation: isolate;
	text-shadow: 0 5px 22px var(--blue);
}
#contact h2 strong {
	display: block;
	width: fit-content;
	margin: .15em auto;
	position: relative;
	color: var(--blue);
	padding: 0 .35em;
	/* Strong sits on the white sticker — no shadow, keep the text crisp. */
	text-shadow: none;
}
#contact h2 strong::before {
	content: "";
	position: absolute;
	inset: -.15em -.1em;
	background: var(--white);
	border-radius: 14px;
	z-index: -1;                            /* behind every h2 text */
	transform-origin: 30% 100%;
	/* Initial state — collapsed and tilted further, ready to "pop". */
	transform: rotate(-14deg) scale(0);
	opacity: 0;
	transition:
		transform .65s cubic-bezier(.34, 1.6, .64, 1),
		opacity .25s ease;
}
/* When the contact section enters the viewport, the highlight pops in. */
#contact.in-view h2 strong::before {
	transform: rotate(-1deg) scale(1);
	opacity: 1;
}
/* Stagger the pop when multiple <strong> are present. */
#contact.in-view h2 strong:nth-of-type(2)::before { transition-delay: .35s; }
#contact.in-view h2 strong:nth-of-type(3)::before { transition-delay: .7s; }
#contact.in-view h2 strong:nth-of-type(4)::before { transition-delay: 1.05s; }

@media (prefers-reduced-motion: reduce) {
	#contact h2 strong::before {
		transition: none;
		transform: rotate(-3deg) scale(1);
		opacity: 1;
	}
}
#contact .links {
	margin: 1.6em 0 2.6em;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	gap: .9em 2em;
}
#contact a {
	color: var(--white);
	text-decoration: none;
	font-size: clamp(16px, 1.3vw, 20px);
	font-weight: 600;
	border-bottom: 2px solid rgba(255,255,255,.5);
	padding: 2px 0;
	transition: border-color .2s ease, opacity .2s ease;
}
#contact a:hover { border-bottom-color: var(--white); opacity: .9; }

/* Contact form — sits on blue, inputs in white. */
.contact-form {
	max-width: 640px;
	margin: 0 auto;
	display: grid;
	gap: 14px;
	text-align: left;
}
.contact-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
@media (max-width: 600px) {
	.contact-form-row { grid-template-columns: 1fr; }
}
.contact-form input,
.contact-form textarea {
	width: 100%;
	background: var(--white);
	border: 0;
	border-radius: 12px;
	padding: 14px 16px;
	font-family: 'Quicksand', sans-serif;
	font-size: 16px;
	font-weight: 500;
	color: var(--black);
	outline: 0;
	transition: box-shadow .2s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(0,0,0,.42); }
.contact-form input:focus,
.contact-form textarea:focus {
	box-shadow: 0 0 0 3px rgba(255,255,255,.45);
}
.contact-form textarea {
	min-height: 140px;
	resize: vertical;
	font-family: 'Quicksand', sans-serif;
}
.contact-form .honeypot {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.contact-form button {
	justify-self: end;
	background: var(--white);
	color: var(--blue);
	border: 0;
	border-radius: 999px;
	padding: 14px 28px;
	font-family: 'Inter', sans-serif;
	font-weight: 800;
	font-size: 15px;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform .2s ease, background .2s ease, color .2s ease;
}
.contact-form button:hover {
	transform: translateY(-2px);
	background: var(--blue-dark);
	color: var(--white);
}
.contact-form button:disabled {
	opacity: .5;
	cursor: default;
	transform: none;
}
.contact-status {
	min-height: 1.4em;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	color: rgba(255,255,255,.85);
}
.contact-status.error  { color: #ffd0d0; }
.contact-status.success { color: var(--white); }

/* ============== AI POPUP ============== */
#ai-popup {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: #fffc;
	display: none;
	align-items: stretch;
	justify-content: center;
	padding: clamp(20px, 4vh, 60px) clamp(16px, 4vw, 80px);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
}
#ai-popup.open { display: flex; }
.ai-popup-card {
	background: var(--white);
	width: min(900px, 100%);
	max-height: 100%;
	border: 8px solid var(--blue);
	border-radius: 22px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	position: relative;
}
.ai-popup-close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--blue);
	border: 0;
	color: var(--white);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background .2s ease, transform .2s ease;
}
.ai-popup-close:hover { background: var(--blue-dark); transform: scale(1.06); }
.ai-popup-scroll {
	flex: 1;
	overflow-y: auto;
	padding: 56px 28px 24px;
	/* Hide the native vertical scrollbar — it's a flat rectangle pinned to
	   the right edge that doesn't follow the card's rounded inner curve and
	   "cuts" the bottom-right corner. Wheel / touch scroll keeps working. */
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.ai-popup-scroll::-webkit-scrollbar { display: none; }
/* Question header — shown at the top of the popup so the visitor sees
   what's being answered while the AI thinks/streams. */
.ai-popup-question {
	font-family: 'Inter', sans-serif;
	font-weight: 800;
	font-size: clamp(18px, 1.6vw, 26px);
	line-height: 1.25;
	color: var(--blue);
	margin: 0 0 1.4em;
	text-align: left;
}
.ai-popup-question:empty { display: none; }

/* Loading indicator — the same Siri blob, bigger and centered.
   Animates in with a bouncy scale + fade, animates out the same way
   while collapsing its height so the response below slides up smoothly. */
.ai-popup-loader {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 50px 0 30px;
	overflow: hidden;
	max-height: 260px;
	transform-origin: 50% 50%;
	transition:
		opacity .35s ease,
		transform .55s cubic-bezier(.34, 1.6, .64, 1),
		max-height .45s ease,
		padding .45s ease;
}
.ai-popup-loader.is-hidden {
	opacity: 0;
	transform: scale(.2);
	max-height: 0;
	padding-top: 0;
	padding-bottom: 0;
	pointer-events: none;
}
.ai-blob.ai-blob-large {
	width: 140px;
	height: 140px;
	flex: 0 0 140px;
	box-shadow: 0 18px 48px rgba(0, 30, 90, .35);
}
.ai-blob.ai-blob-large span {
	filter: blur(14px);
}

.ai-popup-response {
	color: var(--black);
	font-size: clamp(16px, 1.2vw, 24px);
	line-height: 1.6;
	font-weight: 400;
}
.ai-popup-response p { margin: 0 0 1em; }
.ai-popup-response p:last-child { margin-bottom: 0; }
.ai-popup-response b, .ai-popup-response strong { font-weight: 700; }
.ai-popup-response a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.ai-popup-response ul, .ai-popup-response ol { margin: 0 0 1em; padding-left: 1.4em; }
.ai-popup-response li { margin: .25em 0; }

/* Single-row horizontal gallery — last image partially cut signals
   that more content is reachable by horizontal scrolling. */
.ai-popup-images {
	margin-top: 1.4em;
	display: flex;
	gap: 22px;
	overflow-x: auto;
	overflow-y: hidden;
	padding-bottom: 22px;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: var(--blue) var(--blue-soft);
}
.ai-popup-images::-webkit-scrollbar { height: 10px; }
.ai-popup-images::-webkit-scrollbar-track {
	background: var(--blue-soft);
	border-radius: 5px;
}
.ai-popup-images::-webkit-scrollbar-thumb {
	background: var(--blue);
	border-radius: 5px;
}
.ai-popup-images::-webkit-scrollbar-thumb:hover {
	background: var(--blue-dark);
}
.ai-popup-images figure {
	flex: 0 0 300px;
	width: 300px;
	height: 300px;
	margin: 0;
	border-radius: 14px;
	overflow: hidden;
	background: var(--gray-soft);
	position: relative;
	scroll-snap-align: start;
	opacity: 0;
	transform: translateY(8px) scale(.96);
	transition: opacity .5s ease, transform .5s ease;
}
.ai-popup-images figure.in { opacity: 1; transform: translateY(0) scale(1); }
.ai-popup-images img,
.ai-popup-images video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
@media (max-width: 600px) {
	.ai-popup-images figure {
		flex: 0 0 220px;
		width: 220px;
		height: 220px;
	}
}
.ai-popup-images figcaption {
	position: absolute;
	inset: auto 0 0 0;
	padding: 14px 12px 10px;
	font-size: 12px;
	color: var(--white);
	background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0));
	font-weight: 700;
}

.ai-popup-form {
	flex: 0 0 auto;
	padding: 16px clamp(18px, 2.5vw, 26px) 0;
	margin-bottom: 22px;
	background: var(--white);
}
/* Inside the popup the card already has a thick blue border, so the
   input is a softer pill — light blue background, no border, focus ring. */
.ai-popup-form .assistant-input-wrap {
	margin: 0;
	max-width: none;
	box-shadow: none;
	background: var(--blue-soft);
	border: 0;
	padding: 4px 4px 4px 6px;        /* blob provides the left lead */
	gap: 10px;
	transition: box-shadow .15s ease, background .15s ease;
}
.ai-popup-form .assistant-input-wrap:focus-within {
	background: var(--white);
	box-shadow: 0 0 0 2px var(--blue);
}
.ai-popup-form #popup-input { padding: 12px 8px; }
.ai-popup-form #popup-send { width: 42px; height: 42px; }

.typing-dots {
	display: inline-flex;
	gap: 6px;
	padding: 4px 0;
}
.typing-dots span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--blue);
	animation: typing-bob 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes typing-bob {
	0%, 60%, 100% { transform: translateY(0); opacity: .35; }
	30% { transform: translateY(-5px); opacity: 1; }
}

/* TOPBAR — plain bold text, no frame.
   White on the hero (blue bg), turns blue once we scroll past it. */
#topbar {
	position: fixed;
	top: 22px;
	right: 24px;
	z-index: 50;
	display: flex;
	gap: 14px;
}
#topbar button, #topbar a {
	background: transparent;
	border: 0;
	padding: 4px 6px;
	font-family: 'Inter', 'Quicksand', sans-serif;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .06em;
	text-decoration: none;
	color: var(--white);
	cursor: pointer;
	transition: color .35s ease, opacity .2s ease;
}
#topbar button:hover, #topbar a:hover { opacity: .75; }
body.scrolled #topbar button,
body.scrolled #topbar a { color: var(--blue); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.scroll-hint { animation: none; }
	.typing-dots span { animation: none; }
}

/* Mobile tweaks */
@media (max-width: 720px) {
	.page { padding: 60px 18px; }
	#about .expertise { gap: 1.4em; }
	.ai-popup-scroll { padding: 50px 16px 16px; }
	.ai-popup-form { padding: 12px; }
	#sound-toggle { width: 46px; height: 46px; right: 12px; bottom: 12px; }
	.scroll-hint { font-size: 10px; }
}
