/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0d0d0d;
  --accent:      #e8854a;
  --accent2:     #c96a2a;
  --text:        #f0ece6;
  --text-muted:  #7a7570;
  --text-dim:    #2e2b28;
  --border:      rgba(255,255,255,0.07);
  --card-bg:     rgba(255,255,255,0.04);
  --card-hover:  rgba(255,255,255,0.07);
  --font:        'Inter', system-ui, sans-serif;
  --nav-h:       80px;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; cursor: pointer; }
button { font-family: inherit; background: none; border: none; cursor: pointer; }

/* ─────────────────────────────────────────
   BACKGROUND
───────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 70% at 62% 90%, #2c1e0f 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 30% 20%, #1a1510 0%, transparent 60%),
    linear-gradient(160deg, #111010 0%, #0d0b09 50%, #080808 100%);
}

.bg-grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 128px;
}

.bg-glow {
  position: fixed; z-index: 0;
  width: 900px; height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,100,30,0.08) 0%, transparent 70%);
  bottom: -200px; right: 0;
  pointer-events: none;
}

/* ─────────────────────────────────────────
   BACKGROUND NAME
───────────────────────────────────────── */
.bg-name {
  position: fixed; z-index: 1;
  left: -0.02em; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column;
  line-height: 0.88;
  pointer-events: none; user-select: none;
}

.bg-name-word {
  font-size: clamp(90px, 14vw, 220px);
  font-weight: 900; letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-dim);
  will-change: transform, opacity;
  display: block;
}

/* ─────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  height: var(--nav-h);
}

#nav::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(13,13,13,0.95) 60%, transparent 100%);
  z-index: -1; pointer-events: none;
}

.nav-logo {
  font-size: 17px; font-weight: 700; letter-spacing: -0.02em;
}
.nav-logo-accent { color: var(--accent); }

.nav-links { display: flex; gap: 36px; align-items: center; }

.nav-link {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  position: relative; padding-bottom: 2px;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }

.lang-toggle { display: flex; align-items: center; gap: 4px; margin-left: 16px; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; }
.lang-opt { color: var(--text-muted); padding: 3px 5px; border-radius: 4px; transition: color 0.2s; cursor: pointer; user-select: none; }
.lang-opt.active { color: var(--accent); }
.lang-opt:not(.active):hover { color: var(--text); }
.lang-sep { color: var(--border); font-size: 9px; }

/* ─────────────────────────────────────────
   3D AVATAR
───────────────────────────────────────── */
.avatar-wrapper {
  position: fixed; z-index: 50;
  right: 4vw; bottom: 0;
  width: clamp(280px, 36vw, 580px);
  height: 100vh;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  perspective: 1000px;
  perspective-origin: center center;
}

.avatar-img {
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.65))
          drop-shadow(0 0 100px rgba(200,100,40,0.12));
  transform-origin: center center;
  transform-style: preserve-3d;
  will-change: transform, filter, height;
}

.avatar-shadow {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 50%; height: 30px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.45) 0%, transparent 70%);
}

/* ─────────────────────────────────────────
   SECTIONS
───────────────────────────────────────── */
.sections-wrapper {
  position: fixed; inset: 0; z-index: 10;
  pointer-events: none;
}

.section {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding: 0 48px;
  opacity: 0; pointer-events: none;
}
.section.active {
  opacity: 1; pointer-events: auto;
}

.section-inner {
  max-width: 620px;
  padding-top: var(--nav-h);
}

/* ─── HOME ─── */
.home-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  background: rgba(232,133,74,0.1);
  border: 1px solid rgba(232,133,74,0.2);
  border-radius: 100px; padding: 6px 14px;
  margin-bottom: 24px;
}
.tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.5; transform:scale(0.8); }
}

.home-title {
  font-size: clamp(38px, 5.5vw, 80px);
  font-weight: 900; letter-spacing: -0.04em; line-height: 0.95;
  margin-bottom: 20px;
}
.home-title .line { display: block; }
.home-title .accent { color: var(--accent); }

.home-sub {
  font-size: clamp(14px, 1.3vw, 17px); color: var(--text-muted);
  line-height: 1.65; margin-bottom: 36px;
}

