/* DEV-IL — software house site (Hebrew and English) */

:root {
  --white: #FFFFFF;
  --gray: #F2F5F8;
  --gray-2: #E3E9EF;
  --line: #DCE3EA;
  --ink: #081321;
  --ink-2: #1E3047;
  --muted: #56677C;
  --dark: #081321;
  --dark-2: #122238;
  --elev: #1E3047;
  --accent: #42D6C5;
  --accent-hover: #2EC2B1;
  --on-dark: #F5F7FA;
  --on-dark-muted: #A7B5C6;
  --blue: #0B7F74;
  --blue-hover: #086B62;
  --blue-soft: #42D6C5;

  --f-sans: "Heebo", system-ui, "Segoe UI", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec-y: clamp(80px, 11vw, 150px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 400; line-height: 1.15; text-wrap: balance; }
b, strong { font-weight: 700; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--blue); color: #fff; }
input, textarea { caret-color: var(--blue); }
html { scrollbar-color: #B9BEC8 var(--gray); }

.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }

main, .footer { overflow-x: clip; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.tag {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.arw { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: translate 260ms var(--ease-out); flex: none; }

/* ----- buttons ----- */
/* Rectangular, confident buttons. The primary fills with a darker blue sweeping
   in from the reading end; line buttons fill with their own colour. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 56px;
  padding: 0 30px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  overflow: hidden;
  isolation: isolate;
  transition: color 260ms var(--ease-out), border-color 260ms ease, transform 160ms var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 420ms var(--ease-out);
}
[dir="ltr"] .btn::before { transform-origin: left; }
.btn:active { transform: scale(0.97); }
.btn--sm { height: 46px; padding: 0 20px; font-size: 15px; }
.btn--primary { background: var(--accent); color: var(--dark); }
.btn--primary::before { background: var(--accent-hover); }
.btn--ghost, .btn--line { border-color: currentColor; }
.btn--ghost { color: #fff; }
.btn--ghost::before, .btn--line::before { background: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { transform: scaleX(1); }
  .btn--ghost:hover { color: var(--ink); }
  .btn--ghost:hover::before { background: #fff; }
  .header:not(.is-solid) .btn--line:hover { color: var(--ink); }
  .header:not(.is-solid) .btn--line:hover::before { background: #fff; }
  .header.is-solid .btn--line:hover { color: #fff; }
  .header.is-solid .btn--line:hover::before { background: var(--ink); }
  .btn:hover .arw { translate: -5px 0; }
}

/* ----- header ----- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--on-dark);
  transition: background-color 280ms ease, color 280ms ease, box-shadow 280ms ease;
}
.header.is-solid { background: rgba(255,255,255,0.96); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.header__in { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 19px; }
.brand__mark { width: 38px; height: 38px; flex: none; display: grid; place-items: center; transition: rotate 500ms var(--ease-out); }
.brand__mark img { width: 100%; height: 100%; }
.brand__name { font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.brand__name i { font-style: normal; color: var(--blue-soft); }
.header.is-solid .brand__name i, .footer .brand__name i { color: var(--blue); }
@media (hover: hover) and (pointer: fine) { .brand:hover .brand__mark { rotate: -8deg; } }
.nav { display: flex; gap: 30px; margin-inline-start: auto; font-size: 16px; font-weight: 500; }
.brand__name, .nav a, .btn { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1200px) {
  .nav { gap: 20px; font-size: 15px; }
  .header .btn--line { display: none; }
}
.nav a { text-decoration: underline 1.5px transparent; text-underline-offset: 8px; transition: text-decoration-color 200ms ease; }
.nav__lang { display: none; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { text-decoration-color: currentColor; } }
.header__actions { display: flex; align-items: center; gap: 14px; }
.lang { font-family: var(--f-mono); font-size: 13px; font-weight: 500; padding: 6px 4px; opacity: 0.8; }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; inset-inline: 10px; height: 2px; background: currentColor; transition: transform 220ms var(--ease-out); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ----- hero ----- */
.hero {
  position: relative;
  background: var(--dark);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
/* a soft diagonal light across the dark ground, and the brand glow behind the phone */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.035) 48%, rgba(255,255,255,0) 66%);
  z-index: -1;
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  top: -10%;
  inset-inline-end: -12%;
  width: 62vw;
  height: 130%;
  background: radial-gradient(closest-side, rgba(66, 214, 197, 0.42), rgba(66, 214, 197, 0.12) 55%, rgba(66, 214, 197, 0) 75%);
  z-index: -1;
  pointer-events: none;
}
.hero__in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 0.38fr);
  align-items: end;
  min-height: max(640px, min(100svh, 980px));
  padding-top: 130px;
  padding-bottom: clamp(56px, 8vh, 96px);
}
.hero__copy { grid-column: 1; }
.hero__title { font-size: clamp(34px, 3.5vw, 50px); font-weight: 800; line-height: 1.04; letter-spacing: -0.025em; }
.hero__line { display: block; }
@media (min-width: 901px) { .hero__line { white-space: nowrap; } }
.hero__line--accent { color: var(--accent); }
.hero__lede { max-width: 34em; margin-top: clamp(28px, 4vh, 44px); font-size: clamp(17px, 1.35vw, 20px); color: rgba(242,244,247,0.86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__built { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: clamp(36px, 6vh, 64px); font-size: 14px; }
.hero__built-label { color: #fff; font-weight: 700; font-size: 14px; }
.hero__built ul { display: flex; flex-wrap: wrap; gap: 10px 30px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: #fff; }
.hero__built li { opacity: 0.92; }

/* the phone: large, turned in 3D, bleeding past the bottom like the reference */
.hero__device {
  position: absolute;
  top: 92px;
  inset-inline-end: 0;
  width: 40%;
  display: flex;
  justify-content: center;
  perspective: 1800px;
  pointer-events: none;
}
.phone {
  --tx: 0deg; --ty: 0deg;
  width: min(390px, 31vw);
  aspect-ratio: 760 / 1560;
  padding: 13px;
  border-radius: 54px;
  background: linear-gradient(150deg, #4A5366 0%, #1A1E26 30%, #0C0E12 62%, #39404F 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.10) inset,
    0 0 0 3px rgba(255,255,255,0.03),
    0 60px 120px -40px rgba(0,0,0,0.9),
    -30px 40px 90px -50px rgba(66, 214, 197,0.55);
  transform: rotateY(calc(var(--phone-ry, 16deg) + var(--tx))) rotateX(calc(7deg + var(--ty))) rotateZ(var(--phone-rz, -5deg));
  transform-style: preserve-3d;
  transition: transform 900ms var(--ease-out);
}
.phone__screen { position: relative; height: 100%; border-radius: 42px; overflow: hidden; background: #fff; }
.phone__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.22), rgba(255,255,255,0) 38%);
  pointer-events: none;
}
.phone__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone__screen img:not(:first-child) { opacity: 0; }


/* ----- hero phone screen: an AI agent chat, looping like a product video ----- */
.phone--chat { background: linear-gradient(150deg, #5A6B9A 0%, #1D2640 32%, #0B0F1A 64%, #3E4C78 100%); }
.chat {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 46px 18px 18px;
  background:
    radial-gradient(120% 60% at 80% 0%, rgba(66, 214, 197,0.35), rgba(66, 214, 197,0) 60%),
    linear-gradient(180deg, #1A2238 0%, #10151F 55%, #0C1018 100%);
  color: #E8ECF5;
  font-size: 13.5px;
  line-height: 1.45;
}
.chat__bar { display: flex; align-items: center; justify-content: space-between; color: rgba(232,236,245,0.75); }
.chat__bar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.chat__title { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.chat__body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding-top: 26px; overflow: hidden; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; }
.msg--user { align-self: flex-end; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.10); border-end-end-radius: 4px; }
[dir="ltr"] .msg--user { align-self: flex-end; }
.msg--ai { align-self: flex-start; background: rgba(66, 214, 197,0.16); border: 1px solid rgba(143,166,255,0.28); border-end-start-radius: 4px; }
.msg__who { display: block; margin-bottom: 4px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-soft); }
.ai-slot { position: relative; align-self: stretch; display: flex; flex-direction: column; }
.msg--typing { position: absolute; top: 0; inset-inline-start: 0; display: flex; gap: 5px; padding: 13px 16px; border-radius: 16px; background: rgba(255,255,255,0.08); opacity: 0; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: rgba(232,236,245,0.7); }
.msg--card { align-self: flex-start; width: 92%; max-width: 92%; padding: 14px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); border-radius: 14px; }
.msg--card b { display: block; font-size: 12.5px; margin-bottom: 8px; color: #fff; }
.msg--card ul { display: grid; gap: 7px; font-size: 12.5px; color: rgba(232,236,245,0.86); }
.msg--card li { display: flex; align-items: center; gap: 8px; }
.msg--card li::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%; background: #3DDC97 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230C1018' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.chat__input { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 10px 10px 10px 14px; border-radius: 14px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.10); color: rgba(232,236,245,0.45); font-size: 12.5px; }
[dir="rtl"] .chat__input { padding: 10px 14px 10px 10px; }
.chat__send { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--blue); display: grid; place-items: center; }
.chat__send svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* the loop: a greeting, then the client asks, the agent types, answers, and the plan card lands */
.chat__hello { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; text-align: center; font-size: 26px; font-weight: 300; line-height: 1.15; color: rgba(232,236,245,0.9); opacity: 0; pointer-events: none; }
@keyframes chat-hello { 0%, 12% { opacity: 1; scale: 1; } 16%, 94% { opacity: 0; scale: 0.94; } 99%, 100% { opacity: 1; scale: 1; } }
.motion .chat__hello { animation: chat-hello 12s var(--ease-out) infinite; }
@keyframes chat-user   { 0%, 16% { opacity: 0; translate: 0 14px; } 20%, 88% { opacity: 1; translate: 0 0; } 95%, 100% { opacity: 0; translate: 0 -8px; } }
@keyframes chat-typing { 0%, 23% { opacity: 0; } 25%, 34% { opacity: 1; } 36%, 100% { opacity: 0; } }
@keyframes chat-ai     { 0%, 35% { opacity: 0; translate: 0 14px; } 40%, 88% { opacity: 1; translate: 0 0; } 95%, 100% { opacity: 0; translate: 0 -8px; } }
@keyframes chat-card   { 0%, 46% { opacity: 0; translate: 0 14px; } 52%, 88% { opacity: 1; translate: 0 0; } 95%, 100% { opacity: 0; translate: 0 -8px; } }
@keyframes chat-tick   { 0%, 55% { opacity: 0; } 59%, 88% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes dot { 0%, 100% { opacity: 0.3; translate: 0 0; } 50% { opacity: 1; translate: 0 -3px; } }
.motion .msg--user  { animation: chat-user 12s var(--ease-out) infinite; }
.motion .msg--typing { animation: chat-typing 12s linear infinite; }
.motion .msg--typing i { animation: dot 900ms ease-in-out infinite; }
.motion .msg--typing i:nth-child(2) { animation-delay: 150ms; }
.motion .msg--typing i:nth-child(3) { animation-delay: 300ms; }
.motion .msg--ai    { animation: chat-ai 12s var(--ease-out) infinite; }
.motion .msg--card  { animation: chat-card 12s var(--ease-out) infinite; }
.motion .msg--card li:nth-child(2) { animation: chat-tick 12s linear infinite; animation-delay: 0.35s; }
.motion .msg--card li:nth-child(3) { animation: chat-tick 12s linear infinite; animation-delay: 0.7s; }

/* ----- hero: animated engineering grid + a composition of real product windows ----- */
.hero::after {
  content: "";
  position: absolute;
  inset: -64px 0 0 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 30% 45%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 70% at 30% 45%, #000 15%, transparent 75%);
  z-index: -1;
  pointer-events: none;
}
@keyframes grid-drift { to { transform: translateY(64px); } }
.motion .hero::after { animation: grid-drift 22s linear infinite; }
.hero .hero__device { top: 120px; width: 40%; height: min(540px, calc(100% - 190px)); display: block; perspective: none; }
.motion .hero__device { scale: 1; opacity: 1; }
.eco { position: absolute; inset: 0; --mx: 0; --my: 0; }
.eco__label { position: absolute; top: -34px; left: 4%; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--accent); }
.eco__label i { font-style: normal; color: var(--on-dark-muted); }
.win {
  position: absolute;
  margin: 0;
  border-radius: 12px;
  background: #0F1C2E;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.85), 0 0 0 1px rgba(66,214,197,0.05);
  overflow: hidden;
  translate: calc(var(--mx) * var(--d) * 26px) calc(var(--my) * var(--d) * 20px);
  transition: translate 900ms var(--ease-out), opacity 900ms var(--ease-out), scale 1100ms var(--ease-out);
}
.win img { display: block; width: 100%; height: auto; }
.win__bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; background: #13233A; border-bottom: 1px solid rgba(255,255,255,0.06); }
.win__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.win__bar span { margin-left: 10px; font-family: var(--f-mono); font-size: 10px; color: var(--on-dark-muted); }
.win--a { left: 8%; top: 4%; width: 72%; z-index: 2; }
.win--b { left: 34%; top: 44%; width: 58%; z-index: 3; }
.win--c { left: 0; top: 60%; width: 44%; z-index: 4; }
.win--phone { left: 74%; top: -4%; width: 22%; z-index: 5; border-radius: 22px; padding: 5px; background: linear-gradient(150deg, #3A4C6B, #0B1626 55%, #2C3B57); }
.win--phone img { border-radius: 17px; }
.eco__chip {
  position: absolute;
  z-index: 6;
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(18,34,56,0.82);
  border: 1px solid rgba(66,214,197,0.28);
  backdrop-filter: blur(8px);
  font-size: 12px;
  color: var(--on-dark-muted);
  white-space: nowrap;
  translate: calc(var(--mx) * var(--d) * 26px) calc(var(--my) * var(--d) * 20px);
  transition: translate 900ms var(--ease-out), opacity 900ms var(--ease-out);
}
.eco__chip b { color: #fff; font-weight: 700; }
.eco__chip--1 { left: 64%; top: 46%; }
.eco__chip--2 { left: 34%; top: 0; }
.eco__chip--3 { left: 58%; top: 92%; }
.eco__chip--4 { left: 2%; top: 92%; }
@keyframes win-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.motion .win, .motion .eco__chip { animation: win-float 9s ease-in-out infinite; }
.motion .win--b { animation-delay: -2s; } .motion .win--c { animation-delay: -4s; } .motion .win--phone { animation-delay: -6s; }
.motion .eco__chip--2 { animation-delay: -1.5s; } .motion .eco__chip--3 { animation-delay: -3.5s; } .motion .eco__chip--4 { animation-delay: -5.5s; }
.motion .hero .win, .motion .hero .eco__chip, .motion .eco__label { opacity: 0; scale: 0.94; }
.motion .hero.is-in .win, .motion .hero.is-in .eco__chip, .motion .hero.is-in .eco__label { opacity: 1; scale: 1; }
.motion .hero.is-in .win--a { transition-delay: 150ms; } .motion .hero.is-in .win--b { transition-delay: 300ms; } .motion .hero.is-in .win--c { transition-delay: 450ms; } .motion .hero.is-in .win--phone { transition-delay: 600ms; }
.motion .hero.is-in .eco__chip { transition-delay: 900ms; } .motion .hero.is-in .eco__label { transition: opacity 900ms ease 1000ms; }

/* ----- proof bar ----- */
.proof { background: var(--dark-2); color: var(--on-dark); border-top: 1px solid rgba(255,255,255,0.06); }
.proof__in { display: grid; grid-template-columns: repeat(2, 1fr); }
.proof__in li { display: flex; flex-direction: column; gap: 6px; padding: 34px 28px; border-inline-start: 1px solid rgba(255,255,255,0.08); }
.proof__in li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.proof__in b { font-size: clamp(30px, 3vw, 42px); font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -0.02em; }
.proof__in span { color: var(--on-dark-muted); font-size: 15px; }
.motion .proof__in li { opacity: 0; translate: 0 24px; transition: opacity 800ms var(--ease-out), translate 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 100ms); }
.motion .proof__in li.is-in { opacity: 1; translate: 0 0; }
/* ----- sections ----- */
.sec { padding-block: var(--sec-y); }
.sec--white { background: var(--white); }
.sec--gray { background: var(--gray); }
.sec__title { font-size: clamp(30px, 3.6vw, 48px); font-weight: 400; letter-spacing: -0.015em; max-width: 22em; }
.sec__title b { font-weight: 800; }
.sec__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.sec__lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 30em; padding-top: 8px; }

/* ----- work tiles ----- */
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(32px, 7vw, 96px);
  row-gap: clamp(64px, 8vw, 110px);
  margin-top: clamp(56px, 7vw, 96px);
}
.tile { position: relative; display: flex; flex-direction: column; align-self: start; }
.tile:nth-child(even) { margin-top: clamp(0px, 9vw, 130px); }


.tile__media {
  position: relative;
  background: var(--ground, var(--gray));
  overflow: hidden;
  display: grid;
  align-items: end;
  justify-items: start;
  padding: 7% 5% 0;
  transition: scale 600ms var(--ease-out);
  transform-origin: center;
}
.tile__media img, .tile__media video {
  width: 100%;
  max-width: none;
  height: auto;
  box-shadow: 0 30px 60px -28px rgba(14,17,22,0.45);
  border: 1px solid rgba(14,17,22,0.08);
  scale: 1.04;
  transition: scale 600ms var(--ease-out);
}
.tile__media--phones { aspect-ratio: 1 / 1; display: flex; justify-content: center; align-items: center; gap: 4%; padding: 6% 4%; }
.tile__media--phones img { width: 31%; max-width: 100%; height: auto; border-radius: 18px; border: 4px solid #0E1116; }
.tile__media--phones img:nth-child(2) { translate: 0 8%; }
.tile__meta .tag, .tile--cta .tag { font-family: var(--f-sans); text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--muted); }
.tile__meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; }
.tile__brand { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.tile__title {
  margin-top: 14px;
  font-size: clamp(21px, 1.9vw, 26px);
  font-weight: 500;
  line-height: 1.3;
  text-decoration: underline 1.5px transparent;
  text-underline-offset: 6px;
  transition: text-decoration-color 220ms ease;
}
.tile__text { margin-top: 12px; color: var(--muted); font-size: 16px; }
.tile__result { margin-top: 16px; font-size: 15px; color: var(--ink-2); }
.tile__result b { color: var(--blue); font-size: 22px; margin-inline-end: 6px; }
.tile__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 500; font-size: 15px; }
.tile--cta {
  align-self: stretch;
  justify-content: center;
  padding: clamp(32px, 4vw, 56px);
  background: var(--dark);
  color: var(--on-dark);
  min-height: 360px;
}
.tile--cta .tag { color: var(--blue-soft); }
.tile--cta .tile__text { color: var(--on-dark-muted); }
.tile--cta .tile__go { color: #fff; }
@media (hover: hover) and (pointer: fine) {
  a.tile:hover .tile__media, article.tile:hover .tile__media { scale: 1.025; }
  a.tile:hover .tile__media img, .tile__media video { scale: 1; }
  article.tile:hover .tile__media img, .tile__media video { scale: 1; }
  a.tile:hover .tile__title { text-decoration-color: currentColor; }
  a.tile:hover .arw { translate: -6px 0; }
}

/* ----- about: pillars and the technology marquee ----- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(48px, 6vw, 80px); }
.pillar {
  position: relative;
  background: var(--white);
  padding: 30px 26px 34px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  transition: translate 300ms var(--ease-out), box-shadow 300ms ease;
}
.pillar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0.18);
  transform-origin: right;
  transition: transform 600ms var(--ease-out);
}
[dir="ltr"] .pillar::before { transform-origin: left; }
.pillar__n { font-family: var(--f-mono); font-size: 13px; font-weight: 500; color: var(--blue); }
.pillar h3 { font-size: 22px; font-weight: 700; line-height: 1.25; margin-top: 18px; }
.pillar p { color: var(--muted); font-size: 15.5px; }
@media (hover: hover) and (pointer: fine) {
  .pillar:hover { translate: 0 -4px; box-shadow: 0 24px 50px -30px rgba(14,17,22,0.35); }
  .pillar:hover::before { transform: scaleX(1); }
}
.motion .pillar { opacity: 0; translate: 0 60px; rotate: 1.5deg; transition: opacity 900ms var(--ease-out), translate 1100ms var(--ease-out), rotate 1100ms var(--ease-out), box-shadow 300ms ease; transition-delay: calc(var(--i, 0) * 110ms); }
.motion .pillar.is-in { opacity: 1; translate: 0 0; rotate: 0deg; }
.motion .pillar.is-in::before { transform: scaleX(1); transition-delay: calc(500ms + var(--i, 0) * 110ms); }

.marquee { direction: ltr; margin-top: clamp(56px, 7vw, 96px); border-block: 1px solid var(--line); overflow: hidden; padding-block: 26px; }
.marquee__track { display: flex; width: max-content; }
.marquee__track span { flex: none; padding-inline-end: 0.35em; font-size: clamp(28px, 3.4vw, 46px); font-weight: 300; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.motion .marquee__track { animation: marquee 38s linear infinite; }
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee__track { animation-play-state: paused; } }

/* ----- case tiles: each project on its own brand gradient ----- */
.tile__media {
  background:
    radial-gradient(120% 80% at 85% 0%, rgba(255,255,255,0.38), rgba(255,255,255,0) 55%),
    linear-gradient(150deg, var(--g1, #DDE3EE), var(--g2, #F4F5F7));
}
.tile__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.10) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, #000, transparent 75%);
  pointer-events: none;
}
.tile__media img, .tile__media video { position: relative; box-shadow: 0 40px 80px -30px rgba(10,14,30,0.55), 0 0 0 1px rgba(255,255,255,0.25); }
/* ----- copy-plan additions: kickers, trust line, section CTA, FAQ ----- */
.kicker { font-size: 15px; font-weight: 500; color: var(--blue); margin-bottom: 18px; }
.kicker--dark { color: var(--blue-soft); }
[dir="rtl"] .hero .kicker { text-align: right; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 0; margin-top: clamp(32px, 5vh, 52px); font-size: 15px; color: rgba(242,244,247,0.8); }
.hero__trust li { display: flex; align-items: center; }
.hero__trust li + li::before { content: ""; width: 1px; height: 16px; margin-inline: 18px; background: rgba(255,255,255,0.25); }
.hero__trust b { color: #fff; font-weight: 700; margin-inline: 4px; }
.sec__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: clamp(64px, 8vw, 110px); padding-top: 40px; border-top: 1px solid var(--line); }
.sec__cta p { font-size: clamp(22px, 2.2vw, 30px); font-weight: 300; letter-spacing: -0.01em; }

.rows .row { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 18px 40px; padding-block: 38px; }
.row__n { font-family: var(--f-mono); font-size: 13px; font-weight: 500; color: var(--blue); padding-top: 8px; }
.row__main h3 { margin-bottom: 10px; }
.row__list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; padding-top: 6px; }
.row__list li { position: relative; padding-inline-start: 16px; font-size: 15px; color: var(--ink-2); }
.row__list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.62em; width: 6px; height: 6px; background: var(--blue); }

.step__out { margin-top: 12px !important; font-size: 14.5px !important; color: var(--ink-2) !important; }
.step__out b { color: var(--blue); }

.pillars--5 { grid-template-columns: repeat(6, 1fr); }
.pillars--5 .pillar:nth-child(-n+3) { grid-column: span 2; }
.pillars--5 .pillar:nth-child(n+4) { grid-column: span 3; }
.pillars--5 .pillar { min-height: 240px; }

.stack__groups--wide { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.stack__groups--wide > div { grid-template-columns: 240px 1fr; padding-block: 20px; }
.stack__groups--wide dd { font-size: 18px; }
.tech__motto { margin-top: 36px; font-size: clamp(19px, 1.8vw, 24px); font-weight: 300; }
.tech__motto b { font-weight: 700; }

.faq { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 24px; font-size: clamp(17px, 1.5vw, 20px); font-weight: 700; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat; transition: rotate 300ms var(--ease-out); }
.qa[open] summary::after { rotate: 45deg; }
.qa p { padding-bottom: 24px; color: var(--muted); max-width: 46em; }
@keyframes qa-in { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }
.motion .qa[open] p { animation: qa-in 420ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .qa summary:hover { color: var(--blue); } }
.motion .qa { opacity: 0; translate: 0 24px; transition: opacity 700ms var(--ease-out), translate 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.motion .qa.is-in { opacity: 1; translate: 0 0; }

.contact__steps { margin: 18px 0 30px; font-weight: 700; color: #fff; }
.form__head h3 { font-size: 22px; font-weight: 700; color: #fff; }
.form__head p { margin-top: 6px; color: var(--on-dark-muted); font-size: 15px; }
.form__privacy { font-size: 13.5px; color: var(--on-dark-muted); }
.field input::placeholder { color: rgba(242,244,247,0.38); }
.footer__line b { color: var(--ink); }
.footer__contact { font-size: 14.5px; color: var(--muted); }
.footer__contact a { color: var(--ink-2); }
/* ----- selected work as an exhibition: large alternating rows ----- */
.tiles { grid-template-columns: 1fr; row-gap: clamp(88px, 11vw, 150px); counter-reset: work; }
.tiles .tile { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin: 0 !important; counter-increment: work; }
.tiles .tile:nth-child(even) .tile__media { order: 2; }
.tile__body { display: flex; flex-direction: column; }
.tile__body::before { order: -2; content: "0" counter(work); font-family: var(--f-mono); font-size: 13px; font-weight: 500; color: var(--blue); margin-bottom: 18px; }
.tiles .tile__media { border-radius: 14px; }
.tiles .tile__title { font-size: clamp(26px, 2.6vw, 38px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.tiles .tile__meta { margin-top: 0; order: -1; justify-content: flex-start; gap: 14px; margin-bottom: 14px; }
.tiles .tile__brand { font-size: 15px; color: var(--blue); }
.tiles .tile__text { font-size: 17px; margin-top: 16px; }
.tiles .tile__go { margin-top: 26px; font-size: 16px; font-weight: 700; color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .tiles a.tile:hover .tile__media { scale: 1.03; box-shadow: 0 50px 90px -50px rgba(8,19,33,0.55); }
}

/* ----- about: the person behind the work ----- */
.me { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.me__photo { position: relative; margin: 0; max-width: 420px; }
.me__photo img { width: 100%; height: auto; border-radius: 14px; filter: saturate(0.92); }
.me__photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--accent); border-radius: 14px; z-index: -1; }
.me__text p { color: var(--muted); font-size: 17.5px; margin-top: 18px; max-width: 36em; }
.me__text .sec__title { margin-bottom: 8px; }
.me__sig { color: var(--ink) !important; font-size: 20px !important; margin-top: 28px !important; }
.me__sig b { color: var(--blue); }
.motion .me__photo { opacity: 0; translate: 0 50px; transition: opacity 1000ms var(--ease-out), translate 1200ms var(--ease-out); }
.motion .me__photo.is-in { opacity: 1; translate: 0 0; }
/* ----- personal guidance: dark navy band with six service cards ----- */
.guide { background: var(--dark); color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate; }
.guide::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 60%; height: 120%; background: radial-gradient(closest-side, rgba(66,214,197,0.16), rgba(66,214,197,0) 70%); z-index: -1; }
.guide .sec__lede { color: var(--on-dark-muted); }
.guide .sec__title b { color: var(--accent); }
.guide__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(48px, 6vw, 80px); }
.gcard { position: relative; padding: 30px 28px 32px; border-radius: 14px; background: var(--dark-2); border: 1px solid rgba(255,255,255,0.07); display: flex; flex-direction: column; gap: 12px; transition: translate 300ms var(--ease-out), border-color 300ms ease, background-color 300ms ease; }
.gcard__n { font-family: var(--f-mono); font-size: 13px; color: var(--accent); }
.gcard h3 { font-size: 21px; font-weight: 700; color: #fff; margin-top: 8px; }
.gcard p { color: var(--on-dark-muted); font-size: 15.5px; }
@media (hover: hover) and (pointer: fine) { .gcard:hover { translate: 0 -4px; border-color: rgba(66,214,197,0.45); background: var(--elev); } }
.guide__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: clamp(48px, 6vw, 72px); padding-top: 36px; border-top: 1px solid rgba(255,255,255,0.1); }
.guide__cta p { font-size: clamp(18px, 1.7vw, 22px); color: var(--on-dark-muted); }
.guide__cta b { color: #fff; }
.motion .gcard { opacity: 0; translate: 0 50px; transition: opacity 900ms var(--ease-out), translate 1100ms var(--ease-out), border-color 300ms ease, background-color 300ms ease; transition-delay: calc(var(--i, 0) * 90ms); }
.motion .gcard.is-in { opacity: 1; translate: 0 0; }
/* ----- service rows ----- */
.rows { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  padding-block: 34px;
  border-bottom: 1px solid var(--line);
}
.row h3 { font-size: clamp(21px, 2vw, 26px); font-weight: 700; }
.row p { color: var(--muted); font-size: 16px; }

/* ----- stats ----- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: clamp(48px, 6vw, 80px); align-items: start; }
.stat { background: var(--gray); padding: 30px 26px 56px; min-height: 230px; }
.stat:nth-child(2) { margin-top: 48px; }
.stat:nth-child(3) { margin-top: 96px; }
.stat:nth-child(4) { margin-top: 144px; }
.stat__num { font-size: clamp(48px, 5vw, 68px); font-weight: 300; line-height: 1; letter-spacing: -0.03em; margin-bottom: 26px; text-align: right; }
.stat p:last-child { color: var(--ink-2); font-size: 15.5px; }

/* ----- industries ----- */
.inds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: clamp(48px, 6vw, 80px); background: var(--gray); }
.ind {
  background: var(--white);
  padding: 34px 30px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  border: 1px solid var(--line);
  margin: -1px 0 0 -1px;
}
.ind h3 { font-size: 23px; font-weight: 700; margin-top: 10px; }
.ind p { color: var(--muted); font-size: 16px; }
.ind .tag { color: var(--blue); }
.ind__ex { margin-top: 6px; font-size: 14px !important; color: var(--ink-2) !important; font-weight: 500; }
.ind--cta { background: var(--blue); color: #fff; border-color: var(--blue); transition: background-color 200ms ease; }
.ind--cta .tag, .ind--cta p { color: rgba(255,255,255,0.92); }
.ind--cta .ind__ex { display: inline-flex; align-items: center; gap: 8px; color: #fff !important; font-size: 15px !important; }
@media (hover: hover) and (pointer: fine) {
  .ind--cta:hover { background: var(--blue-hover); }
  .ind--cta:hover .arw { translate: -6px 0; }
}

/* ----- process ----- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  margin-top: clamp(56px, 7vw, 90px);
  padding-top: 34px;
}
.steps::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--gray-2);
}
.steps::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--blue);
  transform-origin: right;
}
.step { position: relative; }
.step::before {
  content: "";
  position: absolute;
  top: -40px;
  inset-inline-start: 0;
  width: 14px;
  height: 14px;
  background: var(--white);
  border: 2px solid var(--blue);
}
.step__n { font-family: var(--f-mono); font-size: 13px; font-weight: 500; color: var(--blue); }
.step h3 { font-size: 22px; font-weight: 700; margin-top: 10px; }
.step p { color: var(--muted); font-size: 15.5px; margin-top: 8px; }

.stack { margin-top: clamp(72px, 9vw, 120px); padding-top: 40px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 0.6fr 1.4fr; gap: 40px; }
.stack__title { font-size: 24px; font-weight: 700; }
.stack__groups { display: grid; gap: 0; }
.stack__groups > div { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.stack__groups dt { font-family: var(--f-mono); font-size: 13px; font-weight: 500; color: var(--muted); padding-top: 3px; }
.stack__groups dd { font-weight: 500; text-align: right; }

/* ----- closing CTA ----- */
.close { position: relative; background: var(--dark); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.close__glow {
  position: absolute;
  inset: auto 10% -60% 10%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(66, 214, 197, 0.42), rgba(66, 214, 197, 0) 72%);
  z-index: -1;
}
.close__in { display: grid; justify-items: center; text-align: center; gap: 44px; padding-block: clamp(110px, 14vw, 190px); }
.close__title { font-size: clamp(30px, 3.8vw, 52px); font-weight: 300; max-width: 18em; letter-spacing: -0.015em; }
.close__title b { font-weight: 700; }

/* ----- contact (dark split, like the reference's contact page) ----- */
.sec--dark { background: var(--dark); color: var(--on-dark); position: relative; isolation: isolate; overflow: hidden; }
.sec--dark::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  inset-inline-start: 0;
  width: 50%;
  background: linear-gradient(160deg, rgba(66, 214, 197,0.12), rgba(66, 214, 197,0) 60%), var(--dark-2);
  z-index: -1;
}
[dir="rtl"] .sec--dark::before { left: auto; right: 0; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 120px); align-items: start; }
.contact .sec__title { font-size: clamp(36px, 4.4vw, 60px); font-weight: 700; letter-spacing: -0.025em; }
.contact .sec__lede { color: rgba(242,244,247,0.82); }
.contact__list { margin-top: 44px; border-top: 1px solid rgba(255,255,255,0.12); }
.contact__list > div { display: flex; justify-content: space-between; gap: 20px; padding-block: 18px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.contact__list dt { color: var(--on-dark-muted); }
.contact__list dd { font-weight: 500; color: #fff; }
.contact__list a { text-decoration: underline 1px transparent; text-underline-offset: 5px; transition: text-decoration-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .contact__list a:hover { text-decoration-color: currentColor; } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.field { display: grid; gap: 10px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 15px; color: #fff; }
.opt { color: var(--on-dark-muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  background: var(--elev);
  border: 0;
  border-radius: 0;
  box-shadow: inset 0 -2px 0 transparent;
  padding: 15px 16px;
  font-size: 16px;
  color: #fff;
  transition: background-color 200ms ease, box-shadow 200ms ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field textarea:hover { background: #24395A; }
.field input:focus, .field textarea:focus { outline: none; background: #24395A; box-shadow: inset 0 -2px 0 var(--blue-soft); }
.field__err { display: none; color: #FF9B8F; font-size: 14px; }
.field.is-error input, .field.is-error textarea { box-shadow: inset 0 -2px 0 #FF9B8F; }
.field.is-error .field__err { display: block; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.form-msg { font-size: 15px; font-weight: 500; }
.form-msg--ok { color: #7BE0A6; }
.form-msg--err { color: #FF9B8F; }

/* ----- footer ----- */
.footer { background: var(--white); border-top: 1px solid var(--line); padding-block: 64px 36px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }

.footer__line { color: var(--muted); }
.footer__built { margin-top: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer__label { color: var(--muted); font-size: 15px; }
.footer__built ul { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; margin-top: 18px; }
.footer__built span { font-weight: 700; font-size: 18px; }
.footer__built p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-block: 28px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 26px; font-weight: 500; font-size: 15px; }
.footer__links a { text-decoration: underline 1px transparent; text-underline-offset: 6px; transition: text-decoration-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .footer__links a:hover { text-decoration-color: currentColor; } }
.footer__social { display: flex; gap: 18px; }
.footer__social svg { width: 20px; height: 20px; fill: var(--ink-2); transition: fill 200ms ease; }
@media (hover: hover) and (pointer: fine) { .footer__social a:hover svg { fill: var(--blue); } }
.footer__legal { color: var(--muted); font-size: 14px; }

/* =========================================================
/* =========================================================
   Motion. js/studio.js adds html.motion only when the visitor has not asked
   for reduced motion; without it every element below is simply visible.
   ========================================================= */

/* Visitly screens cycle like a product video */
@keyframes screen-cycle {
  0%, 30% { opacity: 1; }
  36%, 94% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes phone-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -16px; }
}

/* split words: each word rises out of its own mask */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w__i { display: inline-block; }
.motion .w__i { translate: 0 105%; transition: translate 1100ms var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms + var(--d, 0ms)); }
.motion .is-in .w__i, .motion .is-in.w__i { translate: 0 0; }

/* generic reveal */
.motion [data-r] { opacity: 0; translate: 0 44px; transition: opacity 900ms var(--ease-out), translate 1100ms var(--ease-out); transition-delay: var(--d, 0ms); }
.motion [data-r].is-in { opacity: 1; translate: 0 0; }

/* hero entrance (once, on load) */
.motion .hero__lede, .motion .hero__trust, .motion .hero .kicker, .motion .hero__actions { opacity: 0; translate: 0 26px; transition: opacity 900ms var(--ease-out), translate 1000ms var(--ease-out); }
.motion .hero__lede { transition-delay: 450ms; }
.motion .hero__actions { transition-delay: 560ms; }
.motion .hero__trust { transition-delay: 650ms; }
.motion .hero.is-in .hero__lede, .motion .hero.is-in .hero__trust, .motion .hero.is-in .kicker, .motion .hero.is-in .hero__actions { opacity: 1; translate: 0 0; }
.hero__device { translate: 0 var(--hy, 0px); }
.motion .hero__device { opacity: 0; scale: 2.7; transform-origin: 50% 32%; transition: opacity 700ms ease 100ms, scale 2800ms cubic-bezier(0.16, 1, 0.3, 1) 100ms; }
.motion .hero.is-in .hero__device { opacity: 1; scale: 1; }
/* hero content drifts up more slowly than the page and fades as you leave it */
.hero__copy { translate: 0 var(--cy, 0px); opacity: var(--co, 1); }
.motion .hero__glow { opacity: 0; transition: opacity 2200ms ease 200ms; }
.motion .hero.is-in .hero__glow { opacity: 1; }
.motion .phone__screen img { animation: screen-cycle 13.5s linear infinite; }
.motion .phone__screen img:nth-child(2) { animation-delay: 4.5s; }
.motion .phone__screen img:nth-child(3) { animation-delay: 9s; }
.phone-float { animation: none; }
.motion .phone-float { animation: phone-float 9s ease-in-out infinite; }

/* parallax: js writes --py on .tile, .stat and the closing glow */
.tile, .stat { translate: 0 var(--py, 0px); }
.close__glow { translate: 0 var(--py, 0px); }

/* case tiles: the picture is uncovered from below, then the text follows */
.motion .tile__media { clip-path: inset(100% 0 0 0); transition: clip-path 1300ms var(--ease-out), scale 600ms var(--ease-out); }
.motion .tile__media > * { scale: 1.18; transition: scale 1600ms var(--ease-out); }
.motion .tile.is-in .tile__media { clip-path: inset(0 0 0 0); }
.motion .tile.is-in .tile__media > * { scale: 1.04; }
.motion .tile__meta, .motion .tile__title, .motion .tile__text, .motion .tile__result, .motion .tile__go { opacity: 0; translate: 0 22px; transition: opacity 800ms var(--ease-out), translate 900ms var(--ease-out); }
.motion .tile.is-in .tile__meta { transition-delay: 350ms; }
.motion .tile.is-in .tile__title { transition-delay: 430ms; }
.motion .tile.is-in .tile__text { transition-delay: 510ms; }
.motion .tile.is-in .tile__result, .motion .tile.is-in .tile__go { transition-delay: 590ms; }
.motion .tile.is-in .tile__meta, .motion .tile.is-in .tile__title, .motion .tile.is-in .tile__text, .motion .tile.is-in .tile__result, .motion .tile.is-in .tile__go { opacity: 1; translate: 0 0; }
@media (hover: hover) and (pointer: fine) {
  .motion a.tile.is-in:hover .tile__media > * { scale: 1; }
}

/* service rows slide in from the reading end, one after another */
.motion .row { opacity: 0; translate: -110px 0; transition: opacity 900ms var(--ease-out), translate 1200ms var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
[dir="ltr"].motion .row, .motion[dir="ltr"] .row { translate: 110px 0; }
.motion .row.is-in { opacity: 1; translate: 0 0; }

/* stats rise and count */
.motion .stat { opacity: 0; transition: opacity 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }
.motion .stat.is-in { opacity: 1; }

/* industries and steps stagger in */
.motion .ind, .motion .step { opacity: 0; translate: 0 40px; transition: opacity 800ms var(--ease-out), translate 1000ms var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.motion .ind.is-in, .motion .step.is-in { opacity: 1; translate: 0 0; }

/* the process line draws across */
.motion .steps::after { transform: scaleX(0); transition: transform 1800ms var(--ease-in-out) 200ms; }
.motion .steps.is-in::after { transform: scaleX(1); }

/* header hides while reading down, returns on the way up */
.header { transition: background-color 280ms ease, color 280ms ease, box-shadow 280ms ease, translate 420ms var(--ease-out); }
.header.is-hidden { translate: 0 -100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn::before, .tile__media, .tile__media img, .tile__media video, .arw, .header { transition: none; }
  .tile, .stat, .close__glow { translate: none; }
  .phone { transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 56px; }
  .steps::before, .steps::after { display: none; }
  .step::before { display: none; }
  .step { border-top: 2px solid var(--blue); padding-top: 22px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(n) { margin-top: 0; }
  .stat:nth-child(even) { margin-top: 56px; }
  .inds { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .guide__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    color: var(--ink);
    padding: 8px var(--gutter) 24px;
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.25);
    font-size: 20px;
    visibility: hidden;
    opacity: 0;
    translate: 0 -8px;
    transition: opacity 200ms var(--ease-out), translate 200ms var(--ease-out), visibility 0s linear 200ms;
  }
  .nav a { padding-block: 14px; border-bottom: 1px solid var(--line); }
  .nav__lang { display: block; }
  .nav.is-open { visibility: visible; opacity: 1; translate: 0 0; transition: opacity 200ms var(--ease-out), translate 200ms var(--ease-out); }
  .burger { display: block; }
  .header .lang, .header .btn--line { display: none; }
  .header.is-open { background: var(--white); color: var(--ink); }

  .hero__in { grid-template-columns: 1fr; padding-top: 96px; padding-bottom: 56px; gap: 28px; min-height: 0; align-items: start; }
  .hero .hero__device { position: relative; top: auto; inset-inline-end: auto; width: 100%; height: 300px; order: -1; margin-top: 30px; }
  .eco__chip--3, .eco__chip--4 { display: none; }
  .proof__in { grid-template-columns: 1fr 1fr; }
  .proof__in li { padding: 22px 16px; border-top: 1px solid rgba(255,255,255,0.08); }
  .proof__in li:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .phone { width: 200px; padding: 8px; border-radius: 34px; scale: 0.6; transform-origin: top center; }
  .phone__screen { border-radius: 30px; }
  .chat { font-size: 8.6px; padding: 26px 10px 10px; }
  .chat__body { gap: 7px; padding-top: 14px; }
  .chat__title, .msg__who { font-size: 7.5px; }
  .chat__bar svg { width: 14px; height: 14px; }
  .msg { padding: 7px 9px; border-radius: 11px; }
  .msg--card { padding: 9px; }
  .msg--card b, .msg--card ul { font-size: 8.2px; }
  .msg--card ul { gap: 4px; }
  .msg--card li::before { width: 10px; height: 10px; background-size: 9px; }
  .chat__input { font-size: 9px; padding: 6px 9px; margin-top: 7px; }
  .chat__send { width: 20px; height: 20px; }
  .chat__send svg { width: 11px; height: 11px; }
  .hero__title { font-size: clamp(44px, 12vw, 64px); }
  .hero__lede { margin-top: 24px; }
  .hero__actions { display: flex; }
  .hero__built { margin-top: 36px; }
  .hero__built ul { font-size: 16px; gap: 8px 20px; }
  .form { grid-template-columns: 1fr; }
  .sec--dark::before { width: 100%; height: 46%; inset: 0 0 auto 0; }

  .sec__head { grid-template-columns: 1fr; gap: 16px; }
  .tiles { grid-template-columns: 1fr; row-gap: 64px; }
  .tiles .tile { grid-template-columns: 1fr; gap: 24px; }
  .tiles .tile:nth-child(even) .tile__media { order: 0; }
  .me { grid-template-columns: 1fr; }
  .me__photo { max-width: 300px; }
  .tile:nth-child(n) { margin: 0; }
  .tile:nth-child(odd) { margin-inline-end: 9%; }
  .tile:nth-child(even) { margin-inline-start: 9%; }
  .tile--cta { min-height: 0; }
  .rows .row { grid-template-columns: 1fr; gap: 10px; padding-block: 26px; }
  .row__list { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .pillars--5 { grid-template-columns: 1fr 1fr; }
  .pillars--5 .pillar:nth-child(n) { grid-column: auto; }
  .stack__groups--wide > div { grid-template-columns: 1fr; gap: 4px; }
  .hero__trust li + li::before { margin-inline: 12px; }
  .contact { grid-template-columns: 1fr; }
  .stack { grid-template-columns: 1fr; gap: 16px; }
  .footer__built ul { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }

  .stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat { padding: 22px 18px 30px; min-height: 0; }
  .stat:nth-child(even) { margin-top: 32px; }
  .inds { grid-template-columns: 1fr; }
  .pillars, .pillars--5, .guide__grid { grid-template-columns: 1fr; }
  .pillar { min-height: 0; }
  .ind { min-height: 0; }
  .steps { grid-template-columns: 1fr; row-gap: 36px; }
  .stack__groups > div { grid-template-columns: 1fr; gap: 4px; }
  .stack__groups dd { text-align: start; }
  .tile:nth-child(n) { margin-inline: 0; }
  .form .btn { justify-self: stretch; justify-content: center; }
  .footer__built ul { grid-template-columns: 1fr; }
}

/* =========================================================
   LTR (English page at /en/): mirror direction-bound details
   ========================================================= */
[dir="ltr"] .arw { scale: -1 1; }
@media (hover: hover) and (pointer: fine) {
  [dir="ltr"] .btn:hover .arw { translate: 4px 0; }
  [dir="ltr"] a.tile:hover .arw,
  [dir="ltr"] .ind--cta:hover .arw { translate: 6px 0; }
}
[dir="ltr"] .steps::after { transform-origin: left; }
[dir="ltr"] .hero__title { font-size: clamp(34px, 3.5vw, 50px); }
[dir="ltr"] .phone { --phone-ry: -16deg; --phone-rz: 5deg; box-shadow: 0 0 0 1px rgba(255,255,255,0.10) inset, 0 0 0 3px rgba(255,255,255,0.03), 0 60px 120px -40px rgba(0,0,0,0.9), 30px 40px 90px -50px rgba(66, 214, 197,0.55); }
[dir="ltr"] .hero__line { white-space: nowrap; }
@media (max-width: 600px) { [dir="ltr"] .hero__line { white-space: normal; } }
[dir="ltr"] .stat__num { text-align: left; }
[dir="ltr"] .stack__groups dd { text-align: left; }

/* =========================================================
   Hero: 3D wall of live project screens
   ========================================================= */
.hero .hero__device:has(.wall) { top: 0; bottom: 0; height: auto; inset-inline-end: calc((100% - 100vw) / 2); width: calc(54% + (100vw - 100%) / 2); }
.wall {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 42%), linear-gradient(to bottom, transparent 0, #000 22%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to left, transparent 0, #000 42%), linear-gradient(to bottom, transparent 0, #000 22%, #000 82%, transparent 100%);
  mask-composite: intersect;
}
[dir="ltr"] .wall { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 42%), linear-gradient(to bottom, transparent 0, #000 22%, #000 82%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 42%), linear-gradient(to bottom, transparent 0, #000 22%, #000 82%, transparent 100%); }
.wall__plane {
  position: absolute; top: 50%; left: 42%;
  width: 1500px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  transform: translate(-50%, -50%) translate(calc(var(--mx) * -18px), calc(var(--my) * -14px)) rotateX(52deg) rotateZ(-42deg);
  transition: transform 1200ms var(--ease-out);
}
.wall__col { overflow: visible; }
.wall__track { display: flex; flex-direction: column; gap: 24px; }
.wall__track img {
  display: block; width: 100%; height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 30px 60px -24px rgba(0,0,0,0.9), 0 0 0 1px rgba(66,214,197,0.06);
  background: #0F1C2E;
}
.wall__col:nth-child(even) { margin-top: -180px; }
@keyframes wall-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 12px)); } }
.motion .wall__track { animation: wall-up 60s linear infinite; }
.motion .wall__col:nth-child(even) .wall__track { animation-direction: reverse; animation-duration: 72s; }
.motion .wall__col:nth-child(3) .wall__track { animation-duration: 54s; }
.wall__label { position: absolute; bottom: 7%; left: 6%; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--accent); }
.wall__label i { font-style: normal; color: var(--on-dark-muted); }
[dir="ltr"] .wall__label { left: auto; right: 6%; }
/* the copy stays legible where the wall runs under it */
.hero:has(.wall) .hero__copy { position: relative; z-index: 2; }
.motion .hero__device:has(.wall) { scale: 1.6; transform-origin: 40% 50%; }
.motion .hero.is-in .hero__device:has(.wall) { scale: 1; }

@media (max-width: 1080px) {
  .hero .hero__device:has(.wall) { width: calc(46% + (100vw - 100%) / 2); }
  .wall__plane { width: 1250px; }
}
@media (max-width: 900px) {
  .hero .hero__device:has(.wall) { position: relative; top: auto; bottom: auto; inset-inline-end: auto; width: auto; height: 340px; margin-inline: calc(var(--gutter) * -1); margin-top: 24px; }
  .wall { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 78%, transparent 100%); }
  .wall__plane { width: 980px; left: 50%; gap: 16px; }
  .wall__track { gap: 16px; }
  .wall__col:nth-child(even) { margin-top: -120px; }
  @keyframes wall-up-m { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 8px)); } }
  .motion .wall__track { animation-name: wall-up-m; }
  .wall__label { display: none; }
}

/* =========================================================
   Header on scroll + full-screen mobile menu
   ========================================================= */
.header.is-scrolled:not(.is-solid):not(.is-open) { background: rgba(8, 19, 33, 0.86); backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,0.06); }
.nav__cta { display: none; }
@media (max-width: 900px) {
  .header__in { height: 64px; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: 19px; }
  .header.is-open { background: var(--dark); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,0.08); backdrop-filter: none; }
  .header.is-open .brand__name i { color: var(--blue-soft); }
  .nav {
    inset: 64px 0 0 0;
    height: calc(100svh - 64px);
    overflow-y: auto;
    background: var(--dark);
    color: #fff;
    padding: 12px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    box-shadow: none;
    counter-reset: nav;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.01em;
  }
  .nav::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(66,214,197,0.16), transparent) 120% 110% / 90% 70% no-repeat; }
  .nav a:not(.btn):not(.nav__lang) { display: flex; align-items: baseline; gap: 14px; padding-block: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); counter-increment: nav; }
  .nav a:not(.btn):not(.nav__lang)::before { content: counter(nav, decimal-leading-zero); font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--accent); letter-spacing: 0.08em; }
  .nav__cta { display: inline-flex; justify-content: center; margin-top: 28px; font-size: 17px; }
  .nav .nav__lang { align-self: center; margin-top: 18px; padding: 10px 14px; border: 0; font-size: 15px; font-weight: 500; color: var(--on-dark-muted); }
  .motion .nav a { opacity: 0; translate: 0 14px; transition: opacity 360ms var(--ease-out), translate 420ms var(--ease-out); }
  .motion .nav.is-open a { opacity: 1; translate: 0 0; }
  .motion .nav.is-open a:nth-child(2) { transition-delay: 40ms; } .motion .nav.is-open a:nth-child(3) { transition-delay: 80ms; }
  .motion .nav.is-open a:nth-child(4) { transition-delay: 120ms; } .motion .nav.is-open a:nth-child(5) { transition-delay: 160ms; }
  .motion .nav.is-open a:nth-child(6) { transition-delay: 200ms; } .motion .nav.is-open a:nth-child(7) { transition-delay: 240ms; }
  .motion .nav.is-open a:nth-child(8) { transition-delay: 280ms; }
  html.menu-open { overflow: hidden; }
}
/* mobile: burger sits on the leading side, the logo on the trailing side */
@media (max-width: 900px) {
  [dir="rtl"] .header__actions { order: -1; margin-inline-end: auto; }
  [dir="rtl"] .burger { margin-inline-start: -10px; }
  [dir="ltr"] .header__actions { margin-inline-start: auto; }
  [dir="ltr"] .burger { margin-inline-end: -10px; }
}
/* mobile hero: the first call to action shows without scrolling */
@media (max-width: 900px) {
  .hero__in { padding-top: 72px; gap: 18px; }
  .hero .hero__device:has(.wall) { height: 190px; margin-top: 8px; }
  .wall__plane { width: 760px; gap: 12px; }
  .wall__track { gap: 12px; }
  .wall__col:nth-child(even) { margin-top: -90px; }
  .hero .kicker { display: none; }
  .hero__title, [dir="ltr"] .hero__title { font-size: clamp(28px, 8vw, 34px); }
  .hero__lede { margin-top: 14px; font-size: 16px; line-height: 1.55; }
  .hero__actions { margin-top: 22px; flex-wrap: nowrap; gap: 10px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; padding-inline: 14px; font-size: 15px; min-height: 50px; }
  .hero__actions .btn--ghost { flex: 0 1 auto; }
}
@media (max-width: 360px) { .hero__actions { flex-wrap: wrap; } }

/* =========================================================
   Projects: sticky screen + scrolling list
   ========================================================= */
.showcase { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(40px, 5vw, 96px); margin-top: clamp(40px, 5vw, 72px); }
.case { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 78vh; padding-block: 48px; }
.case + .case { border-top: 1px solid var(--line); }
.case__media { display: none; }
.case__n { font-family: var(--f-mono); font-size: 13px; color: var(--blue); letter-spacing: 0.1em; }
.case__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 14px; }
.case__brand { font-weight: 800; font-size: 15px; color: var(--blue); }
.case__title { margin-top: 14px; font-size: clamp(26px, 2.5vw, 38px); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
.case__text { margin-top: 16px; max-width: 34em; font-size: 17px; color: var(--muted, #4A5768); }
.case__result { margin-top: 22px; font-size: 15px; }
.case__result b { font-size: 22px; color: var(--blue); margin-inline-end: 4px; }
.case__go { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin-top: 24px; font-weight: 700; text-decoration: underline 1.5px transparent; text-underline-offset: 6px; transition: text-decoration-color 200ms ease; }
.case__go .arw { transition: translate 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .case__go:hover { text-decoration-color: currentColor; }
  .case__go:hover .arw { translate: -5px 0; }
  [dir="ltr"] .case__go:hover .arw { translate: 5px 0; }
}

/* the slide: a project's gradient panel with its screen on top */
.slide { position: relative; aspect-ratio: 16 / 11; border-radius: 22px; overflow: hidden; background: linear-gradient(135deg, var(--g1), var(--g2)); isolation: isolate; }
.slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,0.10) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(ellipse at 30% 0%, #000, transparent 75%); mask-image: radial-gradient(ellipse at 30% 0%, #000, transparent 75%); }
.slide__win { position: absolute; inset: 9% 7% auto 7%; margin: 0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -30px rgba(8,19,33,0.65), 0 0 0 1px rgba(8,19,33,0.08); }
.slide__win img, .slide__win video { display: block; width: 100%; height: auto; }
.slide__bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #F1F4F7; border-bottom: 1px solid #E2E8EE; }
.slide__bar i { width: 8px; height: 8px; border-radius: 50%; background: #CBD3DC; }
.slide__bar span { margin-left: 10px; font-family: var(--f-mono); font-size: 11px; color: #6B7785; }
.slide__phones { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; gap: 4%; padding: 0 6%; }
.slide__phones img { width: 27%; height: auto; border-radius: 20px; border: 5px solid #0E1116; box-shadow: 0 30px 60px -24px rgba(8,19,33,0.7); }
.slide__phones img:nth-child(2) { translate: 0 9%; }

/* desktop: the stage pins while the list scrolls */
.showcase__stage { display: none; }
@media (min-width: 901px) {
  .js .showcase.is-ready .showcase__stage { display: block; position: sticky; top: max(96px, calc(50vh - 22vw)); align-self: start; }
  .js .showcase.is-ready .stage { position: relative; aspect-ratio: 16 / 11; }
  .js .showcase.is-ready .stage .slide { position: absolute; inset: 0; opacity: 0; scale: 0.96; filter: blur(6px); transition: opacity 600ms var(--ease-out), scale 800ms var(--ease-out), filter 600ms var(--ease-out); }
  .js .showcase.is-ready .stage .slide.is-active { opacity: 1; scale: 1; filter: none; }
  .js .showcase.is-ready .stage .slide__win { translate: 0 18px; transition: translate 900ms var(--ease-out); }
  .js .showcase.is-ready .stage .slide.is-active .slide__win { translate: 0 0; }
  .js .showcase.is-ready .case { opacity: 0.28; transition: opacity 500ms var(--ease-out); }
  .js .showcase.is-ready .case.is-active { opacity: 1; }
  .stage__count { margin-top: 18px; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.1em; color: var(--muted, #6B7785); }
  .stage__count b { color: var(--ink); font-weight: 500; }
  .showcase:not(.is-ready) .case__media { display: block; margin-bottom: 28px; }
}
@media (max-width: 900px) {
  .showcase { display: block; margin-top: 32px; }
  .case { min-height: 0; padding-block: 36px; }
  .case__media { display: block; margin-bottom: 22px; }
  .slide { border-radius: 16px; }
  .case__title { font-size: 26px; }
  .case__text { font-size: 16px; }
}

/* Project story: problem, what we built, today */
.case__story { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 16px; max-width: 36em; }
.case__story li { position: relative; padding-inline-start: 26px; font-size: 16px; line-height: 1.65; color: var(--muted, #4A5768); }
.case__story li::before { content: ""; position: absolute; inset-inline-start: 0; top: 7px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--blue); background: var(--bg, #fff); }
.case__story li::after { content: ""; position: absolute; inset-inline-start: 5px; top: 22px; bottom: -12px; width: 2px; background: var(--line); }
.case__story li:last-child::after { display: none; }
.case__story li:last-child::before { background: var(--blue); }
.case__story li:last-child { color: var(--ink); font-weight: 600; }
.case__story li:last-child b:not(.case__lbl) { color: var(--blue); font-size: 20px; }
.case__lbl { display: block; margin-bottom: 2px; font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: var(--ink); }
.showcase__chip { display: none; }

@media (max-width: 900px) {
  .case { padding-block: 0 72px; }
  .case + .case { border-top: 0; }
  .case__media { margin: 0 calc(var(--gutter) * -1) 0; }
  .case__media .slide { aspect-ratio: 4 / 3.3; border-radius: 0; }
  .case__media .slide__win { inset: 11% 6% auto 6%; border-radius: 10px; }
  .case__media .slide__phones { padding: 0 8%; }
  .case__n { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 58px; height: 58px; margin-top: -29px; border-radius: 50%; background: var(--ink, #0B1626); color: #fff; font-size: 17px; font-weight: 600; letter-spacing: 0.04em; box-shadow: 0 12px 28px -10px rgba(8,19,33,0.55); }
  .case__meta { margin-top: 16px; }
  .case__title { font-size: 27px; }
  .case__story li { font-size: 15.5px; }
  .case__go { margin-top: 22px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }

  /* a floating chip shows which project you are on */
  .js .showcase__chip { display: flex; position: sticky; top: 76px; z-index: 5; width: max-content; margin: 0 auto 18px; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(11,22,38,0.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 10px 24px -12px rgba(8,19,33,0.6); }
  .showcase__chip span { font-family: var(--f-mono); font-weight: 500; opacity: 0.7; }
  .showcase__chip b { font-weight: 700; transition: opacity 200ms ease; }

  /* screens rise into place as each project arrives */
  .js .showcase.is-mobile .case .slide__win, .js .showcase.is-mobile .case .slide__phones { opacity: 0; translate: 0 28px; transition: opacity 600ms var(--ease-out), translate 800ms var(--ease-out); }
  .js .showcase.is-mobile .case.is-in .slide__win, .js .showcase.is-mobile .case.is-in .slide__phones { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .js .showcase.is-mobile .case .slide__win, .js .showcase.is-mobile .case .slide__phones { opacity: 1; translate: none; transition: none; }
}
[dir="rtl"] .case__lbl { font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0; }
[dir="rtl"] .case__meta .tag { letter-spacing: 0.02em; }

/* Traveler quotes inside a project */
.quotes { margin: 28px 0 0; max-width: 36em; }
.quotes figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; font-weight: 700; color: var(--ink); }
.quotes__stars { color: #F2B417; letter-spacing: 2px; font-size: 14px; }
.quotes__note { font-weight: 500; color: var(--muted, #6B7785); }
.quotes ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.quotes li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.quotes blockquote { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.quotes blockquote::before { content: "\201D"; margin-inline-end: 6px; font-size: 22px; line-height: 0; color: var(--blue); }
[dir="ltr"] .quotes blockquote::before { content: "\201C"; }
.quotes__by { font-size: 12px; color: var(--muted, #6B7785); }
@media (max-width: 900px) {
  .quotes ul { grid-template-columns: 1fr; }
  .quotes li { padding: 14px 16px; }
}
.showcase__chip span, .showcase__chip b { unicode-bidi: isolate; }
.showcase__chip { direction: ltr; }

/* Sound button on a project video */
.slide__sound { position: absolute; z-index: 2; inset-inline-end: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(11,22,38,0.78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(8,19,33,0.6); transition: transform 160ms var(--ease-out), background 200ms ease; }
.slide__sound:active { transform: scale(0.94); }
.slide__sound:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.slide__sound .snd-on { display: none; }
.slide__sound[aria-pressed="true"] { background: var(--blue); }
.slide__sound[aria-pressed="true"] .snd-on { display: inline; }
.slide__sound[aria-pressed="true"] .snd-off { display: none; }
@media (hover: hover) and (pointer: fine) { .slide__sound:hover { transform: scale(1.06); } }
