/* ============================================================
   DragonIQ.Studio — styles.css
   1. Tokens & section palettes   5. Sections
   2. Reset                       6. Marquee
   3. Chrome (header, cursor)     7. Modal
   4. Primitives                  8. Motion & responsive

   Colour model: every section declares its own palette as custom
   properties (--sec-bg / --sec-ink / --sec-ink-soft / --sec-accent /
   --sec-btn-*). Components never hardcode a colour, so text and
   buttons invert automatically on light sections and stay AA.
   ============================================================ */

/* ------------------------------- 1. Tokens & section palettes */
:root {
  --violet: #7C3AED;
  --violet-deep: #2E0B63;
  --cyan: #22D3EE;
  --blue: #1D4ED8;
  --magenta: #DB2777;
  --orange: #FF7A18;
  --cream: #F6F0E7;
  --plum: #170822;

  --radius: 28px;
  --radius-sm: 18px;
  --radius-btn: 999px;

  --shell: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(96px, 12vw, 180px);

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --ease-inout: cubic-bezier(.65, .05, .36, 1);

  --header-h: 84px;
}

/* Section palettes ------------------------------------------------ */
.sec--violet {
  --sec-bg: #2E0B63;
  --sec-ink: #FFFFFF;
  --sec-ink-soft: #D6C6F7;
  --sec-accent: #22D3EE;
  --sec-glow: rgba(34, 211, 238, .55);
  --sec-btn-bg: #FFFFFF;
  --sec-btn-ink: #2E0B63;
  --sec-shadow: rgba(11, 2, 30, .55);
}
.sec--blue {
  --sec-bg: #14239E;
  --sec-ink: #FFFFFF;
  --sec-ink-soft: #C3CEFF;
  --sec-accent: #FFD166;
  --sec-glow: rgba(255, 209, 102, .5);
  --sec-btn-bg: #FFD166;
  --sec-btn-ink: #1B1400;
  --sec-shadow: rgba(4, 10, 60, .55);
}
.sec--cream {
  --sec-bg: #F6F0E7;
  --sec-ink: #180F26;
  --sec-ink-soft: #574B67;
  --sec-accent: #7C3AED;
  --sec-glow: rgba(124, 58, 237, .4);
  --sec-btn-bg: #180F26;
  --sec-btn-ink: #F6F0E7;
  --sec-shadow: rgba(87, 60, 130, .22);
}
.sec--magenta {
  --sec-bg: #9D0F63;
  --sec-ink: #FFFFFF;
  --sec-ink-soft: #FFD1EC;
  --sec-accent: #FFD166;
  --sec-glow: rgba(255, 209, 102, .5);
  --sec-btn-bg: #FFFFFF;
  --sec-btn-ink: #7A0B4D;
  --sec-shadow: rgba(60, 2, 37, .5);
}
.sec--orange {
  --sec-bg: #FF7A18;
  --sec-ink: #2B1004;
  --sec-ink-soft: #61300F;
  --sec-accent: #2E0B63;
  --sec-glow: rgba(46, 11, 99, .38);
  --sec-btn-bg: #2E0B63;
  --sec-btn-ink: #FFFFFF;
  --sec-shadow: rgba(122, 52, 4, .32);
}
.sec--plum {
  --sec-bg: #170822;
  --sec-ink: #FFFFFF;
  --sec-ink-soft: #CDB8E8;
  --sec-accent: #22D3EE;
  --sec-glow: rgba(34, 211, 238, .5);
  --sec-btn-bg: #22D3EE;
  --sec-btn-ink: #05161B;
  --sec-shadow: rgba(0, 0, 0, .6);
}

/* --------------------------------------------------- 2. Reset */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  /* Decorative blobs and glows extend past the viewport; without this the
     mobile layout viewport widens to fit them and the header spills. */
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--plum);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

h1, h2, h3, p, dl, dd, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--sec-accent, #22D3EE);
  outline-offset: 3px;
  border-radius: 6px;
}
.sec--cream :focus-visible, .sec--orange :focus-visible { outline-color: var(--sec-btn-bg); }

