:root {
  --bg: #03060f;
  --bg-2: #08101f;
  --ink: #eef3ff;
  --muted: #8592ad;
  --line: rgba(120, 160, 255, 0.14);
  --accent: #3346f0;      /* logo blue: fills, buttons */
  --accent-text: #6f7dff; /* logo blue lifted for text on dark */
  --cool: #26d1ff;
  --fa: "Vazirmatn", system-ui, sans-serif;
  --en: "Montserrat", "Vazirmatn", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--fa);
  font-size: 17px;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--accent-text); }
::selection { background: var(--accent); color: #fff; }
h1, h2, h3 { line-height: 1.15; font-weight: 900; }

.eyebrow {
  font-family: var(--en);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-text);
  direction: ltr;
  display: inline-block;
}

/* film grain */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(4) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} }

.progress { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 60; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--cool), var(--accent)); transform-origin: right; transform: scaleX(0); }

/* nav */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  background: linear-gradient(to bottom, rgba(3,6,15,.75), transparent);
}
.logo { font-family: var(--en); font-weight: 700; font-size: 19px; letter-spacing: 0.04em; direction: ltr; display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 30px; height: auto; display: block; }
.nav nav { display: flex; gap: clamp(14px, 3vw, 32px); font-size: 15px; align-items: center; }
.nav-cta { border: 1px solid currentColor; padding: 6px 16px; border-radius: 99px; }
@media (max-width: 640px) { .nav nav a:not(.nav-cta) { display: none; } }

/* 01 intro */
.intro { height: 520vh; position: relative; }
.intro-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#seq { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro-sticky::after { /* vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(3,6,15,.85) 100%);
}
.intro-text {
  position: absolute; z-index: 2; inset-inline: var(--gutter);
  pointer-events: none;
}
.t1 { bottom: 12vh; direction: ltr; text-align: left; }
.t1 .lead { direction: rtl; }
.brand {
  font-family: var(--en); direction: ltr; text-align: left;
  font-weight: 700; line-height: 1;
  margin: 10px 0 22px;
}
.b-dadar { display: block; font-size: clamp(64px, 14vw, 230px); letter-spacing: 0.01em; }
.b-company {
  display: block; font-weight: 500; font-size: clamp(14px, 2.6vw, 42px);
  letter-spacing: 0.62em; margin-top: 0.5em; padding-left: 0.3em; color: var(--ink);
}
.lead { font-size: clamp(18px, 2.2vw, 26px); color: var(--muted); }
.t2 { top: 50%; transform: translateY(-50%); opacity: 0; }
.t3 { bottom: 8vh; opacity: 0; text-align: center; }
.t2 h2, .t3 h2 { font-size: clamp(30px, 5.5vw, 76px); max-width: 14ch; }
.t3 h2 { max-width: none; font-size: clamp(26px, 4vw, 56px); text-shadow: 0 4px 30px #000; }
.t3 br { display: none; }
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--muted);
}
.scroll-hint i { width: 1px; height: 40px; background: linear-gradient(var(--accent), transparent); animation: drip 1.6s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0%{transform:scaleY(0)} 50%{transform:scaleY(1)} 100%{transform:scaleY(1);opacity:0} }

.loader { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; gap: 12px; background: var(--bg); transition: opacity .8s; }
.loader.done { opacity: 0; pointer-events: none; }
.loader-bar { width: 180px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.loader-bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: right; transition: transform .2s; }
.loader-txt { text-align: center; font-size: 13px; color: var(--muted); }

/* 02 manifesto */
.manifesto { min-height: 100vh; display: grid; place-items: center; padding: 20vh var(--gutter); }
.manifesto p { font-size: clamp(26px, 4.2vw, 60px); font-weight: 800; line-height: 1.5; max-width: 22ch; }
.manifesto .w { opacity: 0.12; }
.manifesto .brand-name { color: var(--accent-text); font-family: var(--en); font-weight: 700; }

