/* =========================================================
   JUDEX – design system
   Mobile-first · Minecraft-inspired · minimal
   ========================================================= */

:root {
  /* Brand palette (fra avatar/hoodie, logo, dino, grass) */
  --navy: #0f1a3d;
  --navy-2: #182a63;
  --blue: #2f55d4;
  --blue-2: #5b7cf0;
  --orange: #f0a21a;
  --yellow: #ffd34d;
  --green: #5cc43c;
  --green-2: #3f9b2a;
  --dirt: #7a4f2a;
  --dirt-2: #5e3b1e;
  --red: #e63b2e;
  --pink: #f08bb5;
  --pink-2: #e0609a;
  --pink-bg: #fff0f6;
  --sky: #cfe9ff;

  --bg: #f6f8fc;
  --bg-alt: #eef2fa;
  --card: #ffffff;
  --ink: #121a33;
  --muted: #5a6480;
  --line: #e3e8f3;

  --yt: #ff0000;

  --font-display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 10px 30px -12px rgba(18, 26, 51, .18);
  --shadow-lg: 0 24px 50px -20px rgba(18, 26, 51, .3);

  --container: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --section: clamp(64px, 10vw, 120px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}
h2 { font-size: clamp(30px, 5vw, 46px); }
h3 { font-size: clamp(20px, 2.6vw, 26px); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); color: #fff; }
.section--dark .kicker { color: var(--yellow); }
.section__head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; }
.section__head--row .section__sub { max-width: 600px; }
.section__sub { color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); margin: 0; }
.kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 10px;
}
.kicker--light { color: var(--yellow); }
.kicker--pink { color: var(--pink-2); }
.empty { color: var(--muted); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--yellow); padding: 10px 14px; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons (chunky, Minecraft-ish 3D) ---------- */
.btn {
  --bg: var(--blue); --fg: #fff; --shade: #1f3da3;
  display: inline-flex; align-items: center; gap: .55em;
  padding: .8em 1.35em;
  font: 700 16px/1 var(--font-body);
  color: var(--fg); background: var(--bg);
  border: 0; border-radius: 14px; cursor: pointer;
  box-shadow: 0 5px 0 var(--shade);
  transition: transform .12s ease, box-shadow .12s ease, filter .15s;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 6px 0 var(--shade); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--shade); }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.btn--lg { padding: 1em 1.6em; font-size: 17px; border-radius: 16px; }
