/* nys4nd3r. Layout: a full-bleed cinematic hero from the latest episode, then one 1120px column of
   warm cards. Colours come from the raven logo: charcoal feathers, ember orange, the cyan eye. */
:root {
  --bg: #0d0f13;
  --surface: #181c23;
  --surface-2: #1f242d;
  --line: rgba(255, 255, 255, .07);
  --text: #f3ece4;
  --dim: #a9a39b;
  --ember: #ff7a1a;
  --ember-2: #ffb15c;
  --eye: #3fd0ff;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.02em; line-height: 1.05; text-wrap: balance; }
.muted { color: var(--dim); }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ember); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--eye); outline-offset: 3px; border-radius: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

/* NAV: transparent over the hero, solid once you scroll */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background .35s, border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(13, 15, 19, .82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 20px var(--display); }
.brand img { border-radius: 9px; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.nav nav { display: flex; gap: 4px; margin-left: auto; }
.nav nav a { text-decoration: none; color: rgba(243, 236, 228, .75); padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: 15px; transition: color .2s, background .2s; }
.nav nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.lang { background: rgba(24, 28, 35, .7); color: var(--text); border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; padding: 7px 11px; font: 600 13px var(--body); cursor: pointer; transition: border-color .2s; }
.lang:hover { border-color: var(--ember); }
.live-pill { display: inline-flex; align-items: center; gap: 7px; background: #e0263a; color: #fff; padding: 5px 11px; border-radius: 999px; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; }
.live-pill .dot { background: #fff; animation: ping 1.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.8); } 100% { box-shadow: 0 0 0 9px rgba(255,255,255,0); } }

/* HERO */
.hero { position: relative; min-height: min(640px, 92svh); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; padding-top: 110px; padding-bottom: 64px; }
.hero-bg { position: absolute; inset: 0; z-index: -3; overflow: hidden; background: var(--surface); }
.hero-img { position: absolute; inset: -4%; background: var(--hero-img, none) center right / cover no-repeat; animation: kenburns 26s ease-in-out infinite alternate; will-change: transform; filter: blur(1.5px) brightness(.9); transform: translate3d(0, var(--parallax, 0px), 0); }
@keyframes kenburns { from { scale: 1.08; } to { scale: 1; } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(42% 70% at 15% 80%, rgba(255, 122, 26, .2), transparent 70%),
    linear-gradient(90deg, rgba(13,15,19,.98) 0%, rgba(13,15,19,.92) 42%, rgba(13,15,19,.45) 66%, rgba(13,15,19,.15) 85%),
    linear-gradient(0deg, var(--bg) 0%, rgba(13,15,19,0) 45%); }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-inner { width: 100%; }
.hero-copy { max-width: 600px; }
.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-copy > *:nth-child(5) { animation-delay: .32s; }
/* Only movement, never transparency: the first frame (thumbnails, link previews) is already complete. */
@keyframes rise { from { transform: translateY(16px); } }
.now { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,122,26,.14); border: 1px solid rgba(255,122,26,.32); color: var(--ember-2); font-size: 13px; font-weight: 600; text-decoration: none; transition: background .25s, border-color .25s; }
.now:hover { background: rgba(255,122,26,.22); border-color: rgba(255,122,26,.5); }
.now strong { color: var(--text); }
.now .dot { animation: breathe 2s ease-in-out infinite; }
.now.is-live { background: rgba(224,38,58,.18); border-color: rgba(224,38,58,.5); color: #ff8a96; }
@keyframes breathe { 50% { opacity: .35; transform: scale(.7); } }
.hero h1 { font-weight: 800; font-size: clamp(40px, 5.4vw, 62px); margin-top: 20px; }
.hero h1 span { display: block; }
.accent { color: var(--ember); }
.lead { font-size: clamp(16px, 1.4vw, 18px); color: rgba(243,236,228,.78); margin: 16px 0 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-note { margin: 18px 0 0; color: rgba(243,236,228,.55); font-size: 13px; }

/* BUTTONS */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 14px; font-weight: 600; font-size: 15px; text-decoration: none; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s; }
.btn svg { width: 15px; height: 15px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn-primary { background: var(--ember); color: #1a0d03; font-weight: 700; box-shadow: 0 12px 30px -12px rgba(255,122,26,.6); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%); transform: translateX(-120%); }
.btn-primary:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
.btn-primary:hover { box-shadow: 0 16px 36px -12px rgba(255,122,26,.75); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--text); border: 1px solid rgba(255,255,255,.14); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); }
.btn-sm { padding: 9px 15px; font-size: 14px; border-radius: 12px; }
.btn.is-off { background: rgba(255,255,255,.06); color: var(--dim); box-shadow: none; pointer-events: none; }

/* BLOCKS */
.block { padding-top: 64px; }
#videos { padding-top: 28px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.block-head h2 { font-weight: 800; font-size: 30px; }
.head-link { color: var(--dim); text-decoration: none; font-weight: 600; font-size: 14px; transition: color .2s; }
.head-link:hover { color: var(--ember-2); }
.intro { color: var(--dim); margin: -6px 0 16px; max-width: 42em; font-size: 15px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tab { background: var(--surface); color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font: 500 14px var(--body); cursor: pointer; transition: all .2s; }
.tab:hover { color: var(--text); }
.tab.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }

/* VIDEOS */
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.video { text-decoration: none; display: block; }
.thumb { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--surface); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; }
.thumb::after { content: ""; position: absolute; inset: 0; background: rgba(13,15,19,.35); opacity: 0; transition: opacity .3s; }
.play { position: absolute; inset: 0; margin: auto; z-index: 1; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,122,26,.95); display: grid; place-items: center; opacity: 0; transform: scale(.7); transition: opacity .3s, transform .35s var(--ease); }
.play svg { width: 18px; fill: #1a0d03; margin-left: 3px; }
.video:hover .thumb img { transform: scale(1.05); }
.video:hover .thumb::after { opacity: 1; }
.video:hover .play { opacity: 1; transform: scale(1); }
.video h3 { font: 600 15px/1.35 var(--body); letter-spacing: 0; margin-top: 10px; transition: color .2s; }
.video:hover h3 { color: var(--ember-2); }
.video .meta { color: var(--dim); font-size: 13px; margin-top: 3px; font-variant-numeric: tabular-nums; }

/* CARDS: a border that lights up under the pointer */
.card { --mx: 50%; --my: 0%; position: relative; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s; }
.card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255,122,26,.75), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card:hover { transform: translateY(-3px); }
.card:hover::before { opacity: 1; }

/* NEWS */
.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.news-item { display: flex; gap: 24px; padding: 18px 22px; text-decoration: none; }
.news-item time { flex: 0 0 92px; color: var(--dim); font-size: 13px; padding-top: 3px; font-variant-numeric: tabular-nums; }
.news-body { flex: 1 1 0; min-width: 0; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; color: var(--ember-2); background: rgba(255,122,26,.12); }
.tag.dub { color: var(--eye); background: rgba(63,208,255,.1); }
.news-item h3 { font-weight: 600; font-size: 19px; margin-top: 7px; }
.news-item p { color: var(--dim); margin: 3px 0 0; font-size: 15px; }
.more { margin-top: 14px; background: none; border: 0; padding: 0; color: var(--dim); font: 600 14px var(--body); cursor: pointer; }
.more:hover { color: var(--ember-2); }

/* MODS */
.mod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mod { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.mod.featured { background: linear-gradient(160deg, #241a12, var(--surface) 60%); border-color: rgba(255,122,26,.3); }
.mod-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.mod h3 { font-weight: 600; font-size: 20px; }
.ver { font-size: 12px; color: var(--dim); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 2px 7px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ver.wip { color: var(--eye); border-color: rgba(63,208,255,.3); }
.mod p { margin: 0; color: var(--dim); font-size: 15px; line-height: 1.55; }
.mod .server { font-size: 14px; color: var(--dim); border-left: 2px solid var(--eye); padding-left: 10px; }
.mod .server strong { color: var(--text); font-weight: 600; }
.mod-foot { margin-top: auto; padding-top: 4px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mod-foot .facts { color: var(--dim); font-size: 13px; }
.mod-foot .count { display: block; font-size: 12px; color: var(--dim); }

/* ABOUT */
.about-card { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; padding: 28px; border-radius: 20px; background: radial-gradient(60% 120% at 0% 50%, rgba(255,122,26,.1), transparent 70%), var(--surface); border: 1px solid var(--line); }
.about-card > img { border-radius: 16px; }
.about-copy { flex: 1 1 320px; min-width: 0; }
.about-copy h2 { font-weight: 800; font-size: 24px; }
.about-copy p { margin: 4px 0 0; color: var(--dim); font-size: 15px; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; text-decoration: none; transition: transform .25s var(--ease), filter .2s; }
.socials a:hover { transform: translateY(-2px); filter: brightness(1.2); }
.s-twitch { background: rgba(169,112,255,.14); color: #c9a6ff; }
.s-youtube { background: rgba(255,77,77,.12); color: #ff8a8a; }
.s-discord { background: rgba(123,136,255,.14); color: #aab3ff; }

.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 48px 0 32px; color: var(--dim); font-size: 13px; }
.footer p { margin: 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

/* SCROLL-IN: only things below the first screen wait for it; the first screen is complete at rest */
.pre { opacity: 0; transform: translateY(22px); }
.pre.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }

@media (max-width: 900px) {
  .video-grid, .mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .nav nav { display: none; }
  .lang { margin-left: auto; }
  .video-grid, .mod-grid { grid-template-columns: 1fr; }
  .news-item { flex-direction: column; gap: 4px; }
  .news-item time { flex: none; }
  .hero { min-height: 560px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .pre { opacity: 1; transform: none; }
}
