/* ============= OPPAI ATELIER — design tokens ============= */
:root {
  --ink: #0a0a0c;
  --ink-2: #131318;
  --ink-3: #1c1c22;
  --paper: #f6f1e7;
  --paper-2: #ebe5d6;
  --pink: #ec1b7e;
  --pink-2: #ff4d9a;
  --pink-soft: #ff8ab8;
  --pink-deep: #b1115d;
  --line: rgba(255,255,255,.10);
  --line-2: rgba(255,255,255,.18);
  --muted: rgba(255,255,255,.62);
  --shadow-pink: 0 0 40px rgba(236,27,126,.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--ink);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============= TYPE ============= */
.brush { font-family: 'Permanent Marker', cursive; font-weight: 400; letter-spacing: .01em; }
.display { font-family: 'Archivo Black', 'Inter', sans-serif; letter-spacing: -.01em; }
.bangers { font-family: 'Bangers', sans-serif; letter-spacing: .04em; }
.mono { font-family: 'JetBrains Mono', monospace; }
.jp { font-family: 'Noto Sans JP', 'Inter', sans-serif; }

.brush-strike {
  position: relative; display: inline-block; color: #fff;
  padding: .04em .25em;
}
.brush-strike::before {
  content: '';
  position: absolute; inset: -.05em -.15em;
  background: var(--pink);
  z-index: -1;
  clip-path: polygon(2% 18%, 8% 8%, 18% 14%, 28% 6%, 42% 16%, 55% 7%, 68% 16%, 82% 8%, 96% 18%, 100% 35%, 99% 60%, 96% 82%, 88% 92%, 75% 88%, 60% 96%, 45% 88%, 28% 96%, 14% 88%, 5% 92%, 2% 78%, 0 55%, 1% 30%);
  filter: url(#rough-edge);
}
.pink { color: var(--pink); }
.pink-2 { color: var(--pink-2); }

/* Pink brushstroke text accent (used on words like REALIDAD, ATELIER) */
.brushhi {
  position: relative; display: inline-block;
  color: #fff; font-family: 'Permanent Marker', cursive;
  padding: 0 .35em;
  z-index: 1;
}
.brushhi::before {
  content: '';
  position: absolute; left: -.1em; right: -.1em; top: -.05em; bottom: -.05em;
  background: var(--pink);
  z-index: -1;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' preserveAspectRatio='none'><path d='M2 15 Q 8 4, 18 8 T 38 6 T 60 10 T 82 6 T 98 14 Q 96 24, 84 22 T 60 26 T 38 22 T 16 26 T 2 18 Z' fill='black'/></svg>") center/100% 100% no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' preserveAspectRatio='none'><path d='M2 15 Q 8 4, 18 8 T 38 6 T 60 10 T 82 6 T 98 14 Q 96 24, 84 22 T 60 26 T 38 22 T 16 26 T 2 18 Z' fill='black'/></svg>") center/100% 100% no-repeat;
}

/* ============= TEXTURES ============= */
.grain::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.5'/></svg>");
  opacity: .12; mix-blend-mode: overlay;
}

.grid-lines {
  background-image:
    linear-gradient(to right, rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 80px 80px;
}

.scratch-bg {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(236,27,126,.18) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(236,27,126,.12) 0%, transparent 55%),
    var(--ink);
}

/* Pink brush splatter background (full-bleed sections) */
.splat-bg {
  position: relative;
  background: var(--ink);
  overflow: hidden;
}
.splat-bg::before, .splat-bg::after {
  content: ''; position: absolute; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><g fill='%23ec1b7e' opacity='0.5'><path d='M40 80 L120 60 L160 110 L200 80 L260 130 L320 100 L380 160 L350 200 L300 180 L250 240 L180 200 L120 250 L60 200 L20 150 Z'/><path d='M50 280 L100 260 L140 290 L180 270 L220 310 L260 290 L320 320 L300 350 L260 340 L220 360 L160 340 L100 360 L50 340 Z' opacity='0.7'/></g></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  filter: blur(.3px);
}
.splat-bg::before { inset: -10% -10% auto auto; width: 60%; height: 70%; opacity: .35; transform: rotate(15deg); }
.splat-bg::after  { inset: auto auto -10% -10%; width: 55%; height: 60%; opacity: .25; transform: rotate(-10deg) scaleX(-1); }

/* Diagonal scratch pattern */
.scratch {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image:
    repeating-linear-gradient(115deg, transparent 0 6px, rgba(236,27,126,.0) 6px 9px, rgba(236,27,126,.18) 9px 10px, transparent 10px 22px),
    repeating-linear-gradient(115deg, transparent 0 30px, rgba(236,27,126,.10) 30px 31px, transparent 31px 70px);
  mix-blend-mode: screen;
}

/* ============= COMPONENTS ============= */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: 14px 22px; border-radius: 999px;
  font-family: 'Archivo Black', sans-serif;
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-pink {
  background: var(--pink); color: #fff;
  box-shadow: 0 6px 0 var(--pink-deep), 0 12px 30px rgba(236,27,126,.4);
}
.btn-pink:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--pink-deep), 0 18px 40px rgba(236,27,126,.55); }
.btn-pink:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--pink-deep); }

