/* =========================================================
   Josie Green — official link hub
   ========================================================= */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/outfit.woff2") format("woff2");
}

:root {
  --pink: #ff2e88;
  --pink-2: #ff7ab8;
  --pink-3: #ffb4d4;
  --plum: #1a030b;
  --cream: #fff4f9;
  --violet: #8a2be2;
  --stroke: rgba(255, 255, 255, 0.13);
  --font-display: "Instrument Serif", "Playfair Display", Georgia, serif;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  background: #180309;
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* ---------- ambient background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg::before {
  content: "";
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(58% 42% at 50% -6%, rgba(255, 46, 136, 0.5), transparent 72%),
    radial-gradient(46% 38% at 88% 82%, rgba(138, 43, 226, 0.38), transparent 72%),
    radial-gradient(38% 34% at 8% 76%, rgba(255, 122, 184, 0.3), transparent 72%),
    #170309;
}

.bg__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.bg__blob--1 { width: 460px; height: 460px; top: -150px; left: -110px; background: var(--pink); }
.bg__blob--2 { width: 400px; height: 400px; bottom: -150px; right: -90px; background: var(--violet); opacity: 0.35; }
.bg__blob--3 { width: 300px; height: 300px; top: 42%; right: 16%; background: var(--pink-2); opacity: 0.22; }

.bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  mix-blend-mode: overlay;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* ---------- stage & screens ---------- */
.stage {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100dvh;
}

.screen {
  grid-area: 1 / 1;
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 100dvh;
  padding: clamp(28px, 6vw, 56px) 20px 132px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.985);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.9, 0.25, 1), visibility 0.5s;
}

.screen.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ---------- intro (no panel, sits on the background) ---------- */
.intro {
  position: relative;
  width: min(100%, 460px);
  text-align: center;
}

/* soft scrim for legibility over the glow */
.intro::before {
  content: "";
  position: absolute;
  inset: -14% -16%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(14, 2, 8, 0.7), transparent 78%);
}

/* ---------- type ---------- */

.wordmark {
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(46px, 12vw, 76px);
  line-height: 0.88;
  letter-spacing: -0.015em;
  background: linear-gradient(180deg, #fff 6%, #ffd9e8 58%, #ff8fc2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 14px 30px rgba(255, 46, 136, 0.35));
}

.wordmark em { font-style: italic; }

.eyebrow {
  margin: 14px 0 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--pink-2);
}

.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 20px;
  color: var(--pink-2);
}

.rule i {
  display: block;
  width: min(70px, 18vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 184, 0.7));
}

.rule i:last-child { background: linear-gradient(90deg, rgba(255, 122, 184, 0.7), transparent); }
.rule b { font-size: 13px; font-weight: 400; }

.notice {
  margin: 0 auto;
  max-width: 36ch;
  font-size: clamp(13.5px, 3.6vw, 15px);
  line-height: 1.65;
  color: rgba(255, 244, 249, 0.72);
}

.notice strong { color: #fff; font-weight: 600; }

.fineprint {
  margin: 20px auto 0;
  max-width: 34ch;
  font-size: 11px;
  line-height: 1.55;
  color: rgba(255, 244, 249, 0.38);
}

/* ---------- buttons ---------- */
.gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 22px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #ff6aa9 0%, var(--pink) 52%, #dd0c6c 100%);
  box-shadow:
    0 16px 34px -12px rgba(255, 46, 136, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.5) 50%, transparent 62%);
  transform: translateX(-130%);
  transition: transform 0.7s ease;
}

.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -14px rgba(255, 46, 136, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn--primary:hover::after { transform: translateX(130%); }
.btn__arrow { font-size: 15px; transition: transform 0.25s ease; }
.btn--primary:hover .btn__arrow { transform: translateX(3px); }

.btn--ghost {
  color: rgba(255, 244, 249, 0.62);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 500;
}

.btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.075); }

.btn:focus-visible,
.social:focus-visible,
.link-card:focus-visible,
.key:focus-visible {
  outline: 2px solid var(--pink-3);
  outline-offset: 3px;
}

/* =========================================================
   LOCK
   ========================================================= */
.lock-title {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 8vw, 42px);
  line-height: 1.05;
  color: #fff;
}

.lock-sub {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 244, 249, 0.55);
}

.vault {
  position: relative;
  display: grid;
  place-items: center;
  gap: 18px;
  margin: 34px 0 0;
  padding: 8px 0 4px;
}

.lock {
  position: relative;
  width: 132px;
  height: 158px;
  transition: transform 0.4s cubic-bezier(0.2, 1.2, 0.3, 1), filter 0.4s ease;
}