.btn--sm { padding: .6em 1em; font-size: 14px; border-radius: 10px; box-shadow: 0 3px 0 var(--shade); }
.btn--primary { --bg: var(--orange); --fg: var(--navy); --shade: #c27d0a; background: linear-gradient(180deg, var(--yellow), var(--orange)); }
.btn--yt { --bg: var(--yt); --fg: #fff; --shade: #b00000; }
.btn--pink { --bg: var(--pink-2); --fg: #fff; --shade: #b63f74; }
.btn--ghost { --bg: rgba(255,255,255,.14); --fg: #fff; --shade: rgba(255,255,255,.22); box-shadow: 0 5px 0 var(--shade), inset 0 0 0 1.5px rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn--ghost:hover { --bg: rgba(255,255,255,.24); }
.btn--ghost-dark { --bg: #fff; --fg: var(--ink); --shade: #d6dcea; }
.btn--outline { --bg: transparent; --fg: var(--ink); --shade: transparent; box-shadow: inset 0 0 0 2px var(--line); }
.btn--outline:hover { box-shadow: inset 0 0 0 2px var(--ink); transform: none; }
.btn--disabled { --bg: #fff; --fg: var(--muted); --shade: transparent; box-shadow: inset 0 0 0 2px var(--line); cursor: default; pointer-events: none; }

/* ---------- Topbar (logo + desktop nav) & Tabbar (mobile) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 16px; }
.topbar__logo img { height: 36px; width: auto; }
.topbar__cta span { display: none; }
.topbar__cta { padding: .6em .7em; }

/* Mobile: floating tabbar at the bottom (Beduna-style) */
.tabbar {
  position: fixed; z-index: 60;
  left: 50%; bottom: calc(10px + env(safe-area-inset-bottom));
  width: min(100% - 20px, 480px);
  translate: -50% 0;
}
.tabbar ul {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
  padding: 6px;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border: 1.5px solid var(--line); border-radius: 26px;
  box-shadow: 0 18px 40px -14px rgba(15, 26, 61, .55);
}
.tabbar__link {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 2px 7px; border-radius: 20px;
  font-family: var(--font-display); font-weight: 600; font-size: 11px; line-height: 1;
  color: var(--muted); white-space: nowrap;
  transition: background .25s, color .25s, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.tabbar__link .icon { width: 22px; height: 22px; }
.tabbar__link:active { transform: scale(.92); }
.tabbar__link[aria-current="page"] { color: var(--blue); background: linear-gradient(135deg, #e8eeff, #fff3d6); }
.tabbar__link[aria-current="page"] .icon { animation: tab-pop .6s cubic-bezier(.34,1.56,.64,1); }
.page-natdavid .tabbar__link[aria-current="page"] { color: var(--pink-2); background: linear-gradient(135deg, #ffe4f0, #fff0f6); }
.page-merch .tabbar__link[aria-current="page"] { color: #b86f00; }
@keyframes tab-pop { 0% { transform: scale(.5) rotate(-12deg); } 100% { transform: none; } }
@media (max-width: 359px) { .tabbar__link span { display: none; } .tabbar__link { padding-block: 10px; } }

body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  /* Safe here: tabbar is no longer fixed, so backdrop-filter can't trap it */
  .topbar { background: rgba(15, 26, 61, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .topbar__inner { min-height: 70px; }
  .topbar__logo img { height: 40px; }
  .topbar__cta { padding: .6em 1em; }
  .topbar__cta span { display: inline; }
  .tabbar { position: static; width: auto; translate: none; }
  .tabbar ul { display: flex; gap: 2px; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .tabbar__link { flex-direction: row; gap: 8px; padding: 10px 16px; border-radius: 999px; font-size: 15px; color: rgba(255,255,255,.85); }
  .tabbar__link .icon { width: 18px; height: 18px; }
  .tabbar__link:hover { background: rgba(255,255,255,.1); color: #fff; }
  .tabbar__link[aria-current="page"], .page-natdavid .tabbar__link[aria-current="page"], .page-merch .tabbar__link[aria-current="page"] {
    color: var(--navy); background: linear-gradient(180deg, var(--yellow), var(--orange));
  }
}

/* ---------- Hero (wallpaper) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--navy);
  padding-top: clamp(40px, 7vw, 80px);
  isolation: isolate;
}
.hero__wall { position: absolute; inset: 0; z-index: -2; }
.hero__wall img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%;
  filter: saturate(1.05);
}
/* Darken left/bottom so text stays readable while the art shines on the right */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15,26,61,.55) 0%, rgba(15,26,61,.25) 40%, rgba(15,26,61,.92) 100%),
    linear-gradient(90deg, rgba(15,26,61,.92) 0%, rgba(15,26,61,.75) 45%, rgba(15,26,61,.2) 100%);
}
.hero__inner {
  display: grid; gap: 28px; align-items: end;
  padding-bottom: clamp(48px, 8vw, 96px);
  position: relative; z-index: 1;
  min-height: min(78vh, 720px);
}
.hero__title {
  font-size: clamp(38px, 7.4vw, 76px); margin-bottom: 18px; text-wrap: balance;
  text-shadow: 0 4px 24px rgba(0,0,0,.45);
}
.hero__accent {
  display: inline-block;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,.35));
}
.hero__lead { font-size: clamp(17px, 1.7vw, 20px); color: rgba(255,255,255,.9); max-width: 540px; margin-bottom: 26px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.award {
  display: inline-flex; align-items: center; gap: 14px;
  background: rgba(15,26,61,.55); border: 1px solid rgba(255,255,255,.18);
  padding: 8px 16px 8px 8px; border-radius: 999px; backdrop-filter: blur(8px);
  transition: background .2s;
}
.award:hover { background: rgba(15,26,61,.8); }
.award img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.award strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.2; }
.award span { font-size: 13px; color: rgba(255,255,255,.75); }

.hero__latest {
  display: grid; gap: 0;
  background: #fff; color: var(--ink);
  border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 380px;
  transition: transform .25s;
}
.hero__latest:hover { transform: translateY(-4px); }
.hero__latest-thumb { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; }
.hero__latest-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hero__latest:hover .hero__latest-thumb img { transform: scale(1.05); }
.hero__latest-body { display: grid; gap: 4px; padding: 12px 16px 14px; }
.hero__latest small { color: var(--red); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.hero__latest strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.3; }
.hero__latest em { font-style: normal; color: var(--muted); font-size: 13px; font-weight: 700; }

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.1fr .9fr; gap: 40px; }
  .hero__latest { justify-self: end; transform: rotate(-2deg); }
  .hero__latest:hover { transform: rotate(0) translateY(-4px); }
}

/* Floating pixel blocks + clouds */
.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.block {
  position: absolute; width: 36px; height: 36px; border-radius: 4px;
  image-rendering: pixelated; opacity: .9;
  animation: float 7s ease-in-out infinite;
  box-shadow: inset -6px -6px 0 rgba(0,0,0,.25), inset 6px 6px 0 rgba(255,255,255,.15);
}
.block--grass { background: linear-gradient(180deg, var(--green) 0 34%, var(--dirt) 34%); }
.block--diamond { background: linear-gradient(135deg, #7df0ff, #2ec4d6 60%, #1a93a3); }
.block--tnt { background: linear-gradient(180deg, var(--red) 0 30%, #f3e5c9 30% 55%, var(--red) 55%); }
.block--gold { background: linear-gradient(135deg, var(--yellow), var(--orange)); }
.b1 { left: 2%; top: 10%; animation-delay: -1s; }
.b2 { left: 50%; top: 5%; width: 24px; height: 24px; animation-delay: -3s; }
.b3 { right: 2%; top: 12%; width: 30px; height: 30px; animation-delay: -5s; }
.b4 { left: 3%; bottom: 14%; width: 22px; height: 22px; animation-delay: -2s; }
.b5 { right: 4%; bottom: 10%; width: 18px; height: 18px; animation-delay: -4s; }
@media (max-width: 899px) { .hero__bg { display: none; } }

@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }

/* Grass divider (pixel strip) */
.grass {
  position: relative; height: 22px; z-index: 1;
  background:
    repeating-linear-gradient(90deg, var(--green) 0 14px, var(--green-2) 14px 28px) top / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, var(--dirt) 0 14px, var(--dirt-2) 14px 28px) bottom / 100% 12px no-repeat;
}
.grass--flip { transform: scaleY(-1); }

/* ---------- Channels ---------- */
.channel-grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .channel-grid { grid-template-columns: repeat(3, 1fr); } }
.channel {
  --c: var(--blue);
  background: var(--card); border-radius: var(--r-lg); padding: 24px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
  position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.channel::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 7px; background: var(--c); }
.channel:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.channel__head { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.channel__avatar { width: 60px; height: 60px; border-radius: 16px; object-fit: cover; box-shadow: 0 0 0 3px var(--c); }
.channel__head h3 { margin: 0; }
.channel__meta { margin: 2px 0 0; color: var(--muted); font-size: 14px; font-weight: 700; }
.channel__desc { margin: 0; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, #fff); color: color-mix(in srgb, var(--c) 80%, #000); }
.channel__video { position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 16/9; margin-top: 4px; }
.channel__video img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.channel__video:hover img { transform: scale(1.05); }
.channel__video-play, .video__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.95); color: var(--yt);
  box-shadow: 0 8px 20px rgba(0,0,0,.3); transition: transform .2s;
}
.channel__video-play .icon, .video__play .icon { width: 26px; height: 26px; }
.channel__video:hover .channel__video-play, .video:hover .video__play { transform: scale(1.1); }
.channel__video-title {
  position: absolute; inset: auto 0 0 0; padding: 36px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.75));
  color: #fff; font-weight: 800; font-size: 14px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.channel__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }

/* ---------- Videos ---------- */
.video-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
@media (min-width: 1000px) { .video-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.video {
  --c: var(--blue);
  background: var(--card); border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.video:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.video__thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; display: block; }
.video__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video:hover .video__thumb img { transform: scale(1.05); }
.video__body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.video__channel { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--c); }
.video__title { font-weight: 800; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video__meta { color: var(--muted); font-size: 13.5px; font-weight: 700; }

/* ---------- Nat & David ---------- */
.natdavid {
  background:
    radial-gradient(700px 400px at 90% 0%, #fde0ee, transparent 70%),
    radial-gradient(600px 400px at 0% 100%, var(--sky), transparent 70%),
    var(--pink-bg);
  overflow: hidden;
}
.natdavid__bg { position: absolute; inset: 0; pointer-events: none; }
.heart, .sparkle { position: absolute; font-size: 28px; color: var(--pink); opacity: .55; animation: float 5s ease-in-out infinite; }
.sparkle { color: var(--orange); font-size: 20px; }
.h1 { left: 5%; top: 15%; } .h2 { right: 10%; top: 10%; font-size: 40px; animation-delay: -2s; } .h3 { left: 45%; bottom: 8%; animation-delay: -3s; }
.s1 { right: 30%; top: 30%; } .s2 { left: 15%; bottom: 20%; animation-delay: -1.5s; } .s3 { right: 5%; bottom: 25%; animation-delay: -3.5s; }
.natdavid__inner { display: grid; gap: 36px; align-items: center; position: relative; }
@media (min-width: 900px) { .natdavid__inner { grid-template-columns: .85fr 1.15fr; gap: 64px; } }
.natdavid__photo { position: relative; max-width: 440px; margin-inline: auto; }
.natdavid__photo > img:first-child {
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  transform: rotate(-2deg); border: 8px solid #fff;
}
.natdavid__olaf {
  position: absolute; right: -18px; bottom: -18px; width: 120px; height: 120px;
  border-radius: 50%; border: 5px solid #fff; box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}
.natdavid h2 { font-size: clamp(34px, 5.5vw, 56px); }
.natdavid__stats { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--pink-2); background: #fff; padding: 8px 14px; border-radius: 999px; margin-bottom: 22px; box-shadow: var(--shadow); }
.natdavid__stats .icon { color: var(--yt); }
.sticker-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.sticker-row li { width: calc(25% - 9px); min-width: 70px; max-width: 130px; }
.sticker-row img {
  width: 100%; aspect-ratio: 1; object-fit: contain;
  background: #fff; border-radius: 18px; padding: 8px;
  box-shadow: var(--shadow); transition: transform .2s;
}
.sticker-row li:nth-child(odd) img { transform: rotate(-3deg); }
.sticker-row li:nth-child(even) img { transform: rotate(3deg); }
.sticker-row img:hover { transform: rotate(0) scale(1.08) !important; }

/* ---------- Merch ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--card); border: 1.5px solid var(--line);
  font-weight: 800; font-size: 14px;
  transition: border-color .15s, transform .15s, background .15s;
}
.chip:hover { border-color: var(--orange); background: #fff8e6; transform: translateY(-2px); }
.product-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.product {
  background: var(--card); border-radius: var(--r); border: 1px solid var(--line);
  padding: 12px; display: grid; gap: 6px;
  transition: transform .25s, box-shadow .25s;
}
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product__img { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #fff; }
.product__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s; }
.product:hover .product__img img { transform: scale(1.06); }
.product__badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em; padding: 4px 8px; border-radius: 6px;
  box-shadow: 0 3px 0 #a8271d;
}
.product__title { font-weight: 800; font-size: 15px; line-height: 1.3; }
.product__price { font-family: var(--font-display); font-weight: 600; color: var(--blue); }
.merch__foot {
  margin-top: 40px; display: grid; gap: 24px; align-items: center;
  background: var(--navy); color: #fff; border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 40px); overflow: hidden; position: relative;
}
.merch__foot::after {
  content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,162,26,.35), transparent 70%);
}
.merch__foot img { width: 180px; border-radius: 20px; justify-self: center; position: relative; z-index: 1; }
.merch__foot h3 { margin-bottom: 6px; }
.merch__foot p { color: rgba(255,255,255,.8); }
.merch__foot .btn--outline { --fg: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); }
.merch__foot .btn--outline:hover { box-shadow: inset 0 0 0 2px #fff; }
@media (min-width: 700px) { .merch__foot { grid-template-columns: auto 1fr; gap: 36px; } .merch__foot img { width: 220px; } }

/* ---------- About ---------- */
.about__inner { display: grid; gap: 40px; align-items: center; margin-bottom: clamp(48px, 7vw, 80px); }
@media (min-width: 900px) { .about__inner { grid-template-columns: .8fr 1.2fr; gap: 72px; } }
.about__img { position: relative; max-width: 420px; margin-inline: auto; width: 100%; }
.about__img > img:first-child { border-radius: var(--r-lg); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.about__dino {
  position: absolute; left: -30px; bottom: -20px; width: 130px;
  filter: drop-shadow(0 12px 16px rgba(0,0,0,.4));
  cursor: pointer; transition: transform .2s;
  animation: float 5s ease-in-out infinite;
}
.about__dino:hover { transform: scale(1.08) rotate(-6deg); }
.about__dino.is-roaring { animation: roar .6s ease; }
@keyframes roar {
  0%, 100% { transform: scale(1) rotate(0); }
  25% { transform: scale(1.25) rotate(-12deg); }
  50% { transform: scale(1.2) rotate(10deg); }
  75% { transform: scale(1.25) rotate(-6deg); }
}
.about__text p { color: rgba(255,255,255,.82); font-size: clamp(16px, 1.5vw, 18.5px); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; }
@media (min-width: 600px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats li {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r); padding: 16px 14px; display: grid; gap: 2px;
}
.stats strong { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; color: var(--yellow); line-height: 1; }
.stats li > span { font-size: 13px; color: rgba(255,255,255,.7); font-weight: 700; }
.stats__note { font-size: 12.5px !important; color: rgba(255,255,255,.45) !important; margin-top: 10px; }

.parents {
  display: grid; gap: 24px; align-items: center;
  background: #fff; color: var(--ink); border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg);
}
@media (min-width: 760px) { .parents { grid-template-columns: 1fr 260px; gap: 40px; } }
.parents h3 { margin-bottom: 14px; }
.parents ul { display: grid; gap: 10px; }
.parents li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: #2a3350; }
.parents li .icon { color: var(--green-2); width: 22px; height: 22px; flex: none; margin-top: 2px; background: #e9f8e3; border-radius: 50%; padding: 3px; }
.parents > img { width: 100%; max-width: 260px; border-radius: var(--r); justify-self: center; object-fit: cover; aspect-ratio: 1; }

.collabs { display: grid; gap: 18px; margin-top: 28px; }
@media (min-width: 760px) { .collabs { grid-template-columns: repeat(3, 1fr); } }
.collab {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r); padding: 20px; display: grid; gap: 8px; align-content: start;
}
.collab img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: 50% 30%; border-radius: 12px; margin-bottom: 6px; }
.collab h4 { margin: 0; font-size: 20px; color: var(--yellow); }
.collab p { margin: 0; color: rgba(255,255,255,.78); font-size: 15.5px; }
.collab a { font-weight: 800; display: inline-flex; align-items: center; gap: 6px; color: #fff; margin-top: 4px; }
.collab a:hover { color: var(--yellow); }

/* ---------- Events ---------- */
.events__empty {
  display: flex; gap: 16px; align-items: center;
  background: var(--card); border: 2px dashed var(--line); border-radius: var(--r-lg);
  padding: 24px; color: var(--muted); font-weight: 600; max-width: 720px;
}
.events__empty p { margin: 0; }
.events__emoji { font-size: 36px; }
.event-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.event { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); display: grid; gap: 6px; }
.event time { font-family: var(--font-display); font-weight: 600; color: var(--blue); }
.event h3 { margin: 0; }
.event p { margin: 0 0 8px; color: var(--muted); }

/* ---------- Socials ---------- */
.social-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); margin-bottom: 40px; }
.social {
  --c: var(--ink);
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 16px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.social:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--c); }
.social > .icon:first-child { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: var(--c); color: #fff; }
.social span { display: grid; flex: 1; line-height: 1.2; }
.social strong { font-weight: 800; }
.social small { color: var(--muted); font-weight: 700; font-size: 13px; }
.social__arrow { color: var(--muted); transition: transform .2s; }
.social:hover .social__arrow { transform: translateX(4px); color: var(--c); }
.social--youtube { --c: #ff0000; }
.social--instagram { --c: #d62976; }
.social--snapchat { --c: #e6c200; }
.social--snapchat > .icon:first-child { color: #000; }
.social--tiktok { --c: #111; }
.social--facebook { --c: #1877f2; }
.social--shop { --c: var(--orange); }

.contact {
  display: grid; gap: 20px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 36px);
}
@media (min-width: 760px) { .contact { grid-template-columns: 1fr auto; } }
.contact h3 { margin-bottom: 4px; }
.contact p { margin: 0; color: var(--muted); }
.contact .btn { font-size: 15px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.7); font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0 34px; }
.footer__inner img { height: 36px; width: auto; }
.footer__inner p { margin: 0; display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.footer__heart { color: var(--red); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-weight: 800; color: #fff; }
.footer__nav a:hover { color: var(--yellow); }

/* ---------- Page heads (sub pages) ---------- */
.page-head { color: #fff; padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); position: relative; overflow: hidden; }
.page-head h1 { font-size: clamp(34px, 5.5vw, 58px); text-wrap: balance; }
.page-head .lead--light { color: rgba(255,255,255,.85); max-width: 600px; }
.page-head--blue { background: radial-gradient(800px 400px at 90% 0%, rgba(91,124,240,.5), transparent 60%), linear-gradient(180deg, var(--navy), var(--navy-2)); }
.page-head--orange { background: radial-gradient(800px 400px at 90% 0%, rgba(255,211,77,.35), transparent 60%), linear-gradient(180deg, var(--navy), #2a2a5e); }
.page-head__row { display: grid; gap: 24px; align-items: center; }
.page-head__img { width: min(60vw, 240px); border-radius: var(--r-lg); justify-self: center; box-shadow: var(--shadow-lg); transform: rotate(3deg); }
@media (min-width: 760px) { .page-head__row { grid-template-columns: 1fr auto; } .page-head__img { width: 280px; } }

/* Channel filter (videoer) */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.filter__btn {
  --c: var(--blue);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 10px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.2);
  font: 800 14px/1 var(--font-body);
  transition: background .2s, border-color .2s, transform .15s;
}
.filter__btn img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.filter__btn:hover { background: rgba(255,255,255,.18); transform: translateY(-1px); }
.filter__btn.is-active { background: #fff; color: var(--navy); border-color: #fff; box-shadow: 0 4px 0 var(--c); }
.filter__btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.video-panel[hidden] { display: none; }
.page-videoer .section { padding-top: clamp(32px, 5vw, 56px); }
.center { text-align: center; margin-top: 28px; }
.channel-banner {
  display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-left: 8px solid var(--c);
  border-radius: var(--r); padding: 18px 20px; margin-bottom: 24px;
}
.channel-banner img { width: 60px; height: 60px; border-radius: 16px; object-fit: cover; }
.channel-banner h2 { margin: 0; font-size: 24px; }
.channel-banner p { margin: 0; color: var(--muted); font-size: 14.5px; font-weight: 700; }
.channel-banner .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 700px) { .channel-banner { grid-template-columns: auto 1fr auto; } .channel-banner .btn { grid-column: auto; } }
.video__short { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; }

/* Horizontal product scroller (home teaser) */
.scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(70vw, 220px);
  gap: 14px; overflow-x: auto; padding: 4px 4px 14px; margin: 0 -4px;
  scroll-snap-type: x mandatory; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.scroller > * { scroll-snap-align: start; }
@media (min-width: 900px) { .scroller { grid-auto-columns: 1fr; grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; } }

/* Explore cards (home) */
.explore { display: grid; gap: 14px; }
@media (min-width: 760px) { .explore { grid-template-columns: repeat(3, 1fr); } }
.explore__card {
  position: relative; display: grid; gap: 6px; align-content: start;
  padding: 24px 24px 28px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.explore__card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.explore__card--om { background: linear-gradient(135deg, #fff8e6, #fff); }
.explore__card--events { background: linear-gradient(135deg, #e9f8e3, #fff); }
.explore__card--links { background: linear-gradient(135deg, #e8eeff, #fff); }
.explore__emoji { font-size: 34px; line-height: 1; margin-bottom: 6px; }
.explore__title { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.explore__text { color: var(--muted); font-size: 15px; }
.explore__arrow { position: absolute; right: 20px; top: 24px; color: var(--muted); transition: transform .2s; }
.explore__card:hover .explore__arrow { transform: translateX(4px); color: var(--ink); }

/* Collections (merch page) */
.collection-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .collection-grid { grid-template-columns: repeat(5, 1fr); } }
.collection {
  position: relative; display: grid; gap: 6px; padding: 18px 16px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r);
  transition: transform .2s, border-color .2s, background .2s;
}
.collection:hover { transform: translateY(-4px); border-color: var(--orange); background: #fff8e6; }
.collection__emoji { font-size: 30px; line-height: 1; }
.collection__name { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.collection__arrow { position: absolute; right: 14px; top: 16px; color: var(--muted); }
.parents--merch .btn { justify-self: center; }

/* Nat & David page extras */
.natdavid--page { padding-block: clamp(40px, 7vw, 80px) clamp(56px, 8vw, 96px); position: relative; }
.natdavid h1 { font-size: clamp(36px, 6vw, 62px); }
.design-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .design-grid { grid-template-columns: repeat(4, 1fr); } }
.design-grid img {
  width: 100%; aspect-ratio: 1; object-fit: contain;
  background: #fff; border-radius: var(--r); padding: 14px;
  box-shadow: var(--shadow); transition: transform .25s;
}
.design-grid li:nth-child(odd) img { transform: rotate(-2deg); }
.design-grid li:nth-child(even) img { transform: rotate(2deg); }
.design-grid img:hover { transform: rotate(0) scale(1.05); }
.soon { display: flex; align-items: center; gap: 14px; margin-top: 24px; background: #fff; border: 2px dashed var(--pink); border-radius: var(--r); padding: 16px 20px; }
.soon span { font-size: 30px; }
.soon p { margin: 0; color: var(--muted); }
.feu {
  display: grid; gap: 24px; align-items: center;
  background: var(--navy); color: #fff; border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 44px); overflow: hidden; position: relative;
}
.feu .kicker { color: var(--yellow); }
.feu p { color: rgba(255,255,255,.82); }
.feu img { width: min(60vw, 220px); border-radius: var(--r); justify-self: center; transform: rotate(3deg); box-shadow: var(--shadow-lg); }
@media (min-width: 760px) { .feu { grid-template-columns: 1fr auto; gap: 40px; } }

/* 404 */
.notfound__inner { text-align: center; display: grid; justify-items: center; gap: 6px; max-width: 560px; }
.notfound img { width: 150px; cursor: pointer; animation: float 5s ease-in-out infinite; }
.notfound .hero__actions { justify-content: center; margin-top: 16px; }
.collabs--light .collab { background: var(--card); border-color: var(--line); }
.collabs--light .collab h3 { color: var(--ink); font-size: 20px; margin: 0; }
.collabs--light .collab p { color: var(--muted); }
.collabs--light .collab a { color: var(--blue); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }
.reveal:nth-child(5) { transition-delay: .32s; }
.reveal:nth-child(6) { transition-delay: .4s; }
.reveal:nth-child(7) { transition-delay: .48s; }
.reveal:nth-child(8) { transition-delay: .56s; }
