/* ==========================================================================
   Samer Haddad — samerkhaddad.com
   Hand-written design system. No frameworks.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
	font-family: "Zodiak";
	src: url("../fonts/zodiak-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Zodiak";
	src: url("../fonts/zodiak-italic-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Satoshi";
	src: url("../fonts/satoshi-var.woff2") format("woff2");
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
	--bg-dark: #0a0c10;
	--bg-dark-2: #10141c;
	--panel-dark: #131823;
	--border-dark: rgba(255, 255, 255, 0.09);
	--text-dark-hi: #f2f3f5;
	--text-dark-lo: #a2abba;

	--bg-light: #f6f5f1;
	--panel-light: #ffffff;
	--border-light: #e6e2d8;
	--ink: #16181d;
	--ink-lo: #4f5665;

	--accent: #f6483b;
	--accent-strong: #d6392d;
	--accent-ink: #bc3428;
	--accent-glow: rgba(246, 72, 59, 0.16);

	--font-display: "Zodiak", "Iowan Old Style", Georgia, serif;
	--font-body: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
	--font-arabic: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif;

	--container: 1180px;
	--radius: 14px;
	--radius-lg: 20px;
	--header-h: 72px;
	--shadow-card: 0 10px 30px rgba(20, 24, 33, 0.07);
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
*,
*::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;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg-dark);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

h1, h2, h3, h4 {
	margin: 0 0 0.5em;
	line-height: 1.15;
	font-weight: 600;
}

p {
	margin: 0 0 1em;
}

a {
	color: var(--accent-ink);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection {
	background: var(--accent);
	color: #fff;
}

[lang="ar"] {
	font-family: var(--font-arabic);
}

/* Prevent iOS input focus zoom without touching the n8n widget */
@media (max-width: 768px) {
	input:not(.n8n-chat input):not([class*="n8n"]),
	textarea:not(.n8n-chat textarea):not([class*="n8n"]),
	select:not(.n8n-chat select):not([class*="n8n"]) {
		font-size: 16px;
	}
}

/* ---------- Utilities ---------- */
.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 clamp(20px, 4vw, 40px);
}

.section-dark {
	background: var(--bg-dark);
	color: var(--text-dark-hi);
}

.section-dark a {
	color: var(--text-dark-hi);
}

.section-light {
	background: var(--bg-light);
	color: var(--ink);
}

.eyebrow {
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 18px;
}

.section-light .eyebrow {
	color: var(--accent-ink);
}

.section-title {
	font-family: var(--font-display);
	font-size: clamp(1.9rem, 3.4vw, 2.9rem);
	font-weight: 560;
	letter-spacing: -0.015em;
	max-width: 21ch;
	margin-bottom: 0.9em;
	text-wrap: balance;
}

.section-lead {
	font-size: clamp(1.02rem, 1.4vw, 1.15rem);
	color: var(--text-dark-lo);
	max-width: 64ch;
	margin-bottom: 2.4em;
}

.icon {
	width: 18px;
	height: 18px;
	flex: none;
}

.skip-link {
	position: absolute;
	top: -48px;
	left: 16px;
	z-index: 200;
	background: var(--accent-strong);
	color: #fff;
	padding: 10px 18px;
	border-radius: 8px;
	transition: top 0.2s var(--ease);
}

.skip-link:focus {
	top: 12px;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 13px 22px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn:hover {
	text-decoration: none;
	transform: translateY(-1px);
}

.btn-solid {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #d63a2d 0%, var(--accent) 55%, #ff6a4e 130%);
	color: #fff;
}

.btn-solid::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -80%;
	width: 50%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
	transform: skewX(-20deg);
	transition: left 0.45s var(--ease);
}

.btn-solid:hover {
	box-shadow: 0 10px 30px rgba(246, 72, 59, 0.35);
}

.btn-solid:hover::after {
	left: 130%;
}

.btn-ghost {
	background: transparent;
	color: inherit;
	border-color: rgba(255, 255, 255, 0.28);
}

.section-light .btn-ghost,
.faq .btn-ghost {
	border-color: rgba(22, 24, 29, 0.25);
}

.btn-ghost:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.btn-small {
	padding: 9px 16px;
	font-size: 13.5px;
}

.btn-large {
	padding: 16px 28px;
	font-size: 16px;
}

.link-button {
	background: none;
	border: none;
	padding: 0;
	font: inherit;
	color: var(--accent);
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.text-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--text-dark-hi);
}

.text-arrow:hover {
	color: var(--accent);
	text-decoration: none;
}

.text-arrow .icon {
	transition: transform 0.18s var(--ease);
}

.text-arrow:hover .icon {
	transform: translateX(4px);
}

/* Chips */
.fact-chips,
.impact-chips,
.hero-proof,
.lab-stack {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 0;
	margin: 0;
}

.fact-chips li {
	font-size: 13.5px;
	font-weight: 500;
	padding: 7px 14px;
	border-radius: 999px;
	border: 1px solid var(--border-light);
	background: var(--panel-light);
	color: var(--ink-lo);
}

.fact-chips-dark li {
	background: rgba(255, 255, 255, 0.04);
	border-color: var(--border-dark);
	color: var(--text-dark-lo);
}

/* Pulse dot */
.pulse-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #3ecf72;
	margin-right: 9px;
	box-shadow: 0 0 0 0 rgba(62, 207, 114, 0.55);
	animation: pulse 2.2s infinite;
	vertical-align: 1px;
}

@keyframes pulse {
	0% { box-shadow: 0 0 0 0 rgba(62, 207, 114, 0.55); }
	70% { box-shadow: 0 0 0 9px rgba(62, 207, 114, 0); }
	100% { box-shadow: 0 0 0 0 rgba(62, 207, 114, 0); }
}

/* Reveal on scroll */
.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

html:not(.js) .reveal {
	opacity: 1;
	transform: none;
}

/* ---------- Header ---------- */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	height: var(--header-h);
	display: flex;
	align-items: center;
	color: var(--text-dark-hi);
}

/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   turn it into the containing block for the fixed mobile nav panel. */
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: transparent;
	transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.scrolled::before {
	background: rgba(10, 12, 16, 0.82);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: 0 1px 0 var(--border-dark);
}

