/* Nagox - Ragnarok Origin Classic Private Server - landing page */

:root {
  --navy-900: #141b27;
  --navy-800: #1f2e42;
  --navy-700: #2a3c54;
  --gold-300: #f6dca3;
  --gold-400: #d6a557;
  --gold-500: #f7b508;
  --blue-400: #84afe2;
  --blue-500: #5796da;
  --ink-100: #f6f7f8;
  --ink-200: #edeff2;
  --ink-400: #a8b8c8;
  --ink-500: #8391a9;
  --ease-premium: cubic-bezier(.16, .84, .44, 1);
}

* { box-sizing: border-box; }
html {
  /* Verified via document.scrollingElement: <html> is the real scroll
     container here (body's overflow-x:hidden propagates to the viewport
     rather than making body itself scrollable), so these must live here. */
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scroll-padding-top: 70px;
}
.hero, #screenshots, #classes, #news, footer { scroll-snap-align: start; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: var(--navy-900);
  color: var(--ink-100);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }

.section-heading { text-align: center; margin: 0 0 28px; }
.section-heading h2 {
  margin: 0; font-size: 1.6rem; letter-spacing: .06em; color: var(--gold-300);
  font-family: "Cinzel", serif; font-weight: 700;
}
.section-divider {
  display: flex; align-items: center; gap: 10px;
  width: min(220px, 60%); margin: 18px auto 0;
}
.section-divider::before, .section-divider::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400));
}
.section-divider::after { background: linear-gradient(90deg, var(--gold-400), transparent); }
.section-divider .gem {
  width: 9px; height: 9px; flex: 0 0 auto; background: var(--gold-400);
  transform: rotate(45deg); box-shadow: 0 0 10px rgba(247,181,8,.6);
}

/* ---------- Page loader ---------- */
.page-loader {
  position: fixed; inset: 0; z-index: 999; background: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s var(--ease-premium), visibility .6s var(--ease-premium);
}
.page-loader-mark {
  font-family: "Cinzel", serif; font-size: 2.6rem; font-weight: 700; color: var(--gold-400);
  animation: loader-pulse 1.1s ease-in-out infinite;
}
@keyframes loader-pulse { 0%,100% { opacity: .35; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.05); } }
.page-loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity .9s var(--ease-premium), transform .9s var(--ease-premium);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s var(--ease-premium), transform .7s var(--ease-premium);
}
.reveal-stagger.in-view > * { opacity: 1; transform: none; }

