/* ============================================================================
   THEME TOKENS — edit ONLY this block to rebrand the entire page.
   Every color, radius, size, shadow and gradient stop below lives here.
   ========================================================================= */
:root {

  /* ── Base palette ──────────────────────────────────────────────────── */
  --color-bg:            #08080c;   /* page background                     */
  --color-bg-deep:       #050508;   /* vignette / footer edge              */
  --color-ink:           #ffffff;   /* pure light, used for solid buttons  */
  --color-ink-inverse:   #0a0a0f;   /* text on top of solid light fills    */

  /* ── Accent & gradient stops ───────────────────────────────────────── */
  --color-accent-1:      #a855f7;   /* violet                              */
  --color-accent-2:      #ec4899;   /* pink                                */
  --color-accent-3:      #6366f1;   /* indigo                              */

  /* ── Surfaces & borders (alpha values ride on --color-ink) ─────────── */
  --surface-1:           rgba(255, 255, 255, 0.045);  /* link button       */
  --surface-2:           rgba(255, 255, 255, 0.075);  /* hover / socials   */
  --surface-3:           rgba(255, 255, 255, 0.055);  /* modal card hover  */
  --surface-btn:         #16161f;                     /* Cancel button fill*/
  --surface-modal:       #12121a;                     /* modal base fill   */
  --border-1:            rgba(255, 255, 255, 0.09);   /* default hairline  */
  --border-2:            rgba(255, 255, 255, 0.22);   /* hover hairline    */
  --border-focus:        #c084fc;                     /* focus ring        */

  /* ── Text ──────────────────────────────────────────────────────────── */
  --text-1:              rgba(255, 255, 255, 0.96);   /* primary           */
  --text-2:              rgba(255, 255, 255, 0.64);   /* muted / bio       */
  --text-3:              rgba(255, 255, 255, 0.42);   /* footer / handle   */

  /* ── Backdrop ──────────────────────────────────────────────────────── */
  --backdrop-fill:       rgba(0, 0, 0, 0.78);  /* dim-led, not glass-led    */
  --backdrop-blur:       3px;
  --scrim:               rgba(0, 0, 0, 0.72);  /* caption gradient on media */
  --surface-blur:        12px;

  /* ── Typography ────────────────────────────────────────────────────── */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", sans-serif;
  --fs-name:             1.5rem;
  --fs-handle:           0.9rem;
  --fs-bio:              0.925rem;
  --fs-link:             1rem;
  --fs-badge:            0.6875rem;
  --fs-footer:           0.75rem;
  --fs-modal-mark:       2.5rem;
  --fs-modal-title:      1.1rem;
  --fs-modal-body:       0.9rem;
  --fs-btn:              0.9375rem;
  --lh-tight:            1.2;
  --lh-body:             1.5;
  --ls-mark:             -0.04em;
  --ls-name:             -0.02em;
  --ls-badge:            0.06em;

  /* ── Radii ─────────────────────────────────────────────────────────── */
  --radius-link:         14px;
  --radius-btn:          12px;
  --radius-modal:        18px;
  --radius-badge:        999px;
  --radius-pill:         999px;

  /* ── Spacing & layout ──────────────────────────────────────────────── */
  --page-max:            480px;
  --page-pad:            20px;
  --gap-link:            12px;
  --link-align:          center;               /* center | flex-start       */
  --link-text-align:     center;               /* center | left             */
  --gap-section:         28px;
  --modal-max:           340px;
  --modal-pad:           24px;
  --hero-ratio:          10 / 9;               /* hero photo aspect ratio   */
  --hero-fade:           58%;                  /* where the photo starts to fade */
  --hero-name-inset:     18px;
  --media-ratio:         16 / 9;               /* thumbnail link aspect     */
  --link-h:              60px;
  --link-h-featured:     68px;
  --btn-h:               48px;
  --social-size:         44px;
  --social-icon:         20px;                 /* glyph inside a social chip */
  --icon-size:           24px;
  --tap-min:             44px;

  /* ── Shadows & glow ────────────────────────────────────────────────── */
  --shadow-link:         0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-link-hover:   0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-modal:        0 24px 64px rgba(0, 0, 0, 0.65);
  --shadow-hero-text:    0 2px 18px rgba(0, 0, 0, 0.75);
  --glow-hover:          0 0 24px rgba(168, 85, 247, 0.28);
  --glow-featured:       0 0 28px rgba(236, 72, 153, 0.35);
  --ring-focus:          0 0 0 3px rgba(192, 132, 252, 0.55);

  /* ── Motion ────────────────────────────────────────────────────────── */
  --dur-fast:            150ms;
  --dur-mid:             180ms;
  --dur-slow:            200ms;
  --dur-enter:           420ms;
  --stagger:             60ms;
  --ease:                cubic-bezier(0.22, 0.61, 0.36, 1);
  --blob-speed:          28s;
  --pulse-speed:         2.8s;
  --lift:                -2px;
  --press:               0.98;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;          /* dvh accounts for mobile URL-bar collapse */
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
  background: var(--color-bg);
  color: var(--text-1);
  font-family: var(--font-sans);
  line-height: var(--lh-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }

h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ============================================================================
   FOCUS
   ========================================================================= */
:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
  border-radius: var(--radius-btn);
}

