/* Knot Motion — site styles. Colours and type are brand/brand.md only:
   ink #17142E · rope #7C5CFF · thread #2EE6C5 (untie moment only) · paper #F4F3FA · mist #9A97B0
   derived pattern tones: deep #332869 · soft #DAD2FB · Knot Readex (round dots) */
@font-face { font-family: "Knot Readex"; src: url("/assets/fonts/KnotReadex-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Knot Readex"; src: url("/assets/fonts/KnotReadex-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Knot Readex"; src: url("/assets/fonts/KnotReadex-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Knot Readex"; src: url("/assets/fonts/KnotReadex-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #17142E; --rope: #7C5CFF; --thread: #2EE6C5; --paper: #F4F3FA; --mist: #9A97B0;
  --release: cubic-bezier(0.34, 1.4, 0.64, 1);   /* انطلاق */
  --pull: cubic-bezier(0.6, 0, 0.9, 0.4);         /* شدّ */
  --out: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 180ms; --norm: 320ms; --slow: 600ms;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --radius: 22px;
  color-scheme: dark;
  --bg: var(--ink); --fg: var(--paper); --mute: var(--mist);
  --surface: color-mix(in srgb, var(--paper) 5%, var(--ink));
  --line: color-mix(in srgb, var(--paper) 13%, transparent);
  --pattern: url("/assets/pattern-c-dark.svg");
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: var(--paper); --fg: var(--ink); --mute: color-mix(in srgb, var(--ink) 66%, var(--paper));
  --surface: color-mix(in srgb, var(--rope) 6%, var(--paper));
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --pattern: url("/assets/pattern-c-light.svg");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 17px/1.75 "Knot Readex", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color var(--slow) var(--out), color var(--slow) var(--out);
  -webkit-tap-highlight-color: transparent;
}
[lang="en"] body, html[lang="en"] body { line-height: 1.6; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--rope); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--rope); color: var(--paper); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--rope); color: var(--paper); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 16px; white-space: nowrap;
  transition: transform var(--norm) var(--release), background-color var(--norm) var(--out), color var(--norm) var(--out), box-shadow var(--norm) var(--out);
  user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(0.96); transition-duration: 120ms; transition-timing-function: var(--pull); }
.btn-sm { --h: 40px; padding: 0 18px; font-size: 15px; }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 17px; }
.btn-rope { background: var(--rope); color: var(--paper); }
.btn-ghost { box-shadow: inset 0 0 0 1.5px var(--line); }
@media (hover: hover) {
  .btn-rope:hover { transform: translateY(-2px); }
  .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--rope); }
  .btn:hover .arrow { transform: translateX(4px); }
  [dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }
}
.arrow { width: 18px; height: 18px; transition: transform var(--norm) var(--release); }
[dir="rtl"] .arrow { transform: scaleX(-1); }
.ico { display: inline-block; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; flex: none; }
.ico-btn { width: 22px; height: 22px; }

