/* ==========================================================================
   HIC — landing page styles · Japanese-cartoon edition
   Warm paper, thick ink outlines, hard offset shadows, pastel fills,
   manga details (speech bubbles, speed lines, screentone, hanko stamp).
   Fonts are self-hosted subsets (no font CDN → works on restricted networks).
   Logical properties everywhere for RTL (fa / ar).
   ========================================================================== */

@font-face { font-family: "HIC Latin"; src: url("../fonts/hic-latin-500.woff2?v=20260930233853") format("woff2"); font-weight: 300 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "HIC Latin"; src: url("../fonts/hic-latin-800.woff2?v=20260930233853") format("woff2"); font-weight: 700 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "HIC Latin"; src: url("../fonts/hic-cyrillic-500.woff2?v=20260930233853") format("woff2"); font-weight: 300 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "HIC Latin"; src: url("../fonts/hic-cyrillic-800.woff2?v=20260930233853") format("woff2"); font-weight: 700 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "HIC Persian"; src: url("../fonts/hic-persian-500.woff2?v=20260930233853") format("woff2"); font-weight: 300 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+2066-2069, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "HIC Persian"; src: url("../fonts/hic-persian-800.woff2?v=20260930233853") format("woff2"); font-weight: 700 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+2066-2069, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "HIC Myanmar"; src: url("../fonts/hic-myanmar-500.woff2?v=20260930233853") format("woff2"); font-weight: 300 600; font-display: swap; unicode-range: U+1000-109F, U+200C-200D, U+25CC, U+A9E0-A9FF, U+AA60-AA7F; }
@font-face { font-family: "HIC Myanmar"; src: url("../fonts/hic-myanmar-800.woff2?v=20260930233853") format("woff2"); font-weight: 700 900; font-display: swap; unicode-range: U+1000-109F, U+200C-200D, U+25CC, U+A9E0-A9FF, U+AA60-AA7F; }
@font-face { font-family: "HIC Round"; src: url("../fonts/hic-round-kr-medium.woff2?v=20260930233853") format("woff2"); font-weight: 300 600; font-display: swap; unicode-range: U+1100-11FF, U+3130-318F, U+A960-A97F, U+AC00-D7AF, U+D7B0-D7FF; }
@font-face { font-family: "HIC Round"; src: url("../fonts/hic-round-kr-heavy.woff2?v=20260930233853") format("woff2"); font-weight: 700 900; font-display: swap; unicode-range: U+1100-11FF, U+3130-318F, U+A960-A97F, U+AC00-D7AF, U+D7B0-D7FF; }
@font-face { font-family: "HIC Round"; src: url("../fonts/hic-round-medium.woff2?v=20260930233853") format("woff2"); font-weight: 300 600; font-display: swap; }
@font-face { font-family: "HIC Round"; src: url("../fonts/hic-round-heavy.woff2?v=20260930233853") format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "HIC Arabic"; src: url("../fonts/hic-arabic-500.woff2?v=20260930233853") format("woff2"); font-weight: 300 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+2066-2069, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "HIC Arabic"; src: url("../fonts/hic-arabic-800.woff2?v=20260930233853") format("woff2"); font-weight: 700 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+2066-2069, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  /* Claude-inspired palette: ivory, cream, clay, kraft, olive, sky, warm charcoal */
  --paper: #FAF9F5;
  --paper-2: #F0EEE6;
  --white: #FFFFFF;
  --ink: #262624;
  --ink-2: #3D3D3A;
  --muted: #6B6A63;
  --clay: #D97757;
  --clay-ink: #A8482A;
  --clay-deep: #C15F3C;
  --pink: #F2C4B3;
  --pink-soft: #F8E6DD;
  --green: #C2CDA8;
  --green-soft: #E8ECDD;
  --green-deep: #5E7045;
  --blue: #BFD3E8;
  --blue-soft: #E4ECF4;
  --yellow: #EDC9A0;
  --yellow-soft: #F5EAD8;
  --red: #C15F3C;
  --night: #262624;
  --night-2: #1F1E1D;
  --night-ink: #141413;
  --on-night: #FAF9F5;
  --on-night-muted: #B0AEA5;
  --board: #30302E;

  --font: "HIC Latin", "HIC Round", "HIC Arabic", "Hiragino Maru Gothic ProN", "Yuanti SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "HIC Round", "HIC Arabic", monospace;

  --bw: 2.5px;
  --sh: 4px 4px 0 var(--ink);
  --sh-lg: 7px 7px 0 var(--ink);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-bounce: cubic-bezier(.2, 1.6, .4, 1);
  --ease-soft: cubic-bezier(.45, .05, .2, 1);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 72px;
  --track: .01em;
}
:lang(zh-CN) { --font: "HIC Round", "HIC Latin", "HIC Arabic", "Hiragino Maru Gothic ProN", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
:lang(zh-Hant) { --font: "HIC Round", "HIC Latin", "HIC Arabic", "Hiragino Maru Gothic ProN", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif; }
:lang(my) { --font: "HIC Myanmar", "HIC Latin", "HIC Round", "Myanmar Text", "Myanmar Sangam MN", "Noto Sans Myanmar", system-ui, sans-serif; --track: 0; }
:lang(ko) { --font: "HIC Round", "HIC Latin", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif; }
:lang(ko) body, body:lang(ko) { word-break: keep-all; }
:lang(my) body, body:lang(my) { line-height: 2; }
:lang(my) .hero-title, :lang(my) .h2, :lang(my) .display, :lang(my) .process-title, :lang(my) .tool-title, :lang(my) .team-title, :lang(my) .card-title, :lang(my) .manifesto-text { line-height: 1.7; letter-spacing: 0; }
:lang(my) .hero-title { font-size: clamp(32px, 2.6vw + 14px, 58px); }
:lang(my) .h2, :lang(my) .display { font-size: clamp(26px, 2vw + 14px, 48px); }
:lang(my) .manifesto-text { font-size: clamp(22px, 1.6vw + 12px, 38px); }
:lang(fa) { --font: "HIC Persian", "HIC Latin", "HIC Round", "Geeza Pro", Tahoma, system-ui, sans-serif; --track: 0; }
:lang(ar) { --font: "HIC Arabic", "HIC Latin", "HIC Round", "Geeza Pro", Tahoma, system-ui, sans-serif; --track: 0; }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font); font-weight: 500; font-size: 17px; line-height: 1.7; color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(38, 38, 36, .07) 1.1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
:lang(fa) body, body:lang(fa), :lang(ar) body, body:lang(ar) { line-height: 1.9; }
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3 { overflow-wrap: break-word; }
p, li, .card-body, .card-extra { text-wrap: pretty; }
@media (max-width: 360px) { :lang(ru) h1, :lang(ru) h2 { hyphens: auto; } }
em { font-style: normal; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--yellow); color: var(--ink); }

.skip-link { position: fixed; inset-inline-start: 16px; top: -60px; z-index: 300; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 12px; transition: top .3s var(--ease-out); }
.skip-link:focus { top: 12px; }
.noscript { padding: 16px; text-align: center; background: var(--yellow-soft); }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir="rtl"] .ic-arrow { transform: scaleX(-1); }

/* ---------- type ---------- */
.eyebrow { display: block; }
.sticker {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px 6px;
  border: var(--bw) solid var(--ink); border-radius: 999px; background: var(--yellow);
  font-size: 13.5px; font-weight: 800; letter-spacing: .04em; line-height: 1.3; color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink); transform: rotate(-2deg);
}
:lang(fa) .sticker, :lang(ar) .sticker { letter-spacing: 0; transform: rotate(2deg); }
.sticker-pink { background: var(--pink); }
.sticker-blue { background: var(--blue); }
.sticker-green { background: var(--green); }
.sticker-ink { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--white); border-color: var(--ink); }
.h2 { font-weight: 800; font-size: clamp(30px, 2.8vw + 16px, 58px); line-height: 1.22; letter-spacing: var(--track); text-wrap: balance; }
.display { font-weight: 800; font-size: clamp(42px, 5vw + 16px, 100px); line-height: 1.12; letter-spacing: var(--track); text-wrap: balance; }
:lang(fa) .h2, :lang(ar) .h2, :lang(fa) .display, :lang(ar) .display { line-height: 1.45; }
:lang(fa) .scale-copy .h2, :lang(ar) .scale-copy .h2 { font-size: clamp(28px, 2.1vw + 14px, 48px); }
[dir="rtl"] .twinkle.t1 { display: none; }
.lead { font-size: clamp(16.5px, .3vw + 15.5px, 19px); line-height: 1.8; color: var(--ink-2); max-width: 42em; text-wrap: pretty; }