.skip-link {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -150%);
  z-index: 20;
  padding: 10px 16px;
  background: var(--color-ink);
  color: var(--color-ink-inverse);
  border-radius: 0 0 var(--radius-btn) var(--radius-btn);
  font-size: var(--fs-footer);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ============================================================================
   AMBIENT BACKGROUND
   ========================================================================= */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, transparent, var(--color-bg-deep));
}

.ambient__blob {
  position: absolute;
  width: 62vmax; height: 62vmax;
  border-radius: var(--radius-pill);
  filter: blur(90px);
  opacity: 0.28;
  will-change: transform;
}

.ambient__blob--a {
  top: -28vmax; left: -20vmax;
  background: var(--color-accent-1);
  animation: drift-a var(--blob-speed) ease-in-out infinite alternate;
}
.ambient__blob--b {
  top: 18vmax; right: -26vmax;
  background: var(--color-accent-2);
  animation: drift-b calc(var(--blob-speed) * 1.3) ease-in-out infinite alternate;
}
.ambient__blob--c {
  bottom: -32vmax; left: 10vmax;
  background: var(--color-accent-3);
  animation: drift-c calc(var(--blob-speed) * 1.6) ease-in-out infinite alternate;
}

@keyframes drift-a { to { transform: translate3d(14vmax, 10vmax, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-16vmax, 8vmax, 0) scale(0.9); } }
@keyframes drift-c { to { transform: translate3d(10vmax, -12vmax, 0) scale(1.1); } }

/* ============================================================================
   LAYOUT
   ========================================================================= */
.page {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0
           calc(var(--page-pad) + env(safe-area-inset-right))
           calc(var(--gap-section) * 1.5 + env(safe-area-inset-bottom))
           calc(var(--page-pad) + env(safe-area-inset-left));
}

/* ============================================================================
   PROFILE
   ========================================================================= */
.hero {
  position: relative;
  margin: 0 calc(var(--page-pad) * -1);
  aspect-ratio: var(--hero-ratio);
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, var(--color-ink) var(--hero-fade), transparent);
          mask-image: linear-gradient(to bottom, var(--color-ink) var(--hero-fade), transparent);
}

/* Name sits over the fading lower edge of the photo. */
.hero__name {
  position: absolute;
  left: 0; right: 0; bottom: var(--hero-name-inset);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: var(--fs-name);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-name);
  text-align: center;
  text-shadow: var(--shadow-hero-text);
}

.profile__verified { display: inline-flex; color: var(--color-accent-1); }
.profile__verified svg { width: 18px; height: 18px; }

/* ── Social row ─────────────────────────────────────────────────────── */
.socials {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;
  margin: 16px 0 var(--gap-section);
}