/* ---------- progress rope + header ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--rope); transform-origin: left; transform: scaleX(0); border-radius: 0 3px 3px 0; }
[dir="rtl"] .progress span { transform-origin: right; }
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color var(--norm) var(--out), box-shadow var(--norm) var(--out), transform var(--slow) var(--out); }
.top.is-stuck { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.top.is-hidden { transform: translateY(-100%); }
.top-in { max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter); padding-top: max(14px, env(safe-area-inset-top)); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
.brand .symbol { width: 44px; height: auto; color: var(--rope); }
.nav { margin-inline-start: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--mute); transition: color var(--fast) ease, background-color var(--fast) ease; }
@media (hover: hover) { .nav a:hover { color: var(--fg); background: var(--surface); } }
.nav a.is-active { color: var(--fg); }
.tools { display: flex; align-items: center; gap: 8px; }
.pill-btn { height: 40px; min-width: 40px; padding: 0 12px; border-radius: 999px; display: inline-grid; place-items: center; font-weight: 600; font-size: 15px; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow var(--fast) ease, transform var(--norm) var(--release); }
.pill-btn:active { transform: scale(0.94); }
@media (hover: hover) { .pill-btn:hover { box-shadow: inset 0 0 0 1.5px var(--rope); } }
.lang { font-family: "Knot Readex", sans-serif; }
.theme-ico { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); transition: transform var(--slow) var(--release); }
[data-theme="light"] .theme-ico { transform: rotate(180deg); }
.menu { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; width: 40px; }
.menu span { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--norm) var(--release); }
.menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.sheet { padding: 8px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
.sheet ul { list-style: none; margin: 0 0 16px; padding: 0; }
.sheet a:not(.btn) { display: block; padding: 14px 0; font-size: 22px; font-weight: 600; border-bottom: 1px solid var(--line); }
.sheet .btn { width: 100%; }
@media (max-width: 920px) {
  .nav, .top-cta { display: none; }
  .menu { display: inline-flex; }
  .tools { margin-inline-start: auto; }
}

/* ---------- sections ---------- */
main { display: block; }
.sec { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 8vw, 112px) var(--gutter); position: relative; }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 6vw, 64px); }
.kicker { margin: 0 0 14px; font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--rope); display: inline-flex; align-items: center; gap: 10px; }
[lang="en"] .kicker { text-transform: uppercase; letter-spacing: .12em; }
.kicker::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
[lang="en"] h1, [lang="en"] h2 { letter-spacing: -0.025em; line-height: 1.1; }
h2 { font-size: clamp(32px, 5vw, 56px); }
h3 { font-size: 22px; font-weight: 600; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--mute); margin: 18px 0 0; max-width: 56ch; }
.mask { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.mask-in { display: block; }
.js .mask-in { transform: translateY(105%); }
.js [data-reveal], .js [data-hero="eyebrow"], .js [data-hero="sub"], .js [data-hero="cta"] .btn { opacity: 0; }
.js .lk-in { transform: translateY(110%); }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 104px var(--gutter) 72px; position: relative; overflow: hidden; }
.eyebrow { margin: 0 0 clamp(18px, 3vh, 36px); font-size: 14px; font-weight: 500; color: var(--mute); }
.lockup { --wm: clamp(50px, min(7vw, 9.5vh), 104px); --ks: calc(var(--wm) * 0.427); width: 100%; display: flex; flex-direction: column; align-items: center; position: relative; }
.lk-wm { font-size: var(--wm); font-weight: 600; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; color: var(--fg); }
.lk-mask { display: block; overflow: hidden; padding: .06em .1em .14em; margin: -.06em -.1em -.14em; }
.lk-in { display: inline-block; position: relative; }
.idot { position: relative; display: inline-block; line-height: 1; }
.i-stem { display: inline-block; clip-path: inset(32% 0 0 0); }
.i-dot { position: absolute; left: 0; top: 0; color: var(--rope); clip-path: inset(0 0 68% 0); }
.lk-rope { width: 100vw; height: calc(var(--ks) * 4.4); margin-top: calc(var(--wm) * 0.3); position: relative; }
.lk-rope .rope-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lk-ar { font-size: calc(var(--wm) * 0.6); font-weight: 500; line-height: 1.2; margin-top: calc(var(--wm) * 0.06); white-space: nowrap; color: var(--fg); }
.ar-name { position: relative; }
.ar-dots { position: absolute; inset: 0; white-space: nowrap; color: transparent; clip-path: inset(0 0 56% 0); }
.shin { color: var(--rope); }
.hero-title { margin-top: clamp(24px, 4vh, 48px); font-size: clamp(34px, min(4.6vw, 7vh), 60px); max-width: 18ch; }
.hero-title em { font-style: normal; color: var(--rope); }
.hero-sub { margin: 16px auto 0; max-width: 58ch; color: var(--mute); font-size: clamp(17px, 1.7vw, 20px); }
.hero-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; color: var(--mute); }
.scroll-hint i { width: 2px; height: 36px; background: linear-gradient(var(--rope), transparent); border-radius: 2px; transform-origin: top; animation: hint 2.2s var(--out) infinite; }
@keyframes hint { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-height: 760px) { .scroll-hint { display: none; } }

/* rope strokes (shared) */
.rope-svg .ol { fill: none; stroke: var(--bg); stroke-linecap: butt; stroke-linejoin: round; transition: stroke var(--slow) var(--out); }
.rope-svg .rp { fill: none; stroke: var(--rope); stroke-linecap: round; stroke-linejoin: round; }
.rope-svg .final { fill: none; stroke: var(--rope); stroke-linecap: round; stroke-linejoin: round; }

