/* =========================================================
   Luvin Tech — global styles
   ========================================================= */

/* Self-hosted Inter (variable, latin) — no render-blocking third-party request */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0d0e12;
  --bg-2: #13141a;
  --surface: #17181f;
  --surface-2: #1d1e27;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --muted: #9a9ca3;
  --muted-2: #7c7e82;
  --accent: #b123c8;
  --accent-2: #7b3fe4;
  --accent-soft: rgba(177, 35, 200, 0.14);
  --gradient: linear-gradient(135deg, #d04ae6 0%, #b123c8 45%, #7b3fe4 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 110px 0;
  position: relative;
}

.section--tight {
  padding: 70px 0;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(32px, 4.4vw, 48px);
  margin-bottom: 18px;
}

.section-head p {
  color: var(--muted);
  font-size: 18px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn--primary {
  background: #fff;
  color: var(--bg);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(177, 35, 200, 0.6);
}

.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn--ghost:hover {
  border-color: #fff;
  transform: translateY(-2px);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 14px;
}

/* ---------- Smooth scroll (Lenis) ---------- */

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(13, 14, 18, 0.95);
  border-color: var(--border);
}

.motion .site-header.is-scrolled {
  background: rgba(13, 14, 18, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav > li {
  position: relative;
}

.nav > li > a,
.nav > li > button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: 100px;
  transition: color 0.25s, background 0.25s;
}

.nav > li > a:hover,
.nav > li > button:hover,
.nav > li > a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav .chev {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 290px;
  padding: 10px;
  background: rgba(23, 24, 31, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
}

.dropdown::before {
  content: "";
  position: absolute;
  inset: -12px 0 auto 0;
  height: 12px;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.has-dropdown:hover .chev,
.has-dropdown:focus-within .chev {
  transform: rotate(180deg);
}

.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}

.dropdown a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: none;
  cursor: pointer;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s;
}

.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 26px; }

.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-footer {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--header-h) + 90px) 0 60px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}

/* Soft glows drawn with radial gradients (a large blur() filter is very slow on phones) */
.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
}

.motion .orb {
  animation: drift 18s ease-in-out infinite alternate;
}

.orb--1 {
  width: 760px;
  height: 760px;
  background: radial-gradient(closest-side, #b123c8 0%, rgba(177, 35, 200, 0.55) 45%, rgba(177, 35, 200, 0) 100%);
  top: -300px;
  left: 50%;
  margin-left: -540px;
}

.orb--2 {
  width: 640px;
  height: 640px;
  background: radial-gradient(closest-side, #5b3fe4 0%, rgba(91, 63, 228, 0.55) 45%, rgba(91, 63, 228, 0) 100%);
  top: -170px;
  left: 50%;
  margin-left: -50px;
  animation-delay: -6s;
  opacity: 0.4;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-40px, 20px) scale(0.95); }
}

.hero-inner {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 26px;
}

.hero p.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 38px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.stats {
  margin-top: 90px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.stat {
  padding: 34px 28px;
  text-align: left;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: 0;
}

.stat .num {
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}

.stat .num span {
  color: var(--accent);
}

.stat .label {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Split (e-commerce) ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  align-items: center;
}

.split h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 22px;
}

.split p {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 26px;
}

.split strong {
  color: var(--text);
  font-weight: 600;
}

.check-list {
  display: grid;
  gap: 14px;
  margin-bottom: 36px;
}

.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: #d6d7db;
}

.check-list li::before {
  content: "";
  flex: 0 0 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e07bf0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
  border: 1px solid rgba(177, 35, 200, 0.4);
}

.stack {
  position: relative;
  height: 520px;
}

.stack img {
  position: absolute;
  border-radius: 18px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--border);
}

.stack .layer {
  position: absolute;
  inset: 0;
}

.stack .s1 {
  width: 64%;
  top: 0;
  left: 0;
}

.stack .s2 {
  width: 58%;
  bottom: 0;
  right: 0;
}

.motion .stack .s1 {
  animation: float 7s ease-in-out infinite;
}

.motion .stack .s2 {
  animation: float 7s ease-in-out infinite -3.5s;
}

.stack::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side, rgba(177, 35, 200, 0.35), rgba(177, 35, 200, 0));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Cards ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  position: relative;
  padding: 34px 30px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.7s var(--ease), border-color 0.5s, box-shadow 0.7s;
  display: flex;
  flex-direction: column;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(177, 35, 200, 0.16), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(177, 35, 200, 0.45);
  box-shadow: 0 30px 60px -30px rgba(177, 35, 200, 0.45);
}