.home-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ─── SECTION HEADERS ─── */
.section-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 16px; display: flex; gap: 10px;
}
.section-label span { color: var(--accent); }

.section-title {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1;
  margin-bottom: 18px;
}
.section-title em { font-style: normal; color: var(--accent); }

.section-body {
  font-size: clamp(13px, 1.2vw, 16px); color: var(--text-muted);
  line-height: 1.7; max-width: 420px; margin-bottom: 32px;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 8px;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 600;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 20px rgba(232,133,74,0.3);
}
.btn-primary:hover {
  background: var(--accent2); transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232,133,74,0.4);
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 8px;
  border: 1px solid var(--border); color: var(--text-muted);
  font-size: 14px; font-weight: 500;
  transition: border-color 0.25s, color 0.25s, transform 0.2s;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.18); color: var(--text);
  transform: translateY(-2px);
}

/* ─── ABOUT STATS ─── */
.about-stats { display: flex; gap: 36px; margin-top: 36px; flex-wrap: wrap; }

.stat { display: flex; flex-direction: column; gap: 5px; }
.stat-num {
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 900; letter-spacing: -0.03em; line-height: 1;
}
.stat-plus { font-size: 0.6em; color: var(--accent); }
.stat-label {
  font-size: 11px; color: var(--text-muted);
  font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
}

/* ─────────────────────────────────────────
   FUN — VIDEO WALL
───────────────────────────────────────── */

#section-2 {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;         /* removed so videowall can be truly full-width */
  overflow: hidden;
}
.section-inner--fun {
  padding-top: calc(var(--nav-h) + 4px);
  padding-left: 48px;
  padding-right: 48px;
  flex-shrink: 0;
}
.fun-title { font-size: clamp(32px, 4.5vw, 60px); margin-bottom: 0; }