.header-inner {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.brand {
	display: inline-flex;
	align-items: center;
	color: var(--text-dark-hi);
}

.brand:hover {
	text-decoration: none;
}

.brand-mark {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
	color: #fff;
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.02em;
	transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(246, 72, 59, 0.35);
}

.site-nav ul {
	list-style: none;
	display: flex;
	align-items: center;
	gap: clamp(14px, 2vw, 28px);
	margin: 0;
	padding: 0;
}

.site-nav a {
	color: var(--text-dark-lo);
	font-size: 14.5px;
	font-weight: 500;
	transition: color 0.15s var(--ease);
}

.site-nav a:hover {
	color: var(--text-dark-hi);
	text-decoration: none;
}

.site-nav .nav-cta a {
	color: #fff;
}

.nav-toggle {
	display: none;
	position: relative;
	width: 44px;
	height: 44px;
	border: 1px solid var(--border-dark);
	border-radius: 10px;
	background: rgba(10, 12, 16, 0.6);
	cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
	content: "";
	position: absolute;
	left: 50%;
	width: 20px;
	height: 2px;
	background: var(--text-dark-hi);
	border-radius: 2px;
	transform: translateX(-50%);
	transition: transform 0.22s var(--ease), opacity 0.22s var(--ease), top 0.22s var(--ease);
}

.nav-toggle-bar {
	top: 21px;
}

.nav-toggle-bar::before {
	top: -7px;
}

.nav-toggle-bar::after {
	top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
	top: 0;
	transform: translateX(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
	top: 0;
	transform: translateX(-50%) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	align-items: center;
	overflow: hidden;
	padding: calc(var(--header-h) + 26px) 0 74px;
}

.hero-glow {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}

.hero-glow .aurora {
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
	will-change: transform;
}

.aurora-a {
	width: 52vw;
	height: 42vw;
	right: -8vw;
	top: -6vw;
	background: radial-gradient(closest-side, rgba(246, 72, 59, 0.2), transparent 70%);
	animation: drift-a 22s ease-in-out infinite alternate;
}

.aurora-b {
	width: 44vw;
	height: 38vw;
	left: -12vw;
	bottom: -14vw;
	background: radial-gradient(closest-side, rgba(64, 96, 168, 0.17), transparent 70%);
	animation: drift-b 26s ease-in-out infinite alternate;
}

.aurora-c {
	width: 26vw;
	height: 24vw;
	left: 34vw;
	top: 52%;
	background: radial-gradient(closest-side, rgba(255, 140, 90, 0.08), transparent 70%);
	animation: drift-a 30s ease-in-out infinite alternate-reverse;
}

@keyframes drift-a {
	to { transform: translate(-6vw, 5vh) scale(1.12); }
}

@keyframes drift-b {
	to { transform: translate(5vw, -5vh) scale(1.08); }
}

.hero-glow::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.4px);
	background-size: 34px 34px;
	mask-image: linear-gradient(180deg, rgba(0,0,0,0.85), transparent 72%);
	-webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.85), transparent 72%);
}

/* Masthead grid: the name spans the full width and the portrait overlaps it
   (portrait shares the title's grid row, one z-level up — magazine-cover cut). */
.hero-shell {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(240px, clamp(250px, 27vw, 386px));
	grid-template-rows: auto auto 1fr;
	column-gap: clamp(24px, 4.5vw, 64px);
	width: 100%;
}

.hero-shell > .eyebrow {
	grid-column: 1 / -1;
	grid-row: 1;
}

.hero-title {
	grid-column: 1 / -1;
	grid-row: 2;
	position: relative;
	z-index: 2;
	font-family: var(--font-display);
	font-size: clamp(3.1rem, 8.6vw, 6.6rem);
	font-weight: 620;
	letter-spacing: -0.025em;
	line-height: 0.98;
	margin-bottom: 22px;
}

.hero-copy {
	grid-column: 1;
	grid-row: 3;
}

.hero-role {
	display: block;
	max-width: 46ch;
	font-family: var(--font-mono);
	font-size: clamp(11.5px, 1.05vw, 13px);
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-dark-lo);
	margin-top: 18px;
	text-wrap: balance;
}

.hero-headline {
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 2.4vw, 1.9rem);
	font-weight: 540;
	line-height: 1.3;
	color: var(--text-dark-hi);
	margin-bottom: 16px;
}

/* Shiny gradient text — a soft highlight sweeps across the gradient (ReactBits "Shiny Text" pattern) */
.grad-text {
	font-style: italic;
	background: linear-gradient(100deg, #ff8a5c 0%, var(--accent) 32%, #ffc9a8 50%, var(--accent) 68%, #ff6d55 100%);
	background-size: 220% 100%;
	background-position: 110% 0;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: text-shine 7s var(--ease) infinite;
}

@keyframes text-shine {
	0%, 55% { background-position: 110% 0; }
	85%, 100% { background-position: -110% 0; }
}

.hero-sub {
	color: var(--text-dark-lo);
	max-width: 56ch;
	margin-bottom: 28px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 18px;
}

.hero-agent-note {
	font-size: 13.5px;
	color: var(--text-dark-lo);
	margin-bottom: 30px;
}

.hero-proof li {
	font-family: var(--font-mono);
	font-size: 12.5px;
	letter-spacing: 0.06em;
	padding: 8px 14px;
	border: 1px solid var(--border-dark);
	border-radius: 999px;
	color: var(--text-dark-lo);
	background: rgba(255, 255, 255, 0.03);
}

.hero-portrait {
	position: relative;
	grid-column: 2;
	grid-row: 2 / span 2;
	z-index: 1;
	align-self: start;
	justify-self: end;
	max-width: 386px;
	width: 100%;
}

/* Vertical mono caption along the portrait's right edge */
.portrait-caption {
	position: absolute;
	right: 8px;
	top: 6%;
	z-index: 2;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--text-dark-lo);
	opacity: 0.8;
}

.hero-portrait::before {
	content: "";
	position: absolute;
	inset: 8% -6% auto auto;
	width: 78%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(closest-side, var(--accent-glow), transparent);
	filter: blur(10px);
}