.social {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--social-size);
  height: var(--social-size);
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-pill);
  background: var(--surface-1);
  color: var(--text-2);
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.social svg,
.social .icon-img { width: var(--social-icon); height: var(--social-icon); object-fit: contain; }

/* Bare variant — drops the chip so a full-colour logo stands on its own.
   Add 'bare: true' to a social entry in CONFIG to use it. */
.social--bare { border-color: transparent; background: none; }
.social--bare .icon-img { width: var(--social-size); height: var(--social-size); }

.social:active { transform: scale(var(--press)); }

/* ============================================================================
   LINK STACK
   ========================================================================= */
.links {
  display: flex;
  flex-direction: column;
  gap: var(--gap-link);
}

.link {
  display: grid;
  grid-template-columns: var(--icon-size) 1fr var(--icon-size);
  align-items: center;
  gap: 12px;
  min-height: var(--link-h);
  padding: 0 16px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-link);
  background: var(--surface-1);
  box-shadow: var(--shadow-link);
  color: var(--text-1);
  font-size: var(--fs-link);
  font-weight: 500;
  -webkit-backdrop-filter: blur(var(--surface-blur));
          backdrop-filter: blur(var(--surface-blur));
  transition: transform var(--dur-slow) var(--ease), border-color var(--dur-slow) var(--ease), background-color var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease);

  /* entrance */
  opacity: 0;
  animation: rise var(--dur-enter) var(--ease) forwards;
  animation-delay: calc(var(--index, 0) * var(--stagger));
}

.link:active { transform: scale(var(--press)); }

.link__icon,
.link__chevron { display: inline-flex; color: var(--text-2); }

.link__icon svg,
.link__chevron svg,
.link__icon .icon-img { width: var(--icon-size); height: var(--icon-size); object-fit: contain; }
.link__chevron { justify-self: end; }

.link__label {
  display: flex; align-items: center; justify-content: var(--link-align); gap: 8px;
  text-align: var(--link-text-align); min-width: 0;
}

.link__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link__badge {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: var(--radius-badge);
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  color: var(--text-1);
  font-size: var(--fs-badge);
  font-weight: 600;
  letter-spacing: var(--ls-badge);
  text-transform: uppercase;
  line-height: 1.4;
}

/* ── Media variant — image thumbnail with an overlaid caption ────────── */
.link--media {
  display: block;
  position: relative;
  min-height: 0;
  aspect-ratio: var(--media-ratio);
  padding: 0;
  overflow: hidden;
}

.link__media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 32px 14px 12px;
  background: linear-gradient(to top, var(--scrim), transparent);
  font-size: var(--fs-link);
  font-weight: 600;
}

.link__caption svg,
.link__caption .icon-img { width: 20px; height: 20px; flex: 0 0 auto; object-fit: contain; }
.link__caption .link__badge { margin-left: auto; }

/* ── Featured variant ───────────────────────────────────────────────── */
.link--featured {
  min-height: var(--link-h-featured);
  border-color: var(--border-2);
  background: linear-gradient(115deg, var(--color-accent-3), var(--color-accent-1), var(--color-accent-2));
  color: var(--text-1);
  font-weight: 600;
  box-shadow: var(--shadow-link), var(--glow-featured);
}

.link--featured .link__icon,
.link--featured .link__chevron { color: var(--text-1); }

.link--featured .link__badge {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-ink-inverse);
}

.link--featured {
  position: relative;
  animation: rise var(--dur-enter) var(--ease) forwards, pulse var(--pulse-speed) var(--ease) infinite;
  animation-delay: calc(var(--index, 0) * var(--stagger)), var(--dur-enter);
}


/* ── noscript fallback ──────────────────────────────────────────────── */
.noscript-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: var(--gap-link);
}
.noscript-links a {
  display: flex; align-items: center; justify-content: center;
  min-height: var(--link-h);
  padding: 0 16px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-link);
  background: var(--surface-1);
  font-size: var(--fs-link);
}

/* ============================================================================
   FOOTER
   ========================================================================= */