/* ── Wall container ── */
.videowall {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.videowall:active { cursor: grabbing; }

/* ── Single-row track ── */
.vw-track {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
  width: max-content;
  will-change: transform;
}

/* ── Cards ── */
.vw-card {
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: 0 8px 28px rgba(0,0,0,0.6);
  user-select: none;
  transform-origin: right center;
  /* width/height/transform set per-frame by the JS ticker */
}
.vw-card:hover .vw-card-play { background: rgba(255,255,255,0.30); }
.vw-card-num {
  position: absolute;
  top: 10px; left: 12px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.vw-card-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.vw-card:hover .vw-card-play { background: rgba(255,255,255,0.28); }
.vw-card-play svg { margin-left: 3px; }
.vw-card-footer {
  position: absolute;
  bottom: 10px; left: 10px; right: 10px;
  display: flex; align-items: center; gap: 6px;
}
.vw-tk-icon { width: 16px; height: 16px; flex-shrink: 0; }
.vw-card-footer span {
  font-size: 9px; font-weight: 600;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Edge fades ── */
.vw-edge {
  position: absolute; top: 0; bottom: 0; width: 120px;
  z-index: 2; pointer-events: none;
}
.vw-edge--l { left: 0;  background: linear-gradient(to right, var(--bg), transparent); }
.vw-edge--r { right: 0; background: linear-gradient(to left,  var(--bg), transparent); }

/* ── Pointer-events: only active in the active section ── */
.section .vw-card { pointer-events: none; }
.section.active .vw-card { pointer-events: auto; }

/* Carousel outer wrapper — clips the fade edges */
.tiktok-carousel-wrapper {
  position: relative;
  margin-bottom: 20px;
}

/* Scrollable track */
.tiktok-feed {
  display: flex; gap: 12px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;          /* avoid clipping box-shadow */
  cursor: grab;
}
.tiktok-feed:active { cursor: grabbing; }
.tiktok-feed::-webkit-scrollbar { display: none; }

/* Individual video card */
.tiktok-item {
  flex-shrink: 0;
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  width: 260px;
  height: 460px;
  background: #111;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.tiktok-item:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.65); }

/* Preview card layout */
.tiktok-preview {
  position: relative;
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #0a0a14 0%, #0d1520 50%, #0a0f0a 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.tiktok-preview::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(255,0,80,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(0,242,234,0.06) 0%, transparent 60%);
}
.tiktok-item:nth-child(2) .tiktok-preview::before {
  background:
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(100,0,200,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 20%, rgba(0,242,234,0.07) 0%, transparent 60%);
}
.tiktok-item:nth-child(3) .tiktok-preview::before {
  background:
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(255,80,0,0.09) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 70% 10%, rgba(0,100,255,0.07) 0%, transparent 60%);
}
.tiktok-item:nth-child(4) .tiktok-preview::before {
  background:
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(0,180,100,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 30% 20%, rgba(255,200,0,0.06) 0%, transparent 60%);
}

.tiktok-preview-logo {
  position: absolute; top: 14px; right: 14px;
  width: 22px; height: 22px;
  opacity: 0.7; z-index: 2;
}
.tiktok-preview-num {
  position: absolute; top: 14px; left: 16px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  z-index: 2;
}
.tiktok-preview-play {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.tiktok-preview-play svg { width: 22px; height: 22px; margin-left: 4px; }
.tiktok-item:hover .tiktok-preview-play {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.5);
  transform: scale(1.12);
}
.tiktok-preview-handle {
  position: absolute; bottom: 16px; left: 14px; right: 14px;
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
  z-index: 2;
}

/* Left / right fade overlays */
.carousel-fade {
  position: absolute; top: 0; bottom: 4px;
  width: 40px; pointer-events: none; z-index: 2;
}
.carousel-fade--left  {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}
.carousel-fade--right {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

/* Prev / Next arrow buttons */
.carousel-controls {
  display: flex; gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

.carousel-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  pointer-events: auto;
}
.carousel-btn svg { width: 16px; height: 16px; }
.carousel-btn:hover:not(:disabled) {
  background: var(--card-hover);
  border-color: rgba(255,255,255,0.18);
  color: var(--text);
  transform: scale(1.08);
}
.carousel-btn:disabled { opacity: 0.3; cursor: default; }

.tiktok-cta { margin-top: 4px; }

/* ─────────────────────────────────────────
   TIKTOK MODAL
───────────────────────────────────────── */
.tiktok-modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
}
.tiktok-modal.open { pointer-events: auto; }

.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-container {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 8px;
}

.modal-box {
  width: min(320px, 80vw);
  height: min(calc(320px * 16 / 9), calc(100vh - 100px));
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 32px 80px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.06);
  padding: 20px;
  box-sizing: border-box;
}
.modal-box iframe {
  width: 100%; height: 100%;
  border: none; display: block;
  border-radius: 8px;
}

.modal-close {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(20,20,20,0.85);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  flex-shrink: 0;
}
.modal-close svg { width: 16px; height: 16px; }
.modal-close:hover {
  background: rgba(40,40,40,0.95);
  color: #fff;
  transform: scale(1.1);
}

/* ─────────────────────────────────────────
   CONNECT — SOCIAL ICONS
───────────────────────────────────────── */
.social-icons {
  display: flex; gap: 18px; flex-wrap: wrap;
  margin-top: 8px;
}

.social-icon {
  width: 80px; height: 80px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  /* disabled until section is active — see rule below */
  pointer-events: none;
  flex-shrink: 0;
}
.social-icon svg { width: 34px; height: 34px; }
.social-icon:hover { transform: translateY(-6px) scale(1.1); }

.si-instagram {
  background: linear-gradient(135deg,#405de6 0%,#5851db 20%,#833ab4 40%,#c13584 60%,#e1306c 80%,#fd1d1d 92%,#fcb045 100%);
  box-shadow: 0 8px 22px rgba(193,53,132,0.35);
}
.si-instagram:hover { box-shadow: 0 14px 34px rgba(193,53,132,0.55); }

.si-tiktok {
  background: #010101;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 22px rgba(0,0,0,0.5);
}
.si-tiktok:hover { box-shadow: 0 14px 34px rgba(255,0,80,0.35); }

.si-youtube {
  background: #ff0000;
  box-shadow: 0 8px 22px rgba(255,0,0,0.32);
}
.si-youtube:hover { box-shadow: 0 14px 34px rgba(255,0,0,0.52); }

.si-linkedin {
  background: #0a66c2;
  box-shadow: 0 8px 22px rgba(10,102,194,0.32);
}
.si-linkedin:hover { box-shadow: 0 14px 34px rgba(10,102,194,0.52); }

.si-facebook {
  background: #1877F2;
  box-shadow: 0 8px 22px rgba(24,119,242,0.32);
}
.si-facebook:hover { box-shadow: 0 14px 34px rgba(24,119,242,0.52); }

/* ─────────────────────────────────────────
   POINTER-EVENTS: only interactive in active section
───────────────────────────────────────── */
.section .btn-primary,
.section .btn-ghost,
.section .tiktok-float {
  pointer-events: none;
}
.section.active .btn-primary,
.section.active .btn-ghost,
.section.active .tiktok-float,
.section.active .social-icon {
  pointer-events: auto;
}

/* ─────────────────────────────────────────
   SECTION DOTS
───────────────────────────────────────── */
.section-dots {
  position: fixed; right: 28px; top: 50%; z-index: 100;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 4px; align-items: center;
}

/* Button is the full hit-area; ::before is the visual dot */
.dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: none;
}
.dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: background 0.3s, height 0.3s, width 0.3s, border-radius 0.3s;
  pointer-events: none;
}
.dot.active::before {
  background: var(--accent);
  height: 20px; border-radius: 3px;
}
.dot:hover::before { background: var(--text-muted); }

/* ─────────────────────────────────────────
   COUNTER
───────────────────────────────────────── */
.section-counter {
  position: fixed; bottom: 32px; left: 48px; z-index: 100;
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  color: var(--text-muted);
}
#currentNum { color: var(--accent); font-size: 18px; font-weight: 900; }
.counter-divider { width: 22px; height: 1px; background: var(--text-dim); }

/* ─────────────────────────────────────────
   SCROLL HINT
───────────────────────────────────────── */
.scroll-hint {
  position: fixed; bottom: 32px; left: 50%; z-index: 100;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-wheel {
  width: 20px; height: 34px;
  border: 1.5px solid rgba(255,255,255,0.18); border-radius: 10px;
  display: flex; justify-content: center; padding-top: 5px;
}
.scroll-wheel-dot {
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
  animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%   { transform:translateY(0); opacity:1; }
  80%  { transform:translateY(12px); opacity:0; }
  100% { transform:translateY(0); opacity:0; }
}

/* ─────────────────────────────────────────
   TABLET  (≤ 1100px)
───────────────────────────────────────── */
@media (max-width: 1100px) {
  #nav { padding: 0 32px; }
  .section { padding: 0 32px; }
  #section-2 { padding: 0; }
  .section-inner--fun { padding-left: 32px; padding-right: 32px; }
  .section-counter { left: 32px; }
  .avatar-wrapper { right: 0; width: clamp(260px, 34vw, 480px); }
}

/* ─────────────────────────────────────────
   DEV PANEL
───────────────────────────────────────── */
#dev-panel {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 296px;
  background: rgba(10, 9, 8, 0.94);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', ui-monospace, monospace;
  font-size: 11px;
  z-index: 9000;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 56px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04) inset;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  user-select: none;
}
#dev-panel.dp-visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.dp-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px 9px 13px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.dp-icon { color: var(--accent); font-size: 12px; }
.dp-title {
  flex: 1;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.dp-hbtns { display: flex; gap: 5px; align-items: center; }
.dp-btn {
  font-family: inherit;
  font-size: 9.5px; font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.dp-btn:hover { color: var(--text); background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.22); }
.dp-btn--warn:hover { color: #f87171; border-color: rgba(248,113,113,0.35); background: rgba(248,113,113,0.08); }
.dp-collapse-btn { padding: 3px 7px; min-width: 22px; text-align: center; font-size: 13px; line-height: 1; }

.dp-body {
  padding: 6px 0 8px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}
.dp-body::-webkit-scrollbar { width: 4px; }
.dp-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

.dp-group { padding-bottom: 4px; }
.dp-group + .dp-group { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 4px; }
.dp-group-title {
  font-size: 8.5px; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: rgba(255,255,255,0.22);
  padding: 5px 13px 3px;
}

.dp-row {
  display: grid;
  grid-template-columns: 86px 1fr 48px;
  align-items: center;
  gap: 7px;
  padding: 3px 13px;
}
.dp-row:hover .dp-lbl { color: rgba(255,255,255,0.75); }

.dp-lbl {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}
.dp-val {
  font-size: 9.5px;
  color: var(--accent);
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* Range slider track */
.dp-slider {
  width: 100%;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.11);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.dp-slider::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
}
.dp-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px; height: 13px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid rgba(0,0,0,0.5);
  cursor: grab;
  transition: transform 0.1s, box-shadow 0.1s;
  box-shadow: 0 0 0 0 rgba(232,133,74,0);
}
.dp-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.35);
  box-shadow: 0 0 0 4px rgba(232,133,74,0.22);
}
.dp-slider::-moz-range-thumb {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid rgba(0,0,0,0.5);
  cursor: grab;
}
.dp-slider::-moz-range-track {
  height: 3px;
  background: rgba(255,255,255,0.11);
  border-radius: 2px;
}

