/* ===========================================================
   COMPONENTS
   =========================================================== */


   
/* ---- Buttons ---- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--ink-900);
  color: var(--bone-100);
  box-shadow: 0 1px 2px rgba(10, 23, 38, 0.1);
}
.btn-primary:hover {
  background: var(--blue-600);
  box-shadow: 0 8px 24px -8px rgba(46, 111, 163, 0.5);
}

.btn-gold {
  background: var(--gold-500);
  color: var(--ink-900);
}
.btn-gold:hover {
  background: var(--gold-300);
  box-shadow: 0 8px 24px -8px rgba(201, 154, 61, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-hair);
}
.btn-ghost:hover {
  border-color: var(--ink-900);
  background: rgba(10, 23, 38, 0.03);
}

.btn-ghost-light {
  background: transparent;
  color: var(--bone-100);
  border: 1.5px solid var(--border-hair-dark);
}
.btn-ghost-light:hover {
  border-color: var(--bone-100);
  background: rgba(255, 255, 255, 0.06);
}

.btn-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn:hover .btn-icon { transform: translateX(3px); }

/* ---- Badges / pills ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--border-hair);
  color: var(--text-secondary);
}

/* ---- Cards ---- */
.card {
  background: var(--surface-raised);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-hair);
}

/* ---- Section spacing ---- */
.section { padding-top: var(--sp-8); padding-bottom: var(--sp-8); }
.section--tight { padding-top: var(--sp-7); padding-bottom: var(--sp-7); }
.section--dark { background: var(--ink-900); color: var(--text-on-dark); }

/* ---- Section: smaller vertical padding on phones ---- */
@media (max-width: 560px) {
  .section { padding-top: var(--sp-7); padding-bottom: var(--sp-7); }
  .section--tight { padding-top: var(--sp-6); padding-bottom: var(--sp-6); }
}

/* ---- Divider / pulse-line slot ---- */
.pulse-divider {
  position: relative;
  width: 100%;
  height: 90px;
  overflow: hidden;
}
.pulse-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

.divider-path {
  stroke: var(--border-hair);
}

/* ---- Hairline rule ---- */
.hr {
  height: 1px;
  width: 100%;
  background: var(--border-hair);
  border: none;
}
.hr-dark { background: var(--border-hair-dark); }

/* ---- Reveal animation hook (GSAP targets) ----
   Default to fully visible; JS opts elements into a hidden
   start-state only once it has confirmed it can animate them
   back in. This guarantees content is never stuck invisible
   if a script fails to load. */
.reveal { opacity: 1; }
.js-anim-ready .reveal { opacity: 0; }
.js-split-line { overflow: hidden; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink-900);
  color: var(--bone-100);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}
