/*
  DOTL Landing v2 (Rewrite)
  - Modern CSS architecture with custom properties
  - Layout via Grid/Flex only
  - Progressive enhancement for scroll-driven CSS (where supported)
  - Reduced motion support

  Note: HTML structure/classes come from public/new.php and are not renamed.
*/

/* ============================
   Base / Reset
   ============================ */

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; }
img, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; }
a { color: inherit; }

.lv2-char,
.lv2-word {
  display: inline-block;
  will-change: transform, opacity, filter;
}

:root {
  --bg: #0F0E0A;
  --surface: #1A1A17;
  --surface-2: #262420;
  --text: #D6C6A8;
  --text-strong: #FFFFFF;
  --muted: rgba(214,198,168,0.78);

  --accent: #e58e3c;        /* DOTL accent (site) */
  --accent-2: #FF4655;      /* Basement-inspired highlight */
  --accent-cool: #60a5fa;

  --border: rgba(214,198,168,0.12);
  --border-strong: rgba(229,181,60,0.25);

  --shadow-1: 0 20px 50px rgba(0,0,0,0.65), 0 8px 24px rgba(0,0,0,0.45);
  --shadow-2: 0 28px 60px rgba(0,0,0,0.70);
  --inner-highlight: inset 0 1px 0 rgba(229,181,60,0.06);

  --radius-card: 12px;
  --radius-btn: 8px;

  --container: 1120px;
  --gutter: 24px;

  --font-display: "Oxanium", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-body: "Share Tech Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Container queries foundation */
.dotl-section-content,
.dotl-section-contents {
  container-type: inline-size;
}

/* Hide native scrollbar everywhere */
.dotl-new-page,
.dotl-new-body {
  scrollbar-width: none;           /* Firefox */
  -ms-overflow-style: none;        /* IE / Edge legacy */
}
.dotl-new-page::-webkit-scrollbar,
.dotl-new-body::-webkit-scrollbar {
  display: none;                    /* Chrome / Safari / Edge */
  width: 0;
  height: 0;
}

.dotl-new-body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.45;
  overflow-x: clip;
  letter-spacing: 0.02em;
}

/* Background gradient (no WebGL) */
.dotl-fallback-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(229, 142, 60, 0.07) 0%, transparent 52%),
    radial-gradient(ellipse at 70% 60%, rgba(255, 70, 85, 0.045) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 85%, rgba(38, 36, 32, 0.14) 0%, transparent 40%),
    linear-gradient(180deg, rgba(15,14,10,0.0) 0%, rgba(15,14,10,0.35) 45%, rgba(15,14,10,0.85) 100%);
}

/* Accessibility */
.dotl-skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-btn);
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  transform: translateY(-120%);
  transition: transform 200ms var(--ease-out);
  z-index: 9999;
}
.dotl-skip-link:focus { transform: translateY(0); outline: none; }

/* Typography helpers (existing classes) */
.headline {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mono-text {
  font-family: var(--font-body);
  letter-spacing: 0.14em;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============================
   Layout primitives
   ============================ */

.dotl-new-main { position: relative; }

.dotl-section {
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}

.dotl-section-content,
.dotl-section-contents {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
}

/* Scroll-jacked sections layout */
.dotl-about,
.dotl-features {
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  justify-content: center;
  padding: 48px var(--gutter);
  overflow: hidden;
  position: relative;
}

/* Section backgrounds (with parallax via --bg-y) */
.dotl-about::before,
.dotl-features::before {
  content: "";
  position: absolute;
  inset: -15% 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 0.35;
  transform: translateY(var(--bg-y, 0px));
  will-change: transform;
}

.dotl-about::before {
  background-image: url('/assets/images/hero1.jpg');
}

.dotl-features::before {
  background-image: url('/assets/images/group1.jpg');
}

/* .dotl-history background is now a WebGL starfield (see historyStarfield.js) */

/* Dark overlay on top of backgrounds */
.dotl-about::after,
.dotl-features::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,14,10,0.7) 0%, rgba(15,14,10,0.5) 50%, rgba(15,14,10,0.8) 100%);
  z-index: -1;
}

/* ── History starfield (WebGL canvas) ── */
.dotl-history {
  background: #060508; /* near-black base so the starfield pops */
}

