/* =========================================================
   Home — Syntax Shell. Builds on the tokens and components in style.css.
   ========================================================= */

/* ---------- Hero: headline with a signature that rewrites itself, and a glass globe ---------- */
.home-hero { position: relative; display: flex; align-items: center; min-height: max(100vh, 720px); min-height: max(100svh, 720px); padding: calc(var(--nav-h) + 40px) 0 80px; overflow: hidden; }
.home-hero__inner { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr); gap: clamp(16px, 3vw, 48px); align-items: center; }
.home-hero__copy { position: relative; z-index: 2; }
.home-hero__title { margin-top: 26px; font-size: clamp(3.1rem, min(7vw, 12.5vh), 7.2rem); font-weight: 600; line-height: 0.92; letter-spacing: -0.06em; }
.home-hero__line { display: block; overflow: hidden; overflow: clip; padding: 0 0.12em 0.14em 0; margin: 0 -0.12em -0.14em 0; }
.home-hero__in { display: inline-block; animation: rise 1.2s var(--ease-out) backwards; animation-delay: calc(var(--hold, 0s) + 0.12s); }
.home-hero__line:last-child .home-hero__in { animation-delay: calc(var(--hold, 0s) + 0.42s); }
.home-hero__title em { font-style: normal; font-weight: 300; color: var(--ink-3); }
@keyframes rise { from { transform: translate3d(0, 112%, 0) rotate(5deg); } }
.home-hero__line--sig { overflow: visible; min-height: 1.18em; margin: 0.02em 0 0.06em; }
.home-hero__title .sig { display: inline-block; font-size: 1.32em; line-height: 0.95; white-space: nowrap; padding: 0.12em 0.32em 0.26em 0.3em; margin: -0.12em -0.2em -0.24em -0.26em; }
/* the signature is written left to right, holds, then wipes away for the next word */
.js .rotator { clip-path: inset(-20% 102% -20% -6%); }
.js .rotator.is-writing { clip-path: inset(-20% -8% -20% -6%); transition: clip-path 1.15s cubic-bezier(0.62, 0.04, 0.3, 1); }
.js .rotator.is-erasing { clip-path: inset(-20% -8% -20% 104%); transition: clip-path 0.55s cubic-bezier(0.7, 0, 0.3, 1); }
.home-hero__lead { margin-top: 20px; max-width: 540px; color: var(--ink-2); font-size: clamp(16px, 1.35vw, 18.5px); }
.home-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.home-hero__proof { display: flex; flex-wrap: wrap; gap: 14px 38px; margin: 40px 0 0; }
.home-hero__proof div { display: flex; flex-direction: column-reverse; gap: 2px; }
.home-hero__proof dt { color: var(--ink-3); font-size: 12.5px; }
.home-hero__proof dd { margin: 0; font-size: 32px; font-weight: 600; line-height: 1.05; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* The glass globe (js/hero-globe.js), with glass cards and labels around it */
.hglobe {
  position: relative; justify-self: end; width: min(100%, 660px); aspect-ratio: 1;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.hglobe.is-dragging { cursor: grabbing; }
.hglobe__halo { /* coloured light behind the glass, and its shadow on the page */
  position: absolute; inset: 12%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(126, 104, 255, 0.34), rgba(31, 143, 255, 0.18) 52%, rgba(255, 79, 154, 0.14) 70%, transparent 82%);
  filter: blur(26px); animation: halo 11s ease-in-out infinite alternate;
}
.hglobe::after {
  content: ""; position: absolute; left: 50%; bottom: 4.5%; width: 50%; height: 7%; transform: translateX(-50%); pointer-events: none;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(46, 34, 120, 0.22), transparent); filter: blur(8px);
  animation: shadow-breathe 9s ease-in-out infinite;
}
@keyframes halo { to { transform: scale(1.08) rotate(24deg); } }
.hglobe__canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease) var(--hold, 0s); }
.hglobe.is-live .hglobe__canvas { opacity: 1; }
.hglobe__fallback {
  position: absolute; inset: 13%; z-index: 1; display: none; place-items: center; border-radius: 50%;
  background: radial-gradient(60% 60% at 32% 26%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.45) 62%, rgba(255, 255, 255, 0.2)), conic-gradient(from 200deg, rgba(106, 77, 255, 0.45), rgba(31, 143, 255, 0.4), rgba(255, 79, 154, 0.42), rgba(106, 77, 255, 0.45));
  border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
}
.hglobe__fallback svg { width: 70%; height: 70%; fill: none; stroke: var(--violet); stroke-width: 0.5; opacity: 0.7; }
.hglobe.no-3d .hglobe__fallback { display: grid; }
.hglobe.no-3d .hglobe__pin { display: none; }

