/* /socials/ — link-in-bio page, "deep water at night".
   Layers on site.css tokens. CSP: style-src 'self' — everything lives here,
   no inline styles. Motion is CSS-only and disabled under reduced-motion.
   Hover lifts are gated behind (hover:hover); touch gets :active feedback. */

.socials-body {
  background: #060b0c;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* the deck area fills the first viewport (minus the sticky header),
   standard site footer sits below the fold as on every other page */
.socials-main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - 66px);
  min-height: calc(100dvh - 66px);
  padding: clamp(20px, 3.5vh, 40px)
           max(18px, env(safe-area-inset-left))
           max(24px, env(safe-area-inset-bottom))
           max(18px, env(safe-area-inset-right));
}

/* keep the standard footer above the fixed .sea backdrop layers */
.socials-body .site-footer {
  position: relative;
  z-index: 1;
}

.socials-body ::selection {
  background: rgba(20, 197, 197, 0.35);
  color: #ffffff;
}

/* ---------- background: aurora drift + wave lines + grain ---------- */

.sea {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.sea__aurora {
  position: absolute;
  width: 85vmax;
  height: 85vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  will-change: transform;
  transform: translateZ(0);
}

.sea__aurora--a {
  top: -52vmax;
  left: -24vmax;
  background: radial-gradient(circle at 40% 60%, rgba(13, 169, 169, 0.5), transparent 62%);
  animation: drift-a 28s ease-in-out infinite alternate;
}

.sea__aurora--b {
  bottom: -58vmax;
  right: -28vmax;
  background: radial-gradient(circle at 60% 40%, rgba(10, 122, 122, 0.42), transparent 64%);
  animation: drift-b 34s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(8vmax, 6vmax, 0) scale(1.12); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.08); }
  to   { transform: translate3d(-7vmax, -5vmax, 0) scale(0.96); }
}

/* faint horizontal wave-lines, echoing the logo mark */
.sea__lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 46px,
    rgba(20, 197, 197, 0.045) 46px,
    rgba(20, 197, 197, 0.045) 47px
  );
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 28%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 28%, #000 25%, transparent 72%);
}

/* film grain — breaks up gradient banding on large soft surfaces */
.sea::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  opacity: 0.05;
  mix-blend-mode: overlay;
}

/* ---------- the deck ---------- */

.deck {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin-block: auto; /* vertical centering on tall viewports */
  text-align: center;
}

.deck__id {
  margin-bottom: clamp(24px, 4.5vh, 34px);
}

