/* ==========================================================================
   wneverlie — Dark Matte Slate Monochromatic v4
   Cinzel display font, atmospheric lightning storm,
   rich social cards, community servers, animated info, and 4 snap sections.
   ========================================================================== */

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

html, body {
  height: 100%;
  overflow: hidden;
  background-color: #050507;
  color: #94a3b8;
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
}

/* ---- Display Fonts ---- */
.font-cinzel {
  font-family: 'Cinzel', serif;
}
.font-mono-tech {
  font-family: 'JetBrains Mono', monospace;
}

/* ---- Fullscreen Scroll-Snap Container (4 Sections) ---- */
#scrollContainer {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#scrollContainer::-webkit-scrollbar {
  display: none;
}

/* ---- Individual Snap Section ---- */
.snap-section {
  scroll-snap-align: start;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
}

.section-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 780px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- Lightning & Atmosphere Background Canvas ---- */
#lightningCanvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Full-screen Flash overlay for sudden lightning illumination */
#lightningFlashOverlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: rgba(203, 213, 225, 0.08);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.06s ease;
}

/* Subtle Aura Glow behind center */
#ambientAura {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(650px, 85vw);
  height: min(650px, 85vw);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(148, 163, 184, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  animation: auraBreath 9s ease-in-out infinite;
}
@keyframes auraBreath {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.45; }
  50%      { transform: translate(-50%, -50%) scale(1.1); opacity: 0.85; }
}

/* ---- HUD: Bottom-Left (Dev Credit Strictly Here) ---- */
#hud {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 100;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  line-height: 1.8;
  color: #475569;
  border-left: 1px solid #1e293b;
  padding-left: 12px;
  pointer-events: none;
}
#hud span {
  color: #94a3b8;
  font-weight: 500;
}

/* ---- Top-Right Controls: Lang + Mute Toggle ---- */
.top-right-bar {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
}

#btnLang {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.15em;
  padding: 6px 13px;
  border-radius: 6px;
  border: 1px solid #1e293b;
  background: rgba(11, 12, 16, 0.85);
  color: #64748b;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}
#btnLang:hover {
  border-color: #334155;
  color: #cbd5e1;
}

/* Minimalist Audio Mute/Unmute Pill (No player panel, just clean sound toggle) */
#btnAudioToggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 6px;
  border: 1px solid #1e293b;
  background: rgba(11, 12, 16, 0.85);
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}
#btnAudioToggle:hover {
  border-color: #334155;
  color: #cbd5e1;
}
#btnAudioToggle .sound-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}
#btnAudioToggle .sound-bar {
  width: 2px;
  height: 100%;
  background: #64748b;
  border-radius: 1px;
  transition: background 0.25s;
}
#btnAudioToggle.playing .sound-bar:nth-child(1) { animation: barDance 0.8s ease-in-out infinite alternate; }
#btnAudioToggle.playing .sound-bar:nth-child(2) { animation: barDance 0.6s ease-in-out 0.2s infinite alternate; }
#btnAudioToggle.playing .sound-bar:nth-child(3) { animation: barDance 0.9s ease-in-out 0.4s infinite alternate; }
#btnAudioToggle.playing .sound-bar { background: #cbd5e1; }
@keyframes barDance {
  0%   { height: 30%; }
  100% { height: 100%; }
}

/* ---- 4-Section Right Nav Dots ---- */
.nav-dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #334155;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-dot.active {
  background: #cbd5e1;
  transform: scale(1.4);
  box-shadow: 0 0 10px rgba(203, 213, 225, 0.4);
}

/* ---- Section 1: Hero ---- */
@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(35px) scale(0.97);
    filter: blur(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.hero-3d-wrapper {
  width: min(220px, 50vw);
  height: min(220px, 50vw);
  margin: 0 auto 12px auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  cursor: grab;
}
.hero-3d-wrapper:active {
  cursor: grabbing;
}
.hero-3d-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  pointer-events: auto;
}

