/*
  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; }
}

/* ============================
   Preloader: Logo Wrap (shared)
   ============================ */

.dotl-preloader-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
}

/* ============================================================
   Concept 1 — Lotus Bloom
   Clip-path reveal from center, two expanding rings radiating
   outward, letter-by-letter reveal with warm color sweep.
   ============================================================ */

.dotl-preloader[data-concept="1"] .dotl-preloader-logo {
  opacity: 0;
  transform: scale(0.4);
  clip-path: circle(0% at 50% 50%);
  animation: c1LogoBloom 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
@keyframes c1LogoBloom {
  0%   { opacity: 0; transform: scale(0.4) rotate(-18deg); clip-path: circle(0% at 50% 50%);
         filter: drop-shadow(0 0 0 rgba(229,181,60,0)); }
  40%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1) rotate(0deg); clip-path: circle(75% at 50% 50%);
         filter: drop-shadow(0 0 26px rgba(229,181,60,0.55)); }
}

/* Expanding bloom rings behind the logo */
.dotl-c1-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  border: 1px solid rgba(229,181,60,0.6);
  opacity: 0;
  pointer-events: none;
  animation: c1RingExpand 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
@keyframes c1RingExpand {
  0%   { transform: scale(0.35); opacity: 0;    border-width: 1.5px; }
  15%  {                         opacity: 0.85;                     }
  100% { transform: scale(3.2);  opacity: 0;    border-width: 0.5px; }
}

/* Letters: float up + color warm-up */
.dotl-preloader[data-concept="1"] .dotl-preloader-loading {
  letter-spacing: 0.4em;
  padding-left: 0.4em; /* visually center with extra letter-spacing */
}
.dotl-preloader[data-concept="1"] .dotl-preloader-loading span {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px) scale(0.88);
  color: rgba(229,181,60,0.3);
  animation: c1LetterIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes c1LetterIn {
  0%   { opacity: 0; transform: translateY(12px) scale(0.88); color: rgba(229,181,60,0.3);  }
  55%  { opacity: 1;                                          color: rgba(255,220,140,1);    }
  100% { opacity: 1; transform: translateY(0)    scale(1);    color: rgba(214,198,168,0.88); }
}

/* ============================================================
   Concept 2 — Void Particles
   Breathing halo behind the logo + two layered particle fields
   (bg: dim/slow/wide, fg: bright/fast/tight) with per-particle
   horizontal drift via --c2-drift custom property.
   ============================================================ */

/* Breathing halo anchoring the scene */
.dotl-c2-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 240px;
  margin: -120px 0 0 -120px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(229,181,60,0.22) 0%,
    rgba(229,181,60,0.08) 28%,
    transparent 62%
  );
  filter: blur(6px);
  pointer-events: none;
  animation: c2HaloBreathe 4.2s ease-in-out infinite;
  z-index: 0;
}
@keyframes c2HaloBreathe {
  0%, 100% { opacity: 0.65; transform: scale(1);    }
  50%      { opacity: 1;    transform: scale(1.08); }
}

/* Particle container & base */
.dotl-preloader-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.dotl-preloader-particle {
  position: absolute;
  bottom: 50%;
  border-radius: 50%;
  animation: c2ParticleRise ease-out infinite;
  will-change: transform, opacity;
}
.dotl-preloader-particle--bg {
  background: radial-gradient(circle, rgba(229,181,60,0.7), rgba(229,181,60,0));
  filter: blur(1.2px);
  opacity: 0.55;
}
.dotl-preloader-particle--fg {
  background: radial-gradient(circle,
    rgba(255,228,150,1) 0%,
    rgba(229,181,60,0.7) 40%,
    transparent 75%);
  box-shadow: 0 0 6px rgba(229,181,60,0.65);
}
@keyframes c2ParticleRise {
  0%   { transform: translate(0, 0)                                     scale(0.6); opacity: 0; }
  10%  {                                                                             opacity: 1; }
  50%  { transform: translate(calc(var(--c2-drift, 0px) * 0.5), -160px) scale(1);               }
  85%  {                                                                             opacity: 0.5; }
  100% { transform: translate(var(--c2-drift, 0px), -340px)             scale(0.2); opacity: 0; }
}

