/* RetainrWorks landing + templates market. Values are lifted from Landing.dc.html. */
body.site { font-size: 16px; line-height: 1.6; }

.wrap { max-width: 1320px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 56px); }
.section { border-bottom: 1px solid var(--divider); }
.section > .wrap { padding-block: clamp(72px, 9vw, 120px); }

/* Section heads */
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.head-text { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.kicker { font-family: var(--mono); font-size: 12px; color: var(--accent-hi); letter-spacing: .08em; }
[data-lang="ar"] .kicker { letter-spacing: 0; }
.h2 { margin: 0; font-family: var(--fh); font-weight: 600; font-size: var(--h2); line-height: var(--lh-h); letter-spacing: var(--ls-h); text-wrap: balance; }
.lead { margin: 0; color: var(--muted); max-width: 56ch; text-wrap: pretty; }

/* Buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; border: 1px solid var(--divider); background: transparent; color: var(--text); font-family: var(--fh); font-weight: 600; letter-spacing: .02em; height: 42px; padding: 0 14px; font-size: 15px; transition: background-color .15s, border-color .15s; }
[data-lang="ar"] .btn { letter-spacing: 0; }
.btn:hover { border-color: var(--mark); color: var(--text); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-press); border-color: var(--accent); color: var(--on-accent); }
.btn-sm { height: 38px; padding: 0 16px; }
.btn-lg { height: 54px; padding: 0 24px; font-size: 18px; }
.btn:disabled { opacity: .75; }

/* CV promo bar (site-wide while CV packages are published) */
.promo { background: var(--accent); color: var(--on-accent); }
.promo[hidden] { display: none; }
.promo-bar { display: flex; align-items: center; gap: 12px; min-height: 42px; }
.promo-link { flex: 1; display: flex; align-items: center; gap: 12px; color: var(--on-accent); font-size: 14px; padding: 8px 0; }
.promo-link:hover { color: var(--on-accent); }
.promo-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; padding: 2px 7px; border: 1px solid rgba(255,255,255,.6); }
.promo-link b { margin-inline-start: auto; font-family: var(--fh); font-weight: 600; font-size: 15px; white-space: nowrap; }
.promo-close { width: 30px; height: 30px; border: 0; background: transparent; color: var(--on-accent); font-size: 20px; line-height: 1; opacity: .8; }
.promo-close:hover { opacity: 1; }
.nav-new { margin-inline-start: 6px; padding: 1px 5px; background: var(--accent); color: var(--on-accent); font-family: var(--mono); font-size: 9px; letter-spacing: .06em; vertical-align: 2px; }
.hero-cv { align-self: flex-start; display: inline-flex; gap: 8px; padding-bottom: 2px; border-bottom: 1px solid color-mix(in srgb, var(--accent-hi) 50%, transparent); color: var(--accent-hi); font-family: var(--fh); font-weight: 600; font-size: 17px; }
.hero-cv:hover { color: var(--text); border-bottom-color: var(--text); }

