/* =====================================================
   POLYMON — Main Stylesheet
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&family=Bebas+Neue&family=Lora:ital@1&family=Karla:wght@400;600&display=swap');

:root {
  --fire:   #e8620c;
  --flame:  #ff8c3a;
  --gold:   #f5b843;
  --ink:    #060409;
  --dark:   #0c0910;
  --card:   #110e16;
  --text:   #f0e8d8;
  --muted:  #6e6478;
  --border: rgba(245,184,67,.1);
  --glow-o: rgba(232,98,12,.4);
  --glow-g: rgba(245,184,67,.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Karla', sans-serif;
  background: var(--ink);
  color: var(--text);
  overflow-x: hidden;
}

/* ── NAV ─────────────────────────────── */
#nav {
  position: fixed; inset: 0 0 auto;
  z-index: 200;
  padding: 24px 60px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .5s, padding .4s, box-shadow .4s;
}
#nav.stuck {
  padding: 14px 60px;
  background: rgba(6,4,9,.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--border);
}

.logo {
  font-family: 'Caveat', cursive;
  font-size: 2rem; font-weight: 700;
  color: var(--text); text-decoration: none;
  position: relative; z-index: 1;
}
.logo::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--fire);
  transition: width .3s ease;
}
.logo:hover::after { width: 100%; }

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

.nav-discord {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 3px;
  background: #5865f2; color: #fff;
  font-size: .8rem; font-weight: 600; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.nav-discord:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(88,101,242,.5); }

.nav-x {
  padding: 9px 16px; border-radius: 3px;
  border: 1px solid rgba(240,232,216,.35);
  color: rgba(240,232,216,.85); font-size: .8rem; font-weight: 600;
  text-decoration: none; transition: all .2s;
}
.nav-x:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.nav-about {
  padding: 9px 16px; border-radius: 3px;
  border: 1px solid var(--fire);
  color: var(--fire); font-size: .8rem; font-weight: 600;
  text-decoration: none; transition: all .2s;
  background: rgba(232,98,12,.08);
}
.nav-about:hover { background: var(--fire); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 24px var(--glow-o); }

/* ── HAMBURGER ───────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; padding: 6px;
  z-index: 300;
}
.nav-burger span {
  display: block; height: 2px; border-radius: 2px;
  background: var(--text);
  transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .25s, width .3s;
  transform-origin: center;
}
.nav-burger span:nth-child(1) { width: 100%; }
.nav-burger span:nth-child(2) { width: 70%; }
.nav-burger span:nth-child(3) { width: 100%; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(6,4,9,.97);
  backdrop-filter: blur(24px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 28px;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.nav-drawer.open { opacity: 1; pointer-events: auto; }
.nav-drawer a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem; letter-spacing: 2px;
  color: var(--text); text-decoration: none;
  opacity: 0; transform: translateY(20px);
  transition: color .2s;
}
.nav-drawer.open a {
  opacity: 1; transform: translateY(0);
}
.nav-drawer.open a:nth-child(1) { transition: color .2s, opacity .4s .1s, transform .4s .1s; }
.nav-drawer.open a:nth-child(2) { transition: color .2s, opacity .4s .18s, transform .4s .18s; }
.nav-drawer.open a:nth-child(3) { transition: color .2s, opacity .4s .26s, transform .4s .26s; }
.nav-drawer a:hover { color: var(--fire); }
.nav-drawer-line {
  width: 48px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--fire), transparent);
  opacity: .4;
}


/* ── HERO ────────────────────────────── */
#hero {
  position: relative;
  height: 100vh; min-height: 640px;
  display: flex; align-items: flex-end;
  padding-bottom: 10vh;
  overflow: hidden;
}

.hero-layer {
  position: absolute; inset: 0;
  will-change: transform;
}

/* The actual screenshot — high quality, no brightness kill */
.hero-layer-img {
  background: url('https://files.catbox.moe/23t453.webp') center 35% / cover no-repeat;
  transform: scale(1.1);
  filter: saturate(1.3) contrast(1.1);
  z-index: 1;
  transition: transform 0s;
}

/* Gradient that creates the cinematic look without killing the image */
.hero-layer-fog {
  background:
    linear-gradient(to right,  rgba(6,4,9,.88) 0%, rgba(6,4,9,.5) 50%, rgba(6,4,9,.15) 100%),
    linear-gradient(to top,    rgba(6,4,9,.95) 0%, rgba(6,4,9,.3) 35%, transparent 60%);
  z-index: 2;
}

