/* Phase J: warmth. Cyan = machine, yellow = action, amber + coral = the human. Keep warm colours under ~10% of the pixels. */
@font-face { font-family: "Caveat"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/Caveat-600-latin.woff2") format("woff2"); }
:root { --lamp: #ffb86b; --coral: #ff9b85; --cream: #fff4e3; --hand: "Caveat", "Segoe Script", cursive; }
/* desk-lamp glow: the page sits under a lamp at night */
body::before { content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 12% -4%, rgba(255, 184, 107, .13), transparent 52%), radial-gradient(circle at 50% 118%, rgba(255, 155, 133, .06), transparent 50%); }
[dir="rtl"] body::before { background: radial-gradient(circle at 88% -4%, rgba(255, 184, 107, .13), transparent 52%), radial-gradient(circle at 50% 118%, rgba(255, 155, 133, .06), transparent 50%); }
:root[data-theme="white"] body::before { opacity: .55; }
/* springy hands-on feel */
.btn, .pkg, .detail, .cs-box, .yd-phone { transition-timing-function: cubic-bezier(.34, 1.56, .64, 1); }
.btn { transition-property: transform, background-color, color, border-color, box-shadow; transition-duration: .28s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .btn:hover, .btn:active { transform: none; } }
/* handwritten margin notes (the human voice) */
.note { font: 600 clamp(1.25rem, 2.2vw, 1.6rem)/1.15 var(--hand); color: var(--lamp); transform: rotate(-2deg); display: inline-flex; align-items: center; gap: 8px; margin: 0; text-wrap: balance; }
[lang="ar"] .note { font: 600 clamp(1.05rem, 1.8vw, 1.25rem)/1.4 var(--sans); }
.note svg { width: 34px; height: 26px; flex: 0 0 auto; overflow: visible; }
.note svg path { fill: none; stroke: var(--lamp); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .note svg { transform: scaleX(-1); }
.note.n-hero { margin: 14px 0 0; }
.note.n-flip { transform: rotate(1.5deg); }
.note.n-late { opacity: 0; transition: opacity .5s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.note.n-late.on { opacity: 1; }
/* who is behind this */
.desk-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; align-items: center; }
.desk-shot { margin: 0; aspect-ratio: 4 / 3; }
.desk-shot::after { display: none; }
.desk-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.desk-facts .note { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.desk-facts .note:nth-child(2) { transform: rotate(1.2deg); margin-inline-start: 22px; } .desk-facts .note:first-child { color: var(--coral); font-size: clamp(2rem, 3.6vw, 2.8rem); } .desk-facts .note:nth-child(3) { margin-inline-start: 10px; }
@media (max-width: 760px) { .desk-grid { grid-template-columns: 1fr; gap: 20px; } }
/* contact: an index card with a promise, taped to the drawing */
.promise { position: relative; max-width: 560px; margin: 16px 0 0; padding: 20px 24px 16px; background: var(--cream); color: #0c3a70; transform: rotate(-1deg); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); border-radius: 2px; }
.promise::before { content: ""; position: absolute; inset-block-start: -11px; left: 50%; width: 96px; height: 24px; margin-left: -48px; background: rgba(255, 155, 133, .88); transform: rotate(3deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.promise p { margin: 0; }
.promise .p1 { font: 700 clamp(1.05rem, 1.8vw, 1.25rem)/1.3 var(--sans); }
.promise .p2 { margin-top: 4px; font-size: .95rem; color: #3a5a85; }
.promise .p3 { margin-top: 8px; font: 700 11px var(--mono); letter-spacing: .12em; color: #7a5a3a; text-transform: uppercase; }
[lang="ar"] .promise .p3 { letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.promise .yota-guide { margin-top: 10px; }
/* Yota, the friendly guide (an AI, always labelled) */
.yota-guide { display: inline-flex; align-items: flex-end; gap: 8px; }
.yota-guide svg { width: 64px; height: 64px; flex: 0 0 auto; overflow: visible; cursor: pointer; }
.yota-guide .say { position: relative; max-width: 190px; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: var(--cream); color: #0c3a70; font: 700 13px/1.25 var(--sans); box-shadow: 0 4px 14px rgba(0, 0, 0, .3); transition: opacity .3s; }
[dir="rtl"] .yota-guide .say { border-radius: 14px 14px 4px 14px; }
.promise .yota-guide .say { background: #fff; border: 1px solid #e5d3b8; box-shadow: none; }
.yota-guide .y-head { fill: #0c3a70; stroke: #eaf2ff; stroke-width: 2; } .promise .yota-guide .y-head { stroke: #0c3a70; fill: #eaf2ff; }
.yota-guide .y-screen { fill: #082c58; } .promise .yota-guide .y-screen { fill: #0c3a70; }
.yota-guide .y-eye { fill: #eaf2ff; } .yota-guide .y-line { fill: none; stroke: #eaf2ff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.yota-guide .y-cheek { fill: var(--lamp); } .yota-guide .y-ant { stroke: #eaf2ff; stroke-width: 2; fill: none; } .promise .yota-guide .y-ant { stroke: #0c3a70; }
.yota-guide .y-pencil { fill: var(--lamp); stroke: #0c3a70; stroke-width: 1; }
.yota-guide .y-badge { fill: var(--coral); } .yota-guide .y-badge-t { fill: #0c3a70; font: 700 8px var(--mono); }
.yota-guide .y-pup { transform: translate(var(--ex, 0), var(--ey, 0)); transition: transform .12s linear; }
.yota-guide [data-x] { display: none; }
.yota-guide[data-e="hello"] [data-x~="hello"], .yota-guide[data-e="happy"] [data-x~="happy"], .yota-guide[data-e="think"] [data-x~="think"], .yota-guide[data-e="oops"] [data-x~="oops"] { display: inline; }
.yota-guide.wave svg { animation: fx8-wave .7s ease; transform-origin: 50% 90%; }
.yota-guide.blink .y-eye { animation: fx8-blink .25s ease; transform-box: fill-box; transform-origin: center; }
html.motion .yota-guide svg { animation: fx8-bob 4.5s ease-in-out infinite; }
@keyframes fx8-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes fx8-wave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-9deg); } 60% { transform: rotate(7deg); } }
@keyframes fx8-blink { 50% { transform: scaleY(.1); } }
.y-heart { position: absolute; color: var(--coral); font-size: 22px; pointer-events: none; animation: fx8-heart 2.2s ease-out forwards; }
@keyframes fx8-heart { from { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: 1; } to { opacity: 0; transform: translateY(-34px) scale(1.15); } }
.hero-yota { position: absolute; inset-inline-end: 3%; inset-block-end: 44px; z-index: 6; }
@media (max-width: 900px) { .hero-yota { display: none; } }
.cs-bar .yota-guide { margin-inline-end: 6px; } .cs-bar .yota-guide svg { width: 48px; height: 48px; } .cs-bar .yota-guide .say { font-size: 12px; }

/* phones: no dead air while scrolling — tighter hero, quicker fades, a quicker fades */
@media (max-width: 900px) {
  .steps { min-height: 2.6em; margin-bottom: 8px; }
  html.motion .reveal, html.motion .frame { transition-duration: .5s; }
  html.motion .reveal:not(.in), html.motion .frame:not(.in) { transform: translate3d(0, 8px, 0); }
}
