/* Atelier 9 — Heavy Wildcard Creative-Studio
   Style: Pure black + neon cyan + hot pink, Migra-italic display, glitch-text */

:root {
  --black: #000000;
  --black-elev: #0A0A0A;
  --black-card: #111111;
  --line: rgba(255, 255, 255, 0.08);
  --line-bright: rgba(255, 255, 255, 0.18);
  --white: #FFFFFF;
  --white-mute: rgba(255, 255, 255, 0.7);
  --white-dim: rgba(255, 255, 255, 0.45);
  --cyan: #00FFE0;
  --pink: #FF2D87;
  --yellow: #FBFF1A;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}
html { -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  cursor: none;
}
body.no-custom-cursor { cursor: auto; }

@media (max-width: 1024px) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: none; border: none; background: none; color: inherit; }

.italic-display {
  font-family: 'Reenie Beanie', 'Playfair Display', serif;
}
.italic-display.alt { font-family: 'Playfair Display', serif; font-style: italic; }
.serif-italic { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; }
.mono { font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace; }

.container { max-width: 1480px; margin: 0 auto; padding: 0 32px; }

/* === Custom cursor === */
.cursor-dot, .cursor-outline {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.04s ease-out, width 0.25s, height 0.25s, background 0.25s, border 0.25s, opacity 0.2s;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}
.cursor-outline {
  width: 36px;
  height: 36px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  transition: transform 0.18s ease-out, width 0.25s, height 0.25s, border-color 0.25s, opacity 0.2s, background 0.25s;
}
.cursor-outline.hover {
  width: 70px; height: 70px;
  background: rgba(0, 255, 224, 0.12);
  border-color: var(--cyan);
  mix-blend-mode: normal;
}
@media (max-width: 1024px) { .cursor-dot, .cursor-outline { display: none; } }

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  padding: 24px 32px;
  display: flex; align-items: center; justify-content: space-between;
  mix-blend-mode: difference;
  color: var(--white);
}
.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--cyan);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--white-mute);
}
@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* === HERO === */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 32px;
  max-width: 1400px;
}
.hero-content .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}
.hero-content .label::before, .hero-content .label::after {
  content: ""; width: 60px; height: 1px;
  background: var(--cyan);
  opacity: 0.5;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(72px, 13vw, 220px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.hero h1 .normal { font-style: normal; font-family: 'Inter', sans-serif; font-weight: 100; letter-spacing: -0.05em; }
.hero h1 .word-2 { display: block; transform: translateX(15%); }
.hero-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-mute);
  margin-top: 38px;
}
.hero-bottom {
  position: absolute;
  bottom: 32px; left: 32px; right: 32px;
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px;
  z-index: 3;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-mute);
}
.hero-bottom .scroll-cue {
  display: flex; align-items: center; gap: 10px;
  color: var(--white);
}
.hero-bottom .scroll-cue::after {
  content: "↓"; animation: scrollHint 1.6s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(4px); opacity: 1; }
}

@media (max-width: 880px) {
  .hero h1 .word-2 { transform: none; }
}

/* === Glitch text === */
.glitch {
  position: relative;
  display: inline-block;
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.glitch::before {
  color: var(--cyan);
  z-index: -1;
  animation: glitch-1 4s infinite;
  clip-path: inset(0 0 0 0);
}
.glitch::after {
  color: var(--pink);
  z-index: -2;
  animation: glitch-2 5s infinite;
  clip-path: inset(0 0 0 0);
}
@keyframes glitch-1 {
  0%, 95%, 100% { transform: translate(0); }
  96% { transform: translate(2px, -1px); clip-path: inset(20% 0 50% 0); }
  97% { transform: translate(-2px, 1px); clip-path: inset(60% 0 10% 0); }
  98% { transform: translate(1px, -2px); clip-path: inset(40% 0 30% 0); }
}
@keyframes glitch-2 {
  0%, 90%, 100% { transform: translate(0); }
  91% { transform: translate(-2px, 1px); clip-path: inset(50% 0 30% 0); }
  92% { transform: translate(2px, -1px); clip-path: inset(20% 0 60% 0); }
  93% { transform: translate(-1px, 2px); clip-path: inset(70% 0 10% 0); }
}

/* === MARQUEE === */
.marquee-section {
  padding: 80px 0 80px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.marquee-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.marquee-label::before { content: ""; width: 8px; height: 8px; background: var(--cyan); border-radius: 50%; }
.marquee-row {
  display: flex;
  gap: 32px;
  animation: scroll 50s linear infinite;
  width: max-content;
}
.marquee-item {
  width: 460px;
  height: 280px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--line);
  transition: transform 0.4s ease, border-color 0.3s;
}
.marquee-item:hover { transform: scale(1.02); border-color: var(--cyan); }
.marquee-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 100%);
}
.marquee-item .meta {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.marquee-item .title { color: var(--white); margin-bottom: 4px; font-weight: 600; }
.marquee-item .tag { color: var(--cyan); }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* === CAPABILITIES === */
.capabilities {
  padding: 200px 0;
  position: relative;
}
.cap-line {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(56px, 9vw, 160px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin-bottom: 32px;
  display: block;
  position: relative;
}
.cap-line .normal { font-style: normal; font-family: 'Inter', sans-serif; font-weight: 200; letter-spacing: -0.04em; color: var(--white-mute); }
.cap-line .num {
  font-family: 'JetBrains Mono', monospace;
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.1em;
  vertical-align: super;
  color: var(--cyan);
  margin-right: 16px;
  font-weight: 400;
}
.cap-row {
  display: flex; align-items: baseline; gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.cap-row:hover .cap-line { color: var(--cyan); }
.cap-row:nth-child(even) { padding-left: 80px; }
.cap-row:nth-child(3n) { padding-left: 160px; }

/* === SELECTED WORK === */
.selected-work { padding: 140px 0; }
.section-heading {
  display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 24px;
  margin-bottom: 80px;
}
.section-heading h2 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(48px, 7vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  font-weight: 400;
}
.section-heading .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-dim);
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
}
.work-card { position: relative; cursor: pointer; }
.work-img {
  height: 70vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.work-img::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(rgba(0,0,0,0) 60%, rgba(0,0,0,0.5));
  z-index: 1;
}
.work-card .meta-strip {
  display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.work-num { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.2em; color: var(--cyan); }
.work-title { font-family: 'Playfair Display', serif; font-style: italic; font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -0.025em; font-weight: 400; }
.work-tag { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white-dim); }
.work-card:hover .work-img { filter: brightness(1.05) saturate(1.1); }

/* === PROCESS === */
.process {
  padding: 140px 0;
  background: var(--black-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 60px;
}
.process-card {
  padding: 40px 32px;
  background: var(--black-card);
  border: 1px solid var(--line);
  position: relative;
  transition: border-color 0.3s, background 0.3s;
}
.process-card:hover { border-color: var(--cyan); background: rgba(0, 255, 224, 0.04); }
.process-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 10px;
}
.process-num::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.process-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 400;
  margin-bottom: 18px;
}
.process-desc { color: var(--white-mute); font-size: 14.5px; line-height: 1.65; }
.process-keywords { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; color: var(--white-dim); margin-top: 24px; line-height: 1.8; }