.hero-portrait img {
	position: relative;
	width: 100%;
	mask-image: radial-gradient(92% 88% at 50% 32%, #000 52%, transparent 86%);
	-webkit-mask-image: radial-gradient(92% 88% at 50% 32%, #000 52%, transparent 86%);
	filter: grayscale(1) contrast(1.04);
}

/* ---------- Impact ---------- */
.impact {
	padding: clamp(70px, 9vw, 120px) 0;
	background:
		linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
}

.impact-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 46px 0 30px;
	border-top: 1px solid var(--border-dark);
}

.impact-card {
	padding: 30px 26px 24px 26px;
	border-left: 1px solid var(--border-dark);
}

.impact-card:first-child {
	border-left: 0;
	padding-left: 0;
}

.impact-value {
	font-family: var(--font-display);
	font-size: clamp(2.4rem, 4vw, 3.6rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--text-dark-hi);
	margin: 0 0 10px;
	font-variant-numeric: tabular-nums;
}

.impact-value::after {
	content: "";
	display: block;
	width: 30px;
	height: 3px;
	margin-top: 12px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--accent), #ff8a5c);
}

.impact-label {
	font-size: 14px;
	color: var(--text-dark-lo);
	margin: 0;
}

.impact-chips li {
	font-family: var(--font-mono);
	font-size: 12.5px;
	letter-spacing: 0.04em;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--border-dark);
	color: var(--text-dark-lo);
}

/* ---------- About ---------- */
.about {
	padding: clamp(80px, 10vw, 130px) 0 clamp(50px, 6vw, 80px);
}

.about-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
	gap: clamp(30px, 5vw, 70px);
	align-items: start;
}

.about-media {
	position: sticky;
	top: calc(var(--header-h) + 24px);
}

.about-media img {
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
}

.about-copy p {
	color: var(--ink-lo);
	max-width: 62ch;
}

.about-copy .fact-chips {
	margin: 22px 0 18px;
}

.about-links {
	font-size: 15px;
}

.credentials {
	margin-top: clamp(40px, 6vw, 70px);
	border-top: 1px solid var(--border-light);
	padding-top: clamp(30px, 4vw, 48px);
}

.credentials-title {
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ink-lo);
	margin-bottom: 26px;
}

.credentials-row {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 18px;
}

.credentials-row li {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--panel-light);
	border: 1px solid var(--border-light);
	border-radius: var(--radius);
	padding: 16px;
}

.credentials-row img {
	width: 52px;
	height: 52px;
	object-fit: contain;
	flex: none;
}

.credentials-row span {
	font-weight: 600;
	font-size: 14.5px;
	line-height: 1.3;
}

.credentials-row em {
	display: block;
	font-style: normal;
	font-weight: 400;
	font-size: 12.5px;
	color: var(--ink-lo);
}

/* ---------- Experience ---------- */
.experience {
	padding: clamp(50px, 6vw, 80px) 0 clamp(80px, 10vw, 120px);
}

.timeline {
	list-style: none;
	margin: 44px 0 0;
	padding: 0;
	position: relative;
}

.timeline::before {
	content: "";
	position: absolute;
	left: 7px;
	top: 6px;
	bottom: 6px;
	width: 2px;
	background: linear-gradient(180deg, var(--accent) 0%, var(--border-light) 100%);
}

.timeline-item {
	position: relative;
	padding: 0 0 40px 44px;
	max-width: 760px;
}

.timeline-item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--bg-light);
	border: 3px solid var(--accent-strong);
}

.timeline-period {
	font-family: var(--font-mono);
	font-size: 12.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent-ink);
	margin-bottom: 6px;
}

.timeline-item h3 {
	font-size: 1.25rem;
	margin-bottom: 2px;
}

.timeline-org {
	font-weight: 600;
	font-size: 14.5px;
	color: var(--ink-lo);
	margin-bottom: 10px;
}

.timeline-item > p:last-child {
	color: var(--ink-lo);
	margin: 0;
}

.education-note {
	margin-top: 10px;
	max-width: 760px;
	background: var(--panel-light);
	border: 1px solid var(--border-light);
	border-left: 3px solid var(--accent-strong);
	border-radius: var(--radius);
	padding: 22px 26px;
}

.education-note h3 {
	font-size: 1.02rem;
	margin-bottom: 6px;
}

.education-note p {
	margin: 0;
	color: var(--ink-lo);
	font-size: 15px;
}

/* ---------- Selected wins ---------- */
.wins {
	padding: clamp(10px, 2vw, 30px) 0 clamp(80px, 10vw, 120px);
}

.wins-grid {
	list-style: none;
	counter-reset: win;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 40px 0 0;
	padding: 0;
}

.win-card {
	counter-increment: win;
	position: relative;
	overflow: hidden;
	background: var(--panel-light);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-lg);
	padding: 26px 26px 24px;
	box-shadow: var(--shadow-card);
}

.win-card::after {
	content: "W·0" counter(win);
	position: absolute;
	top: 22px;
	right: 24px;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	color: var(--accent-ink);
	opacity: 0.75;
}

.win-stat {
	font-family: var(--font-display);
	font-size: clamp(2.2rem, 3.2vw, 2.9rem);
	font-weight: 620;
	letter-spacing: -0.02em;
	color: var(--ink);
	margin: 0 0 12px;
	font-variant-numeric: tabular-nums;
}

.win-stat::after {
	content: "";
	display: block;
	width: 30px;
	height: 3px;
	margin-top: 12px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--accent), #ff8a5c);
}

.win-card h3 {
	font-size: 1.08rem;
	margin-bottom: 8px;
}

.win-card p:last-child {
	color: var(--ink-lo);
	font-size: 15px;
	margin: 0;
}

/* ---------- AI Lab ---------- */
.ai-lab {
	position: relative;
	padding: clamp(80px, 10vw, 130px) 0;
	overflow: hidden;
}

.lab-glow {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(46% 34% at 88% 6%, var(--accent-glow) 0%, transparent 70%),
		radial-gradient(40% 30% at 4% 60%, rgba(70, 100, 160, 0.1) 0%, transparent 70%);
}