/* ---------- Glow orbs (ambient depth) ---------- */
.glow-orb {
  position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0;
  animation: orb-float 12s ease-in-out infinite;
}
.glow-orb-gold { width: 420px; height: 420px; background: radial-gradient(circle, rgba(247,181,8,.28), transparent 70%); top: -120px; left: -120px; }
.glow-orb-blue { width: 420px; height: 420px; background: radial-gradient(circle, rgba(87,150,218,.24), transparent 70%); bottom: -140px; right: -100px; animation-delay: -6s; }
.glow-orb-small { width: 280px; height: 280px; opacity: .7; }
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -24px) scale(1.08); }
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: linear-gradient(180deg, rgba(20,27,39,.32), rgba(20,27,39,.12));
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(246,220,163,.12);
  transition: background .3s var(--ease-premium), padding .3s var(--ease-premium), border-color .3s;
  transform: translateY(-100%); opacity: 0;
  animation: topbar-drop .8s .1s var(--ease-premium) forwards;
}
@keyframes topbar-drop { to { transform: translateY(0); opacity: 1; } }
.topbar.scrolled { background: rgba(20,27,39,.78); backdrop-filter: blur(10px); padding: 10px 28px; }
.topbar .brand {
  display: flex; align-items: center; gap: 10px; transition: transform .25s var(--ease-premium);
  font-family: "Cinzel", serif; font-weight: 700; letter-spacing: .08em; font-size: 1.15rem;
  color: var(--gold-300); text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.topbar .brand:hover { transform: scale(1.04); }
.topbar.scrolled .brand img { height: 28px; }
.topbar nav { display: flex; gap: 28px; }
.topbar nav a {
  position: relative; font-size: .9rem; color: var(--ink-200); font-weight: 500;
  padding: 6px 2px; transition: color .2s;
  text-shadow: 0 1px 6px rgba(0,0,0,.55);
}
.topbar nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--gold-500); transition: right .28s var(--ease-premium);
}
.topbar nav a:hover, .topbar nav a.active { color: var(--gold-300); }
.topbar nav a:hover::after, .topbar nav a.active::after { right: 0; }
.topbar .cta {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 6px;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-400));
  color: #2a2110; font-weight: 700; font-size: .85rem;
  padding: 9px 18px; border-radius: 999px;
  transition: transform .2s var(--ease-premium), box-shadow .2s var(--ease-premium);
}
.topbar .cta:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(247,181,8,.35); }
.topbar .cta img { height: 18px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink-100); font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: #000; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,14,22,.02) 0%, rgba(10,14,22,.08) 55%, rgba(20,27,39,.5) 100%);
}
.hero-bg-wrap { position: absolute; inset: 0; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: brightness(1.05) saturate(1.05);
  transform: scale(1.12) translate3d(0,0,0);
  animation: kenburns 24s ease-in-out infinite alternate;
}
@keyframes kenburns {
  0% { transform: scale(1.12) translate3d(0, 0, 0); }
  100% { transform: scale(1.22) translate3d(-1.5%, -2%, 0); }
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 120px 20px 80px; }
.wordmark, .wordmark span {
  background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wordmark {
  font-family: "Cinzel", serif; font-weight: 700; margin: 0 0 8px;
  font-size: clamp(2.6rem, 7vw, 4.2rem); line-height: 1.05;
  letter-spacing: .03em; transition-delay: .05s;
  text-shadow: 0 4px 24px rgba(0,0,0,.55);
  -webkit-text-stroke: 1px rgba(20,27,39,.45);
  background-image: linear-gradient(100deg,
    #eef1f5 0%, #eef1f5 30%, #e4c87a 45%, #fffef0 50%, #e4c87a 55%, #eef1f5 70%, #eef1f5 100%);
  background-size: 260% 100%;
  animation: wordmark-glow 4s ease-in-out 2s infinite, wordmark-shine 3.2s ease-in-out 1.6s infinite;
}
.wordmark span {
  display: block; font-size: .42em; letter-spacing: .5em; font-weight: 600;
  background-image: linear-gradient(100deg,
    var(--gold-300) 0%, var(--gold-300) 38%, #fff6da 47%, #fffef0 50%, #fff6da 53%, var(--gold-400) 62%, var(--gold-300) 100%);
  background-size: 260% 100%;
  animation: wordmark-shine 3.2s ease-in-out 2s infinite;
}
@keyframes wordmark-shine {
  /* Keep this within 0%-100%: with background-size > 100% and no-repeat,
     going outside that range leaves part of the glyphs uncovered by the
     gradient image entirely (invisible text) instead of just showing its
     flat end color. */
  0%, 50% { background-position: 0% 0; }
  100% { background-position: 100% 0; }
}
@keyframes wordmark-glow {
  0%, 55%, 100% { filter: drop-shadow(0 0 0 rgba(255,246,218,0)); }
  30% { filter: drop-shadow(0 0 18px rgba(255,246,218,.75)); }
}
.hero-slogan {
  font-family: "Cinzel", serif; font-size: 1rem; letter-spacing: .12em;
  color: var(--ink-200); margin: 0 auto 24px; transition-delay: .2s;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}
.hero-content p.tagline {
  max-width: 560px; margin: 0 auto 30px; color: var(--ink-200);
  font-size: 1rem; line-height: 1.6; transition-delay: .35s;
  text-shadow: 0 2px 10px rgba(0,0,0,.65);
}
.hero-cta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; transition-delay: .5s; }
.hero-download { margin-top: 30px; transition-delay: .62s; }
.hero-download-label {
  display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-400); margin-bottom: 12px; text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.hero-download-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-download-row a {
  display: flex; align-items: center; opacity: .82; border-radius: 8px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.4));
  transition: transform .25s var(--ease-premium), opacity .25s;
}
.hero-download-row a img { height: 36px; width: auto; }
.hero-download-row a:hover { opacity: 1; transform: translateY(-3px) scale(1.04); }
.hero-promo, .hero-play { display: none; }
@media (min-width: 860px) {
  .hero-promo {
    display: flex; flex-direction: column; position: absolute; z-index: 3; right: 4%; top: 18%; width: 128px;
    border-radius: 10px; overflow: hidden; text-align: center;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,.45));
    animation: promo-bob 3.4s ease-in-out infinite;
    transition: transform .2s var(--ease-premium);
  }
  .hero-play {
    display: block; position: absolute; z-index: 3; left: 6%; bottom: 22%;
    width: 76px; cursor: pointer; opacity: .9;
    transition: transform .25s var(--ease-premium), opacity .25s;
    animation: play-pulse 2.6s ease-in-out infinite;
  }
}
.hero-promo:hover { transform: scale(1.06); }
.hero-promo-top {
  background: #141414; color: #fff; border: 1px solid var(--gold-400);
  font-family: "Cinzel", serif; font-size: .64rem; font-weight: 700; letter-spacing: .04em;
  padding: 8px 6px; line-height: 1.4;
}
.hero-promo-bottom {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: linear-gradient(180deg, #fff, #ffe3e3);
  color: #c81e1e; border: 2px solid #c81e1e; border-top: none;
  font-weight: 700; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em;
  padding: 6px 6px 8px;
}
.hero-promo-bottom strong { font-size: 1.5rem; line-height: 1; font-family: "Cinzel", serif; }
@keyframes promo-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
.hero-play:hover { opacity: 1; transform: scale(1.1); }
@keyframes play-pulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(247,181,8,0)); }
  50% { filter: drop-shadow(0 0 18px rgba(247,181,8,.55)); }
}
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  transition: transform .2s var(--ease-premium), box-shadow .2s var(--ease-premium); cursor: pointer; border: none;
}
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease-premium);
}
.btn:hover::after { left: 130%; }
.btn-primary {
  background: linear-gradient(180deg, var(--gold-300), var(--gold-400));
  color: #2a2110; box-shadow: 0 8px 24px rgba(247,181,8,.25);
}
.btn-outline {
  border: 1px solid rgba(255,255,255,.75); color: var(--ink-100);
  background: rgba(10,14,22,.38); backdrop-filter: blur(3px);
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.btn-outline:hover { background: rgba(10,14,22,.55); }
.btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 30px rgba(247,181,8,.3); }
.scroll-cue {
  position: absolute; bottom: 46px; left: 50%; transform: translateX(-50%);
  z-index: 3; color: var(--ink-400); font-size: .75rem; letter-spacing: .15em; text-align: center;
  opacity: 0; animation: fade-in .8s .9s var(--ease-premium) forwards;
}
@keyframes fade-in { to { opacity: 1; } }
.scroll-cue .dot {
  width: 1px; height: 28px; margin: 8px auto 0; background: var(--ink-400); opacity: .6;
  animation: pulse-down 1.8s ease-in-out infinite;
}
@keyframes pulse-down { 0%,100% { opacity: .2; transform: scaleY(.6); } 50% { opacity: .8; transform: scaleY(1); } }

