/* BAD CURRENCY brand layer — shared by the website and the studio.
   Type: Doto (dot-matrix display), Sixtyfour (pixel headlines), Geist / Geist Mono (UI + body).
   Motion: custom cursor, magnetic buttons, card spotlight, scroll reveal, page transitions. */
:root {
  --bc-ink: #050505;
  --bc-ink-2: #0c0c0b;
  --bc-ink-3: #141413;
  --bc-line: rgba(244, 244, 242, 0.1);
  --bc-line-2: rgba(244, 244, 242, 0.18);
  --bc-text: #f4f4f2;
  --bc-mute: #8a8a85;
  --bc-lime: #c8ff3d;
  --bc-lime-ink: #0a0d00;
  --bc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bc-dot: 'Doto', monospace;
  --bc-pixel: 'Sixtyfour', monospace;
  --bc-sans: 'Geist', system-ui, -apple-system, sans-serif;
  --bc-mono: 'Geist Mono', ui-monospace, monospace;
  --accent: var(--bc-lime);
  --accent-ink: var(--bc-lime-ink);
}

/* ---------- logo (the real logo file, recoloured with a mask) ---------- */
.bc-logo { display: inline-block; width: 1em; height: 1.58em; background: currentColor; -webkit-mask: url(/brand/logo.png) center / contain no-repeat; mask: url(/brand/logo.png) center / contain no-repeat; flex: none; }
.bc-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--bc-text); text-decoration: none; font: 400 13px/1 var(--bc-pixel); letter-spacing: 0.02em; }
.bc-brand .bc-logo { font-size: 20px; color: var(--bc-lime); transition: transform 0.5s var(--bc-ease); }
.bc-brand:hover .bc-logo { transform: rotate(-8deg) scale(1.08); }
.bc-brand small { font: 500 11px var(--bc-mono); color: var(--bc-mute); letter-spacing: 0.18em; text-transform: uppercase; margin-left: 2px; }

/* ---------- custom cursor ---------- */
@media (hover: hover) and (pointer: fine) {
  html.bc-cursor-on, html.bc-cursor-on * { cursor: none !important; }
  .bc-cursor, .bc-cursor-ring { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 10000; will-change: transform; }
  .bc-cursor { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--bc-lime); mix-blend-mode: difference; transition: width 0.25s var(--bc-ease), height 0.25s var(--bc-ease), margin 0.25s var(--bc-ease), opacity 0.2s; }
  .bc-cursor-ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 1.5px solid rgba(200, 255, 61, 0.55); display: grid; place-items: center; transition: width 0.35s var(--bc-ease), height 0.35s var(--bc-ease), margin 0.35s var(--bc-ease), background 0.35s, border-color 0.35s, opacity 0.2s; }
  .bc-cursor-ring span { font: 600 10px var(--bc-mono); letter-spacing: 0.16em; color: var(--bc-lime-ink); opacity: 0; transition: opacity 0.2s; }
  html.bc-hover .bc-cursor { width: 0; height: 0; margin: 0; }
  html.bc-hover .bc-cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--bc-lime); background: rgba(200, 255, 61, 0.12); }
  html.bc-label .bc-cursor-ring { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--bc-lime); border-color: var(--bc-lime); }
  html.bc-label .bc-cursor-ring span { opacity: 1; }
  html.bc-text-hover .bc-cursor-ring { width: 4px; height: 30px; margin: -15px 0 0 -2px; border-radius: 2px; border-color: transparent; background: var(--bc-lime); }
  html.bc-down .bc-cursor-ring { transform-origin: center; scale: 0.85; }
  html.bc-cursor-hidden .bc-cursor, html.bc-cursor-hidden .bc-cursor-ring { opacity: 0; }
}