.dotl-history-starfield {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.dotl-history .dotl-section-content {
  position: relative;
  z-index: 1; /* content above the canvas */
}

/* Fallback: radial gradient when WebGL is unavailable */
.dotl-history--no-webgl {
  background:
    radial-gradient(ellipse 120% 80% at 30% 20%, rgba(80, 70, 120, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 100% 60% at 70% 80%, rgba(40, 60, 100, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(229, 142, 60, 0.04) 0%, transparent 70%),
    #060508;
}

.dotl-about .dotl-section-contents,
.dotl-features .dotl-section-content,
.dotl-history .dotl-section-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Stats in About section - show one at a time centered */
.dotl-about .dotl-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.dotl-about .dotl-stat {
  min-width: 140px;
}

/* Features cards - show one at a time centered */
.dotl-features .dotl-cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.dotl-features .dotl-card {
  max-width: 340px;
}

/* History timeline - vertical scrollable layout */
.dotl-history {
  height: auto;
  min-height: auto;
  max-height: none;
  overflow-x: visible;
  overflow-y: clip;
  padding: 80px var(--gutter);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dotl-history .dotl-section-content {
  overflow: visible;
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  max-width: none;
}

.dotl-history .dotl-timeline {
  margin-top: 40px;
}

/* Accent names + clan name within Clan History text */
.dotl-history .dotl-accent {
  color: var(--accent);
  font-weight: 600;
  text-shadow: 0 0 22px color-mix(in srgb, var(--accent) 32%, transparent);
}

.dotl-history .dotl-timeline-item {
  width: 100%;
}

.dotl-history .dotl-timeline-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dotl-section-header {
  margin-bottom: 20px;
}

/* Section heading look (matches reference image: big uppercase + underline bar) */
.dotl-section-header {
  position: relative;
  padding-bottom: 14px;
}

.dotl-section-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 84px;
  height: 4px;
  border-radius: 4px;
  background: #e58e3c;
  box-shadow: 0 0 22px rgba(255, 206, 70, 0.25);
}

/* Center the underline for specific sections */
.dotl-about .dotl-section-header::after,
.dotl-features .dotl-section-header::after,
.dotl-history .dotl-section-header::after,
.dotl-join .dotl-section-header::after {
  left: 50%;
  transform: translateX(-50%);
}

.dotl-dojo .dotl-section-header,
.dotl-dojo .dotl-section-desc {
  position: relative;
  z-index: 2;
}



.dotl-section-label {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--accent);
}

.dotl-section-title {
  margin: 10px 0 0;
  color: var(--text-strong);
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.05;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 16px 40px rgba(0,0,0,0.55);
}

.dotl-section-desc {
  margin: 18px 0 0;
  max-width: 72ch;
  color: var(--muted);
  font-size: 18px;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

/* ============================
   Preloader (reuse HTML, rewrite visuals)
   ============================ */

.dotl-preloader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #0F0E0A;
  z-index: 9998;
}

.dotl-preloader-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.dotl-preloader-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  opacity: 0.85;
  filter: drop-shadow(0 0 24px rgba(229,181,60,0.25));
  animation: preloaderLogoPulse 2s ease-in-out infinite;
}

@keyframes preloaderLogoPulse {
  0%, 100% { opacity: 0.7; filter: drop-shadow(0 0 18px rgba(229,181,60,0.15)); }
  50% { opacity: 1; filter: drop-shadow(0 0 32px rgba(229,181,60,0.4)); }
}

.dotl-preloader-loading {
  color: rgba(214,198,168,0.85);
  font-size: 12px;
  letter-spacing: 0.3em;
}

.dotl-preloader-track {
  width: 180px;
  height: 3px;
  background: rgba(214,198,168,0.08);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.dotl-preloader-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(229,181,60,0.6), #e58e3c, rgba(229,181,60,0.6));
  animation: preloaderFillSweep 1.2s ease-in-out infinite;
}

.dotl-preloader-glow {
  position: absolute;
  top: -4px;
  left: 0;
  width: 40px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(229,181,60,0.5), transparent 70%);
  filter: blur(3px);
  animation: preloaderGlowSlide 1.2s ease-in-out infinite;
}

@keyframes preloaderFillSweep {
  0%   { width: 0%;   left: 0;   }
  50%  { width: 50%;  left: 25%; }
  100% { width: 0%;   left: 100%;}
}

