/* =============================================================================
   KurdiCode 2.0 — home page
   Builds on /assets/css/site.css (tokens and shared components). Only what is
   particular to the home page lives here: the hero with its status window,
   the about/pillars layout, the navy tech-stack panel and the contact layout.
   ============================================================================= */

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: clip;
  /* Pulled up under the header, which has no background until the page
     scrolls: the wash and the orbs run behind it, so the header reads as part
     of the hero rather than a bar above it. */
  margin-top: calc(-1 * var(--header-h) - 1px);
  padding-block: calc(var(--header-h) + 1px + clamp(36px, 1.5rem + 4vw, 88px)) 0;
}
/* Without script the phone header is taller (the links wrap into it), so the hero stays below it. */
@media (max-width: 960px) {
  html:not(.js) .hero { margin-top: 0; padding-top: clamp(36px, 1.5rem + 4vw, 88px); }
}
/* With fewer than four technologies there is no ticker, so the hero keeps its own foot. */
.hero:not(:has(> .marquee)) { padding-bottom: clamp(48px, 1rem + 5vw, 88px); }
/* Three soft light sources drifting behind the headline (the page wash is
   already there; these give it depth). Script-only motion, never on
   reduced-motion, never in print. */
.hero-orbs { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(42px); opacity: 0.5; will-change: transform;
  background: radial-gradient(circle at 35% 35%, var(--brand-aqua), var(--brand-cyan) 55%, transparent 72%);
}
.orb-1 { width: 380px; height: 380px; top: -90px; inset-inline-start: -140px; }
.orb-2 { width: 300px; height: 300px; top: 34%; inset-inline-end: -120px; background: radial-gradient(circle at 35% 35%, var(--brand-lavender), #5B5BD6 55%, transparent 72%); }
.orb-3 { width: 240px; height: 240px; bottom: 60px; inset-inline-start: 38%; opacity: 0.3; background: radial-gradient(circle at 35% 35%, var(--brand-gold), var(--brand-amber) 55%, transparent 72%); }
:root[data-theme="dark"] .orb { opacity: 0.32; }
:root[data-theme="dark"] .orb-3 { opacity: 0.16; }
html.js .orb { animation: kc-orb 18s ease-in-out infinite alternate; }
html.js .orb-2 { animation-duration: 23s; animation-delay: -6s; }
html.js .orb-3 { animation-duration: 27s; animation-delay: -12s; }
@keyframes kc-orb { to { transform: translate3d(48px, 36px, 0) scale(1.1); } }

/* What a visitor can count on, right under the buttons */
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; font: 500 0.9rem/1.4 var(--font-body); color: var(--text); }
.hero-trust i { color: var(--success); font-size: 0.95rem; flex-shrink: 0; }

/* The technology ticker at the foot of the hero: two copies of the list,
   the first slides out by its own width while the second follows. */
.marquee {
  position: relative; display: flex; overflow: hidden; direction: ltr;
  margin-top: clamp(44px, 5vw, 72px); padding-block: 16px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  -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 { list-style: none; display: flex; align-items: center; flex-shrink: 0; gap: 44px; padding-inline-end: 44px; white-space: nowrap; }
.marquee-track li { display: inline-flex; align-items: center; gap: 12px; font: 600 0.88rem/1 var(--font-mono); color: var(--muted); letter-spacing: 0.02em; font-synthesis: none; }
.marquee-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad-dot); flex-shrink: 0; }
html.js .marquee-track { animation: kc-marquee 46s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes kc-marquee { to { transform: translateX(-100%); } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 7px 16px; padding-inline-start: 8px; border-radius: var(--r-pill);
  background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-xs);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 600 0.84rem/1.3 var(--font-body); color: var(--text);
}
.hero-tag-dot {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad-dot);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-cyan) 18%, transparent);
}
.hero-title {
  margin-block: 24px 22px;
  font-size: var(--fs-h1); font-weight: 800; line-height: 1.04; letter-spacing: var(--tracking-display);
  text-wrap: balance;
}
:root:lang(ckb) .hero-title, :root:lang(ar) .hero-title { line-height: 1.32; }
.hero-title .highlight { display: inline-block; text-wrap: balance; }
@media (min-width: 1025px) { .hero-title .highlight { white-space: nowrap; } }
.hero-sub { font-size: var(--fs-lg); line-height: 1.65; max-width: 56ch; color: var(--text); text-wrap: pretty; }
:root:lang(ckb) .hero-sub, :root:lang(ar) .hero-sub { line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.stats {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start;
  margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line);
}
.stats:has(> :only-child) { grid-template-columns: auto; }
.stats:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, auto); }
.stat { padding-inline: 32px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
.stat:first-child { padding-inline-start: 0; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat dt { font: 500 0.8rem/1.3 var(--font-body); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.stat dd { font: 700 clamp(1.4rem, 1rem + 1vw, 1.85rem)/1.15 var(--font-display); color: var(--ink); letter-spacing: -0.02em; text-align: start; }
:root:lang(ckb) .stat dd, :root:lang(ar) .stat dd { line-height: 1.4; }

/* The status window */
.hero-visual { position: relative; padding-top: 56px; padding-inline-end: 28px; isolation: isolate; }
.hero-visual::before {
  content: ""; position: absolute; inset: 14% -4% -6% 4%; z-index: -1; border-radius: 50%;
  background:
    radial-gradient(closest-side at 30% 40%, rgba(1, 181, 255, 0.34), transparent),
    radial-gradient(closest-side at 75% 35%, rgba(6, 255, 252, 0.28), transparent),
    radial-gradient(closest-side at 60% 80%, rgba(169, 155, 255, 0.30), transparent),
    radial-gradient(closest-side at 20% 85%, rgba(254, 202, 8, 0.18), transparent);
  filter: blur(28px);
}
:root[data-theme="dark"] .hero-visual::before { opacity: 0.7; }
.mark-tile {
  position: absolute; top: 0; inset-inline-end: 0; z-index: 2;
  display: block; overflow: hidden;
  width: 132px; height: 132px; transform: rotate(8deg);
  filter: drop-shadow(0 24px 30px rgba(3, 16, 30, 0.28)) drop-shadow(0 4px 8px rgba(3, 16, 30, 0.2));
}
[dir="rtl"] .mark-tile { transform: rotate(-8deg); }
:root[data-theme="dark"] .mark-tile { filter: drop-shadow(0 0 0.6px rgba(127, 219, 255, 0.9)) drop-shadow(0 0 14px rgba(1, 181, 255, 0.25)) drop-shadow(0 24px 30px rgba(0, 0, 0, 0.5)); }
.console {
  position: relative; z-index: 1;
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  box-shadow: var(--glass-highlight), inset 0 0 0 1px var(--line), var(--shadow-lg);
}
.console-bar {
  display: flex; align-items: center; gap: 14px; padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 70%, transparent), transparent);
}
.console-dots { display: flex; gap: 7px; }
.console-dots i { width: 11px; height: 11px; border-radius: 50%; background: #FF8A80; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.console-dots i:nth-child(2) { background: #FFD166; }
.console-dots i:nth-child(3) { background: #5CD6A0; }
.console-title { font: 500 0.8rem/1 var(--font-mono); color: var(--muted); margin-inline: auto; padding-inline-end: 54px; font-synthesis: none; }
.console-body {
  list-style: none; padding: 28px 28px 32px;
  display: grid; gap: 14px;
  font: 500 0.9rem/1.5 var(--font-mono); color: var(--text); font-synthesis: none;
}
.console-body li { display: flex; gap: 12px; align-items: baseline; unicode-bidi: plaintext; text-align: start; }
.console-body .prompt { color: var(--accent); font-weight: 600; flex-shrink: 0; }
.console-body .ok { color: var(--success); }
.console-body .warn { color: var(--amber-ink); }
.cursor { display: inline-block; width: 8px; height: 1.05em; margin-inline-start: 4px; vertical-align: -0.16em; border-radius: 2px; background: var(--accent); animation: kc-blink 1.1s steps(1) infinite; flex-shrink: 0; align-self: center; }
@keyframes kc-blink { 50% { opacity: 0; } }
:root:lang(ckb) .console-body, :root:lang(ar) .console-body { line-height: 1.8; }
/* The lines appear one after another. Without script (or with reduced
   motion) they are simply there. */
html.js .console-body li { animation: kc-line-in 0.45s var(--ease) both; }
html.js .console-body li:nth-child(1) { animation-delay: 0.15s; }
html.js .console-body li:nth-child(2) { animation-delay: 0.3s; }
html.js .console-body li:nth-child(3) { animation-delay: 0.45s; }
html.js .console-body li:nth-child(4) { animation-delay: 0.6s; }
html.js .console-body li:nth-child(5) { animation-delay: 0.75s; }
html.js .console-body li:nth-child(6) { animation-delay: 0.9s; }
@keyframes kc-line-in { from { opacity: 0; transform: translateY(4px); } }

/* Live chip: the first featured project. The window keeps room at its foot
   so the chip never covers the last line. */
.hero-visual:has(> .status-chip) .console-body { padding-bottom: 60px; }
.status-chip {
  position: absolute; z-index: 3; inset-block-end: -34px; inset-inline-start: -26px;
  display: flex; align-items: center; gap: 14px; max-width: min(340px, 90%);
  padding: 12px 20px 12px 12px; padding-inline: 12px 20px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--glass-highlight), 0 24px 48px -20px rgba(11, 27, 43, 0.3);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
a.status-chip:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 28px 52px -20px rgba(11, 27, 43, 0.36); }
.status-chip .icon-tile { width: 42px; height: 42px; border-radius: 12px; font-size: 1rem; }
.status-chip-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.status-chip-body strong { font: 600 0.9rem/1.3 var(--font-body); color: var(--ink); }
.status-chip .badge { font-size: 0.72rem; padding-block: 3px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.about-grid.is-single { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.about-text { display: grid; gap: 18px; }
.about-text p { font-size: var(--fs-md); line-height: 1.75; }
:root:lang(ckb) .about-text p, :root:lang(ar) .about-text p { line-height: 1.95; }
.about-text p.lead { font: 500 clamp(1.15rem, 1rem + 0.5vw, 1.3rem)/1.6 var(--font-body); color: var(--ink); letter-spacing: -0.012em; }
:root:lang(ckb) .about-text p.lead, :root:lang(ar) .about-text p.lead { line-height: 1.85; }
/* The mission: the one deep-navy, aurora-lit tile in the About block */
.mission {
  position: relative; isolation: isolate; margin-top: 14px; padding: 26px 28px; padding-inline-start: 32px;
  border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(160deg, #10263D 0%, #0B1A2B 50%, #081523 100%);
  box-shadow: 0 30px 60px -30px rgba(3, 16, 30, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.mission::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(45% 70% at 0% 0%, rgba(1, 181, 255, 0.35), transparent 70%),
    radial-gradient(40% 60% at 100% 100%, rgba(130, 110, 255, 0.35), transparent 70%),
    radial-gradient(30% 40% at 80% 0%, rgba(254, 202, 8, 0.14), transparent 70%);
}
.mission p, .about-text .mission p { font: 600 clamp(1.1rem, 1rem + 0.4vw, 1.3rem)/1.5 var(--font-display); color: #EEF4FA; letter-spacing: -0.01em; }
:root:lang(ckb) .mission p, :root:lang(ar) .mission p { line-height: 1.8; }
.mission::before { content: ""; position: absolute; inset-block: 18px; inset-inline-start: 0; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--brand-cyan), var(--brand-aqua), var(--brand-gold)); }
.mission ::selection { background: rgba(111, 214, 255, 0.3); color: #fff; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pillar { padding: 26px 24px 28px; display: grid; gap: 14px; align-content: start; }
.pillar h3 { font-size: var(--fs-h4); font-weight: 700; line-height: 1.3; }
:root:lang(ckb) .pillar h3, :root:lang(ar) .pillar h3 { line-height: 1.5; }
.pillar p { font-size: 0.94rem; line-height: 1.65; }
:root:lang(ckb) .pillar p, :root:lang(ar) .pillar p { line-height: 1.85; }
.pillars > :nth-child(4n+1) .icon-tile { --tile-fg: var(--accent);    --tile-bg: rgba(1, 181, 255, 0.13);   --tile-line: rgba(1, 181, 255, 0.24); }
.pillars > :nth-child(4n+2) .icon-tile { --tile-fg: var(--teal-ink);  --tile-bg: rgba(6, 214, 210, 0.15);   --tile-line: rgba(6, 190, 190, 0.26); }
.pillars > :nth-child(4n+3) .icon-tile { --tile-fg: var(--lav-ink);   --tile-bg: rgba(130, 110, 255, 0.13); --tile-line: rgba(130, 110, 255, 0.26); }
.pillars > :nth-child(4n+4) .icon-tile { --tile-fg: var(--amber-ink); --tile-bg: rgba(254, 170, 6, 0.15);   --tile-line: rgba(254, 154, 6, 0.26); }

/* ---------- Team (follows About) ---------- */
.about + .team { padding-top: 0; }
.founder { display: grid; gap: 18px; justify-items: start; }
.founder .team-list { width: 100%; }

/* ---------- Tech stack: the deep-navy panel (the same in both themes) ---------- */
/* The tech-stack section (id="stack" stays the anchor; the class is not .stack,
   which is the vertical-rhythm utility in site.css). */
.tech-section { padding-block: calc(var(--section-y) * 0.5); }
.panel-navy {
  --ink: #EEF4FA; --text: #B9C7D6; --muted: #9FB0C2; --accent: #6FD6FF;
  --line: rgba(186, 214, 240, 0.12); --line-strong: rgba(186, 214, 240, 0.2);
  --chip-bg: rgba(186, 214, 240, 0.07); --glass: rgba(255, 255, 255, 0.045);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-sm: none; --shadow-md: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
  --teal-ink: #5EEAD4; --lav-ink: #B7A6FF; --amber-ink: #FFC247;
  --focus: #7FDBFF;
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(32px, 2rem + 3vw, 80px);
  border-radius: var(--r-2xl);
  background: linear-gradient(160deg, #10263D 0%, #0B1A2B 45%, #081523 100%);
  box-shadow: 0 40px 80px -40px rgba(3, 16, 30, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.panel-navy::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(40% 55% at 8% 0%, rgba(1, 181, 255, 0.30), transparent 70%),
    radial-gradient(35% 50% at 100% 10%, rgba(6, 255, 252, 0.14), transparent 70%),
    radial-gradient(45% 55% at 85% 100%, rgba(130, 110, 255, 0.26), transparent 70%),
    radial-gradient(30% 40% at 30% 100%, rgba(254, 202, 8, 0.08), transparent 70%);
}
.panel-navy::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(186, 214, 240, 0.09) 1px, transparent 1.3px); background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%); mask-image: linear-gradient(180deg, #000, transparent 60%);
}
:root[data-theme="dark"] .panel-navy { background: linear-gradient(160deg, #0F2338 0%, #0B1A2B 60%, #0A1726 100%); box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, 0.7); }
.panel-navy .eyebrow { background: rgba(111, 214, 255, 0.1); }
.panel-navy .icon-tile { box-shadow: inset 0 0 0 1px var(--tile-line); }
.panel-navy .stack-grid > :nth-child(3n+1) .icon-tile { --tile-bg: rgba(1, 181, 255, 0.16); --tile-line: rgba(127, 219, 255, 0.25); }
.panel-navy .stack-grid > :nth-child(3n+2) .icon-tile { --tile-bg: rgba(130, 110, 255, 0.18); --tile-line: rgba(183, 166, 255, 0.28); }
.panel-navy .stack-grid > :nth-child(3n+3) .icon-tile { --tile-bg: rgba(6, 214, 210, 0.14); --tile-line: rgba(94, 234, 212, 0.26); }
.panel-navy .tags > * { color: #D5E2EE; }
.panel-navy ::selection { background: rgba(111, 214, 255, 0.3); color: #fff; }

/* ---------- Projects ---------- */
.past { margin-top: clamp(64px, 7vw, 104px); }
.past .sec-head h2 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.25rem); }
.projects-all { margin-top: clamp(36px, 4vw, 56px); display: flex; justify-content: center; }

/* ---------- Contact ---------- */
.contact { overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  background:
    radial-gradient(40% 50% at 0% 30%, rgba(1, 181, 255, 0.14), transparent 70%),
    radial-gradient(40% 50% at 100% 70%, rgba(169, 155, 255, 0.16), transparent 70%),
    radial-gradient(30% 40% at 60% 100%, rgba(254, 202, 8, 0.10), transparent 70%);
}
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-info { display: grid; gap: 22px; }
.contact-heading { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 700; line-height: 1.2; }
:root:lang(ckb) .contact-heading, :root:lang(ar) .contact-heading { line-height: 1.45; }
.contact-info > p { font-size: var(--fs-md); line-height: 1.7; }
:root:lang(ckb) .contact-info > p, :root:lang(ar) .contact-info > p { line-height: 1.9; }
.contact-info .contact-links { margin-top: 6px; }

/* ---------- Video: a poster and a play button; the player loads on press ---------- */
.video-stage {
  position: relative; isolation: isolate; padding: 10px; border-radius: var(--r-2xl);
  background: var(--glass-strong);
  box-shadow: var(--glass-highlight), inset 0 0 0 1px var(--line), var(--shadow-lg);
}
.video-stage::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit;
  background: var(--grad-edge); filter: blur(22px); opacity: 0.45;
}
:root[data-theme="dark"] .video-stage::before { opacity: 0.3; }
.video-facade {
  position: relative; isolation: isolate; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: calc(var(--r-2xl) - 8px); background: #0B1A2B;
  display: grid; place-items: center;
}
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.video-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 16, 30, 0.08), rgba(3, 16, 30, 0.5)); }
.video-facade:hover .video-poster { transform: scale(1.03); }
.video-play {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 14px;
  min-height: 66px; padding: 8px; padding-inline-end: 24px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.94); color: #0B1A2B;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 600 1rem/1.2 var(--font-body);
  box-shadow: 0 24px 56px -22px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.video-play:hover, .video-play:focus-visible { transform: scale(1.04); box-shadow: 0 28px 60px -22px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.6); }
.video-play-icon {
  position: relative; width: 50px; height: 50px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(180deg, #1A3654, #0B1A2B); color: #fff; font-size: 1rem; padding-inline-start: 3px;
}
html.js .video-play-icon::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(1, 181, 255, 0.55); animation: kc-pulse 2.2s var(--ease) infinite; }
@keyframes kc-pulse { 0% { transform: scale(0.9); opacity: 0.9; } 70% { transform: scale(1.35); opacity: 0; } 100% { opacity: 0; } }
.video-duration { color: #5A6B7E; font-weight: 500; }
.video-facade iframe { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; }
.video-facade.is-playing .video-play, .video-facade.is-playing .video-poster, .video-facade.is-playing::after { display: none; }
@media (max-width: 720px) {
  .video-stage { padding: 6px; border-radius: var(--r-xl); margin-inline: calc(var(--gutter) * -0.4); }
  .video-facade { border-radius: calc(var(--r-xl) - 5px); }
  .video-play { min-height: 56px; font-size: 0.92rem; gap: 10px; padding-inline-end: 18px; }
  .video-play-icon { width: 42px; height: 42px; }
}

/* ---------- Starting points: six "I …" situations, each answered ---------- */
.starts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.start {
  display: grid; gap: 14px; align-content: start; padding: 24px 22px; border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--glass-highlight), inset 0 0 0 1px var(--line), var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.start:hover { transform: translateY(-3px); box-shadow: var(--glass-highlight), inset 0 0 0 1px var(--line-strong), var(--shadow-md); }
.start-head { display: flex; align-items: center; gap: 14px; }
/* The situation is said in the visitor's voice: quotation marks of the page's language. */
.start-says { font-size: 1.04rem; font-weight: 700; line-height: 1.35; quotes: auto; text-wrap: balance; }
.start-says::before { content: open-quote; color: var(--accent); }
.start-says::after { content: close-quote; color: var(--accent); }
:root:lang(ckb) .start-says, :root:lang(ar) .start-says { line-height: 1.55; }
.start-answer { display: grid; gap: 4px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.start-kicker { font: 700 0.7rem/1.4 var(--font-latin-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
:root:lang(ckb) .start-kicker, :root:lang(ar) .start-kicker { font: 700 0.82rem/1.5 var(--font-kurdish); letter-spacing: 0; text-transform: none; }
.start-answer p { font-size: 0.93rem; line-height: 1.65; color: var(--text); }
:root:lang(ckb) .start-answer p, :root:lang(ar) .start-answer p { line-height: 1.85; }
.starting-more { display: flex; justify-content: center; margin-top: 28px; }
.starts > :nth-child(6n+1) .icon-tile { --tile-fg: var(--accent);    --tile-bg: rgba(1, 181, 255, 0.13);   --tile-line: rgba(1, 181, 255, 0.24); }
.starts > :nth-child(6n+2) .icon-tile { --tile-fg: var(--teal-ink);  --tile-bg: rgba(6, 214, 210, 0.15);   --tile-line: rgba(6, 190, 190, 0.26); }
.starts > :nth-child(6n+3) .icon-tile { --tile-fg: var(--lav-ink);   --tile-bg: rgba(130, 110, 255, 0.13); --tile-line: rgba(130, 110, 255, 0.26); }
.starts > :nth-child(6n+4) .icon-tile { --tile-fg: var(--amber-ink); --tile-bg: rgba(254, 170, 6, 0.15);   --tile-line: rgba(254, 154, 6, 0.26); }
.starts > :nth-child(6n+5) .icon-tile { --tile-fg: var(--lav-ink);   --tile-bg: rgba(130, 110, 255, 0.13); --tile-line: rgba(130, 110, 255, 0.26); }
.starts > :nth-child(6n+6) .icon-tile { --tile-fg: var(--teal-ink);  --tile-bg: rgba(6, 214, 210, 0.15);   --tile-line: rgba(6, 190, 190, 0.26); }

/* ---------- Included in every build: a checklist panel, two columns ---------- */
.included-list {
  list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: var(--r-xl); overflow: hidden; background: var(--surface);
  box-shadow: var(--glass-highlight), inset 0 0 0 1px var(--line), var(--shadow-sm);
}
.included {
  display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 16px; align-items: start;
  padding: 24px 26px 26px; border-bottom: 1px solid var(--line);
  transition: background-color var(--dur) var(--ease);
}
.included:nth-child(odd) { border-inline-end: 1px solid var(--line); }
.included:last-child, .included:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
.included:hover { background: var(--hover-bg); }
.included-body { display: grid; gap: 6px; min-width: 0; }
.included h3 { font-size: 1.04rem; font-weight: 700; line-height: 1.35; }
:root:lang(ckb) .included h3, :root:lang(ar) .included h3 { line-height: 1.55; }
.included p { font-size: 0.93rem; line-height: 1.65; color: var(--text); }
:root:lang(ckb) .included p, :root:lang(ar) .included p { line-height: 1.85; }
.included-list > :nth-child(6n+1) .icon-tile { --tile-fg: var(--accent);    --tile-bg: rgba(1, 181, 255, 0.13);   --tile-line: rgba(1, 181, 255, 0.24); }
.included-list > :nth-child(6n+2) .icon-tile { --tile-fg: var(--teal-ink);  --tile-bg: rgba(6, 214, 210, 0.15);   --tile-line: rgba(6, 190, 190, 0.26); }
.included-list > :nth-child(6n+3) .icon-tile { --tile-fg: var(--lav-ink);   --tile-bg: rgba(130, 110, 255, 0.13); --tile-line: rgba(130, 110, 255, 0.26); }
.included-list > :nth-child(6n+4) .icon-tile { --tile-fg: var(--amber-ink); --tile-bg: rgba(254, 170, 6, 0.15);   --tile-line: rgba(254, 154, 6, 0.26); }
.included-list > :nth-child(6n+5) .icon-tile { --tile-fg: var(--lav-ink);   --tile-bg: rgba(130, 110, 255, 0.13); --tile-line: rgba(130, 110, 255, 0.26); }
.included-list > :nth-child(6n+6) .icon-tile { --tile-fg: var(--teal-ink);  --tile-bg: rgba(6, 214, 210, 0.15);   --tile-line: rgba(6, 190, 190, 0.26); }

/* ---------- Questions: a sticky intro and a native accordion ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 28px); }
.faq-intro .sec-head { margin-bottom: 22px; }
.faq-ask { margin: 0; }
.faq-list { display: grid; gap: 10px; }
.faq-item {
  border-radius: var(--r-md); overflow: hidden;
  background: var(--glass-strong);
  box-shadow: var(--glass-highlight), inset 0 0 0 1px var(--line), var(--shadow-xs);
  transition: box-shadow var(--dur) var(--ease);
}
.faq-item[open] { box-shadow: var(--glass-highlight), inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 16px 20px;
  font: 600 1.02rem/1.4 var(--font-display); color: var(--ink);
  transition: color var(--dur) var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary:focus-visible { outline-offset: -3px; border-radius: var(--r-md); }
:root:lang(ckb) .faq-item summary, :root:lang(ar) .faq-item summary { line-height: 1.6; }
.faq-chevron {
  width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%;
  background: var(--chip-bg); color: var(--accent); font-size: 0.72rem;
  transition: transform 0.35s var(--ease), background-color var(--dur) var(--ease);
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.faq-a { padding: 0 20px 20px; font-size: 0.97rem; line-height: 1.7; color: var(--text); }
:root:lang(ckb) .faq-a, :root:lang(ar) .faq-a { line-height: 1.95; }
/* The answer slides open where the browser can animate it; elsewhere it simply appears. */
@supports (interpolate-size: allow-keywords) {
  .faq-item { interpolate-size: allow-keywords; }
  .faq-item::details-content { block-size: 0; overflow: clip; transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete; }
  .faq-item[open]::details-content { block-size: auto; }
}

/* ---------- Contact: WhatsApp beside the contact list ---------- */
.contact-whatsapp { margin-top: 4px; }
.contact-whatsapp .btn { width: 100%; }

/* ---------- Scroll-driven motion (where the browser has it) ----------
   Everything is visible without it: this only adds a gentle lift of the
   hero wash as the page moves. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-orbs { animation: kc-orbs-away linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
  }
}
@keyframes kc-orbs-away { to { transform: translateY(-120px); opacity: 0.2; } }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .status-chip { inset-inline-start: -8px; }
}
@media (max-width: 1024px) {
  .starts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-intro { position: static; }
}
/* Two columns but a narrow status window: a smaller tile keeps clear of its title. */
@media (min-width: 961px) and (max-width: 1180px) {
  .mark-tile { width: 108px; height: 108px; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 560px; margin-bottom: 36px; }
  .status-chip { inset-inline-start: 16px; }
  .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .starts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .start { padding: 20px 18px; }
  .included-list { grid-template-columns: minmax(0, 1fr); }
  .included { padding: 20px 18px 22px; border-inline-end: 0 !important; }
  .included:not(:last-child) { border-bottom: 1px solid var(--line); }
  .hero-trust { gap: 8px 16px; margin-top: 18px; }
  .hero-trust li { font-size: 0.84rem; }
  .marquee { margin-top: 36px; margin-inline: calc(var(--gutter) * -1); padding-block: 13px; }
  .marquee-track { gap: 32px; padding-inline-end: 32px; }
  .orb { filter: blur(36px); }
  .orb-1 { width: 260px; height: 260px; }
  .orb-2 { width: 220px; height: 220px; }
  .orb-3 { display: none; }
  .pillars { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pillar { grid-template-columns: 46px minmax(0, 1fr); column-gap: 14px; row-gap: 10px; padding: 20px 20px 22px; }
  .pillar h3 { grid-column: 2; align-self: center; }
  .pillar p { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; padding-top: 22px; }
  .stat { padding-inline: 14px; }
  .stat dd { font-size: 1.2rem; white-space: nowrap; }
  .stat dt { font-size: 0.7rem; letter-spacing: 0.04em; }
  .hero-visual { padding-top: 0; padding-inline-end: 0; margin-bottom: 0; }
  .mark-tile { display: none; }
  .console-body, .hero-visual:has(> .status-chip) .console-body { padding: 22px 20px 24px; font-size: 0.82rem; gap: 11px; }
  .console-title { padding-inline-end: 0; }
  .hero-actions .btn { flex: 1 1 auto; }
  .status-chip { position: relative; inset: auto; margin-top: 12px; max-width: none; }
  .panel-navy { border-radius: var(--r-xl); margin-inline: calc(var(--gutter) * -0.5); padding: 36px 18px 20px; }
  .panel-navy .sec-head { padding-inline: 6px; }
}
@media (max-width: 380px) {
  .stat { padding-inline: 10px; }
  .stat dd { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .console-body li { animation: none; }
  .cursor { animation: none; }
  a.status-chip:hover { transform: none; }
  html.js .orb { animation: none; }
  html.js .marquee-track { animation: none; }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  html.js .video-play-icon::before { animation: none; }
  .steps::after { transform: scaleX(1); }
  .step:hover { transform: none; }
  .video-facade:hover .video-poster { transform: none; }
}