.footer {
  margin-top: var(--gap-section);
  text-align: center;
  color: var(--text-3);
  font-size: var(--fs-footer);
}
.footer__age { margin-top: 6px; }

/* ============================================================================
   AGE CONFIRMATION MODAL
   ========================================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: var(--page-pad);
  overscroll-behavior: contain;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--backdrop-fill);
  -webkit-backdrop-filter: blur(var(--backdrop-blur));
          backdrop-filter: blur(var(--backdrop-blur));
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease);
}

.modal__card {
  position: relative;
  width: 100%;
  max-width: var(--modal-max);
  padding: var(--modal-pad);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-modal);
  background: var(--surface-modal);
  box-shadow: var(--shadow-modal);
  text-align: center;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease);
}

.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__card { opacity: 1; transform: scale(1); }

.modal__mark {
  font-size: var(--fs-modal-mark);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-mark);
  color: var(--text-1);
}

.modal__title {
  margin-top: 6px;
  font-size: var(--fs-modal-title);
  font-weight: 600;
  color: var(--text-1);
}

.modal__body {
  margin-top: 10px;
  color: var(--text-2);
  font-size: var(--fs-modal-body);
}

/* ── Modal buttons ──────────────────────────────────────────────────── */
.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: var(--btn-h);
  border-radius: var(--radius-btn);
  font-size: var(--fs-btn);
  font-weight: 600;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.btn--primary {
  margin-top: 20px;
  border: 1px solid var(--color-ink);
  background: var(--color-ink);
  color: var(--color-ink-inverse);
}
.btn--primary:active { transform: scale(var(--press)); }

.btn--ghost {
  margin-top: 10px;
  border: 1px solid var(--border-1);
  background: var(--surface-btn);
  color: var(--text-2);
}
.btn--ghost:active { transform: scale(var(--press)); }

/* ============================================================================
   HOVER STATES — pointer devices only. On touch screens a tapped element
   keeps its :hover style until you tap elsewhere, so it is gated here.
   :active still fires on touch and gives the press feedback.
   ========================================================================= */
@media (hover: hover) and (pointer: fine) {
  .social:hover {
    transform: translateY(var(--lift));
    border-color: var(--border-2);
    background: var(--surface-2);
    color: var(--text-1);
  }

  .link:hover {
    transform: translateY(var(--lift));
    border-color: var(--border-2);
    background: var(--surface-2);
    box-shadow: var(--shadow-link-hover), var(--glow-hover);
  }

  .link:hover .link__chevron { color: var(--text-1); }
  .link--featured:hover { box-shadow: var(--shadow-link-hover), var(--glow-featured); }
  .btn--primary:hover { transform: translateY(var(--lift)); }

  .btn--ghost:hover {
    border-color: var(--border-2);
    background: var(--surface-3);
    color: var(--text-1);
  }
}

/* ============================================================================
   ANIMATION KEYFRAMES
   ========================================================================= */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { box-shadow: var(--shadow-link), var(--glow-featured); }
  50%      { box-shadow: var(--shadow-link-hover), var(--glow-hover); }
}

/* ============================================================================
   REDUCED MOTION — kill ambient drift, stagger, pulse and transitions
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .ambient__blob { animation: none; }
  .link, .link--featured { opacity: 1; animation: none; }

  /* Modal fades only — no scale. */
  .modal__backdrop, .modal__card { transition: opacity var(--dur-mid) linear; }
  .modal__card, .modal.is-open .modal__card { transform: none; }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================================
   NARROW SCREENS — no horizontal scroll at 320px
   ========================================================================= */
/* Blur radius scales with screen: big soft blobs are the heaviest paint on
   this page, and phones get the least GPU headroom. */
@media (max-width: 600px) {
  .ambient__blob { width: 78vmax; height: 78vmax; filter: blur(56px); opacity: 0.24; }
}

@media (max-width: 360px) {
  :root {
    --page-pad: 14px;
    --fs-name: 1.35rem;
    --gap-link: 10px;
  }
  .link:not(.link--media) { padding: 0 12px; gap: 8px; }
}
