/* ============================================================
   ARTVISTA — dark cinematic showcase
   Palette: near-black base + electric violet accent
   ============================================================ */

:root {
  --bg: #0a0a0d;
  --bg-soft: #101014;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #eceaf1;
  --text-dim: #9b97a8;
  --accent: #a855f7;
  --accent-deep: #8b2ff2;
  --accent-glow: rgba(139, 47, 242, 0.35);
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-deep); color: #fff; }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--accent); }

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.section { padding: clamp(90px, 12vh, 150px) 0; position: relative; }

/* ---------- grain overlay ---------- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, -1%); }
  100% { transform: translate(2%, 2%); }
}

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 1000;
  opacity: 0;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  box-shadow: 0 0 12px 2px var(--accent-glow);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(168, 85, 247, 0.45);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
              border-color 0.25s, background 0.25s;
}
body.cursor-active .cursor-dot,
body.cursor-active .cursor-ring { opacity: 1; }
body.cursor-hover .cursor-ring {
  width: 56px; height: 56px;
  border-color: rgba(168, 85, 247, 0.9);
  background: rgba(139, 47, 242, 0.08);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .grain { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding 0.4s var(--ease-out), background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 14px 0;
  background: rgba(10, 10, 13, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--panel-border);
}
.nav__inner {
  width: min(1200px, 92vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo, .footer__logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.16em;
}
.nav__logo span, .footer__logo span { color: var(--accent); }
.nav__links {
  display: flex;
  gap: 34px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.nav__links a { transition: color 0.25s; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 22px;
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-radius: 999px;
  transition: background 0.3s, box-shadow 0.3s, color 0.3s;
}
.nav__cta:hover {
  background: var(--accent-deep);
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}
@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 70vmin; height: 70vmin;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(139, 47, 242, 0.22) 0%,
    rgba(139, 47, 242, 0.08) 40%,
    transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 6vw;
}
.hero__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.hero__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.9rem, 9vw, 7.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-shadow: 0 0 60px rgba(139, 47, 242, 0.25);
}
.hero__line { display: block; overflow: hidden; }
.hero__line > span {
  display: block;
  transform: translateY(110%);
  animation: hero-rise 1.1s var(--ease-out) forwards;
}
.hero__line:nth-child(2) > span { animation-delay: 0.15s; }
@keyframes hero-rise { to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero__line > span { transform: none; animation: none; }
}
.hero__sub {
  max-width: 560px;
  margin: 30px auto 0;
  color: var(--text-dim);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
}
.hero__actions {
  margin-top: 42px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* scroll cue */
.hero__scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.hero__scroll-label {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero__scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, #fff);
  animation: scroll-drip 1.8s ease-in-out infinite;
}
@keyframes scroll-drip {
  0% { top: -100%; }
  60%, 100% { top: 100%; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 15px 34px;
  border-radius: 999px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #fff;
  box-shadow: 0 0 28px var(--accent-glow);
}
.btn--primary:hover { box-shadow: 0 6px 44px rgba(139, 47, 242, 0.55); }
.btn--ghost {
  border: 1px solid var(--panel-border);
  color: var(--text);
  background: var(--panel);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: rgba(168, 85, 247, 0.6); }
.btn--whatsapp {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #fff;
  font-size: 1.05rem;
  padding: 18px 44px;
  box-shadow: 0 0 40px var(--accent-glow);
}
.btn--whatsapp svg { width: 22px; height: 22px; }
.btn--whatsapp:hover { box-shadow: 0 8px 60px rgba(139, 47, 242, 0.6); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.section__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: clamp(44px, 7vh, 80px);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: linear-gradient(to bottom, var(--bg), var(--bg-soft) 50%, var(--bg)); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  position: relative;
  padding: 42px 34px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.4s, box-shadow 0.4s;
  transform-style: preserve-3d;
  will-change: transform;
}
.service-card:hover {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 12px 60px rgba(139, 47, 242, 0.18);
}
.service-card__icon {
  width: 58px; height: 58px;
  margin-bottom: 28px;
  color: var(--accent);
  filter: drop-shadow(0 0 14px var(--accent-glow));
}
.service-card__icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.45rem;
  margin-bottom: 14px;
}
.service-card p { color: var(--text-dim); font-size: 0.95rem; }
.service-card__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.service-card__tags li {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 6px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
}
@media (max-width: 900px) {
  .services__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   WORK
   ============================================================ */
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.work-card {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}
.work-card__thumb {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.5s var(--ease-out);
}
.work-card:hover .work-card__thumb {
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 14px 60px rgba(139, 47, 242, 0.22);
  transform: translateY(-4px);
}
.work-card__thumb {
  background: #131218;
}
.work-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), filter 0.4s;
  filter: saturate(0.92);
}
.work-card:hover .work-card__thumb img {
  transform: scale(1.05);
  filter: saturate(1.05);
}
.work-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 6px 0;
}
.work-card__meta h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
}
.work-card__meta p { color: var(--text-dim); font-size: 0.8rem; }
@media (max-width: 900px) {
  .work__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .work__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(139, 47, 242, 0.07), transparent 70%),
    var(--bg-soft);
  padding: clamp(52px, 8vh, 80px) 0;
}
.stats__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat__num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  color: var(--text);
  text-shadow: 0 0 30px rgba(139, 47, 242, 0.3);
}
.stat__label {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
@media (max-width: 720px) {
  .stats__row { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   TESTIMONIALS (marquee)
   ============================================================ */
.testimonials { overflow: hidden; }
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: marquee-scroll 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee-scroll {
  to { transform: translateX(calc(-50% - 13px)); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
}
.quote-card {
  width: min(400px, 82vw);
  flex-shrink: 0;
  padding: 34px 32px;
  border-radius: 18px;
  /* solid tint (no backdrop-filter) — the moving track makes blur costly */
  background: #131218;
  border: 1px solid var(--panel-border);
}
.quote-card blockquote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}
.quote-card figcaption {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.quote-card figcaption strong {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
}
.quote-card figcaption span {
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* ============================================================
   CONTACT / CTA
   ============================================================ */
.contact {
  position: relative;
  text-align: center;
  overflow: hidden;
  padding-bottom: clamp(110px, 16vh, 180px);
}
.contact__glow {
  position: absolute;
  left: 50%;
  bottom: -30%;
  transform: translateX(-50%);
  width: 90vmin; height: 70vmin;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(139, 47, 242, 0.18) 0%,
    rgba(139, 47, 242, 0.05) 45%,
    transparent 70%);
  filter: blur(28px);
  pointer-events: none;
}
.contact__inner { position: relative; z-index: 1; }
.contact__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.6rem, 7.5vw, 5.6rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.contact__sub {
  color: var(--text-dim);
  max-width: 440px;
  margin: 0 auto 46px;
}
.contact__note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--panel-border);
  padding: 34px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__links {
  display: flex;
  gap: 26px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer__links a:hover { color: var(--text); }
.footer__copy { color: var(--text-dim); font-size: 0.78rem; }
@media (max-width: 720px) {
  .footer__inner { flex-direction: column; text-align: center; }
}
