:root {
  --bg: #060607;
  --bg-2: #0d0e12;
  --line: rgba(255, 255, 255, 0.08);
  --text: #ecede8;
  --muted: #9a9d94;
  --dim: #5f625b;
  --lime: #d4ff3a;
  --violet: #8b7bff;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter Tight', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --pad: clamp(16px, 5vw, 72px);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* faint dot grid over the whole page */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 80%);
}
a { color: inherit; }
img, video, canvas { display: block; max-width: 100%; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--lime); }
::selection { background: var(--lime); color: #000; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--pad);
  background: rgba(6, 6, 7, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { position: relative; font: italic 400 34px/1 var(--serif); text-decoration: none; padding-right: 14px; }
.logo .cube {
  position: absolute; right: 0; bottom: 5px; width: 9px; height: 9px;
  background: var(--lime); box-shadow: 0 0 12px var(--lime); transform: rotate(45deg);
}
.nav nav { display: flex; gap: clamp(14px, 3vw, 34px); }
.nav nav a { font: 500 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.nav nav a:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  background: var(--lime); color: #0a0a0a;
  font: 600 15px var(--sans); text-decoration: none;
  border: 1px solid var(--lime);
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 26px rgba(212, 255, 58, 0.28); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, 0.22); }
.btn-ghost:hover { border-color: var(--text); box-shadow: none; }
.btn-small { padding: 8px 16px; font-size: 14px; }

/* ---------- shared ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font: 500 13px var(--mono); letter-spacing: .2em; color: var(--muted);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.section { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 11vw, 140px) var(--pad) 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h2 { font: 400 clamp(40px, 6vw, 72px)/1.02 var(--serif); letter-spacing: -.01em; margin-bottom: 18px; }
.section-head p:last-child { color: var(--muted); font-size: 18px; margin: 0; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(48px, 8vw, 110px) var(--pad) 40px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center;
}
h1 { font: 400 clamp(64px, 10vw, 136px)/.92 var(--serif); letter-spacing: -.02em; margin-bottom: 26px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: #c6c8c0; max-width: 520px; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.prompt { margin: 34px 0 0; font: 400 14px var(--mono); color: var(--dim); }
.prompt span { color: var(--muted); }
.hero-art { margin: 0; position: relative; }
#hero-canvas { width: 100%; aspect-ratio: 1 / 0.92; border-radius: 22px; background: radial-gradient(ellipse at 50% 55%, rgba(212, 255, 58, 0.07), transparent 65%), var(--bg-2); border: 1px solid var(--line); }
.hero-art figcaption {
  display: flex; align-items: center; gap: 14px; margin-top: 14px;
  font: 500 13px var(--mono); letter-spacing: .12em; color: var(--muted);
}
.hero-art .bar { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.hero-art .bar i { display: block; height: 100%; width: 0%; background: var(--lime); }

/* ---------- stats ---------- */
.stats {
  max-width: var(--max); margin: 40px auto 0; padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stats div { padding: 22px 20px 22px 0; border-top: 1px solid var(--line); }
.stats b { display: block; font: 400 clamp(22px, 2.6vw, 32px)/1.1 var(--serif); margin-bottom: 6px; }
.stats span { font: 400 13px var(--mono); color: var(--muted); letter-spacing: .04em; }

/* ---------- AI cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: rgba(212, 255, 58, 0.35); transform: translateY(-3px); }
.card-art { width: 100%; aspect-ratio: 4 / 3; background: #070708; border-bottom: 1px solid var(--line); }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font: 600 22px/1.2 var(--sans); margin-bottom: 10px; }
.card p { color: #b9bbb3; font-size: 15.5px; margin: 0 0 18px; }
.tags { list-style: none; padding: 0; margin: auto 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font: 500 11.5px var(--mono); letter-spacing: .06em; color: var(--lime); border: 1px solid rgba(212, 255, 58, 0.25); padding: 4px 9px; border-radius: 999px; }
.card .meta { font: 400 12.5px var(--mono); color: var(--dim); margin: 0; }

/* ---------- 3D works ---------- */
.works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.work { text-decoration: none; display: block; }
.media {
  position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden;
  background: var(--bg-2) radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.4px) 0 0 / 10px 10px;
  border: 1px solid var(--line);
}
.media video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease, transform .6s ease; }
.media video.ready { opacity: 1; }
.work:hover video { transform: scale(1.04); }
.work-info { padding: 14px 4px 0; }
.work-info h3 { font: 600 17px/1.3 var(--sans); }
.work-info p { margin: 2px 0 8px; color: var(--muted); font-size: 14px; }
.price { font: 500 12.5px var(--mono); color: var(--lime); letter-spacing: .06em; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 380px 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.portrait { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 1px solid var(--line); filter: contrast(1.05); }
.about p { color: #c6c8c0; max-width: 600px; }
.about .cta { margin-top: 28px; }

/* ---------- collection ---------- */
.collection {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  min-height: 420px; border-radius: 28px; overflow: hidden; text-decoration: none;
  background: linear-gradient(135deg, #0f1108, #070708 60%);
  border: 1px solid rgba(212, 255, 58, 0.22);
}
.collection-art { width: 100%; height: 100%; min-height: 320px; }
.collection-copy { padding: clamp(28px, 5vw, 64px); }
.collection-copy p { color: #c6c8c0; }
.collection-copy .btn { margin-top: 14px; }
.collection:hover .btn { box-shadow: 0 6px 26px rgba(212, 255, 58, 0.3); }
.collection .url { font: 400 13px var(--mono); color: var(--dim); margin: 14px 0 0; }

/* ---------- footer ---------- */
.footer { max-width: var(--max); margin: clamp(90px, 12vw, 160px) auto 0; padding: 40px var(--pad) 48px; border-top: 1px solid var(--line); }
.footer .big { font: 400 clamp(38px, 6.5vw, 84px)/1 var(--serif); margin: 0 0 32px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 26px; margin-bottom: 26px; }
.footer nav a { font: 500 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--lime); }
.footer .copy { font: 400 13px var(--mono); color: var(--dim); margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .works { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 260px 1fr; }
}
@media (max-width: 680px) {
  .nav nav { display: none; }
  .cards, .works { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .portrait { max-width: 240px; }
  .collection { grid-template-columns: 1fr; }
  .collection-art { min-height: 220px; height: 220px; }
}