/* the thread that crosses between hero and work */
.thread { height: 40px; margin: 0 0 -20px; }
.thread svg { width: 100%; height: 100%; overflow: visible; }
.thread path { fill: none; stroke: var(--rope); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* ---------- work ---------- */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); align-items: start; }
.work h3 { margin-top: 18px; font-size: 20px; }
.work p { margin: 4px 0 0; color: var(--mute); font-size: 15px; }
.work-open { display: block; width: 100%; border-radius: var(--radius); }
.work-frame { display: block; position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: var(--surface); isolation: isolate; box-shadow: 0 0 0 1px var(--line); }
.work-video { width: 100%; height: 100%; object-fit: cover; transition: transform var(--slow) var(--out); }
.work-play { position: absolute; inset-inline-start: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 72%, transparent); color: var(--paper); font-size: 14px; font-weight: 600; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform var(--norm) var(--release); }
[dir="rtl"] .work-play { padding: 8px 16px 8px 10px; }
.play-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--rope); position: relative; }
.play-dot::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent var(--paper); transform: translateX(1px); }
@media (hover: hover) {
  .work-open:hover .work-video { transform: scale(1.03); }
  .work-open:hover .work-play { transform: translateY(-3px); }
}
.work-next-in { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; aspect-ratio: 9 / 16; padding: 28px; border-radius: var(--radius); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow var(--norm) ease; }
.work-next-in .symbol { width: 96px; color: var(--rope); margin-bottom: auto; }
.work-next-in h3 { margin: 0; font-size: clamp(22px, 2.2vw, 28px); }
.work-next-in p { margin: 0 0 12px; color: var(--mute); font-size: 16px; }
.work-next-in .btn { align-self: flex-start; }
@media (hover: hover) { .work-next-in:hover { box-shadow: inset 0 0 0 1.5px var(--rope); } }
@media (max-width: 860px) {
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-next { grid-column: 1 / -1; }
  .work-next-in { aspect-ratio: auto; min-height: 260px; }
}
@media (max-width: 520px) {
  .works { gap: 12px; }
  .work h3 { font-size: 17px; margin-top: 12px; }
  .work p { font-size: 13px; }
  .work-play { inset-inline-start: 10px; bottom: 10px; font-size: 0; gap: 0; padding: 6px !important; }
}

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-body > p { margin: 0 0 18px; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.8; }
.about-body > p + p { color: var(--mute); }
.pillars { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pillars li { padding: 20px; border-radius: 18px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.pillars b { font-size: 22px; font-weight: 700; }
.pillars li:nth-child(2) b { color: var(--rope); }
.pillars span { font-size: 14px; color: var(--mute); line-height: 1.5; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } .pillars li { flex-direction: row; align-items: baseline; gap: 12px; } }

/* ---------- process: four knots that untie ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); overflow-x: clip; }
.step { position: relative; padding-inline-end: 24px; }
.step-rope { height: 120px; margin-inline: -1px; position: relative; }
.step-rope .rope-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.step-n { display: block; margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--rope); unicode-bidi: isolate; }
.step h3 { margin-top: 8px; font-size: clamp(22px, 2.2vw, 28px); }
.step p { margin: 10px 0 0; color: var(--mute); font-size: 16px; max-width: 30ch; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; row-gap: 36px; }
  .step-rope { height: 96px; margin-inline: calc(var(--gutter) * -1); }
}

/* ---------- packages ---------- */
.pkgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.pkg { padding: clamp(24px, 3.4vw, 40px); border-radius: calc(var(--radius) + 6px); background: var(--surface); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.pkg-feature { background: var(--rope); color: var(--paper); }
.pkg header { display: flex; flex-direction: column; gap: 6px; }
.pkg h3 { font-size: clamp(22px, 2.2vw, 26px); }
.pkg-len { font-size: 15px; color: var(--mute); }
.pkg-feature .pkg-len { color: color-mix(in srgb, var(--paper) 80%, var(--rope)); }
.price { display: flex; align-items: baseline; gap: 10px; margin: 28px 0 24px; }
.price b { font-size: clamp(64px, 8vw, 88px); line-height: 1; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price .from, .price .cur { font-size: 16px; font-weight: 500; }
.pkg ul { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; }
.pkg li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.pkg li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--rope); }
.pkg-feature li::before { background: var(--paper); }
.pkg .btn { margin-top: auto; align-self: stretch; }
.pkg-feature .btn-rope { background: var(--paper); color: var(--ink); }
.pkg-note { margin: 24px 0 0; color: var(--mute); font-size: 15px; display: flex; align-items: center; gap: 10px; }
.pkg-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rope); flex: none; }
@media (max-width: 720px) { .pkgs { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 6vw, 96px); align-items: start; }
.faq-item { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: clamp(17px, 1.6vw, 19px); font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.plus { width: 28px; height: 28px; flex: none; border-radius: 50%; position: relative; box-shadow: inset 0 0 0 1.5px var(--line); transition: transform var(--norm) var(--release), background-color var(--fast) ease; }
.plus::before, .plus::after { content: ""; position: absolute; inset: 0; margin: auto; width: 11px; height: 2px; border-radius: 2px; background: currentColor; }
.plus::after { transform: rotate(90deg); transition: transform var(--norm) var(--release); }
.faq-item[open] .plus { transform: rotate(180deg); background: var(--rope); color: var(--paper); box-shadow: none; }
.faq-item[open] .plus::after { transform: rotate(0deg); }
.faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size var(--norm) var(--out), content-visibility var(--norm) allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }
.faq-a p { margin: 0 0 22px; color: var(--mute); max-width: 62ch; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-sec { isolation: isolate; }
.contact-bg { position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: var(--pattern) center / cover no-repeat; opacity: .45; pointer-events: none; z-index: -1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.direct { margin-top: 36px; display: grid; gap: 12px; max-width: 420px; }
.direct > a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; background: var(--surface); transition: transform var(--norm) var(--release), box-shadow var(--fast) ease; }
@media (hover: hover) { .direct > a:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--rope); } }
.direct > a .ico { width: 40px; height: 40px; border-radius: 50%; background: var(--rope); -webkit-mask: none; mask: none; position: relative; }
.direct > a .ico::after { content: ""; position: absolute; inset: 9px; background: var(--paper); -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.ico-mail { display: grid !important; place-items: center; color: var(--paper); font-weight: 700; font-size: 18px; line-height: 1; }
.ico-mail::after { display: none; }
.direct small { display: block; font-size: 13px; color: var(--mute); line-height: 1.3; }
.direct b { font-weight: 600; font-size: 17px; letter-spacing: .01em; }
.direct-mail b { font-size: 15px; word-break: break-all; }
.small-label { margin: 18px 0 2px; font-size: 13px; color: var(--mute); }
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 14px; font-weight: 500; transition: box-shadow var(--fast) ease; }
[dir="rtl"] .socials a { padding: 0 10px 0 14px; }
.socials .ico { width: 20px; height: 20px; color: var(--rope); }
@media (hover: hover) { .socials a:hover { box-shadow: inset 0 0 0 1.5px var(--rope); } }
.form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 36px); border-radius: calc(var(--radius) + 6px); background: color-mix(in srgb, var(--bg) 70%, transparent); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.form label { display: grid; gap: 8px; }
.form label > span { font-size: 14px; font-weight: 500; color: var(--mute); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--fg); background: var(--surface); border: 0; border-radius: 14px; padding: 14px 16px;
  box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow var(--fast) ease; resize: vertical; appearance: none; -webkit-appearance: none;
}
.form select { background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 40px; }
[dir="rtl"] .form select { background-position: 17px 50%, 22px 50%; }
.form input::placeholder, .form textarea::placeholder { color: color-mix(in srgb, var(--mute) 75%, transparent); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--rope); }
.form [aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--rope); animation: tug 360ms var(--release); }
@keyframes tug { 0% { transform: translateX(0); } 30% { transform: translateX(-6px); } 100% { transform: translateX(0); } }
.form-err { margin: 0; font-size: 14px; color: var(--rope); font-weight: 500; }
.form .btn { margin-top: 6px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) calc(40px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto; gap: 20px 32px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand .symbol { width: 64px; color: var(--rope); }
.foot-brand p { margin: 0; font-weight: 600; }
.foot-soc { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.foot-soc a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow var(--fast) ease, transform var(--norm) var(--release); }
.foot-soc .ico { width: 20px; height: 20px; }
@media (hover: hover) { .foot-soc a:hover { box-shadow: inset 0 0 0 1.5px var(--rope); transform: translateY(-2px); } }
.rights { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--mute); }
.rights a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .foot-in { grid-template-columns: 1fr; } }