/* ============================================================
   Concept 3 — Tenno Loading Tips
   Fixed-width slot with diamond ornaments (pulsing out of phase),
   italic quotes, smooth crossfade + vertical drift.
   ============================================================ */

.dotl-preloader[data-concept="3"] .dotl-preloader-loading.dotl-c3-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 420px;
  max-width: 90vw;
  min-height: 1.6em;
  font-family: 'Oxanium', sans-serif;
  font-style: italic;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(214,198,168,0.9);
  text-align: center;
}
.dotl-c3-orn {
  flex: 0 0 auto;
  color: rgba(229,181,60,0.55);
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0;
  transform: translateY(-1px);
  animation: c3OrnPulse 2.4s ease-in-out infinite;
}
.dotl-c3-orn:last-child { animation-delay: 1.2s; }
@keyframes c3OrnPulse {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.9;  }
}
.dotl-c3-text {
  display: inline-block;
  transition: opacity 0.38s ease, transform 0.38s ease;
  will-change: opacity, transform;
}
.dotl-c3-out {
  opacity: 0;
  transform: translateY(-5px);
}
.dotl-c3-in {
  animation: c3In 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes c3In {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0);   }
}

/* ============================================================
   Concept 4 — Mandala Spin
   Three concentric rotating groups at different speeds.
   Outer tick ring rotates slowly clockwise; middle dashed ring
   counter-rotates; inner dotted ring rotates fastest clockwise.
   Logo gently pulses in sync with the overall composition.
   ============================================================ */

.dotl-preloader-mandala {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  margin: -100px 0 0 -100px;
  pointer-events: none;
  filter: drop-shadow(0 0 18px rgba(229,181,60,0.18));
}
.dotl-mandala-g1 {
  transform-origin: 100px 100px;
  animation: mandalaCW  22s linear infinite;
}
.dotl-mandala-g2 {
  transform-origin: 100px 100px;
  animation: mandalaCCW 14s linear infinite;
}
.dotl-mandala-g3 {
  transform-origin: 100px 100px;
  animation: mandalaCW   9s linear infinite;
}
@keyframes mandalaCW  { to { transform: rotate(360deg);  } }
@keyframes mandalaCCW { to { transform: rotate(-360deg); } }

/* Logo pulse synced with the mandala composition */
.dotl-preloader[data-concept="4"] .dotl-preloader-logo {
  animation: c4LogoPulse 3.2s ease-in-out infinite;
}
@keyframes c4LogoPulse {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(229,181,60,0.2)); transform: scale(1);    }
  50%      { filter: drop-shadow(0 0 26px rgba(229,181,60,0.5)); transform: scale(1.04); }
}

/* ============================================================
   Concept 5 — Cinematic Reveal
   Sequenced reveal: vignette → eyebrow → drawn rule → typewriter
   title (variable cadence) → cursor fade + title glow + subtitle.
   Background is shifted to a warm-to-black radial for atmosphere.
   ============================================================ */

.dotl-preloader[data-concept="5"] {
  background: radial-gradient(ellipse at center, #15120a 0%, #0F0E0A 55%, #050404 100%);
}
.dotl-preloader[data-concept="5"] .dotl-preloader-inner {
  gap: 0;
  padding: 0 24px;
}
.dotl-preloader-cinema {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Fixed atmospheric vignette overlay */
.dotl-cinema-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(229,181,60,0.06), transparent 45%),
    radial-gradient(ellipse at center, transparent 38%, rgba(0,0,0,0.65) 100%);
  opacity: 0;
  animation: c5FadeIn 1.2s ease 0.1s forwards;
}
@keyframes c5FadeIn { to { opacity: 1; } }

.dotl-cinema-eyebrow {
  font-size: 10px;
  letter-spacing: 0.45em;
  color: rgba(229,181,60,0.6);
  opacity: 0;
  transform: translateY(6px);
  animation: c5EyebrowIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}
