/* Final presentation layer: cursor, social rail, ornaments, dossier */

/* Keep the brand written "Moha" even inside uppercase text styles */
.brand-case,
.final-call__content > p:not(.micro-label), .section-heading > p:not(.micro-label),
.hero__summary, .mobile-menu__official a { text-transform: none; }

/* Preserve the browser pointer on every element, including links and dialogs. */
html, body { cursor: auto; }
a, button, [role="tab"] { cursor: pointer; }

/* Social rail (desktop). Mobile uses the menu and footer links. */
.social-rail { position: fixed; z-index: 90; top: 50%; left: 20px; display: grid; gap: 10px; transform: translateY(-50%); }
.social-rail::before, .social-rail::after { content: ""; width: 1px; height: 46px; margin: 0 auto; background: linear-gradient(transparent, rgba(241, 21, 34, .7)); }
.social-rail::after { background: linear-gradient(rgba(241, 21, 34, .7), transparent); }
.social-rail a { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%; background: rgba(5, 5, 5, .5); color: rgba(255, 255, 255, .75); transition: color .3s, border-color .3s, transform .4s cubic-bezier(.2,.7,.2,1), background .3s; }
.social-rail svg { width: 17px; height: 17px; fill: currentColor; }
.social-rail a:hover, .social-rail a:focus-visible { color: #fff; border-color: var(--red-bright); background: rgba(241, 21, 34, .16); transform: translateX(3px); }
@media (max-width: 1100px) { .social-rail { display: none; } }

/* Subtle floral (mal wal) ornament: eight-petal rosette flanked by fine lines */
.ornament { display: block; width: 150px; height: 22px; margin: 18px 0 4px; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 22' fill='none' stroke='%23f11522' stroke-width='1'%3E%3Cpath d='M0 11h56M94 11h56' opacity='.6'/%3E%3Cg transform='translate(75 11)'%3E%3Cpath id='p' d='M0 0C-3-4-3-8 0-10 3-8 3-4 0 0Z'/%3E%3Cuse href='%23p' transform='rotate(45)'/%3E%3Cuse href='%23p' transform='rotate(90)'/%3E%3Cuse href='%23p' transform='rotate(135)'/%3E%3Cuse href='%23p' transform='rotate(180)'/%3E%3Cuse href='%23p' transform='rotate(225)'/%3E%3Cuse href='%23p' transform='rotate(270)'/%3E%3Cuse href='%23p' transform='rotate(315)'/%3E%3Ccircle r='1.6' fill='%23f11522'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.section-heading--center .ornament { margin-inline: auto; }
.ornament--left { margin-top: 22px; background-position: left center; }

/* Character dossier */
.threat__copy { padding-left: clamp(46px, 6vw, 96px); }
.dossier-line { position: absolute; left: clamp(20px, 3vw, 44px); top: 12%; bottom: 12%; width: 1px; background: linear-gradient(transparent, rgba(241, 21, 34, .75) 20%, rgba(241, 21, 34, .75) 80%, transparent); }
.dossier-label { margin: 6px 0 0; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }

/* Extra film-grain-safe vignette for atmosphere */
body::after { display: none; }

/* Make official images inspectable without the cinematic colour wash. */
.story-scene__visual img, .story-scene.active .story-scene__visual img,
.threat__image img, .threat__image.visible img,
.evidence-slide img, .evidence-slide.active img,
.media-card img, .media-card:hover img { filter: none; transform: none; }
.story-scene__visual::after, .evidence-slide::after { display: none; }
.media-card:hover img { transform: scale(1.025); }

/* The static site's sticky scene layout is desktop-only; medium and small screens scroll naturally. */
@media (max-width: 1000px), (prefers-reduced-motion: reduce) {
  .story-journey { height: auto; }
  .story-stage { position: relative; height: auto; min-height: 0; overflow: visible; }
  .story-scene { position: relative; inset: auto; grid-template-columns: 1fr; opacity: 1; visibility: visible; pointer-events: auto; }
  .story-scene__copy { min-height: 0; padding: clamp(42px, 7vw, 80px) 6vw; border-right: 0; }
  .story-scene__copy > span, .story-scene__copy h3, .story-scene__copy p { opacity: 1; transform: none; }
  .story-scene__visual { height: clamp(250px, 55vw, 540px); min-height: 0; clip-path: none; }
  .story-meter { display: none; }
}
@media (max-width: 760px) {
  .threat__copy { padding-left: 40px; }
  .dossier-line { left: 20px; }
  .evidence-slide figcaption b { font-size: clamp(1.4rem, 6vw, 2.5rem); }
  .media-card { aspect-ratio: 16 / 9; min-height: 0; }
  .media-card img { position: absolute; inset: 0; }
  .hero__logo { width: min(100%, 520px); margin-left: 0; }
}
@media (max-width: 1000px) { .chapter-rail { display: none; } }
@media (max-width: 420px) {
  .display-title { font-size: clamp(2.5rem, 13vw, 3.5rem); }
}

.hero__video video { width: 100%; height: 100%; object-fit: cover; }

/* Circular darkness around the footage, with a straight-sided fade beneath the titles. */
.hero__video { inset: 0; left: 0; width: 100%; min-width: 0; opacity: 0; filter: none; transform: none; transition: opacity 1.2s ease; }
.hero__video.is-playing { opacity: 1; }
.hero__video video { display: block; }
.hero__shade { background: radial-gradient(ellipse 82% 90% at 64% 44%, transparent 26%, color-mix(in srgb, var(--black) 40%, transparent) 74%, var(--black) 100%), linear-gradient(0deg, var(--black), transparent 30%, transparent 82%, color-mix(in srgb, var(--black) 60%, transparent)); }
.hero__shade::after { position: absolute; inset: 0 auto 0 0; width: 68%; content: ""; background: linear-gradient(90deg, color-mix(in srgb, var(--black) 93%, transparent) 0%, color-mix(in srgb, var(--black) 84%, transparent) 42%, transparent 100%); backdrop-filter: blur(7px); mask-image: linear-gradient(90deg, var(--black) 42%, transparent 100%); }
.hero__content { isolation: isolate; }
.story-scene__copy h3 { color: var(--white); }

@media (max-width: 760px) {
  .hero__video { display: block; }
  .hero__shade { background: radial-gradient(ellipse 110% 78% at 62% 37%, transparent 18%, color-mix(in srgb, var(--black) 45%, transparent) 72%, var(--black) 100%), linear-gradient(0deg, var(--black), transparent 45%); }
  .hero__shade::after { width: 100%; background: linear-gradient(90deg, color-mix(in srgb, var(--black) 90%, transparent), color-mix(in srgb, var(--black) 63%, transparent) 58%, transparent 100%); }
}
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; transition: none; } }