/* Header */
.nav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--divider); }
.nav-bar { height: 68px; display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 26px; margin-inline-start: 20px; font-size: 15px; }
.nav-links a { display: inline-block; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; background: transparent; border: 1px solid var(--divider); color: var(--muted); }
.icon-btn:hover { color: var(--text); border-color: var(--mark); }
.lang-btn { height: 38px; padding: 0 14px; display: inline-flex; align-items: center; background: transparent; border: 1px solid var(--divider); font-family: var(--mono); font-size: 13px; color: var(--text); }
.lang-btn:hover { border-color: var(--mark); color: var(--text); }
.theme-sun, [data-theme="light"] .theme-moon { display: block; }
.theme-moon, [data-theme="light"] .theme-sun { display: none; }
.menu-btn { display: none; color: var(--text); }
.menu { display: none; border-top: 1px solid var(--divider); padding: 12px clamp(20px, 4vw, 56px) 24px; flex-direction: column; background: var(--bg); }
.menu a { padding: 14px 0; border-bottom: 1px solid var(--divider); color: var(--text); font-family: var(--fh); font-size: 24px; font-weight: 600; }
.menu .btn { margin-top: 20px; height: 50px; font-size: 17px; border-bottom: 1px solid var(--accent); }
.nav.open .menu { display: flex; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--divider); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-fade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 70%, transparent) 0%, color-mix(in srgb, var(--bg) 20%, transparent) 55%, transparent 100%), linear-gradient(180deg, transparent 60%, var(--bg) 100%); }
[dir="rtl"] .hero-fade { background: linear-gradient(270deg, color-mix(in srgb, var(--bg) 70%, transparent) 0%, color-mix(in srgb, var(--bg) 20%, transparent) 55%, transparent 100%), linear-gradient(180deg, transparent 60%, var(--bg) 100%); }
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 55% at 78% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: radial-gradient(ellipse 90% 80% at 60% 20%, #000 35%, transparent 80%); mask-image: radial-gradient(ellipse 90% 80% at 60% 20%, #000 35%, transparent 80%); }
.beam-col { position: absolute; top: 0; bottom: 0; width: 1px; overflow: hidden; }
.beam-col span { position: absolute; left: 0; top: 0; width: 1px; height: 180px; background: linear-gradient(transparent, var(--accent-hi), transparent); animation: rw-beam 6s linear infinite; }
.beam-row { position: absolute; left: 0; right: 0; height: 1px; overflow: hidden; }
.beam-row span { position: absolute; top: 0; left: 0; height: 1px; width: 200px; background: linear-gradient(90deg, transparent, var(--accent-hi), transparent); animation: rwBeamX 9s linear infinite; }
.hero-spot { position: absolute; inset: 0; pointer-events: none; opacity: var(--hon, 0); transition: opacity .5s; background: radial-gradient(560px circle at var(--hx, 70%) var(--hy, 0%), color-mix(in srgb, var(--accent-hi) 30%, transparent), transparent 65%); }
.hero-inner { position: relative; pointer-events: none; padding-top: clamp(64px, 10vw, 128px); padding-bottom: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: end; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; min-width: 0; pointer-events: auto; }
.hero h1 { margin: 0; font-family: var(--fh); font-weight: 600; font-size: var(--hero); line-height: var(--lh-h); letter-spacing: var(--ls-h); text-wrap: balance; max-width: 13ch; }
.hero h1 [data-repel] { display: inline-block; transition: transform .4s cubic-bezier(.2,1.3,.4,1); will-change: transform; }
.hero h1 .acc { color: var(--accent-hi); }
.hero-sub { margin: 0; max-width: 56ch; color: var(--muted); font-size: var(--text-lead); text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-shimmer { position: relative; display: inline-flex; border: 1px solid var(--accent); }
.cta-shimmer > span { position: relative; overflow: hidden; height: 52px; padding: 0 24px; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--on-accent); font-family: var(--fh); font-weight: 600; font-size: 18px; letter-spacing: .02em; }
.cta-shimmer:hover > span { background: var(--accent-press); }
.cta-shimmer i { position: absolute; inset: 0; background-image: linear-gradient(110deg, transparent 38%, rgba(255,255,255,.32) 50%, transparent 62%); background-size: 250% 100%; animation: rw-shimmer 3.2s ease-in-out infinite; }
.cta-shimmer b { position: relative; font-weight: inherit; }
.btn-ghost { height: 54px; padding: 0 24px; font-size: 18px; background: color-mix(in srgb, var(--bg) 60%, transparent); }
.marquee { display: flex; align-items: center; gap: 20px; }
.marquee-label { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .08em; white-space: nowrap; }
.marquee-view { flex: 1; min-width: 0; overflow: hidden; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: rw-marquee 40s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; font-family: var(--fh); font-weight: 600; font-size: 24px; color: var(--muted); white-space: nowrap; }
.marquee-track em { font-style: normal; color: var(--accent); font-family: var(--mono); font-size: 14px; }

/* Spec card */
.spec { position: relative; pointer-events: auto; border: 1px solid var(--divider); background: var(--bg); max-width: 440px; width: 100%; justify-self: end; }
.spec-head { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--divider); font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.spec-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--divider); font-size: 14px; }
.spec-row span:first-child { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 2px; }
.spec-foot { padding: 12px 16px; font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* Cursor glow used on [data-fx] cards */
.glow { position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: var(--on, 0); transition: opacity .3s; background: radial-gradient(var(--glow-r, 420px) circle at var(--px, 50%) var(--py, 50%), color-mix(in srgb, var(--accent-hi) var(--glow-a, 24%), transparent), transparent 60%); }

/* Placeholder imagery (diagonal stripes) and real images */
.ph { display: grid; place-items: center; border: 1px solid var(--divider); background: repeating-linear-gradient(135deg, var(--stripe) 0 1px, transparent 1px 11px); overflow: hidden; }
.ph span { font-family: var(--mono); font-size: 12px; color: var(--muted); direction: ltr; padding: 0 12px; text-align: center; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Selected work */
.work-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.work-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--divider); background: var(--surface); color: var(--text); transform-style: preserve-3d; will-change: transform; }
.work-card:hover { border-color: var(--accent-hi); color: var(--text); }
.work-card .ph { margin: 12px 12px 0; transform: translate(calc(var(--mx, 0) * -34px), calc(var(--my, 0) * -26px)) scale(calc(1 + var(--on, 0) * .05)); transition: transform .25s ease-out; }
.work-body { position: relative; z-index: 2; padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--mono); font-size: 11px; padding: 4px 8px; border: 1px solid var(--divider); color: var(--muted); }
.work-name { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.work-name h3 { margin: 0; font-family: var(--fh); font-weight: 600; font-size: var(--h3); line-height: 1.1; letter-spacing: var(--ls-h); transform: translate(calc(var(--mx, 0) * 18px), calc(var(--my, 0) * 10px)) skewX(calc(var(--mx, 0) * -10deg)); transition: transform .2s ease-out; }
.work-name span { color: var(--muted); font-size: 15px; }
.work-desc { margin: 0; color: var(--muted); font-size: 15px; max-width: 62ch; text-wrap: pretty; flex: 1; }
.work-more { margin-top: 6px; font-family: var(--fh); font-weight: 600; font-size: 15px; color: var(--accent-hi); letter-spacing: calc(.02em + var(--on, 0) * .18em); transition: letter-spacing .5s cubic-bezier(.2,.8,.2,1); }

/* Services */
.svc-list { border-top: 1px solid var(--divider); }
.svc { position: relative; overflow: hidden; display: grid; grid-template-columns: 64px minmax(0,1.1fr) minmax(0,1.4fr) minmax(0,.8fr); gap: 16px 32px; align-items: baseline; padding: 28px 8px; border-bottom: 1px solid var(--divider); transition: background .2s; }
.svc:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.svc-tile { position: absolute; z-index: 2; left: var(--px, 50%); top: var(--py, 50%); width: 150px; height: 96px; display: grid; place-items: center; background: #6E9BF0; color: #0E1114; mix-blend-mode: difference; font-family: var(--fh); font-weight: 600; font-size: 56px; pointer-events: none; transform: translate(-50%, -50%) rotate(calc(var(--mx, 0) * 40deg)) scale(var(--on, 0)); transition: transform .45s cubic-bezier(.3,1.7,.5,1), left .18s ease-out, top .18s ease-out; }
.svc-n { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.svc h3 { margin: 0; font-family: var(--fh); font-weight: 600; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; letter-spacing: var(--ls-h); transform: translateX(calc(var(--on, 0) * 28px)) skewX(calc(var(--mx, 0) * -14deg)); transition: transform .35s cubic-bezier(.2,1.4,.4,1); }
[dir="rtl"] .svc h3 { transform: translateX(calc(var(--on, 0) * -28px)) skewX(calc(var(--mx, 0) * -14deg)); }
.svc p { margin: 0; color: var(--muted); font-size: 16px; text-wrap: pretty; }
.svc-tags { font-family: var(--mono); font-size: 12px; color: var(--text); justify-self: start; }

/* Template cards (landing + market) */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 20px; }
.tpl-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--divider); background: var(--surface); will-change: transform; --glow-r: 340px; --glow-a: 22%; }
.tpl-card .ph { aspect-ratio: 4 / 3; margin: 10px 10px 0; transform: translate(calc(var(--mx, 0) * -22px), calc(var(--my, 0) * -18px)) rotate(calc(var(--mx, 0) * -3deg)); transition: transform .25s ease-out; }
.tpl-card .ph span { font-size: 11px; }
.tpl-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tpl-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.chip-cat { font-family: var(--mono); font-size: 11px; padding: 4px 8px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-hi); }
.tpl-code { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.tpl-card h3 { margin: 6px 0 0; font-family: var(--fh); font-weight: 600; font-size: 24px; line-height: 1.15; letter-spacing: var(--ls-h); }
.tpl-card h3 a { color: inherit; }
.tpl-feat { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 10px; }
.price b { display: inline-block; font-family: var(--fh); font-weight: 600; font-size: 32px; line-height: 1; direction: ltr; transform: scale(calc(1 + var(--on, 0) * .35)) rotate(calc(var(--on, 0) * -6deg)); transform-origin: left bottom; transition: transform .45s cubic-bezier(.3,1.7,.5,1); }
.price span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tpl-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-top: 1px solid var(--divider); }
.step { position: relative; padding: 28px 0 8px; padding-inline-end: 24px; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--divider); perspective: 600px; }
.step-bar { position: absolute; top: -5px; inset-inline-start: 0; width: calc(9px + var(--on, 0) * (100% - 33px)); height: 9px; background: var(--accent); transition: width .6s cubic-bezier(.2,.9,.2,1); }
.step-n { display: inline-block; align-self: flex-start; font-family: var(--fh); font-weight: 500; font-size: 64px; line-height: 1; color: color-mix(in srgb, var(--accent-hi) calc(var(--on, 0) * 100%), var(--muted)); direction: ltr; transform: rotateX(calc(var(--on, 0) * 360deg)) translateY(calc(var(--on, 0) * -6px)); transition: transform .9s cubic-bezier(.2,.8,.2,1), color .3s; }
.step h3 { margin: 0; font-family: var(--fh); font-weight: 600; font-size: var(--h3); line-height: 1.1; letter-spacing: var(--ls-h); }
.step p { margin: 0 0 20px; color: var(--muted); font-size: 15px; text-wrap: pretty; }