.hero-main-title {
  font-size: clamp(56px, 13vw, 115px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #e2e8f0;
  text-shadow: 0 0 50px rgba(226, 232, 240, 0.18);
  animation: heroFadeUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: text-shadow 0.4s ease;
}
.hero-main-title:hover {
  text-shadow: 0 0 65px rgba(226, 232, 240, 0.35);
}

.hero-separator {
  width: 44px;
  height: 1px;
  background: #334155;
  margin: 22px auto;
  animation: heroFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-bio-quote {
  font-family: 'Cinzel', serif;
  font-size: clamp(14px, 2.5vw, 18px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 600;
  animation: heroFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.scroll-indicator-wrap {
  margin-top: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #475569;
  cursor: pointer;
  animation: heroFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.75s both;
  transition: color 0.3s ease;
}
.scroll-indicator-wrap:hover {
  color: #94a3b8;
}
.scroll-indicator-wrap .stem-line {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, #475569, transparent);
  animation: stemPulse 2s ease-in-out infinite;
}
@keyframes stemPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(1); }
  50%      { opacity: 1;    transform: scaleY(1.2); }
}

/* ---- Generic Section Header (Animated on Reveal) ---- */
.section-headline {
  font-family: 'Cinzel', serif;
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #e2e8f0;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.section-subline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease 0.1s, transform 0.8s ease 0.1s;
}
.revealed .section-headline,
.revealed .section-subline {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Section 2: BAĞLANTILAR (Rich & Filled Social Display) ---- */
.social-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.social-card-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid #1e293b;
  background: rgba(15, 17, 23, 0.6);
  backdrop-filter: blur(12px);
  text-decoration: none;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(20px);
}
.revealed .social-card-item {
  opacity: 1;
  transform: translateY(0);
}
.social-card-item:hover {
  transform: translateY(-4px);
  border-color: #475569;
  background: rgba(30, 41, 59, 0.45);
  color: #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.social-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.social-card-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-card-meta {
  text-align: left;
  display: flex;
  flex-direction: column;
}
.social-card-name {
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.05em;
}
.social-card-desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: #64748b;
  letter-spacing: 0.05em;
  margin-top: 1px;
}

/* ---- Section 3: COMMUNITY / TOPLULUK (Discord Servers) ---- */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.server-card {
  padding: 22px;
  border-radius: 14px;
  border: 1px solid #1e293b;
  background: rgba(15, 17, 23, 0.7);
  backdrop-filter: blur(14px);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(22px);
}
.revealed .server-card {
  opacity: 1;
  transform: translateY(0);
}
.server-card:hover {
  transform: translateY(-5px);
  border-color: #475569;
  background: rgba(22, 26, 36, 0.85);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
}

.server-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.server-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #1e293b;
  border: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-weight: 800;
  font-size: 15px;
}
.server-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #334155;
  background: rgba(30, 41, 59, 0.5);
  color: #94a3b8;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.server-name {
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 4px;
}
.server-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 18px;
}

.server-join-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: rgba(30, 41, 59, 0.5);
  color: #cbd5e1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.25s ease;
}
.server-join-btn:hover {
  border-color: #64748b;
  background: rgba(51, 65, 85, 0.6);
  color: #f1f5f9;
}
.server-join-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ---- Section 4: BİLGİ (Sequential Animated Card) ---- */
.info-card-box {
  width: 100%;
  max-width: 480px;
  padding: 22px 24px;
  border-radius: 14px;
  border: 1px solid #1e293b;
  background: rgba(15, 17, 23, 0.7);
  backdrop-filter: blur(14px);
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  min-height: 130px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
  opacity: 0;
  transform: translateY(22px);
}
.revealed .info-card-box {
  opacity: 1;
  transform: translateY(0);
}
.info-card-box:hover {
  border-color: #334155;
}