.lab-glow::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1.4px);
	background-size: 34px 34px;
	mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent 40%, transparent 70%, rgba(0,0,0,0.6));
	-webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent 40%, transparent 70%, rgba(0,0,0,0.6));
}

.ai-lab .container {
	position: relative;
}

.lab-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin-bottom: 30px;
}

.lab-card {
	position: relative;
	overflow: hidden;
	background:
		linear-gradient(var(--panel-dark), var(--panel-dark)) padding-box,
		linear-gradient(155deg, rgba(246, 72, 59, 0.35), rgba(255, 255, 255, 0.07) 38%, rgba(255, 255, 255, 0.05)) border-box;
	border: 1px solid transparent;
	border-radius: var(--radius-lg);
	padding: 28px 26px;
	transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.lab-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.lab-card-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: var(--accent-glow);
	color: var(--accent);
	margin-bottom: 18px;
}

.lab-card-icon svg {
	width: 24px;
	height: 24px;
}

.lab-card h3 {
	font-size: 1.12rem;
	margin-bottom: 8px;
}

.lab-card p {
	color: var(--text-dark-lo);
	font-size: 15px;
	margin: 0;
}

.lab-stack {
	margin-bottom: clamp(50px, 7vw, 80px);
}

.lab-stack li {
	font-family: var(--font-mono);
	font-size: 12.5px;
	letter-spacing: 0.04em;
	color: var(--text-dark-lo);
	border: 1px dashed rgba(255, 255, 255, 0.18);
	border-radius: 8px;
	padding: 7px 13px;
}

/* Education hub */
.hub {
	margin-bottom: clamp(50px, 7vw, 80px);
}

.hub-title {
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 570;
	margin-bottom: 8px;
}

.hub-sub {
	color: var(--text-dark-lo);
	margin-bottom: 26px;
	max-width: 62ch;
}

.hub-sub a {
	color: var(--accent);
}

.hub-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.yt-slot {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--border-dark);
	background: linear-gradient(135deg, #171c28 0%, #0d1017 60%, #1a1114 100%);
}

.yt-slot iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Arabic channel — designed link card (uploads playlists can't be embedded reliably) */
.yt-channel {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 10px;
	aspect-ratio: 16 / 9;
	padding: 26px 28px;
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--border-dark);
	background: linear-gradient(135deg, #171c28 0%, #0d1017 60%, #1a1114 100%);
	color: var(--text-dark-hi);
	transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.yt-channel:hover {
	text-decoration: none;
	border-color: rgba(246, 72, 59, 0.45);
	transform: translateY(-3px);
}

.yt-channel-mark {
	position: absolute;
	top: -14%;
	right: 4%;
	font-family: var(--font-arabic);
	font-size: clamp(7rem, 12vw, 10rem);
	font-weight: 700;
	line-height: 1.2;
	background: linear-gradient(160deg, rgba(246, 72, 59, 0.5), rgba(255, 138, 92, 0.12) 70%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	pointer-events: none;
	transition: transform 0.4s var(--ease);
}

.yt-channel:hover .yt-channel-mark {
	transform: scale(1.04);
}

.yt-channel-name {
	font-size: 14px;
	color: var(--text-dark-lo);
	line-height: 1.5;
	max-width: 30ch;
}

.yt-channel-name strong {
	display: block;
	font-size: 17px;
	color: var(--text-dark-hi);
	font-weight: 600;
}

.yt-channel-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 15px;
	color: var(--accent);
}

.yt-channel-cta .icon {
	transition: transform 0.18s var(--ease);
}

.yt-channel:hover .yt-channel-cta .icon {
	transform: translateX(4px);
}

.hub-link {
	margin: 12px 2px 0;
	font-size: 14px;
	color: var(--text-dark-lo);
}

.hub-link a {
	color: var(--accent);
	font-weight: 600;
}

/* Insights (live blog feed) */
.insights {
	margin-bottom: clamp(50px, 7vw, 80px);
}

.insights-head .pulse-dot {
	margin-right: 12px;
}

.insights-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	margin-bottom: 22px;
}

.insight-card {
	display: flex;
	flex-direction: column;
	background: var(--panel-dark);
	border: 1px solid var(--border-dark);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.insight-card:hover {
	border-color: rgba(246, 72, 59, 0.45);
	transform: translateY(-3px);
}

.insight-thumb {
	aspect-ratio: 16 / 9;
	background: #0d1017;
	overflow: hidden;
	display: block;
}

.insight-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s var(--ease);
}

.insight-card:hover .insight-thumb img {
	transform: scale(1.05);
}

.insight-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px 22px 22px;
}

.insight-meta {
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-dark-lo);
	margin-bottom: 10px;
}

.insight-body[dir="rtl"] .insight-meta {
	font-family: var(--font-mono);
	direction: ltr;
	text-align: right;
}

.insight-title {
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 8px;
}

.insight-title a {
	color: var(--text-dark-hi);
}

.insight-title a:hover {
	color: var(--accent);
	text-decoration: none;
}