@keyframes preloaderGlowSlide {
  0%   { left: -20px;  opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { left: calc(100% - 20px); opacity: 0; }
}

/* ============================
   Hero
   ============================ */

.dotl-hero {
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* Hero background image */
.dotl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/planet.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: -2;
  transform: scale(var(--hero-bg-scale, 1));
  opacity: var(--hero-bg-opacity, 1);
  will-change: transform, opacity;
}

/* Vignette + gradient overlay */
.dotl-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center 40%, transparent 0%, rgba(15,14,10,0.4) 60%, rgba(15,14,10,0.85) 100%),
    linear-gradient(180deg, rgba(15,14,10,0.3) 0%, transparent 30%, transparent 70%, rgba(15,14,10,0.9) 100%);
  z-index: -1;
  pointer-events: none;
}

.dotl-hero .dotl-section-content {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: center;
  position: relative;
  perspective: 1000px;
}

.dotl-hero-logo {
  display: grid;
  place-items: center;
  margin: 0 auto 6px;
}

.dotl-hero-logo-img {
  width: clamp(140px, 18vw, 220px);
  height: auto;
  filter: drop-shadow(0 18px 38px rgba(0,0,0,0.55));
}

.dotl-hero-inner {
  display: grid;
  gap: 10px;
  text-align: center;
  transform: translateZ(0);
}

.dotl-hero-title {
  margin: 0;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.95;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  text-shadow: 0 0 50px rgba(229, 142, 60, 0.16), 0 18px 42px rgba(0,0,0,0.55);
}

.dotl-hero-subtitle {
  margin: 6px auto 0;
  color: var(--muted);
  font-size: 18px;
  font-family: var(--font-body);
}

.dotl-hero-cta {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Reuse existing button classnames if present; otherwise keep generic */
.dotl-btn {
  border-radius: var(--radius-btn);
  padding: 12px 18px;
  border: 1px solid rgba(214,198,168,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text-strong);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.3;
  transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

/* Member-area-like button variants (no dependency on legacy CSS) */
.dotl-btn-primary {
  border: 0;
  color: #0F0E0A;
  background: linear-gradient(135deg, rgba(229,181,60,0.96) 0%, #b88c2a 100%);
}

.dotl-btn-primary:hover {
  box-shadow: 0 10px 26px rgba(229,181,60,0.18), 0 0 0 1px rgba(229,181,60,0.25);
}

.dotl-btn-admin {
  border: 1px solid rgba(229,181,60,0.22);
  background: rgba(255,255,255,0.06);
}

.lv2-btn-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  opacity: 0.95;
}

.dotl-hero-cta .dotl-btn-icon {
  display: none;
}

.dotl-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(229,181,60,0.22);
  box-shadow: var(--shadow-1);
}

/* Default (secondary/ghost) look closer to member-area buttons */
.dotl-btn:not(.dotl-btn-primary):not(.dotl-btn-cta):not(.dotl-btn-admin) {
  background: rgba(255,255,255,0.05);
  border-color: rgba(229,181,60,0.22);
}

.dotl-btn:not(.dotl-btn-primary):not(.dotl-btn-cta):not(.dotl-btn-admin):hover {
  background: rgba(229,181,60,0.08);
  border-color: rgba(229,181,60,0.38);
  box-shadow: 0 10px 26px rgba(229,181,60,0.12);
}

.dotl-btn-cta {
  background: linear-gradient(135deg, rgba(229,142,60,0.92), rgba(255,70,85,0.72));
  color: #0F0E0A;
  border-color: rgba(229,142,60,0.35);
}

.dotl-btn-icon { width: 18px; height: auto; object-fit: contain; }

.dotl-btn-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(229,142,60,0.18), transparent 60%);
  opacity: 0.25;
  filter: blur(14px);
  pointer-events: none;
  transform: translateZ(0);
}

.dotl-scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  gap: 8px;
  pointer-events: none;
  opacity: 0.65;
}

.dotl-scroll-arrow {
  width: 22px;
  height: 34px;
  border: 1px solid rgba(214,198,168,0.22);
  border-radius: 999px;
  position: relative;
}

.dotl-scroll-arrow span {
  position: absolute;
  left: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid rgba(214,198,168,0.7);
  border-bottom: 2px solid rgba(214,198,168,0.7);
  transform: translateX(-50%) rotate(45deg);
  opacity: 0.0;
}