@media (prefers-reduced-motion: reduce) { .social-rail a { transition: none; } }

/* Official Steam logo image replaces the inline SVG icon. */
.official-link img { width: 15px; height: 15px; display: block; }
.social-rail img { width: 17px; height: 17px; display: block; }

[hidden] { display: none !important; }

/* Distinct folklore and gameplay sections; keep the illustrated art legible. */
.story-context { width: min(900px, 88vw); margin: 0 auto; padding: 88px 0 115px; color: var(--white); }
.story-context .micro-label { color: var(--red-bright); }
.story-context > p:last-child { max-width: 800px; font-family: var(--display); font-size: clamp(1.35rem, 2.2vw, 2.15rem); line-height: 1.55; }
.threat__image { height: 100%; align-self: stretch; min-height: 600px; }
.threat__image img { object-position: center; }
.threat__image::after { display: none; }
.threat__image i { display: none; }
.threat__copy h2 { font-size: clamp(3rem, 7vw, 7rem); overflow-wrap: anywhere; }
.threat__copy > p:not(.micro-label) { margin-top: 22px; }
.folklore-gallery { display: grid; width: min(1100px, 90vw); height: clamp(340px, 42vw, 560px); margin: clamp(24px, 4vw, 56px) auto clamp(70px, 8vw, 120px); grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; background: var(--black); }
.folklore-gallery figure { margin: 0; position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--ink); border: 1px solid var(--line); border-radius: 3px; }
.folklore-gallery figure:first-child { grid-row: 1 / 3; }
.folklore-gallery img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.folklore-gallery figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 16px 12px; font-size: .75rem; text-transform: uppercase; color: var(--white); letter-spacing: .1em; background: linear-gradient(transparent, var(--black)); }
/* Avoid repeatedly repainting full-screen blur and animated noise on scroll. */
.smoke, .grain, .scanlines { display: none !important; }
.story-scene__visual i { display: none; }
@media (max-width: 760px) {
  .story-context { padding: 55px 0 80px; }
  .threat { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 58%); min-height: 0; }
  .threat__image { height: 100%; min-height: 0; max-height: none; }
  .threat__copy { min-width: 0; margin-top: 0; padding: 44px 24px 78px 38px; }
  .threat__copy h2 { font-size: clamp(2.1rem, 8vw, 5rem); }
  .threat__index { display: none; }
  .folklore-gallery { height: clamp(240px, 52vw, 430px); grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .folklore-gallery figure:first-child { grid-column: auto; grid-row: 1 / 3; aspect-ratio: auto; }
  .folklore-gallery figure:not(:first-child) { aspect-ratio: auto; }
  .folklore-gallery figcaption { padding: 25px 9px 8px; font-size: .65rem; }
}