.insight-excerpt {
	font-size: 14px;
	color: var(--text-dark-lo);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.insight-static {
	grid-column: 1 / -1;
	border: 1px dashed var(--border-dark);
	border-radius: var(--radius-lg);
	padding: 30px;
	text-align: center;
	color: var(--text-dark-lo);
}

.insight-static p {
	margin: 0;
}

.insight-static a {
	color: var(--accent);
	font-weight: 600;
}

.insights-more {
	margin: 0;
}

.skeleton {
	border-radius: var(--radius-lg);
	border: 1px solid var(--border-dark);
	background: linear-gradient(100deg, var(--panel-dark) 40%, #1a2030 50%, var(--panel-dark) 60%);
	background-size: 200% 100%;
	animation: shimmer 1.4s infinite;
	min-height: 280px;
}

@keyframes shimmer {
	to { background-position: -200% 0; }
}

/* Lab footer link cards */
.lab-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.lab-link-card {
	position: relative;
	overflow: hidden;
	background:
		linear-gradient(160deg, var(--panel-dark) 0%, #161320 100%) padding-box,
		linear-gradient(155deg, rgba(246, 72, 59, 0.3), rgba(255, 255, 255, 0.07) 45%) border-box;
	border: 1px solid transparent;
	border-radius: var(--radius-lg);
	padding: 30px 28px;
}

.lab-link-card h3 {
	font-family: var(--font-display);
	font-size: 1.3rem;
	font-weight: 570;
}

.lab-link-card p {
	color: var(--text-dark-lo);
	font-size: 15px;
	margin-bottom: 20px;
	max-width: 44ch;
}

/* ---------- Testimonials ---------- */
.testimonials {
	padding: clamp(80px, 10vw, 130px) 0 0;
}

.quote-rotator {
	position: relative;
	max-width: 820px;
	margin-top: 30px;
}

.quote-item {
	margin: 0;
	display: none;
}

.quote-item.is-active {
	display: block;
	animation: quote-in 0.5s var(--ease);
}

html:not(.js) .quote-item {
	display: block;
	margin-bottom: 34px;
}

@keyframes quote-in {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: none; }
}

.quote-item blockquote {
	margin: 0 0 22px;
	font-family: var(--font-display);
	font-style: italic;
	font-size: clamp(1.15rem, 2vw, 1.45rem);
	font-weight: 480;
	line-height: 1.55;
	color: var(--ink);
}

.quote-item blockquote::before {
	content: "“";
	display: block;
	font-size: 3.2rem;
	line-height: 0.6;
	color: var(--accent);
	margin-bottom: 14px;
}

.quote-item figcaption strong {
	display: block;
	font-size: 15.5px;
}

.quote-item figcaption span {
	font-size: 13.5px;
	color: var(--ink-lo);
}

.quote-controls {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 30px;
}

html:not(.js) .quote-controls {
	display: none;
}

.quote-btn {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--border-light);
	background: var(--panel-light);
	color: var(--ink);
	cursor: pointer;
	transition: border-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}

.quote-btn:hover {
	border-color: var(--accent);
	color: var(--accent);
	transform: translateY(-1px);
}

.quote-counter {
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.08em;
	color: var(--ink-lo);
	min-width: 56px;
	text-align: center;
}

.quote-source {
	margin: 18px 0 0;
	font-size: 13.5px;
	color: var(--ink-lo);
}

.quote-source a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	color: var(--accent-ink);
}

.quote-source .icon {
	width: 14px;
	height: 14px;
}

.quote-source-note {
	font-size: 12px;
	opacity: 0.75;
}

/* Beneficiaries marquee */
.beneficiaries {
	margin-top: clamp(50px, 7vw, 80px);
	padding: 34px 0 44px;
	border-top: 1px solid var(--border-light);
}

.beneficiaries-title {
	text-align: center;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ink-lo);
	margin-bottom: 28px;
}

.marquee {
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
	list-style: none;
	display: flex;
	align-items: center;
	gap: clamp(40px, 6vw, 80px);
	margin: 0;
	padding: 0;
	width: max-content;
}

.marquee.is-animated .marquee-track {
	animation: marquee 38s linear infinite;
}

.marquee.is-animated:hover .marquee-track {
	animation-play-state: paused;
}

@keyframes marquee {
	to { transform: translateX(-50%); }
}

.marquee-track img {
	height: 52px;
	width: auto;
	opacity: 0.75;
	filter: grayscale(1);
	transition: opacity 0.2s var(--ease), filter 0.2s var(--ease);
}

.marquee-track img:hover {
	opacity: 1;
	filter: none;
}

html:not(.js) .marquee-track {
	flex-wrap: wrap;
	justify-content: center;
	width: auto;
}

/* ---------- FAQ ---------- */
.faq {
	padding: clamp(80px, 10vw, 130px) 0;
	background: linear-gradient(180deg, var(--bg-light) 0%, #efede7 100%);
}

.faq-container {
	max-width: 860px;
}

.faq-accordion {
	margin-top: 34px;
}

.faq-card {
	background: var(--panel-light);
	border: 1px solid var(--border-light);
	border-radius: var(--radius);
	margin-bottom: 12px;
	overflow: hidden;
	transition: border-color 0.2s var(--ease);
}

.faq-card:has(.faq-toggle[aria-expanded="true"]) {
	border-color: rgba(214, 57, 45, 0.4);
}

.faq-question {
	margin: 0;
}

.faq-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	width: 100%;
	padding: 18px 22px;
	background: none;
	border: 0;
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 600;
	color: var(--ink);
	text-align: left;
	cursor: pointer;
}

.faq-icon {
	position: relative;
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--accent-glow);
}

.faq-icon::before,
.faq-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 2px;
	background: var(--accent-strong);
	transform: translate(-50%, -50%);
	transition: transform 0.2s var(--ease);
}

.faq-icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.faq-toggle[aria-expanded="true"] .faq-icon::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

.faq-content {
	padding: 0 22px 20px;
}

.faq-content p {
	margin: 0;
	color: var(--ink-lo);
	font-size: 15px;
}

.faq-content[hidden] {
	display: none;
}

.faq-card[hidden] {
	display: none;
}

.faq-more {
	margin-top: 14px;
}

/* ---------- Contact ---------- */
.contact {
	position: relative;
	padding: clamp(90px, 12vw, 150px) 0;
	overflow: hidden;
}

.contact-glow {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(50% 55% at 50% 100%, var(--accent-glow) 0%, transparent 72%);
}

.contact-inner {
	position: relative;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.contact-title {
	font-family: var(--font-display);
	font-size: clamp(2.6rem, 6vw, 4.4rem);
	font-weight: 580;
	letter-spacing: -0.02em;
	margin-bottom: 18px;
}

.contact-lead {
	color: var(--text-dark-lo);
	max-width: 54ch;
	margin-bottom: 34px;
}

.contact-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin-bottom: 26px;
}

.contact .fact-chips {
	justify-content: center;
	margin-bottom: 26px;
}