::selection { background: var(--cyan); color: #05161B; }

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 12px 20px;
  background: #fff;
  color: #180F26;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: .9rem;
  transform: translateY(-200%);
  transition: transform .45s var(--ease-bounce);
}
.skip-link:focus-visible { transform: none; }

/* ------------------------------------------ 3. Chrome */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #22D3EE, #7C3AED 40%, #DB2777 70%, #FF7A18);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* Custom cursor — difference blend keeps it visible on every palette */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: difference;
  transition: opacity .3s var(--ease);
}
.cursor.is-active { opacity: 1; }
.cursor__dot, .cursor__ring {
  position: absolute;
  top: 0; left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor__dot {
  width: 8px; height: 8px;
  background: #fff;
  transition: transform .25s var(--ease);
}
.cursor__ring {
  width: 38px; height: 38px;
  border: 2px solid rgba(255, 255, 255, .8);
  transition: width .45s var(--ease-bounce), height .45s var(--ease-bounce), border-width .3s var(--ease);
}
.cursor.is-hover .cursor__ring { width: 74px; height: 74px; border-width: 3px; }
.cursor.is-hover .cursor__dot { transform: translate(-50%, -50%) scale(.35); }
.cursor.is-press .cursor__ring { width: 28px; height: 28px; }

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color .5s var(--ease), backdrop-filter .5s var(--ease), color .45s var(--ease);
  color: #fff;
}
.header[data-tone="light"] { color: #180F26; }
.header.is-scrolled {
  background: rgba(23, 8, 34, .6);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}
.header.is-scrolled[data-tone="light"] { background: rgba(246, 240, 231, .72); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
  transition: height .5s var(--ease);
}
.header.is-scrolled .header__inner { height: 66px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.035em;
  margin-right: auto;
}
.logo__disc {
  display: inline-flex;
  border-radius: 50%;
  transition: transform .7s var(--ease-bounce), filter .5s var(--ease);
  filter: drop-shadow(0 0 14px var(--sec-glow, rgba(34, 211, 238, .5)));
}
.logo__img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.logo:hover .logo__disc {
  transform: rotate(-10deg) scale(1.08);
  filter: drop-shadow(0 0 24px var(--sec-glow, rgba(34, 211, 238, .8)));
}
.logo__dot { color: var(--cyan); }
.header[data-tone="light"] .logo__dot { color: var(--violet); }
.logo--sm { font-size: 1.1rem; margin-right: 0; }
.logo--sm .logo__img { width: 52px; height: 52px; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav__link {
  position: relative;
  padding: 10px 15px;
  font-size: .95rem;
  font-weight: 500;
  border-radius: var(--radius-btn);
  opacity: .78;
  transition: opacity .35s var(--ease), background-color .35s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .45s var(--ease-bounce);
}
.nav__link:hover, .nav__link.is-active { opacity: 1; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

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

/* Language dropdown */
.lang { position: relative; }
.lang__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding-inline: 16px;
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, .12);
  font-size: .9rem;
  font-weight: 600;
  transition: background-color .35s var(--ease), transform .35s var(--ease-bounce);
}
.header[data-tone="light"] .lang__button { background: rgba(24, 15, 38, .1); }
.lang__button:hover { background: rgba(255, 255, 255, .22); transform: translateY(-2px); }
.header[data-tone="light"] .lang__button:hover { background: rgba(24, 15, 38, .18); }
.lang__current { font-family: var(--font-display); letter-spacing: .04em; }
.lang__chev { transition: transform .45s var(--ease-bounce); }
.lang__button[aria-expanded="true"] .lang__chev { transform: rotate(180deg); }

.lang__list {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 200px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: #180F26;
  box-shadow: 0 30px 70px -20px rgba(20, 5, 40, .55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px) scale(.95);
  transform-origin: 100% 0;
  transition: opacity .3s var(--ease), transform .45s var(--ease-bounce), visibility .3s;
  z-index: 10;
}
.lang.is-open .lang__list { opacity: 1; visibility: visible; transform: none; }
.lang__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .25s var(--ease), transform .3s var(--ease-bounce);
}
.lang__option:hover, .lang__option.is-focused { background: #F1EAFB; transform: translateX(3px); }
.lang__option[aria-selected="true"]::after {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--violet);
}
.lang__code { font-family: var(--font-display); font-size: .75rem; letter-spacing: .1em; opacity: .55; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, .12);
  position: relative;
}
.header[data-tone="light"] .burger { background: rgba(24, 15, 38, .1); }
.burger span {
  position: absolute;
  left: 13px;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .45s var(--ease-bounce);
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 24px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* --------------------------------------------- 4. Primitives */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.sec {
  position: relative;
  z-index: 2;
  background: var(--sec-bg);
  color: var(--sec-ink);
  padding-block: var(--section-y);
  isolation: isolate;
}

/* Fluid curve joining this section to the previous one */
.sec__curve {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  width: 100%;
  height: clamp(48px, 7vw, 110px);
  transform: translateY(-99%);
  color: var(--sec-bg);
  z-index: 1;
  pointer-events: none;
}

/* Blurred colour clouds + morphing blobs */
.sec__fx {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
  animation: float 26s var(--ease-inout) infinite alternate;
}
.blob--1  { width: 46vw; height: 46vw; top: -12%; left: -10%; background: rgba(124, 58, 237, .75); }
.blob--2  { width: 38vw; height: 38vw; bottom: 10%; right: -6%; background: rgba(34, 211, 238, .42); animation-duration: 32s; animation-delay: -8s; }
.blob--3  { width: 42vw; height: 42vw; top: 10%; right: -12%; background: rgba(34, 211, 238, .45); }
.blob--4  { width: 34vw; height: 34vw; bottom: 10%; left: -8%; background: rgba(236, 72, 153, .4); animation-duration: 30s; animation-delay: -12s; }
.blob--5  { width: 40vw; height: 40vw; top: 12%; left: -12%; background: rgba(124, 58, 237, .22); }
.blob--6  { width: 32vw; height: 32vw; bottom: 12%; right: -10%; background: rgba(255, 122, 24, .2); animation-duration: 34s; animation-delay: -6s; }
.blob--7  { width: 44vw; height: 44vw; top: 10%; right: -14%; background: rgba(255, 122, 24, .4); }
.blob--8  { width: 36vw; height: 36vw; bottom: 10%; left: -10%; background: rgba(124, 58, 237, .5); animation-duration: 28s; animation-delay: -14s; }
.blob--9  { width: 46vw; height: 46vw; top: 8%; left: -6%; background: rgba(255, 209, 102, .55); }
.blob--10 { width: 44vw; height: 44vw; top: 12%; right: -12%; background: rgba(219, 39, 119, .42); }

@keyframes float {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(6%, -5%, 0) scale(1.14); }
  100% { transform: translate3d(-5%, 6%, 0) scale(1.04); }
}