@keyframes cardSlideIn {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
@keyframes cardSlideOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-14px) scale(0.98);
    filter: blur(4px);
  }
}
.card-content-in {
  animation: cardSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.card-content-out {
  animation: cardSlideOut 0.35s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

.info-progress-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #475569;
  width: 0%;
  transition: width 0.08s linear;
}

.mail-footer-link {
  display: inline-block;
  margin-top: 26px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: #475569;
  text-decoration: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s, color 0.25s ease;
}
.revealed .mail-footer-link {
  opacity: 1;
  transform: translateY(0);
}
.mail-footer-link:hover {
  color: #94a3b8;
}

/* ---- Persistent glowing scroll hint ---- */
#globalScrollHint {
  position: fixed;
  left: 50%;
  bottom: 24px;
  width: 38px;
  height: 38px;
  transform: translateX(-50%);
  z-index: 120;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: .9;
  transition: opacity .3s ease, transform .3s ease;
  filter: drop-shadow(0 0 8px rgba(226,232,240,.55));
}
#globalScrollHint.hidden { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(10px); }
#globalScrollHint span {
  position: absolute;
  left: 50%;
  width: 13px;
  height: 13px;
  border-right: 1.5px solid #e2e8f0;
  border-bottom: 1.5px solid #e2e8f0;
  transform: translateX(-50%) rotate(45deg);
  animation: scrollGlowDown 1.7s infinite;
}
#globalScrollHint span:first-child { top: 4px; }
#globalScrollHint span:last-child { top: 14px; animation-delay: .22s; }
@keyframes scrollGlowDown {
  0% { opacity: .15; transform: translateX(-50%) translateY(-3px) rotate(45deg); }
  50% { opacity: 1; }
  100% { opacity: .08; transform: translateX(-50%) translateY(7px) rotate(45deg); }
}

/* ---- Discord identity cards (Biz Kimiz) ---- */
.discord-profiles-block {
  width: 100%;
  max-width: 1120px;
  margin: 18px auto 0;
}
.discord-profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.discord-profile-card {
  position: relative;
  min-height: 246px;
  overflow: hidden;
  border-radius: 28px;
  text-decoration: none;
  color: #0f172a;
  isolation: isolate;
  opacity: 0;
  transform: translateY(20px);
  transition: transform .35s cubic-bezier(.4,0,.2,1), filter .35s ease, opacity .45s ease;
  --profile-image: radial-gradient(circle at 50% 20%, rgba(125,125,125,.32), rgba(0,0,0,0) 55%);
}
.revealed .discord-profile-card { opacity: 1; transform: translateY(0); }
.discord-profile-card::before {
  content: "";
  position: absolute;
  inset: -14px;
  background:
    radial-gradient(circle at 15% 15%, rgba(255,255,255,.35), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(255,255,255,.14), transparent 22%),
    linear-gradient(140deg, rgba(255,255,255,.1), rgba(255,255,255,0) 46%);
  filter: blur(26px);
  opacity: .85;
  z-index: -3;
}
.discord-profile-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.12)),
    repeating-linear-gradient(180deg, rgba(255,255,255,.07) 0 1px, rgba(0,0,0,0) 1px 4px);
  mix-blend-mode: soft-light;
  opacity: .45;
  pointer-events: none;
}
.discord-profile-card:hover {
  transform: translateY(-6px) rotate(-.35deg) scale(1.01);
  filter: drop-shadow(0 24px 38px rgba(0,0,0,.42));
}
.identity-panel {
  position: relative;
  min-height: 246px;
  padding: 24px 22px 20px;
  border-radius: 28px;
  border: 1px solid rgba(15,23,42,.3);
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(231,231,231,.93)),
    var(--profile-image);
  box-shadow:
    0 18px 45px rgba(0,0,0,.28),
    inset 0 0 0 1px rgba(255,255,255,.6),
    inset 0 0 45px rgba(0,0,0,.08);
}
.identity-panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 21px;
  border: 6px solid rgba(18,18,18,.86);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.06),
    0 0 0 1px rgba(0,0,0,.25);
  pointer-events: none;
}
.identity-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 25% 18%, rgba(255,255,255,.36), transparent 20%),
    radial-gradient(circle at 90% 78%, rgba(0,0,0,.12), transparent 24%),
    var(--profile-image);
  background-size: auto, auto, cover;
  background-position: center;
  filter: grayscale(1) contrast(.82) blur(16px);
  opacity: .3;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.identity-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 150px;
}
.identity-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.identity-avatar-wrap {
  position: relative;
  width: 132px;
  height: 132px;
  flex: 0 0 132px;
}
.identity-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,.92);
  background:
    linear-gradient(180deg, rgba(16,18,20,.15), rgba(0,0,0,.42)),
    linear-gradient(135deg, #0f172a, #475569);
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  font: 700 34px/1 'Space Grotesk', sans-serif;
  letter-spacing: .08em;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
.identity-avatar-status {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ef4444;
  border: 5px solid rgba(255,255,255,.95);
  box-shadow: 0 0 0 2px rgba(0,0,0,.18);
}
.identity-marks {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.identity-mark-circle {
  width: 22px;
  height: 12px;
  border: 4px solid #111827;
  border-radius: 999px;
}
.identity-mark-triangle {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 16px solid #d946ef;
  opacity: .9;
}
.identity-id-pill {
  position: relative;
  z-index: 2;
  margin-right: 8px;
  padding: 18px 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8b8b8b, #5f5f5f);
  color: #f8fafc;
  border: 1px solid rgba(15,23,42,.35);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.28), 0 8px 20px rgba(0,0,0,.18);
  font: 700 clamp(24px, 3vw, 36px)/1 'JetBrains Mono', monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0,0,0,.34);
  max-width: 45%;
  overflow-wrap: anywhere;
  text-align: center;
}
.identity-bottom {
  position: relative;
  z-index: 2;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding-inline: 6px;
}
.identity-name-small {
  font: 700 10px/1 'JetBrains Mono', monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(15,23,42,.56);
}
.identity-name-value {
  font: 700 clamp(17px, 2vw, 22px)/1.1 'Space Grotesk', sans-serif;
  letter-spacing: .02em;
  color: #0f172a;
  text-shadow: 0 1px 0 rgba(255,255,255,.3);
  word-break: break-word;
}