@keyframes c5EyebrowIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Horizontal rule that draws itself from center out */
.dotl-cinema-rule {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(229,181,60,0.55) 50%,
    transparent);
  animation: c5RuleDraw 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.65s forwards;
  margin: 2px 0 4px;
}
@keyframes c5RuleDraw {
  to { width: 300px; }
}

.dotl-cinema-title {
  display: inline-flex;
  align-items: baseline;
  font-family: 'Oxanium', sans-serif;
  font-size: clamp(28px, 5.5vw, 58px);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #fff;
  min-height: 1.2em;
  white-space: nowrap;
  text-shadow: 0 0 1px rgba(255,255,255,0.05);
}
.dotl-cinema-title-text {
  transition: text-shadow 1.4s ease;
}
.dotl-cinema-title-text--glow {
  text-shadow:
    0 0 34px rgba(229,181,60,0.5),
    0 0 2px  rgba(255,255,255,0.25);
}
.dotl-cinema-cursor {
  display: inline-block;
  color: rgba(229,181,60,0.9);
  font-size: 0.72em;
  line-height: 1;
  margin-left: 6px;
  animation: c5Blink 0.6s step-end infinite;
  transition: opacity 0.4s ease;
}
.dotl-cinema-cursor--done { opacity: 0; }
@keyframes c5Blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

.dotl-cinema-sub {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.35em;
  color: rgba(214,198,168,0.65);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1s ease, transform 1s ease;
  margin-top: 4px;
}
.dotl-cinema-sub--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Concept 6 — Scan Lines / HUD
   Warframe-style diegetic UI: CRT overlay, corner brackets
   framing the logo, bright scan sweep, side hex readout,
   cycling status text with glitch on transition.
   ============================================================ */

.dotl-preloader[data-concept="6"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 3px
  );
  pointer-events: none;
  z-index: 1;
}
.dotl-preloader[data-concept="6"] .dotl-preloader-inner {
  position: relative;
  z-index: 2;
}

.dotl-preloader[data-concept="6"] .dotl-preloader-inner {
  gap: 40px;
}

/* Corner HUD brackets framing the logo */
.dotl-c6-brackets {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
  pointer-events: none;
}
.dotl-c6-br {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.25px solid rgba(229,181,60,0.8);
  animation: c6BracketPulse 2.2s ease-in-out infinite;
}
.dotl-c6-br--tl { top: 0;    left: 0;    border-right: none; border-bottom: none; }
.dotl-c6-br--tr { top: 0;    right: 0;   border-left: none;  border-bottom: none; }
.dotl-c6-br--bl { bottom: 0; left: 0;    border-right: none; border-top: none;    }
.dotl-c6-br--br { bottom: 0; right: 0;   border-left: none;  border-top: none;    }
@keyframes c6BracketPulse {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1;    }
}

/* Side readout with rolling hex values */
.dotl-c6-readout {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: rgba(229,181,60,0.7);
  z-index: 4;
  opacity: 0;
  animation: c6FadeIn 0.6s ease 0.35s forwards;
}
@keyframes c6FadeIn { to { opacity: 1; } }
.dotl-c6-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 110px;
}
.dotl-c6-row span:first-child { opacity: 0.5; letter-spacing: 0.08em; }
.dotl-c6-row span:last-child  { color: rgba(255,228,150,0.9); letter-spacing: 0.05em; }

/* Scan sweep */
.dotl-preloader-scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(229,181,60,0.35) 8%,
    rgba(255,228,150,1) 50%,
    rgba(229,181,60,0.35) 92%,
    transparent);
  box-shadow:
    0 0 16px rgba(229,181,60,0.55),
    0 0 32px rgba(229,181,60,0.25),
    0 -1px 0 rgba(255,228,150,0.4),
    0  1px 0 rgba(229,181,60,0.3);
  animation: c6ScanSweep 2.8s cubic-bezier(0.55, 0.1, 0.45, 0.9) infinite;
  pointer-events: none;
  z-index: 3;
}
@keyframes c6ScanSweep {
  0%   { top: -2px; opacity: 0;    }
  4%   {            opacity: 1;    }
  96%  {            opacity: 0.85; }
  100% { top: 100%; opacity: 0;    }
}