/* 03 services */
.services-pin {
  height: 100vh; height: 100svh;
  display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: var(--gutter);
  padding: 0 var(--gutter);
  overflow: hidden;
}
.services-head h2 { font-size: clamp(36px, 6vw, 88px); margin: 12px 0 28px; }
.counter { font-family: var(--en); font-size: 18px; color: var(--muted); }
.counter-cur { color: var(--ink); font-size: 44px; font-weight: 800; }
.cards { position: relative; height: min(460px, 64vh); }
.card {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #0d1730, #060b18);
  border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(24px, 4vw, 48px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  overflow: hidden; will-change: transform;
  box-shadow: 0 -20px 60px rgba(0,0,0,.5);
}
.card::before {
  content: ""; position: absolute; width: 380px; height: 380px; top: -160px; left: -120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(51,70,240,.35), transparent 70%);
}
.card:nth-child(even)::before { background: radial-gradient(circle, rgba(38,209,255,.25), transparent 70%); }
/* Remotion loops (video/src/loops): rendered on black, so `screen` makes the black transparent */
.card-vid {
  position: absolute; top: 0; inset-inline: 0; width: 100%; height: 76%;
  object-fit: contain; object-position: center 40%; pointer-events: none; mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.card h3, .card p, .card ul { position: relative; z-index: 1; }
.card-ico { z-index: 1; position: absolute; top: clamp(24px, 4vw, 44px); inset-inline-start: clamp(24px, 4vw, 48px); width: 64px; height: 64px; }
.card-ico svg { width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: clamp(26px, 3.4vw, 44px); }
.card p { color: var(--muted); max-width: 42ch; }
.card ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.card li { font-size: 13px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 99px; }

@media (max-width: 860px) {
  .services-pin { grid-template-columns: 1fr; align-content: center; gap: 24px; padding-top: 70px; }
  .services-head h2 { font-size: 34px; margin: 6px 0 8px; }
  .counter-cur { font-size: 28px; }
  .cards { height: 56vh; }
  .card-vid { height: 66%; }
}

/* 04 process */
.process-pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.process-head { padding: 0 var(--gutter); margin-bottom: 6vh; }
.process-head h2 { font-size: clamp(36px, 6vw, 88px); margin-top: 10px; }
.track { display: flex; gap: 4vw; padding: 0 var(--gutter); width: max-content; position: relative; }
.track-line { position: absolute; top: 34px; inset-inline: 0; width: 100%; height: 40px; overflow: visible; }
.track-line path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.step { width: clamp(260px, 30vw, 420px); position: relative; padding-top: 100px; }
.step b {
  position: absolute; top: 18px; inset-inline-start: 0;
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line); font-family: var(--en); font-size: 20px;
}
.step h3 { font-size: clamp(28px, 3.4vw, 48px); margin-bottom: 8px; }
.step p { color: var(--muted); max-width: 30ch; }
.step > * { opacity: 0; transform: translateY(40px); transition: opacity .8s, transform .9s cubic-bezier(.16,1,.3,1); }
.step > p { transition-delay: .12s; }
.step.in > * { opacity: 1; transform: none; }

/* 05 stats */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter);
  padding: 22vh var(--gutter); border-block: 1px solid var(--line);
}
.stat { text-align: center; }
.stat .num, .stat .plus { font-size: clamp(56px, 10vw, 150px); font-weight: 900; line-height: 1; }
.stat .plus { color: var(--accent); }
.stat p { color: var(--muted); margin-top: 8px; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; gap: 64px; } }

/* 05b collaboration form */
.collab { padding: 18vh var(--gutter); border-bottom: 1px solid var(--line); }
.collab-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 64px; }
.collab-head h2 { font-size: clamp(40px, 6vw, 84px); }
.collab-desc { color: var(--muted); max-width: 30em; }
.collab-grid {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px);
  max-width: 1080px; margin-inline: auto; align-items: start;
}
.collab-side { display: flex; flex-direction: column; gap: 14px; }
.collab-side h3, .collab-form h3 { font-size: 22px; font-weight: 800; }
.collab-side > p, .collab-form > div > p { color: var(--muted); font-size: 15px; }
.collab-link { display: inline-flex; align-items: center; gap: 12px; width: fit-content; color: var(--muted); font-family: var(--en); font-size: 15px; transition: color .2s; }
.collab-link i {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-2); transition: border-color .2s, color .2s;
}
.collab-link svg { width: 16px; height: 16px; }
.collab-link:hover { color: var(--ink); }
.collab-link:hover i { border-color: var(--accent); color: var(--accent-text); }