/* Subtle orange vignette from corners */
.hero-layer-vignette {
  background: radial-gradient(ellipse at 100% 0%, rgba(232,98,12,.12) 0%, transparent 55%),
              radial-gradient(ellipse at 0% 100%, rgba(232,98,12,.08) 0%, transparent 45%);
  z-index: 3;
  pointer-events: none;
}

/* Diagonal glowing lines — pure CSS */
.hero-lines {
  position: absolute; inset: 0; z-index: 4;
  pointer-events: none; width: 100%; height: 100%;
}
.hline {
  stroke: var(--fire);
  stroke-width: 1;
  stroke-dasharray: 400 800;
  stroke-dashoffset: 1200;
  opacity: 0;
}
.hline-1 { animation: lineIn 2s 1.4s ease forwards; }
.hline-2 { animation: lineIn 2s 1.7s ease forwards; opacity: 0; }
.hline-3 { animation: lineIn 2.5s 2s ease forwards; }

@keyframes lineIn {
  to { stroke-dashoffset: 0; opacity: .18; }
}

.hero-body {
  position: relative; z-index: 10;
  padding-left: 60px;
  max-width: 800px;
}

/* Badge */
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px; border-radius: 2px;
  background: rgba(232,98,12,.12);
  border: 1px solid rgba(232,98,12,.35);
  font-size: .7rem; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--flame);
  margin-bottom: 28px;
  opacity: 0; transform: translateY(10px);
  animation: fadeUp .6s .3s cubic-bezier(.22,1,.36,1) forwards;
}
.hero-tag-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--fire);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 var(--glow-o); }
  50%      { box-shadow: 0 0 0 6px transparent; }
}

/* Huge staggered title */
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(7rem, 18vw, 16rem);
  line-height: .85;
  letter-spacing: -2px;
  display: block;
  margin-bottom: 28px;
}
.htl {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px) skewY(4deg);
  animation: letterIn .7s cubic-bezier(.22,1,.36,1) forwards;
  color: var(--text);
}
.htl-outline {
  -webkit-text-stroke: 2px var(--fire);
  color: transparent;
  text-shadow: 0 0 60px rgba(232,98,12,.4);
}
/* subtle shimmer on title letters after load */
.htl.in-view {
  animation: shimmerLetter 6s 1.5s ease-in-out infinite alternate;
}
@keyframes shimmerLetter {
  0%   { text-shadow: none; }
  100% { text-shadow: 0 0 40px rgba(232,98,12,.15); }
}
.htl:nth-child(1) { animation-delay: .5s; }
.htl:nth-child(2) { animation-delay: .58s; }
.htl:nth-child(3) { animation-delay: .64s; }
.htl:nth-child(4) { animation-delay: .70s; }
.htl:nth-child(5) { animation-delay: .76s; }
.htl:nth-child(6) { animation-delay: .82s; }
.htl:nth-child(7) { animation-delay: .88s; }

@keyframes letterIn {
  to { opacity: 1; transform: translateY(0) skewY(0); }
}

.hero-desc {
  font-family: 'Lora', serif;
  font-size: clamp(.95rem, 1.7vw, 1.1rem);
  font-style: italic;
  color: rgba(240,232,216,.55);
  line-height: 1.9;
  margin-bottom: 36px;
  opacity: 0; transform: translateY(12px);
  animation: fadeUp .6s 1.1s cubic-bezier(.22,1,.36,1) forwards;
}

.hero-btns {
  display: flex; gap: 14px; flex-wrap: wrap;
  opacity: 0; transform: translateY(12px);
  animation: fadeUp .6s 1.25s cubic-bezier(.22,1,.36,1) forwards;
}

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.hbtn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 34px; border-radius: 3px;
  font-size: .9rem; font-weight: 600; text-decoration: none;
  font-family: 'Karla', sans-serif; letter-spacing: .4px;
  position: relative; overflow: hidden;
  transition: transform .22s, box-shadow .22s;
}
/* shine sweep */
.hbtn::before {
  content: '';
  position: absolute; top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transform: skewX(-18deg);
  transition: left .55s ease;
}
.hbtn:hover::before { left: 160%; }
.hbtn:hover { transform: translateY(-3px); }