/* ---------- Generic section ---------- */
section { padding: 90px 0; position: relative; }
#screenshots { padding: 40px 0; }
#classes { padding: 44px 0; }
#news { padding: 48px 0; }
.section-alt { background: var(--navy-800); overflow: hidden; }

/* ---------- Wave dividers ---------- */
.section-wave {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2;
  line-height: 0; pointer-events: none;
}
.section-wave svg { display: block; width: 100%; height: 70px; }
@media (min-width: 640px) { .section-wave svg { height: 100px; } }

/* ---------- Screenshots ---------- */
.carousel { position: relative; max-width: 720px; margin: 0 auto; }
.carousel-track-wrap { overflow: hidden; border-radius: 14px; border: 1px solid rgba(246,220,163,.15); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.carousel-track { display: flex; transition: transform .6s var(--ease-premium); }
.carousel-track img { width: 100%; flex: 0 0 100%; aspect-ratio: 16/9; object-fit: cover; }
.carousel-progress { height: 3px; background: rgba(255,255,255,.08); }
.carousel-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-400), var(--gold-500)); }
.carousel-progress span.animate { transition: width 6s linear; width: 100%; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; cursor: pointer; opacity: .85; z-index: 3;
  transition: opacity .2s, transform .2s var(--ease-premium);
}
.carousel-arrow:hover { opacity: 1; transform: translateY(-50%) scale(1.14); }
.carousel-arrow.prev { left: -10px; }
.carousel-arrow.next { right: -10px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.carousel-dots span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ink-500); cursor: pointer;
  transition: transform .2s var(--ease-premium), background .2s;
}
.carousel-dots span.active { background: var(--gold-400); transform: scale(1.3); }