.contact-agent-note {
	font-size: 14px;
	color: var(--text-dark-lo);
	margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
	background: var(--bg-dark);
	color: var(--text-dark-lo);
	border-top: 1px solid var(--border-dark);
	padding: 34px 0 30px;
	font-size: 14px;
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.footer-inner p {
	margin: 0;
}

.footer-inner a {
	color: var(--text-dark-hi);
}

.footer-links {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin: 0;
	padding: 0;
}

.footer-links a {
	color: var(--text-dark-lo);
}

.footer-links a:hover {
	color: var(--text-dark-hi);
}

.footer-note {
	margin-top: 18px;
	padding-top: 16px;
}

.footer-note p {
	margin: 0;
	border-top: 1px solid var(--border-dark);
	padding-top: 16px;
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: 0.05em;
	color: rgba(162, 171, 186, 0.7);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.impact-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.credentials-row {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.wins-grid {
		grid-template-columns: 1fr;
		max-width: 640px;
	}

	.lab-cards {
		grid-template-columns: 1fr;
		max-width: 640px;
	}

	.insights-grid {
		grid-template-columns: 1fr;
		max-width: 560px;
	}

	.hub-grid,
	.lab-links {
		grid-template-columns: 1fr;
		max-width: 640px;
	}
}

@media (max-width: 880px) {
	.site-nav {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		width: min(320px, 84vw);
		background: rgba(10, 12, 16, 0.97);
		-webkit-backdrop-filter: blur(18px);
		backdrop-filter: blur(18px);
		border-left: 1px solid var(--border-dark);
		padding: calc(var(--header-h) + 24px) 30px 30px;
		transform: translateX(100%);
		transition: transform 0.28s var(--ease);
		visibility: hidden;
	}

	body.nav-open .site-nav {
		transform: none;
		visibility: visible;
	}

	.site-nav ul {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	.site-nav a {
		font-size: 18px;
	}

	.nav-toggle {
		display: block;
		z-index: 120;
	}

	.hero {
		padding-top: calc(var(--header-h) + 20px);
		min-height: auto;
	}

	.hero-shell {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto 1fr;
	}

	.hero-title {
		grid-column: 1;
		margin-bottom: 14px;
	}

	.hero-portrait {
		grid-column: 1;
		grid-row: 3;
		justify-self: center;
		max-width: 290px;
		margin-bottom: 16px;
	}

	.hero-copy {
		grid-column: 1;
		grid-row: 4;
	}

	.portrait-caption {
		display: none;
	}

	.about-grid {
		grid-template-columns: 1fr;
	}

	.about-media {
		position: static;
		max-width: 420px;
	}
}

@media (max-width: 560px) {
	body {
		font-size: 16px;
	}

	.impact-grid {
		grid-template-columns: 1fr;
	}

	.credentials-row {
		grid-template-columns: 1fr 1fr;
	}

	.credentials-row li:last-child {
		grid-column: 1 / -1;
	}

	.hero-actions .btn {
		width: 100%;
		justify-content: center;
	}

	.contact-actions {
		flex-direction: column;
		width: 100%;
	}

	.contact-actions .btn {
		width: 100%;
		justify-content: center;
	}

	.footer-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.reveal {
		opacity: 1;
		transform: none;
	}

	.marquee.is-animated .marquee-track {
		animation: none;
		flex-wrap: wrap;
		justify-content: center;
		width: auto;
	}
}

/* ==========================================================================
   v2 Design Elevation — grain, wayfinding, spotlight, terminal, choreography
   ========================================================================== */

/* Film grain on dark sections (SVG turbulence, ~1KB, no request) */
.grain::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.05;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
	mix-blend-mode: overlay;
}

.hero,
.impact,
.ai-lab,
.contact {
	position: relative;
}

/* Scroll progress hairline */
.site-header::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--accent), #ff8a5c);
	transform: scaleX(var(--scroll-progress, 0));
	transform-origin: left;
}

/* Active nav state */
.site-nav a.is-active {
	color: var(--text-dark-hi);
}

.site-nav li:not(.nav-cta) a {
	position: relative;
}

.site-nav li:not(.nav-cta) a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: -6px;
	height: 2px;
	border-radius: 2px;
	background: var(--accent);
	transition: right 0.22s var(--ease);
}

.site-nav li:not(.nav-cta) a:hover::after,
.site-nav li:not(.nav-cta) a.is-active::after {
	right: 0;
}

/* Numbered eyebrows with drawn rule */
.eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
}

.eyebrow-index {
	color: var(--text-dark-lo);
	opacity: 0.85;
}

.eyebrow-index::after {
	content: " /";
	color: var(--accent);
}

.section-light .eyebrow-index {
	color: var(--ink-lo);
}

.eyebrow::after {
	content: "";
	width: 64px;
	height: 1px;
	background: linear-gradient(90deg, var(--accent), transparent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.9s var(--ease) 0.15s;
}

.eyebrow.is-visible::after,
html:not(.js) .eyebrow::after {
	transform: scaleX(1);
}

.hero .eyebrow::after {
	transform: scaleX(1);
}

.eyebrow-center {
	justify-content: center;
}

.eyebrow-center::after {
	display: none;
}

/* Hero entrance choreography (one-time, CSS only) */
@keyframes rise-in {
	from { opacity: 0; transform: translateY(22px); }
	to { opacity: 1; transform: none; }
}

@keyframes portrait-in {
	from { opacity: 0; transform: translateX(18px) scale(0.985); }
	to { opacity: 1; transform: none; }
}

html.js .hero-shell > .eyebrow {
	animation: rise-in 0.7s var(--ease) 0.05s both;
}

html.js .hero-title {
	animation: rise-in 0.85s var(--ease) 0.12s both;
}

html.js .hero-copy > * {
	animation: rise-in 0.7s var(--ease) both;
}

html.js .hero-copy > *:nth-child(1) { animation-delay: 0.28s; }
html.js .hero-copy > *:nth-child(2) { animation-delay: 0.35s; }
html.js .hero-copy > *:nth-child(3) { animation-delay: 0.42s; }
html.js .hero-copy > *:nth-child(4) { animation-delay: 0.49s; }
html.js .hero-copy > *:nth-child(5) { animation-delay: 0.56s; }

html.js .hero-portrait {
	animation: portrait-in 0.9s var(--ease) 0.3s both;
}

/* Portrait frame + status badge */
.hero-portrait::after {
	content: "";
	position: absolute;
	inset: -16px -16px auto auto;
	width: 58%;
	height: 42%;
	border: 1px solid rgba(246, 72, 59, 0.28);
	border-radius: 18px;
	border-left: 0;
	border-bottom: 0;
	pointer-events: none;
}

.portrait-badge {
	position: absolute;
	left: -18px;
	bottom: 14%;
	z-index: 2;
	display: flex;
	align-items: center;
	background: rgba(13, 16, 23, 0.82);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border: 1px solid var(--border-dark);
	border-radius: 12px;
	padding: 12px 16px;
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: 0.06em;
	color: var(--text-dark-lo);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.portrait-badge strong {
	color: var(--text-dark-hi);
	font-weight: 500;
}

/* Scroll cue */
.scroll-cue {
	position: absolute;
	left: 50%;
	bottom: 26px;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.3em;
	color: var(--text-dark-lo);
	text-decoration: none;
	opacity: 0.8;
}

.scroll-cue:hover {
	text-decoration: none;
	color: var(--text-dark-hi);
}

.scroll-cue svg {
	width: 16px;
	height: 16px;
	animation: cue-bounce 2.2s var(--ease) infinite;
}

@keyframes cue-bounce {
	0%, 100% { transform: translateY(0); opacity: 0.7; }
	50% { transform: translateY(6px); opacity: 1; }
}

/* Cursor spotlight on lab cards */
.spot::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s var(--ease);
	background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(246, 72, 59, 0.13), transparent 65%);
}