.morph {
  position: absolute;
  width: 58vw; height: 58vw;
  max-width: 760px; max-height: 760px;
  filter: blur(28px);
  opacity: .85;
  will-change: transform;
  animation: spin 46s linear infinite;
}
.morph--hero { top: -6%; right: -10%; }
.morph--contact { bottom: -18%; left: -12%; }
@keyframes spin { to { transform: rotate(360deg); } }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sec-accent);
}
.kicker::before {
  content: "";
  width: 34px; height: 3px;
  border-radius: 3px;
  background: currentColor;
}

.sectionTitle {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 5.25rem);
  line-height: .9;
  letter-spacing: -.05em;
  max-width: 15ch;
}
.sectionLead {
  margin-top: 22px;
  max-width: 52ch;
  color: var(--sec-ink-soft);
  font-size: 1.0625rem;
}
.sectionHead { margin-bottom: clamp(48px, 7vw, 88px); }
.sectionHead--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sectionHead--center .sectionTitle { max-width: 18ch; }
.sectionHead--center .sectionLead { margin-inline: auto; }

/* Buttons */
.btn {
  --btn-h: 56px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--btn-h);
  padding-inline: 32px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s var(--ease-bounce), box-shadow .4s var(--ease);
  will-change: transform;
}
.btn--sm { --btn-h: 44px; padding-inline: 22px; font-size: .9rem; }
.btn--lg { --btn-h: 62px; padding-inline: 38px; font-size: 1.05rem; }