.globe-wrap { position: relative; height: 300px; overflow: hidden; margin-top: 12px; color: var(--accent-text); }
.globe-wrap::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(to top, var(--bg), transparent); pointer-events: none; }
.globe { display: block; width: 100%; aspect-ratio: 1; cursor: grab; touch-action: pan-y; }
.globe.dragging { cursor: grabbing; }
.globe .country { fill: none; stroke: currentColor; stroke-width: .6; }
.globe .sphere { fill: none; stroke: currentColor; stroke-width: 1.5; opacity: .8; }

.collab-form {
  display: flex; flex-direction: column; gap: 20px;
  padding: clamp(22px, 3vw, 36px); border-radius: 20px;
  border: 1px solid var(--line); background: var(--bg-2);
}
.dots {
  height: 12px; color: rgba(120, 160, 255, .3);
  background-image: radial-gradient(circle, currentColor .8px, transparent .8px);
  background-size: 6px 100%;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field span { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 14px; outline: none; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(51,70,240,.2); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #ff5c7a; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.submit {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding-inline: 28px;
  border: 0; border-radius: 12px; cursor: pointer;
  background: var(--accent); color: #fff; font: inherit; font-weight: 800; font-size: 15px;
  transition: background .25s, color .25s;
}
.submit svg { width: 16px; height: 16px; transition: transform .2s; }
.submit:hover { background: var(--ink); color: var(--bg); }
.submit:hover svg { transform: translateX(-4px); }
.submit:focus-visible { outline: 2px solid var(--cool); outline-offset: 3px; }
.form-status { font-size: 14px; color: var(--muted); }
.form-status.error { color: #ff5c7a; }
@media (max-width: 860px) {
  .collab-grid { grid-template-columns: 1fr; }
  .collab-form { order: -1; }
  .globe-wrap { height: 220px; }
}
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* 06 cta */
.cta {
  min-height: 100vh; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 18vh var(--gutter) 40px; gap: 36px;
}
.cta-bg {
  position: absolute; inset: 0; z-index: -1; opacity: 0.35;
  background: url("frames/lg/f_120.webp") center / cover no-repeat;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.cta-title { font-size: clamp(44px, 9vw, 140px); }
.cta-title span { display: block; overflow: hidden; padding-bottom: 0.08em; }
/* flip-coin button (port of flip-coin-button) */
.coin-btn {
  display: inline-flex; align-items: center; gap: 14px; height: 64px; padding-inline: 30px 16px;
  border: 0; border-radius: 99px; cursor: pointer;
  background: var(--accent); color: #fff; font: inherit; font-weight: 800; font-size: 17px;
  box-shadow: 0 0 60px rgba(51,70,240,.45);
  transform-origin: 100% 100%; transition: transform 50ms ease-in-out, background .3s, color .3s;
  -webkit-tap-highlight-color: transparent;
}
.coin-btn:hover { background: var(--ink); color: var(--bg); }
.coin-btn:active { transform: rotate(-4deg); }
.coin-btn:focus-visible { outline: 2px solid var(--cool); outline-offset: 4px; }
.coin-btn.clicked { animation: coin-shake 150ms ease-in-out; pointer-events: none; }
.coin-btn-txt { transition: opacity .2s; }
.coin-btn.clicked .coin-btn-txt { opacity: .45; }
.coin-mini {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: url("brand/mark-light.svg") center / 52% no-repeat,
    radial-gradient(circle, #4b5cff 0 58%, #2a37c9 60% 66%, #b9c3ff 68%);
  box-shadow: 0 2px 0 #1d2896, 0 0 0 2px rgba(255,255,255,.15);
  transition: transform .35s cubic-bezier(.3,1.6,.5,1), opacity .2s;
}
.coin-btn.clicked .coin-mini { opacity: 0; transform: scale(.4); transition: none; }
@keyframes coin-shake { 0% { transform: rotate(-4deg); } 66% { transform: rotate(4deg); } 100% { transform: none; } }

.fly-coin {
  --fs: 1; --fy: 0; --ms: 0; --my: 0; --bs: 0; --by: 0; --shine-o: .4; --shine-bg: 50%;
  position: fixed; left: 0; top: 0; width: 56px; height: 56px; z-index: 90;
  pointer-events: none; opacity: 0; will-change: transform;
}
.fly-coin i, .fly-coin::before { position: absolute; inset: 0; border-radius: 50%; }
.fly-coin .c-front {
  background: url("brand/mark-light.svg") center / 50% no-repeat,
    radial-gradient(circle, #4b5cff 0 58%, #2a37c9 60% 66%, #b9c3ff 68%);
  transform: translateY(calc(var(--fy) * 2.5px)) scaleY(var(--fs)); z-index: 3;
}
.fly-coin .c-back {
  background: radial-gradient(circle, transparent 0 22%, #b9c3ff 23% 27%, transparent 28%),
    radial-gradient(circle, #3346f0 0 58%, #2a37c9 60% 66%, #b9c3ff 68%);
  transform: translateY(calc(var(--by) * 2.5px)) scaleY(var(--bs)); z-index: 3;
}
.fly-coin .c-mid { background: #1d2896; transform: translateY(calc(var(--my) * 2.5px)) scaleY(var(--ms)); z-index: 3; }
.fly-coin::after { content: ""; position: absolute; inset-inline: 0; top: 50%; height: 5px; transform: translateY(-50%); background: #1d2896; z-index: 2; }
.fly-coin::before {
  content: ""; z-index: 10; opacity: var(--shine-o);
  background: radial-gradient(circle at 25% 65%, transparent 50%, rgba(255,255,255,.9) 90%),
    linear-gradient(55deg, transparent var(--shine-bg), #e9f4ff var(--shine-bg), transparent calc(var(--shine-bg) + 50%));
  transform: translateY(calc(var(--my) * -2.5px)) scaleY(var(--ms));
}

/* globe signals */
.globe .sig-arc { fill: none; stroke: var(--cool); stroke-width: 1.4; stroke-linecap: round; }
.globe .sig-head { fill: #fff; }
.globe .sig-dot { fill: var(--cool); }
.globe .sig-ring { fill: none; stroke: var(--cool); stroke-width: 1.2; }
.globe .sig-origin { fill: #fff; }
.cta footer { margin-top: auto; color: var(--muted); font-size: 13px; font-family: var(--en); }

@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-hint i { animation: none; }
}

/* 03b · work — real sites in device frames, inspired by each project's own look */
.work { position: relative; }
.work-head { padding: 22vh var(--gutter) 6vh; max-width: 900px; }
.work-head h2 { font-size: clamp(40px, 7vw, 104px); margin: 12px 0 16px; }
.work-sub { color: var(--muted); font-size: clamp(16px, 1.6vw, 20px); }

.project { --p1: var(--accent); --p2: var(--cool); height: 280vh; position: relative; }
.project[data-theme="ritmeex"] { --p1: #8b5cf6; --p2: #f472b6; }
.project[data-theme="mobologist"] { --p1: #2563eb; --p2: #38bdf8; }
.project-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(280px, 0.8fr) 1.4fr; align-items: center;
  gap: clamp(24px, 4vw, 72px); padding: 80px var(--gutter) 40px;
}
.project-pin::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 60% at 30% 55%, color-mix(in srgb, var(--p1) 30%, transparent), transparent 70%),
    radial-gradient(30% 40% at 85% 20%, color-mix(in srgb, var(--p2) 14%, transparent), transparent 70%);
}
.project-idx { font-family: var(--en); font-size: 15px; color: var(--p2); letter-spacing: .2em; }
.project-cat { color: var(--muted); font-size: 15px; margin-top: 10px; }
.project-name {
  display: block; width: fit-content; max-width: 100%; margin-inline-start: 0;
  font-family: var(--en); font-weight: 800; direction: ltr; white-space: nowrap;
  font-size: clamp(40px, 5vw, 84px); letter-spacing: -0.02em; margin: 6px 0 16px;
  background: linear-gradient(100deg, var(--ink) 30%, var(--p2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.project-desc { color: var(--muted); max-width: 40ch; }
.project-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.project-tags li { font-size: 13px; padding: 4px 14px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--p1) 45%, transparent); background: color-mix(in srgb, var(--p1) 12%, transparent); }
.project-link {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 24px; border-radius: 99px; font-weight: 700;
  background: var(--p1); color: #fff; box-shadow: 0 10px 40px color-mix(in srgb, var(--p1) 45%, transparent);
  transition: box-shadow .3s, filter .3s;
}
.project-link:hover { filter: brightness(1.12); box-shadow: 0 16px 50px color-mix(in srgb, var(--p1) 60%, transparent); }
.project-link span { transition: transform .3s; }
.project-link:hover span { transform: translate(-3px, -3px); }

.devices { position: relative; direction: ltr; padding: 0 0 6% 8%; }
.browser {
  border-radius: 14px; overflow: hidden; background: #0b0d16;
  border: 1px solid color-mix(in srgb, var(--p1) 30%, rgba(255,255,255,.08));
  box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.03), 0 0 80px color-mix(in srgb, var(--p1) 22%, transparent);
}
.browser-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #10131f; border-bottom: 1px solid rgba(255,255,255,.06); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #2a2f44; }
.browser-bar span:first-child { background: #ff5f57; } .browser-bar span:nth-child(2) { background: #febc2e; } .browser-bar span:nth-child(3) { background: #28c840; }
.browser-bar b { margin: 0 auto; font: 500 12px var(--en); color: var(--muted); background: rgba(255,255,255,.05); padding: 3px 40px; border-radius: 6px; }
.browser .screen { aspect-ratio: 16 / 10; overflow: hidden; }
.screen img { display: block; width: 100%; height: auto; will-change: transform; }
.work-vid { display: block; width: 100%; height: 100%; object-fit: cover; background: #05070f; }
.phone {
  position: absolute; left: 0; bottom: 0; width: 23%; aspect-ratio: 9 / 19.5;
  border-radius: 34px; padding: 7px; background: #05060a;
  border: 1px solid color-mix(in srgb, var(--p2) 35%, rgba(255,255,255,.12));
  box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 60px color-mix(in srgb, var(--p2) 20%, transparent);
}
.phone .screen { width: 100%; height: 100%; border-radius: 27px; overflow: hidden; }

/* ritmeex: equalizer bars */
.project-fx { position: absolute; z-index: -1; pointer-events: none; }
div.project-fx { inset: auto 0 0 0; height: 38vh; display: flex; align-items: flex-end; gap: 1.2vw; padding: 0 var(--gutter); opacity: .22; }
div.project-fx i { flex: 1; height: 100%; border-radius: 6px 6px 0 0; background: linear-gradient(to top, var(--p1), var(--p2)); transform-origin: bottom; animation: eq 1.4s ease-in-out infinite alternate; }
div.project-fx i:nth-child(3n) { animation-duration: .9s; } div.project-fx i:nth-child(4n+1) { animation-duration: 1.7s; animation-delay: -.6s; }
div.project-fx i:nth-child(5n+2) { animation-duration: 1.1s; animation-delay: -.3s; } div.project-fx i:nth-child(7n) { animation-duration: .7s; }
@keyframes eq { 0% { transform: scaleY(.08); } 100% { transform: scaleY(.85); } }
/* mobologist: flowing waves (from its hero) */
svg.project-fx { inset: 30% -10% auto; width: 120%; height: 50vh; opacity: .5; }
svg.project-fx path { fill: none; stroke: var(--p1); stroke-width: 1.2; vector-effect: non-scaling-stroke; animation: wave 7s ease-in-out infinite alternate; }
svg.project-fx path:nth-child(2) { stroke: var(--p2); animation-duration: 9s; animation-delay: -2s; }
svg.project-fx path:nth-child(3) { animation-duration: 11s; animation-delay: -4s; opacity: .6; }
svg.project-fx path:nth-child(4) { stroke: var(--p2); animation-duration: 8s; animation-delay: -1s; opacity: .5; }
svg.project-fx path:nth-child(5) { animation-duration: 10s; animation-delay: -6s; opacity: .4; }
@keyframes wave { 0% { transform: translateY(-30px) scaleY(.7); } 100% { transform: translateY(30px) scaleY(1.3); } }

@media (max-width: 900px) {
  .project { height: 240vh; }
  .project-pin { grid-template-columns: 1fr; align-content: center; gap: 18px; padding-top: 72px; }
  .project-cat { display: none; }
  .project-desc { max-width: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .devices { width: 100%; max-width: 640px; justify-self: center; }
  .project-name { font-size: 40px; margin: 2px 0 8px; text-align: right; }
  .project-desc { font-size: 15px; }
  .project-tags { margin: 12px 0 14px; } .project-tags li:nth-child(n+4) { display: none; }
  .project-link { padding: 9px 18px; font-size: 15px; }
  .devices { padding: 0 0 10% 14%; }
  .phone { width: 28%; border-radius: 22px; padding: 4px; } .phone .screen { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  div.project-fx i, svg.project-fx path { animation: none; }
}