.dotl-preloader[data-concept="6"] .dotl-preloader-logo {
  animation: c6LogoPulse 2.8s ease-in-out infinite;
}
@keyframes c6LogoPulse {
  0%, 100% { filter: drop-shadow(0 0 6px  rgba(229,181,60,0.12)) brightness(0.82); }
  50%      { filter: drop-shadow(0 0 22px rgba(229,181,60,0.55)) brightness(1.12); }
}

/* Status text with glitch on transition */
.dotl-preloader[data-concept="6"] .dotl-preloader-loading {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  min-width: 200px;
  text-align: center;
  color: rgba(229,181,60,0.88);
}
.dotl-preloader[data-concept="6"] .dotl-preloader-loading.dotl-c6-glitch {
  animation: c6Glitch 0.16s steps(2) infinite;
  color: rgba(255,228,150,1);
  text-shadow: 1px 0 rgba(255,70,85,0.5), -1px 0 rgba(100,200,255,0.4);
}
@keyframes c6Glitch {
  0%   { transform: translate(0, 0);                    }
  25%  { transform: translate(-1px, 0);  opacity: 0.75; }
  50%  { transform: translate( 1px, 0);                 }
  75%  { transform: translate(0, -1px);  opacity: 0.9;  }
  100% { transform: translate(0, 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 — Tablet & Mobile
   Desktop layout is untouched above.
   ============================ */

/* ── Global overflow guard ── */
/* Prevent any 100vw elements from causing horizontal scroll on mobile.
   The body already has overflow-x: clip from .dotl-new-body above;
   this ensures html doesn't create a scrollbar either. */
html.dotl-new-page {
  overflow-x: hidden;
  scrollbar-gutter: auto;
}

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
  :root {
    --container: 100%;
    --gutter: 20px;
  }

  /* Native scroll-snap replaces the JS snap hijack.
     "proximity" only snaps when close to an edge — doesn't fight momentum. */
  .dotl-new-body {
    scroll-snap-type: y proximity;
    -webkit-overflow-scrolling: touch;
  }

  /* Full-viewport sections snap to their top edge */
  .dotl-hero,
  .dotl-dojo,
  .dotl-join {
    scroll-snap-align: start;
  }

  /* Tall sections (features, history, staff, credits) scroll freely —
     no snap-align so the user isn't pulled to an edge mid-read. */

  /* Let sections grow to fit content instead of locking to 100vh */
  .dotl-section,
  .dotl-about,
  .dotl-features {
    height: auto;
    min-height: auto;
    max-height: none;
    padding: 60px var(--gutter);
  }

  /* Hero stays full-screen */
  .dotl-hero {
    height: 100vh;
    height: 100svh;
    min-height: 100svh;
    max-height: none;
  }

  .dotl-hero .dotl-section-content {
    min-height: 100vh;
    min-height: 100svh;
  }

  /* Cards: 2-col on tablet */
  .dotl-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Rules: 2-col on tablet */
  .dotl-rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Stats: 2-col on tablet */
  .dotl-stats--core {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dotl-stats--live {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Scroll nav: hide on tablet */
  .dotl-scroll-nav {
    display: none !important;
  }

  /* ── Dojo: fix 100vw overflow + ensure full viewport coverage ── */
  .dotl-dojo {
    height: 100vh;
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
  }

  .dotl-dojo .dotl-section-content {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100svh;
    max-height: 100svh;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    container-type: normal;
  }

  .dotl-dojo-showcase {
    width: 100%;
    left: 0;
    transform: none;
    /* Raise above text content so the nav tabs (child) are clickable.
       Text has z-index: 2 from desktop; showcase needs to be higher. */
    z-index: 3;
  }

  /* Let text sit above the video but below the nav bar */
  .dotl-dojo .dotl-section-header,
  .dotl-dojo .dotl-section-desc,
  .dotl-dojo .dotl-dojo-createdby-wrap {
    position: relative;
    z-index: 4;
  }

  /* ── History: contain overflow ── */
  .dotl-history {
    overflow-x: clip;
  }

  /* ── Staff: natural flow instead of stacked absolutes ── */
  .dotl-staff-container {
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .dotl-staff-panel {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    position: relative;
    inset: auto;
  }

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

  .dotl-staff-name-large {
    font-size: clamp(32px, 5vw, 56px);
    white-space: normal;
    word-break: break-word;
  }

  /* ── Showcase ── */
  .lv2-showcase__content {
    max-width: 480px;
    padding: 48px clamp(20px, 4vw, 60px);
    min-height: 70vh;
  }

  /* ── Credits: contain positioned elements ── */
  .dotl-credits {
    overflow: hidden;
  }

  .dotl-credits-logo-text {
    white-space: normal;
    text-align: center;
    width: max-content;
    max-width: 90vw;
  }

  /* ── Join: contain parallax bg ── */
  .dotl-join {
    overflow: hidden;
  }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
  :root {
    --gutter: 16px;
  }

  /* All sections: prevent any overflow and auto-height */
  .dotl-section,
  .dotl-about,
  .dotl-features {
    padding: 48px var(--gutter);
    overflow: hidden;
  }

  /* ── Hero ── */
  .dotl-hero-title {
    font-size: clamp(32px, 9vw, 52px);
  }

  .dotl-hero-subtitle {
    font-size: 15px;
  }

  .dotl-hero-logo-img {
    width: clamp(100px, 28vw, 160px);
  }

  .dotl-hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .dotl-hero-cta .dotl-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .dotl-scroll-indicator {
    display: none;
  }

  /* ── Section titles ── */
  .dotl-section-title {
    font-size: clamp(28px, 7vw, 44px);
  }

  .dotl-section-desc {
    font-size: 15px;
    max-width: 100%;
    word-break: break-word;
  }

  /* ── About section ── */
  .dotl-about .dotl-stats {
    width: 100%;
  }

  .dotl-about .dotl-stat-value {
    font-size: 18px;
  }

  /* ── Features: cards single column ── */
  .dotl-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dotl-features .dotl-card {
    max-width: none;
  }

  .dotl-features .dotl-cards-grid {
    max-width: 100%;
  }

  /* ── Rules: single column ── */
  .dotl-rules-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* ── Stats: 2-col ── */
  .dotl-stats--core,
  .dotl-stats--live {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 100%;
  }

  /* ── Dojo section: always fullscreen (video showcase) ── */
  .dotl-dojo {
    height: 100vh;
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
    overflow: hidden;
  }

  .dotl-dojo .dotl-section-content {
    height: 100vh;
    height: 100svh;
    max-height: 100svh;
    padding-top: 40px;
    padding-bottom: 80px;
    /* Override desktop overflow:hidden — the absolutely-positioned
       .dotl-dojo-nav sits at the bottom and must remain visible.
       The parent .dotl-dojo handles clipping. */
    overflow: visible;
    /* container-type: inline-size (from global rule) creates a containing
       block that traps position:fixed children. Remove it here so the
       nav can escape to the viewport. */
    container-type: normal;
  }

  /* The nav is a child of .dotl-dojo-showcase (position: absolute),
     which creates a stacking/clipping context we can't escape via CSS.
     On mobile, use position: fixed so the tabs sit above everything.
     Visibility is toggled by JS (dojo ScrollTrigger). */
  .dotl-dojo-nav {
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    transform: none;
    z-index: 9990;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    padding: 8px 12px;
    scrollbar-width: none;
    background: rgba(15, 14, 10, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-btn);
    border: 1px solid rgba(214,198,168,0.12);
    /* Hidden by default — shown when dojo section is active */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .dotl-dojo.is-active .dotl-dojo-nav {
    opacity: 1;
    pointer-events: auto;
  }

  .dotl-dojo-nav::-webkit-scrollbar {
    display: none;
  }

  .dotl-dojo-tab {
    padding: 8px 10px;
    font-size: 10px;
    flex-shrink: 0;
  }

  /* ── Timeline: single column, left-aligned ── */
  .dotl-timeline {
    width: 100%;
    overflow: hidden;
  }

  .dotl-timeline::before {
    left: 7px;
  }

  .dotl-timeline-item {
    grid-template-columns: auto 1fr;
    gap: 0 12px;
  }

  .dotl-timeline-node {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    width: 12px;
    height: 12px;
  }

  .dotl-timeline--left .dotl-timeline-card,
  .dotl-timeline--right .dotl-timeline-card {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
  }

  .dotl-timeline-title {
    font-size: 18px;
  }

  .dotl-timeline-card {
    overflow: hidden;
    word-break: break-word;
  }

  /* ── Staff section ── */
  .dotl-staff-container {
    overflow: hidden;
  }

  .dotl-staff-panel {
    min-height: 80vh;
    min-height: 80svh;
    overflow: hidden;
  }

  .dotl-staff-panel-bg {
    overflow: hidden;
  }

  .dotl-staff-panel-content {
    padding: 0 var(--gutter);
    max-width: 100%;
    overflow: hidden;
  }

  .dotl-staff-panel.lv2-staff--left .dotl-staff-panel-content,
  .dotl-staff-panel.lv2-staff--right .dotl-staff-panel-content {
    text-align: left;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

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

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

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

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

  .dotl-staff-name-large {
    font-size: clamp(28px, 8vw, 42px);
  }

  .dotl-staff-avatar-large img {
    width: 64px;
    height: 64px;
  }

  .dotl-staff-bio {
    font-size: 14px;
    max-width: 100%;
  }

  .dotl-staff-quote-text {
    max-width: 100%;
    font-size: 12px;
  }

  .dotl-staff-intro-grid {
    max-width: 100%;
    gap: 10px;
  }

  .dotl-staff-intro-card {
    min-width: 72px;
    padding: 10px;
  }

  .dotl-staff-intro-avatar {
    width: 40px;
    height: 40px;
  }

  .dotl-staff-intro-name {
    font-size: 10px;
    max-width: 64px;
  }

  /* Flash effect: prevent overflow */
  .lv2-staff-flash {
    width: 100%;
    left: 0;
    right: 0;
  }

  /* ── Showcase ── */
  .dotl-showcase {
    min-height: 70vh;
    overflow: hidden;
  }

  .lv2-showcase__content {
    max-width: 100%;
    padding: 40px var(--gutter);
    min-height: 70vh;
  }

  .lv2-showcase__overlay {
    background: linear-gradient(
      180deg,
      rgba(15, 14, 10, 0.92) 0%,
      rgba(15, 14, 10, 0.82) 50%,
      rgba(15, 14, 10, 0.6) 100%
    );
  }

  /* ── Join section ── */
  .dotl-join .dotl-section-content {
    max-width: 100%;
  }

  .dotl-join::before {
    inset: -5% 0;
  }

  /* ── Credits ── */
  .dotl-credits {
    padding: 60px var(--gutter);
    min-height: auto;
    overflow: hidden;
  }

  .dotl-credits .dotl-section-content {
    max-width: 100%;
    overflow: hidden;
  }

  .dotl-credits-logo {
    width: 160px;
  }

  .dotl-credits-logo-text {
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .dotl-credits-text {
    font-size: 15px;
    max-width: 100%;
    word-break: break-word;
  }

  /* ── Buttons ── */
  .dotl-btn {
    padding: 11px 16px;
    font-size: 12px;
  }
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {
  .dotl-hero-title {
    font-size: clamp(26px, 10vw, 38px);
  }

  .dotl-section-title {
    font-size: clamp(24px, 8vw, 34px);
  }

  .dotl-stats--core,
  .dotl-stats--live {
    grid-template-columns: 1fr 1fr;
  }

  .dotl-staff-name-large {
    font-size: clamp(24px, 9vw, 36px);
  }

  .dotl-dojo-tab {
    padding: 7px 8px;
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .dotl-credits-logo-text {
    font-size: 9px;
    letter-spacing: 0.12em;
  }
}