.dotl-scroll-arrow span:nth-child(1) { top: 10px; }
.dotl-scroll-arrow span:nth-child(2) { top: 16px; }
.dotl-scroll-arrow span:nth-child(3) { top: 22px; }

/* ============================
   Cards / Stats
   ============================ */

.dotl-cards-grid,
.dotl-rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
  align-items: stretch;
}

/* 8 rules = clean 4x2 on desktop */
.dotl-rules-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dotl-card,
.dotl-rule-card,
.dotl-stat {
  border-radius: var(--radius-card);
  background: linear-gradient(168deg, rgba(26,26,23,0.92) 0%, rgba(20,19,16,0.88) 50%, rgba(15,14,10,0.85) 100%);
  border: 1px solid rgba(214,198,168,0.08);
  box-shadow: var(--shadow-1), var(--inner-highlight);
  position: relative;
  overflow: hidden;
}

.dotl-card::before,
.dotl-rule-card::before,
.dotl-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(229,181,60,0.25) 20%, rgba(229,181,60,0.4) 50%, rgba(229,181,60,0.25) 80%, transparent);
}

.dotl-card {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 148px;
}

.dotl-card-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: rgba(229,181,60,0.92);
}

.dotl-card-icon svg {
  width: 28px;
  height: 28px;
}

.dotl-card-title,
.dotl-rule-title,
.dotl-timeline-title,
.lv2-showcase__title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dotl-card-desc,
.dotl-rule-desc,
.dotl-timeline-desc,
.lv2-showcase__desc {
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

.dotl-rule-card {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 148px;
}

.dotl-rule-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: rgba(229,181,60,0.92);
}

.dotl-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 22px;
}

/* Prevent orphaned stat cards */
.dotl-stats--core {
  max-width: 980px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dotl-stats--live {
  max-width: 1180px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dotl-stat {
  padding: 16px;
  text-align: center;
}

.dotl-stat-value {
  color: var(--text-strong);
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 18px;
  letter-spacing: 0.12em;
}

.dotl-stat-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

/* About: stats are text-only (no cards) */
.dotl-about .dotl-stats {
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
  text-align: center;
}

.dotl-about .dotl-stat {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

.dotl-about .dotl-stat::before {
  display: none;
}

.dotl-about .dotl-stat-value {
  font-size: 22px;
  letter-spacing: 0.14em;
}

.dotl-about .dotl-stat-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(214,198,168,0.72);
}

/* ============================
   Timeline (vertical alternating)
   ============================ */

.dotl-timeline {
  margin-top: 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Vertical center line */
.dotl-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(214,198,168,0.10);
}

/* Each item is a row with the node in the center */
.dotl-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: center;
  padding: 16px 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* Node sits on the center line */
.dotl-timeline-node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(229,142,60,0.9), rgba(255,70,85,0.7));
  box-shadow: 0 0 0 4px rgba(229,142,60,0.12), 0 0 40px rgba(229,142,60,0.15);
  flex-shrink: 0;
  z-index: 1;
  grid-column: 2;
  margin: 4px 16px 0;
}

/* Card styling */
.dotl-timeline-card {
  border-radius: var(--radius-card);
  background: linear-gradient(168deg, rgba(26,26,23,0.92) 0%, rgba(20,19,16,0.88) 50%, rgba(15,14,10,0.85) 100%);
  border: 1px solid rgba(214,198,168,0.08);
  box-shadow: var(--shadow-1), var(--inner-highlight);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.dotl-timeline-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(229,181,60,0.25) 20%, rgba(229,181,60,0.4) 50%, rgba(229,181,60,0.25) 80%, transparent);
}

/* Left-aligned items: card on left column, right column empty */
.dotl-timeline--left .dotl-timeline-card {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
}
.dotl-timeline--left .dotl-timeline-node {
  grid-row: 1;
}

/* Right-aligned items: left column empty, card on right column */
.dotl-timeline--right .dotl-timeline-card {
  grid-column: 3;
  grid-row: 1;
  text-align: left;
}
.dotl-timeline--right .dotl-timeline-node {
  grid-row: 1;
}

.dotl-timeline-date {
  font-family: var(--font-body);
  letter-spacing: 0.12em;
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(214,198,168,0.85);
}