/* ---------- lightbox ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; }
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: color-mix(in srgb, var(--ink) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lightbox video { height: min(88svh, calc((100vw - 32px) * 16 / 9)); aspect-ratio: 9 / 16; border-radius: var(--radius); background: var(--ink); }
.lb-close { position: fixed; top: max(16px, env(safe-area-inset-top)); inset-inline-end: 16px; width: 48px; height: 48px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; z-index: 2; }
.lb-close span, .bot-x span { position: absolute; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.lb-close span:first-child, .bot-x span:first-child { transform: rotate(45deg); }
.lb-close span:last-child, .bot-x span:last-child { transform: rotate(-45deg); }

/* ---------- chat assistant ---------- */
.bot { position: fixed; z-index: 70; inset-inline-end: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 12px; }
[dir="rtl"] .bot { align-items: flex-start; }
.bot-fab { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 12px; border-radius: 999px; background: var(--rope); color: var(--paper); font-weight: 600; font-size: 15px; box-shadow: 0 12px 32px -10px color-mix(in srgb, var(--rope) 70%, transparent); transition: transform var(--norm) var(--release); }
[dir="rtl"] .bot-fab { padding: 0 12px 0 20px; }
.bot-fab .symbol { width: 40px; color: var(--paper); }
.bot-fab:active { transform: scale(0.95); }
.bot.is-open .bot-fab { transform: scale(0.9); }
.bot-panel { width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100svh - 120px)); display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--bg); box-shadow: 0 0 0 1px var(--line), 0 24px 64px -16px color-mix(in srgb, var(--ink) 60%, transparent); transform-origin: bottom right; }
[dir="rtl"] .bot-panel { transform-origin: bottom left; }
.bot-panel[hidden] { display: none; }
.bot-panel header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--rope); color: var(--paper); }
.bot-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; }
.bot-avatar .symbol { width: 30px; color: var(--rope); }
.bot-panel header b { display: block; font-size: 16px; line-height: 1.2; }
.bot-panel header small { font-size: 12px; opacity: .85; }
.bot-x { margin-inline-start: auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; position: relative; }
.bot-x:focus-visible { outline-color: var(--paper); }
.bot-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.65; white-space: pre-line; }
.msg-bot { background: var(--surface); align-self: flex-start; border-end-start-radius: 6px; }
.msg-me { background: var(--rope); color: var(--paper); align-self: flex-end; border-end-end-radius: 6px; }
.msg-typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.msg-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); animation: dot 900ms var(--out) infinite; }
.msg-typing i:nth-child(2) { animation-delay: 120ms; } .msg-typing i:nth-child(3) { animation-delay: 240ms; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow var(--fast) ease, transform var(--norm) var(--release); text-align: start; }
.chip:active { transform: scale(0.95); }
@media (hover: hover) { .chip:hover { box-shadow: inset 0 0 0 1.5px var(--rope); } }
.chip-wa { background: var(--rope); color: var(--paper); box-shadow: none; display: inline-flex; align-items: center; gap: 6px; }
.chip-wa .ico { width: 16px; height: 16px; }
.bot-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.bot-input input { flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--fg); background: var(--surface); border: 0; border-radius: 999px; padding: 10px 16px; }
.bot-input input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--rope); }
.bot-input button { width: 44px; height: 44px; border-radius: 50%; background: var(--rope); color: var(--paper); display: grid; place-items: center; flex: none; }
@media (max-width: 520px) {
  .bot-fab-label { display: none; }
  .bot-fab { padding: 0 !important; width: 56px; justify-content: center; }
  .bot-fab .symbol { width: 40px; }
}

/* ---------- reduced motion: everything in its final state ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .js .mask-in { transform: none; }
  .js [data-reveal], .js [data-hero="eyebrow"], .js [data-hero="sub"], .js [data-hero="cta"] .btn { opacity: 1; }
  .js .lk-in { transform: none; }
}