.card:hover::after {
  opacity: 1;
}

.card .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(177, 35, 200, 0.35);
  margin-bottom: 24px;
  color: #e07bf0;
}

.card .icon svg {
  width: 26px;
  height: 26px;
}

.card .icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.card h3 {
  font-size: 21px;
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  font-size: 15.5px;
  flex: 1;
}

.card .more {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.card .more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.card:hover .more svg {
  transform: translateX(5px);
}

.center-cta {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

/* ---------- Logo marquee ---------- */

.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  padding: 8px 0;
}

.marquee + .marquee {
  margin-top: 18px;
}

.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee 55s linear infinite;
}

.marquee--reverse .marquee-track {
  animation-direction: reverse;
}

.marquee.is-offscreen .marquee-track,
.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to { transform: translateX(calc(-50% - 9px)); }
}

.logo-tile {
  flex: 0 0 auto;
  width: 170px;
  height: 104px;
  border-radius: 16px;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 18px 22px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.logo-tile:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 36px -12px rgba(177, 35, 200, 0.6);
}

.logo-tile img {
  max-height: 64px;
  width: auto;
  object-fit: contain;
}

.partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.partner-tile {
  flex: 0 0 auto;
  width: 150px;
  height: 72px;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.partner-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.partner-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -12px rgba(177, 35, 200, 0.6);
}

/* ---------- Featured work ---------- */

.work {
  display: grid;
  gap: 40px;
}

.work-item {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
  padding: 44px;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.work-item:nth-child(even) .work-media {
  order: -1;
}

.work-tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e07bf0;
  margin-bottom: 14px;
}

.work-item h3 {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 16px;
}

.work-item p {
  color: var(--muted);
  margin-bottom: 24px;
}

.work-item .check-list {
  margin-bottom: 30px;
  font-size: 15px;
}

.work-media {
  position: relative;
}

.work-media::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(closest-side, rgba(177, 35, 200, 0.25), rgba(177, 35, 200, 0));
}

.work-media img {
  position: relative;
  transition: transform 1.2s var(--ease);
}

.work-item:hover .work-media img {
  transform: scale(1.04) translateY(-6px);
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 0.3s, background 0.3s;
}

.faq-item.is-open {
  border-color: rgba(177, 35, 200, 0.45);
  background: var(--surface-2);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  background: none;
  border: 0;
  color: var(--text);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-q .plus {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  position: relative;
  transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s;
}

.faq-q .plus::before,
.faq-q .plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform: translate(-50%, -50%);
}

.faq-q .plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .plus {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: var(--accent);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}

.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a > div {
  overflow: hidden;
}

.faq-a p {
  padding: 0 26px 24px;
  color: var(--muted);
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  padding: 80px 60px;
  border-radius: 32px;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(120% 140% at 50% 0%, rgba(177, 35, 200, 0.45) 0%, rgba(91, 63, 228, 0.18) 40%, var(--surface) 75%);
  border: 1px solid rgba(177, 35, 200, 0.35);
  isolation: isolate;
}

.cta-band .hero-grid {
  z-index: -1;
  opacity: 0.6;
}

.cta-band h2 {
  font-size: clamp(32px, 4.6vw, 54px);
  margin-bottom: 18px;
}

.cta-band p {
  color: #cfd0d5;
  font-size: 18px;
  max-width: 680px;
  margin: 0 auto 34px;
}

.pills {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}

.pills span {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.25);
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Inner pages ---------- */

.page-hero {
  padding: calc(var(--header-h) + 70px) 0 30px;
}

.page-hero h1 {
  font-size: clamp(36px, 5.6vw, 64px);
}

.page-hero .hero-inner > p {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto 32px;
}

.section--flush {
  padding-top: 20px;
}

.sub-head {
  text-align: center;
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 32px;
}

.sub-head + .tech-grid,
.tech-grid + .sub-head {
  margin-top: 0;
}

.tech-grid + .sub-head {
  margin-top: 64px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
}

.tech-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 12px 16px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}

.tech-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(177, 35, 200, 0.45);
}

.tech-tile img {
  width: 88px;
  height: 88px;
  border-radius: 16px;
}

.tech-tile span {
  font-size: 14px;
  font-weight: 500;
  color: #d6d7db;
}

.step-num {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.card .check-list {
  margin: 4px 0 0;
  gap: 10px;
  font-size: 15px;
}

.cta-band--split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
  padding: 56px;
}

.cta-band--split p {
  margin: 0 0 30px;
}

.cta-band--split img {
  border-radius: 18px;
}