.btn-ghost {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,.25);
}
.btn-ghost:hover { border-color: var(--pink); color: var(--pink); }

.btn-black {
  background: #fff; color: var(--ink);
}
.btn-black:hover { background: var(--pink); color: #fff; }

/* Badge / chip */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(236,27,126,.12);
  border: 1px solid rgba(236,27,126,.4);
  color: var(--pink-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pink); box-shadow: 0 0 8px var(--pink);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* Card */
.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

/* Star (hand-drawn) */
.star { color: var(--pink); }

/* Section spacing */
section { position: relative; padding: 96px 0; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 32px; }

/* Eyebrow */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--pink); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px; background: var(--pink);
}

/* Marquee */
.marquee {
  display: flex; overflow: hidden; gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--ink);
}
.marquee-track {
  display: flex; gap: 48px; padding: 22px 0;
  animation: scroll 32s linear infinite;
  white-space: nowrap;
  flex-shrink: 0;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Tag (sticker style) */
.sticker {
  display: inline-block; padding: 8px 14px;
  background: #fff; color: var(--ink);
  border-radius: 8px;
  font-family: 'Archivo Black', sans-serif;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  transform: rotate(-2deg);
  box-shadow: 4px 4px 0 var(--pink);
}

/* Image frame — clean rectangular borders */
.brush-frame {
  position: relative; overflow: hidden;
  border-radius: 4px;
}

/* Reveal animations on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-l { opacity: 0; transform: translateX(-40px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal-l.in { opacity: 1; transform: none; }
.reveal-r { opacity: 0; transform: translateX(40px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal-r.in { opacity: 1; transform: none; }

/* Wiggle (used on hover for stars) */
@keyframes wiggle {
  0%,100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}
.wiggle:hover { animation: wiggle .4s ease-in-out infinite; }

/* float */
@keyframes waPulse {
  0% { box-shadow: 0 14px 40px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.55); }
  70% { box-shadow: 0 14px 40px rgba(37,211,102,.45), 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 14px 40px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); }
}

@keyframes float {
  0%,100% { transform: translateY(0) rotate(var(--r,0deg)); }
  50% { transform: translateY(-12px) rotate(var(--r,0deg)); }
}
.float { animation: float 4s ease-in-out infinite; }

/* Glitch effect */
@keyframes glitch-1 { 0%,100% { clip-path: inset(0 0 0 0); transform: translate(0); } 20% { clip-path: inset(20% 0 30% 0); transform: translate(-2px,1px); } 40% { clip-path: inset(60% 0 5% 0); transform: translate(2px,-1px); } 60% { clip-path: inset(10% 0 70% 0); transform: translate(-1px,2px); } }

/* Hidden scrollbar utility */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Show flyers full / minimally-cropped — keep borders rectangular,
   only a hair of crop for "in motion" feel via object-fit: contain on tall frames */
.flyer-crop {
  object-fit: contain !important;
  object-position: center !important;
  background: #0a0a0c;
}