.hbtn-primary {
  background: linear-gradient(120deg, var(--fire) 0%, #b84800 100%);
  color: #fff;
  box-shadow: 0 4px 32px var(--glow-o), inset 0 1px 0 rgba(255,255,255,.15);
}
.hbtn-primary:hover { box-shadow: 0 10px 48px rgba(232,98,12,.6), inset 0 1px 0 rgba(255,255,255,.2); }

.hbtn-ghost {
  border: 1px solid rgba(245,184,67,.3);
  color: var(--gold);
  backdrop-filter: blur(6px);
}
.hbtn-ghost:hover { border-color: var(--gold); box-shadow: 0 0 32px rgba(245,184,67,.15); }

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 36px; right: 60px; z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  opacity: 0; animation: fadeUp .5s 1.7s forwards;
}
.scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(240,232,216,.3);
  border-radius: 12px;
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-wheel {
  width: 4px; height: 8px;
  background: var(--fire);
  border-radius: 2px;
  animation: wheelScroll 2s ease-in-out 2s infinite;
}
@keyframes wheelScroll {
  0%   { transform: translateY(0); opacity: 1; }
  80%  { transform: translateY(12px); opacity: 0; }
  81%  { transform: translateY(0); opacity: 0; }
  100% { opacity: 1; }
}
.scroll-cue span {
  font-size: .65rem; letter-spacing: 4px;
  text-transform: uppercase; color: var(--muted);
}


/* ── SECTION DIVIDER ─────────────────── */
.section-rule {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--fire), transparent);
  margin-bottom: 20px;
}

/* ── EYEBROW / TITLES ────────────────── */
.eyebrow {
  display: inline-block;
  font-size: .68rem; font-weight: 600;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--fire); margin-bottom: 16px;
}
.big-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: .9; letter-spacing: -1px;
  color: var(--text);
}
.big-title em {
  font-style: normal;
  -webkit-text-stroke: 2px var(--gold);
  color: transparent;
}


/* ── REVEAL ──────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity .85s cubic-bezier(.22,1,.36,1),
              transform .85s cubic-bezier(.22,1,.36,1);
}
[data-reveal][data-delay="1"] { transition-delay: .15s; }
[data-reveal][data-delay="2"] { transition-delay: .3s; }
[data-reveal][data-delay="3"] { transition-delay: .45s; }
[data-reveal].in-view { opacity: 1; transform: none; }


/* ── PILLARS ─────────────────────────── */
#pillars {
  position: relative; z-index: 1;
  padding: 140px 60px;
  background: var(--ink);
  /* angled top edge */
  clip-path: polygon(0 48px, 100% 0, 100% 100%, 0 100%);
  margin-top: -48px;
}

/* ambient glow behind section */
#pillars::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 800px; height: 400px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(232,98,12,.05) 0%, transparent 70%);
  pointer-events: none;
}

.pillars-wrap {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
}
.pillars-intro { position: sticky; top: 140px; }
.pillars-intro .big-title { margin-top: 0; }

.cards-row {
  display: flex; flex-direction: column; gap: 2px;
}

.card {
  position: relative; overflow: hidden;
  padding: 44px 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color .3s, transform .3s, background .3s;
  cursor: default;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--fire), var(--gold), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.card:hover::before { transform: scaleX(1); }
.card:hover {
  border-color: rgba(232,98,12,.25);
  transform: translateX(6px);
  background: #15111e;
}

.card-featured {
  border-color: rgba(232,98,12,.2);
}
.card-featured::before { transform: scaleX(.4); }
.card-featured:hover::before { transform: scaleX(1); }

.card-glow {
  position: absolute; bottom: -40px; right: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,98,12,.1), transparent 70%);
  opacity: 0; transition: opacity .4s;
}
.card:hover .card-glow { opacity: 1; }

.card-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem; color: var(--fire);
  opacity: .12; line-height: 1;
  margin-bottom: 16px;
}
.card-icon {
  font-size: 2.4rem; margin-bottom: 16px;
  filter: drop-shadow(0 0 12px var(--glow-o));
}
.card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem; letter-spacing: .5px;
  color: var(--text); margin-bottom: 12px;
}
.card p { font-size: .88rem; color: var(--muted); line-height: 1.85; }


