/* Andrew · Verse River — the greeter widget.
   Jacob palette (gold, cream, ink), Source Serif 4 + Inter. */
#andrew-overlay {
  position: fixed; inset: 0;
  background: rgba(8, 6, 3, 0.92);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.7s ease;
}
#andrew-overlay.visible { opacity: 1; pointer-events: all; }

.andrew-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.andrew-particle {
  position: absolute; border-radius: 50%;
  background: #c8a45a; opacity: 0;
  animation: andrew-drift var(--dur, 8s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes andrew-drift {
  0%   { opacity: 0; transform: translateY(0) translateX(0); }
  20%  { opacity: 0.4; }
  80%  { opacity: 0.2; }
  100% { opacity: 0; transform: translateY(-120px) translateX(var(--dx, 20px)); }
}

.andrew-choose {
  display: flex; flex-direction: column;
  align-items: center; gap: 40px;
  padding: 24px; position: relative; z-index: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.andrew-choose.hidden {
  opacity: 0; transform: scale(0.95) translateY(-8px);
  pointer-events: none; position: absolute;
}
.andrew-greeting { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.andrew-orb {
  width: 72px; height: 72px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,250,235,0.95) 0%, rgba(232,204,136,0.55) 32%, rgba(200,164,90,0.18) 58%, transparent 72%);
  animation: andrew-breathe 4s ease-in-out infinite;
  position: relative;
}
.andrew-orb::after { display: none; }
@keyframes andrew-breathe {
  0%,100% { transform: scale(1);    opacity: 0.85; }
  50%      { transform: scale(1.12); opacity: 1;    }
}
.andrew-name-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px; letter-spacing: 4px; text-transform: uppercase;
  color: #c8a45a; font-weight: 500;
}
.andrew-heading {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(22px, 4vw, 34px);
  color: #fff; font-weight: 300; font-style: italic;
  text-align: center; line-height: 1.4; max-width: 380px;
  opacity: 0; animation: andrew-fadeUp 0.8s ease 0.3s forwards;
}
@keyframes andrew-fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.andrew-cards-row {
  display: flex; gap: 18px;
  align-items: stretch; justify-content: center;
  flex-wrap: wrap;
  opacity: 0; animation: andrew-fadeUp 0.8s ease 0.55s forwards;
}
.andrew-choice-card {
  background: rgba(250, 248, 243, 0.06);
  border: 1px solid rgba(200, 164, 90, 0.2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  width: 200px; padding: 32px 22px 28px;
  cursor: pointer; font-family: 'Inter', system-ui, sans-serif;
  display: flex; flex-direction: column;
  align-items: center; gap: 14px; text-align: center;
  transition: transform 0.35s cubic-bezier(0.34,1.3,0.64,1),
              background 0.3s ease, border-color 0.3s ease,
              box-shadow 0.3s ease;
  position: relative; overflow: hidden; color: inherit;
}
.andrew-choice-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #c8a45a, transparent);
  opacity: 0; transition: opacity 0.3s;
}
.andrew-choice-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(250, 248, 243, 0.1);
  border-color: rgba(200, 164, 90, 0.5);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 40px rgba(200,164,90,0.1);
}
.andrew-choice-card:hover::before { opacity: 1; }
.andrew-card-icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(200,164,90,0.1);
  border: 1px solid rgba(200,164,90,0.2);
  transition: all 0.3s ease; color: #c8a45a;
}
.andrew-card-icon svg { width: 28px; height: 28px; }
.andrew-choice-card:hover .andrew-card-icon {
  background: rgba(200,164,90,0.18);
  border-color: rgba(200,164,90,0.4);
  box-shadow: 0 0 24px rgba(200,164,90,0.2);
  transform: scale(1.08);
}
.andrew-card-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 19px; font-weight: 600;
  color: #fff; line-height: 1.25;
}
.andrew-card-desc {
  font-size: 12px; color: rgba(255,255,255,0.45);
  line-height: 1.65; font-weight: 300;
}
.andrew-card-tap {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: #c8a45a; font-weight: 500; margin-top: 4px;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.andrew-choice-card:hover .andrew-card-tap { opacity: 1; transform: translateY(0); }
.andrew-cards-or {
  font-size: 11px; color: rgba(255,255,255,0.2);
  letter-spacing: 2px; text-transform: uppercase;
  align-self: center; font-weight: 300;
}
.andrew-quiet-link {
  background: none; border: none; cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px; color: rgba(255,255,255,0.35);
  letter-spacing: 0.5px; text-decoration: underline;
  text-underline-offset: 3px; margin-top: 8px;
  transition: color 0.2s;
  opacity: 0; animation: andrew-fadeUp 0.8s ease 0.8s forwards;
}
.andrew-quiet-link:hover { color: rgba(255,255,255,0.7); }

/* Reveal */
.andrew-reveal {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none;
  transition: opacity 0.5s ease; z-index: 2;
}
.andrew-reveal.visible { opacity: 1; pointer-events: all; }
.andrew-message-card {
  background: #faf8f3; max-width: 480px; width: 100%;
  box-shadow: 0 40px 100px rgba(0,0,0,0.55), 0 0 0 1px rgba(200,164,90,0.15);
  position: relative;
  transform: translateY(32px) scale(0.94); opacity: 0;
  transition: all 0.7s cubic-bezier(0.34, 1.3, 0.64, 1);
  overflow: hidden;
}
.andrew-reveal.visible .andrew-message-card { transform: translateY(0) scale(1); opacity: 1; }
.andrew-top-bar {
  height: 3px;
  background: linear-gradient(90deg, #8a6e30, #e8cc88, #c8a45a, #e8cc88, #8a6e30);
  background-size: 200% 100%;
  animation: andrew-shimmer 3s ease infinite;
}
@keyframes andrew-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.andrew-card-inner { padding: 48px 44px 40px; text-align: center; position: relative; }
.andrew-msg-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px; letter-spacing: 3.5px; text-transform: uppercase;
  color: #c8a45a; font-weight: 500; margin-bottom: 32px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.andrew-msg-line { height: 1px; width: 28px; background: linear-gradient(90deg, transparent, #c8a45a); }
.andrew-msg-line.right { background: linear-gradient(90deg, #c8a45a, transparent); }
.andrew-msg-text {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(19px, 3vw, 26px);
  line-height: 1.72; color: #1a1612;
  font-style: italic; font-weight: 300;
  margin-bottom: 20px; letter-spacing: 0.2px;
}
.andrew-msg-source {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px; color: #9a8f82;
  letter-spacing: 1.5px; margin-bottom: 40px;
  text-transform: uppercase; font-weight: 400;
}
.andrew-msg-btn {
  background: #1a1612; color: #fff; border: none;
  padding: 15px 36px; width: 100%; cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  transition: background 0.25s ease, transform 0.15s ease;
}
.andrew-msg-btn:hover { background: #8a6e30; transform: translateY(-1px); }
.andrew-msg-dismiss {
  display: block; margin: 14px auto 0;
  font-size: 11px; color: #9a8f82;
  cursor: pointer; background: none; border: none;
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: 0.5px; text-decoration: underline; text-underline-offset: 3px;
}
.andrew-msg-dismiss:hover { color: #1a1612; }

/* Corner widget */
#andrew-corner {
  --andrew-glow: #c8a45a;
  position: fixed; bottom: 24px; right: 24px; z-index: 8000;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  opacity: 0; pointer-events: none; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34,1.3,0.64,1);
}
#andrew-corner.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.andrew-corner-card {
  background: #fff; width: 288px; display: none; overflow: hidden;
  box-shadow: 0 8px 48px rgba(0,0,0,0.13), 0 0 0 1px rgba(200,164,90,0.1);
  animation: andrew-cornerIn 0.45s cubic-bezier(0.34,1.3,0.64,1);
}
.andrew-corner-card.open { display: block; }
@keyframes andrew-cornerIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.andrew-corner-bar { height: 2px; background: linear-gradient(90deg, var(--andrew-glow), transparent); transition: background 0.4s ease; }
.andrew-corner-inner { padding: 16px 18px 14px; }
.andrew-corner-cat {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--andrew-glow); font-weight: 600; margin-bottom: 10px; transition: color 0.4s ease;
}
.andrew-corner-text {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 15px; line-height: 1.65; color: #1a1612;
  font-style: italic; font-weight: 400; margin-bottom: 12px;
}
.andrew-corner-footer { display: flex; align-items: center; justify-content: space-between; }
.andrew-corner-source { font-family: 'Inter', system-ui, sans-serif; font-size: 10px; color: #9a8f82; letter-spacing: 0.5px; }
.andrew-corner-next {
  background: none; border: 1px solid var(--andrew-glow);
  color: var(--andrew-glow); font-size: 10px; font-family: 'Inter', system-ui, sans-serif;
  padding: 5px 12px; cursor: pointer; letter-spacing: 0.5px; transition: all 0.2s;
}
.andrew-corner-next:hover { background: var(--andrew-glow); color: #fff; border-color: var(--andrew-glow); }
.andrew-corner-tabs { display: none; gap: 3px; background: #fff; padding: 5px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1), 0 0 0 1px rgba(200,164,90,0.08); }
.andrew-corner-tabs.open { display: flex; }
.andrew-corner-tab {
  background: none; border: none; padding: 7px 9px; cursor: pointer;
  transition: background 0.15s, transform 0.15s, color 0.4s ease; line-height: 1; color: var(--andrew-glow);
}
.andrew-corner-tab svg { width: 17px; height: 17px; display: block; }
.andrew-corner-tab:hover { background: #f4ede0; transform: scale(1.12); }
.andrew-corner-tab.active { background: #1a1612; color: #fff; }
.andrew-corner-fab {
  width: 52px; height: 52px; background: transparent; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s; position: relative; padding: 0;
}
.andrew-corner-fab:hover { transform: scale(1.12); }
.andrew-fab-orb {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,252,240,0.95) 0%, var(--andrew-glow) 38%, transparent 70%);
  animation: andrew-fabBreathe 3.5s ease-in-out infinite;
}
@keyframes andrew-fabBreathe {
  0%,100% { transform: scale(1);    opacity: 0.8;  }
  50%      { transform: scale(1.18); opacity: 1;    }
}
.andrew-fab-dot {
  position: absolute; top: -3px; right: -3px;
  width: 11px; height: 11px; background: #c8a45a;
  border-radius: 50%; border: 2px solid #fff;
  animation: andrew-dotPulse 2.5s infinite;
}
@keyframes andrew-dotPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.5); opacity: 0.5; }
}
@media (max-width: 480px) {
  .andrew-cards-row { flex-direction: column; align-items: center; gap: 12px; }
  .andrew-cards-or { display: none; }
  .andrew-choice-card { width: 270px; }
  .andrew-card-inner { padding: 36px 26px 32px; }
  .andrew-corner-card { width: 252px; }
  #andrew-corner { bottom: 14px; right: auto; left: 14px; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .andrew-particle, .andrew-orb, .andrew-fab-orb, .andrew-fab-dot { animation: none !important; }
}