@media (max-width: 860px) {
  .discord-profiles-grid { grid-template-columns: 1fr; }
  .identity-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .identity-id-pill {
    max-width: 100%;
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .discord-profile-card,
  .identity-panel { min-height: 274px; }
  .identity-panel { padding: 20px 18px 18px; }
  .identity-panel::before { inset: 9px; border-width: 5px; }
  .identity-left { gap: 14px; }
  .identity-avatar-wrap { width: 98px; height: 98px; flex-basis: 98px; }
  .identity-avatar-status { width: 22px; height: 22px; border-width: 4px; }
  .identity-id-pill { padding: 14px 18px; font-size: 24px; }
  .identity-name-value { font-size: 18px; }
  #globalScrollHint { bottom: 16px; }
}

/* ---- WHO WE ARE / Identity cards redesign ---- */
.identity-wall {
  width: 100%;
  max-width: 980px;
  margin: 6px auto 0;
}
.identity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.identity-card.discord-profile-card {
  --profile-bg: radial-gradient(circle at 20% 20%, rgba(73,85,110,.12) 0%, rgba(255,255,255,0) 42%);
  position: relative;
  height: 220px;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: #111827;
  border: 1px solid rgba(255,255,255,.42);
  background:
    linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(243,244,246,.97) 100%),
    var(--profile-bg);
  box-shadow:
    0 28px 70px rgba(0,0,0,.28),
    inset 0 0 0 1px rgba(17,24,39,.06),
    inset 0 -16px 32px rgba(17,24,39,.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 22px;
  opacity: 0;
  transform: translateY(26px);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, filter .35s ease, opacity .35s ease;
}
.revealed .identity-card.discord-profile-card { opacity: 1; transform: translateY(0); }
.identity-card.discord-profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,0) 20%, rgba(0,0,0,.08) 100%),
    var(--profile-bg);
  background-size: cover;
  background-position: center;
  mix-blend-mode: multiply;
  opacity: .2;
}
.identity-card.discord-profile-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 18px;
  border: 2px solid rgba(17,24,39,.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  pointer-events: none;
}
.identity-card.discord-profile-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255,255,255,.65);
  box-shadow:
    0 30px 78px rgba(0,0,0,.34),
    inset 0 0 0 1px rgba(17,24,39,.07),
    inset 0 -20px 36px rgba(17,24,39,.07);
  filter: saturate(1.03);
}
.identity-noise {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 16px 14px, rgba(0,0,0,.2) 0 3px, transparent 4px),
    radial-gradient(circle at 90% 14%, rgba(0,0,0,.15) 0 4px, transparent 5px),
    radial-gradient(circle at 18% 90%, rgba(0,0,0,.15) 0 3px, transparent 4px),
    radial-gradient(circle at 86% 84%, rgba(0,0,0,.18) 0 5px, transparent 6px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.035) 0 2px, transparent 2px 6px);
  mix-blend-mode: multiply;
  opacity: .42;
  pointer-events: none;
}
.identity-inner-frame {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(0,0,0,.18), transparent 18%),
    radial-gradient(circle at top right, rgba(0,0,0,.18), transparent 18%),
    radial-gradient(circle at bottom left, rgba(0,0,0,.18), transparent 18%),
    radial-gradient(circle at bottom right, rgba(0,0,0,.18), transparent 18%);
  opacity: .75;
  pointer-events: none;
}
.identity-top-row,
.identity-bottom-row {
  position: relative;
  z-index: 2;
}
.identity-top-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}
.identity-avatar {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255,255,255,.7), rgba(17,24,39,.08)),
    #d8dde5;
  background-size: cover;
  background-position: center;
  border: 4px solid rgba(255,255,255,.92);
  box-shadow: 0 10px 24px rgba(0,0,0,.18), 0 0 0 1px rgba(17,24,39,.12);
}
.identity-glyphs {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  opacity: .86;
  font-size: 20px;
  letter-spacing: .04em;
  filter: blur(.15px);
}
.identity-glyphs span:last-child { color: #db61ff; }
.identity-code {
  min-width: 102px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(120,120,128,.8), rgba(96,96,104,.95));
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  letter-spacing: .12em;
  text-align: center;
  box-shadow: inset 0 2px 6px rgba(255,255,255,.25), inset 0 -3px 7px rgba(0,0,0,.18), 0 8px 20px rgba(0,0,0,.16);
}
.identity-bottom-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.identity-main-name {
  font-size: 25px;
  line-height: 1;
  letter-spacing: .015em;
  font-weight: 800;
  color: #0f172a;
  text-shadow: 0 1px 0 rgba(255,255,255,.45);
  word-break: break-word;
}
.identity-sub-name {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #334155;
  opacity: .86;
}
@media (max-width: 768px) {
  .identity-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .identity-card.discord-profile-card {
    height: 208px;
    padding: 18px;
  }
  .identity-avatar {
    width: 82px;
    height: 82px;
  }
  .identity-code {
    min-width: 88px;
    padding: 8px 12px;
    font-size: 24px;
  }
  .identity-main-name {
    font-size: 22px;
  }
}