/* ---------- buttons (tactile, press down) ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 999px; border: var(--bw) solid var(--ink);
  font-size: 16px; font-weight: 800; letter-spacing: var(--track); white-space: nowrap;
  box-shadow: 0 5px 0 var(--ink); transform: translateY(0);
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out), background-color .2s;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); transition-duration: .05s; }
.btn .ic-arrow { transition: transform .4s var(--ease-spring); }
.btn:hover .ic-arrow { transform: translateX(4px); }
[dir="rtl"] .btn:hover .ic-arrow { transform: scaleX(-1) translateX(4px); }
.btn-primary { background: var(--clay); color: var(--ink); }
.btn-primary:hover { background: #E38A6B; }
.btn-ghost { background: var(--white); color: var(--ink); }
.btn-ghost:hover { background: var(--yellow-soft); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--yellow); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14.5px; box-shadow: 0 4px 0 var(--ink); }
.btn-sm:hover { box-shadow: 0 5px 0 var(--ink); }
.btn-lg { height: 62px; padding: 0 34px; font-size: 18px; }

/* ---------- progress + nav ---------- */
.progress { position: fixed; top: 0; inset-inline: 0; height: 4px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--clay) 0 14px, var(--yellow) 14px 28px); transform-origin: left; transform: scaleX(var(--p, 0)); }
[dir="rtl"] .progress i { transform-origin: right; }
.nav { position: fixed; top: 0; inset-inline: 0; z-index: 50; height: var(--nav-h); transition: transform .5s var(--ease-out), background-color .3s, box-shadow .3s; }
.nav.scrolled { background: rgba(255, 248, 236, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 var(--bw) 0 var(--ink); }
.nav.hide { transform: translateY(-110%); }
.nav:focus-within { transform: none; }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 22px; }
.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo-mark { width: 40px; height: 40px; overflow: visible; transition: transform .5s var(--ease-bounce); }
.logo:hover .logo-mark { transform: rotate(-12deg) translateY(-3px); }
.logo-word { font-weight: 900; font-size: 26px; letter-spacing: .02em; font-family: "HIC Latin", "HIC Round", system-ui, sans-serif; }
.nav-links { display: flex; gap: 4px; margin-inline-start: 10px; }
.nav-links a { position: relative; padding: 7px 14px; font-size: 15px; font-weight: 700; border-radius: 999px; border: 2px solid transparent; transition: background-color .2s, border-color .2s, transform .3s var(--ease-spring); }
.nav-links a:hover { background: var(--white); border-color: var(--ink); transform: rotate(-2deg); }
.nav-links a.active { background: var(--yellow); border-color: var(--ink); }
.nav-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; border-radius: 999px; font-size: 14.5px; font-weight: 700; border: var(--bw) solid var(--ink); background: var(--white); box-shadow: 0 3px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.lang-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.lang-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.lang-btn .ic-chev { width: 14px; height: 14px; transition: transform .35s var(--ease-spring); }
.lang-btn[aria-expanded="true"] .ic-chev { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 12px); inset-inline-end: 0; min-width: 220px; padding: 6px; background: var(--white); border: var(--bw) solid var(--ink); border-radius: 18px; box-shadow: var(--sh-lg); transform-origin: top right; animation: popIn .4s var(--ease-bounce); z-index: 5; }
[dir="rtl"] .lang-menu { transform-origin: top left; }
.lang-menu[hidden] { display: none; }
.lang-menu button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 12px; font-size: 15.5px; font-weight: 700; text-align: start; transition: background-color .15s; }
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--yellow-soft); outline: none; }
.menu-flags { display: inline-flex; gap: 4px; flex: none; }
.menu-flags img { width: 20px; height: 15px; border-radius: 3px; border: 1.5px solid var(--ink); object-fit: cover; }
.lang-menu button[aria-checked="true"] { background: var(--yellow); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; border: var(--bw) solid var(--ink); background: var(--white); box-shadow: 0 3px 0 var(--ink); }
.burger i { position: absolute; left: 11px; right: 11px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .45s var(--ease-spring), top .3s; }
.burger i:first-child { top: 14px; }
.burger i:last-child { top: 22px; }
.burger[aria-expanded="true"] i:first-child { top: 18px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { top: 18px; transform: rotate(-45deg); }
.mobile-menu { position: absolute; top: var(--nav-h); inset-inline: 0; background: var(--paper); border-block: var(--bw) solid var(--ink); animation: dropIn .45s var(--ease-out); }
.mobile-menu { max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 1081px) { .mobile-menu { display: none !important; } }
.mobile-menu nav { display: flex; flex-direction: column; padding-block: 8px 22px; }
.mobile-menu a:not(.btn) { padding: 14px 4px; font-size: 20px; font-weight: 800; border-bottom: 2px dashed rgba(38, 38, 36, .2); }
.mobile-menu .btn { margin-top: 18px; }

/* ---------- speech bubble ---------- */
.bubble { position: absolute; display: inline-flex; align-items: center; padding: 8px 18px; background: var(--white); border: var(--bw) solid var(--ink); border-radius: 22px; font-weight: 800; box-shadow: var(--sh); white-space: nowrap; }
.bubble::after { content: ""; position: absolute; bottom: -11px; inset-inline-start: 30px; width: 18px; height: 18px; background: var(--white); border-inline-end: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); transform: skewX(-28deg) rotate(45deg); border-radius: 0 0 4px 0; }
[dir="rtl"] .bubble::after { transform: skewX(28deg) rotate(-45deg); border-radius: 0 0 0 4px; }