/* ---------- Jobs ---------- */
.job-row-hint { text-align: center; color: var(--ink-500); font-size: .82rem; margin: -18px 0 26px; }
.job-row { display: flex; justify-content: center; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.job-chip {
  position: relative; width: 64px; height: 64px; cursor: pointer; border-radius: 50%;
  transition: transform .25s var(--ease-premium);
}
.job-chip:hover { transform: translateY(-6px) scale(1.08); }
.job-chip img.icon { width: 100%; height: 100%; object-fit: contain; transition: filter .25s var(--ease-premium); }
.job-chip.active img.icon {
  filter: drop-shadow(0 0 10px rgba(247,181,8,.65));
  animation: chip-pulse 2.4s ease-in-out infinite;
}
.job-chip::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid transparent; transition: border-color .25s;
}
.job-chip.active::after { border-color: rgba(247,181,8,.55); }
@keyframes chip-pulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(247,181,8,.4)); }
  50% { filter: drop-shadow(0 0 16px rgba(247,181,8,.85)); }
}
.job-chip.disabled img.icon { opacity: .4; filter: grayscale(.4); }
.job-chip.disabled:hover { transform: none; }
.job-chip.disabled:hover img.icon { opacity: .6; }
.job-chip .soon {
  position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%);
  font-size: .6rem; letter-spacing: .05em; color: var(--ink-500); white-space: nowrap;
}
.job-chip.shake { animation: chip-shake .4s; }
@keyframes chip-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.job-showcase {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap;
}
.job-flourish {
  display: none; width: 60px; height: auto; opacity: .35; pointer-events: none;
  animation: art-float 6s ease-in-out infinite;
}
.job-flourish.right { animation-delay: -3s; }
@media (min-width: 860px) {
  .job-flourish { display: block; position: absolute; top: 50%; transform: translateY(-50%); }
  .job-flourish.left { left: -10px; }
  .job-flourish.right { right: -10px; }
}
.job-art-pair { display: flex; align-items: flex-end; justify-content: center; gap: 8px; }
.job-art { position: relative; width: 180px; max-width: 38vw; }
.job-art .art-glow {
  position: absolute; top: 50%; left: 50%; width: 180%; max-width: none;
  transform: translate(-50%, -50%); z-index: 0; opacity: .5; pointer-events: none;
  animation: glow-spin 40s linear infinite;
}
@keyframes glow-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.job-art img.portrait {
  position: relative; z-index: 1;
  width: 100%; filter: drop-shadow(0 20px 30px rgba(0,0,0,.45)) blur(0);
  transition: opacity .36s ease-out, filter .36s ease-out;
  animation: art-float 5s ease-in-out infinite;
}
.job-art:last-child img.portrait { animation-delay: -2.5s; }
.job-art img.fading {
  /* transform is left untouched here (the art-float keyframes already own
     it) so the scale/blur crossfade never fights the floating animation */
  opacity: 0; filter: drop-shadow(0 20px 30px rgba(0,0,0,.45)) blur(4px);
  transition: opacity .36s ease-in, filter .36s ease-in;
}
@keyframes art-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.job-info { max-width: 460px; margin: 14px auto 0; text-align: center; }
.job-info h3 { color: var(--gold-300); margin: 0 0 6px; font-family: "Cinzel", serif; font-size: 1.05rem; }
.job-info p { color: var(--ink-400); line-height: 1.5; margin: 0 0 12px; font-size: .85rem; }