.btn--solid {
  background: var(--sec-btn-bg, #fff);
  color: var(--sec-btn-ink, #2E0B63);
  animation: pulseGlow 3.6s var(--ease-inout) infinite;
}
.btn--solid:hover { transform: translateY(-4px) scale(1.02); }
.btn--solid:active { transform: translateY(-1px) scale(.96); }

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 6px 24px -10px var(--sec-glow, rgba(34, 211, 238, .5)); }
  50%      { box-shadow: 0 14px 42px -8px var(--sec-glow, rgba(34, 211, 238, .9)); }
}

.btn--outline {
  border: 2px solid currentColor;
  color: var(--sec-ink);
  transition: transform .4s var(--ease-bounce), background-color .4s var(--ease), color .4s var(--ease);
}
.btn--outline:hover {
  transform: translateY(-4px) scale(1.02);
  background: var(--sec-ink);
  color: var(--sec-bg);
}
.btn--outline:active { transform: translateY(-1px) scale(.96); }

/* Ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 70%);
  animation: ripple .8s var(--ease) forwards;
  z-index: 2;
}
.btn--solid .ripple, .sec--cream .ripple, .sec--orange .ripple {
  background: radial-gradient(circle, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 70%);
}
@keyframes ripple { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

/* Cards — solid colour fills, deep tinted shadows */
.card {
  --card-lift: 0;
  position: relative;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--card-ink);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform:
    perspective(900px)
    rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
    translate3d(0, calc(var(--card-lift) * -10px), 0)
    scale(calc(1 + var(--card-lift) * .02));
  box-shadow: 0 18px 40px -24px var(--card-shadow);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
  will-change: transform;
}
.card:hover, .card:focus-visible {
  --card-lift: 1;
  box-shadow: 0 42px 80px -28px var(--card-shadow);
}

.card--c1 { --card-bg: #6D28D9; --card-ink: #FFFFFF; --card-soft: #DCCEFF; --card-shadow: rgba(41, 8, 105, .9); }
.card--c2 { --card-bg: #22D3EE; --card-ink: #052A33; --card-soft: #0B4757; --card-shadow: rgba(6, 90, 110, .8); }
.card--c3 { --card-bg: #C2185B; --card-ink: #FFFFFF; --card-soft: #FFE3F1; --card-shadow: rgba(84, 6, 43, .9); }
.card--c4 { --card-bg: #FB923C; --card-ink: #2B1004; --card-soft: #5E2C0C; --card-shadow: rgba(120, 55, 8, .8); }
.card--c5 { --card-bg: #1D4ED8; --card-ink: #FFFFFF; --card-soft: #DCE7FF; --card-shadow: rgba(8, 32, 105, .9); }

.card__glow {
  position: absolute;
  top: var(--gy, 50%); left: var(--gx, 50%);
  width: 320px; height: 320px;
  margin: -160px 0 0 -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .38), transparent 66%);
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}
.card:hover .card__glow, .card:focus-visible .card__glow { opacity: 1; }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .2);
  margin-bottom: 26px;
  transition: transform .55s var(--ease-bounce), background-color .45s var(--ease);
}
.card--c2 .card__icon, .card--c4 .card__icon { background: rgba(0, 0, 0, .16); }
.card:hover .card__icon { transform: translateY(-4px) rotate(-6deg) scale(1.06); }

.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.card__desc { margin-top: 12px; color: var(--card-soft); font-size: .975rem; }
.card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 26px;
  font-size: .9rem;
  font-weight: 700;
  transition: gap .4s var(--ease-bounce);
}
.card__more::after { content: "→"; }
.card:hover .card__more { gap: 14px; }