/* ── MEDIA ───────────────────────────── */
#media {
  position: relative; z-index: 1;
  padding: 120px 60px 140px;
  background: var(--dark);
  clip-path: polygon(0 0, 100% 48px, 100% calc(100% - 48px), 0 100%);
  margin: -48px 0;
}
/* subtle texture */
#media::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='1' height='1' fill='rgba(245,184,67,0.03)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.media-wrap {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 300px 1fr;
  gap: 80px; align-items: start;
}
.media-intro { position: sticky; top: 140px; }

.slider-outer { position: relative; }
.slider {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
  box-shadow:
    0 40px 120px rgba(0,0,0,.7),
    0 0 0 1px var(--border),
    0 0 80px rgba(232,98,12,.08);
}
.slide {
  position: absolute; inset: 0;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
.slide.exit-left  { opacity: 0; transform: translateX(-40px); }
.slide.exit-right { opacity: 0; transform: translateX(40px); }
.slide.active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.slide video, .slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: contrast(1.08) saturate(1.15);
}

/* frame corners — like LoL UI */
.slider::before, .slider::after {
  content: '';
  position: absolute; z-index: 3; pointer-events: none;
  width: 24px; height: 24px;
  border-color: var(--fire);
  border-style: solid;
  opacity: .6;
}
.slider::before { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.slider::after  { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }

/* vignette on video */
.slide::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 100% 90% at 50% 50%, transparent 45%, rgba(0,0,0,.45) 100%);
  pointer-events: none;
}

.sarrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid rgba(245,184,67,.2);
  background: rgba(6,4,9,.75);
  backdrop-filter: blur(12px);
  color: var(--gold); cursor: pointer; z-index: 4;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s;
}
.sarrow:hover {
  border-color: var(--gold);
  background: rgba(245,184,67,.12);
  box-shadow: 0 0 32px rgba(245,184,67,.2);
  transform: translateY(-50%) scale(1.1);
}
.sarrow-l { left: -25px; }
.sarrow-r { right: -25px; }

.sdots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 24px;
}
.sdot {
  height: 3px; border-radius: 2px;
  width: 28px; background: rgba(245,184,67,.15);
  border: none; cursor: pointer; padding: 0;
  /* bigger tap target without visual change */
  position: relative;
  transition: width .3s, background .3s;
}
.sdot::before {
  content: '';
  position: absolute; inset: -10px -4px;
}
.sdot.on { width: 48px; background: var(--fire); }
/* progress fill inside active dot */
.sdot.on::after {
  content: '';
  position: absolute; inset: 0; left: 0;
  background: var(--gold);
  border-radius: 2px;
  animation: dotProgress var(--dot-duration, 4000ms) linear forwards;
  transform-origin: left;
}
@keyframes dotProgress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}


/* ── ABOUT TEASER ────────────────────── */
#about-teaser {
  position: relative; z-index: 2;
  padding: 80px 60px;
  background: var(--ink);
}
.teaser-wrap { max-width: 1100px; margin: 0 auto; }
.teaser-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 52px 60px;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  position: relative; overflow: hidden;
  transition: border-color .35s, transform .3s, box-shadow .35s;
}
/* animated gradient border on hover */
.teaser-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 6px;
  background: linear-gradient(120deg, transparent 0%, rgba(232,98,12,.06) 50%, transparent 100%);
  opacity: 0; transition: opacity .4s;
}
.teaser-card:hover::before { opacity: 1; }
.teaser-card:hover {
  border-color: rgba(232,98,12,.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(232,98,12,.1);
}
/* shimmer line */
.teaser-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--fire), var(--gold), transparent);
  transform: scaleX(0); transition: transform .6s ease;
}
.teaser-card:hover::after { transform: scaleX(1); }

.teaser-left .eyebrow { margin-bottom: 8px; }
.teaser-left strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem; letter-spacing: .5px;
  color: var(--text); display: block; margin-bottom: 8px;
}
.teaser-left p { font-size: .88rem; color: var(--muted); font-style: italic; font-family: 'Lora', serif; }

.teaser-arrow {
  width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid rgba(232,98,12,.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--fire); flex-shrink: 0;
  transition: all .3s;
}
.teaser-card:hover .teaser-arrow {
  background: var(--fire); border-color: var(--fire); color: #fff;
  transform: translateX(8px);
  box-shadow: 0 0 32px var(--glow-o);
}