.dotl-timeline-title { margin: 10px 0 0; color: var(--text-strong); font-size: 22px; }
.dotl-timeline-desc { margin: 10px 0 0; color: var(--muted); }

/* ============================
   Dojo (keep existing HTML)
   ============================ */

.dotl-dojo {
  padding: 0;
  overflow: hidden;
}

.dotl-dojo .dotl-section-content {
  height: 100vh;
  max-height: 100vh;
  display: grid;
  align-content: center;
  padding-top: 48px;
  padding-bottom: 48px;
  position: relative;
  z-index: 2;
  justify-items: start;
  text-align: left;
  width: 100vw;
  max-width: none;
  padding-left: clamp(24px, 6vw, 96px);
  padding-right: var(--gutter);
  overflow: hidden;
}

.dotl-dojo-showcase {
  margin-top: 0;
  position: absolute;
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  z-index: 0;
}

.dotl-dojo-video-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: rgba(0,0,0,0.35);
}

.dotl-dojo-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
}

.dotl-dojo-video--active { opacity: 1; }

.dotl-dojo-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(229,142,60,0.08), transparent 55%),
    linear-gradient(180deg, rgba(15,14,10,0.28), rgba(15,14,10,0.18) 30%, rgba(15,14,10,0.92));
}

.dotl-dojo-nav {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: calc(100% - (var(--gutter) * 2));
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 0;
  z-index: 2;
}

.dotl-dojo-tab {
  font-family: var(--font-display);
  font-weight: 700;
}

/* ============================
   Join background (member portal image)
   ============================ */

.dotl-join {
  position: relative;
  overflow: hidden;
}

.dotl-join-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dotl-join-inner .dotl-section-desc {
  margin-bottom: 28px;
}

.dotl-join-inner .dotl-btn-cta {
  margin-top: 8px;
}

.dotl-join::before {
  content: "";
  position: absolute;
  inset: -15% 0;
  background: url('/assets/images/showcase/member_portal_bg.jpg') center / cover no-repeat;
  z-index: -2;
  transform: translateY(var(--bg-y, 0px));
  will-change: transform;
}

.dotl-join::after {
  content: none;
}

.dotl-join .dotl-section-content {
  position: relative;
  z-index: 1;
}

/* Discord blurple CTA in join section */
.dotl-join .dotl-btn-cta {
  background: #5865F2;
  color: #fff;
  border-color: rgba(88, 101, 242, 0.5);
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out), border-color 280ms var(--ease-out), background 280ms var(--ease-out);
}
.dotl-join .dotl-btn-cta .dotl-btn-glow {
  background: radial-gradient(circle, rgba(88, 101, 242, 0.22), transparent 60%);
}
.dotl-join .dotl-btn-cta:hover {
  background: #4752C4;
  border-color: rgba(88, 101, 242, 0.7);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.3), 0 4px 12px rgba(88, 101, 242, 0.2);
}
.dotl-join .dotl-btn-cta:hover .dotl-btn-icon {
  animation: discordIconWiggle 0.5s ease;
}
@keyframes discordIconWiggle {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg) scale(1.1); }
  50% { transform: rotate(6deg) scale(1.1); }
  75% { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}

.dotl-dojo-tab {
  border-radius: var(--radius-btn);
  padding: 10px 14px;
  border: 1px solid rgba(214,198,168,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text-strong);
  cursor: pointer;
  letter-spacing: 0.12em;
  font-size: 11px;
  text-transform: uppercase;
  transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.dotl-dojo-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(229,181,60,0.22);
  box-shadow: var(--shadow-1);
}

.dotl-dojo-tab--active {
  background: linear-gradient(135deg, rgba(229,142,60,0.92), rgba(255,70,85,0.72));
  color: #0F0E0A;
  border-color: rgba(229,142,60,0.35);
}

/* ============================
   Staff (pinned crossfade on desktop)
   ============================ */

.dotl-staff-container {
  position: relative;
  height: 100vh;
  overflow: hidden;
  margin-top: 0;
  padding-top: 0;
  background-color: #0a0a08;
}

