/* Custom CSS — Tailwind handles utilities; this file handles animations, nav logic, and effects */

html, body {
  background-color: #000;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Typography modifiers (applied on top of Tailwind's text-massive/text-micro) ─── */
.text-massive {
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.text-micro {
  text-transform: uppercase;
}

/* ─── Border utilities ─── */
.border-1px-light { border-color: rgba(255, 255, 255, 0.15); }
.border-1px-dark  { border-color: rgba(0, 0, 0, 0.15); }

/* ─── Glass panel ─── */
.glass-panel {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ─── Nav: always white banner ─── */
#navbar {
  background-color: #ffffff !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
}
#navbar .nav-link { color: #1A1A1A !important; font-weight: 500; }

/* Make logo gray fringe invisible on white nav background */
#nav-logo img { mix-blend-mode: multiply; }

/* ─── Reveal on scroll ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* ─── Scrub text fill ─── */
.scrub-text-container { --progress: 0%; }
.scrub-text {
  background: linear-gradient(to right, #000 var(--progress), #ccc var(--progress));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  will-change: background;
}

/* ─── Stacked cards depth effect ─── */
.stacked-card {
  position: sticky;
  transform-origin: top center;
  will-change: transform;
}
.card-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
  border-radius: inherit;
}

/* ─── Horizontal scroll track ─── */
.h-scroll-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

/* ─── Peer label float (contact form) ─── */
.field-label {
  position: absolute;
  left: 0;
  top: 1rem;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  transition: top 0.2s, font-size 0.2s, color 0.2s;
  pointer-events: none;
}
.field-input:focus ~ .field-label,
.field-input:not(:placeholder-shown) ~ .field-label {
  top: -1rem;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.6);
}
.field-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  outline: none;
  font-family: inherit;
  font-size: 1.125rem;
  color: #fff;
  padding: 1.25rem 0 0.75rem;
  caret-color: #0055FF;
}
.field-input::placeholder { color: transparent; }
.field-input:focus { border-bottom-color: rgba(255, 255, 255, 0.5); }