.spot:hover::before {
	opacity: 1;
}

/* Magnetic CTAs: JS drives the translate; the slower transform transition makes it springy */
.hero-actions .btn.magnet {
	transition: transform 0.3s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

/* Icon ring */
.lab-card-icon {
	position: relative;
	transition: transform 0.25s var(--ease);
}

.lab-card:hover .lab-card-icon {
	transform: translateY(-2px) scale(1.05);
}

/* AI Lab terminal strip */
.lab-terminal {
	max-width: 640px;
	margin: 0 0 34px;
	background: #0c0f15;
	border: 1px solid var(--border-dark);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 18px 46px rgba(0, 0, 0, 0.4);
}

.lab-terminal-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 11px 14px;
	border-bottom: 1px solid var(--border-dark);
	background: rgba(255, 255, 255, 0.025);
}

.lab-terminal-bar i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #2e3542;
}

.lab-terminal-bar i:nth-child(1) { background: #f6483b; }
.lab-terminal-bar i:nth-child(2) { background: #f0b429; }
.lab-terminal-bar i:nth-child(3) { background: #3ecf72; }

.lab-terminal-bar span {
	margin-left: auto;
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.08em;
	color: var(--text-dark-lo);
}

.lab-terminal-body {
	padding: 16px 18px 18px;
	font-family: var(--font-mono);
	font-size: 12.5px;
	line-height: 1.9;
	color: var(--text-dark-lo);
	min-height: 118px;
}

.lab-terminal-body .t-line {
	display: block;
	white-space: nowrap;
	overflow: hidden;
}

.lab-terminal-body .t-prompt {
	color: #7d8aa0;
}

.lab-terminal-body .t-cmd {
	color: var(--text-dark-hi);
}

.lab-terminal-body .t-ok {
	color: #3ecf72;
}

.lab-terminal-body .t-caret {
	display: inline-block;
	width: 7px;
	height: 13px;
	margin-left: 2px;
	background: var(--accent);
	vertical-align: -2px;
	animation: caret-blink 1s steps(1) infinite;
}

@keyframes caret-blink {
	50% { opacity: 0; }
}

/* Timeline: pulsing current node */
.timeline-item:first-child::before {
	animation: node-pulse 2.6s var(--ease) infinite;
}

@keyframes node-pulse {
	0% { box-shadow: 0 0 0 0 rgba(214, 57, 45, 0.35); }
	70% { box-shadow: 0 0 0 10px rgba(214, 57, 45, 0); }
	100% { box-shadow: 0 0 0 0 rgba(214, 57, 45, 0); }
}

/* Testimonials: giant decorative glyph */
.quote-rotator::before {
	content: "\201C";
	position: absolute;
	top: -60px;
	left: -34px;
	font-family: var(--font-display);
	font-size: 13rem;
	line-height: 1;
	color: var(--accent);
	opacity: 0.08;
	pointer-events: none;
}

/* Footer accent hairline */
.site-footer {
	position: relative;
}

.site-footer::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: 100%;
	height: 1px;
	background: linear-gradient(90deg, var(--accent), transparent 40%);
}

/* v2 responsive adjustments */
@media (max-width: 1024px) {
	.impact-card,
	.impact-card:first-child {
		border-left: 0;
		padding-left: 0;
		border-top: 1px solid var(--border-dark);
	}

	.impact-grid {
		border-top: 0;
		gap: 0 26px;
	}

	.impact-card:nth-child(-n+2) {
		border-top: 0;
	}
}

@media (max-width: 880px), (max-height: 780px) {
	.scroll-cue {
		display: none;
	}
}

@media (max-width: 880px) {

	.portrait-badge {
		left: 50%;
		transform: translateX(-50%);
		bottom: 4%;
		white-space: nowrap;
	}

	.hero-portrait::after {
		display: none;
	}

	.quote-rotator::before {
		top: -40px;
		left: -8px;
		font-size: 8rem;
	}
}

@media (max-width: 560px) {
	.hero .eyebrow::after {
		display: none;
	}

	.lab-terminal-body {
		font-size: 11px;
		padding: 14px 14px 16px;
	}

	.lab-terminal-body .t-line {
		white-space: normal;
	}
}

/* ==========================================================================
   Arabic version (/ar/) — fonts, tokens, RTL layer
   Arabic-subset fonts only: Latin glyphs and digits fall back to
   Zodiak/Satoshi so both language versions share one visual voice.
   ========================================================================== */

@font-face {
	font-family: "Noto Naskh Arabic";
	src: url("../fonts/noto-naskh-arabic-var.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
	font-family: "Readex Pro";
	src: url("../fonts/readex-pro-arabic-var.woff2") format("woff2");
	font-weight: 160 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

html[lang="ar"] {
	--font-display: "Noto Naskh Arabic", "Zodiak", "Iowan Old Style", Georgia, serif;
	--font-body: "Readex Pro", "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-arabic: "Readex Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif;
}

/* Mono-styled elements that carry Arabic copy: the mono stack has no Arabic
   glyphs, so hand them to the Arabic face instead. */
[dir="rtl"] .eyebrow,
[dir="rtl"] .hero-role,
[dir="rtl"] .timeline-period,
[dir="rtl"] .credentials-title,
[dir="rtl"] .beneficiaries-title,
[dir="rtl"] .impact-chips li,
[dir="rtl"] .hero-proof li,
[dir="rtl"] .insight-meta,
[dir="rtl"] .footer-note p {
	font-family: var(--font-arabic);
	font-size: 13px;
}

[dir="rtl"] .hero-role {
	font-size: clamp(12.5px, 1.1vw, 14px);
}

/* Arabic script must never be letter-spaced — it breaks the joined letterforms. */
[dir="rtl"] .eyebrow,
[dir="rtl"] .hero-role,
[dir="rtl"] .hero-title,
[dir="rtl"] .section-title,
[dir="rtl"] .contact-title,
[dir="rtl"] .timeline-period,
[dir="rtl"] .credentials-title,
[dir="rtl"] .beneficiaries-title,
[dir="rtl"] .hero-proof li,
[dir="rtl"] .impact-chips li,
[dir="rtl"] .fact-chips li,
[dir="rtl"] .lab-stack li,
[dir="rtl"] .hub-link,
[dir="rtl"] .footer-note p,
[dir="rtl"] .win-stat,
[dir="rtl"] .impact-value {
	letter-spacing: 0;
}

/* Naskh sits lower on the line and its glyphs run compact — more air, more size. */
[dir="rtl"] .hero-title {
	font-size: clamp(3.2rem, 9.6vw, 7.4rem);
	line-height: 1.18;
}

[dir="rtl"] .section-title,
[dir="rtl"] .hero-headline {
	line-height: 1.35;
}

[dir="rtl"] .quote-item blockquote {
	font-style: normal;
	line-height: 1.9;
}

[dir="rtl"] .grad-text {
	font-style: normal;
}

/* Directional flips ------------------------------------------------------ */
[dir="rtl"] .eyebrow::after {
	background: linear-gradient(270deg, var(--accent), transparent);
	transform-origin: right;
}

[dir="rtl"] .pulse-dot {
	margin-right: 0;
	margin-left: 9px;
}

[dir="rtl"] .text-arrow .icon,
[dir="rtl"] .yt-channel-cta .icon,
[dir="rtl"] .quote-btn .icon {
	transform: scaleX(-1);
}

[dir="rtl"] .text-arrow:hover .icon {
	transform: scaleX(-1) translateX(4px);
}

[dir="rtl"] .yt-channel:hover .yt-channel-cta .icon {
	transform: scaleX(-1) translateX(4px);
}

[dir="rtl"] .timeline::before {
	left: auto;
	right: 7px;
}

[dir="rtl"] .timeline-item {
	padding: 0 44px 40px 0;
}

[dir="rtl"] .timeline-item::before {
	left: auto;
	right: 0;
}

[dir="rtl"] .education-note {
	border-left: 1px solid var(--border-light);
	border-right: 3px solid var(--accent-strong);
}

[dir="rtl"] .impact-card {
	border-left: 0;
	border-right: 1px solid var(--border-dark);
	padding: 30px 26px 24px 26px;
}

[dir="rtl"] .impact-card:first-child {
	border-right: 0;
	padding-right: 0;
}

[dir="rtl"] .faq-toggle {
	text-align: right;
}

[dir="rtl"] .lab-terminal-bar span {
	margin-left: 0;
	margin-right: auto;
}

[dir="rtl"] .quote-rotator::before {
	left: auto;
	right: -34px;
}

[dir="rtl"] .portrait-badge {
	left: auto;
	right: -18px;
}

[dir="rtl"] .portrait-caption {
	right: auto;
	left: 8px;
}

[dir="rtl"] .hero-portrait::after {
	inset: -16px auto auto -16px;
	border-right: 0;
	border-left: 1px solid rgba(246, 72, 59, 0.28);
	border-top: 1px solid rgba(246, 72, 59, 0.28);
}

[dir="rtl"] .win-card::after {
	right: auto;
	left: 24px;
}

[dir="rtl"] .site-footer::before {
	background: linear-gradient(270deg, var(--accent), transparent 40%);
}

@media (max-width: 880px) {
	[dir="rtl"] .site-nav {
		right: auto;
		left: 0;
		border-left: 0;
		border-right: 1px solid var(--border-dark);
		transform: translateX(-100%);
	}

	[dir="rtl"] body.nav-open .site-nav,
	body.nav-open [dir="rtl"] .site-nav {
		transform: none;
	}

	[dir="rtl"] .portrait-badge {
		left: 50%;
		right: auto;
		transform: translateX(-50%);
	}
}

/* Language switch pill (both pages) */
.nav-lang a {
	display: inline-flex;
	align-items: center;
	padding: 7px 14px;
	border: 1px solid var(--border-dark);
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--text-dark-hi) !important;
	transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.nav-lang a:hover {
	border-color: var(--accent);
	color: var(--accent) !important;
	text-decoration: none;
}

.nav-lang a::after {
	display: none;
}

[lang="ar"] .nav-lang a,
.nav-lang a[lang="ar"] {
	font-family: var(--font-arabic);
}

@media (prefers-reduced-motion: reduce) {
	.hero-glow .aurora,
	.scroll-cue svg,
	.timeline-item:first-child::before,
	.lab-terminal-body .t-caret {
		animation: none !important;
	}

	html.js .hero-shell > .eyebrow,
	html.js .hero-title,
	html.js .hero-copy > *,
	html.js .hero-portrait {
		animation: none !important;
		opacity: 1;
	}
}