/* Keep content available before the small enhancement script loads. */
.reveal { opacity: 1; transform: none; transition: none; }

/* Let the supplied wordmark stand alone in both navigation and footer. */
.brand img { width: clamp(132px, 11vw, 178px); height: 76px; mix-blend-mode: screen; }
.site-header.scrolled .brand img { height: 62px; }

/* A contained cinematic screen directly after the opening scene. */
.trailer-section { padding: clamp(56px, 7vw, 100px) 5vw clamp(76px, 8vw, 116px); overflow: hidden; }
.trailer-section__inner { max-width: 940px; margin: 0 auto; }
.trailer-section__heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; width: 100%; margin: 0 auto 28px; }
.trailer-section__heading .micro-label { color: var(--red-bright); }
.trailer-section__heading .display-title { margin-bottom: 0; font-size: clamp(2.6rem, 6vw, 5.5rem); }
.trailer-section__source { flex: none; margin-bottom: 10px; color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; }
.trailer-section__source:hover { color: var(--red-bright); }
.trailer-section__film { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--ink); box-shadow: 0 18px 55px color-mix(in srgb, var(--black) 80%, transparent), 0 0 26px color-mix(in srgb, var(--red-dark) 24%, transparent); }
.trailer-section__film iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; pointer-events: none; }

/* Open footer columns and a distinct studio destination. */
.site-footer { grid-template-columns: minmax(210px, 1.7fr) repeat(3, minmax(110px, .65fr)); align-items: start; gap: clamp(26px, 3vw, 60px); padding: 70px clamp(22px, 5vw, 80px) 42px; }
.footer-brand-group { min-width: 0; }
.footer-brand { display: inline-block; }
.footer-brand img { display: block; width: clamp(180px, 18vw, 260px); height: auto; mix-blend-mode: screen; }
.footer-brand-group p { margin: 2px 0 0; color: var(--muted); font-size: .86rem; }
.footer-brand-group p a { color: var(--white); border-bottom: 1px solid var(--red); }
.site-footer .footer-navigation, .site-footer .footer-official, .site-footer .footer-legal { display: flex; flex-direction: column; align-items: start; justify-content: start; gap: 12px; }
.site-footer nav .micro-label { margin: 0 0 8px; color: var(--red-bright); font-size: .68rem; }
.site-footer nav a { font-size: .76rem; letter-spacing: 0; text-transform: none; }
.site-footer .footer-official a { color: var(--muted); }
.footer-studio { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 18px; padding: 26px 0 0; border-top: 1px solid var(--line); }
.footer-studio > span { color: var(--red-bright); font-size: .7rem; font-weight: 700; }
.footer-studio strong { font-family: var(--display); font-size: clamp(1.1rem, 2.5vw, 2rem); font-weight: 400; }
.footer-studio strong span { color: var(--red-bright); }
.footer-copyright { grid-column: 1 / -1; margin: 6px 0 0; color: var(--muted); font-size: .74rem; }
@media (max-width: 1050px) { .site-footer { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand-group { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .brand img { width: 120px; height: 62px; }
  .site-header.scrolled .brand img { height: 58px; }
  .trailer-section__heading { align-items: start; flex-direction: column; gap: 8px; margin-bottom: 23px; }
  .trailer-section__heading .display-title { font-size: clamp(2.5rem, 12vw, 4rem); }
  .trailer-section__film { aspect-ratio: 16 / 9; }
  .site-footer { grid-template-columns: minmax(0, .9fr) minmax(0, .8fr) minmax(0, 1.3fr); justify-items: stretch; gap: 30px 14px; padding: 52px 20px 32px; text-align: left; }
  .footer-brand-group { grid-column: 1 / -1; }
  .footer-brand img { width: 210px; }
  .site-footer nav a { overflow-wrap: anywhere; line-height: 1.45; font-size: .72rem; }
  .footer-studio { flex-direction: column; align-items: start; margin-top: 0; }
}
@media (max-width: 420px) {
  .threat { grid-template-columns: minmax(0, 40%) minmax(0, 60%); }
  .threat__copy { padding: 32px 12px 48px 26px; }
  .threat__copy > p:not(.micro-label) { font-size: .82rem; line-height: 1.55; }
  .threat__copy .micro-label, .dossier-label { font-size: .58rem; letter-spacing: .08em; }
  .threat__copy h2 { font-size: clamp(1.25rem, 6vw, 2rem); overflow-wrap: normal; }
  .dossier-line { left: 12px; }
  .folklore-gallery { width: calc(100% - 24px); height: 240px; }
  .site-footer { column-gap: 8px; }
}
