/* ==========================================================
   DanishLabs Portfolio — main stylesheet
   ========================================================== */
:root {
  --bg: #07070d;
  --bg-2: #0d0d18;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f2f2f7;
  --muted: #9a9ab0;
  --violet: #7c5cff;
  --cyan: #00e0ff;
  --pink: #ff4fd8;
  --grad: linear-gradient(120deg, var(--violet), var(--cyan));
  --grad-3: linear-gradient(120deg, var(--pink), var(--violet) 45%, var(--cyan));
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-h: "Space Grotesk", system-ui, sans-serif;
  --font-b: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { font-family: var(--font-h); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
::selection { background: var(--violet); color: #fff; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-h); font-size: 13px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--grad); }
.section { position: relative; padding: clamp(80px, 12vw, 150px) 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-title { font-size: clamp(34px, 5.2vw, 64px); font-weight: 700; }
.grad-text { background: var(--grad-3); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- WebGL background & overlays ---------- */
#webgl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--grad-3); transform-origin: 0 50%; transform: scaleX(0); z-index: 200; }

/* ---------- Preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 500; background: var(--bg);
  display: grid; place-content: center; justify-items: center; gap: 22px;
}
.loader__logo { width: 84px; height: 84px; animation: glow 1.6s ease-in-out infinite alternate; }
@keyframes glow { from { filter: drop-shadow(0 0 4px rgba(124,92,255,.3)); } to { filter: drop-shadow(0 0 22px rgba(255,79,216,.75)); } }
.loader__brand { font-family: var(--font-h); font-size: clamp(28px, 5vw, 48px); font-weight: 700; letter-spacing: -.03em; }
.loader__bar { width: min(280px, 70vw); height: 2px; background: var(--border); overflow: hidden; border-radius: 2px; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--grad); }
.loader__count { font-family: var(--font-h); color: var(--muted); font-size: 14px; letter-spacing: .2em; }

/* ---------- Custom cursor ---------- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 300; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.4); transition: width .3s var(--ease), height .3s var(--ease), background .3s, border-color .3s; mix-blend-mode: difference; }
.cursor-dot { width: 6px; height: 6px; background: #fff; }
.cursor.is-hover { width: 70px; height: 70px; background: rgba(255,255,255,.9); border-color: transparent; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 100px; font-family: var(--font-h); font-weight: 600; font-size: 16px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
  will-change: transform; white-space: nowrap;
}
.btn--sm { padding: 11px 22px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad); color: #050510; box-shadow: 0 10px 40px -10px rgba(124, 92, 255, .7); }
.btn--primary:hover { box-shadow: 0 16px 60px -10px rgba(0, 224, 255, .7); }
.btn--ghost { border: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(10px); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--wa { background: #25d366; color: #04140a; }
.contact__info .btn--wa { margin-top: 10px; }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 16px; left: 0; right: 0; margin: 0 auto; z-index: 100;
  width: min(1200px, calc(100% - 32px)); display: flex; align-items: center; gap: 24px;
  padding: 10px 12px 10px 22px; border-radius: 100px;
  border: 1px solid transparent; transition: background .4s, border-color .4s, top .4s;
}
.nav.is-scrolled { background: rgba(10, 10, 20, .65); border-color: var(--border); backdrop-filter: blur(18px) saturate(1.4); top: 10px; }
.nav.is-hidden { top: -90px; }
.nav__logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-h); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.logo-mark { width: 38px; height: 38px; flex: none; transition: filter .4s, transform .6s var(--ease); }
.nav__logo:hover .logo-mark { filter: drop-shadow(0 0 10px rgba(255,79,216,.7)); transform: rotate(-8deg); }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a { padding: 8px 14px; border-radius: 100px; font-size: 15px; color: var(--muted); transition: color .3s, background .3s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: var(--surface-2); }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); position: relative; }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); transition: transform .4s var(--ease), top .4s; }
.nav__toggle span:first-child { top: 17px; } .nav__toggle span:last-child { top: 25px; }
.nav-open .nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav__toggle span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: block; margin-left: auto; }
  .nav__cta { display: none; }
  /* The navbar always stays visible on phones. */
  .nav.is-hidden { top: 10px; }
  .nav__links {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: -1;
    flex-direction: column; justify-content: center; align-items: center; gap: 8px; margin: 0;
    background:
      radial-gradient(circle at 85% 10%, rgba(124, 92, 255, .28), transparent 45%),
      radial-gradient(circle at 10% 90%, rgba(0, 224, 255, .16), transparent 45%),
      #07070d;
    clip-path: circle(0 at calc(100% - 40px) 36px); transition: clip-path .7s var(--ease);
    visibility: hidden;
  }
  .nav__links a { font-family: var(--font-h); font-size: 32px; color: var(--text); }
  /* Anything that creates a containing block (transform, backdrop-filter) would trap the
     fixed full-screen menu inside the small navbar, so it is removed while the menu is open. */
  .nav-open .nav { transform: none !important; backdrop-filter: none !important; background: transparent; border-color: transparent; }
  .nav-open .nav__links { clip-path: circle(150% at calc(100% - 40px) 36px); visibility: visible; }
  .nav-open .nav__links { transition: clip-path .7s var(--ease), visibility 0s; }
  .nav__links { transition: clip-path .7s var(--ease), visibility 0s .7s; }
}

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; position: relative; padding: 140px 0 100px; }
.hero__inner { max-width: 1200px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border); font-size: 14px; color: var(--muted); margin-bottom: 28px; backdrop-filter: blur(8px);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #2bff88; box-shadow: 0 0 0 0 rgba(43,255,136,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(43,255,136,0); } 100% { box-shadow: 0 0 0 0 rgba(43,255,136,0); } }
.hero__title { font-size: clamp(36px, 5.4vw, 74px); font-weight: 700; max-width: 15ch; letter-spacing: -.035em; line-height: 1.04; }
.hero__sub { font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); max-width: 560px; margin: 26px 0 38px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 60px); margin-top: 64px; }
.hero__meta div { font-family: var(--font-h); font-size: 34px; font-weight: 700; }
.hero__meta span { display: block; font-family: var(--font-b); font-size: 14px; font-weight: 400; color: var(--muted); }
.scroll-hint { position: absolute; bottom: 32px; left: 50%; width: 26px; height: 42px; border: 1.5px solid var(--border); border-radius: 20px; transform: translateX(-50%); }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--text); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Split-text animation wrappers */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; will-change: transform; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 28px 0; border-block: 1px solid var(--border); background: rgba(10, 10, 20, .5); backdrop-filter: blur(6px); transform: rotate(-2deg) scale(1.04); }
.marquee__track { display: flex; width: max-content; gap: 56px; animation: marquee 32s linear infinite; }
.marquee__track span { font-family: var(--font-h); font-size: clamp(22px, 3vw, 36px); font-weight: 600; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.35); display: flex; align-items: center; gap: 56px; }
.marquee__track span::after { content: "✦"; -webkit-text-stroke: 0; color: var(--violet); font-size: .7em; }
.marquee__track span:nth-child(3n) { color: var(--text); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about__visual { perspective: 1200px; }
.about__frame { position: relative; border-radius: 32px; transform-style: preserve-3d; }
.about__frame img { width: 100%; height: auto; aspect-ratio: 5 / 6; object-fit: cover; border-radius: 32px; display: block; box-shadow: 0 40px 100px -30px rgba(124, 92, 255, .55); transform: translateZ(0); }
.about__glow { position: absolute; inset: 0; z-index: 1; border-radius: 32px; pointer-events: none; background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,.14), transparent 45%); }
.about__contact { display: flex; flex-wrap: wrap; gap: 12px; }
.about__contact .btn { padding: 14px 22px; font-size: 15px; }
.btn--wa svg { flex: none; }
.checks { list-style: none; padding: 0; margin: 24px 0 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks li::before { content: "✓"; display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #050510; font-size: 12px; font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat { padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.stat strong, .stat > span { font-family: var(--font-h); font-size: 34px; font-weight: 700; }
.stat > span { color: var(--cyan); }
.stat p { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.35; }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; perspective: 1400px; }
.service {
  position: relative; padding: 34px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  overflow: hidden; transform-style: preserve-3d; transition: border-color .4s; backdrop-filter: blur(6px);
}
.service::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(124,92,255,.22), transparent 45%); opacity: 0; transition: opacity .4s; }
.service:hover { border-color: rgba(124, 92, 255, .5); }
.service:hover::before { opacity: 1; }
.service__icon { position: relative; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: var(--grad); color: #050510; margin-bottom: 26px; transform: translateZ(40px); }
.service__icon svg { width: 28px; height: 28px; }
.service h3 { position: relative; font-size: 23px; transform: translateZ(30px); }
.service p { position: relative; color: var(--muted); margin: 0; transform: translateZ(20px); }
.service__num { position: absolute; top: 26px; right: 30px; font-family: var(--font-h); color: rgba(255,255,255,.12); font-size: 44px; font-weight: 700; }

/* ---------- Work / projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filter { padding: 10px 20px; border-radius: 100px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 15px; transition: all .3s var(--ease); }
.filter small { opacity: .6; margin-left: 4px; }
.filter:hover { color: var(--text); }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; perspective: 1600px; }
.project { position: relative; cursor: pointer; transform-style: preserve-3d; }
.project__media {
  position: relative; aspect-ratio: 16 / 11; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: var(--bg-2); transform: translateZ(0);
}
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project:hover .project__media img, .project:hover .project__ph { transform: scale(1.06); }
.project__ph { position: absolute; inset: 0; display: grid; place-items: center; transition: transform 1s var(--ease); }
.project__ph b { font-family: var(--font-h); font-size: clamp(60px, 9vw, 120px); color: rgba(255,255,255,.9); letter-spacing: -.05em; text-shadow: 0 10px 40px rgba(0,0,0,.3); }
.project__ph::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.06) 39px 40px), repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,.06) 39px 40px); }
.project__overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; padding: 22px; background: linear-gradient(transparent 50%, rgba(5,5,12,.85)); opacity: 0; transition: opacity .5s var(--ease); }
.project:hover .project__overlay { opacity: 1; }
.project__view { width: 64px; height: 64px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; font-size: 22px; transform: scale(.4) rotate(-45deg); transition: transform .5s var(--ease); }
.project:hover .project__view { transform: scale(1) rotate(-45deg); }
.project__feat { position: absolute; top: 18px; left: 18px; padding: 6px 12px; border-radius: 100px; background: rgba(0,0,0,.5); backdrop-filter: blur(8px); font-size: 12px; font-weight: 600; letter-spacing: .05em; }
.project__info { display: flex; justify-content: space-between; gap: 16px; padding: 20px 4px 0; }
.project__info h3 { font-size: 24px; margin-bottom: 4px; }
.project__info p { color: var(--muted); font-size: 15px; margin: 0; }
.project__cat { flex: none; align-self: flex-start; padding: 6px 12px; border-radius: 100px; border: 1px solid var(--border); font-size: 12px; color: var(--muted); white-space: nowrap; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 5px 12px; border-radius: 100px; background: var(--surface-2); font-size: 13px; color: var(--muted); }

/* ---------- Process (horizontal) ---------- */
.process { position: relative; padding: clamp(80px, 10vw, 120px) 0; }
.process__pin { overflow: hidden; }
.process__track { display: flex; gap: 24px; padding: 0 max(20px, calc((100vw - 1200px) / 2)); width: max-content; }
.step {
  position: relative; width: min(440px, 80vw); min-height: 360px; padding: 38px; border-radius: 28px;
  background: linear-gradient(160deg, var(--surface-2), rgba(255,255,255,.01)); border: 1px solid var(--border);
  display: flex; flex-direction: column; backdrop-filter: blur(8px);
}
.step__num { font-family: var(--font-h); font-size: 96px; font-weight: 700; line-height: 1; background: var(--grad-3); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }
.step h3 { font-size: 28px; margin-top: auto; }
.step p { color: var(--muted); margin: 0; }
.step__dur { position: absolute; top: 38px; right: 38px; font-size: 13px; padding: 6px 12px; border-radius: 100px; border: 1px solid var(--border); color: var(--muted); }

/* ---------- Tech stack ---------- */
.stack__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tech { aspect-ratio: 1; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; transition: transform .5s var(--ease), border-color .3s, background .3s; }
.tech:hover { transform: translateY(-8px) rotateX(10deg); border-color: rgba(0, 224, 255, .4); background: var(--surface-2); }
.tech__logo { font-family: var(--font-h); font-weight: 700; font-size: 22px; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; color: #050510; }
.tech span { font-size: 14px; color: var(--muted); }

/* ---------- Team ---------- */
.team__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; perspective: 1400px; }
.member { padding: 18px 18px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-align: center; transform-style: preserve-3d; backdrop-filter: blur(6px); }
.member__photo { aspect-ratio: 1; border-radius: 16px; overflow: hidden; display: grid; place-items: center; margin-bottom: 18px; background: var(--bg-2); transform: translateZ(30px); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__photo b { font-family: var(--font-h); font-size: 64px; color: rgba(255,255,255,.92); }
.member h3 { font-size: 21px; margin-bottom: 2px; }
.member__role { color: var(--cyan); font-size: 14px; }
.member p { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.member__links { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.member__links a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; font-weight: 600; transition: background .3s, color .3s; }
.member__links a:hover { background: var(--violet); color: #fff; }

/* ---------- Testimonials ---------- */
.tslider { position: relative; overflow: hidden; }
.tslider__track { display: flex; transition: transform .8s var(--ease); }
.tcard { flex: 0 0 100%; padding: clamp(28px, 5vw, 60px); border-radius: 30px; background: var(--surface); border: 1px solid var(--border); }
.tcard__stars { color: #ffc94d; letter-spacing: 3px; margin-bottom: 18px; }
.tcard blockquote { margin: 0 0 30px; font-family: var(--font-h); font-size: clamp(22px, 3vw, 34px); line-height: 1.3; font-weight: 500; }
.tcard__who { display: flex; align-items: center; gap: 14px; }
.tcard__avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--grad-3); display: grid; place-items: center; font-family: var(--font-h); font-weight: 700; color: #050510; font-size: 20px; }
.tcard__who strong { display: block; }
.tcard__who span { color: var(--muted); font-size: 14px; }
.tslider__dots { display: flex; gap: 8px; justify-content: center; margin-top: 26px; }
.tslider__dots button { width: 10px; height: 10px; border-radius: 10px; background: var(--border); transition: width .4s var(--ease), background .4s; }
.tslider__dots button.is-active { width: 34px; background: var(--grad); }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; text-align: left; font-family: var(--font-h); font-size: 19px; font-weight: 600; }
.faq__q i { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; font-style: normal; transition: transform .4s var(--ease), background .3s; }
.faq__item.is-open .faq__q i { transform: rotate(45deg); background: var(--violet); border-color: var(--violet); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq__a > div { overflow: hidden; color: var(--muted); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a p { padding-bottom: 24px; margin: 0; }

/* ---------- Contact ---------- */
.contact__box {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 6vw, 80px); padding: clamp(28px, 6vw, 70px); border-radius: 36px;
  background: linear-gradient(140deg, rgba(124,92,255,.16), rgba(0,224,255,.05) 50%, rgba(255,79,216,.1)); border: 1px solid var(--border); backdrop-filter: blur(14px);
}
.contact__info .section-title { font-size: clamp(30px, 4vw, 48px); }
.contact__list { list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 16px; }
.contact__list li { display: flex; align-items: center; gap: 14px; overflow-wrap: anywhere; }
.contact__list span { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; color: var(--cyan); }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 15px 18px; border-radius: 14px; border: 1px solid var(--border); background: rgba(0,0,0,.3);
  color: var(--text); font: inherit; transition: border-color .3s, box-shadow .3s; resize: vertical;
}
.form select option { background: var(--bg-2); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124,92,255,.18); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form__status { margin: 0; min-height: 1.6em; font-size: 15px; }
.form__status.ok { color: #2bff88; } .form__status.err { color: #ff6b81; }

/* ---------- Footer ---------- */
.footer { padding: 80px 0 40px; border-top: 1px solid var(--border); background: rgba(5, 5, 10, .7); backdrop-filter: blur(10px); }
.footer__big { font-family: var(--font-h); font-size: clamp(48px, 11vw, 160px); font-weight: 700; letter-spacing: -.05em; line-height: .95; margin-bottom: 60px; }
.footer__big em { font-style: normal; background: var(--grad-3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer__row p { margin: 0; font-size: 14px; }
.footer__socials { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__socials a { color: var(--muted); transition: color .3s; } .footer__socials a:hover { color: var(--text); }

/* ---------- Floating buttons ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(37,211,102,.4); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.1); }
.to-top { position: fixed; right: 30px; bottom: 94px; z-index: 90; width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); backdrop-filter: blur(10px); opacity: 0; transform: translateY(20px); pointer-events: none; transition: all .4s var(--ease); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(3,3,8,.75); backdrop-filter: blur(10px); opacity: 0; transition: opacity .4s; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative; width: min(900px, 100%); max-height: calc(100svh - 40px); overflow-y: auto; border-radius: 28px;
  background: var(--bg-2); border: 1px solid var(--border); opacity: 0; transform: translateY(40px) scale(.96) rotateX(8deg); transition: all .6s var(--ease);
}
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.5); backdrop-filter: blur(8px); font-size: 26px; line-height: 1; }
.modal__media { position: relative; aspect-ratio: 16 / 8; overflow: hidden; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: clamp(24px, 4vw, 44px); }
.modal__body h3 { font-size: clamp(28px, 4vw, 40px); }
.modal__body p { color: var(--muted); white-space: pre-line; }
.modal__meta { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 20px; font-size: 14px; color: var(--muted); }
.modal__meta b { color: var(--text); font-weight: 600; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Reveal defaults (JS animates) ---------- */
.js .reveal-up, .js .reveal-left { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .stack__grid { grid-template-columns: repeat(4, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .about__grid, .faq__grid, .contact__box { grid-template-columns: 1fr; }
  /* Explicit width: with only margin:auto the grid item shrinks to its content,
     and a not-yet-loaded lazy image has none, so it collapsed to icon size. */
  .about__visual { width: 100%; max-width: 480px; justify-self: center; margin-bottom: 20px; }
  .projects { grid-template-columns: 1fr; }
  .process__track { flex-direction: column; width: auto; padding: 0 20px; }
  .step { width: 100%; min-height: 0; }
  .step h3 { margin-top: 30px; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .services__grid { grid-template-columns: 1fr; }
  .stack__grid { grid-template-columns: repeat(3, 1fr); }
  .form__row, .checks { grid-template-columns: 1fr; }
  .hero__meta div { font-size: 28px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .project__overlay { opacity: 1; background: none; }
  .project__view { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