/* ── COMMUNITY ───────────────────────── */
#community {
  position: relative; z-index: 1;
  padding: 120px 60px;
  background: var(--dark);
  clip-path: polygon(0 48px, 100% 0, 100% 100%, 0 100%);
  margin-top: -48px;
}
.community-wrap {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.community-left p {
  font-size: .92rem; color: var(--muted);
  line-height: 1.9; margin-top: 24px; max-width: 380px;
}

.community-right { display: flex; flex-direction: column; gap: 16px; }
.comm-btn {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 28px; border-radius: 5px;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.comm-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,.04);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform .4s ease;
}
.comm-btn:hover::before { transform: translateX(120%) skewX(-15deg); }
.comm-btn:hover { transform: translateY(-3px); }

.comm-btn svg { flex-shrink: 0; opacity: .8; }
.comm-btn div { display: flex; flex-direction: column; gap: 3px; }
.comm-btn strong { font-size: .95rem; font-weight: 600; color: #fff; }
.comm-btn span { font-size: .78rem; opacity: .6; }

.comm-discord {
  background: linear-gradient(120deg, #5865f2, #4042b3);
  color: #fff;
}
.comm-discord:hover { box-shadow: 0 10px 48px rgba(88,101,242,.45); }

.comm-x {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
}
.comm-x:hover { border-color: rgba(245,184,67,.3); box-shadow: 0 10px 40px rgba(0,0,0,.4); }


/* ── FOOTER ──────────────────────────── */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 30px 60px;
  background: var(--ink);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
footer p { font-size: .78rem; color: var(--muted); }
footer a { color: var(--muted); text-decoration: none; transition: color .15s; }
footer a:hover { color: var(--fire); }


/* ── ABOUT PAGE ──────────────────────── */
#about-page {
  max-width: 900px; margin: 0 auto;
  padding: 160px 60px 120px;
  min-height: 80vh;
}
.back-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted); text-decoration: none; margin-bottom: 56px;
  transition: color .15s;
}
.back-link:hover { color: var(--fire); }
.about-empty {
  font-family: 'Lora', serif; font-style: italic;
  color: var(--muted); font-size: 1rem; margin-top: 28px;
}


/* ── REDUCED MOTION ──────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ── TABLET ──────────────────────────── */
@media (max-width: 1000px) {
  .pillars-intro { position: static; }
  .media-intro   { position: static; }
}

/* ── MOBILE ──────────────────────────── */
@media (max-width: 900px) {
  #nav, #nav.stuck { padding: 14px 22px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  #hero { align-items: center; padding-bottom: 0; }
  .hero-body { padding: 0 22px; padding-top: 80px; }
  .hero-btns { flex-direction: column; }
  .hbtn { justify-content: center; }

  /* disable translateX card hover on touch */
  .card:hover { transform: none; }

  #pillars {
    clip-path: none; margin-top: 0; padding: 80px 22px;
  }
  .pillars-wrap { grid-template-columns: 1fr; gap: 48px; }
  .pillars-intro { position: static; }

  #media {
    clip-path: none; margin: 0; padding: 80px 22px;
  }
  .media-wrap { grid-template-columns: 1fr; gap: 40px; }
  .media-intro { position: static; }

  /* show arrows on tablet, hide only on small phones */
  .sarrow-l { left: 8px; }
  .sarrow-r { right: 8px; }

  #about-teaser { padding: 60px 22px; }
  .teaser-card { padding: 36px 28px; flex-direction: column; align-items: flex-start; gap: 28px; }

  #community { clip-path: none; margin-top: 0; padding: 80px 22px; }
  .community-wrap { grid-template-columns: 1fr; gap: 48px; }
  .community-left p { max-width: 100%; }

  footer { padding: 24px 22px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }

  #about-page { padding: 120px 22px 80px; }
}

@media (max-width: 600px) {
  .hero-title { font-size: clamp(4.5rem, 22vw, 7rem); }
  .sarrow { display: none; }

  /* bigger dot tap targets on small screens */
  .sdot { height: 4px; }
  .sdot.on { width: 40px; }

  .hero-tag {
    font-size: .62rem;
    letter-spacing: 2px;
  }

  .teaser-card { padding: 28px 20px; }
  .teaser-left strong { font-size: 1.8rem; }
  .teaser-arrow { width: 48px; height: 48px; }

  .comm-btn { padding: 18px 20px; }
  .comm-btn strong { font-size: .88rem; }
}