/* Grids */
.grid { display: grid; gap: 24px; }
.grid--services { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) {
  .grid--services { grid-template-columns: repeat(6, 1fr); gap: 28px; }
  .grid--services > .card { grid-column: span 2; }
  .grid--services > .card:nth-child(4),
  .grid--services > .card:nth-child(5) { grid-column: span 3; }
}

/* ------------------------------------------------ 5. Sections */

/* Hero */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(56px, 7vw, 96px);
}
.hero__title {
  margin-top: 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, min(7.8vw, 12svh), 7.25rem);
  line-height: .86;
  letter-spacing: -.055em;
  max-width: 15ch;
}
.hero__subtitle {
  margin-top: 26px;
  max-width: 50ch;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  color: var(--sec-ink-soft);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 28px;
  border-top: 2px solid rgba(255, 255, 255, .18);
  max-width: 800px;
}
.stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  letter-spacing: -.05em;
  line-height: 1;
}
.stat__unit { font-size: .5em; color: var(--sec-accent); }
.stat__label { margin-top: 12px; font-size: .9rem; color: var(--sec-ink-soft); max-width: 20ch; }

/* Portfolio */
.works {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  grid-template-columns: 1fr;
  max-width: 1060px;
  margin-inline: auto;
}
@media (min-width: 860px) { .works { grid-template-columns: repeat(2, 1fr); } }

.work {
  --card-lift: 0;
  position: relative;
  border-radius: var(--radius);
  background: #FFFFFF;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 24px 50px -30px var(--sec-shadow);
  transform:
    perspective(1000px)
    rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
    translate3d(0, calc(var(--card-lift) * -12px), 0);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
  will-change: transform;
}
.work:hover, .work:focus-visible {
  --card-lift: 1;
  box-shadow: 0 54px 90px -34px var(--sec-shadow);
}
.work__glow {
  position: absolute;
  top: var(--gy, 50%); left: var(--gx, 50%);
  width: 420px; height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, .3), transparent 66%);
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
  z-index: 3;
}
.work:hover .work__glow { opacity: 1; }