.dotl-staff-panel {
  width: 100%;
  height: 100vh;
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.dotl-staff-panel:first-child {
  position: relative;
}

/* Ensure intro panel bg covers fully */
.lv2-staff-intro .dotl-staff-panel-bg {
  background-color: #0a0a08;
}

/* Intro panel staff grid */
.dotl-staff-intro-grid {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 600px;
}

.dotl-staff-intro-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-card);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(214,198,168,0.08);
  min-width: 90px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.dotl-staff-intro-card:hover {
  transform: translateY(-2px);
  border-color: rgba(229,181,60,0.2);
}

.dotl-staff-intro-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(229,181,60,0.2);
}

.dotl-staff-intro-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dotl-staff-intro-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-strong);
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dotl-staff-panel-content {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

/* Intro panel visible by default */
.lv2-staff-intro .dotl-staff-panel-content,
.lv2-staff-intro .dotl-staff-panel-bg {
  opacity: 1;
}

/* Left-aligned staff (text left, bg image aligned right) */
.dotl-staff-panel.lv2-staff--left {
  justify-content: flex-start;
}

.dotl-staff-panel.lv2-staff--left .dotl-staff-panel-bg {
  background-position: right center;
}

.dotl-staff-panel.lv2-staff--left .dotl-staff-panel-content {
  text-align: left;
  padding-left: clamp(24px, 5vw, 100px);
}

.dotl-staff-panel.lv2-staff--left .dotl-staff-card-large {
  align-items: flex-start;
}

.dotl-staff-panel.lv2-staff--left .dotl-staff-badges {
  align-items: flex-start;
}

/* Right-aligned staff (text right, bg image aligned left) */
.dotl-staff-panel.lv2-staff--right {
  justify-content: flex-end;
}

.dotl-staff-panel.lv2-staff--right .dotl-staff-panel-bg {
  background-position: left center;
}

.dotl-staff-panel.lv2-staff--right .dotl-staff-panel-content {
  text-align: right;
  padding-right: clamp(24px, 5vw, 100px);
}

.dotl-staff-panel.lv2-staff--right .dotl-staff-card-large {
  align-items: flex-end;
}

.dotl-staff-panel.lv2-staff--right .dotl-staff-badges {
  align-items: flex-end;
}

/* Avatar + Name row (flips with alignment) */
.dotl-staff-identity {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.dotl-staff-panel.lv2-staff--right .dotl-staff-identity {
  flex-direction: row-reverse;
}

.dotl-staff-identity-text {
  display: flex;
  flex-direction: column;
}

/* Align avatar vertically with name (not badges) */
.dotl-staff-identity .dotl-staff-avatar-large {
  margin-top: 0.15em;
}

.dotl-staff-panel-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #0a0a08;
  filter: brightness(0.8);
  z-index: 0;
}

.dotl-staff-panel-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(15,14,10,0.55) 100%),
    linear-gradient(180deg, rgba(15,14,10,0.45) 0%, rgba(15,14,10,0.25) 40%, rgba(15,14,10,0.25) 60%, rgba(15,14,10,0.50) 100%);
  pointer-events: none;
}

/* Directional fade: image visible ~75%, fades to dark on the text side */
.lv2-staff--left .dotl-staff-panel-bg::after {
  background:
    linear-gradient(to right, rgba(15,14,10,0.92) 0%, rgba(15,14,10,0.5) 15%, transparent 25%, transparent 100%),
    linear-gradient(180deg, rgba(15,14,10,0.25) 0%, transparent 12%, transparent 88%, rgba(15,14,10,0.25) 100%);
}

.lv2-staff--right .dotl-staff-panel-bg::after {
  background:
    linear-gradient(to left, rgba(15,14,10,0.92) 0%, rgba(15,14,10,0.5) 15%, transparent 25%, transparent 100%),
    linear-gradient(180deg, rgba(15,14,10,0.25) 0%, transparent 12%, transparent 88%, rgba(15,14,10,0.25) 100%);
}

/* Radial flash burst on staff panel transitions */
.lv2-staff-flash {
  position: absolute;
  top: 0;
  width: 45%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at center, rgba(229,181,60,0.35) 0%, rgba(229,142,60,0.15) 30%, transparent 70%);
}

.lv2-staff-flash--active {
  animation: staffFlashBurst 0.8s ease-out forwards;
}

@keyframes staffFlashBurst {
  0%   { opacity: 0; transform: scaleX(0.5) scaleY(0.8); }
  15%  { opacity: 1; }
  100% { opacity: 0; transform: scaleX(1.4) scaleY(1.1); }
}