/* ---------- mascot ---------- */
.mascot { position: relative; display: block; aspect-ratio: 1; cursor: pointer; touch-action: manipulation; border-radius: 40%; }
.mascot:focus-visible { outline-offset: 0; }
.mascot-svg { width: 100%; height: 100%; overflow: visible; }
.m-all { transform-origin: 110px 205px; animation: mBob 2.8s var(--ease-soft) infinite; }
.m-shadow { fill: var(--ink); opacity: .14; transform-origin: 110px 208px; animation: mShadow 2.8s var(--ease-soft) infinite; }
.m-star-o { fill: var(--ink); stroke: var(--ink); stroke-width: 11; stroke-linejoin: round; }
.m-star { fill: var(--spark, var(--clay)); }
/* the "thinking" spark: rays turn slowly and breathe; the face stays upright */
.m-rays { transform-origin: 110px 110px; animation: raysSpin 18s linear infinite; }
.m-rays-inner { transform-origin: 110px 110px; animation: raysBreath 2.8s var(--ease-soft) infinite; }
.m-face { transform: translate(calc(var(--lx, 0px) * .45), calc(var(--ly, 0px) * .45)); transition: transform .35s var(--ease-out); }
.m-eyes { transform: translate(var(--lx, 0px), var(--ly, 0px)); transition: transform .25s var(--ease-out), opacity .1s; }
.m-eye { transform-box: fill-box; transform-origin: center; transition: transform .08s; }
.is-blinking .m-eye { transform: scaleY(.12); }
.m-eye ellipse { fill: var(--ink); }
.m-glint { fill: #fff; }
.m-happy-eyes { opacity: 0; transition: opacity .1s; }
.m-happy-eyes path { fill: none; stroke: var(--ink); stroke-width: 5.5; stroke-linecap: round; }
.m-cheek { fill: #F6C1AA; transition: fill .2s; }
.m-mouth { fill: none; stroke: var(--ink); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; transition: opacity .1s; }
.m-mouth-open { fill: #6E2A16; stroke: var(--ink); stroke-width: 4.5; stroke-linejoin: round; opacity: 0; transition: opacity .1s; }
.happy .m-eyes, .happy .m-mouth { opacity: 0; }
.happy .m-happy-eyes, .happy .m-mouth-open { opacity: 1; }
.happy .m-cheek { fill: #F2A98D; }

/* manga speed lines (集中線) */
.speed-lines { position: absolute; inset: -10%; pointer-events: none; background: repeating-conic-gradient(from 0deg, rgba(38, 38, 36, .13) 0deg 1.1deg, transparent 1.1deg 6.5deg); -webkit-mask-image: radial-gradient(closest-side, transparent 38%, #000 46%, #000 62%, transparent 76%); mask-image: radial-gradient(closest-side, transparent 38%, #000 46%, #000 62%, transparent 76%); animation: speed 1.2s steps(3) infinite; opacity: .9; }
.speed-lines.burst-on { animation: speed .18s steps(2) infinite; opacity: 1; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(780px, 100svh); padding-top: calc(var(--nav-h) + clamp(24px, 5vh, 64px)); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 88% 18%, var(--yellow-soft), transparent 70%), radial-gradient(50% 40% at 0% 100%, var(--pink-soft), transparent 70%); }
.world { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; touch-action: manipulation; cursor: crosshair; opacity: 0; transition: opacity 1.4s var(--ease-out) .2s; }
.world.ready { opacity: 1; }
.hero-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cloud { position: absolute; width: 130px; height: 65px; animation: drift 9s var(--ease-soft) infinite alternate; }
.cloud.c1 { top: 16%; inset-inline-end: 38%; width: 110px; }
.cloud.c2 { top: 9%; inset-inline-end: 6%; width: 150px; animation-duration: 11s; animation-delay: -3s; }
.cloud.c3 { top: 46%; inset-inline-end: 2%; width: 90px; animation-duration: 8s; animation-delay: -5s; }
.twinkle { position: absolute; width: 26px; height: 26px; fill: var(--yellow); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; animation: twinkle 2.4s var(--ease-soft) infinite; }
.twinkle.t1 { top: 22%; inset-inline-start: 48%; }
.twinkle.t2 { top: 34%; inset-inline-end: 34%; width: 18px; animation-delay: -.8s; }
.twinkle.t3 { top: 12%; inset-inline-start: 30%; width: 16px; animation-delay: -1.6s; fill: var(--pink); }
.map-pins { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.pin { position: absolute; left: 0; top: 0; padding: 3px 10px 4px; font-size: 13px; font-weight: 800; background: var(--white); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 2px 2px 0 var(--ink); white-space: nowrap; transform: translate(-50%, -130%); animation: pinPop 2.2s var(--ease-bounce) forwards; }
.pin::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 10px; height: 10px; margin-left: -5px; background: var(--white); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); }

.hero-grid { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 24px; pointer-events: none; }
.hero-inner a, .hero-inner button, .hero-art .mascot { pointer-events: auto; }
.hero-title { margin-top: 22px; font-weight: 800; font-size: clamp(40px, 3.4vw + 16px, 78px); line-height: 1.16; letter-spacing: var(--track); text-wrap: balance; }
:lang(fa) .hero-title, :lang(ar) .hero-title { line-height: 1.45; }
.hl { position: relative; display: inline-block; white-space: nowrap; isolation: isolate; color: var(--clay-ink); }
.hl::before { content: ""; position: absolute; z-index: -1; inset-inline: -.1em; bottom: .04em; height: .42em; background: var(--yellow); border-radius: .25em; transform: scaleX(0) rotate(-1.5deg); transform-origin: left center; animation: marker .7s var(--ease-out) forwards; animation-delay: var(--sd, .9s); }
[dir="rtl"] .hl::before { transform-origin: right center; }
.hero-lead { margin-top: 22px; max-width: 34em; font-size: clamp(16.5px, .4vw + 15px, 19.5px); line-height: 1.8; color: var(--ink-2); text-wrap: pretty; }
.hero-roles { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: .35em; font-size: clamp(19px, .9vw + 14px, 26px); font-weight: 800; }
.hero-roles > span:empty { display: none; }
.roles { position: relative; display: inline-block; height: 1.6em; line-height: 1.6em; padding-inline: .45em; border: var(--bw) solid var(--ink); border-radius: 12px; background: var(--white); box-shadow: 3px 3px 0 var(--ink); overflow: hidden; transition: width .5s var(--ease-spring); color: var(--clay-ink); box-sizing: content-box; }
.roles-word { position: absolute; top: 0; inset-inline-start: .45em; white-space: nowrap; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-tags { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-2); font-size: 14.5px; font-weight: 700; }
.hero-tags li { display: inline-flex; align-items: center; gap: 7px; }
.hero-tags .ic { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--green); border: 2px solid var(--ink); stroke-width: 3; color: var(--ink); }
.hero-art { position: relative; height: clamp(300px, 34vw, 480px); display: grid; place-items: end center; }
.hero-art .speed-lines { inset: 0 -8% 0; }
.mascot-hero { width: clamp(220px, 24vw, 340px); margin-bottom: 2%; }
.hello-bubble { top: 6%; inset-inline-start: 4%; font-size: clamp(20px, 1.4vw + 12px, 30px); padding: 8px 20px 10px; z-index: 2; animation: floaty 3.4s var(--ease-soft) infinite; }
.hello-track { position: relative; display: inline-block; height: 1.4em; line-height: 1.4em; overflow: hidden; transition: width .5s var(--ease-spring); vertical-align: middle; }
.hello-track span { position: absolute; top: 0; inset-inline-start: 0; white-space: nowrap; }
.map-ui { position: absolute; left: 0; right: 0; bottom: 20px; z-index: 4; display: flex; justify-content: space-between; align-items: center; gap: 12px; pointer-events: none; margin-inline: auto; }
.map-hint, .map-meter { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; background: var(--white); padding: 7px 14px; border-radius: 999px; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.map-hint .ic { width: 18px; height: 18px; color: var(--clay-ink); animation: tap 1.8s var(--ease-soft) infinite; }
.meter { position: relative; width: 76px; height: 10px; border-radius: 10px; background: var(--paper-2); border: 2px solid var(--ink); overflow: hidden; }
.meter i { position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, var(--clay) 0 6px, #E8A084 6px 12px); transform-origin: left; transform: scaleX(var(--lit, 0)); transition: transform .5s var(--ease-spring); }
[dir="rtl"] .meter i { transform-origin: right; }
.map-meter.done { background: var(--yellow); animation: jelly .8s var(--ease-bounce); }
.meter-text { font-variant-numeric: tabular-nums; }

/* split-text reveal — words bounce in */
.w { display: inline-block; opacity: 0; transform: translateY(.6em) scale(.7) rotate(-6deg); animation: wIn .7s var(--ease-bounce) forwards; animation-delay: calc(var(--i) * 45ms + 120ms); }
[dir="rtl"] .w { transform: translateY(.6em) scale(.7) rotate(6deg); }

/* ---------- flags band (万国旗-style waving flags) ---------- */
.flags { position: relative; padding-block: clamp(48px, 5vw, 72px) clamp(40px, 4vw, 56px); background: var(--paper); overflow: hidden; }
.flags-head { display: grid; justify-items: center; gap: 12px; text-align: center; }
.flags-title { font-weight: 900; font-size: clamp(22px, 1.3vw + 14px, 34px); line-height: 1.35; text-wrap: balance; }
.flags-hint { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.flags-hint .ic { width: 18px; height: 18px; color: var(--clay-ink); animation: tap 1.8s var(--ease-soft) infinite; }
.flags-pay { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 18px 9px; border-radius: 999px; background: var(--green-soft); border: 2px dashed var(--ink); font-size: 15px; font-weight: 800; line-height: 1.5; text-align: start; max-width: 100%; }
.flags-pay .ic { width: 26px; height: 26px; flex: none; fill: #E3B75E; stroke: var(--ink); stroke-width: 1.8; animation: coinFlip 3.2s var(--ease-soft) infinite; }
@keyframes coinFlip { 0%, 70%, 100% { transform: rotateY(0deg); } 85% { transform: rotateY(180deg); } }
.flag-cur { position: absolute; left: 21px; top: 72px; padding: 1px 6px 2px 11px; border-radius: 3px 6px 6px 3px; background: #F5EAD8; border: 1.5px solid var(--ink); font-family: var(--mono); font-size: 10px; font-weight: 700; line-height: 1.4; letter-spacing: .04em; color: var(--ink); transform-origin: 0 50%; transform: rotate(9deg); animation: tagSwing 2.6s var(--ease-soft) infinite; }
.flag-cur::before { content: ""; position: absolute; left: 3px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--ink); }
@keyframes tagSwing { 0%, 100% { transform: rotate(9deg); } 50% { transform: rotate(-4deg); } }
.flag-row { position: relative; margin: 28px auto 0; max-width: calc(var(--container) + var(--gutter) * 2); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px clamp(2px, .8vw, 12px); padding-inline: var(--gutter); }
.flag::after { content: ""; position: absolute; left: -8px; right: -8px; top: 130px; height: 3px; background: repeating-linear-gradient(90deg, var(--ink) 0 10px, transparent 10px 18px); opacity: .22; pointer-events: none; z-index: -1; }
.flag-item { flex: none; }
.flag { --fw: 72px; --fh: 54px; --sw: 6px; position: relative; display: block; width: calc(var(--fw) + 26px); height: 170px; touch-action: manipulation; }
.flag-pole { position: absolute; left: 12px; top: 8px; width: 7px; height: 118px; border-radius: 4px; background: #D4A27F; border: 2px solid var(--ink); }
.flag-pole::before { content: ""; position: absolute; left: 50%; top: -12px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--clay); border: 2px solid var(--ink); }
.flag-mound { position: absolute; left: 1px; top: 120px; width: 30px; height: 12px; border-radius: 50% 50% 4px 4px; background: #C2CDA8; border: 2px solid var(--ink); }
.flag-cloth { position: absolute; left: 18px; top: 12px; width: var(--fw); height: var(--fh); transform-origin: left center; transition: transform .5s var(--ease-bounce); }
.flag-cloth i { position: absolute; top: 0; bottom: 0; left: calc(var(--i) * var(--sw)); width: calc(var(--sw) + .6px); background-image: var(--flag); background-size: var(--fw) var(--fh); background-position: calc(var(--i) * var(--sw) * -1) 0; background-repeat: no-repeat; border-block: 2px solid var(--ink); animation: flutter var(--dur, 1.1s) var(--ease-soft) infinite; animation-delay: calc(var(--i) * -.09s); --amp: calc(var(--i) * .55px + .3px); }
.flag-cloth i:first-child { border-left: 2px solid var(--ink); border-radius: 2px 0 0 2px; }
.flag-cloth i:last-child { border-right: 2px solid var(--ink); border-radius: 0 2px 2px 0; }
.paused .flag-cloth i, .paused .flag-cloth i::after, .paused .star { animation-play-state: paused; }
.flag-cloth i::after { content: ""; position: absolute; inset: 0; background: #000; opacity: 0; animation: shade var(--dur, 1.1s) var(--ease-soft) infinite; animation-delay: calc(var(--i) * -.09s + .28s); }
.flag:hover .flag-cloth, .flag:focus-visible .flag-cloth { transform: rotate(-4deg) scaleX(1.04); }
.flag:hover, .flag.gust { --dur: .5s; }
.flag.gust .flag-cloth { animation: gust .7s var(--ease-bounce); }
.flag-hello { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%) rotate(-3deg); padding: 2px 10px 3px; border-radius: 999px; background: var(--white); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); font-size: 13.5px; font-weight: 800; white-space: nowrap; transition: transform .4s var(--ease-bounce), background-color .2s; }
.flag:hover .flag-hello, .flag.current .flag-hello { transform: translateX(-50%) rotate(3deg) scale(1.08); background: var(--yellow); }
.flag.current .flag-pole::before { background: var(--green-deep); }
.flag-item[data-reveal] { translate: 0 46px; scale: .9; }
@keyframes flutter { 0%, 100% { transform: translateY(calc(var(--amp) * -1)); } 50% { transform: translateY(var(--amp)); } }
@keyframes shade { 0%, 100% { opacity: 0; } 50% { opacity: .16; } }
@keyframes gust { 0% { transform: rotate(0deg); } 30% { transform: rotate(-10deg) scaleX(1.08); } 60% { transform: rotate(4deg); } 100% { transform: rotate(0deg); } }

/* ---------- manifesto ---------- */
.manifesto { position: relative; height: 230vh; background: var(--paper-2); border-block: var(--bw) solid var(--ink); }
.manifesto::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(217, 119, 87, .22) 2px, transparent 2.6px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(135deg, #000 0%, transparent 35%, transparent 70%, #000 100%); mask-image: linear-gradient(135deg, #000 0%, transparent 35%, transparent 70%, #000 100%); pointer-events: none; }
.manifesto-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.manifesto-box { position: relative; }
.manifesto-text { margin-top: 26px; max-width: 24em; font-weight: 800; font-size: clamp(26px, 2.2vw + 12px, 50px); line-height: 1.5; letter-spacing: var(--track); text-wrap: pretty; }
:lang(fa) .manifesto-text, :lang(ar) .manifesto-text { line-height: 1.75; }
.manifesto-text .t { color: rgba(38, 38, 36, .16); transition: color .35s var(--ease-out), background-color .35s; border-radius: .15em; }
.manifesto-text .t.on { color: var(--ink); }
.manifesto-text .t.accent.on { color: var(--clay-ink); }
.accent-run { background: linear-gradient(transparent 62%, var(--yellow) 62%) no-repeat; background-size: 0% 100%; transition: background-size .9s var(--ease-out); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
[dir="rtl"] .accent-run { background-position: right; }
.accent-run.lit { background-size: 100% 100%; }
.hanko { position: absolute; inset-inline-end: 3%; bottom: -30px; width: clamp(110px, 12vw, 160px); opacity: 0; transform: scale(2.2) rotate(-30deg); pointer-events: none; mix-blend-mode: multiply; }
.hanko svg { width: 100%; height: auto; overflow: visible; }
.hanko.stamped { animation: stamp .6s var(--ease-bounce) forwards; }
.hk-o { fill: none; stroke: var(--red); stroke-width: 6; }
.hk-i { fill: rgba(214, 69, 58, .08); stroke: var(--red); stroke-width: 3; }
.hk-ring { font-size: 11.5px; font-weight: 800; letter-spacing: 2.4px; fill: var(--red); font-family: "HIC Latin", "HIC Round", sans-serif; }
.hk-t { font-size: 21px; font-weight: 900; fill: var(--red); font-family: "HIC Latin", "HIC Round", sans-serif; letter-spacing: 1px; }
.peek { position: absolute; bottom: 0; inset-inline-start: clamp(12px, 6vw, 90px); width: clamp(120px, 14vw, 190px); aspect-ratio: 1 / .62; overflow: hidden; pointer-events: none; }
.peek .mascot-svg { position: absolute; left: 0; right: 0; top: 0; height: auto; aspect-ratio: 1; transform: translateY(calc(4% + (1 - var(--peek, 0)) * 60%)); transition: transform .5s var(--ease-spring); }

/* ---------- pillars ---------- */
.pillars { padding-block: clamp(70px, 8vw, 120px) clamp(60px, 7vw, 100px); }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.pillar { padding: 24px 26px 28px; background: var(--white); border: var(--bw) solid var(--ink); border-radius: 26px; box-shadow: var(--sh-lg); transition: transform .45s var(--ease-spring), box-shadow .3s; }
.pillar:nth-child(2) { background: var(--blue-soft); }
.pillar:nth-child(3) { background: var(--green-soft); }
.pillar:hover { transform: translateY(-6px) rotate(-1.2deg); box-shadow: 10px 10px 0 var(--ink); }
.pillar-art { height: 120px; margin-bottom: 8px; }
.pillar-art svg { width: 100%; height: 100%; overflow: visible; }
.pillar-tag { display: flex; align-items: center; gap: 10px; font-size: 30px; font-weight: 900; line-height: 1.2; }
.pillar-tag .num { font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.pillar h3 { margin-top: 10px; font-size: 19px; font-weight: 800; }
.pillar p:last-child { margin-top: 8px; color: var(--ink-2); line-height: 1.75; }

/* shared little SVG animations */
.bob { transform-box: fill-box; transform-origin: center bottom; animation: bob 2.4s var(--ease-soft) infinite; }
.bob.b2 { animation-delay: -.6s; }
.bob.b3 { animation-delay: -1.2s; }
.key { transform-box: fill-box; transform-origin: 90% 10%; animation: swing 2.2s var(--ease-soft) infinite; }
.bulb { transform-box: fill-box; transform-origin: center bottom; animation: bulb 2.6s var(--ease-soft) infinite; }
.heart { transform-box: fill-box; transform-origin: center; animation: beat 1.3s var(--ease-soft) infinite; }
.pencil { transform-box: fill-box; transform-origin: bottom left; animation: scribble 1.6s var(--ease-soft) infinite; }
.paper.p-back { transform-box: fill-box; transform-origin: center; animation: sway 3s var(--ease-soft) infinite; }
.blink { animation: blinkA 1.1s steps(1) infinite; }

/* ---------- generic section ---------- */
.section { padding-block: clamp(84px, 9vw, 140px); position: relative; }
.section-head { position: relative; display: grid; gap: 18px; max-width: 780px; }

/* ---------- scenarios ---------- */
.scenarios { padding-top: clamp(40px, 5vw, 80px); }
.seg-row { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: var(--white); border: var(--bw) solid var(--ink); box-shadow: var(--sh); }
.seg button { position: relative; z-index: 1; padding: 9px 22px; border-radius: 999px; font-size: 15px; font-weight: 800; white-space: nowrap; touch-action: manipulation; }
.seg-thumb { position: absolute; top: 5px; bottom: 5px; left: var(--tx, 5px); width: var(--tw, calc(50% - 5px)); border-radius: 999px; background: var(--yellow); border: 2px solid var(--ink); transition: left .55s var(--ease-bounce), width .55s var(--ease-bounce); }
.seg-hint { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.seg-hint .ic { width: 16px; height: 16px; animation: spin 4s linear infinite; }

.cards { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.flip-card { perspective: 1400px; border-radius: 26px; cursor: pointer; outline: none; touch-action: manipulation; }
.flip-card:focus-visible .face { outline: 3px solid var(--blue); outline-offset: 3px; }
.flip-tilt { height: 100%; transform-style: preserve-3d; transition: transform .6s var(--ease-out); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.flip-inner { display: grid; height: 100%; transform-style: preserve-3d; transition: transform .9s var(--ease-spring); transition-delay: var(--fd, 0s); }
.flip-card.flipped .flip-inner { transform: rotateY(180deg); }
.face { grid-area: 1 / 1; position: relative; display: flex; flex-direction: column; min-height: 440px; padding: 22px 24px 26px; border-radius: 26px; border: var(--bw) solid var(--ink); box-shadow: var(--sh-lg); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.front { background: var(--tone, var(--white)); }
.back { background: var(--night); color: var(--on-night); transform: rotateY(180deg); }
.face-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-tag { font-size: 12.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--white); border: 2px solid var(--ink); }
.back .card-tag { background: var(--yellow); color: var(--ink); }
.card-no { font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--muted); }
.card-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--night-2); border: 2px solid var(--on-night-muted); color: var(--yellow); }
.card-art { height: 132px; margin-top: 10px; display: grid; place-items: center; }
.card-art svg { width: 100%; max-width: 230px; height: 100%; overflow: visible; }
@media (min-width: 861px) { .card-title { min-height: 2.5em; } .back .card-title { min-height: 0; } }
.card-title { margin-top: 14px; font-weight: 900; font-size: clamp(24px, 1.2vw + 14px, 32px); line-height: 1.25; }
.back .card-title { margin-top: 30px; }
.card-body { margin-top: 10px; color: var(--ink-2); line-height: 1.7; }
.back .card-body { color: var(--on-night-muted); }
.card-extra { margin-top: auto; padding-top: 16px; font-size: 14.5px; color: var(--ink-2); line-height: 1.65; padding-inline-end: 48px; border-top: 2px dashed rgba(38, 38, 36, .25); }
.card-flip { position: absolute; inset-inline-end: 20px; bottom: 22px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--ink); background: var(--white); box-shadow: 2px 2px 0 var(--ink); transition: transform .6s var(--ease-spring); }
.flip-card:hover .card-flip { transform: rotate(180deg); }
.card-flip .ic { width: 17px; height: 17px; }
.card-list { margin-top: 22px; padding-inline-end: 58px; display: grid; gap: 10px; }
.card-list li { display: flex; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 700; opacity: 0; transform: translateX(-12px) scale(.9); transition: opacity .4s var(--ease-out), transform .6s var(--ease-bounce); }
[dir="rtl"] .card-list li { transform: translateX(12px) scale(.9); }
.card-list .ic { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--yellow); color: var(--ink); stroke-width: 3.2; border: 2px solid var(--ink); }
.flipped .card-list li { opacity: 1; transform: none; }
.flipped .card-list li:nth-child(1) { transition-delay: .45s; }
.flipped .card-list li:nth-child(2) { transition-delay: .58s; }
.flipped .card-list li:nth-child(3) { transition-delay: .71s; }
.mini-stamp { direction: ltr; unicode-bidi: isolate; position: absolute; inset-inline-end: 20px; bottom: 20px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 3px solid var(--red); color: var(--red); font-weight: 900; font-size: 15px; transform: rotate(-14deg) scale(0); opacity: 0; }
.flipped .mini-stamp { animation: stampSmall .5s var(--ease-bounce) .95s forwards; }
.card-dots { display: none; }

/* ---------- tools (night) ---------- */
.night { background: var(--night); color: var(--on-night); }
.night::before, .scale::before, .footer::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 24px; background-repeat: repeat-x; background-size: 64px 24px; pointer-events: none; }
.night::before, .footer::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 24'%3E%3Cpath d='M0 14Q16 -2 32 14T64 14V24H0Z' fill='%23262624'/%3E%3Cpath d='M0 14Q16 -2 32 14T64 14' fill='none' stroke='%23262624' stroke-width='2.5'/%3E%3C/svg%3E"); }
.night .lead { color: var(--on-night-muted); }
.night .sticker { box-shadow: 3px 3px 0 var(--night-ink); border-color: var(--night-ink); }
.stars { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.star { position: absolute; width: 14px; height: 14px; fill: #D4A27F; animation: twinkle 2.6s var(--ease-soft) infinite; }
.star.dot { width: 4px; height: 4px; border-radius: 50%; background: #fff; fill: none; opacity: .6; }
.moon { position: absolute; top: 60px; inset-inline-end: 6%; width: clamp(64px, 7vw, 100px); animation: floaty 5s var(--ease-soft) infinite; }
.tools .section-head { z-index: 1; }
.tools-grid { position: relative; z-index: 1; margin-top: clamp(46px, 5vw, 72px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.tool-col { min-width: 0; display: flex; flex-direction: column; }
.tool-tag { align-self: flex-start; font-size: 12.5px; font-weight: 800; padding: 3px 12px; border-radius: 999px; border: 2px solid var(--on-night-muted); color: var(--on-night); }
.tool-title { margin-top: 16px; font-weight: 900; font-size: clamp(32px, 2.2vw + 14px, 54px); line-height: 1.15; }
:lang(fa) .tool-title, :lang(ar) .tool-title { line-height: 1.4; }
.tool-body { margin-top: 16px; color: var(--on-night-muted); max-width: 30em; }

.win-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding-inline: 14px; }
.win-dots { display: flex; gap: 7px; }
.win-dots i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--night-ink); }
.win-dots i:nth-child(1) { background: #D97757; }
.win-dots i:nth-child(2) { background: #D4A27F; }
.win-dots i:nth-child(3) { background: #788C5D; }
.win-title { font-family: var(--mono); font-size: 12px; color: var(--on-night-muted); margin-inline: auto; transform: translateX(-26px); }

.term { margin-top: 30px; flex: 1; display: flex; flex-direction: column; min-height: 0; border: 3px solid var(--night-ink); border-radius: 18px; background: var(--night-2); box-shadow: 7px 7px 0 var(--clay); overflow: hidden; }
.term .win-bar { border-bottom: 3px solid var(--night-ink); background: #30302E; }
:lang(fa) .term-body { --mono: ui-monospace, "SF Mono", Menlo, Consolas, "HIC Persian", monospace; }
.term-body { flex: 1 1 0; min-height: 330px; padding: 16px 18px; overflow: hidden; font-family: var(--mono); font-size: 13.5px; line-height: 1.75; color: #F0EEE6; }
.tl { white-space: pre-wrap; unicode-bidi: plaintext; text-align: start; animation: lineIn .35s var(--ease-out); }
.tl + .tl { margin-top: 2px; }
.tl .mut { color: #A3A198; }
.tl .acc { color: var(--clay); }
.tl .ok, .tl .dot { color: #A9B88F; }
.tl .typing::after { content: "▍"; color: var(--clay); animation: blinkA 1s steps(1) infinite; margin-inline-start: 1px; }
.t-box { display: inline-block; border: 2px solid var(--clay); border-radius: 10px; padding: 6px 14px; margin-bottom: 10px; }
.t-box b { color: var(--clay); font-weight: 700; }
.t-del, .t-add { display: block; padding-inline: 8px; border-radius: 6px; margin-inline-start: 18px; }
.t-del { background: rgba(217, 119, 87, .18); color: #F2B39C; }
.t-add { background: rgba(120, 140, 93, .18); color: #C9D6AE; }
.spin { display: inline-block; width: 1.1em; color: var(--clay); }

.feats { margin-top: 22px; display: grid; gap: 8px; }
.feats button { background: var(--night-2); position: relative; width: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 12px 16px 14px; border-radius: 14px; text-align: start; border: 2px solid rgba(176, 174, 165, .35); transition: background-color .25s, border-color .25s, transform .3s var(--ease-spring), box-shadow .25s; overflow: hidden; touch-action: manipulation; }
.feats button:hover { border-color: var(--on-night-muted); transform: translateX(4px); }
[dir="rtl"] .feats button:hover { transform: translateX(-4px); }
.feats button.active { background: var(--yellow); color: var(--ink); border-color: var(--night-ink); box-shadow: 4px 4px 0 var(--night-ink); transform: none; }
.feat-name { font-weight: 900; font-size: 15.5px; white-space: nowrap; }
.feat-desc { color: var(--on-night-muted); font-size: 14.5px; font-weight: 700; }
.feats button.active .feat-desc { color: var(--ink-2); }
.feat-bar { position: absolute; inset-inline: 14px; bottom: 5px; height: 3px; border-radius: 3px; overflow: hidden; }
.feat-bar i { position: absolute; inset: 0; background: var(--clay); transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .feat-bar i { transform-origin: right; }
.feats button.active .feat-bar i { animation: bar var(--dur, 7s) linear forwards; }

.desk { margin-top: 20px; border-radius: 18px; overflow: hidden; background: var(--paper); color: var(--ink); border: 3px solid var(--night-ink); box-shadow: 7px 7px 0 var(--yellow); }
.desk .win-bar { background: var(--paper-2); border-bottom: 3px solid var(--night-ink); }
.desk .win-title { color: var(--muted); }
.desk-body { display: grid; grid-template-columns: 52px 1fr; min-height: 300px; }
.desk-side { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 14px; background: var(--paper-2); border-right: 2px solid rgba(38, 38, 36, .2); }
.desk-side span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); border: 2px solid transparent; transition: all .25s; }
.desk-side span.active { background: var(--white); color: var(--clay-ink); border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.desk-main { position: relative; display: flex; flex-direction: column; padding: 14px 16px 12px; min-width: 0; }
.desk-prompt { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 12px; border-radius: 14px; background: var(--white); border: 2px solid var(--ink); font-size: 14px; font-weight: 700; }
.desk-you { width: 24px; height: 24px; flex: none; overflow: visible; }
.desk-prompt-text { unicode-bidi: plaintext; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.caret { width: 2.5px; height: 16px; background: var(--clay); animation: blinkA 1s steps(1) infinite; flex: none; }
.desk-stage { position: relative; flex: 1; margin-block: 12px; min-height: 180px; }
.scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.scene.active { opacity: 1; visibility: visible; transition: opacity .35s; }
.desk-status { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); height: 22px; }
.desk-status .spark { width: 16px; height: 16px; fill: var(--clay); stroke: none; }
.desk-status.working .spark { animation: spin 1.4s linear infinite; }
.desk-status.done { color: var(--green-deep); }
.desk-status.done .spark { fill: var(--green-deep); animation: jelly .6s var(--ease-bounce); }

.wf { position: absolute; inset: 4px 12% 4px; border-radius: 12px; border: 2px dashed rgba(38, 38, 36, .35); background: var(--white); }
.wf i { position: absolute; display: block; border-radius: 7px; border: 2px solid var(--ink); opacity: 0; transform: scale(.5) translateY(12px); transition: opacity .3s var(--ease-out), transform .6s var(--ease-bounce); }
.wf-nav { left: 6%; right: 6%; top: 7%; height: 10%; background: var(--paper-2); }
.wf-img { left: 6%; width: 40%; top: 23%; bottom: 10%; background: linear-gradient(135deg, var(--pink) 0%, var(--yellow) 100%); }
.wf-line { left: 52%; right: 6%; height: 7%; background: var(--ink); }
.wf-line.l1 { top: 25%; }
.wf-line.l2 { top: 36%; right: 22%; background: var(--blue); }
.wf-input { left: 52%; right: 6%; height: 11%; background: var(--paper); }
.wf-input.i1 { top: 50%; }
.wf-input.i2 { top: 65%; }
.wf-btn { left: 52%; width: 26%; top: 80%; height: 12%; border-radius: 999px !important; background: var(--clay); }
.play .wf i { opacity: 1; transform: none; }
.play .wf i:nth-child(1) { transition-delay: .1s; }
.play .wf i:nth-child(2) { transition-delay: .3s; }
.play .wf i:nth-child(3) { transition-delay: .5s; }
.play .wf i:nth-child(4) { transition-delay: .6s; }
.play .wf i:nth-child(5) { transition-delay: .8s; }
.play .wf i:nth-child(6) { transition-delay: .9s; }
.play .wf i:nth-child(7) { transition-delay: 1.1s; }
.wf-btn.clicked { background: var(--green) !important; animation: jelly .5s var(--ease-bounce); }
.fake-cursor { position: absolute; width: 22px; height: 22px; left: 90%; top: 95%; fill: var(--ink); stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; opacity: 0; transition: left 1.1s var(--ease-soft), top 1.1s var(--ease-soft), opacity .3s, transform .2s; }
.fake-cursor.on { opacity: 1; }
.fake-cursor.press { transform: scale(.8); }

.files { position: absolute; inset: 0; }
.file { position: absolute; width: 38px; height: 46px; border-radius: 7px; background: var(--white); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); font-family: var(--mono); font-size: 8.5px; font-weight: 700; display: grid; place-items: end center; padding-bottom: 5px; color: var(--ink); transition: left .85s var(--ease-soft), top .85s var(--ease-soft), transform .85s var(--ease-soft), opacity .35s .6s; }
.file::before { content: ""; position: absolute; top: 7px; left: 7px; right: 7px; height: 3px; border-radius: 2px; background: rgba(38, 38, 36, .2); box-shadow: 0 6px 0 rgba(38, 38, 36, .2), 0 12px 0 rgba(38, 38, 36, .2); }
.file span { padding: 1px 4px; border-radius: 4px; background: var(--c, var(--clay)); border: 1px solid var(--ink); }
.file.gone { opacity: 0; transform: scale(.3) !important; }
.folders { position: absolute; right: 4%; top: 6%; bottom: 6%; width: 30%; display: flex; flex-direction: column; justify-content: space-between; }
.folder { position: relative; height: 27%; border-radius: 4px 10px 10px 10px; background: var(--c, var(--yellow)); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); display: grid; place-items: center; transition: transform .4s var(--ease-bounce); }
.folder::before { content: ""; position: absolute; top: -9px; left: -2px; width: 44%; height: 9px; border-radius: 5px 5px 0 0; background: inherit; border: 2px solid var(--ink); border-bottom: 0; }
.folder:nth-child(1) { --c: var(--yellow); }
.folder:nth-child(2) { --c: var(--green); }
.folder:nth-child(3) { --c: var(--blue); }
.folder b { font-family: var(--mono); font-size: 13px; color: var(--ink); background: var(--white); border: 1.5px solid var(--ink); padding: 0 8px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.folder.bump { transform: scale(1.12) rotate(-3deg); }

.diff { position: absolute; top: 0; bottom: 0; left: 0; right: 40%; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--ink); background: var(--night-2); color: #F0EEE6; font-family: var(--mono); font-size: 11.5px; line-height: 1.9; overflow: hidden; text-align: left; }
.diff p { white-space: pre; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .4s var(--ease-out); }
.diff .ln { display: inline-block; width: 22px; color: #83827B; }
.diff .del { background: rgba(217, 119, 87, .2); color: #F2B39C; }
.diff .add { background: rgba(120, 140, 93, .2); color: #C9D6AE; }
.play .diff p { opacity: 1; transform: none; }
.play .diff p:nth-child(2) { transition-delay: .12s; }
.play .diff p:nth-child(3) { transition-delay: .3s; }
.play .diff p:nth-child(4) { transition-delay: .5s; }
.play .diff p:nth-child(5) { transition-delay: .65s; }
.play .diff p:nth-child(6) { transition-delay: .8s; }
.preview { position: absolute; top: 8%; bottom: 8%; right: 0; width: 36%; border-radius: 12px; background: var(--white); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); opacity: 0; transform: translateX(30px) rotate(6deg); transition: opacity .4s, transform .7s var(--ease-bounce); }
.preview i { position: absolute; left: 10%; right: 10%; border-radius: 5px; background: var(--paper-2); }
.pv-bar { top: 8%; height: 8%; }
.pv-hero { top: 22%; height: 36%; background: linear-gradient(135deg, var(--blue), var(--pink)) !important; }
.pv-line { top: 64%; height: 6%; }
.pv-line.s { top: 74%; right: 40% !important; }
.pv-ok { position: absolute; right: -12px; top: -12px; width: 30px; height: 30px; border-radius: 50%; background: var(--green); border: 2px solid var(--ink); color: var(--ink); display: grid; place-items: center; transform: scale(0); transition: transform .5s var(--ease-bounce) .5s; }
.pv-ok .ic { width: 16px; height: 16px; stroke-width: 3.2; }
.preview.show { opacity: 1; transform: none; }
.preview.show .pv-ok { transform: scale(1); }

/* ---------- support ---------- */
.support-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.support-copy .display { margin-top: 22px; font-size: clamp(40px, 3vw + 18px, 78px); }
.support-copy .lead { margin-top: 24px; }
.chat { border-radius: 28px; background: var(--white); border: var(--bw) solid var(--ink); box-shadow: 9px 9px 0 var(--ink); overflow: hidden; transform: rotate(1.2deg); }
[dir="rtl"] .chat { transform: rotate(-1.2deg); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: var(--bw) solid var(--ink); background: var(--yellow); }
.chat-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); display: grid; place-items: center; overflow: visible; }
.chat-avatar svg { width: 44px; height: 44px; overflow: visible; animation: bob 2.4s var(--ease-soft) infinite; }
.chat-meta { display: grid; line-height: 1.35; }
.chat-name { font-size: 16px; font-weight: 900; }
.chat-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.chat-status i { width: 9px; height: 9px; border-radius: 50%; background: #788C5D; border: 1.5px solid var(--ink); animation: pulseDot 1.8s infinite; }
.chat-body { height: 330px; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; overflow: hidden; background-image: radial-gradient(rgba(38, 38, 36, .06) 1.2px, transparent 1.6px); background-size: 16px 16px; }
.msg { text-wrap: pretty; position: relative; max-width: 84%; padding: 10px 15px; border-radius: 20px; font-size: 15px; font-weight: 700; line-height: 1.6; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); animation: msgIn .55s var(--ease-bounce) both; transform-origin: bottom left; }
.msg.them { align-self: flex-start; background: var(--blue-soft); border-end-start-radius: 6px; }
.msg.me { align-self: flex-end; background: var(--yellow); border-end-end-radius: 6px; transform-origin: bottom right; }
[dir="rtl"] .msg.them { transform-origin: bottom right; }
[dir="rtl"] .msg.me { transform-origin: bottom left; }
.msg.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: typing 1.1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
.chat-body.fade .msg { opacity: 0; transform: translateY(-24px) scale(.9); transition: opacity .45s, transform .45s; animation: none; }

.timeline { position: relative; margin-top: clamp(80px, 9vw, 120px); display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.timeline .track { position: absolute; top: 22px; inset-inline: 10%; height: 0; border-top: 3px dashed rgba(38, 38, 36, .35); }
.timeline .fill { position: absolute; left: 0; right: 0; top: -3px; height: 3px; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
[dir="rtl"] .timeline .fill { transform-origin: right; }
.traveler { z-index: 2; position: absolute; top: -52px; inset-inline-start: calc(var(--p, 0) * 100%); width: 46px; height: 46px; margin-inline-start: -23px; transition: inset-inline-start .15s linear; }
.traveler svg { width: 100%; height: 100%; overflow: visible; animation: hop .5s var(--ease-soft) infinite alternate; }
.step { position: relative; text-align: center; display: grid; justify-items: center; align-content: start; gap: 6px; }
.step .dot { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: var(--bw) solid var(--ink); box-shadow: 2px 3px 0 var(--ink); font-size: 18px; font-weight: 900; transition: background-color .3s, transform .5s var(--ease-bounce); z-index: 1; }
.step.on .dot { background: var(--yellow); transform: scale(1.12) rotate(-8deg); }
.step h3 { margin-top: 10px; font-size: 18px; font-weight: 900; }
.step p { text-wrap: balance; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; max-width: 15em; }

/* ---------- scale ---------- */
.scale { background: var(--green-soft); }
.scale::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 24'%3E%3Cpath d='M0 14Q16 -2 32 14T64 14V24H0Z' fill='%23E8ECDD'/%3E%3Cpath d='M0 14Q16 -2 32 14T64 14' fill='none' stroke='%23262624' stroke-width='2.5'/%3E%3C/svg%3E"); }
.scale-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.scale-copy .h2 { margin-top: 18px; }
.scale-copy .lead { margin-top: 20px; }
.stages { margin-top: 32px; display: grid; gap: 10px; }
.stages button { position: relative; width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; text-align: start; border: 2px solid transparent; transition: background-color .25s, border-color .25s, box-shadow .25s, transform .4s var(--ease-spring); overflow: hidden; touch-action: manipulation; }
.stages button:hover { background: rgba(255, 253, 248, .6); }
.stages button.active { background: var(--white); border-color: var(--ink); box-shadow: var(--sh); transform: rotate(-.8deg); }
.st-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--ink); background: var(--white); font-weight: 900; font-size: 14px; transition: all .35s var(--ease-bounce); flex: none; }
.stages button.done .st-n { background: var(--green); }
.stages button.active .st-n { background: var(--clay); transform: scale(1.12); }
.st-t { font-weight: 800; font-size: 16.5px; }
.st-bar { position: absolute; inset-inline: 16px; bottom: 4px; height: 3px; border-radius: 3px; overflow: hidden; }
.st-bar i { position: absolute; inset: 0; background: var(--clay); transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .st-bar i { transform-origin: right; }
.stages button.active .st-bar i { animation: bar var(--dur, 3.6s) linear forwards; }
.stage-desc { display: none; margin-top: 18px; min-height: 3.6em; padding: 12px 16px; border-radius: 14px; background: var(--white); border: 2px dashed var(--ink); font-weight: 700; color: var(--ink-2); }

/* chalkboard */
.team-card { position: relative; display: flex; flex-direction: column; min-height: 580px; padding: clamp(24px, 3vw, 38px); border-radius: 22px; background: var(--board); color: #FAF9F5; border: 12px solid #D4A27F; outline: var(--bw) solid var(--ink); box-shadow: 9px 9px 0 var(--ink); overflow: hidden; }
.team-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 40% at 30% 20%, rgba(255, 255, 255, .06), transparent), radial-gradient(40% 30% at 80% 90%, rgba(255, 255, 255, .05), transparent); pointer-events: none; }
.team-tag { position: relative; font-size: 13px; font-weight: 800; color: rgba(250, 249, 245, .75); letter-spacing: .06em; }
.team-title { text-wrap: balance; position: relative; margin-top: 12px; font-weight: 900; font-size: clamp(30px, 2.2vw + 14px, 50px); line-height: 1.2; text-shadow: 0 0 1px rgba(255, 255, 255, .4); }
:lang(fa) .team-title, :lang(ar) .team-title { line-height: 1.45; }
.team-stage { position: relative; flex: 1; min-height: 250px; margin-block: 14px; }
.avatars { position: absolute; inset: 0; }
.av { position: absolute; left: 0; top: 0; width: 50px; height: 50px; margin: -25px 0 0 -25px; opacity: 0; transform: translate(var(--x, 0), var(--y, 0)) scale(var(--s, .2)); transition: transform .8s var(--ease-bounce), opacity .4s var(--ease-out); transition-delay: var(--delay, 0s); }
.av svg { width: 100%; height: 100%; overflow: visible; }
.av.shown { opacity: 1; }
.av.shown svg { animation: bob 2.4s var(--ease-soft) infinite; animation-delay: var(--bd, 0s); }
.av.lead { z-index: 2; }
.av.lead::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2.5px dashed #E8A084; opacity: 0; }
.team-stage.s0 .av.lead::after, .team-stage.s1 .av.lead::after { opacity: 1; animation: spin 8s linear infinite; }
.badge { position: absolute; left: 50%; top: 50%; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 9px; background: var(--yellow); color: var(--ink); font-size: 13px; font-weight: 800; white-space: nowrap; border: 2px solid var(--ink); box-shadow: 3px 3px 0 rgba(0, 0, 0, .35); opacity: 0; transform: translate(-50%, -50%) scale(.4) rotate(0deg); transition: opacity .3s, transform .6s var(--ease-bounce); pointer-events: none; }
.badge.b2 { background: var(--pink); }
.badge.b3 { background: var(--blue); }
.badge .ic { width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--ink); stroke-width: 3.2; }
.team-stage.s1 .badge { opacity: 1; }
.team-stage.s1 .b1 { transform: translate(calc(-50% - 118px), calc(-50% - 70px)) rotate(-6deg) scale(1); transition-delay: .15s; }
.team-stage.s1 .b2 { transform: translate(calc(-50% + 118px), calc(-50% - 12px)) rotate(5deg) scale(1); transition-delay: .45s; }
.team-stage.s1 .b3 { transform: translate(calc(-50% - 92px), calc(-50% + 70px)) rotate(-3deg) scale(1); transition-delay: .75s; }
.team-foot { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.team-body { color: rgba(250, 249, 245, .8); font-size: 15px; max-width: 20em; font-weight: 700; }
.team-count { display: grid; justify-items: end; line-height: 1; gap: 6px; color: rgba(250, 249, 245, .8); font-size: 13px; font-weight: 800; }
.team-count .count { font-weight: 900; font-size: 64px; color: #E8A084; font-variant-numeric: tabular-nums; }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; border-block: var(--bw) solid var(--ink); }
.process-left {
  position: relative; display: flex; align-items: center; justify-content: flex-end; overflow: hidden;
  padding: clamp(64px, 8vw, 120px) clamp(24px, 5vw, 80px);
  background-color: var(--clay);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cg fill='%23D97757' stroke='%23E9A188' stroke-width='2'%3E%3Ccircle cx='0' cy='15' r='14'/%3E%3Ccircle cx='0' cy='15' r='9'/%3E%3Ccircle cx='0' cy='15' r='4'/%3E%3Ccircle cx='60' cy='15' r='14'/%3E%3Ccircle cx='60' cy='15' r='9'/%3E%3Ccircle cx='60' cy='15' r='4'/%3E%3Ccircle cx='30' cy='30' r='14'/%3E%3Ccircle cx='30' cy='30' r='9'/%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 30px;
  border-inline-end: var(--bw) solid var(--ink);
}
.process-left-inner { position: relative; width: 100%; max-width: 560px; padding: clamp(24px, 3vw, 40px); background: var(--clay); border: var(--bw) solid var(--ink); border-radius: 28px; box-shadow: var(--sh-lg); }
.process-title { margin-top: 22px; font-weight: 900; font-size: clamp(36px, 2.8vw + 12px, 66px); text-wrap: balance; line-height: 1.15; letter-spacing: var(--track); color: var(--ink); }
:lang(fa) .process-title, :lang(ar) .process-title { line-height: 1.4; }
.process-title em { color: var(--white); -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; }
:lang(zh-CN) .process-title em, :lang(zh-Hant) .process-title em { white-space: nowrap; }
:lang(fa) .process-title em, :lang(ar) .process-title em { -webkit-text-stroke: 0; text-shadow: 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 3px 0 var(--ink), 0 -3px 0 var(--ink), 2px 2px 0 var(--ink), -2px 2px 0 var(--ink), 2px -2px 0 var(--ink), -2px -2px 0 var(--ink), 4px 4px 0 var(--ink); }
.process-lead { margin-top: 22px; max-width: 24em; font-size: 18px; font-weight: 700; color: var(--ink); }
.process .btn-light { margin-top: 30px; }
.process-right { background: var(--paper); display: flex; align-items: center; padding: clamp(48px, 6vw, 100px) clamp(24px, 5vw, 80px); }
.psteps { width: 100%; max-width: 600px; display: grid; gap: 18px; }
.pstep { position: relative; display: grid; grid-template-columns: clamp(80px, 7vw, 110px) 1fr; gap: 14px; align-items: center; padding: 20px 22px; background: var(--white); border: var(--bw) solid var(--ink); border-radius: 22px; box-shadow: var(--sh); transition: transform .45s var(--ease-spring), box-shadow .3s, background-color .3s; }
.pstep:hover { transform: translateX(8px) rotate(-.8deg); box-shadow: 7px 7px 0 var(--ink); background: var(--yellow-soft); }
[dir="rtl"] .pstep:hover { transform: translateX(-8px) rotate(.8deg); }
.pnum { justify-self: start; font-weight: 900; font-size: clamp(48px, 3vw + 24px, 76px); line-height: .95; color: var(--white); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink); direction: ltr; font-family: "HIC Latin", "HIC Round", sans-serif; transition: color .3s, transform .5s var(--ease-bounce); }
.pstep:nth-child(1) .pnum { color: var(--yellow); }
.pstep:nth-child(2) .pnum { color: var(--pink); }
.pstep:nth-child(3) .pnum { color: var(--blue); }
.pstep:hover .pnum { transform: rotate(-8deg) scale(1.08); }
.pstep h3 { font-weight: 900; font-size: clamp(22px, .8vw + 16px, 28px); line-height: 1.25; }
.pstep p { margin-top: 6px; color: var(--ink-2); font-size: 15.5px; }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.faq .section-head { position: sticky; top: calc(var(--nav-h) + 32px); }
.faq-mascot { position: relative; width: 120px; margin-top: 10px; }
.faq-mascot svg { width: 100%; height: auto; overflow: visible; animation: tilt 3s var(--ease-soft) infinite; }
.faq-mascot .qmark { position: absolute; top: -10px; inset-inline-end: -6px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); border: var(--bw) solid var(--ink); font-weight: 900; font-size: 24px; box-shadow: 2px 2px 0 var(--ink); animation: floaty 2.2s var(--ease-soft) infinite; }
.acc { display: grid; gap: 14px; }
.acc-item { background: var(--white); border: var(--bw) solid var(--ink); border-radius: 20px; box-shadow: var(--sh); transition: box-shadow .3s, transform .4s var(--ease-spring); overflow: hidden; }
.acc-item.open { box-shadow: 7px 7px 0 var(--ink); transform: translate(-2px, -2px); }
.acc-item button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 18px; text-align: start; font-size: clamp(16.5px, .4vw + 15px, 19px); font-weight: 800; touch-action: manipulation; }
.acc-item button > span { flex: 1; text-wrap: pretty; }
.qa { flex: none; width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; border: 2px solid var(--ink); font-weight: 900; font-size: 16px; font-family: "HIC Latin", "HIC Round", sans-serif; }
.qa.q { background: var(--clay); }
.qa.a { background: var(--blue); }
.acc-item button .ic { width: 30px; height: 30px; padding: 5px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); transition: transform .5s var(--ease-bounce), background-color .3s; }
.acc-item.open button .ic { transform: rotate(135deg); background: var(--yellow); }
.acc-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .5s var(--ease-out), visibility 0s .5s; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { display: flex; gap: 14px; align-items: flex-start; margin: 0 18px; padding: 16px 0 20px; border-top: 2px dashed rgba(38, 38, 36, .25); color: var(--ink-2); opacity: 0; transform: translateY(-8px); transition: opacity .35s, transform .5s var(--ease-out); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.acc-item.open .acc-panel p { opacity: 1; transform: none; transition-delay: .1s; }

/* ---------- cta ---------- */
.cta { overflow: hidden; background: var(--yellow-soft); border-top: var(--bw) solid var(--ink); }
.cta::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(217, 119, 87, .25) 2px, transparent 2.6px); background-size: 20px 20px; -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, transparent 40%, #000 100%); mask-image: radial-gradient(70% 60% at 50% 40%, transparent 40%, #000 100%); pointer-events: none; }
.cta-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta-stage { position: relative; width: clamp(200px, 22vw, 280px); aspect-ratio: 1; display: grid; place-items: center; }
.cta-stage .speed-lines { inset: -45%; }
.mascot-cta { width: 100%; }
.cta-hint { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 800; padding: 6px 14px; border-radius: 999px; background: var(--white); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.cta-hint .ic { width: 18px; height: 18px; color: var(--clay-ink); animation: tap 1.8s var(--ease-soft) infinite; }
.cta-title { margin-top: 34px; }
.cta .lead { margin-top: 20px; }
.cta .btn { margin-top: 34px; }
.burst { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.burst span { position: absolute; left: 0; top: 0; padding: 4px 12px 5px; font-weight: 800; white-space: nowrap; background: var(--white); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 2px 2px 0 var(--ink); will-change: transform, opacity; }
.burst i { position: absolute; left: 0; top: 0; width: 12px; height: 12px; border: 2px solid var(--ink); will-change: transform, opacity; }

/* ---------- footer ---------- */
.footer { position: relative; background: var(--night); color: var(--on-night-muted); padding-block: 72px 40px; font-size: 14.5px; font-weight: 600; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px 64px; }
.footer-langs { max-width: 700px; }
.footer .logo { color: var(--on-night); }
.footer-domain { display: inline-block; margin-top: 10px; font-family: var(--mono); font-size: 14px; color: var(--on-night-muted); border-bottom: 1.5px dashed rgba(176, 174, 165, .5); }
.footer-domain:hover { color: var(--on-night); }
.footer-brand p { margin-top: 14px; font-size: 22px; font-weight: 800; color: var(--on-night); }
.footer-langs { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; justify-content: flex-end; }
.footer-langs button { padding: 7px 14px; border-radius: 999px; border: 2px solid rgba(176, 174, 165, .4); font-size: 14px; font-weight: 700; transition: all .25s var(--ease-spring); touch-action: manipulation; }
.footer-langs button:hover { border-color: var(--on-night); color: var(--on-night); transform: translateY(-2px) rotate(-2deg); }
.footer-langs button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); border-color: var(--night-ink); box-shadow: 3px 3px 0 var(--night-ink); }
.footer-meta { grid-column: 1 / -1; display: grid; gap: 12px; padding-top: 26px; border-top: 2px dashed rgba(176, 174, 165, .3); }
.disclaimer { max-width: 60em; line-height: 1.75; }
.rights { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rights a { color: var(--on-night); display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px; }
.rights a:hover { color: var(--yellow); }

/* ---------- contact dialog ---------- */
.contact { border: 3px solid var(--ink); padding: 0; border-radius: 28px; background: var(--paper); color: var(--ink); box-shadow: 10px 10px 0 var(--ink); overflow: visible; }
.contact[open] { animation: dlgIn .55s var(--ease-bounce); }
html:has(dialog.contact[open]) { overflow: hidden; }
.contact::backdrop { background: rgba(38, 38, 36, .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fadeIn .3s; }
.contact-inner { padding: 38px 28px 26px; max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; }
.contact-close { position: absolute; top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--ink); background: var(--white); box-shadow: 2px 2px 0 var(--ink); transition: transform .45s var(--ease-bounce); }
.contact-close:hover { transform: rotate(90deg); }
.contact-mark { position: absolute; top: -46px; inset-inline-start: 24px; width: 84px; height: 84px; overflow: visible; animation: bob 2.4s var(--ease-soft) infinite; }
.contact h2 { margin-top: 18px; font-weight: 900; font-size: 30px; line-height: 1.25; }
.contact-inner > p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }
.contact-list { margin-top: 20px; display: grid; gap: 10px; }
.contact-list li { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 16px; background: var(--white); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); animation: popIn .5s var(--ease-bounce) both; }
.contact-list li:nth-child(2) { animation-delay: .07s; }
.contact-list li:nth-child(3) { animation-delay: .14s; }
.contact-list .c-label { font-size: 13px; font-weight: 800; color: var(--muted); min-width: 5.5em; }
.contact-list .c-value { flex: 1; font-family: var(--mono); font-size: 14.5px; direction: ltr; unicode-bidi: isolate; text-align: start; overflow-wrap: anywhere; }
.contact-list .c-value a:hover { color: var(--clay-ink); text-decoration: underline; }
.contact-list .c-copy { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; background: var(--yellow); border: 2px solid var(--ink); font-size: 13px; font-weight: 800; white-space: nowrap; transition: transform .15s; touch-action: manipulation; }
.contact-list .c-copy:active { transform: translateY(2px); }
.contact-list .c-copy.ok { background: var(--green); }
.contact-list .c-copy .ic { width: 15px; height: 15px; }

/* ---------- lead form (booking dialog) ---------- */
.contact { width: min(580px, calc(100% - 24px)); }
.lead-intro { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }
.lead-form { position: relative; display: grid; gap: 14px; margin-top: 18px; }
.field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.lbl { display: flex; align-items: baseline; gap: 6px; padding: 0; font-size: 14px; font-weight: 800; }
.lbl small { font-size: 12px; font-weight: 700; color: var(--muted); }
.lbl small::before { content: "· "; }
.req { font-style: normal; color: var(--clay-ink); }
.lead-form input[type="text"], .lead-form input[type="email"], .lead-form input[type="tel"], .lead-form select, .lead-form textarea {
  width: 100%; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink);
  padding: 10px 14px; border: 2px solid var(--ink); border-radius: 14px; background: var(--white);
  transition: box-shadow .2s var(--ease-out), transform .2s var(--ease-out), border-color .2s;
}
.lead-form textarea { min-height: 112px; resize: vertical; line-height: 1.6; }
.lead-form select { appearance: none; -webkit-appearance: none; padding-inline-end: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23262624' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 16px; background-position: right 12px center; }
[dir="rtl"] .lead-form select { background-position: left 12px center; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }
.lead-form ::placeholder { color: #A3A198; font-weight: 500; }
.lead-form .invalid { border-color: var(--clay-deep); background: #FFF6F2; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 5px 13px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); font-size: 14px; font-weight: 700; transition: background-color .15s, box-shadow .15s, transform .15s var(--ease-spring); }
.chip input:checked + span { background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); transform: translate(-1px, -1px); }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.count { justify-self: end; font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.count.warn { color: var(--clay-ink); }
.form-error { padding: 9px 14px; border-radius: 12px; background: #FBE6DE; border: 2px solid var(--clay-deep); color: #7E2E14; font-size: 14.5px; font-weight: 700; animation: shake .45s var(--ease-out); }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-top: 2px; }
.form-note { flex: 1; min-width: 12em; font-size: 12.5px; color: var(--muted); }
.submit .spark-spin { display: none; width: 18px; height: 18px; fill: var(--ink); stroke: none; }
.submit.busy { pointer-events: none; opacity: .9; }
.submit.busy .spark-spin { display: block; animation: spin 1s linear infinite; }
.submit.busy .ic-arrow { display: none; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.direct { margin-top: 22px; padding-top: 16px; border-top: 2px dashed rgba(38, 38, 36, .2); }
.direct-title { font-size: 14px; font-weight: 800; color: var(--muted); }
.direct .contact-list { margin-top: 10px; }
.done-view { padding: 28px 4px 8px; text-align: center; }
.done-mascot svg { width: 120px; height: 120px; margin: 0 auto; overflow: visible; animation: hop .5s var(--ease-soft) infinite alternate; }
.done-view h2 { margin-top: 14px; font-size: 32px; font-weight: 900; outline: none; }
.done-view p { margin-top: 8px; color: var(--ink-2); }
.done-view .btn { margin-top: 22px; }
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
}

/* ---------- language curtain ---------- */
.curtain { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background-color: var(--yellow); background-image: radial-gradient(rgba(38, 38, 36, .12) 2px, transparent 2.6px); background-size: 20px 20px; clip-path: circle(0px at 50% 0%); visibility: hidden; pointer-events: none; }
.curtain.on { visibility: visible; pointer-events: auto; }
.curtain-inner { position: relative; display: grid; justify-items: center; gap: 26px; }
.curtain-bubble { position: relative; font-size: clamp(40px, 8vw, 96px); padding: 10px 34px 16px; border-width: 3px; box-shadow: 6px 6px 0 var(--ink); }
.curtain-bubble::after { inset-inline-start: 50%; margin-inline-start: -10px; }
.curtain-mochi { width: clamp(110px, 14vw, 170px); height: auto; overflow: visible; }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; translate: 0 34px; scale: .96; transition: opacity .6s var(--ease-out) var(--d, 0s), translate .9s var(--ease-bounce) var(--d, 0s), scale .9s var(--ease-bounce) var(--d, 0s), transform .45s var(--ease-spring), box-shadow .3s, background-color .3s; }
[data-reveal].in { opacity: 1; translate: none; scale: none; }

/* ---------- keyframes ---------- */
@keyframes wIn { to { opacity: 1; transform: none; } }
@keyframes marker { to { transform: scaleX(1) rotate(-1.5deg); } }
@keyframes mBob { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-7px) scale(.985, 1.02); } }
@keyframes mShadow { 0%, 100% { transform: scale(1); opacity: .14; } 50% { transform: scale(.86); opacity: .09; } }
@keyframes raysSpin { to { transform: rotate(360deg); } }
@keyframes raysBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes speed { 0% { transform: rotate(0deg) scale(1); } 100% { transform: rotate(3deg) scale(1.02); } }
@keyframes drift { from { transform: translateX(-18px); } to { transform: translateX(18px); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; } 50% { transform: scale(.55) rotate(45deg); opacity: .7; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes tap { 0%, 100% { transform: translateY(0) scale(1); } 45% { transform: translateY(-3px) scale(1); } 60% { transform: translateY(1px) scale(.88); } }
@keyframes jelly { 0% { transform: scale(1, 1); } 30% { transform: scale(1.18, .84); } 50% { transform: scale(.9, 1.1); } 70% { transform: scale(1.05, .96); } 100% { transform: scale(1, 1); } }
@keyframes pinPop { 0% { opacity: 0; transform: translate(-50%, -80%) scale(.2); } 15% { opacity: 1; transform: translate(-50%, -130%) scale(1.08); } 25% { transform: translate(-50%, -130%) scale(1); } 80% { opacity: 1; transform: translate(-50%, -140%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -165%) scale(.9); } }
@keyframes stamp { 0% { opacity: 0; transform: scale(2.2) rotate(-30deg); } 55% { opacity: 1; transform: scale(.9) rotate(-12deg); } 75% { transform: scale(1.05) rotate(-12deg); } 100% { opacity: .95; transform: scale(1) rotate(-12deg); } }
@keyframes stampSmall { 0% { opacity: 0; transform: rotate(-30deg) scale(2); } 60% { opacity: 1; transform: rotate(-14deg) scale(.9); } 100% { opacity: 1; transform: rotate(-14deg) scale(1); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes hop { from { transform: translateY(0) scale(1.04, .96); } to { transform: translateY(-8px) scale(.97, 1.03); } }
@keyframes swing { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(12deg); } }
@keyframes bulb { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } 60% { opacity: .75; } 64% { opacity: 1; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(.96); } 45% { transform: scale(1.1); } }
@keyframes scribble { 0%, 100% { transform: rotate(0deg) translate(0, 0); } 25% { transform: rotate(-6deg) translate(-3px, 1px); } 50% { transform: rotate(3deg) translate(2px, -1px); } 75% { transform: rotate(-4deg) translate(-2px, 1px); } }
@keyframes sway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(3deg); } }
@keyframes tilt { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes blinkA { 50% { opacity: 0; } }
@keyframes lineIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(16px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 0 rgba(120, 140, 93, .5); } 50% { box-shadow: 0 0 0 5px rgba(120, 140, 93, 0); } }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes dlgIn { from { opacity: 0; transform: translateY(40px) scale(.85) rotate(-3deg); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .tools-grid { grid-template-columns: 1fr; gap: 64px; }
  .support-top, .scale-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .process-left { justify-content: flex-start; border-inline-end: 0; border-bottom: var(--bw) solid var(--ink); }
  .faq-grid { grid-template-columns: 1fr; }
  .faq .section-head { position: relative; top: auto; padding-inline-end: 110px; }
  .faq-mascot { position: absolute; inset-inline-end: 16px; top: 12px; width: 80px; margin: 0; }
}
@media (max-width: 860px) {
  .hero { min-height: 0; padding-bottom: 320px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { position: absolute; inset-inline-end: -6px; top: -14px; width: 136px; height: 150px; }
  .hero-art .speed-lines { display: none; }
  .mascot-hero { width: 120px; }
  .hello-bubble { top: -4px; inset-inline-start: auto; inset-inline-end: 92px; font-size: 16px; padding: 5px 12px 6px; }
  .hello-bubble::after { inset-inline-start: auto; inset-inline-end: 12px; }
  .hero-inner { padding-top: 96px; }
  .cloud.c1, .cloud.c3, .twinkle.t1, .twinkle.t2 { display: none; }
  .cloud.c2 { top: 2%; inset-inline-end: 44%; width: 96px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .flag-row { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .flag-row::-webkit-scrollbar { display: none; }
  .flag-item { scroll-snap-align: start; }
  .flag-row { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 48px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 48px), transparent 100%); }
  .flag { --fw: 64px; --fh: 48px; --sw: 5.334px; height: 160px; }
  .flag-pole { height: 108px; }
  .flag-mound { top: 110px; }
  .flag::after { top: 120px; }
  /* swipeable card carousel */
  .cards { display: flex; gap: 16px; margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cards::-webkit-scrollbar { display: none; }
  .flip-card { flex: 0 0 84%; scroll-snap-align: center; }
  .face { min-height: 420px; }
  .card-dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
  .card-dots i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); transition: all .3s var(--ease-bounce); }
  .card-dots i.on { width: 26px; border-radius: 10px; background: var(--yellow); }
  .timeline { grid-template-columns: 1fr; gap: 24px; }
  .timeline .track { top: 22px; bottom: 22px; inset-inline: 21px auto; width: 0; height: auto; border-top: 0; border-inline-start: 3px dashed rgba(38, 38, 36, .35); }
  .timeline .fill { left: -3px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; transform-origin: top !important; transform: scaleY(var(--p, 0)); }
  [dir="rtl"] .timeline .fill { left: auto; right: -3px; }
  .traveler { display: none; }
  .step { text-align: start; justify-items: start; padding-inline-start: 68px; gap: 4px; min-height: 46px; }
  .step .dot { position: absolute; inset-inline-start: 0; top: 0; }
  .step h3 { margin-top: 8px; }
  .step p { max-width: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-langs { justify-content: flex-start; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; --sh-lg: 5px 5px 0 var(--ink); }
  body { font-size: 16px; }
  .nav-cta { display: none; }
  .lang-btn { padding: 0 11px; }
  .lang-btn .lang-current { max-width: 6.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lang-btn .ic-chev { display: none; }
  .logo-word { font-size: 22px; }
  .hero { padding-bottom: 250px; }
  .hero-title { font-size: clamp(34px, 9.6vw, 48px); }
  .hero-tags { font-size: 13.5px; }
  .hero-actions .btn { flex: 1 1 auto; }
  :lang(my) .hero-roles, :lang(ko) .hero-roles, :lang(ru) .hero-roles, :lang(es) .hero-roles, :lang(fa) .hero-roles, :lang(ar) .hero-roles { min-height: 3.6em; align-content: flex-start; }
  .contact-list .c-copy span { display: none; }
  .contact-list .c-copy { width: 36px; padding: 0; justify-content: center; }
  .contact-list .c-value { overflow-wrap: normal; word-break: keep-all; }
  .map-ui { bottom: 14px; justify-content: center; }
  .map-hint { display: none; }
  .manifesto { height: 210vh; }
  .hanko { position: relative; bottom: auto; inset-inline-end: auto; display: block; margin: 14px 0 0 auto; width: 104px; }
  [dir="rtl"] .hanko { margin: 14px auto 0 0; }
  .term-body { min-height: 350px; font-size: 12.5px; padding: 14px; }
  .desk-body { grid-template-columns: 40px 1fr; }
  .desk-side span { width: 30px; height: 30px; }
  .desk-main { padding: 10px; }
  .chat { transform: none !important; }
  .team-card { min-height: 540px; border-width: 9px; }
  .team-count .count { font-size: 48px; }
  .team-stage.s1 .b1 { transform: translate(calc(-50% - 64px), calc(-50% - 70px)) rotate(-6deg) scale(1); }
  .team-stage.s1 .b2 { transform: translate(calc(-50% + 64px), calc(-50% + 2px)) rotate(5deg) scale(1); }
  .team-stage.s1 .b3 { transform: translate(calc(-50% - 44px), calc(-50% + 72px)) rotate(-3deg) scale(1); }
  .process-left-inner { padding: 22px; }
  .pstep { grid-template-columns: 1fr; gap: 4px; }
  .contact-inner { padding: 38px 18px 20px; }
  .contact-list li { flex-wrap: wrap; }
  .contact-list .c-label { min-width: 100%; }
}
@media (hover: none) {
  .btn:hover { transform: none; box-shadow: 0 5px 0 var(--ink); }
  .btn-sm:hover { box-shadow: 0 4px 0 var(--ink); }
  .logo:hover .logo-mark, .nav-links a:hover, .footer-langs button:hover, .flip-card:hover .card-flip,
  .feats button:hover, .flag:hover .flag-cloth, .contact-close:hover, .lang-btn:hover { transform: none; }
  .flip-tilt { transform: none !important; }
  .pillar:hover, .pstep:hover { transform: none; }
}

/* Reduced motion: keep fades, colour changes and user-triggered effects;
   drop continuous loops and large movement. ?motion=full previews everything. */
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-full) { scroll-behavior: auto; }
  html:not(.motion-full) [data-reveal] { translate: none; scale: none; }
  html:not(.motion-full) .w { transform: none; }
  html:not(.motion-full) .flip-inner { transition-duration: .01ms; }
  html:not(.motion-full) .flip-tilt { transform: none !important; }
  html:not(.motion-full) .m-all, html:not(.motion-full) .m-shadow, html:not(.motion-full) .m-rays, html:not(.motion-full) .m-rays-inner, html:not(.motion-full) .speed-lines,
  html:not(.motion-full) .cloud, html:not(.motion-full) .twinkle, html:not(.motion-full) .star,
  html:not(.motion-full) .moon, html:not(.motion-full) .bob, html:not(.motion-full) .key,
  html:not(.motion-full) .bulb, html:not(.motion-full) .heart, html:not(.motion-full) .pencil,
  html:not(.motion-full) .paper, html:not(.motion-full) .hello-bubble, html:not(.motion-full) .faq-mascot *,
  html:not(.motion-full) .traveler svg, html:not(.motion-full) .av.shown svg, html:not(.motion-full) .chat-avatar svg,
  html:not(.motion-full) .contact-mark, html:not(.motion-full) .map-hint .ic, html:not(.motion-full) .cta-hint .ic,
  html:not(.motion-full) .seg-hint .ic, html:not(.motion-full) .flags-hint .ic { animation: none; }
  html:not(.motion-full) .msg { animation-name: fadeIn; }
  html:not(.motion-full) .av.lead::after, html:not(.motion-full) .desk-status .spark, html:not(.motion-full) .chat-status i,
  html:not(.motion-full) .hello::before, html:not(.motion-full) .flag-cur, html:not(.motion-full) .flags-pay .ic, html:not(.motion-full) .flag-cloth i, html:not(.motion-full) .flag-cloth i::after { animation: none; }
  html:not(.motion-full) .av { transition-duration: .3s; }
}