.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.tabs-inner {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.02);
}

.tabs a {
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.25s, background 0.25s;
}

.tabs a:hover {
  color: var(--text);
}

.tabs a.is-current {
  background: #fff;
  color: var(--bg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.work-item--text {
  grid-template-columns: 1fr;
}

.app-media img {
  border-radius: 16px;
}

.prose {
  max-width: 820px;
  margin: 0 auto;
  color: #c9cad0;
  font-size: 16.5px;
}

.prose h2 {
  font-size: 24px;
  color: var(--text);
  margin: 40px 0 14px;
}

.prose h3 {
  font-size: 18px;
  color: var(--text);
  margin: 26px 0 10px;
}

.prose p,
.prose ul {
  margin-bottom: 14px;
}

.prose ul {
  padding-left: 20px;
  list-style: disc;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--text);
}

.prose a {
  color: #e07bf0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose .updated {
  color: var(--muted-2);
  font-size: 14px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 18px;
}

.contact-info > p {
  color: var(--muted);
  margin-bottom: 24px;
}

.info-card {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  margin-top: 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.info-card svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: #e07bf0;
  margin-top: 2px;
}

.info-card b {
  display: block;
  margin-bottom: 2px;
}

.info-card span,
.info-card a {
  color: var(--muted);
  font-size: 15px;
}

.info-card a:hover {
  color: #fff;
}

.form-card {
  padding: 34px 30px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
}

.form-card h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.form-card > p {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 15px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #d6d7db;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s;
}

.field select option {
  background: var(--surface);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-card .btn {
  width: 100%;
  font: inherit;
  font-weight: 600;
}

.form-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted-2);
  text-align: center;
}

.price-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  background: var(--accent-soft);
  border: 1px solid rgba(177, 35, 200, 0.4);
  color: #f0b8f8;
  font-weight: 700;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
  text-align: left;
}

.hero-split .hero-inner {
  text-align: left;
  margin: 0;
}

.hero-split .hero-inner > p {
  margin-left: 0;
}

.hero-split .hero-actions {
  justify-content: flex-start;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 30px;
  background: linear-gradient(180deg, var(--bg) 0%, #0a0b0e 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr 1fr 1fr;
  gap: 40px;
}

.footer-brand img {
  height: 50px;
  width: auto;
  margin-bottom: 22px;
}

.footer-brand p,
.footer-brand a {
  color: var(--muted);
  font-size: 14.5px;
}

.footer-brand .contact-line {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand .contact-line svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: #e07bf0;
}

.footer-brand a:hover {
  color: #fff;
}

.site-footer h2 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 18px;
}

.site-footer ul li {
  margin-bottom: 11px;
}

.site-footer ul a {
  color: var(--muted);
  font-size: 14.5px;
  transition: color 0.2s;
}

.site-footer ul a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 14px;
}

.socials {
  display: flex;
  gap: 10px;
  align-items: center;
}

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.socials a:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent-soft);
}

.socials svg {
  width: 17px;
  height: 17px;
}

/* ---------- Reveal animations ---------- */

/* Light version (phones/tablets): short fade + rise, compositor-only */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-soft), transform 0.6s var(--ease);
}