.dotl-staff-card-large {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Staff quote — clean mono text directly under name */
.dotl-staff-quote-text {
  max-width: 420px;
  margin: 6px 0 0 0;
  padding: 0;
  font-family: var(--font-mono, 'SF Mono', 'Fira Code', 'Cascadia Code', 'JetBrains Mono', monospace);
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.04em;
  color: rgba(214, 198, 168, 0.55);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.lv2-staff--right .dotl-staff-quote-text {
  margin-left: auto;
}

.dotl-staff-avatar-large {
  display: block;
}

.dotl-staff-avatar-large img {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 2px solid rgba(229, 181, 60, 0.3);
  box-shadow: 0 0 40px rgba(229, 142, 60, 0.2), 0 8px 32px rgba(0, 0, 0, 0.5);
}

.dotl-staff-info-large {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dotl-staff-name-large {
  position: relative;
  font-size: clamp(42px, 5vw, 72px);
  color: var(--text-strong);
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
  white-space: nowrap;
}

/* Accent line under staff names — removed */

/* Staff role badges (stacked vertically) */
.dotl-staff-badges {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.dotl-staff-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Role type variants (solid colors, slight transparency) */
.dotl-staff-role-badge--owner {
  background: rgba(30, 25, 10, 0.85);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #ffd700;
}

.dotl-staff-role-badge--admin {
  background: rgba(30, 15, 15, 0.85);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.dotl-staff-role-badge--mod {
  background: rgba(15, 20, 30, 0.85);
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #60a5fa;
}

.dotl-staff-role-badge--helper {
  background: rgba(15, 25, 20, 0.85);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #4ade80;
}

/* Role title badge (custom title) */
.dotl-staff-role-badge--title {
  background: rgba(20, 20, 18, 0.85);
  border: 1px solid rgba(214, 198, 168, 0.3);
  color: var(--text);
}

.dotl-staff-badge {
  font-family: var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 13px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.dotl-staff-role {
  font-family: var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.dotl-staff-bio {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  max-width: 48ch;
}

/* Team panel (final staff card style) */
.dotl-staff-panel--team { 
  height: 100vh;
  min-height: 100vh;
  position: relative;
}

.dotl-staff-panel--team .dotl-staff-panel-bg {
  background-size: cover;
  background-position: center;
}

.dotl-staff-avatar-large--team {
  background: linear-gradient(135deg, rgba(229,142,60,0.3), rgba(255,70,85,0.2));
}

.dotl-staff-role-badge--team {
  background: linear-gradient(135deg, rgba(229,142,60,0.25), rgba(255,70,85,0.15));
  border-color: rgba(229,142,60,0.4);
  color: #e5b53c;
}

.dotl-staff-avatar img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(229,181,60,0.18);
}

.dotl-staff-name { color: var(--text-strong); font-weight: 700; }

.dotl-staff-role {
  color: rgba(214,198,168,0.85);
  font-family: var(--font-body);
  letter-spacing: 0.10em;
  font-size: 12px;
  text-transform: uppercase;
}

/* ============================
   Website showcase swapper (injected)
   ============================ */

/* Showcase section: full-background image with content overlay */
.dotl-showcase {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0;
  min-height: 80vh;
  overflow: hidden;
}

/* Background image container — fills entire section */
.lv2-showcase__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Dark overlay on top of bg for text readability */
.lv2-showcase__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(15, 14, 10, 0.92) 0%,
    rgba(15, 14, 10, 0.78) 40%,
    rgba(15, 14, 10, 0.35) 100%
  );
  pointer-events: none;
}

/* Content panel: sits on top of bg + overlay */
.lv2-showcase__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px clamp(32px, 5vw, 80px);
  max-width: 540px;
  min-height: 80vh;
}

.lv2-showcase__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transition: none; /* GSAP handles transitions */
}

.lv2-showcase__slide--active {
  opacity: 1;
  pointer-events: auto;
}

/* Card list */
.lv2-showcase__list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.lv2-showcase__item {
  border-radius: var(--radius-card);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(214,198,168,0.12);
  padding: 14px;
  cursor: pointer;
  text-align: left;
  transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out), background 220ms var(--ease-out);
}

.lv2-showcase__item:hover { transform: translateY(-2px); border-color: rgba(229,181,60,0.22); }

.lv2-showcase__item[aria-selected="true"] {
  border-color: rgba(229,142,60,0.32);
  background: rgba(229,142,60,0.10);
}

.lv2-showcase__title { font-weight: 700; color: var(--text-strong); }
.lv2-showcase__desc { margin-top: 6px; color: var(--muted); font-size: 14px; }

@media (max-height: 760px) {
  .dotl-hero-logo-img { width: clamp(120px, 16vw, 190px); }
  .dotl-hero-title { font-size: clamp(40px, 5.2vw, 72px); }
  .dotl-hero-cta { margin-top: 14px; }
  .dotl-scroll-indicator { display: none; }
}

/* ============================
   Scroll Nav
   ============================ */

.dotl-scroll-nav {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.lv2-loaded .dotl-scroll-nav {
  opacity: 1;
  pointer-events: auto;
}

.dotl-scroll-nav__labels {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  text-align: right;
}

.dotl-scroll-nav__label {
  background: none;
  border: none;
  padding: 2px 0;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  font-size: 9px;
  color: var(--muted);
  opacity: 0.3;
  transition: color 0.35s ease, opacity 0.35s ease, font-size 0.35s ease, text-shadow 0.35s ease, transform 0.35s ease;
  transform-origin: right center;
}
.dotl-scroll-nav__label:hover {
  opacity: 0.65;
  color: var(--text-strong);
}
.dotl-scroll-nav__label.is-adjacent {
  font-size: 10px;
  opacity: 0.5;
  color: var(--text);
}
.dotl-scroll-nav__label.is-active {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  opacity: 1;
  text-shadow: 0 0 14px rgba(229,142,60,0.3);
  transform: translateX(2px);
}

.dotl-scroll-nav__track {
  width: 2px;
  height: 180px;
  background: rgba(214, 198, 168, 0.06);
  border-radius: 2px;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.dotl-scroll-nav__fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--accent), rgba(229,142,60,0.5));
  border-radius: 2px;
  transition: height 0.3s ease-out;
  box-shadow: 0 0 8px rgba(229,142,60,0.3);
}