/* ---- Identity cards: full photo + Discord name only ---- */
.identity-card.identity-photo-card.discord-profile-card {
  position: relative;
  min-height: 235px;
  height: 235px;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.20);
  background-color: #0a0c10;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  box-shadow: 0 24px 60px rgba(0,0,0,.34), inset 0 0 0 1px rgba(255,255,255,.03);
  text-decoration: none;
  color: #f8fafc;
}
.identity-card.identity-photo-card.discord-profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(0,0,0,.08) 68%, rgba(0,0,0,.64) 100%);
  opacity: 1;
  mix-blend-mode: normal;
  pointer-events: none;
}
.identity-card.identity-photo-card.discord-profile-card::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 0 26px rgba(255,255,255,.025);
  pointer-events: none;
}
.identity-card.identity-photo-card.discord-profile-card:hover {
  transform: translateY(-6px) scale(1.012);
  border-color: rgba(255,255,255,.32);
  box-shadow: 0 30px 78px rgba(0,0,0,.44), 0 0 22px rgba(148,163,184,.08);
  filter: none;
}
.identity-discord-only {
  position: relative;
  z-index: 3;
  margin: 0 0 18px 20px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(5,7,11,.46);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(248,250,252,.92);
  text-shadow: 0 2px 10px rgba(0,0,0,.72);
}
@media (max-width: 768px) {
  .identity-card.identity-photo-card.discord-profile-card {
    min-height: 210px;
    height: 210px;
  }
  .identity-discord-only {
    margin: 0 0 15px 16px;
    font-size: 9px;
  }
}