.lock__shackle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 84px;
  height: 74px;
  margin-left: -42px;
  border: 12px solid #ffd3e6;
  border-bottom: 0;
  border-radius: 46px 46px 0 0;
  transform-origin: 18% 100%;
  transition: transform 0.65s cubic-bezier(0.25, 1.15, 0.3, 1), border-color 0.4s ease;
  box-shadow: 0 -2px 8px rgba(255, 46, 136, 0.25);
}

.lock__body {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 132px;
  height: 106px;
  border-radius: 28px;
  background: linear-gradient(158deg, #ff9dc9 0%, var(--pink) 52%, #c20d60 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    inset 0 -10px 22px rgba(120, 0, 55, 0.35),
    0 22px 44px -16px rgba(255, 46, 136, 0.8);
}

.lock__hole {
  position: absolute;
  top: 36%;
  left: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #38021a;
  transform: translateX(-50%);
  box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.7), 0 0 0 3px rgba(255, 255, 255, 0.28);
}

.lock__hole::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  width: 8px;
  height: 28px;
  border-radius: 0 0 5px 5px;
  background: #38021a;
  transform: translateX(-50%);
}

.lock.is-near { transform: scale(1.04); filter: drop-shadow(0 0 26px rgba(255, 46, 136, 0.75)); }
.lock.is-near .lock__shackle { border-color: #fff; }

.lock.is-open .lock__shackle { transform: translateY(-14px) rotate(-22deg); }
.lock.is-open { transform: scale(1.06); filter: drop-shadow(0 0 40px rgba(255, 46, 136, 0.95)); }


/* key sits on the page background — no tray/box */
.keytray {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin: 28px auto 0;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
}

.key {
  padding: 0;
  border: 0;
  background: none;
  font-size: 34px;
  line-height: 1;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  filter: drop-shadow(0 8px 16px rgba(255, 46, 136, 0.5));
  transition: filter 0.25s ease;
  will-change: transform;
}

.key:hover { filter: drop-shadow(0 10px 22px rgba(255, 46, 136, 0.8)); }
.key.is-dragging { cursor: grabbing; z-index: 40; position: relative; }
.key.is-snapping { transition: transform 0.45s cubic-bezier(0.2, 1.25, 0.4, 1); }

/* flash on unlock */
.flash {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(60% 60% at 50% 48%, rgba(255, 255, 255, 0.95), rgba(255, 122, 184, 0.55) 45%, transparent 78%);
}

.flash.is-on { animation: flash 0.85s ease-out forwards; }

@keyframes flash {
  0% { opacity: 0; }
  18% { opacity: 1; }
  100% { opacity: 0; }
}

/* =========================================================
   HUB
   ========================================================= */
.screen--links { padding-top: clamp(34px, 7vw, 64px); }

.hub {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: min(100%, 496px);
}

.hub__head { text-align: center; }

.avatar {
  width: 104px;
  height: 104px;
  margin: 0 auto 16px;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--pink), #ffd3e6, var(--violet), var(--pink-2), var(--pink));
  box-shadow: 0 20px 44px -16px rgba(255, 46, 136, 0.85);
}

.avatar picture,
.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #1c0410;
}

.hub__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 9vw, 50px);
  line-height: 1;
  background: linear-gradient(180deg, #fff 10%, #ffd9e8 60%, #ff8fc2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 12px 26px rgba(255, 46, 136, 0.35));
}

.hub__handle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 244, 249, 0.6);
}

.check {
  width: 18px;
  height: 18px;
  flex: none;
  display: block;
  overflow: visible;
  /* optical alignment with the @handle x-height */
  transform: translateY(0.5px);
}

.hub__tagline {
  margin: 8px 0 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 244, 249, 0.35);
}

/* link cards */
.links {
  display: grid;
  gap: 11px;
}

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.05);
  color: var(--cream);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.24s ease, background 0.24s ease, box-shadow 0.3s ease, border-color 0.24s ease;
  -webkit-tap-highlight-color: transparent;
}

.link-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(255, 122, 184, 0.4);
  box-shadow: 0 20px 36px -22px rgba(255, 46, 136, 0.85);
}

.link-card__badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 122, 184, 0.14);
  border: 1px solid rgba(255, 122, 184, 0.3);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--pink-3);
}

.link-card__text { display: flex; flex-direction: column; gap: 3px; text-align: left; flex: 1; min-width: 0; }
.link-card__title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.link-card__text strong { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; }
.link-card__text small { font-size: 11.5px; color: rgba(255, 244, 249, 0.45); letter-spacing: 0.04em; }
.link-card__new {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px 1px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff5ba3, var(--pink));
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 6px 14px -8px rgba(255, 46, 136, 0.9);
}
.link-card--new {
  border-color: rgba(255, 122, 184, 0.5);
  box-shadow: 0 16px 32px -22px rgba(255, 46, 136, 0.7);
}

