/* ============================================
   A.L — Hero Only
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&family=Space+Grotesk:wght@300;400;500;600;700&family=Instrument+Serif&display=swap');

@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-Bold.woff2') format('woff2'),
       url('../fonts/Gilroy-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --bg: #f5f5f0;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-mid: #555;
  --text-muted: #888;
  --text-light: #aaa;
  --border: #ddd;
  --accent: #1a1a1a;
  --accent-soft: rgba(26, 26, 26, 0.06);
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
  --display: 'Space Grotesk', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
}

html {
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--display);
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  cursor: none;
  overflow: hidden;
  margin: 0;
}

.rainbow-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

body.rainbow-bg .rainbow-overlay {
  opacity: 1;
}

body.rainbow-bg,
body.rainbow-bg .hero-subtitle,
body.rainbow-bg .hero-subtitle span {
  color: rgba(255, 255, 255, 0.85);
}

body.rainbow-bg .hero-name,
body.rainbow-bg .hero-catchline {
  color: #fff;
}

.hero-name,
.hero-catchline,
.hero-subtitle,
.hero-subtitle span {
  transition: color 0.5s ease;
}

::selection {
  background: var(--sel-color, #1a1a1a);
  color: #fff;
}

a { color: inherit; text-decoration: none; }

/* --- Custom Cursor --- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  background: var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
  transition: width 0.25s cubic-bezier(.22,1,.36,1), height 0.25s cubic-bezier(.22,1,.36,1), margin 0.25s cubic-bezier(.22,1,.36,1), background 0.25s;
}

.cursor.expand {
  width: 48px; height: 48px;
  margin: -18px 0 0 -18px;
  background: rgba(26, 26, 26, 0.08);
}

.cursor-trail {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.12s ease-out;
}

/* --- HERO --- */
.panel {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
}

.hero {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px;
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 900px;
}

.hero-name {
  font-family: 'Gilroy', var(--display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-catchline {
  font-size: clamp(3rem, 8vw, 7rem);
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: center;
  width: 100%;
  min-height: 1.3em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25em;
  overflow: visible;
}

.hero-catchline .word-fixed {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  margin-left: 0;
}

.hero-catchline .word {
  display: inline-block;
  will-change: font-family, font-weight, font-style;
  contain: layout style;
}

.hero-subtitle {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: none;
  line-height: 2.2;
  text-align: center;
}

.hero-subtitle span {
  display: inline;
  transition: color 0.3s;
}

.hero-subtitle span:hover {
  color: var(--text);
}

.hero-footer {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--rainbow-color, var(--text-light));
  letter-spacing: 3px;
  z-index: 10;
}

.hero-footer:hover {
  color: #fff;
}

/* --- Reveals --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-footer.reveal {
  transform: translateX(-50%) translateY(20px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-footer.reveal.visible {
  transform: translateX(-50%);
}

/* --- Noise --- */
.noise {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* --- Canvas --- */
.gen-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  opacity: 0.12;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero { padding: 80px 24px; }
  body { cursor: auto; }
  .cursor, .cursor-trail { display: none; }
}

@media (max-width: 480px) {
  .hero-catchline {
    font-size: 2.5rem;
  }
}