/* labels riding on the surface: little panes of glass with a stalk down to the spot */
.hglobe__pin {
  position: absolute; left: 0; top: 0; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 9px; border-radius: 999px;
  background: var(--glass-strong); -webkit-backdrop-filter: blur(12px) saturate(175%); backdrop-filter: blur(12px) saturate(175%);
  border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
  font-size: 11px; color: var(--ink); white-space: nowrap; pointer-events: none;
  transform: translate(calc(var(--px, -999px) - 50%), calc(var(--py, -999px) - 100% - 16px));
  opacity: var(--pin-o, 0); transition: opacity 0.25s;
}
.hglobe__pin::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 13px; background: linear-gradient(var(--ink-3), transparent); }
.hglobe__pin i { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); flex: none; }
.hglobe__pin--home i { background: var(--ink); }

.hglobe__card {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px;
  padding: 11px 15px 11px 11px; border-radius: 18px; color: var(--ink);
  background: var(--glass-strong); -webkit-backdrop-filter: blur(16px) saturate(175%); backdrop-filter: blur(16px) saturate(175%);
  border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow), 0 24px 50px -28px rgba(56, 42, 140, 0.45);
  animation: card-in 1s var(--ease-out) backwards, bob 7s ease-in-out infinite;
  animation-delay: calc(var(--hold, 0s) + var(--d, 1.2s)), var(--b, 0s);
  cursor: default;
}
@keyframes card-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
.hglobe__card strong { display: block; font-size: 14px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.hglobe__card small { display: block; color: var(--ink-3); font-size: 12px; line-height: 1.35; }
.hglobe__card--team { left: -7%; bottom: 17%; --d: 1.3s; transition: box-shadow 0.4s var(--ease); cursor: pointer; }
.hglobe__card--team:hover { box-shadow: var(--glass-shadow), 0 28px 56px -24px rgba(106, 77, 255, 0.6); }
.hglobe__card--team .i { width: 16px; height: 16px; color: var(--ink-3); transition: transform 0.35s var(--ease), color 0.25s; }
.hglobe__card--team:hover .i { color: var(--ink); transform: translate(2px, -2px); }
.hglobe__card--live { left: 3%; top: 5%; padding: 9px 14px; gap: 9px; border-radius: 999px; font-size: 13px; font-weight: 500; --d: 1.55s; --b: -2.5s; }
.hglobe__card--time { right: -2%; bottom: 9%; display: grid; gap: 7px; padding: 13px 16px; --d: 1.8s; --b: -4.5s; }
.hglobe__card--time small.mono { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.hglobe__clock { display: flex; align-items: baseline; justify-content: space-between; gap: 22px; font-size: 13.5px; }
.hglobe__clock b { font-weight: 500; color: var(--ink-2); }
.hglobe__clock time { font-family: var(--font-mono); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.hglobe__clock + .hglobe__clock { padding-top: 7px; border-top: 1px solid var(--line); }

/* a row of overlapping faces */
.avatars { display: flex; flex: none; }
.avatars img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: linear-gradient(140deg, #e9e4ff, #dcefff 50%, #ffe1ef); border: 2px solid #fff; box-shadow: 0 4px 10px -4px rgba(46, 34, 120, 0.4); }
.avatars img + img { margin-left: -11px; }

.hglobe__caption { position: absolute; left: 50%; bottom: 0; z-index: 2; transform: translateX(-50%); color: var(--ink-3); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; pointer-events: none; }
.hglobe.was-dragged .hglobe__caption span, .hglobe.no-3d .hglobe__caption span { display: none; }
.home-hero .scroll-cue { left: max(var(--gutter), calc((100% - var(--container)) / 2)); }

/* ---------- Shipped ticker ---------- */
.home-shipped li:nth-child(even) { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ink); font-family: var(--font-script); font-size: clamp(26px, 2.7vw, 34px); font-weight: 400; letter-spacing: 0; }
.home-shipped li:nth-child(odd) { background: linear-gradient(100deg, #a393ff, #6fbcff 50%, #ff8fc0); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Services bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.bento__card {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 250px; overflow: hidden;
  padding: clamp(22px, 2.4vw, 30px); border-radius: 30px; color: inherit;
}
.bento__card > :not(.bento__art) { position: relative; z-index: 2; }
.bento__card--mobile { grid-column: span 7; min-height: 470px; }
.bento__card--web { grid-column: span 5; min-height: 470px; }
.bento__card--ai { grid-column: span 5; }
.bento__card--models { grid-column: span 7; }
.bento__card--design, .bento__card--care { grid-column: span 6; }
.bento__card--mobile > p, .bento__card--mobile > .tags, .bento__card--mobile > .bento__list { max-width: 52%; }
.bento__list { display: grid; gap: 9px; margin-top: 14px; }
.bento__list li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 14.5px; }
.bento__list .i { width: 18px; height: 18px; padding: 3px; border-radius: 50%; color: #fff; background: var(--grad); stroke-width: 3; }
.bento__card--ai > p, .bento__card--models > p, .bento__card--design > p, .bento__card--care > p { max-width: 52%; }
.bento__icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 8px; border-radius: 16px; color: #fff; background: var(--grad); box-shadow: 0 14px 26px -12px rgba(106, 77, 255, 0.85); transition: transform 0.6s var(--ease-out); }
.bento__card--web .bento__icon { background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 14px 26px -12px rgba(31, 143, 255, 0.85); }
.bento__card--ai .bento__icon { background: linear-gradient(135deg, var(--violet), var(--pink)); }
.bento__card--models .bento__icon { background: linear-gradient(135deg, #3d2bd9, var(--violet)); }
.bento__card--design .bento__icon { background: var(--grad-warm); box-shadow: 0 14px 26px -12px rgba(255, 79, 154, 0.85); }
.bento__card--care .bento__icon { background: linear-gradient(135deg, var(--live), var(--cyan)); box-shadow: 0 14px 26px -12px rgba(23, 199, 154, 0.85); }
.bento__card:hover .bento__icon { transform: rotate(-8deg) scale(1.06); }
.bento__icon .i { width: 22px; height: 22px; }
.bento__card h3 { font-size: clamp(1.45rem, 2.2vw, 1.95rem); letter-spacing: -0.045em; }
.bento__card > p { color: var(--ink-2); font-size: 15.5px; }
.bento__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 16px; }
.bento__price { padding: 6px 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 12px; white-space: nowrap; }
.bento__price:empty { display: none; }
.bento__go { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.bento__go .i { width: 16px; height: 16px; transition: transform 0.4s var(--ease-out); }
.bento__card:hover .bento__go .i { transform: translate(3px, -3px); }
.bento__art { position: absolute; z-index: 0; pointer-events: none; }

.bento__art--phones { right: clamp(-10px, 1vw, 24px); bottom: -64px; display: flex; align-items: flex-end; gap: 16px; transform: perspective(1200px) rotateX(10deg) rotateY(-16deg) rotateZ(3deg); transform-origin: 50% 100%; transition: transform 0.9s var(--ease-out); }
.bento__art--phones .phone { --rx: 0deg; --ry: 0deg; width: clamp(130px, 13vw, 168px); }
.bento__art--phones .phone + .phone { margin-bottom: 46px; }
.bento__card:hover .bento__art--phones { transform: perspective(1200px) rotateX(4deg) rotateY(-6deg) rotateZ(1deg) translateY(-12px); }

.bento__art--browser { position: relative; z-index: 0; margin: 26px -80px -110px 0; transform: perspective(1300px) rotateX(16deg) rotateY(-12deg); transform-origin: 30% 100%; transition: transform 0.9s var(--ease-out); }
.bento__art--browser .browser { box-shadow: 0 40px 60px -30px rgba(30, 20, 90, 0.5); }
.bento__card:hover .bento__art--browser { transform: perspective(1300px) rotateX(6deg) rotateY(-4deg) translateY(-10px); }

.bento__art--chat { right: clamp(18px, 2vw, 28px); top: 56%; display: grid; justify-items: end; gap: 10px; width: 42%; transform: translateY(-50%); }
.bubble { max-width: 100%; padding: 10px 14px; border-radius: 18px 18px 5px 18px; background: var(--ink); color: #fff; font-size: 12.5px; line-height: 1.4; box-shadow: 0 14px 26px -16px rgba(10, 10, 10, 0.6); }
.bubble--ai { justify-self: start; display: inline-flex; gap: 5px; padding: 13px 15px; border-radius: 18px 18px 18px 5px; background: rgba(255, 255, 255, 0.9); border: 1px solid var(--line-2); }
.bubble--ai i { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); animation: typing 1.2s ease-in-out infinite; }
.bubble--ai i:nth-child(2) { animation-delay: 0.15s; }
.bubble--ai i:nth-child(3) { animation-delay: 0.3s; }

.bento__art--net { right: clamp(18px, 2.4vw, 34px); top: 50%; width: min(44%, 280px); height: auto; overflow: visible; transform: translateY(-50%); }
.net__edges path { fill: none; stroke: rgba(106, 77, 255, 0.32); stroke-width: 1.3; stroke-dasharray: 3 6; animation: net-flow 1.4s linear infinite; }
@keyframes net-flow { to { stroke-dashoffset: -18; } }
.net__nodes circle { fill: #fff; stroke: var(--violet); stroke-width: 2; animation: net-node 2.6s ease-in-out infinite; }
.net__nodes circle:nth-child(3n + 2) { animation-delay: -0.9s; stroke: var(--blue); }
.net__nodes circle:nth-child(3n) { animation-delay: -1.7s; stroke: var(--pink); }
@keyframes net-node { 50% { fill: #c8bcff; } }

.bento__art--shapes { right: clamp(26px, 4vw, 60px); top: 50%; width: 190px; height: 160px; transform: translateY(-50%); }
.bento__art--shapes i { position: absolute; display: block; border: 1px solid rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 20px 34px -18px rgba(56, 42, 140, 0.55); animation: float 7s ease-in-out infinite; }
.bento__art--shapes i:nth-child(1) { left: 0; top: 18px; width: 96px; height: 96px; border-radius: 50%; background: linear-gradient(135deg, rgba(106, 77, 255, 0.6), rgba(31, 143, 255, 0.35)); }
.bento__art--shapes i:nth-child(2) { left: 78px; top: 62px; width: 86px; height: 86px; border-radius: 22px; background: linear-gradient(135deg, rgba(255, 79, 154, 0.55), rgba(255, 154, 61, 0.4)); animation-delay: -2.3s; rotate: 12deg; }
.bento__art--shapes i:nth-child(3) { left: 92px; top: -6px; width: 92px; height: 80px; border: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: linear-gradient(135deg, rgba(18, 200, 192, 0.6), rgba(31, 143, 255, 0.4)); animation-delay: -4.6s; }
@keyframes float { 50% { translate: 0 -12px; } }

.bento__art--uptime { right: clamp(22px, 3vw, 40px); bottom: 78px; display: flex; align-items: flex-end; gap: 6px; height: 84px; }
.bento__art--uptime i { width: 10px; height: 100%; border-radius: 5px; background: linear-gradient(var(--live), var(--cyan)); transform-origin: 50% 100%; animation: bar 2.8s ease-in-out infinite; }
.bento__art--uptime i:nth-child(2n) { scale: 1 0.7; animation-delay: -0.6s; }
.bento__art--uptime i:nth-child(3n) { scale: 1 0.85; animation-delay: -1.2s; }
.bento__art--uptime i:nth-child(5n) { scale: 1 0.55; animation-delay: -1.9s; }
@keyframes bar { 50% { transform: scaleY(0.82); } }
.bento__art--uptime b { position: absolute; right: 0; top: -44px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.9); border: 1px solid rgba(23, 199, 154, 0.5); color: var(--ink); font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; white-space: nowrap; }

/* ---------- Work: cards stack up as you scroll ---------- */
.stack { display: grid; gap: clamp(28px, 5vh, 56px); padding-bottom: 8px; }
.stack__card {
  position: sticky; top: calc(var(--nav-h) + 34px + var(--i, 0) * 16px);
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  min-height: min(560px, calc(100vh - var(--nav-h) - 120px)); padding: clamp(24px, 3.6vw, 52px); overflow: hidden;
  border-radius: 36px; background: rgba(255, 255, 255, 0.9);
  scale: var(--stack-scale, 1); transform-origin: 50% 0;
}
.stack__card:nth-child(1) { background: radial-gradient(70% 90% at 100% 0%, rgba(23, 199, 154, 0.2), transparent 62%), rgba(255, 255, 255, 0.92); }
.stack__card:nth-child(2) { background: radial-gradient(70% 90% at 100% 0%, rgba(106, 77, 255, 0.2), transparent 62%), rgba(255, 255, 255, 0.92); }
.stack__card:nth-child(3) { background: radial-gradient(70% 90% at 100% 0%, rgba(31, 143, 255, 0.2), transparent 62%), rgba(255, 255, 255, 0.92); }
.stack__card:nth-child(4) { background: radial-gradient(70% 90% at 100% 0%, rgba(255, 79, 154, 0.18), transparent 62%), rgba(255, 255, 255, 0.92); }
.stack__card:nth-child(5) { background: radial-gradient(70% 90% at 100% 0%, rgba(255, 154, 61, 0.2), transparent 62%), rgba(255, 255, 255, 0.92); }
.stack__card:nth-child(6) { background: radial-gradient(70% 90% at 100% 0%, rgba(18, 200, 192, 0.2), transparent 62%), rgba(255, 255, 255, 0.92); }
.stack__copy { display: grid; justify-items: start; gap: 14px; }
.stack__copy h3 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); line-height: 1; letter-spacing: -0.058em; }
.stack__tag { margin-top: -6px; font-size: clamp(1.05rem, 1.4vw, 1.25rem); font-weight: 500; letter-spacing: -0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stack__copy > p:not(.stack__tag) { max-width: 46ch; color: var(--ink-2); font-size: 16px; }
.stack__visual { position: relative; display: flex; justify-content: center; align-items: center; perspective: 1400px; }
.stack__visual--phones { align-items: flex-end; gap: clamp(12px, 2vw, 24px); }
.stack__visual--phones .phone { --rx: 4deg; --ry: -14deg; width: clamp(180px, 18vw, 250px); }
.stack__visual--phones .phone--sm { --ry: -18deg; width: clamp(130px, 13vw, 180px); margin-bottom: 40px; }
.stack__visual .browser { width: 100%; transform: rotateY(-12deg) rotateX(6deg); box-shadow: 0 50px 80px -40px rgba(30, 20, 90, 0.55); transition: transform 0.9s var(--ease-out); }
.stack__card:hover .stack__visual .browser { transform: rotateY(-4deg) rotateX(2deg); }

/* ---------- Process ---------- */
.home-process__steps { margin-top: 0; }

/* ---------- Why us ---------- */
.home-why__grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.home-why__head { position: sticky; top: calc(var(--nav-h) + 56px); margin-bottom: 0; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.why { padding: 26px 26px 28px; border-radius: 28px; }
.why__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; color: #fff; background: var(--grad); box-shadow: 0 12px 24px -12px rgba(106, 77, 255, 0.85); }
.why:nth-child(2) .why__icon { background: var(--grad-warm); box-shadow: 0 12px 24px -12px rgba(255, 79, 154, 0.85); }
.why:nth-child(3) .why__icon { background: linear-gradient(135deg, var(--violet), var(--pink)); }
.why:nth-child(4) .why__icon { background: linear-gradient(135deg, var(--live), var(--cyan)); box-shadow: 0 12px 24px -12px rgba(23, 199, 154, 0.85); }
.why__icon .i { width: 21px; height: 21px; }
.why h3 { margin: 18px 0 8px; font-size: 20px; letter-spacing: -0.035em; }
.why p { color: var(--ink-2); font-size: 15px; }
.home-why__stats { margin-top: clamp(48px, 6vw, 80px); }

/* ---------- Toolbox ---------- */
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tools__col { padding: 24px; border-radius: 26px; }
.tools__col h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 17px; letter-spacing: -0.025em; }
.tools__col h3 .i { color: var(--violet); }

/* ---------- Founder ---------- */

/* ---------- Call to action ---------- */
/* the CTA slab itself (.home-cta__*) lives in style.css, shared with the other pages */

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__card--mobile, .bento__card--care { grid-column: span 2; }
  .bento__card--web, .bento__card--ai, .bento__card--models, .bento__card--design { grid-column: span 1; }
  .bento__card--web { min-height: 440px; }
  .bento__card--ai > p, .bento__card--models > p, .bento__card--design > p { max-width: none; }
  .bento__card--ai, .bento__card--models, .bento__card--design { padding-bottom: 190px; }
  .bento__art--chat, .bento__art--net, .bento__art--shapes { top: auto; bottom: 74px; transform: none; }
  .bento__art--chat { left: clamp(22px, 2.4vw, 30px); right: clamp(22px, 2.4vw, 30px); width: auto; }
  .bento__art--net { left: 30px; right: 30px; width: auto; max-height: 110px; }
  .tools { grid-template-columns: 1fr 1fr; }
}

/* narrower screens: the globe shrinks, so the team card moves to the top and the status pill steps aside */
@media (max-width: 1240px) {
  .hglobe__card--live { display: none; }
  .hglobe__card--team { top: 2%; bottom: auto; left: -3%; }
}

@media (max-width: 900px) {
  .home-hero { min-height: 0; padding-top: calc(var(--nav-h) + 48px); }
  .home-hero__inner { grid-template-columns: 1fr; }
  .hglobe { justify-self: center; width: min(100%, 560px); margin-top: 8px; }
  .home-hero .scroll-cue { display: none; }
  .stack__card { grid-template-columns: 1fr; min-height: 0; }
  .stack__visual { order: -1; }
  .stack__visual--phones .phone { width: clamp(150px, 34vw, 210px); }
  .stack__visual--phones .phone--sm { width: clamp(110px, 25vw, 150px); }
  .home-why__grid { grid-template-columns: 1fr; }
  .home-why__head { position: static; }
}

@media (max-width: 640px) {
  .home-hero__title { font-size: clamp(2.7rem, 13.4vw, 4.4rem); }
  .home-hero__cta .btn { flex: 1 1 auto; }
  .home-hero__proof { gap: 12px 28px; }
  .hglobe__card--live { display: none; }
  .hglobe__card--team { left: 0; top: 0; bottom: auto; padding: 8px 12px 8px 8px; gap: 10px; }
  .hglobe__caption { font-size: 9.5px; letter-spacing: 0.08em; }
  .hglobe__caption span { display: none; }
  .hglobe__card--time { right: 0; bottom: 7%; padding: 10px 13px; }
  .hglobe__card strong { font-size: 13px; }
  .hglobe__card small { font-size: 11px; }
  .avatars img { width: 28px; height: 28px; }
  .avatars img + img { margin-left: -10px; }
  .bento { grid-template-columns: 1fr; }
  .bento__card, .bento__card--mobile, .bento__card--care, .bento__card--web, .bento__card--ai, .bento__card--models, .bento__card--design { grid-column: auto; }
  .bento__card > p, .bento__card > .tags, .bento__card > .bento__list { max-width: none !important; }
  /* the art sits between the copy and the price row instead of floating over them */
  .bento__card, .bento__card--mobile, .bento__card--web { min-height: 0; padding: 22px 20px; }
  .bento__card .bento__art { position: relative; inset: auto; order: 1; translate: none; transform: none; margin: 18px auto 0; }
  .bento__foot { order: 2; padding-top: 18px; }
  .bento__art--phones { justify-content: center; gap: 12px; margin-bottom: -46px !important; }
  .bento__art--phones .phone { width: 132px; }
  .bento__art--phones .phone + .phone { margin-bottom: 28px; }
  .bento__card--mobile .bento__foot { position: relative; z-index: 3; margin: 0 -20px -22px; padding: 14px 20px 18px; background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .bento__art--browser { width: calc(100% + 40px); margin: 18px -40px -60px 0 !important; transform: perspective(1300px) rotateX(10deg) rotateY(-8deg) !important; }
  .bento__card--web .bento__foot { position: relative; z-index: 3; margin: 0 -20px -22px; padding: 14px 20px 18px; background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .bento__art--chat { width: 100%; justify-items: end; }
  .bento__art--net { width: 100%; max-width: 300px; }
  .bento__art--shapes { width: 190px; height: 150px; }
  .bento__art--uptime { height: 70px; margin-top: 56px !important; }
  /* work cards: no sticky stacking on phones — each card is taller than the screen */
  .stack { gap: 18px; }
  .stack__card { position: relative; top: auto; scale: 1; gap: 18px; padding: 22px 20px 24px; border-radius: 28px; }
  .stack__copy h3 { font-size: 2.2rem; }
  .stack__visual--phones .phone { width: 150px; }
  .stack__visual--phones .phone--sm { width: 112px; margin-bottom: 26px; }
  .stack__visual .browser { transform: none; }
  .stack__card .actions .btn { flex: 1 1 auto; }
  .why-list { grid-template-columns: 1fr; }
  .tools { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .js .rotator { clip-path: none; }
  .stack__card { position: relative; top: auto; scale: 1; }
}