.link-card__arrow {
  flex: none;
  font-size: 16px;
  color: rgba(255, 244, 249, 0.4);
  transition: transform 0.24s ease, color 0.24s ease;
}

.link-card:hover .link-card__arrow { transform: translateX(3px); color: #fff; }

/* featured (OnlyFans) */
.link-card--featured {
  border-color: rgba(255, 255, 255, 0.35);
  background: linear-gradient(118deg, #ff2e88 0%, #ff5ba3 45%, #ff8ec4 100%);
  box-shadow: 0 22px 46px -20px rgba(255, 46, 136, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #fff;
}

.link-card--featured::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, 0.45) 49%, transparent 62%);
  transform: translateX(-130%);
  animation: sheen 6s ease-in-out 1.4s infinite;
  pointer-events: none;
}

@keyframes sheen {
  0%, 55% { transform: translateX(-130%); }
  85%, 100% { transform: translateX(130%); }
}

.link-card--featured .link-card__badge {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.link-card--featured .link-card__text small { color: rgba(255, 255, 255, 0.82); }
.link-card--featured .link-card__arrow { color: #fff; }

.link-card--featured:hover { background: linear-gradient(118deg, #ff3d92 0%, #ff66ab 45%, #ff9bcc 100%); }

/* pending link state */
.link-card.is-pending .link-card__arrow { font-size: 0; }
.link-card.is-pending .link-card__arrow::after {
  content: "soon";
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.hub__note {
  margin: 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 244, 249, 0.32);
}

/* entrance stagger */
.screen--links.is-active .hub__head { animation: rise 0.7s cubic-bezier(0.2, 0.9, 0.25, 1) both; }
.screen--links.is-active .link-card { animation: rise 0.65s cubic-bezier(0.2, 0.9, 0.25, 1) both; }
.screen--links.is-active .link-card:nth-child(1) { animation-delay: 0.1s; }
.screen--links.is-active .link-card:nth-child(2) { animation-delay: 0.18s; }
.screen--links.is-active .link-card:nth-child(3) { animation-delay: 0.26s; }
.screen--links.is-active .link-card:nth-child(4) { animation-delay: 0.34s; }
.screen--links.is-active .hub__note { animation: rise 0.65s 0.42s cubic-bezier(0.2, 0.9, 0.25, 1) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}


/* =========================================================
   BLOCKED
   ========================================================= */
.blocked-emoji { font-size: 44px; line-height: 1; margin-top: 6px; }

.blocked-title {
  margin: 14px 0 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 9vw, 46px);
  color: #fff;
}

/* =========================================================
   PERSISTENT SOCIALS
   ========================================================= */
.socials {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: 14px clamp(12px, 4vw, 28px) calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(12, 2, 7, 0.94) 10%, rgba(12, 2, 7, 0.6) 60%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.socials__inner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.9);
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  color: #ffeaf4;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.social svg { width: 16px; height: 16px; flex: none; }

.social:hover {
  background: rgba(255, 46, 136, 0.24);
  transform: translateY(-1px);
}

.flag18 {
  display: inline-grid;
  place-items: center;
  margin-left: 2px;
  padding: 7px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff5ba3, var(--pink));
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(255, 46, 136, 0.9);
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 104px;
  z-index: 60;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 122, 184, 0.45);
  background: rgba(28, 4, 16, 0.92);
  color: #ffeaf4;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  transform: translate(-50%, 14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.2, 0.9, 0.25, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 420px) {
  .social { padding: 8px 10px; font-size: 11.5px; }
  .social svg { width: 14px; height: 14px; }
  .socials__inner { gap: 2px; }
  .flag18 { padding: 6px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}


.btn:active { transform: translateY(1px) scale(0.99); }
.btn--primary:active {
  box-shadow: 0 8px 20px -10px rgba(255, 46, 136, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.link-card:active { transform: translateY(-1px) scale(0.995); }
.social:active { transform: none; background: rgba(255, 46, 136, 0.32); }

/* larger touch target for the key */
.key {
  min-width: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
}


/* no-JS fallback */
.noscript {
  display: none;
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  padding: 64px 24px 120px;
  text-align: center;
}
.no-js .noscript { display: grid; place-items: center; align-content: center; }
.no-js .stage,
.no-js .socials { display: none; }
.noscript__card {
  width: min(100%, 460px);
}
.noscript h1 {
  margin: 16px 0 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 10vw, 56px);
  line-height: 0.95;
  background: linear-gradient(180deg, #fff 6%, #ffd9e8 58%, #ff8fc2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* hide social labels when four items would overflow */
@media (max-width: 560px) {
  .social span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .social { padding: 10px 12px; }
}

