/* =====================================================================
   MuStudio motion layer — scroll-driven, GPU-friendly.
   motion.js writes --p (0→1 progress) on visible [data-progress] elements only.
   Rules: animate transform / opacity / clip-path only. No animated filters,
   no layout properties, no huge scaled layers. Static under reduced motion.
   ===================================================================== */

/* ---------- Page transitions (View Transitions API) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .3s cubic-bezier(.7,0,.3,1) both; }
::view-transition-new(root) { animation: vt-in .45s cubic-bezier(.16,1,.3,1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Lenis ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* ---------- Scroll progress ---------- */
.scroll-bar { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; background: var(--lime); transform-origin: 0 50%; transform: scaleX(var(--page-p, 0)); pointer-events: none; }
html[dir=rtl] .scroll-bar { transform-origin: 100% 50%; }

/* ---------- Preloader (first visit per session) ---------- */
.preloader { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: grid; place-items: center; transition: opacity .5s ease, visibility 0s .5s; }
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader .pl-mark { width: min(28vw, 160px); color: var(--lime); animation: pl-pulse 1.1s ease-in-out infinite alternate; }
.preloader .pl-count { position: absolute; bottom: 6vh; inset-inline-end: 6vw; font-size: clamp(44px, 9vw, 120px); font-weight: 800; letter-spacing: -.06em; color: var(--text); font-variant-numeric: tabular-nums; }
@keyframes pl-pulse { from { transform: scale(.94); opacity: .75; } to { transform: scale(1); opacity: 1; } }

/* ---------- Cursor (fine pointers; hidden until the pointer moves) ---------- */
.cursor, .cursor-label { position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none; opacity: 0; }
.cursor.ready, .cursor-label.on { opacity: 1; }
.cursor { width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--lime); mix-blend-mode: difference; transition: width .25s, height .25s, margin .25s, opacity .25s; }
.cursor.is-link { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.cursor.is-view { width: 92px; height: 92px; margin: -46px 0 0 -46px; mix-blend-mode: normal; }
.cursor-label { color: #10110f; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transform: translate(-50%, -50%); transition: opacity .2s; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-label { display: none; } }

/* ---------- Reveals (opacity + transform only) ---------- */
.js-motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i, 0) * 60ms); }
.js-motion [data-reveal].in { opacity: 1; transform: none; }

/* Word split — never splits inside a word (Arabic stays joined); padding keeps diacritics unclipped */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em 0 .1em; margin: -.14em 0 -.1em; }
.split-word > span { display: inline-block; }
.js-motion [data-split].split-ready .split-word > span { transform: translateY(145%); transition: transform .8s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--w, 0) * 40ms); }
.js-motion [data-split].split-ready.in .split-word > span { transform: none; }

/* Image parallax inside a frame */
[data-parallax] { overflow: hidden; }
[data-parallax] > img, [data-parallax] > .cover-ph { transform: translate3d(0, calc((var(--p, .5) - .5) * -14%), 0) scale(1.16); }

/* =====================================================================
   HOME
   ===================================================================== */