/* Stats */
.stats { background: var(--surface); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.stat { padding: 44px 0; padding-inline-end: 24px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--divider); }
.stat-v { align-self: flex-start; transform: translate(calc(var(--mx, 0) * 50px), calc(var(--my, 0) * 30px)) skewX(calc(var(--mx, 0) * -24deg)) scale(calc(1 + var(--on, 0) * .12)); transition: transform .3s cubic-bezier(.2,1.4,.4,1); font-family: var(--fh); font-weight: 600; font-size: clamp(64px, 7vw, 96px); line-height: .9; letter-spacing: -0.02em; direction: ltr; font-variant-numeric: tabular-nums; }
.stat-l { font-family: var(--fh); font-weight: 600; font-size: 20px; }
.stat-n { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 20px; }
.contact-copy .lead { max-width: 44ch; }
.contact-links { display: flex; flex-direction: column; border-top: 1px solid var(--divider); margin-top: 12px; }
.contact-links a { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--divider); color: var(--text); }
.contact-links a:hover { color: var(--accent-hi); }
.contact-links span:last-child { font-family: var(--mono); font-size: 14px; direction: ltr; }
.panel { position: relative; border: 1px solid var(--divider); background: var(--surface); padding: clamp(20px, 3vw, 36px); }

.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px 16px; }
.form[hidden], .ok[hidden], .alert[hidden], .err[hidden] { display: none; }
.full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 13px; color: var(--muted); }
.field-label small { font-size: inherit; opacity: .7; }
.input { height: 46px; padding: 0 14px; background: var(--bg); border: 1px solid var(--divider); outline: none; text-align: start; border-radius: 0; }
.input:focus { border-color: var(--accent); }
select.input { padding: 0 12px; cursor: pointer; }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.55; }
.field.invalid .input, .field.invalid .phone { border-color: var(--err); }
.phone { display: flex; height: 46px; border: 1px solid var(--divider); background: var(--bg); direction: ltr; }
.phone:focus-within { border-color: var(--accent); }
.phone span { display: grid; place-items: center; padding: 0 12px; border-right: 1px solid var(--divider); font-family: var(--mono); font-size: 14px; color: var(--muted); }
.phone input { flex: 1; min-width: 0; padding: 0 12px; background: transparent; border: 0; outline: none; font-family: var(--mono); }
.err { font-size: 12px; color: var(--err); }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); border: 1px solid var(--divider); gap: 1px; background: var(--divider); }
.seg button { height: 44px; border: 0; background: var(--bg); color: var(--text); font-family: var(--mono); font-size: 13px; direction: ltr; }
.seg button[aria-checked="true"] { background: var(--accent); color: var(--on-accent); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 4px; }
.form-foot > span { font-size: 13px; color: var(--muted); }
.submit { height: 52px; padding: 0 26px; font-size: 18px; gap: 10px; }
.spinner { width: 14px; height: 14px; border: 1.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: rwSpin .7s linear infinite; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--err); background: var(--err-tint); }
.alert svg { flex: none; margin-top: 3px; }
.alert div { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.alert strong { font-weight: 600; }
.alert div span { color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ok { display: flex; flex-direction: column; gap: 16px; min-height: 420px; justify-content: center; }
.ok-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--ok); color: var(--ok); }
.ok h3 { margin: 0; font-family: var(--fh); font-weight: 600; font-size: clamp(30px, 3vw, 40px); line-height: 1.1; }
.ok p { margin: 0; color: var(--muted); max-width: 44ch; }
.ok-ref { font-family: var(--mono); font-size: 12px; color: var(--muted); direction: ltr; text-align: start; }
.ok .btn { align-self: flex-start; margin-top: 8px; height: 44px; padding: 0 18px; font-size: 16px; }