/* ============================
   Credits Section
   ============================ */
.dotl-credits {
  position: relative;
  overflow: visible;
  background: #030308;
  padding: 80px var(--gutter);
  min-height: 100vh;
  max-height: none;
  display: block;
}

/* Centred logo watermark over the vortex */
.dotl-credits-logo-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.dotl-credits-logo {
  position: relative;
  width: 250px;
  height: auto;
  user-select: none;
}

.dotl-credits-logo-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(50% + 155px);
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #D6C6A8;
  opacity: 0.9;
  white-space: nowrap;
  user-select: none;
}

.dotl-credits-booster {
  margin-top: 32px;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(214, 198, 168, 0.5);
}

/* WebGL canvas fills the section behind content */
.dotl-credits-vortex {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.dotl-credits .dotl-section-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-height: calc(100vh - 160px);
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.dotl-credits-text {
  max-width: 56ch;
  font-size: 18px;
  line-height: 1.7;
}

.dotl-credits-text strong {
  font-weight: 600;
}

.dotl-credits-link {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.dotl-credits-link:hover {
  color: var(--text-strong);
}

/* Buy Me a Coffee button */
.dotl-credits-coffee {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 28px;
  padding: 0.65rem 1.6rem;
  border-radius: 8px;
  background: rgba(229,142,60,0.12);
  border: 1px solid rgba(229,142,60,0.25);
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.25s ease;
}

.dotl-credits-coffee:hover {
  background: rgba(229,142,60,0.22);
  border-color: rgba(229,142,60,0.45);
  transform: translateY(-2px);
}

.dotl-credits-coffee-icon {
  font-size: 1.15rem;
}

/* Legal / copyright */
.dotl-credits-legal {
  margin-top: auto;
  padding-top: 60px;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.dotl-credits-copyright {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  opacity: 0.5;
}

.dotl-credits-copyright a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.dotl-credits-copyright a:hover {
  color: var(--text-strong);
}

.dotl-credits-copyright--de {
  opacity: 0.3;
  font-size: 10px;
}

/* ============================
   Responsive — DISABLED
   Homepage is desktop-only (min 1080p).
   ============================ */