@media (max-width: 880px) { .process-grid { grid-template-columns: 1fr; } }

/* === STATS === */
.stats {
  padding: 140px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
}
.stat {
  border-top: 1px solid var(--line);
  padding-top: 30px;
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(56px, 7vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 400;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-mute);
  line-height: 1.5;
}

@media (max-width: 880px) { .stats-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }

/* === CTA === */
.cta {
  padding: 200px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -100px;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(0, 255, 224, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 50% at 30% 70%, rgba(255, 45, 135, 0.07), transparent 60%);
  filter: blur(40px);
  z-index: 0;
}
.cta-inner { position: relative; z-index: 1; }
.cta h2 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(56px, 10vw, 180px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-weight: 400;
  margin-bottom: 50px;
}
.cta h2 .normal { font-style: normal; font-family: 'Inter', sans-serif; font-weight: 200; letter-spacing: -0.045em; color: var(--white-mute); }
.cta-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid var(--white);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}
.cta-form input {
  flex: 1;
  padding: 22px 24px;
  background: transparent;
  border: 0;
  color: var(--white);
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  letter-spacing: 0.05em;
  outline: none;
}
.cta-form input::placeholder { color: var(--white-dim); }
.cta-form button {
  padding: 22px 32px;
  background: var(--white);
  color: var(--black);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: none;
  transition: background 0.2s, color 0.2s;
}
.cta-form button:hover { background: var(--cyan); color: var(--black); }

/* === FOOTER === */
footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 80px;
  margin-bottom: 60px;
}
.footer-ascii {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  line-height: 1;
  white-space: pre;
  color: var(--cyan);
  margin-bottom: 24px;
}
.footer-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--white);
  max-width: 360px;
  margin-bottom: 28px;
}
.footer-meta { color: var(--white-mute); font-size: 13px; line-height: 1.7; }
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--white-mute);
  padding: 6px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--white-dim);
  text-transform: uppercase;
}

@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }

/* === REVEAL === */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === Page header (sub-pages) === */
.page-header {
  padding: 200px 32px 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  font-weight: 400;
}
.page-header .subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 24px;
}
.page-header p {
  margin-top: 28px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--white-mute);
  max-width: 760px;
  line-height: 1.5;
}

/* === WORK GRID (work.html) === */
.work-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 60px; }
.work-filter button {
  padding: 8px 16px;
  border: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-mute);
  cursor: none;
  transition: all 0.2s;
}
.work-filter button.active { border-color: var(--cyan); color: var(--cyan); background: rgba(0, 255, 224, 0.06); }
.work-filter button:hover:not(.active) { border-color: var(--white); color: var(--white); }
.work-portfolio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.work-cell {
  cursor: pointer;
  position: relative;
}
.work-cell .img-wrap {
  height: 480px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.work-cell .img-wrap::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(rgba(0,0,0,0) 50%, rgba(0,0,0,0.5));
}
.work-cell .label-row {
  display: flex; justify-content: space-between; align-items: center; padding: 18px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.work-cell .label-row .name { color: var(--white); font-weight: 600; }
.work-cell .label-row .tag { color: var(--cyan); }
@media (max-width: 880px) { .work-portfolio { grid-template-columns: 1fr; } }

/* === STUDIO PAGE === */
.studio-section { padding: 120px 0; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 60px; }
.team-cell { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.team-cell .num { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; color: var(--cyan); margin-bottom: 8px; }
.team-cell .role { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--white-dim); margin-bottom: 18px; }
.team-cell h3 { font-family: 'Playfair Display', serif; font-style: italic; font-size: 28px; line-height: 1.05; font-weight: 400; }
.team-cell p { font-size: 13px; color: var(--white-mute); line-height: 1.6; margin-top: 10px; }
@media (max-width: 880px) { .team-grid { grid-template-columns: 1fr 1fr; } }

/* === MANIFESTO === */
.manifesto {
  padding: 140px 0;
  text-align: center;
}
.manifesto-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  font-weight: 400;
  max-width: 1100px;
  margin: 0 auto 60px;
}
.manifesto-quote .glow { color: var(--cyan); }

/* === Magnetic links === */
.magnetic { transition: transform 0.2s ease-out; }