/* Full version (desktop) */
.motion .reveal {
  transform: translateY(40px);
  transition: opacity 1.2s var(--ease), transform 1.4s var(--ease);
  transition-delay: var(--d, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.motion .reveal--scale:not(.is-visible) {
  transform: scale(0.94);
}

.motion .reveal--left:not(.is-visible) {
  transform: translateX(-36px);
}

.motion .reveal--right:not(.is-visible) {
  transform: translateX(36px);
}

.js .reveal.is-done {
  transition: transform 0.7s var(--ease), border-color 0.5s, box-shadow 0.7s, opacity 0.3s;
  transition-delay: 0s;
}

/* Parallax layers (moved by JS, desktop only) */
.motion [data-parallax] {
  will-change: transform;
}

/* Headline words rise in one by one */
.split-words .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.split-words .w > span {
  display: inline-block;
  transform: translateY(110%);
  animation: word-up 1.2s var(--ease) forwards;
  animation-delay: calc(0.15s + var(--i) * 0.07s);
}

@keyframes word-up {
  to { transform: none; }
}

/* Hero entrance (desktop only — on phones the hero paints instantly for a fast LCP) */
.motion .intro > * {
  opacity: 0;
  transform: translateY(24px);
  animation: intro 1.1s var(--ease) forwards;
}

/* Headings stay put (they're the LCP element); the word-split effect animates the home headline */
.motion .intro > h1 {
  opacity: 1;
  transform: none;
  animation: none;
}

.motion .intro > *:nth-child(1) { animation-delay: 0.05s; }
.motion .intro > *:nth-child(3) { animation-delay: 0.5s; }
.motion .intro > *:nth-child(4) { animation-delay: 0.65s; }

@keyframes intro {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal,
  .intro > *,
  .split-words .w > span {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  /* ----- Mobile menu: full-screen panel revealed from the toggle ----- */
  .menu-open .site-header,
  .menu-open .site-header.is-scrolled {
    background: transparent;
    border-color: transparent;
    /* a backdrop-filter here would trap the fixed panel inside the header */
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .logo,
  .header-cta {
    position: relative;
    z-index: 2;
  }

  .nav-wrap {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: calc(var(--header-h) + 12px) 24px calc(28px + env(safe-area-inset-bottom));
    background:
      radial-gradient(120% 55% at 100% 0%, rgba(177, 35, 200, 0.22), transparent 60%),
      radial-gradient(90% 45% at 0% 100%, rgba(123, 63, 228, 0.18), transparent 65%),
      var(--bg);
    overflow-y: auto;
    overscroll-behavior: contain;
    clip-path: circle(0 at calc(100% - 46px) calc(var(--header-h) / 2));
    visibility: hidden;
    transition: clip-path 0.6s var(--ease), visibility 0s linear 0.6s;
  }

  .menu-open .nav-wrap {
    clip-path: circle(150% at calc(100% - 46px) calc(var(--header-h) / 2));
    visibility: visible;
    transition: clip-path 0.8s var(--ease), visibility 0s;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    counter-reset: nav;
  }

  .nav > li {
    counter-increment: nav;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.3s, transform 0.3s;
  }

  .menu-open .nav > li {
    opacity: 1;
    transform: none;
    transition: opacity 0.5s, transform 0.7s var(--ease);
  }

  .menu-open .nav > li:nth-child(1) { transition-delay: 0.1s; }
  .menu-open .nav > li:nth-child(2) { transition-delay: 0.15s; }
  .menu-open .nav > li:nth-child(3) { transition-delay: 0.2s; }
  .menu-open .nav > li:nth-child(4) { transition-delay: 0.25s; }
  .menu-open .nav > li:nth-child(5) { transition-delay: 0.3s; }
  .menu-open .nav > li:nth-child(6) { transition-delay: 0.35s; }

  .nav > li > a,
  .nav > li > button {
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
    padding: 18px 0;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    border-radius: 0;
    text-align: left;
  }

  .nav > li > a::before,
  .nav > li > button::before {
    content: counter(nav, decimal-leading-zero);
    min-width: 20px;
    align-self: flex-start;
    padding-top: 5px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    color: var(--muted-2);
  }

  .nav > li > a:hover,
  .nav > li > button:hover,
  .nav > li > a.is-active {
    background: none;
  }

  .nav > li > a.is-active {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .nav .chev {
    margin-left: auto;
    width: 34px;
    height: 34px;
    padding: 9px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s;
  }

  .has-dropdown:hover .chev {
    transform: none;
  }

  .has-dropdown.is-open .chev {
    transform: rotate(180deg);
    background: var(--accent-soft);
    border-color: rgba(177, 35, 200, 0.5);
  }

  .dropdown {
    position: static;
    display: grid;
    gap: 8px;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 0 0 34px;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: max-height 0.5s var(--ease), padding 0.5s var(--ease);
  }

  .dropdown::before {
    display: none;
  }

  .has-dropdown.is-open .dropdown {
    max-height: 720px;
    padding-bottom: 18px;
  }

  /* Beat the desktop :hover/:focus-within translate(-50%) that pushes the list off-screen */
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    transform: none;
  }

  .dropdown a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    font-size: 15px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
  }

  .dropdown a::after {
    content: "\2192";
    flex: none;
    color: var(--muted-2);
    transition: transform 0.3s var(--ease), color 0.2s;
  }

  .dropdown a[target="_blank"]::after {
    content: "\2197";
  }

  .dropdown a:hover,
  .dropdown a:active {
    color: var(--text);
    background: var(--accent-soft);
    border-color: rgba(177, 35, 200, 0.35);
  }

  .dropdown a:hover::after {
    color: var(--text);
    transform: translateX(3px);
  }

  .nav-footer {
    display: grid;
    gap: 18px;
    margin-top: auto;
    padding-top: 36px;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.3s, transform 0.3s;
  }

  .menu-open .nav-footer {
    opacity: 1;
    transform: none;
    transition: opacity 0.5s 0.4s, transform 0.7s var(--ease) 0.4s;
  }

  .nav-footer .btn {
    width: 100%;
    justify-content: center;
    padding-block: 16px;
  }

  .nav-footer-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
    color: var(--muted);
  }

  .nav-footer-meta a:hover {
    color: var(--text);
  }

  .menu-toggle {
    display: block;
  }

  .header-cta .btn {
    display: none;
  }

  .split,
  .work-item {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .work-item:nth-child(even) .work-media {
    order: 0;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .cta-band--split,
  .contact-grid,
  .hero-split {
    grid-template-columns: 1fr;
  }

  .cta-band--split {
    text-align: center;
  }
}

@media (max-width: 1080px) {
  /* Skip rendering work for sections until they're scrolled near */
  main > .section ~ .section ~ .section {
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 80px 0;
  }

  .container {
    padding: 0 16px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 60px;
  }

  .stat {
    padding: 24px 20px;
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .stack {
    height: 380px;
  }

  .work-item {
    padding: 28px 22px;
  }

  .cta-band {
    padding: 56px 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .logo-tile {
    width: 140px;
    height: 88px;
  }

  .partner-tile {
    width: calc(50% - 8px);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cta-band--split {
    padding: 44px 22px;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .tech-tile img {
    width: 72px;
    height: 72px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-card {
    padding: 26px 20px;
  }

  .tabs a {
    padding: 9px 16px;
    font-size: 14px;
  }
}

/* ---------- Schedule a call (contact page, assets/js/schedule.js) ---------- */

.contact-grid > .sched {
  min-width: 0; /* the scrolling day strip must not widen the grid column */
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.sched-body {
  min-height: 220px;
}

.sched-label {
  margin: 4px 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #d6d7db;
}

.sched-label small,
.field label small {
  font-weight: 400;
  color: var(--muted-2);
}

.sched-days {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  margin-bottom: 14px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.sched-day,
.sched-slot {
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}

.sched-day {
  flex: 0 0 auto;
  width: 68px;
  padding: 10px 0 9px;
  border-radius: 14px;
  text-align: center;
  scroll-snap-align: start;
}

.sched-day small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

.sched-day b {
  display: block;
  font-size: 20px;
  line-height: 1.25;
}

.sched-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.sched-slot {
  padding: 11px 10px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
}

.sched-day:hover:not(:disabled),
.sched-slot:hover:not(:disabled) {
  border-color: rgba(224, 123, 240, 0.7);
  transform: translateY(-1px);
}

.sched-day[aria-selected="true"],
.sched-slot[aria-selected="true"] {
  border-color: transparent;
  background: var(--gradient);
  color: #fff;
}

.sched-day[aria-selected="true"] small {
  color: rgba(255, 255, 255, 0.85);
}

.sched-day:disabled,
.sched-slot:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.sched-slot:disabled {
  text-decoration: line-through;
}

.sched-day:focus-visible,
.sched-slot:focus-visible {
  outline: 2px solid #e07bf0;
  outline-offset: 2px;
}

.sched-picked {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(177, 35, 200, 0.35);
  font-size: 14px;
}

.sched-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.sched-err {
  margin: 0 0 14px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
  font-size: 14px;
}

.sched-form .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.sched-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 40px 0;
  color: var(--muted);
}

.sched-spin {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  border-top-color: #e07bf0;
  animation: sched-spin 0.8s linear infinite;
}

.btn .sched-spin {
  width: 16px;
  height: 16px;
  border-color: rgba(13, 14, 18, 0.25);
  border-top-color: var(--bg);
}

@keyframes sched-spin {
  to {
    transform: rotate(360deg);
  }
}

.sched-msg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 0 6px;
}

.sched-msg[hidden],
[data-view][hidden] {
  display: none;
}

.sched-msg b {
  font-size: 20px;
}

.sched-msg > span {
  color: var(--muted);
}

.sched-msg small {
  color: var(--muted-2);
  font-size: 13px;
}

.sched-msg small a {
  color: #e07bf0;
}

.sched-tick {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
}

.sched-tick svg {
  width: 26px;
  height: 26px;
}

.sched-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.sched .form-note {
  margin-bottom: 0;
}

.form-card .sched-msg .btn {
  width: auto;
}

@media (max-width: 720px) {
  .sched-slots {
    grid-template-columns: repeat(2, 1fr);
  }

  .sched-acts .btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sched-spin {
    animation-duration: 2s;
  }
}