/* ─────────────────────────────────────────
   MOBILE  (≤ 768px)
───────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  /* Nav */
  #nav { padding: 0 20px; }
  .nav-links { gap: 18px; }
  .nav-link { font-size: 13px; }

  /* Background name — smaller */
  .bg-name-word { font-size: clamp(64px, 20vw, 100px); }

  /* Avatar: centred, lower half of screen, behind content */
  .avatar-wrapper {
    right: 50%;
    transform: translateX(50%);
    width: min(75vw, 320px);
    height: 100vh;
    bottom: 0;
    justify-content: center;
    z-index: 20;
  }
  .avatar-img { opacity: 0.9; }

  /* Sections: content in top half, above avatar */
  .section { padding: 0 20px; align-items: flex-start; }
  #section-2 { padding: 0; }
  .section-inner--fun { padding-left: 20px; padding-right: 20px; }
  .vw-card { width: 116px; height: 206px; border-radius: 10px; }
  .section-inner {
    padding-top: calc(var(--nav-h) + 12px);
    max-width: 100%;
    position: relative; z-index: 60;
    background: linear-gradient(to bottom, rgba(13,13,13,0.0) 0%, rgba(13,13,13,0.0) 80%, rgba(13,13,13,0.85) 100%);
    padding-bottom: 16px;
    border-radius: 0 0 16px 16px;
  }

  /* Smaller typography */
  .home-title { font-size: clamp(32px, 9vw, 52px); margin-bottom: 14px; }
  .home-sub   { font-size: 13px; margin-bottom: 24px; }
  .section-title { font-size: clamp(30px, 8vw, 48px); }
  .section-body  { font-size: 13px; margin-bottom: 20px; }

  /* About stats */
  .about-stats { gap: 20px; margin-top: 20px; }
  .stat-num { font-size: clamp(22px, 6vw, 34px); }

  /* TikTok carousel on mobile — smaller cards */
  .tiktok-item { width: 200px; height: 355px; }
  .tiktok-carousel-wrapper { margin-bottom: 14px; }

  /* Connect cards */
  .connect-links { max-width: 100%; }

  /* Dots */
  .section-dots { right: 12px; }
  .section-counter { left: 20px; bottom: 20px; }
  .scroll-hint { bottom: 20px; }

  /* Buttons */
  .home-cta { gap: 10px; }
  .btn-primary, .btn-ghost { padding: 11px 20px; font-size: 13px; }
}

/* ─────────────────────────────────────────
   SMALL MOBILE  (≤ 480px)
───────────────────────────────────────── */
@media (max-width: 480px) {
  .nav-links { display: none; }
  .home-title { font-size: clamp(28px, 10vw, 44px); }
  .section-title { font-size: clamp(26px, 9vw, 38px); }
  .avatar-wrapper { width: min(90vw, 300px); }
  .tiktok-item { width: 160px; height: 285px; }
  .about-stats { flex-wrap: wrap; gap: 16px; }
}