.work__media { overflow: hidden; background: #180F26; }
.work__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.work:hover .work__media img { transform: scale(1.07); }

.work__body { padding: 30px clamp(24px, 3vw, 34px) 34px; color: #180F26; }
.work__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.work__code { margin-top: 14px; font-size: .95rem; color: #574B67; }
.work__code b {
  font-family: var(--font-display);
  font-weight: 700;
  color: #180F26;
  letter-spacing: .01em;
}
.work__meta { margin-top: 6px; font-size: .875rem; color: #574B67; }
.work__meta b { font-family: var(--font-display); color: #6D28D9; }

.tag {
  display: inline-block;
  padding: 7px 16px;
  margin-bottom: 16px;
  border-radius: var(--radius-btn);
  background: #180F26;
  color: #FFFFFF;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: clamp(40px, 5vw, 64px) auto 0;
  max-width: 74ch;
  padding: 24px 28px;
  border-radius: var(--radius-sm);
  background: rgba(24, 15, 38, .06);
  color: var(--sec-ink-soft);
  font-size: .95rem;
}
.note svg { flex: none; margin-top: 3px; }

/* Process */
.steps { display: grid; gap: 24px; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; } }

.step {
  position: relative;
  padding: 36px 30px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .12);
  transition: transform .5s var(--ease-bounce), background-color .45s var(--ease);
}
.step:hover { transform: translateY(-8px); background: rgba(255, 255, 255, .2); }
.step__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.25rem;
  letter-spacing: -.055em;
  line-height: 1;
  color: var(--sec-accent);
  margin-bottom: 22px;
}
.step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -.03em;
  line-height: 1.12;
}
.step__desc { margin-top: 12px; color: var(--sec-ink-soft); font-size: .95rem; }

/* Pricing */
.quote {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(44px, 6vw, 76px) clamp(26px, 5vw, 66px);
  text-align: center;
  border-radius: clamp(32px, 5vw, 56px);
  background: rgba(255, 255, 255, .38);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.quote__title {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: .96;
  letter-spacing: -.05em;
  max-width: 16ch;
}
.quote__desc { margin-top: 22px; max-width: 50ch; color: var(--sec-ink-soft); }
.quote .btn { margin-top: 38px; }
.quote__note { margin-top: 18px; font-size: .9rem; color: var(--sec-ink-soft); }

/* Contact */
.contact {
  min-height: 92svh;
  display: flex;
  align-items: center;
  text-align: center;
}
.contact__inner { display: flex; flex-direction: column; align-items: center; }
.contact__title {
  margin-top: 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 9vw, 7rem);
  line-height: .86;
  letter-spacing: -.055em;
  max-width: 12ch;
}
.contact__desc { margin-top: 28px; max-width: 50ch; color: var(--sec-ink-soft); }
.contact__note { margin-top: 26px; font-size: .95rem; color: var(--sec-ink-soft); }

.discord {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-top: 46px;
  padding: 26px 38px;
  border-radius: var(--radius);
  background: #FFFFFF;
  color: #180F26;
  overflow: hidden;
  box-shadow: 0 24px 60px -26px var(--sec-glow);
  transition: transform .45s var(--ease-bounce), box-shadow .5s var(--ease);
}
.discord:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 40px 80px -24px var(--sec-glow); }
.discord:active { transform: translateY(-2px) scale(.98); }
.discord > svg:first-child { color: #5865F2; }
.discord__text { display: flex; flex-direction: column; text-align: left; }
.discord__label { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.03em; }
.discord__url { font-size: .9rem; color: #574B67; }
.discord__arrow { color: #6D28D9; transition: transform .45s var(--ease-bounce); }
.discord:hover .discord__arrow { transform: translate(4px, -4px); }

/* Footer */
.footer {
  position: relative;
  z-index: 2;
  background: #0D0413;
  color: #fff;
  padding-top: clamp(56px, 7vw, 88px);
  padding-bottom: 36px;
  --sec-glow: rgba(124, 58, 237, .55);
}
.footer__inner { display: grid; gap: 40px; align-items: start; }
@media (min-width: 860px) { .footer__inner { grid-template-columns: 1.4fr 1fr auto; } }
.footer__tagline { margin-top: 18px; color: #B7A8C7; font-size: .95rem; max-width: 32ch; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer__nav a { color: #C9BCD8; font-size: .95rem; transition: color .3s var(--ease); }
.footer__nav a:hover { color: #fff; }
.footer__lang { display: flex; flex-direction: column; gap: 10px; }
.footer__langLabel { font-size: .78rem; color: #B7A8C7; letter-spacing: .12em; text-transform: uppercase; }
.footer__select {
  appearance: none;
  -webkit-appearance: none;
  height: 46px;
  min-width: 165px;
  padding: 0 40px 0 18px;
  border: 0;
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, .12)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9.5 12 15l6-5.5'/%3E%3C/svg%3E")
    no-repeat right 16px center;
  color: #fff;
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
}
.footer__select option { color: #180F26; }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 28px;
  margin-top: clamp(44px, 6vw, 72px);
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: #A899BA;
  font-size: .85rem;
}

/* -------------------------------------------------- 6. Marquee */
.marquee {
  position: relative;
  z-index: 1;
  padding-block: clamp(18px, 2.4vw, 30px);
  overflow: hidden;
  user-select: none;
}
.marquee--cyan { background: var(--cyan); color: #052A33; }
.marquee--violet { background: var(--violet); color: #FFFFFF; }

.marquee__row {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee__row--reverse { animation-direction: reverse; animation-duration: 34s; }

.marquee__track {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 4.75rem);
  line-height: 1.1;
  letter-spacing: -.04em;
  white-space: nowrap;
  padding-right: .25em;
}
.marquee__track--outline {
  color: transparent;
  -webkit-text-stroke: 2px currentColor;
}
.marquee--cyan .marquee__track--outline { -webkit-text-stroke-color: rgba(5, 42, 51, .65); }
.marquee--violet .marquee__track--outline { -webkit-text-stroke-color: rgba(255, 255, 255, .7); }

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ---------------------------------------------------- 7. Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top)) 20px;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 4, 20, .68);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.modal.is-open .modal__backdrop { opacity: 1; }

.modal__panel {
  position: relative;
  width: min(100%, 680px);
  max-height: min(88svh, 820px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: clamp(24px, 4vw, 36px);
  background: #FFFFFF;
  color: #180F26;
  box-shadow: 0 60px 130px -40px rgba(10, 2, 20, .9);
  transform-origin: top left;
  will-change: transform, opacity;
}
.modal__panel .kicker { color: #6D28D9; }

.modal__close {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #180F26;
  box-shadow: 0 8px 24px -10px rgba(10, 2, 20, .6);
  transition: transform .45s var(--ease-bounce);
}
.modal__close:hover { transform: rotate(90deg) scale(1.08); }

.modal__media {
  height: clamp(180px, 28vw, 260px);
  background-image: var(--thumb, none);
  background-size: cover;
  background-position: center;
}
.modal__media[hidden], .modal__list[hidden] { display: none; }

.modal__content { padding: clamp(26px, 4vw, 42px); }
.modal__title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.4vw, 2.4rem);
  line-height: 1;
  letter-spacing: -.045em;
}
.modal__desc { margin-top: 18px; color: #574B67; }
.modal__list { margin-top: 26px; display: grid; gap: 14px; }
.modal__list li { display: flex; align-items: flex-start; gap: 14px; font-size: .975rem; }
.modal__list li::before {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED, #22D3EE);
}
.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.modal__actions .btn--solid { background: #180F26; color: #fff; animation: none; box-shadow: 0 12px 30px -14px rgba(24, 15, 38, .8); }
.modal__actions .btn--outline { border-color: rgba(24, 15, 38, .28); color: #180F26; }
.modal__actions .btn--outline:hover { background: #180F26; color: #fff; }

/* --------------------------------------- 8. Motion & responsive */
[data-reveal] {
  opacity: 0;
  transition:
    opacity .7s var(--ease) calc(var(--d, 0) * 90ms),
    transform .95s var(--ease-bounce) calc(var(--d, 0) * 90ms);
  will-change: transform, opacity;
}
[data-reveal="up"]    { transform: translate3d(0, 46px, 0); }
[data-reveal="left"]  { transform: translate3d(-64px, 0, 0); }
[data-reveal="right"] { transform: translate3d(64px, 0, 0); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .burger { display: block; }

  .nav {
    position: fixed;
    top: calc(var(--header-h) - 8px);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border-radius: var(--radius);
    background: #FFFFFF;
    color: #180F26;
    box-shadow: 0 40px 80px -30px rgba(10, 2, 20, .7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px) scale(.96);
    transform-origin: 50% 0;
    transition: opacity .3s var(--ease), transform .45s var(--ease-bounce), visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { padding: 14px 18px; font-size: 1.05rem; opacity: 1; }
  .nav__link::after { display: none; }
  .nav__link--cta {
    margin-top: 8px;
    justify-content: center;
    text-align: center;
    background: #6D28D9;
    color: #fff;
    font-weight: 700;
  }

  .header__actions .btn--solid { display: none; }
  .stats { border-top-color: rgba(255, 255, 255, .22); }
}
@media (min-width: 901px) { .nav__link--cta { display: none; } }

@media (max-width: 560px) {
  .header__inner { gap: 10px; }
  .header__actions { gap: 8px; }
  .logo { gap: 10px; font-size: 1rem; min-width: 0; }
  .logo__text { white-space: nowrap; }
  .logo__img { width: 38px; height: 38px; }
  .lang__button { padding-inline: 12px; gap: 6px; }
  .lang__globe { display: none; }

  .hero__actions .btn { width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .card { padding: 28px; }
  .discord { width: 100%; padding: 22px 24px; gap: 16px; }
  .work__body { padding: 24px 22px 28px; }
}

/* Touch: no custom cursor, no tilt, lighter blur */
@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
  .blob { filter: blur(60px); }
  .morph { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .cursor { display: none; }
  .blob, .morph { animation: none; }
  .marquee__row { animation: none; transform: none; }
}