.deck__ring {
  display: inline-flex;
  padding: 4px;
  border-radius: 50%;
  background: conic-gradient(from 160deg, #14c5c5, #0a7a7a 40%, #14c5c5 65%, #063d3d 85%, #14c5c5);
  box-shadow:
    0 0 0 1px rgba(20, 197, 197, 0.22),
    0 10px 40px -8px rgba(20, 197, 197, 0.4);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.deck__avatar {
  display: block;
  width: clamp(88px, 22vw, 104px);
  height: clamp(88px, 22vw, 104px);
  border-radius: 50%;
  background: #060b0c;
  border: 4px solid #060b0c;
}

.deck__name {
  font-family: 'Space Grotesk', var(--display);
  font-weight: 700;
  font-size: clamp(1.85rem, 7vw, 2.55rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 16px 0 6px;
  animation: rise 0.7s 0.08s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.deck__handle {
  font-family: 'Space Grotesk', var(--body);
  color: var(--teal-glow);
  font-size: clamp(0.85rem, 3.5vw, 0.95rem);
  letter-spacing: 0.05em;
  margin: 0 0 14px;
  animation: rise 0.7s 0.14s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.deck__bio {
  color: var(--type-muted);
  font-size: clamp(0.92rem, 3.8vw, 1rem);
  line-height: 1.6;
  max-width: 36ch;
  margin: 0 auto;
  text-wrap: balance;
  animation: rise 0.7s 0.2s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

/* ---------- pills ---------- */

.deck__links {
  display: grid;
  gap: clamp(11px, 1.8vh, 14px);
  margin-bottom: clamp(24px, 4.5vh, 34px);
}

.pill {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 16px);
  min-height: 68px;
  padding: 12px clamp(16px, 4.5vw, 24px);
  border-radius: 999px;
  text-align: left;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(22, 30, 30, 0.92), rgba(15, 21, 21, 0.92));
  border: 1px solid rgba(42, 56, 56, 0.95);
  box-shadow: 0 6px 22px -12px rgba(0, 0, 0, 0.8);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.pill:nth-child(1) { animation-delay: 0.26s; }
.pill:nth-child(2) { animation-delay: 0.32s; }
.pill:nth-child(3) { animation-delay: 0.38s; }
.pill:nth-child(4) { animation-delay: 0.44s; }
.pill:nth-child(5) { animation-delay: 0.5s; }

.pill:active {
  transform: scale(0.985);
}

.pill:focus-visible {
  outline: 2px solid var(--teal-glow);
  outline-offset: 3px;
  border-color: var(--teal);
}

.pill__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(38px, 10vw, 44px);
  height: clamp(38px, 10vw, 44px);
  border-radius: 50%;
  color: var(--teal-glow);
  background: rgba(20, 197, 197, 0.09);
  border: 1px solid rgba(20, 197, 197, 0.24);
}

.pill__icon svg {
  width: clamp(18px, 5vw, 21px);
  height: clamp(18px, 5vw, 21px);
}

.pill__label {
  flex: 1;
  min-width: 0;
}

.pill__label strong {
  display: block;
  font-family: 'Space Grotesk', var(--body);
  font-weight: 600;
  font-size: clamp(0.95rem, 4vw, 1.02rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill__label small {
  display: block;
  color: var(--type-muted);
  font-size: clamp(0.78rem, 3.2vw, 0.84rem);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill__go {
  flex: none;
  color: var(--type-faint);
  font-size: 1.05rem;
  transition: transform 0.16s ease, color 0.16s ease;
}

/* hover treatments only where a real pointer exists — no sticky
   hover states on touch screens */
@media (hover: hover) and (pointer: fine) {
  .pill:hover {
    transform: translateY(-2px);
    border-color: var(--teal);
    background: linear-gradient(180deg, rgba(26, 36, 36, 0.96), rgba(18, 26, 26, 0.96));
    box-shadow: 0 14px 38px -14px rgba(20, 197, 197, 0.45);
  }
  .pill:hover .pill__go {
    transform: translateX(3px);
    color: var(--teal-glow);
  }
  .pill--tide:hover {
    background: linear-gradient(135deg, #14c5c5, #0da9a9);
    border-color: var(--teal-glow);
    box-shadow: 0 18px 46px -14px rgba(20, 197, 197, 0.7);
  }
}

/* CTA pill — solid tide */
.pill--tide {
  background: linear-gradient(135deg, #0da9a9, #0a7a7a);
  border-color: rgba(20, 197, 197, 0.55);
  box-shadow: 0 12px 34px -12px rgba(13, 169, 169, 0.6);
}

.pill--tide .pill__icon {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.pill--tide .pill__label strong { color: #ffffff; }
.pill--tide .pill__label small  { color: rgba(232, 241, 241, 0.88); }
.pill--tide .pill__go           { color: rgba(255, 255, 255, 0.8); }

/* ---------- small screens ---------- */

@media (max-width: 360px) {
  .pill__go { display: none; }        /* give the label the full width */
  .pill { min-height: 62px; }
}

/* ---------- motion ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .sea__aurora,
  .deck__ring,
  .deck__name,
  .deck__handle,
  .deck__bio,
  .pill {
    animation: none;
  }
  .pill,
  .pill__go {
    transition: none;
  }
}