/* ---------- page transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: bc-out 0.38s var(--bc-ease) both; }
::view-transition-new(root) { animation: bc-in 0.55s var(--bc-ease) both; }
@keyframes bc-out { to { opacity: 0; transform: scale(0.985); filter: blur(6px); } }
@keyframes bc-in { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
.bc-curtain { position: fixed; inset: 0; z-index: 9999; pointer-events: none; display: grid; place-items: center; background: var(--bc-ink); clip-path: inset(100% 0 0 0); }
.bc-curtain .bc-logo { font-size: 46px; color: var(--bc-lime); opacity: 0; transform: scale(0.8); transition: opacity 0.25s, transform 0.4s var(--bc-ease); }
.bc-curtain.on { clip-path: inset(0 0 0 0); transition: clip-path 0.42s var(--bc-ease); }
.bc-curtain.on .bc-logo { opacity: 1; transform: none; }
.bc-curtain.off { clip-path: inset(0 0 100% 0); transition: clip-path 0.6s var(--bc-ease) 0.05s; }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--bc-ease), transform 0.9s var(--bc-ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* ---------- buttons ---------- */
.bc-btn { --bg: transparent; position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 999px; border: 1px solid var(--bc-line-2); background: var(--bg); color: var(--bc-text); font: 600 14px var(--bc-mono); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; overflow: hidden; isolation: isolate; transition: border-color 0.3s, color 0.3s, transform 0.4s var(--bc-ease); will-change: transform; }
.bc-btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--bc-lime); transform: translateY(101%); border-radius: inherit; transition: transform 0.45s var(--bc-ease); }
.bc-btn:hover { border-color: var(--bc-lime); color: var(--bc-lime-ink); }
.bc-btn:hover::before { transform: none; }
.bc-btn.solid { --bg: var(--bc-lime); color: var(--bc-lime-ink); border-color: var(--bc-lime); }
.bc-btn.solid::before { background: var(--bc-text); }
.bc-btn .arr { display: inline-block; transition: transform 0.4s var(--bc-ease); }
.bc-btn:hover .arr { transform: translateX(4px) rotate(-45deg); }

/* ---------- media tiles (real generations) ---------- */
.bc-media { position: relative; overflow: hidden; background: var(--bc-ink-3); }
.bc-media video, .bc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--bc-ease), opacity 0.5s, filter 0.6s; }
.bc-media .bc-media-tag { position: absolute; left: 12px; bottom: 12px; z-index: 2; padding: 6px 10px; border-radius: 999px; background: rgba(5, 5, 5, 0.66); backdrop-filter: blur(8px); font: 500 10.5px var(--bc-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bc-text); }
.bc-media .bc-media-tag::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--bc-lime); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 8px var(--bc-lime); }
/* animated brand card for models without our own showcase media */
.bc-gen { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(120% 90% at var(--gx, 30%) var(--gy, 20%), color-mix(in srgb, var(--a, #c8ff3d) 38%, transparent), transparent 60%), radial-gradient(90% 80% at 85% 90%, color-mix(in srgb, var(--b, #3dd6ff) 30%, transparent), transparent 60%), var(--bc-ink-2); }
.bc-gen::before { content: ''; position: absolute; inset: -50%; background-image: radial-gradient(circle, rgba(244, 244, 242, 0.22) 1.2px, transparent 1.6px); background-size: 14px 14px; animation: bc-drift 18s linear infinite; mask: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 75%); }
.bc-gen::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(200, 255, 61, 0.09) 50%, transparent 100%); height: 30%; animation: bc-scan 3.4s var(--bc-ease) infinite; }
.bc-gen b { position: absolute; left: 18px; bottom: 16px; right: 18px; z-index: 1; font: 900 clamp(26px, 3.2vw, 44px)/0.95 var(--bc-dot); color: var(--bc-text); letter-spacing: 0.02em; text-shadow: 0 0 22px color-mix(in srgb, var(--a, #c8ff3d) 60%, transparent); }
@keyframes bc-drift { to { transform: translate(14px, 28px); } }
@keyframes bc-scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(420%); } }

/* spotlight that follows the mouse on cards */
.bc-spot { position: relative; }
.bc-spot::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; opacity: 0; transition: opacity 0.4s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(200, 255, 61, 0.14), transparent 45%); }
.bc-spot:hover::after { opacity: 1; }