/* Footer */
.footer { padding-top: 64px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 48px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; align-items: flex-end; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.footer-brand p { margin: 0; color: var(--muted); }
.logo-xl { font-size: clamp(48px, 7vw, 96px); letter-spacing: -0.05em; line-height: .9; }
.logo-xl .logo-dot { width: .22em; height: .22em; margin: 0 .08em; margin-bottom: .12em; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; min-width: 150px; border: 1px solid var(--divider); color: var(--text); }
.social:hover { border-color: var(--accent); color: var(--text); }
.social span:first-child { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.social span:last-child { direction: ltr; text-align: start; font-size: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 20px; border-top: 1px solid var(--divider); font-size: 13px; color: var(--muted); }
.footer-bottom > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer .lang-btn { height: 34px; padding: 0 12px; font-size: 12px; }

/* Cookie bar + mobile CTA */
.cookie { position: fixed; z-index: 60; inset-inline-start: 16px; bottom: 16px; max-width: min(420px, calc(100% - 32px)); padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--raise); border: 1px solid var(--divider); box-shadow: var(--shadow-pop); font-size: 14px; }
.cookie[hidden] { display: none; }
.cookie div { display: flex; gap: 8px; }
.cookie .btn { height: 38px; }
.mcta { display: none; }

/* Market */
.market-head { padding-top: clamp(56px, 7vw, 96px); padding-bottom: 32px; display: flex; flex-direction: column; gap: 16px; }
.market-head h1 { margin: 0; font-family: var(--fh); font-weight: 600; font-size: var(--hero); line-height: var(--lh-h); letter-spacing: var(--ls-h); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { height: 38px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--divider); color: var(--muted); font-family: var(--mono); font-size: 12px; }
.chip:hover { color: var(--text); border-color: var(--mark); }
.chip[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip small { font-size: 11px; opacity: .7; }
.market-grid { padding-bottom: clamp(72px, 9vw, 120px); }
.empty { padding: 64px 0; color: var(--muted); text-align: center; border: 1px solid var(--divider); }

.back { display: inline-flex; gap: 8px; color: var(--muted); font-size: 14px; }
.back:hover { color: var(--text); }
.detail { padding-top: 32px; padding-bottom: clamp(72px, 9vw, 120px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery-main { aspect-ratio: 4 / 3; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.gallery-thumbs button { aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--divider); background: none; overflow: hidden; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--accent-hi); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.info { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; }
.info h1 { margin: 0; font-family: var(--fh); font-weight: 600; font-size: var(--h2); line-height: var(--lh-h); letter-spacing: var(--ls-h); }
.info .price { margin: 0; }
.info .price b { font-size: 56px; transform: none; }
.info-note { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.info p { margin: 0; color: var(--muted); text-wrap: pretty; }
.features { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--divider); }
.features li { display: flex; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--divider); }
.features li::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--accent); transform: translateY(-2px); }
.features-title { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.info-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.info-actions .btn { height: 52px; font-size: 17px; padding: 0 20px; }

/* Case study */
.work-card .ph img, .case-cover .ph img { object-position: top center; }
.ph video { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-live { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px 18px; border: 1px solid var(--divider); background: var(--surface); color: var(--text); font-family: var(--mono); font-size: 14px; }
.case-live:hover { border-color: var(--accent-hi); color: var(--text); }
.case-live b { margin-inline-start: auto; font-family: var(--fh); font-weight: 600; font-size: 16px; color: var(--accent-hi); }
.case-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.case-hero > .wrap { padding-top: 40px; padding-bottom: clamp(56px, 7vw, 96px); display: flex; flex-direction: column; gap: clamp(32px, 5vw, 64px); }
.case-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: end; }
.case-intro { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.case-intro h1 { margin: 0; font-family: var(--fh); font-weight: 600; font-size: var(--hero); line-height: var(--lh-h); letter-spacing: var(--ls-h); }
.case-intro h1 span { display: block; margin-top: .2em; font-size: .32em; line-height: 1.2; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.case-intro .lead { font-size: var(--text-lead); }
.case-cover-wrap { padding-block: clamp(32px, 4vw, 56px); }
.case-cover { position: relative; }
.case-cover .ph { height: clamp(280px, 44vw, 600px); transform: translate(calc(var(--mx, 0) * -20px), calc(var(--my, 0) * -14px)) scale(calc(1 + var(--on, 0) * .015)); transition: transform .3s ease-out; }
.case-body { padding-block: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(32px, 4vw, 56px); }
.case-block { display: flex; flex-direction: column; gap: 18px; padding-top: 24px; border-top: 1px solid var(--divider); position: relative; }
.case-block::before { content: ""; position: absolute; top: -5px; inset-inline-start: 0; width: 9px; height: 9px; background: var(--accent); }
.case-block .kicker, .legal-toc .kicker, .case-next .kicker { text-transform: var(--tt); }
.case-block .features { border-top: 0; }
.case-block p { margin: 0; font-size: 17px; text-wrap: pretty; }
.case-shots { padding-block: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.case-shots .ph { aspect-ratio: 4 / 3; transform: translate(calc(var(--mx, 0) * -14px), calc(var(--my, 0) * -10px)); transition: transform .3s ease-out; }
/* Gallery images keep their own shape (screenshots, full CV pages), capped so a lone image doesn't fill the screen. */
.case-shots { justify-items: center; }
.case-shots .ph:has(img) { aspect-ratio: auto; width: 100%; max-width: 760px; }
.case-shots .ph img { height: auto; }
.case-next { position: relative; display: flex; flex-direction: column; gap: 12px; padding-block: clamp(56px, 7vw, 96px); color: var(--text); }
.case-next:hover { color: var(--text); }
.case-next-name { font-family: var(--fh); font-weight: 600; font-size: var(--hero); line-height: var(--lh-h); letter-spacing: var(--ls-h); display: inline-flex; align-items: baseline; gap: .3em; transform: translateX(calc(var(--on, 0) * 24px)); transition: transform .45s cubic-bezier(.2,1.4,.4,1); }
[dir="rtl"] .case-next-name { transform: translateX(calc(var(--on, 0) * -24px)); }
.case-next-name b { color: var(--accent-hi); font-weight: inherit; }
.case-next-desc { color: var(--muted); max-width: 62ch; }
.band { padding-block: clamp(56px, 7vw, 96px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.band > div { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }

/* Legal */
.legal-head { padding-bottom: clamp(40px, 5vw, 64px); }
.legal-head h1 { font-size: var(--h2); }
.legal { padding-block: clamp(32px, 4vw, 56px) clamp(72px, 9vw, 120px); display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.legal-toc { position: sticky; top: 92px; display: flex; flex-direction: column; border-top: 1px solid var(--divider); }
.legal-toc .kicker { padding: 14px 0; }
.legal-toc a { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--divider); color: var(--muted); font-size: 14px; }
.legal-toc a:hover { color: var(--text); }
.legal-toc a span { font-family: var(--mono); font-size: 12px; color: var(--accent-hi); padding-top: 1px; }
.legal-toc .legal-swap { margin-top: 12px; border-top: 1px solid var(--divider); color: var(--accent-hi); font-family: var(--fh); font-weight: 600; font-size: 15px; }
.legal-body { display: flex; flex-direction: column; max-width: 72ch; }
.legal-body section { padding: 28px 0; border-top: 1px solid var(--divider); scroll-margin-top: 80px; }
.legal-body h2 { margin: 0 0 14px; display: flex; gap: 14px; align-items: baseline; font-family: var(--fh); font-weight: 600; font-size: var(--h3); line-height: 1.15; letter-spacing: var(--ls-h); }
.legal-body h2 span { font-family: var(--mono); font-size: 13px; color: var(--accent-hi); font-weight: 400; letter-spacing: 0; }
.legal-body p { margin: 0 0 12px; text-wrap: pretty; }
.legal-body p:last-child { margin-bottom: 0; }

/* CV quick-buy */
.cv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; margin-bottom: 32px; }
.cv-card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--divider); background: var(--surface); --glow-r: 340px; --glow-a: 20%; transition: border-color .2s; }
.cv-card.featured { border-color: var(--accent); }
.cv-card[aria-current="true"] { border-color: var(--accent-hi); box-shadow: inset 0 0 0 1px var(--accent-hi); }
.cv-badge { position: absolute; top: -1px; inset-inline-end: -1px; padding: 4px 10px; background: var(--accent); color: var(--on-accent); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }
.cv-card-head { display: flex; flex-direction: column; gap: 6px; }
.cv-card h3 { margin: 0; font-family: var(--fh); font-weight: 600; font-size: 28px; line-height: 1.1; letter-spacing: var(--ls-h); }
.cv-card-head p { margin: 0; color: var(--muted); font-size: 15px; }
.cv-card .price { margin: 0; }
.cv-card .price b { font-size: 48px; transform: none; }
.cv-card .features { flex: 1; }
.cv-card .features li { padding: 9px 0; font-size: 15px; }
.cv-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.cv-card .btn { height: 46px; font-size: 16px; }
.cv-checkout { scroll-margin-top: 80px; }
.cv-steps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border-top: 1px solid var(--divider); }
.cv-steps li { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 16px 0; padding-inline: 0 16px; border-bottom: 1px solid var(--divider); font-family: var(--fh); font-weight: 600; font-size: 19px; }
.cv-steps span { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--accent-hi); }
.cv-samples { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.cv-samples > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.cv-samples a { position: relative; display: flex; flex-direction: column; gap: 10px; color: var(--text); }
.cv-samples .ph { height: 200px; transform: translateY(calc(var(--on, 0) * -4px)); transition: transform .25s ease-out, border-color .2s; }
.cv-samples a:hover .ph { border-color: var(--accent-hi); }
.cv-samples .ph img { object-position: top center; }
.cv-samples b { font-family: var(--fh); font-weight: 600; font-size: 17px; }
.cv-samples b span { color: var(--accent-hi); }
.file { position: relative; display: flex; align-items: center; height: 46px; padding: 0 14px; border: 1px dashed var(--mark); background: var(--bg); color: var(--muted); font-size: 14px; cursor: pointer; overflow: hidden; }
.file:hover, .file:focus-within { border-color: var(--accent); color: var(--text); }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field.invalid .file { border-color: var(--err); }
.field.invalid .seg { border-color: var(--err); background: var(--err); }
.cv-total { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--divider); }
.cv-total .price { margin: 4px 0 0; }
.cv-total .price b { font-size: 40px; transform: none; }
.cv-secure { margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* Order status page */
.order-page { padding-block: clamp(64px, 8vw, 112px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(32px, 5vw, 80px); align-items: start; }
.order-status { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.order-status .lead { max-width: 52ch; }
.ok-icon.is-err { border-color: var(--err); color: var(--err); }
.ok-icon.is-pending { border-color: var(--divider); }
.order-summary { justify-self: stretch; max-width: none; }

/* Mobile: below 1000px the nav collapses (matches the prototype's container breakpoint). */
@media (max-width: 999px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: grid; }
  .work-card { grid-column: span 6 !important; }
  .work-card .ph { height: 220px !important; }
  .svc { grid-template-columns: 40px 1fr; }
  .svc p, .svc-tags { grid-column: 2; }
  .detail { grid-template-columns: 1fr; }
  .info { position: static; }
  .mcta { display: grid; position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); grid-template-columns: 1fr auto; gap: 8px; background: var(--bg); border-top: 1px solid var(--divider); }
  .mcta .btn { height: 50px; font-size: 17px; }
  .mcta .btn:last-child { padding: 0 16px; font-size: 16px; }
  body.site { padding-bottom: 76px; }
  .cookie { bottom: 88px; }
  .spec { justify-self: stretch; max-width: none; }
  .promo-text { display: none; }
  .legal { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}