.is-home .page-shell { width: 100%; padding: 0; }
.is-home .flash-stack { width: min(1280px, calc(100% - 32px)); margin: 20px auto; }
.wrap { width: min(1320px, calc(100% - 40px)); margin-inline: auto; }
.is-home .topbar { background: #10110fe6; backdrop-filter: none; }

/* ---- 1. Hero: grid layout + circle reveal out of the mark ---- */
.hero2 { position: relative; height: 230vh; }
.hero2-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; align-items: center; isolation: isolate; }
.hero2-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero2-bg::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#ffffff07 1px, transparent 1px), linear-gradient(90deg, #ffffff07 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: radial-gradient(ellipse at 30% 45%, #000 15%, transparent 70%); mask-image: radial-gradient(ellipse at 30% 45%, #000 15%, transparent 70%); }
.hero2-orb { position: absolute; left: 0; top: 0; width: 70vmax; height: 70vmax; margin: -35vmax 0 0 -35vmax; border-radius: 50%; background: radial-gradient(circle, #c8ff551c, transparent 62%); transform: translate3d(var(--ox, 30vw), var(--oy, 40vh), 0); transition: transform 1.4s cubic-bezier(.16,1,.3,1); }
.hero2-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.hero2-copy { position: relative; z-index: 2; }
.hero2-copy .eyebrow { margin-bottom: 22px; opacity: calc(1 - var(--p, 0) * 5); }
.hero2-title { font-size: clamp(46px, 7.4vw, 132px); line-height: .92; letter-spacing: -.07em; font-weight: 800; margin: 0; }
html[dir=rtl] .hero2-title { letter-spacing: 0; line-height: 1.22; font-size: clamp(40px, 6.2vw, 112px); }
.hero2-title .line { display: block; }
.hero2-title .line + .line { color: var(--lime); }
.hero2-title .w { display: inline-block; transform: translate3d(0, calc(var(--p, 0) * var(--dy, -40) * 1vh), 0); opacity: calc(1 - var(--p, 0) * 3.2); }
.hero2-sub { max-width: 46ch; color: var(--muted); font-size: clamp(15px, 1.15vw, 18px); line-height: 1.75; margin: 26px 0 0; opacity: calc(1 - var(--p, 0) * 5); }
.hero2-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; opacity: calc(1 - var(--p, 0) * 5); }
.hero2-mark { position: relative; z-index: 4; justify-self: center; width: clamp(150px, 19vw, 300px); aspect-ratio: 658 / 388; transform: translate3d(0, calc(var(--p, 0) * -6vh), 0) scale(calc(1 + min(var(--p, 0), .5) * .7)); transform-origin: 50% 50%; }
.hero2-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero2-mark .m-lime { color: var(--lime); }
.hero2-mark .m-dark { color: #10110f; opacity: clamp(0, (var(--p, 0) - .22) * 8, 1); }
.hero2-flood { position: absolute; inset: 0; z-index: 3; background: var(--lime); clip-path: circle(calc(clamp(0, (var(--p, 0) - .18) * 2, 1) * 150vmax) at var(--cx, 75%) var(--cy, 50%)); pointer-events: none; }
.hero2-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 5; display: grid; justify-items: center; gap: 10px; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); opacity: calc(1 - var(--p, 0) * 8); }
.hero2-hint i { width: 1px; height: 46px; background: linear-gradient(var(--lime), transparent); animation: hint 1.8s cubic-bezier(.76,0,.24,1) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---- 2. Manifesto (lime), word-by-word light-up ---- */
.manifesto { background: var(--lime); color: #10110f; position: relative; height: 200vh; margin-top: -1px; }
.manifesto-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; }
.manifesto p { font-size: clamp(30px, 5vw, 80px); line-height: 1.08; letter-spacing: -.045em; font-weight: 700; margin: 0; max-width: 19ch; }
html[dir=rtl] .manifesto p { letter-spacing: 0; line-height: 1.45; max-width: 21ch; font-size: clamp(26px, 4.3vw, 68px); }
.manifesto .mw { opacity: clamp(.14, (var(--p, 0) * 1.4 - var(--k, 0)) * 8, 1); }
.manifesto .eyebrow { color: #10110f; margin-bottom: 30px; }

/* ---- 3. Velocity marquee ---- */
.marquee { overflow: hidden; padding: clamp(36px, 6vw, 80px) 0; border-block: 1px solid var(--line); background: var(--bg); contain: paint; }
.marquee-row { display: flex; width: max-content; transform: translate3d(var(--mx-x, 0px), 0, 0) skewX(var(--skew, 0deg)); }
.marquee-row + .marquee-row { margin-top: 8px; }
.marquee-item { display: inline-flex; align-items: center; gap: clamp(20px, 3vw, 44px); padding-inline-end: clamp(20px, 3vw, 44px); font-size: clamp(42px, 7.4vw, 120px); font-weight: 800; letter-spacing: -.05em; line-height: 1.1; white-space: nowrap; }
html[dir=rtl] .marquee-item { letter-spacing: 0; }
.marquee-row.outline .marquee-item { color: transparent; -webkit-text-stroke: 1.5px #faf7ee55; }

/* ---- 4. Floating gallery ---- */
.floatery { position: relative; height: 190vh; background: radial-gradient(ellipse at 50% 40%, #1b2014, transparent 60%); }
.floatery-title { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; text-align: center; z-index: 1; pointer-events: none; }
.floatery-title h2 { font-size: clamp(44px, 8.5vw, 150px); letter-spacing: -.07em; line-height: .9; margin: 12px 0 18px; }
html[dir=rtl] .floatery-title h2 { letter-spacing: 0; line-height: 1.2; }
.floatery-title .eyebrow { justify-content: center; }
.floatery-title .button { pointer-events: auto; }
.floatery-field { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.float-card { position: absolute; top: var(--t); inset-inline-start: var(--l); width: var(--w); pointer-events: auto; transform: translate3d(0, calc((var(--p, .5) - .5) * var(--s, 1) * -38vh), 0); }
.float-card .frame { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: var(--ar, 4/5); background: radial-gradient(circle at 30% 20%, hsl(var(--h, 80) 55% 30%), transparent 60%), linear-gradient(150deg, hsl(var(--h, 80) 25% 16%), #121311); border: 1px solid #ffffff12; box-shadow: 0 30px 70px #0008; transition: transform .5s cubic-bezier(.16,1,.3,1), border-radius .5s; }
.float-card .frame img { width: 100%; height: 100%; object-fit: cover; }
.float-card .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.float-card .ph svg { width: 42%; height: auto; color: #c8ff5533; }
.float-card .meta { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-top: 10px; font-size: 13px; }
.float-card .meta b { font-weight: 700; }
.float-card .meta span { color: var(--muted); font-size: 12px; white-space: nowrap; }
@media (hover: hover) { .float-card:hover .frame { transform: scale(1.03); border-radius: 30px; } .float-card:hover { z-index: 5; } }

/* ---- 5. Stacked sticky service cards ---- */
.stack-section { padding: clamp(80px, 11vw, 150px) 0 40px; }
.stack-head { margin-bottom: 40px; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.stack-head h2, .process h2 { font-size: clamp(36px, 6vw, 92px); letter-spacing: -.06em; line-height: .95; margin: 10px 0 0; }
html[dir=rtl] .stack-head h2, html[dir=rtl] .process h2 { letter-spacing: 0; line-height: 1.25; }
.stack-cards { display: grid; gap: 4vh; padding-bottom: 8vh; }
.stack-card { position: sticky; top: calc(96px + var(--i, 0) * 20px); min-height: min(62vh, 520px); border-radius: 32px; border: 1px solid var(--line); background: linear-gradient(150deg, #1d211a, #121311 70%); padding: clamp(24px, 4vw, 52px); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 4vw, 56px); overflow: hidden; transform-origin: 50% 0; transform: scale(calc(1 - var(--cover, 0) * .07)); }
.stack-card::after { content: ""; position: absolute; inset: 0; background: #000; opacity: calc(var(--cover, 0) * .45); pointer-events: none; border-radius: inherit; }
.stack-card:nth-child(even) { background: linear-gradient(150deg, #22261d, #141512 70%); }
.stack-card .idx { font-size: clamp(56px, 8vw, 130px); font-weight: 800; letter-spacing: -.08em; color: transparent; -webkit-text-stroke: 1.5px #c8ff5566; line-height: .9; }
.stack-card h3 { font-size: clamp(28px, 3.4vw, 52px); letter-spacing: -.045em; margin: 14px 0 10px; line-height: 1.02; }
html[dir=rtl] .stack-card h3 { letter-spacing: 0; line-height: 1.3; }
.stack-card p { color: var(--muted); max-width: 46ch; font-size: 15px; }
.stack-card .price { font-size: clamp(22px, 2.4vw, 34px); font-weight: 800; margin: 16px 0 22px; }
.stack-card .price small { font-size: 13px; color: var(--muted); font-weight: 500; }
.stack-card .visual { border-radius: 22px; overflow: hidden; background: #0d0e0c; display: grid; place-items: center; position: relative; min-height: 220px; }
.stack-card .visual img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.stack-card .visual svg { width: 40%; height: auto; color: var(--lime); opacity: .85; }

/* ---- 6. Process with self-drawing line ---- */
.process { padding: clamp(80px, 11vw, 150px) 0; }
.process-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(30px, 6vw, 100px); }
.process h2 { position: sticky; top: 120px; }
.steps { position: relative; display: grid; gap: clamp(40px, 8vh, 88px); padding-inline-start: 46px; }
.steps::before, .steps::after { content: ""; position: absolute; inset-inline-start: 10px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; }
.steps::before { background: var(--line); }
.steps::after { background: var(--lime); transform-origin: top; transform: scaleY(var(--p, 0)); }
.step { position: relative; }
.step::before { content: ""; position: absolute; inset-inline-start: -42px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); transition: background .3s, border-color .3s; }
.step.in::before { background: var(--lime); border-color: var(--lime); }
.step b { font-size: 13px; color: var(--lime); letter-spacing: .1em; }
.step h3 { font-size: clamp(22px, 2.6vw, 36px); letter-spacing: -.04em; margin: 6px 0; }
.step p { color: var(--muted); margin: 0; max-width: 44ch; }

/* ---- 7. CTA + footer wordmark ---- */
.cta { padding: clamp(80px, 13vw, 190px) 0; text-align: center; }
.cta h2 { font-size: clamp(46px, 9vw, 160px); letter-spacing: -.07em; line-height: .92; margin: 0 0 26px; }
html[dir=rtl] .cta h2 { letter-spacing: 0; line-height: 1.25; }
.cta p { color: var(--muted); max-width: 520px; margin: 0 auto 32px; font-size: 16px; }
.cta .row { justify-content: center; }
.big-wordmark { padding: 0 20px 26px; color: var(--text); overflow: hidden; }
.big-wordmark svg { width: 100%; height: auto; display: block; transform: translate3d(0, calc((1 - var(--p, 0)) * 50%), 0); }

[data-magnetic] { transition: transform .45s cubic-bezier(.16,1,.3,1); }
.button-xl { padding: 18px 28px; font-size: 15px; border-radius: 99px; }

/* =====================================================================
   WORK PAGE — Pinterest-style masonry
   ===================================================================== */
.masonry { columns: 4 250px; column-gap: 18px; }
.pin { display: block; break-inside: avoid; margin-bottom: 18px; position: relative; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid #ffffff10; transform: translateZ(0); }
.pin .frame { position: relative; aspect-ratio: var(--ar, 4/5); background: radial-gradient(circle at 30% 20%, hsl(var(--h, 80) 55% 28%), transparent 60%), linear-gradient(150deg, hsl(var(--h, 80) 25% 15%), #121311); overflow: hidden; }
.pin .frame.has-img { aspect-ratio: auto; background: #0d0e0c; }
.pin img { width: 100%; height: auto; display: block; transition: transform .7s cubic-bezier(.16,1,.3,1); }
.pin .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.pin .ph svg { width: 38%; height: auto; color: #c8ff5530; }
.pin .shade { position: absolute; inset: auto 0 0 0; padding: 40px 16px 16px; background: linear-gradient(transparent, #000c); display: grid; gap: 2px; }
.pin .shade b { font-size: 15px; }
.pin .shade span { font-size: 12px; color: #d9ddcf; }
.pin .featured-flag { z-index: 2; }
.pin .go { position: absolute; top: 12px; inset-inline-end: 12px; width: 40px; height: 40px; border-radius: 50%; background: var(--lime); color: #10110f; display: grid; place-items: center; opacity: 0; transform: scale(.7); transition: opacity .25s, transform .25s; }
@media (hover: hover) {
  .pin .shade { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
  .pin:hover .shade, .pin:focus-visible .shade { opacity: 1; transform: none; }
  .pin:hover .go, .pin:focus-visible .go { opacity: 1; transform: none; }
  .pin:hover img { transform: scale(1.04); }
}
.work-filters { position: sticky; top: 86px; z-index: 5; padding: 10px 0; background: linear-gradient(var(--bg) 70%, transparent); }

/* =====================================================================
   Inner public pages
   ===================================================================== */
.is-public .page-heading h1 { font-size: clamp(40px, 6.6vw, 104px); letter-spacing: -.065em; line-height: .95; }
html[dir=rtl] .is-public .page-heading h1 { letter-spacing: 0; line-height: 1.25; }

/* =====================================================================
   Tablet / mobile
   ===================================================================== */
@media (max-width: 980px) {
  .hero2-grid { grid-template-columns: 1fr; }
  .hero2-mark { grid-row: 1; justify-self: start; width: clamp(110px, 26vw, 170px); margin-bottom: 8px; }
  .hero2 { height: 200vh; }
  .hero2-stage { align-items: center; padding-top: 70px; }
  .floatery { height: auto; padding: 80px 0 40px; }
  .floatery-title { position: relative; height: auto; padding-bottom: 30px; }
  .floatery-field { position: relative; inset: auto; pointer-events: auto; columns: 2 160px; column-gap: 14px; width: min(1320px, calc(100% - 28px)); margin: 0 auto; }
  .float-card { position: relative; top: auto; inset-inline-start: auto; width: auto; transform: none; break-inside: avoid; margin-bottom: 16px; display: block; }
  .stack-card { grid-template-columns: 1fr; top: calc(80px + var(--i, 0) * 12px); min-height: auto; }
  .stack-card .visual { min-height: 160px; order: -1; }
  .process-grid { grid-template-columns: 1fr; }
  .process h2 { position: static; }
  .manifesto { height: 170vh; }
}
@media (max-width: 560px) { .masonry { columns: 2 150px; column-gap: 12px; } .pin { margin-bottom: 12px; border-radius: 16px; } .pin .shade b { font-size: 13px; } }

/* =====================================================================
   Reduced motion: everything static and fully visible
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .hero2, .manifesto, .floatery { height: auto; }
  .hero2-stage, .manifesto-stage, .floatery-title { position: relative; height: auto; min-height: 80vh; }
  .hero2-flood, .preloader { display: none; }
  .hero2-mark, .hero2-title .w, .float-card, .marquee-row, .stack-card, .big-wordmark svg { transform: none !important; }
  .hero2-copy *, .hero2-title .w { opacity: 1 !important; }
  .hero2-mark .m-dark { opacity: 0 !important; }
  .manifesto .mw { opacity: 1 !important; }
  .floatery-field { position: relative; columns: 3 220px; column-gap: 16px; width: min(1320px, calc(100% - 40px)); margin: 0 auto; }
  .float-card { position: relative; top: auto; inset-inline-start: auto; width: auto; margin-bottom: 16px; display: block; }
  .stack-card { position: relative; top: 0; } .stack-card::after { display: none; }
  .js-motion [data-reveal], .js-motion [data-split] .split-word > span { opacity: 1 !important; transform: none !important; }
}

/* =====================================================================
   Hero mark — "Pen Tool" construction drawing
   ===================================================================== */
.hero2-mark { cursor: pointer; }
.pen-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.pen-layer .pen-seg { fill: none; stroke: var(--lime); stroke-width: var(--sw, 4); stroke-linejoin: round; stroke-linecap: round; }
.pen-layer .pen-handle { stroke: #c8ff55aa; stroke-width: 1; vector-effect: non-scaling-stroke; }
.pen-layer .pen-cp { fill: var(--lime); }
.pen-layer .pen-anchor { fill: #10110f; stroke: var(--lime); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.pen-layer .pen-anchor.first { fill: var(--lime); }
.pen-layer g > * { opacity: 0; transition: opacity .18s ease; }
.pen-layer g > *.on { opacity: 1; }
.pen-layer.fade g > * { opacity: 0 !important; transition: opacity .5s ease; }
.pen-layer .pen-seg { transition: opacity .08s linear; }
.pen-nib { position: absolute; left: 0; top: 0; width: 26px; height: 26px; pointer-events: none; z-index: 3; opacity: 0; transform-origin: 3px 21px; }
.pen-nib.on { opacity: 1; }
.pen-nib svg { display: block; filter: drop-shadow(0 1px 2px #000a); }
.pen-nib.on { opacity: 1; }
.hero2-mark.is-drawing .m-lime { opacity: 0; }
.hero2-mark .m-lime { transition: opacity .6s ease; }
.pen-label { position: absolute; inset-inline-start: 0; bottom: -34px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; opacity: 0; transition: opacity .3s; font-variant-numeric: tabular-nums; }
.pen-label.on { opacity: calc(1 - var(--p, 0) * 6); }

/* Fill stays hidden until the first pen drawing completes (only when motion runs). */
.js-motion .hero2-mark:not(.drawn) .m-lime { opacity: 0; }

@media (max-width: 980px) { .pen-label { display: none; } }

/* =====================================================================
   3D cylinder gallery — the ring turns with scroll (rotateY driven by --p)
   JS sets: --cw card width, --r radius, --step degrees between cards, --turn total turn.
   ===================================================================== */
.cyl { position: relative; height: 340vh; }
.cyl-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; padding: 96px 0 28px; background: radial-gradient(ellipse at 50% 55%, #1c2215 0, transparent 60%); }
.cyl-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.cyl-head h2 { font-size: clamp(34px, 5.4vw, 84px); letter-spacing: -.06em; line-height: .95; margin: 8px 0 0; }
html[dir=rtl] .cyl-head h2 { letter-spacing: 0; line-height: 1.25; }
.cyl-scene { position: relative; display: grid; place-items: center; perspective: 1700px; perspective-origin: 50% 40%; min-height: 0; }
.cyl-ring { position: relative; width: var(--cw, 240px); aspect-ratio: 4 / 5; transform-style: preserve-3d; transform: translateZ(calc(var(--r, 600px) * -1)) rotateX(-4deg) rotateY(calc(var(--p, 0) * var(--turn, 300) * -1deg)); }
.cyl-card { position: absolute; inset: 0; border-radius: 20px; overflow: hidden; background: radial-gradient(circle at 30% 20%, hsl(var(--h, 80) 55% 28%), transparent 60%), linear-gradient(150deg, hsl(var(--h, 80) 25% 15%), #121311); border: 1px solid #ffffff14; transform: rotateY(calc(var(--i) * var(--step, 45) * 1deg)) translateZ(var(--r, 600px)); backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 30px 60px #0009; }
.cyl-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cyl-card .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.cyl-card .ph svg { width: 40%; height: auto; color: #c8ff5533; }
/* depth shading: cards turning away darken (--f = facing 0…1, set by JS) */
.cyl-shade { position: absolute; inset: 0; background: #0b0c0a; opacity: calc((1 - var(--f, 1)) * .85); pointer-events: none; transition: opacity .1s linear; }
.cyl-card.front { border-color: #c8ff5566; box-shadow: 0 0 0 1px #c8ff5533, 0 40px 80px #000a; }
.cyl-caption { display: grid; justify-items: center; gap: 2px; text-align: center; min-height: 64px; }
.cyl-count { font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--muted); font-variant-numeric: tabular-nums; }
.cyl-count b { color: var(--lime); }
.cyl-caption strong { font-size: clamp(18px, 2vw, 26px); letter-spacing: -.02em; }
.cyl-caption .muted { font-size: 13px; }
@media (max-width: 980px) { .cyl { height: 300vh; } .cyl-stage { padding-top: 84px; } .cyl-scene { perspective: 1100px; } }
@media (prefers-reduced-motion: reduce) {
  .cyl { height: auto; } .cyl-stage { position: relative; height: auto; }
  .cyl-scene { perspective: none; padding: 24px 0; }
  .cyl-ring { transform: none; width: min(1320px, calc(100% - 40px)); aspect-ratio: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  .cyl-card { position: relative; transform: none; aspect-ratio: 4/5; } .cyl-shade { display: none; }
}

/* =====================================================================
   Project case study
   ===================================================================== */
.case { max-width: 1180px; margin: 0 auto; }
.case-head { max-width: 860px; margin: 10px 0 36px; }
.case-head h1 { font-size: clamp(40px, 6.4vw, 100px); letter-spacing: -.065em; line-height: .95; margin: 10px 0 14px; }
html[dir=rtl] .case-head h1 { letter-spacing: 0; line-height: 1.25; }
.case-head p { font-size: 18px; max-width: 60ch; }
.case-meta { display: flex; gap: 36px; flex-wrap: wrap; margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.case-meta dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.case-meta dd { margin: 4px 0 0; font-weight: 700; }
.case-media { display: grid; gap: 14px; }
.case-media figure { margin: 0; border-radius: 22px; overflow: hidden; background: #0d0e0c; }
.case-media img, .case-media video { width: 100%; height: auto; display: block; }
.case-actions { margin: 34px 0; }
.case-next { display: grid; gap: 6px; position: relative; overflow: hidden; border-radius: 26px; border: 1px solid var(--line); padding: clamp(28px, 5vw, 56px); margin-top: 20px; isolation: isolate; }
.case-next strong { font-size: clamp(28px, 4.4vw, 64px); letter-spacing: -.05em; display: inline-flex; align-items: center; gap: 14px; }
.case-next strong .icon { width: .7em; height: .7em; color: var(--lime); transition: transform .4s cubic-bezier(.16,1,.3,1); }
.case-next img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .18; transform: scale(1.05); transition: opacity .5s, transform .8s cubic-bezier(.16,1,.3,1); }
@media (hover: hover) { .case-next:hover img { opacity: .32; transform: scale(1); } .case-next:hover strong .icon { transform: translateX(6px); } html[dir=rtl] .case-next:hover strong .icon { transform: scaleX(-1) translateX(6px); } }

/* =====================================================================
   Card deck (inspired by fanned-deck showcases): JS positions every card each
   frame — arc around a pivot below the stage, sweeping with scroll, then a grid.
   ===================================================================== */
.deck { position: relative; height: 460vh; }
.deck-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; padding: 92px 0 22px; background: radial-gradient(ellipse at 50% 110%, #24301a 0, transparent 60%), radial-gradient(ellipse at 15% 10%, #1a1f15 0, transparent 40%); }
.deck-head { text-align: center; }
.deck-head .eyebrow { justify-content: center; }
.deck-head h2 { font-size: clamp(32px, 4.8vw, 72px); letter-spacing: -.055em; line-height: 1; margin: 8px 0 0; }
html[dir=rtl] .deck-head h2 { letter-spacing: 0; line-height: 1.3; }
.deck-field { position: relative; min-height: 0; }
.deck-card { position: absolute; left: 0; top: 0; width: var(--dw, 260px); height: var(--dh, 340px); border-radius: 22px; overflow: hidden; transform-origin: 0 0; will-change: transform; background: radial-gradient(circle at 25% 15%, hsl(var(--h, 80) 55% 32%), transparent 60%), linear-gradient(160deg, hsl(var(--h, 80) 30% 18%), #121311); box-shadow: 0 24px 60px #000a, 0 2px 0 #ffffff10 inset; transition: box-shadow .3s; }
.deck-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.deck-shade { position: absolute; inset: 0; background: linear-gradient(180deg, #0b0c0acc 0%, transparent 32%, transparent 62%, #0b0c0ad9 100%); }
.deck-frame { position: absolute; inset: 9px; border: 1px solid #faf7ee40; border-radius: 15px; pointer-events: none; }
.deck-title { position: absolute; top: 22px; inset-inline: 22px; font-size: clamp(17px, 1.5vw, 24px); line-height: 1.12; letter-spacing: -.02em; color: #faf7ee; text-wrap: balance; }
.deck-cat { position: absolute; bottom: 20px; inset-inline: 22px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #faf7eecc; }
html[dir=rtl] .deck-cat { letter-spacing: .04em; }
.deck-card.upright { box-shadow: 0 0 0 1.5px var(--lime), 0 34px 80px #000c; }
.deck.is-grid .deck-card:hover { box-shadow: 0 0 0 1.5px var(--lime), 0 40px 90px #000d; }
.deck-foot { display: flex; justify-content: center; opacity: var(--foot, 0); transform: translateY(calc((1 - var(--foot, 0)) * 16px)); }
@media (max-width: 700px) { .deck { height: 420vh; } .deck-stage { padding-top: 80px; } .deck-title { top: 16px; inset-inline: 16px; font-size: 16px; } .deck-cat { bottom: 14px; inset-inline: 16px; font-size: 10px; } .deck-frame { inset: 7px; } }
@media (prefers-reduced-motion: reduce) {
  .deck { height: auto; } .deck-stage { position: relative; height: auto; display: block; padding: 60px 0; }
  .deck-field { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; width: min(1320px, calc(100% - 40px)); margin: 24px auto; }
  .deck-card { position: relative; width: auto; height: auto; aspect-ratio: 4/5; transform: none !important; }
  .deck-foot { opacity: 1; transform: none; }
}
.deck-stage { padding-top: 112px; }
@media (max-width: 1100px) { .deck-stage { padding-top: 138px; } }
@media (max-width: 860px) { .deck-stage { padding-top: 92px; } }

/* Lighter deck: short soft shadows (they stack where cards overlap) and text-only scrims */
.deck-card { box-shadow: 0 8px 22px #0006, 0 1px 0 #ffffff14 inset; }
.deck-card.upright { box-shadow: 0 0 0 1.5px var(--lime), 0 14px 32px #0007; }
.deck.is-grid .deck-card:hover { box-shadow: 0 0 0 1.5px var(--lime), 0 18px 40px #0007; transform-origin: 0 0; }
.deck-shade { background: linear-gradient(180deg, #0b0c0a8c 0%, transparent 24%, transparent 80%, #0b0c0a99 100%); }
.deck-frame { border-color: #faf7ee59; }
.deck-title, .deck-cat { text-shadow: 0 1px 8px #0009; }
.deck-stage { background: radial-gradient(ellipse at 50% 115%, #2a3a1c 0, transparent 62%); }

/* =====================================================================
   Type & spacing pass — calmer scale, more breathing room
   ===================================================================== */
.hero2-title { font-size: clamp(40px, 5.6vw, 100px); }
html[dir=rtl] .hero2-title { font-size: clamp(36px, 4.8vw, 86px); }
.hero2-sub { font-size: clamp(15px, 1.05vw, 17px); margin-top: 24px; }
.hero2-ctas { margin-top: 32px; }
.manifesto p { font-size: clamp(24px, 3.6vw, 56px); max-width: 22ch; line-height: 1.15; }
html[dir=rtl] .manifesto p { font-size: clamp(22px, 3.2vw, 50px); line-height: 1.55; max-width: 24ch; }
.marquee-item { font-size: clamp(32px, 5.4vw, 88px); }
.deck-head h2 { font-size: clamp(26px, 3.2vw, 48px); }
.deck-head { margin-bottom: 8px; }
.deck-title { font-size: clamp(14px, 1.1vw, 18px); top: 20px; inset-inline: 20px; font-weight: 700; }
.deck-cat { font-size: 10px; bottom: 18px; inset-inline: 20px; }
.stack-section { padding: clamp(110px, 13vw, 190px) 0 60px; }
.stack-head { margin-bottom: 56px; }
.stack-head h2, .process h2 { font-size: clamp(28px, 4vw, 60px); line-height: 1.02; }
.stack-cards { gap: 6vh; }
.stack-card { padding: clamp(24px, 3.4vw, 46px); gap: clamp(24px, 4vw, 64px); }
.stack-card .idx { font-size: clamp(44px, 6vw, 96px); }
.stack-card h3 { font-size: clamp(22px, 2.4vw, 38px); margin: 16px 0 12px; }
.stack-card .price { font-size: clamp(20px, 1.9vw, 28px); margin: 18px 0 26px; }
.process { padding: clamp(110px, 13vw, 190px) 0; }
.steps { gap: clamp(48px, 9vh, 100px); }
.step h3 { font-size: clamp(20px, 1.9vw, 28px); margin: 8px 0; }
.cta { padding: clamp(110px, 14vw, 210px) 0; }
.cta h2 { font-size: clamp(36px, 6vw, 104px); margin-bottom: 30px; }
.is-public .page-heading h1 { font-size: clamp(34px, 4.6vw, 72px); }
.case-head h1 { font-size: clamp(34px, 4.8vw, 76px); }
.case-next strong { font-size: clamp(24px, 3.2vw, 46px); }
.case-media { gap: 22px; }
.masonry { column-gap: 24px; } .pin { margin-bottom: 24px; }
@media (max-width: 560px) { .masonry { column-gap: 14px; } .pin { margin-bottom: 14px; } }
/* Card labels: small, quiet, editorial */
.deck-title { font-size: clamp(13px, .95vw, 15px); font-weight: 600; letter-spacing: -.01em; top: 18px; inset-inline: 18px; line-height: 1.25; }
.deck-cat { font-size: 9.5px; letter-spacing: .16em; bottom: 16px; inset-inline: 18px; font-weight: 700; color: #faf7eebf; }
.deck-frame { inset: 8px; border-radius: 14px; }
@media (max-width: 700px) { .deck-title { font-size: 12.5px; top: 14px; inset-inline: 14px; } .deck-cat { font-size: 9px; bottom: 12px; inset-inline: 14px; } }
