/* "Digital Osama": the AI view of the homepage — the home of Osama's digital twin. */
.page-home > section.twin { display: none; }
html[data-view="agent"] .page-home > section.twin.twin { display: block !important; }
html[data-view="agent"] .page-home > section.ws.ws { display: none !important; }
html[data-view="agent"] body { overflow: auto; }
html[data-view="agent"] .page-home > section.contact.contact { display: block !important; }

/* the door on the classic hero */
.twin-door { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .2s; }
.twin-door:hover { transform: translateY(-1px); }
.twin-door .tdot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .18); }
html[data-view="agent"] .twin-door { display: none; }

/* ======================================================================
   Digital Osama · a scroll story in the site's own colours.
   Rhythm: big calm type, one accent (mint), soft gradient stages, rounded cards.
   ====================================================================== */
.c { --r-xl: 32px; --r-l: 24px; --r-m: 16px; --ease: cubic-bezier(.16, 1, .3, 1);
  --c-glow1: color-mix(in srgb, var(--accent) 55%, transparent);
  --c-glow2: color-mix(in srgb, var(--gold-500, #c4973b) 35%, transparent);
  --c-glow3: color-mix(in srgb, #4f7cff 30%, transparent);
  color: var(--text); font-size: 19px; line-height: 1.7; overflow-x: clip; }
html[data-theme="light"] .c { --c-glow1: color-mix(in srgb, var(--mint-400, #5bcfa5) 85%, transparent); --c-glow2: color-mix(in srgb, var(--gold-500, #e0b45a) 45%, transparent); --c-glow3: color-mix(in srgb, #7aa2ff 60%, transparent); }
.c h1, .c h2, .c h3 { letter-spacing: 0; color: var(--text); }
html[lang="en"] .c h1, html[lang="en"] .c h2 { letter-spacing: -0.025em; }
.c-soft { color: var(--accent); }
.c-kick { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--accent); }
.c-kick::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--accent); }
.c-sub { margin: 18px auto 0; max-width: 640px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.75; color: var(--text-2); }

/* soft fade-up for plain blocks */
.c-in { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.c-in.seen { opacity: 1; transform: none; }

/* buttons */
.c-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 17px; font-weight: 600;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .3s var(--ease), box-shadow .3s, background .2s, border-color .2s; }
.c-btn:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 12px 30px -12px var(--accent-glow); }
.c-btn.solid { background: var(--text); border-color: var(--text); color: var(--page, var(--bg)); }
.c-btn.solid:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.c-btn.lg { height: 60px; padding: 0 34px; font-size: 18px; }
.c-btn.sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; gap: 6px; }
.c-link { align-self: flex-start; margin-top: 22px; padding: 0 0 4px; border: 0; border-bottom: 1.5px solid currentColor; background: none; font: inherit; font-size: 17px; font-weight: 600; color: var(--text); cursor: pointer; text-decoration: none; transition: color .2s; }
.c-link:hover { color: var(--accent); }

/* ---------- hero: you meet him; his face keeps being copied into dots ---------- */
.c-hero { min-height: calc(100vh - 74px); display: grid; align-items: center; padding: 48px 24px 56px; box-sizing: border-box; }
.c-hero-g { width: min(1240px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.c-pill { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 15px; color: var(--text-2); }
.c-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.c-hero h1 { margin: 24px 0 0; font-size: clamp(42px, 5vw, 74px); line-height: 1.15; font-weight: 700; }
html[lang="en"] .c-hero h1 { line-height: 1.04; }
.c-say { margin: 22px 0 0; max-width: 34em; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.8; color: var(--text-2); }
.c-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.c-chip { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 16.5px; font-weight: 600; cursor: pointer;
  transition: transform .3s var(--ease), border-color .2s, background .2s, color .2s, box-shadow .3s; }
.c-chip svg { color: var(--accent); transition: color .2s; }
.c-chip:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 14px 30px -14px var(--accent-glow); }
.c-chip:first-child { background: var(--text); border-color: var(--text); color: var(--page, var(--bg)); }
.c-chip:first-child:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.c-chip:first-child:hover svg { color: var(--accent-ink); }
.c-face { --cut: 50%; position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 36px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); isolation: isolate; }
.c-face::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent); }
.c-face img, .c-face canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.c-face canvas { clip-path: inset(0 0 0 var(--cut)); animation: c-copy 9s var(--ease) infinite; }
.c-scan { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 2px; margin-left: -1px; background: var(--accent); box-shadow: 0 0 18px 2px var(--accent); animation: c-line 9s var(--ease) infinite; }
@keyframes c-copy { 0%, 8% { clip-path: inset(0 0 0 100%); } 46%, 62% { clip-path: inset(0 0 0 0); } 92%, 100% { clip-path: inset(0 0 0 100%); } }
@keyframes c-line { 0%, 8% { left: 100%; opacity: 0; } 12% { opacity: 1; } 46% { left: 0; opacity: 1; } 50%, 62% { left: 0; opacity: 0; } 66% { left: 0; opacity: 1; } 92% { left: 100%; opacity: 1; } 96%, 100% { left: 100%; opacity: 0; } }
.c-tag { position: absolute; top: 18px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.c-tag.real { left: 18px; background: rgba(0,0,0,.45); color: #fff; }
.c-tag.digi { right: 18px; background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }

/* ---------- the stage: a gradient card that opens, pins, and changes chapter as you scroll ---------- */
.c-stage { height: 320vh; position: relative; }
.c-pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 76px 0 20px; box-sizing: border-box; }
.c-frame { --o: var(--open, 0); position: relative; isolation: isolate; overflow: hidden; margin: 0 auto;
  width: calc(100% - 32px - (1 - var(--o)) * 14vw); height: calc(100% - (1 - var(--o)) * 8vh);
  border-radius: calc(var(--r-xl) + (1 - var(--o)) * 16px); display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 26px 26px 30px; box-sizing: border-box;
  background: color-mix(in srgb, var(--surface) 60%, var(--page, var(--bg))); border: 1px solid var(--line); }
.c-frame::before { content: ""; position: absolute; inset: -30%; z-index: -1; pointer-events: none; filter: blur(30px);
  background: radial-gradient(38% 42% at 22% 30%, var(--c-glow1), transparent 70%), radial-gradient(34% 40% at 80% 25%, var(--c-glow3), transparent 70%), radial-gradient(40% 40% at 60% 85%, var(--c-glow2), transparent 70%);
  transform: rotate(calc(var(--k, 0) * 80deg)) scale(1.05); transition: transform 1.6s var(--ease); }
.c-stage[data-k="1"] { --k: 1; } .c-stage[data-k="2"] { --k: 2; } .c-stage[data-k="3"] { --k: 3; }
.c-tabs { display: flex; gap: 10px; padding: 6px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.c-tab { display: inline-flex; align-items: center; gap: 0; height: 46px; min-width: 46px; padding: 0 12px; border-radius: 999px; border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .4s var(--ease), color .3s, gap .4s var(--ease); }
.c-tab span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .5s var(--ease); }
.c-tab:hover { color: var(--text); }
.c-tab.on { background: var(--text); color: var(--page, var(--bg)); gap: 8px; padding: 0 18px; }
.c-tab.on span { max-width: 160px; }
.c-card { position: relative; flex: 1; width: min(1180px, 100%); min-height: 0; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.c-ch { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 36px; padding: clamp(24px, 4vw, 52px); align-items: center;
  opacity: 0; transform: translateY(24px); pointer-events: none; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.c-ch.on { opacity: 1; transform: none; pointer-events: auto; }
.c-ch.past { transform: translateY(-24px); }
.c-ch-t { display: flex; flex-direction: column; align-items: flex-start; }
.c-badge { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 600; }
.c-ch h2 { margin: 18px 0 0; font-size: clamp(30px, 3.3vw, 48px); line-height: 1.25; font-weight: 700; }
.c-ch p { margin: 14px 0 0; font-size: 18px; line-height: 1.8; color: var(--text-2); max-width: 30em; }
.c-meta { margin-top: 22px; font-size: 14px; color: var(--text-3); }
.c-ch-v { height: 100%; min-height: 0; display: grid; place-items: center; border-radius: var(--r-m); padding: 22px; box-sizing: border-box;
  background: radial-gradient(80% 90% at 30% 20%, var(--accent-soft), transparent 70%), color-mix(in srgb, var(--accent) 6%, var(--page, var(--bg))); }

/* mock screens: parts slide in when their chapter is on */
.c-mock { width: min(420px, 100%); }
.c-wa-body > * { transition: opacity .6s var(--ease), transform .7s var(--ease); }
.c-ch:not(.on) .c-wa-body > *, .c-ch:not(.on) .c-a2a-body > *, .c-ch:not(.on) .c-ide-chat > * { opacity: 0; transform: translateY(14px); }
.c-mock > *, .c-a2a-body > * { transition: opacity .6s var(--ease), transform .7s var(--ease); }
.c-ch.on .c-wa-body > :nth-child(2), .c-ch.on .c-ide-chat > :nth-child(2), .c-ch.on .c-a2a-body > :nth-child(2) { transition-delay: .4s; }
.c-ch.on .c-wa-body > :nth-child(3), .c-ch.on .c-a2a-body > :nth-child(3) { transition-delay: .8s; }
.c-ch.on .c-wa-body > :nth-child(4), .c-ch.on .c-a2a-body > :nth-child(4) { transition-delay: 1.2s; }
.c-ch.on .c-a2a-body > :nth-child(5) { transition-delay: 1.7s; }
.c-mock.chat { border-radius: 22px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); }
.c-wa-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--accent); color: var(--accent-ink); }
.c-wa-top img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.c-wa-top b { font-size: 15px; } .c-wa-top small { font-size: 12px; opacity: .8; }
.c-wa-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 14px 18px; background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.c-bub { align-self: flex-start; max-width: 86%; padding: 9px 13px; border-radius: 16px; border-start-start-radius: 4px; background: var(--raised); font-size: 15px; line-height: 1.65; color: var(--text); }
.c-bub.me { align-self: flex-end; display: flex; gap: 8px; align-items: flex-end; padding: 0; background: none; border-radius: 0; }
.c-bub.me span { padding: 9px 13px; border-radius: 16px; border-end-end-radius: 4px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.c-bub.me img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.c-mock.code { border-radius: 18px; overflow: hidden; background: var(--navy-900, #0f1620); color: #c9d1d9; box-shadow: var(--shadow); font: 13.5px/1.8 var(--font-mono), monospace; }
.c-ide-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 12px; color: #6b7685; }
.c-ide-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3442; } .c-ide-bar span { margin-left: 10px; }
.c-mock.code pre { margin: 0; padding: 16px 18px; font: inherit; color: #8b97a7; white-space: pre-wrap; border-bottom: 1px solid rgba(255,255,255,.07); }
.c-mock.code .k { color: var(--gold-500, #e0b45a); } .c-mock.code .s { color: var(--mint-400, #5bcfa5); }
.c-ide-chat { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 18px; font-family: var(--font-ar), system-ui, sans-serif; }
.c-ide-q { align-self: flex-end; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.07); font-size: 14px; color: #e6edf3; }
.c-ide-q .at { color: var(--mint-400, #5bcfa5); font-family: var(--font-mono), monospace; }
.c-ide-a { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.7; color: #d0d6e0; }
.c-ide-a img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 2px var(--mint-400, #5bcfa5); }
.c-ide-a span { padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }

.c-mock.a2a { border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.c-a2a-top { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); font: 500 12px var(--font-mono), monospace; color: var(--text-3); }
.c-a2a-top i { flex: 1; border-top: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent); }
.c-a2a-top b { color: var(--accent); font-weight: 600; }
.c-a2a-body { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.c-ag { display: flex; gap: 10px; align-items: flex-start; max-width: 92%; }
.c-ag.me { align-self: flex-end; flex-direction: row-reverse; }
.c-ag img, .c-ag-ic { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.c-ag-ic { display: grid; place-items: center; border-radius: 9px; background: var(--raised); font: 600 12px var(--font-mono), monospace; color: var(--text-2); }
.c-ag div { display: flex; flex-direction: column; gap: 3px; }
.c-ag small { font-size: 12px; color: var(--text-3); }
.c-ag.me small { text-align: end; color: var(--accent); }
.c-ag span { padding: 9px 13px; border-radius: 14px; background: var(--raised); font-size: 14.5px; line-height: 1.65; }
.c-ag.me span { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.c-a2a-ok { align-self: center; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 7px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 13.5px; font-weight: 600; }


/* ---------- the human behind it ---------- */
.c-human { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.6; color: var(--text-2); }
.c-human img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; filter: grayscale(.15); }
.c-human b { color: var(--text); font-weight: 600; }
.c-clock { font-family: var(--font-mono), monospace; }
.c-human small { font-size: 14px; color: var(--accent); }
.c-wa-note { align-self: center; margin-bottom: 4px; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--gold-500, #e0b45a) 18%, transparent); color: var(--text-2); font-size: 12px; }
.c-head { text-align: center; }
.c-head h2, .c-add h2 { margin: 12px 0 0; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.2; font-weight: 700; }
.c-head p { margin: 12px auto 0; max-width: 36em; font-size: 19px; line-height: 1.75; color: var(--text-2); }
.c-two { width: min(1240px, calc(100% - 48px)); margin: 140px auto 0; }
.c-two-g { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); align-items: center; margin-top: 48px; }
.c-who { border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.c-who.digi { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.c-who-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--raised); }
.c-who-img img, .c-who-img canvas { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }
.c-who-img canvas { object-position: 50% 35%; }
.c-who.real .c-who-img img { object-position: 50% 0%; filter: saturate(.9) contrast(1.02); }
.c-who-t { padding: 24px 28px 28px; }
.c-who h3 { margin: 0; font-size: 26px; }
.c-who small { display: block; margin-top: 2px; font-size: 15px; color: var(--text-3); }
.c-who.digi small { color: var(--accent); }
.c-who ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.c-who li { position: relative; padding-inline-start: 26px; font-size: 17px; line-height: 1.6; }
.c-who li::before { content: ""; position: absolute; inset-inline-start: 0; top: .6em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--text-3); box-sizing: border-box; }
.c-who.digi li::before { border-radius: 3px; border-color: var(--accent); background: var(--accent-soft); }
.c-link2 { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); text-align: center; }
.c-link2 i { width: 70%; border-top: 2px dashed color-mix(in srgb, var(--accent) 60%, transparent); }
.c-link2 span:last-child { color: var(--accent); }

/* ---------- add me ---------- */
.c-add { width: min(1240px, calc(100% - 48px)); margin: 150px auto 0; text-align: center; scroll-margin-top: 90px; }
.c-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 44px; text-align: start; }
.c-tool { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s, box-shadow .4s; }
.c-tool:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 24px 50px -24px var(--accent-glow); }
.c-tool b { font-size: 20px; }
.c-tool code { font: 13px var(--font-mono), monospace; color: var(--text-3); margin-bottom: 8px; }
html[lang="ar"] .c-tool code:not([dir]) { font-family: var(--font-ar); font-size: 14px; }
.c-tool .c-btn { margin-top: auto; align-self: flex-start; }
.c-other { margin: 22px auto 0; max-width: 820px; text-align: start; }
.c-other summary { cursor: pointer; font-size: 15px; color: var(--text-2); text-align: center; list-style: none; }
.c-other summary:hover { color: var(--accent); }
.c-cmd { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 12px 12px 16px; border-radius: 14px; background: var(--raised); border: 1px solid var(--line); }
.c-cmd code { flex: 1; min-width: 0; font: 12.5px/1.6 var(--font-mono), monospace; color: var(--text-2); word-break: break-all; }
.c-cmd code span { color: var(--text-3); }
.c-note { margin: 16px 0 0; font-size: 14px; color: var(--text-3); }

/* ---------- his sign-off: the questions people ask, then his own words ---------- */
.c-end { margin-top: 150px; padding-bottom: 40px; text-align: center; position: relative; isolation: isolate; overflow: hidden; }
.c-asks-k { margin: 0 0 18px; font-size: 15px; font-weight: 600; color: var(--accent); }
.c-marq { display: flex; flex-direction: column; gap: 12px; direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.c-mrow { overflow: hidden; }
.c-mrow > div { display: flex; gap: 12px; width: max-content; animation: c-marq 70s linear infinite; }
.c-mrow.rev > div { animation-direction: reverse; animation-duration: 80s; }
.c-marq:hover .c-mrow > div { animation-play-state: paused; }
@keyframes c-marq { to { transform: translateX(-50%); } }
.c-mp { display: inline-flex; align-items: center; height: 52px; padding: 0 22px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font: inherit; font-size: 16px; color: var(--text); white-space: nowrap; direction: rtl; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
html[lang="en"] .c-mp { direction: ltr; }
.c-mp:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.c-sign { width: min(760px, calc(100% - 48px)); margin: 110px auto 0; position: relative; }
.c-sign::before { content: ""; position: absolute; inset: -30% -20% auto; height: 120%; z-index: -1; filter: blur(50px); opacity: .55;
  background: radial-gradient(45% 50% at 35% 45%, var(--c-glow1), transparent 70%), radial-gradient(40% 50% at 70% 55%, var(--c-glow3), transparent 70%); }
.c-sign img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--page, var(--bg)), 0 0 0 6px var(--accent); }
.c-sign h2 { margin: 26px 0 0; font-size: clamp(34px, 4.8vw, 64px); line-height: 1.2; font-weight: 700; }
.c-sign p { margin: 16px auto 0; max-width: 34em; font-size: 20px; line-height: 1.8; color: var(--text-2); }
.c-sig { display: block; margin: 14px 0 30px; font-size: 20px; font-weight: 600; color: var(--text); }
.c-lim { margin: 70px auto 0; padding: 0 24px; font-size: 14px; color: var(--text-3); }
.c-lim a { color: var(--text-3); } .c-lim a:hover { color: var(--accent); }

/* ---------- the header floats as a capsule in this view ---------- */
html[data-view="agent"] header.top { margin: 10px 16px 0; top: 10px; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px -18px rgba(0,0,0,.35); }

/* ---------- phones and small tablets: no pinning, every chapter shown in order ---------- */
@media (max-width: 900px) {
  .c-two { margin-top: 80px; width: calc(100% - 32px); }
  .c-two-g { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .c-link2 { flex-direction: row; justify-content: center; padding: 6px 0; }
  .c-link2 i { width: 40px; }
  .c-hero { min-height: 0; padding: 32px 16px 24px; }
  .c-hero-g { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .c-face { order: -1; width: min(200px, 56%); margin: 0 auto; border-radius: 24px; }
  .c-chip { flex: 1 1 100%; justify-content: center; }
  .c-end { margin-top: 90px; }
  .c-sign { margin-top: 70px; }
  .c { font-size: 17px; }
  .c-stage { height: auto; }
  .c-pin { position: static; height: auto; padding: 24px 0; }
  .c-frame { width: calc(100% - 24px); height: auto; border-radius: 26px; padding: 18px 14px; }
  .c-tabs { display: none; }
  .c-card { background: none; border: 0; box-shadow: none; overflow: visible; display: flex; flex-direction: column; gap: 14px; }
  .c-ch, .c-ch.past { position: relative; inset: auto; opacity: 1; transform: none; pointer-events: auto; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
  .c-ch:not(.on) .c-wa-body > *, .c-ch:not(.on) .c-a2a-body > *, .c-ch:not(.on) .c-ide-chat > * { opacity: 1; transform: none; }
  .c-ch-v { padding: 14px; }
  .c-tools { grid-template-columns: minmax(0, 1fr); }
  .c-add { margin-top: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  .c-in { opacity: 1; transform: none; }
  .c-mrow > div, .c-face canvas, .c-scan { animation: none; }
}

/* the hero asks straight away: a real composer, three real questions, and the other two ways underneath */
.c-ask { display: flex; align-items: center; gap: 10px; margin-top: 30px; padding: 8px; border-radius: 20px; border: 1.5px solid var(--line-strong); background: var(--surface);
  box-shadow: 0 20px 50px -30px var(--accent-glow); transition: border-color .2s, box-shadow .3s; }
.c-ask:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 20px 50px -30px var(--accent-glow); }
.c-ask img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; margin-inline-start: 4px; }
.c-ask input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 17px; outline: none; }
.c-ask input::placeholder { color: var(--text-3); }
.c-ask button { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border: 0; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.c-ask button:hover { filter: brightness(1.08); }
.c-also { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 18px 0 0; font-size: 15px; color: var(--text-3); }
.c-also button { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--text-2); font: inherit; font-size: 15px; cursor: pointer; border-bottom: 1px solid var(--line-strong); }
.c-also button:hover { color: var(--accent); border-color: var(--accent); }
.c-also svg { color: var(--accent); }
/* the chat preview in the stage is the real door to the chat */
.c-mock.chat { cursor: pointer; transition: transform .4s var(--ease), box-shadow .4s; }
.c-mock.chat:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -24px var(--accent-glow); }
.c-wa-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 12px 12px; padding: 0 6px 0 14px; height: 44px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--text-3); font-size: 14px; }
html[dir="rtl"] .c-wa-in { padding: 0 14px 0 6px; }
.c-wa-in i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.c-mock.chat:hover .c-wa-in { border-color: var(--accent); color: var(--text-2); }
.c-sign-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 900px) { .c-ask button { padding: 0 14px; } .c-ask img { display: none; } .c-chip { flex: 0 1 auto; } }