.look-row { display: flex; flex-direction: column; align-items: center; }
.look-row .look-label { font-size: .7rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.look-thumbs { display: flex; gap: 8px; justify-content: center; }
.look-thumbs img {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer; opacity: .6;
  object-fit: cover; border: 2px solid transparent;
  transition: transform .2s var(--ease-premium), opacity .2s, border-color .2s;
}
.look-thumbs img:hover { opacity: .9; transform: translateY(-3px); }
.look-thumbs img.active { opacity: 1; border-color: var(--gold-400); box-shadow: 0 0 10px rgba(247,181,8,.5); transform: scale(1.08); }

/* ---------- Download ---------- */
.download-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; }
.download-grid a {
  display: flex; align-items: center; opacity: .95; border-radius: 10px; overflow: hidden;
  transition: transform .25s var(--ease-premium), box-shadow .25s var(--ease-premium), opacity .25s;
}
.download-grid a img { height: 44px; width: auto; }
.download-grid a:hover { opacity: 1; transform: translateY(-5px) scale(1.03); box-shadow: 0 16px 30px rgba(0,0,0,.35); }
.download-note { text-align: center; color: var(--ink-500); font-size: .8rem; margin-top: 18px; }

/* ---------- News ---------- */
.news-tabs { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 36px; flex-wrap: wrap; }
.news-tabs .tab {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .85rem; color: var(--ink-400); padding: 7px 16px; border-radius: 999px;
  cursor: default; transition: color .2s, background .2s;
}
.news-tabs .tab:hover { color: var(--gold-300); }
.news-tabs .tab img { height: 16px; }
.news-tabs .tab.active { background: rgba(132,175,226,.18); color: var(--blue-400); font-weight: 600; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card {
  position: relative; border-radius: 10px; padding: 3px;
  background: linear-gradient(160deg, rgba(246,220,163,.55), rgba(214,165,87,.12) 40%, rgba(214,165,87,.35));
  transition: transform .3s var(--ease-premium), box-shadow .3s var(--ease-premium);
}
.news-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.news-card-inner { background: var(--navy-700); border-radius: 8px; overflow: hidden; position: relative; }
.news-card .corner {
  position: absolute; width: 16px; height: 16px; z-index: 2; pointer-events: none;
  border: 2px solid var(--gold-300); opacity: .85;
}
.news-card .corner.tl { top: -3px; left: -3px; border-right: none; border-bottom: none; }
.news-card .corner.tr { top: -3px; right: -3px; border-left: none; border-bottom: none; }
.news-card .corner.bl { bottom: -3px; left: -3px; border-right: none; border-top: none; }
.news-card .corner.br { bottom: -3px; right: -3px; border-left: none; border-top: none; }
.news-card .thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #000; }
.news-card .thumb .bg {
  position: absolute; inset: -10px; background-size: cover; background-position: center;
  filter: blur(14px) brightness(.55) saturate(1.2); transform: scale(1.15);
}
.news-card .thumb img {
  position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain;
  transition: transform .5s var(--ease-premium);
}
.news-card:hover .thumb img { transform: scale(1.05); }
.news-card .body { padding: 10px 14px 14px; }
.news-card .date { font-size: .75rem; color: var(--gold-400); letter-spacing: .05em; text-transform: uppercase; }
.news-card .title { margin: 8px 0 0; font-size: .92rem; color: var(--ink-100); line-height: 1.4; }
.news-pager { display: flex; justify-content: center; gap: 18px; margin-top: 30px; }
.news-pager img { width: 34px; height: 34px; cursor: pointer; opacity: .85; transition: opacity .2s, transform .2s var(--ease-premium); }
.news-pager img:hover { opacity: 1; transform: scale(1.15); }

/* ---------- Floating sidebar ---------- */
.side-rail {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 40;
  display: flex; flex-direction: column; align-items: center;
  background: rgba(20,27,39,.9); border: 1px solid rgba(246,220,163,.15);
  border-right: none; border-radius: 10px 0 0 10px; overflow: hidden;
}
.side-rail a { display: block; padding: 12px; border-bottom: 1px solid rgba(255,255,255,.06); transition: background .2s; }
.side-rail a:hover { background: rgba(246,220,163,.1); }
.side-rail a:last-of-type { border-bottom: none; }
.side-rail a img { width: auto; height: 20px; max-width: 22px; object-fit: contain; transition: transform .2s var(--ease-premium); }
.side-rail a:hover img { transform: scale(1.18); }
.side-rail .collapse { padding: 10px; cursor: pointer; border-top: 1px solid rgba(255,255,255,.08); transition: transform .3s var(--ease-premium); }
.side-rail.collapsed .collapse { transform: rotate(180deg); }
.side-rail .collapse img { width: 16px; height: 16px; }
.side-rail.collapsed .links { display: none; }

/* ---------- Footer ---------- */
footer { background: #000; padding: 50px 0 26px; text-align: center; position: relative; }
footer .decor-sep { width: 100%; max-width: 640px; margin: 0 auto 30px; opacity: .6; }
footer .brand { font-family: "Cinzel", serif; font-weight: 700; letter-spacing: .08em; color: var(--gold-300); font-size: 1rem; margin-bottom: 14px; }
footer .decor-sparkle { height: 54px; width: auto; margin: 0 auto 20px; opacity: .75; }
footer .footer-social { display: flex; justify-content: center; gap: 22px; margin-bottom: 22px; }
footer .footer-social a {
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  transition: transform .25s var(--ease-premium);
}
footer .footer-social a:hover { transform: translateY(-4px) scale(1.12); }
footer .footer-social img { width: auto; height: 26px; max-width: 100%; object-fit: contain; opacity: .85; transition: opacity .2s; }
footer .footer-social a:hover img { opacity: 1; }
footer .footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; font-size: .78rem; color: var(--ink-400); }
footer .footer-links a { transition: color .2s; }
footer .footer-links a:hover { color: var(--gold-300); }
footer .footer-copyright { font-size: .72rem; color: var(--ink-500); line-height: 1.6; max-width: 640px; margin: 0 auto; }

/* ---------- No-JS fallback ---------- */
.no-js .reveal, .no-js .reveal-stagger > * { opacity: 1; transform: none; }
.no-js .page-loader { display: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .glow-orb, .job-art img, .page-loader-mark, .wordmark, .wordmark span { animation: none !important; }
  .reveal, .reveal-stagger > * { transition: none !important; opacity: 1 !important; transform: none !important; }
  html { scroll-snap-type: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .topbar nav { display: none; }
  .nav-toggle { display: block; }
  .news-grid { grid-template-columns: 1fr; }
  .job-showcase { flex-direction: column; }
  .side-rail { display: none; }
}
@media (max-width: 860px) {
  .topbar.open nav {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-900); padding: 18px; gap: 16px; border-bottom: 1px solid rgba(246,220,163,.15);
  }
}
