/* SaneDevs homepage — v11 */
:root {
  --ink: #0b1d44;
  --muted: #2f4a7d;
  --blue: #1747c9;
  --sky: #9cc6f4;
  --green: #46d883;
  --glass: rgba(255, 255, 255, 0.42);
  --line: rgba(255, 255, 255, 0.62);
  --shadow: 0 20px 60px rgba(23, 71, 201, 0.16);
  --sans: "Figtree", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.65, 0, 0.15, 1);
  --out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --aw: clamp(150px, 16.7vw, 260px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(180deg, #bcd9f9 0, #a6caf6 30%, #93bff3 62%, #84b4ef 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 78% 6%, rgba(255, 255, 255, 0.5), transparent 36%),
    radial-gradient(ellipse at 8% 30%, rgba(255, 255, 255, 0.38), transparent 33%);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(214, 233, 255, 0.92); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  margin: 8px 12px 0;
  min-height: 760px;
  padding: 0 0 26px;
  border-radius: 30px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, #1747c9 0%, #2f6ee6 36%, #5c97ee 60%, #9cc6f4 80%, #cfe4f8 100%);
}
.hero-glow { position: absolute; z-index: -1; inset: 0; pointer-events: none; overflow: hidden; }
.cloud {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 68%);
  will-change: transform;
}
.c1 { opacity: 0.55; width: 520px; height: 150px; left: -4%; top: 18%; animation: drift 70s ease-in-out infinite alternate; }
.c2 { opacity: 0.55; width: 620px; height: 170px; right: -6%; top: 26%; animation: drift2 85s ease-in-out infinite alternate; }
.c3 { width: 760px; height: 210px; left: 8%; bottom: -5%; opacity: 0.95; animation: drift 95s ease-in-out infinite alternate-reverse; }
.c4 { width: 620px; height: 190px; right: 4%; bottom: -8%; opacity: 0.9; animation: drift2 80s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate3d(-6%, 0, 0); } to { transform: translate3d(22%, 8px, 0); } }
@keyframes drift2 { from { transform: translate3d(8%, 0, 0); } to { transform: translate3d(-24%, -8px, 0); } }
.site-header {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 80px;
  padding: 0 clamp(24px, 4vw, 64px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.brand img { object-fit: contain; transition: transform 0.4s var(--out); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.site-header nav { display: flex; gap: clamp(18px, 2.7vw, 42px); margin: auto; font-size: 14px; font-weight: 600; }
.site-header nav a { position: relative; padding: 6px 0; color: #fff; }
.site-header nav a:after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--out);
}
.site-header nav a:hover:after, .site-header nav a:focus-visible:after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 22px;
  border-radius: 99px;
  background: var(--green);
  color: var(--ink);
  font-weight: 700; font-size: 14px;
  white-space: nowrap;
  transition: transform 0.25s var(--out), box-shadow 0.25s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(6, 30, 90, 0.3); }
.menu-toggle { display: none; }
.hero-copy { position: relative; z-index: 2; max-width: 1000px; margin: 34px auto 0; padding: 0 28px; text-align: center; }
.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(54px, 7.6vw, 104px);
  line-height: 0.99;
  letter-spacing: -0.06em;
  font-weight: 700;
  text-wrap: balance;
}
.soft { font-weight: 400; color: #d6e6ff; }
.sane-word { position: relative; display: inline-block; color: #fff; }
.sane-word i { position: absolute; left: 3%; right: 3%; bottom: 0; height: 8px; border-radius: 8px; background: var(--green); transform: rotate(-1.5deg); }
.hero-copy > p { max-width: 610px; margin: 24px auto 0; color: #fffffff2; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.55; text-wrap: pretty; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 99px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.28s var(--out), box-shadow 0.28s, background-color 0.25s;
}
.pill:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(8, 32, 100, 0.28); }
.pill:active { transform: translateY(0); }
.pill-glass { background: rgba(14, 23, 38, 0.32); border: 1px solid rgba(255, 255, 255, 0.4); color: #fff; }
.pill-glass:hover { background: rgba(14, 23, 38, 0.5); }
.pill-green { background: var(--green); color: var(--ink); padding-right: 7px; }
.pill-green:hover { background: #5be696; }
.arrow-disc {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  transition: transform 0.3s var(--out);
}
.arrow-disc svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--out); }
.pill:hover .arrow-disc svg { transform: translate(2px, -2px); }

/* ---------- hero carousel ---------- */
.hero-arc {
  position: relative;
  z-index: 2;
  height: calc(var(--aw) * 0.625 + 92px);
  margin-top: clamp(30px, 4vw, 56px);
  perspective: 1000px;
  perspective-origin: 50% 35%;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.hero-arc.is-drag { cursor: grabbing; }
.arc-track { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.arc-card {
  position: absolute;
  left: 50%;
  top: 22px;
  display: block;
  width: var(--aw);
  margin-left: calc(var(--aw) / -2);
  aspect-ratio: 16 / 10;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  pointer-events: auto;
  cursor: pointer;
  outline: 0;
}
.arc-card:not(.ready) .arc-card__img { opacity: 0; }
.arc-card__img {
  position: absolute; inset: 0;
  opacity: 1;
  display: block;
  overflow: hidden;
  border-radius: clamp(10px, 1.1vw, 16px);
  background: linear-gradient(135deg, #2a55c4, #5c97ee);
  box-shadow: 0 18px 38px rgba(8, 32, 100, 0.34);
  transition: box-shadow 0.35s, opacity 0.5s;
}
.arc-card.is-hot .arc-card__img, .arc-card:focus-visible .arc-card__img { box-shadow: 0 30px 54px rgba(8, 32, 100, 0.5); }
.arc-card:focus-visible .arc-card__img { outline: 3px solid #fff; outline-offset: 3px; }
.arc-card img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; pointer-events: none; }
.arc-label {
  position: absolute;
  left: 50%; top: calc(100% + 14px);
  max-width: 220px;
  padding: 7px 13px;
  border-radius: 99px;
  background: rgba(10, 30, 80, 0.86);
  color: #fff;
  font-size: 12px; font-weight: 700; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity 0.25s, transform 0.3s var(--out);
  pointer-events: none;
}
.arc-label { pointer-events: auto; }
.arc-card.is-hot .arc-label, .arc-card:focus-visible .arc-label { opacity: 1; transform: translate(-50%, 0); }
.hero-arc.is-static { height: auto; margin-top: 36px; perspective: none; overflow-x: auto; touch-action: auto; cursor: auto; padding: 0 20px 14px; scroll-snap-type: x proximity; }
.hero-arc.is-static .arc-track { position: static; display: flex; gap: 14px; width: max-content; margin: 0 auto; }
.hero-arc.is-static .arc-card { position: relative; left: auto; top: auto; margin: 0; width: var(--aw); scroll-snap-align: center; }
.hero-arc.is-static .arc-label { display: none; }
.hero-caption { position: relative; z-index: 2; margin: 0; text-align: center; color: #123577; font-size: 14px; font-weight: 500; }
.hero-caption b { color: #0b1d44; border-bottom: 2px solid var(--green); }

/* ---------- tech strip ---------- */
.build-section { display: flex; align-items: center; gap: 35px; max-width: 1300px; margin: 34px auto 0; padding: 20px 28px; border-radius: 22px; overflow: hidden; }
.build-section > strong { flex: none; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: #1d3f86; }
.marquee { min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 42s linear infinite; }
.build-section:hover .marquee-track { animation-play-state: paused; }
.tech-item { display: flex; align-items: center; gap: 9px; white-space: nowrap; color: #14295c; font-size: 14px; font-weight: 650; transition: transform 0.25s var(--out); }
.tech-item:hover { transform: translateY(-2px); }
.tech-item img { width: 20px; height: 20px; object-fit: contain; opacity: 0.8; }
.tech-item img[hidden] { display: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- shared section bits ---------- */
.section { max-width: 1320px; margin: 0 auto; padding: 112px clamp(24px, 5vw, 72px) 0; }
.eyebrow { margin: 0 0 15px; color: var(--blue); font: 500 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.section h2, .work-heading h2 { margin: 0; font-size: clamp(42px, 5vw, 68px); line-height: 1; letter-spacing: -0.055em; }
.muted { color: #3f64b4; }
.chip {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.chip svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.card-media { position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: #2a5fc8; transition: transform 0.4s var(--out), box-shadow 0.4s; }
.card-media img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 1.1s var(--out); }
.why-card > p, .service-card > p { margin: 13px 4px 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.why-card:hover .card-media, .service-card:hover .card-media { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(8, 32, 100, 0.3); }
.why-card:hover .card-media img, .service-card:hover .card-media img { transform: scale(1.05); }

/* ---------- why (two-column, compact) ---------- */
.why-section { display: grid; grid-template-columns: minmax(250px, 0.8fr) 1.7fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.why-intro { position: sticky; top: 90px; }
.why-intro h2 { font-size: clamp(38px, 4.2vw, 58px); }
.why-intro > p:last-child { margin: 22px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.why-card { position: relative; }
.why-card:nth-child(even) { transform: translateY(34px); }

/* ---------- services (tall art cards) ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.service-intro { max-width: 390px; margin: 0 0 3px; color: var(--muted); line-height: 1.55; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; margin-top: 34px; }
.service-card { position: relative; }

/* ---------- work: one pinned stage ---------- */
.work-section { max-width: 1280px; margin: 120px auto 0; padding: 0 clamp(16px, 3vw, 40px); }
.work-heading { margin: 0 0 30px; }
.work-stage { --H: clamp(500px, 68vh, 620px); }
.work-deck {
  position: relative;
  height: calc(var(--H) + 46px);
  perspective: 1500px;
  perspective-origin: 50% 100%;
  clip-path: inset(-50px -50px 0 -50px);
  touch-action: pan-y;
}
.work-card {
  --u: 0;
  position: absolute; left: 0; right: 0; top: 0;
  height: var(--H);
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
  gap: clamp(20px, 3vw, 44px);
  padding: clamp(22px, 3.4vw, 48px);
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-bg), var(--c-bg2));
  color: var(--c-ink);
  box-shadow: 0 30px 70px -24px rgba(6, 20, 60, 0.55);
  transform-origin: 50% 100%;
  transition: transform 0.72s var(--ease), visibility 0s;
  will-change: transform;
}
.work-card[data-state="top"] { transform: translate3d(0, 0, 0); }
.work-card[data-state="next"] { transform: translate3d(0, 118%, 0); }
.work-card[data-state="under"] { transform: translate3d(0, calc(var(--u) * 15px), 0) scale(calc(1 - var(--u) * 0.055)) rotateX(calc(var(--u) * 2.5deg)); }
.work-card:after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #02081a; opacity: 0; pointer-events: none; transition: opacity 0.72s var(--ease); }
.work-card[data-state="under"]:after { opacity: calc(0.14 + var(--u) * 0.1); }
.work-card.is-far { visibility: hidden; transition-delay: 0s, 0.72s; }
.work-info { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.work-number { font: 500 clamp(20px, 2vw, 28px) var(--mono); color: var(--c-accent); letter-spacing: -0.02em; }
.work-card h3 { margin: 14px 0 0; font-size: clamp(34px, 4.6vw, 60px); line-height: 0.98; letter-spacing: -0.055em; }
.work-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--c-accent); text-underline-offset: 6px; }
.work-kind { margin: 10px 0 0; font-size: 16px; opacity: 0.86; }
.work-tagline { max-width: 520px; margin: 22px 0 0; font-size: clamp(16px, 1.45vw, 19px); line-height: 1.5; opacity: 0.94; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.work-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 22px; }
.work-stack span {
  padding: 8px 13px;
  border: 1px solid color-mix(in srgb, var(--c-accent) 55%, transparent);
  border-radius: 99px;
  background: color-mix(in srgb, var(--c-accent) 14%, transparent);
  color: var(--c-accent);
  font-size: 12px; font-weight: 600; line-height: 1;
}
.work-link {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 18px;
  padding: 0 22px;
  height: 48px;
  border-radius: 99px;
  background: var(--c-accent);
  color: var(--c-on);
  font-size: 14px; font-weight: 700; line-height: 1;
  white-space: nowrap;
  transition: transform 0.28s var(--out), box-shadow 0.28s;
}
.work-link svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--out); }
.work-link:hover { transform: translateY(-3px); box-shadow: 0 14px 26px rgba(0, 0, 0, 0.3); }
.work-link:hover svg { transform: translateX(4px); }
.work-shots { position: relative; z-index: 1; min-width: 0; min-height: 0; }
.shot { position: absolute; display: flex; min-width: 0; min-height: 0; z-index: 3; }
.shot img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; box-shadow: 0 14px 34px rgba(3, 10, 30, 0.42); transition: transform 0.9s var(--out); }
.shot.s1 { left: 0; top: 0; width: 82%; height: 78%; align-items: flex-start; justify-content: flex-start; z-index: 3; }
.shot.s2 { right: 0; top: 10%; width: 40%; height: 62%; align-items: flex-start; justify-content: flex-end; z-index: 2; }
.shot.s3 { right: 2%; bottom: 0; width: 50%; height: 44%; align-items: flex-end; justify-content: flex-end; z-index: 4; }
.work-shots.n2 .shot.s2 { top: auto; bottom: 0; width: 52%; height: 48%; align-items: flex-end; z-index: 4; }
.work-shots.n1 .shot.s1 { width: 100%; height: 100%; align-items: center; justify-content: center; }
.work-card:hover .shot img { transform: scale(1.03); }
.work-card.no-shots { grid-template-columns: 1fr; }
.work-card.no-shots .work-tagline { max-width: 640px; }
.work-controls { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 30px); margin-top: 24px; }
.work-arrow {
  display: grid; place-items: center; flex: none;
  width: 64px; height: 64px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  color: var(--ink);
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(23, 71, 201, 0.2);
  transition: transform 0.28s var(--out), background-color 0.25s, box-shadow 0.28s, opacity 0.25s;
}
.work-arrow svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--out); }
.work-arrow:hover:not(:disabled) { transform: translateY(-3px) scale(1.06); background: #fff; box-shadow: 0 18px 36px rgba(23, 71, 201, 0.3); }
.work-arrow[data-dir="1"]:hover:not(:disabled) svg { transform: translateX(4px); }
.work-arrow[data-dir="-1"]:hover:not(:disabled) svg { transform: translateX(-4px); }
.work-arrow:active:not(:disabled) { transform: scale(0.96); }
.work-arrow:disabled { opacity: 0.4; cursor: default; }
.work-progress { display: grid; gap: 10px; width: min(320px, 46vw); justify-items: center; }
.work-count { font: 500 15px var(--mono); letter-spacing: 0.06em; color: var(--ink); }
.work-count b { font-weight: 500; font-size: 20px; }
.work-bar { display: block; width: 100%; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.55); overflow: hidden; }
.work-bar i { display: block; width: 100%; height: 100%; border-radius: 5px; background: var(--blue); transform-origin: left; transform: scaleX(0.0667); transition: transform 0.72s var(--ease); }

/* ---------- how / team / faq ---------- */
.steps-panel { margin-top: 30px; padding: 14px; border-radius: 28px; }
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.steps-grid li { min-height: 255px; padding: 22px; border-radius: 20px; transition: transform 0.35s var(--out), box-shadow 0.35s, background-color 0.3s; }
.steps-grid li:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.6); box-shadow: 0 22px 44px rgba(23, 71, 201, 0.2); }
.steps-grid li > span { display: flex; justify-content: space-between; align-items: center; color: var(--blue); font: 500 12px var(--mono); }
.steps-grid li > span small { color: #4f6aa3; }
.steps-grid h3 { margin: 50px 0 10px; font-size: 21px; letter-spacing: -0.04em; }
.steps-grid p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 14px; }
.team-section { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 70px; }
.team-section > div:first-child > p:last-child { max-width: 450px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.team-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.team-cards article { position: relative; height: 350px; overflow: hidden; border-radius: 24px; transition: transform 0.4s var(--out), box-shadow 0.4s; }
.team-cards article:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(23, 71, 201, 0.28); }
.team-cards article > img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1s var(--out); }
.team-cards article:hover > img { transform: scale(1.05); }
.team-cards article > div { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 15px; border-radius: 15px; background: rgba(240, 247, 255, 0.88); backdrop-filter: blur(12px); }
.team-cards h3, .team-cards p { margin: 0; }
.team-cards p { margin-top: 5px; color: #3b5287; font-size: 13px; }
.saim { display: grid; place-items: center; background: linear-gradient(140deg, #5b97ee, #cfe4f8); }
.saim > span { display: grid; place-items: center; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, 0.6); color: var(--blue); font-size: 64px; font-weight: 700; }
.faq-section { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 50px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { padding: 0; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(18px); transition: transform 0.3s var(--out), background-color 0.3s; }
.faq-list details:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.58); }
.faq-list summary { padding: 20px 22px; display: flex; justify-content: space-between; gap: 16px; cursor: pointer; font-weight: 700; }
.faq-list summary span { color: var(--blue); transition: transform 0.3s var(--out); }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { margin: 0; padding: 0 50px 20px 22px; color: var(--muted); line-height: 1.55; }

/* ---------- reviews ---------- */
.reviews-section { max-width: 1500px; overflow: hidden; }
.reviews-section > h2 { margin-bottom: 32px; }
.reviews-stage { position: relative; height: 490px; perspective: 1400px; outline: none; }
.review-slide {
  position: absolute; left: 50%; top: 50%;
  display: flex;
  width: 760px; height: 400px;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  color: #112147;
  box-shadow: 0 24px 70px rgba(10, 40, 120, 0.28);
  transform: translate(-50%, -50%);
  transition: transform 0.65s var(--out), width 0.65s var(--out), height 0.65s var(--out), opacity 0.4s, box-shadow 0.3s;
}
.review-slide.side { cursor: pointer; border-radius: 18px; box-shadow: 0 14px 35px rgba(10, 40, 120, 0.3); }
.review-slide.side:hover { box-shadow: 0 20px 44px rgba(10, 40, 120, 0.42); }
.review-slide > :is(img, .review-portrait) { order: 2; flex: 0 0 42%; width: 42%; height: calc(100% - 20px); margin: 10px 10px 10px 0; border-radius: 16px; object-fit: cover; object-position: center 22%; transition: transform 1s var(--out); }
.review-slide.active:hover > :is(img, .review-portrait) { transform: scale(1.03); }
.review-copy { order: 1; display: flex; flex-direction: column; align-items: flex-start; flex: 1; min-width: 0; padding: 36px; }
.review-copy > small { font: 500 10px var(--mono); letter-spacing: 0.14em; color: #51659a; }
.review-copy h3 { margin: 28px 0 8px; font-size: 27px; line-height: 1.02; letter-spacing: -0.05em; }
.review-copy blockquote { margin: 0; font: 400 16.5px/1.45 var(--sans); color: #2f4166; }
.review-meta { display: grid; gap: 4px; margin-top: auto; }
.review-meta span { padding: 5px 10px; border-radius: 99px; background: #e6eefc; color: #3f5588; font-size: 11px; }
.review-project { margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--blue); }
.review-slide.side > :is(img, .review-portrait) { width: 100%; height: 100%; flex: 1; margin: 0; border-radius: 0; object-position: center top; }
.review-slide.side:hover > :is(img, .review-portrait) { transform: scale(1.06); }
.review-slide.side .review-copy { display: none; }
.review-controls { display: flex; justify-content: center; gap: 8px; margin: 16px auto 0; }
.review-controls button { position: relative; overflow: hidden; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(23, 71, 201, 0.3); cursor: pointer; transition: width 0.25s, background 0.25s; }
.review-controls button:hover { background: rgba(23, 71, 201, 0.6); }
.review-controls button.active { width: 28px; background: var(--blue); }

/* ---------- contact (vivid blue panel) ---------- */
.contact-section {
  position: relative;
  isolation: isolate;
  max-width: 1400px;
  margin: clamp(90px, 10vw, 125px) auto 28px;
  padding: clamp(40px, 6vw, 84px) clamp(24px, 6vw, 80px) clamp(90px, 9vw, 130px);
  border-radius: 32px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, #1747c9 0%, #2f6ee6 45%, #9cc6f4 100%);
  box-shadow: 0 30px 70px rgba(23, 71, 201, 0.35);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
}
.contact-section:before {
  content: "";
  position: absolute; z-index: -1; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 38% 26% at 14% 112%, #fff, transparent 74%),
    radial-gradient(ellipse 38% 26% at 70% 112%, rgba(255, 255, 255, 0.93), transparent 74%),
    radial-gradient(ellipse 28% 14% at 92% 10%, rgba(255, 255, 255, 0.45), transparent 76%),
    radial-gradient(ellipse 24% 12% at 6% 22%, rgba(255, 255, 255, 0.28), transparent 76%);
}
.contact-content { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.contact-content .eyebrow { color: #d6e6ff; }
.contact-content h2 { margin: 0; color: #fff; font-size: clamp(42px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.055em; font-weight: 600; }
.contact-content h2 em { display: inline-block; color: var(--green); font: 400 0.9em "Permanent Marker", cursive; letter-spacing: 0; transform: rotate(-3deg); }
.contact-content > div > p:not(.eyebrow) { max-width: 400px; margin-top: 22px; color: #f0f6ff; line-height: 1.55; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.social-links a { padding: 11px 16px; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 99px; background: rgba(255, 255, 255, 0.2); color: #fff; font-size: 12px; font-weight: 700; transition: transform 0.25s var(--out), background-color 0.25s, color 0.25s; }
.social-links a:hover { transform: translateY(-3px); background: #fff; color: var(--blue); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: clamp(18px, 2.4vw, 28px); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 24px; background: rgba(12, 44, 150, 0.34); }
.contact-form label { display: grid; grid-template-columns: auto 1fr; justify-content: start; align-items: baseline; column-gap: 6px; row-gap: 7px; color: #fff; font-size: 12px; font-weight: 700; }
.contact-form label span { color: #d6e6ff; font-weight: 400; }
.contact-form .field-wide, .contact-form button, .form-status { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; min-height: 46px; padding: 12px 13px; border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 12px; background: rgba(255, 255, 255, 0.92); color: #0e1f45; outline: none; transition: box-shadow 0.25s, background-color 0.25s; }
.contact-form textarea { resize: vertical; }
.contact-form label > input, .contact-form label > textarea, .contact-form label > select { grid-column: 1 / -1; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { background: #fff; box-shadow: 0 0 0 3px rgba(70, 216, 131, 0.65); }
.contact-form button { justify-self: start; }
.form-status { margin: 0; color: #fff; font-weight: 650; }
.contact-form .pill-green { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { max-width: 1400px; margin: 0 auto 18px; padding: 42px clamp(24px, 5vw, 70px) 25px; border-radius: 28px; }
.footer-main { display: flex; justify-content: space-between; gap: 35px; }
.footer-about { max-width: 330px; }
.footer-about p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.footer-about > a:last-child { font-size: 14px; font-weight: 650; }
.site-footer nav { display: flex; gap: clamp(40px, 7vw, 90px); }
.site-footer nav div { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.site-footer nav div a { align-self: flex-start; transition: transform 0.25s var(--out), color 0.2s; }
.site-footer nav div a:hover { transform: translateX(4px); color: var(--blue); }
.site-footer nav b { margin-bottom: 5px; color: #3f5a93; font: 500 10px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.copyright { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.7); color: #3f5a93; font-size: 12px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 5px #1747c9; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.8s var(--out) calc(var(--rd, 0) * 1s), transform 0.8s var(--out) calc(var(--rd, 0) * 1s); }

/* ---------- responsive ---------- */
@media (max-width: 1050px) {
  .why-section { grid-template-columns: 1fr; gap: 28px; }
  .why-intro { position: static; max-width: 640px; }
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work-card { padding: 30px; }
}
@media (max-width: 900px) {
  .site-header { min-height: 68px; padding: 0 22px; }
  .site-header nav { display: none; position: absolute; top: 62px; left: 16px; right: 16px; gap: 0; padding: 10px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 18px; background: rgba(18, 58, 168, 0.96); box-shadow: var(--shadow); }
  .site-header nav.open { display: flex; flex-direction: column; }
  .site-header nav a { padding: 13px; }
  .site-header nav a:after { left: 13px; right: 13px; bottom: 7px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; margin-left: auto; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: #fff; cursor: pointer; }
  .menu-toggle span { width: 15px; height: 2px; margin: auto; background: currentColor; }
  .nav-cta { height: 40px; padding: 0 16px; }
  .hero { min-height: 0; }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-grid li { min-height: 220px; }
  .team-section { grid-template-columns: 1fr; gap: 32px; }
  .contact-content { grid-template-columns: 1fr; gap: 30px; }
  .work-card { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 18px; }
  .work-stage { --H: clamp(620px, 78vh, 700px); }
  .work-card:not(.no-shots) { grid-template-rows: auto minmax(0, 1fr); }
  .work-info { display: grid; grid-template-columns: 1fr auto; align-items: start; column-gap: 12px; }
  .work-number { grid-column: 2; grid-row: 1; }
  .work-card h3 { grid-column: 1; grid-row: 1; margin: 0; }
  .work-kind, .work-tagline, .work-stack { grid-column: 1 / -1; }
  .work-stack { padding-top: 14px; }
  .work-link { justify-self: start; grid-column: 1 / -1; margin-top: 14px; }
}
@media (max-width: 699px) {
  body { background-attachment: scroll; }
  .hero { margin: 6px 6px 0; border-radius: 22px; padding-bottom: 14px; }
  .site-header { min-height: 62px; padding: 0 14px; gap: 10px; }
  .brand { font-size: 18px; gap: 7px; }
  .brand img { width: 27px; height: 27px; }
  .site-header nav { top: 58px; left: 10px; right: 10px; }
  .nav-cta { font-size: 12px; padding: 0 13px; height: 38px; }
  .hero-copy { margin-top: 32px; padding: 0 13px; }
  .hero h1 { font-size: clamp(43px, 11.5vw, 60px); line-height: 1.02; }
  .hero h1 br { display: none; }
  .sane-word i { height: 5px; }
  .hero-copy > p { margin-top: 18px; font-size: 14.5px; }
  .hero-actions { gap: 8px; margin-top: 22px; }
  .pill { min-height: 46px; padding: 0 18px; font-size: 12px; }
  .pill-green { padding-right: 5px; }
  .arrow-disc { width: 34px; height: 34px; }
  .hero-arc { margin-top: 26px; height: calc(var(--aw) * 0.625 + 78px); }
  .hero-caption { font-size: 12px; padding: 0 12px; }
  .build-section { display: block; margin: 20px 10px 0; padding: 17px; border-radius: 17px; }
  .build-section > strong { display: block; margin-bottom: 13px; text-align: center; }
  .marquee-track { gap: 24px; animation-duration: 34s; }
  .tech-item { font-size: 12px; }
  .tech-item img { width: 17px; height: 17px; }
  .section { padding: 78px 17px 0; }
  .section h2, .work-heading h2 { font-size: clamp(38px, 10vw, 48px); }
  .why-grid { gap: 12px; }
  .why-card:nth-child(even) { transform: none; }
  .why-card > p, .service-card > p { font-size: 13px; margin-top: 10px; }
  .section-head { display: block; }
  .service-intro { margin-top: 13px; }
  .services-section { padding-top: 78px; }
  .services-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 25px -17px 0 0; padding: 2px 17px 15px 0; scrollbar-width: none; }
  .services-grid::-webkit-scrollbar { display: none; }
  .service-card { flex: 0 0 74vw; scroll-snap-align: start; }
  .work-section { margin-top: 78px; padding: 0 14px; }
  .work-heading { margin: 0 4px 22px; }
  .work-stage { --H: min(565px, 80vh); }
  .work-shots { display: flex; flex-wrap: wrap; align-content: flex-start; }
  .shot { position: static; }
  .shot img { border-radius: 10px; max-height: none; }
  .shot.s1 img { max-height: 200px; }
  .shot.s2 img, .shot.s3 img { max-height: 110px; }
  .shot.s1, .work-shots.n1 .shot.s1 { flex: 0 0 100%; width: 100%; height: auto; max-height: 200px; justify-content: center; align-items: flex-start; }
  .shot.s2, .shot.s3, .work-shots.n2 .shot.s2 { flex: 0 0 44%; width: 44%; height: auto; max-height: 110px; margin-top: -20px; align-items: flex-start; justify-content: center; }
  .shot.s2 { margin-left: 4%; }
  .shot.s3 { margin-left: auto; margin-right: 4%; }
  .work-shots.n2 .shot.s2 { margin: -20px auto 0; }
  .work-card:not(.no-shots) { grid-template-rows: auto auto; align-content: start; }
  .work-card { padding: 20px; border-radius: 22px; }
  .work-card h3 { font-size: clamp(30px, 9vw, 40px); }
  .work-kind { font-size: 13px; margin-top: 8px; }
  .work-tagline { margin-top: 12px; font-size: 14.5px; -webkit-line-clamp: 2; }
  .work-stack span { padding: 6px 10px; font-size: 11px; }
  .work-stack span:nth-child(n + 4) { display: none; }
  .work-link { height: 44px; font-size: 13px; }
  .work-controls { gap: 12px; margin-top: 18px; }
  .work-arrow { width: 56px; height: 56px; }
  .steps-panel { padding: 9px; border-radius: 20px; }
  .steps-grid { gap: 8px; }
  .steps-grid li { min-height: 225px; padding: 13px; border-radius: 15px; }
  .steps-grid h3 { margin-top: 32px; font-size: 18px; }
  .steps-grid p { font-size: 12px; }
  .team-section { padding-top: 75px; gap: 22px; }
  .team-section > div:first-child > p:last-child { font-size: 14px; }
  .team-cards { gap: 8px; }
  .team-cards article { height: 255px; border-radius: 16px; }
  .team-cards article > div { left: 6px; right: 6px; bottom: 6px; padding: 10px; }
  .team-cards h3 { font-size: 14px; }
  .team-cards p { font-size: 10px; }
  .saim > span { width: 85px; height: 85px; font-size: 38px; }
  .reviews-section { padding-top: 78px; }
  .reviews-stage { height: 560px; }
  .review-slide { width: 84vw; height: 410px; flex-direction: column; border-radius: 20px; }
  .review-slide > :is(img, .review-portrait) { order: 0; flex: 0 0 180px; width: calc(100% - 16px); height: 180px; margin: 8px; border-radius: 14px; }
  .review-copy { order: 1; flex: 1; padding: 14px 19px 16px; }
  .review-copy h3 { margin: 12px 0 5px; font-size: 20px; }
  .review-copy blockquote { font-size: 14px; }
  .review-meta { margin-top: 10px; }
  .review-slide.side { display: none; }
  .faq-section { grid-template-columns: 1fr; gap: 20px; padding-top: 78px; }
  .faq-list { gap: 8px; }
  .faq-list details { padding: 0; border-radius: 15px; }
  .faq-list summary { padding: 16px; font-size: 14px; }
  .faq-list details p { padding: 0 16px 16px; font-size: 13px; }
  .contact-section { margin: 78px 6px 15px; padding: 34px 17px 90px; border-radius: 22px; }
  .contact-content h2 { font-size: clamp(42px, 11vw, 55px); }
  .social-links { gap: 6px; margin-top: 17px; }
  .social-links a { padding: 9px 12px; font-size: 11px; }
  .contact-form { gap: 11px; padding: 16px; min-width: 0; }
  .contact-form > * { min-width: 0; }
  .contact-form label { font-size: 11px; }
  .contact-form button[type="submit"] { width: 100%; justify-content: space-between; }
  .site-footer { margin: 0 6px 8px; padding: 30px 18px 20px; border-radius: 20px; }
  .footer-main { display: block; }
  .footer-about { max-width: none; }
  .site-footer nav { gap: 48px; margin-top: 25px; }
  .site-footer nav div { font-size: 12px; }
  .copyright { margin-top: 23px; padding-top: 15px; font-size: 10px; }
}
@media (max-width: 460px) {
  .contact-form { grid-template-columns: 1fr; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .cloud { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .marquee { overflow: visible; mask-image: none; -webkit-mask-image: none; }
  .marquee-track { width: 100%; flex-wrap: wrap; justify-content: center; animation: none; }
  .why-card:nth-child(even) { transform: none; }
}

/* ---------- logo intro ---------- */
#intro { display: none; }
html.intro { overflow: hidden; }
html.intro #intro { display: block; position: fixed; inset: 0; z-index: 9999; overflow: hidden; background: #f4eedf; }
html.intro main { position: relative; z-index: 10000; transform: translate3d(0, 100vh, 0); will-change: transform; border-radius: 30px 30px 0 0; background: linear-gradient(180deg, #bcd9f9 0, #a6caf6 30%, #93bff3 62%, #84b4ef 100%); box-shadow: 0 -18px 50px rgba(11, 29, 68, 0.18); }
.intro-mark { position: absolute; left: 50%; top: 50%; width: min(62vw, 440px); overflow: visible; transform: translate(-50%, -50%); opacity: 0; }
.intro-eyes rect { transform-box: fill-box; transform-origin: center; }
.intro-arrow { position: absolute; opacity: 0; }
.intro-arrow i { position: absolute; left: 50%; top: 0; background: #0b0b0b; transform: translateX(-50%); }
.intro-arrow svg { position: absolute; left: 0; bottom: 0; width: 100%; display: block; }
.intro-bf { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform; }
.intro-bf svg { display: block; }

/* ---------- stats + review portraits ---------- */
.work-note { margin: 14px 0 0; color: var(--muted); font-size: 16px; }
.stats-row { display: flex; flex-wrap: wrap; gap: 12px; margin: -10px 0 30px; padding: 0; list-style: none; }
.stats-row li { display: flex; align-items: baseline; gap: 8px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 99px; background: var(--glass); backdrop-filter: blur(12px); }
.stats-row b { font-size: 22px; letter-spacing: -0.04em; color: var(--blue); }
.stats-row span { color: var(--muted); font-size: 14px; }
@media (max-width: 699px) {
  .stats-row { gap: 8px; margin: -14px 0 22px; }
  .stats-row li { padding: 9px 13px; }
  .stats-row b { font-size: 18px; }
  .stats-row span { font-size: 12px; }
}

/* Same Raaid photograph, framed from the head to the chest. */
.review-portrait { display: block; overflow: hidden; }
.review-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; transform: scale(1.5); transform-origin: center top; }
.homepage-checklists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; list-style: none; padding: 0; margin: 28px 0 0; }
.homepage-checklists li { border-top: 1px solid rgba(11, 29, 68, .24); }
.homepage-checklists a { display: block; padding: 26px 0; }
.homepage-checklists h3 { margin: 0 0 10px; font-size: 24px; letter-spacing: -.03em; }
.homepage-checklists p { color: var(--muted); line-height: 1.6; margin-bottom: 18px; max-width: 48ch; }
.homepage-checklists a > span { color: var(--blue); font-size: 14px; font-weight: 700; }
.homepage-checklists a:hover h3 { color: var(--blue); }
.homepage-checklists a:focus-visible, .checklist-section > a:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
@media (max-width: 650px) { .homepage-checklists { grid-template-columns: 1fr; } .review-portrait img { object-position: center 24%; transform: none; } }

.checklist-section .section-head > div { flex: 1 1 55%; }
.checklist-section .section-head > p { flex: 0 1 38ch; line-height: 1.6; }

/* New supplied Raaid portrait: keep the face and crop at the chest. */
.review-portrait img { object-position: center 35%; transform: scale(1.8); transform-origin: center 35%; }
@media (max-width: 699px) { .review-portrait img { object-position: center 27%; transform: scale(1.2); transform-origin: center 27%; } }
.form-honeypot{display:none!important}.contact-form .form-delivery-note,.contact-form .form-status{grid-column:1/-1;font-size:13px;line-height:1.6}.contact-form .form-delivery-note a{font-weight:600;text-decoration:underline;overflow-wrap:anywhere}.contact-form .form-status[data-state="error"],.contact-form .form-status[data-state="pending"]{color:#8d251b}.contact-form button:disabled{opacity:.65;cursor:wait}

/* ---------- homepage videos ---------- */
.videos-section { padding-top: 88px; }
.videos-section .section-head > p { max-width: 390px; margin: 0 0 3px; color: var(--muted); line-height: 1.55; }
.videos-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .3164fr); gap: 18px; margin-top: 30px; align-items: start; }
.video-tile { display: block; min-width: 0; }
.video-tile img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; background: rgba(255,255,255,.35); transition: transform .4s var(--out), box-shadow .4s; }
.video-tile:hover img { transform: translateY(-5px); box-shadow: 0 26px 50px rgba(8, 32, 100, .22); }
.video-tile-portrait { width: 100%; }
.video-tile-portrait img { aspect-ratio: 9 / 16; }
.video-tile h3 { margin: 12px 4px 0; font-size: 18px; letter-spacing: -.02em; }
.videos-cta { margin-top: 26px; }
@media (max-width: 640px) {
  .videos-section { padding-top: 78px; }
  .videos-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 23px; }
  .video-tile-portrait { width: 56%; justify-self: center; }
  .video-tile h3 { font-size: 15px; }
}
