/* Iron Front Mobile — landing page (index.html, ru/index.html). Loaded after style.css. */
body.home { background: #070908; }
body.home .top { position: fixed; left: 0; right: 0; background: linear-gradient(180deg, rgba(5,7,6,0.75), rgba(5,7,6,0)); border-bottom-color: transparent; }
body.home .top.scrolled { background: rgba(9, 11, 10, 0.94); border-bottom-color: var(--hair); }
@supports (backdrop-filter: blur(8px)) { body.home .top.scrolled { background: rgba(9, 11, 10, 0.78); backdrop-filter: blur(10px) saturate(1.2); } }

.home .hero { position: relative; min-height: min(100vh, 72rem); min-height: min(100svh, 72rem); display: flex; align-items: flex-end; overflow: hidden; border: 0; }
.hero-media, .hero-media video, .hero-media picture, .hero-media picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media video, .hero-media picture img { object-fit: cover; }
.hero-media picture { z-index: 0; }
.hero-media video { z-index: 1; opacity: 0; }
.hero-media.is-playing video { opacity: 1; }
.hero-media.is-still video { display: none; }
.hero-shade { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(7,9,8,0.35) 0%, rgba(7,9,8,0) 22%, rgba(7,9,8,0.1) 50%, rgba(7,9,8,0.82) 82%, #070908 100%),
    linear-gradient(90deg, rgba(7,9,8,0.7) 0%, rgba(7,9,8,0.15) 55%, rgba(7,9,8,0) 100%); }
.grain { position: absolute; inset: -50%; z-index: 3; pointer-events: none; background: url("/img/grain.webp") repeat; opacity: 0.55; mix-blend-mode: overlay; }
.home .hero-text { position: relative; z-index: 4; width: 100%; margin: 0 auto; padding: 0 1.25rem clamp(4.5rem, 12vh, 8rem); max-width: 76rem; }
.home .hero .kicker { font-size: 0.82rem; letter-spacing: 0.32em; color: var(--gold); margin: 0 0 1rem; text-shadow: 0 1px 8px rgba(0,0,0,0.8); }
.wordmark { margin: 0; font-family: var(--logo); font-weight: 400; line-height: 0.88; text-transform: uppercase; color: #f0e6cf; }
.wm-iron { display: block; font-size: clamp(3.2rem, 11vw, 9.5rem); letter-spacing: 0.02em; text-shadow: 0 4px 30px rgba(0,0,0,0.75); }
.wm-mobile { display: block; margin-top: 0.4rem; font-size: clamp(1.15rem, 3.4vw, 2.9rem); letter-spacing: 0.62em; color: var(--amber-hi); text-shadow: 0 2px 14px rgba(0,0,0,0.8); }
.pitch { margin: 1.4rem 0 2rem; max-width: 36rem; font-family: var(--head); font-weight: 600; font-size: clamp(1.25rem, 2.6vw, 1.9rem); line-height: 1.25; color: #fff8e8; text-shadow: 0 2px 16px rgba(0,0,0,0.85); }
.btn.play::before { content: ""; display: inline-block; width: 0; height: 0; margin-right: 0.6rem; border-left: 0.6em solid currentColor; border-top: 0.38em solid transparent; border-bottom: 0.38em solid transparent; vertical-align: -0.05em; }
.home .store-soon { background: rgba(10, 12, 11, 0.62); border-color: rgba(255, 196, 77, 0.55); }
.scroll-cue { position: absolute; z-index: 4; left: 50%; bottom: 1.4rem; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(245, 240, 219, 0.55); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--amber-hi); }

.home .wrap { max-width: 76rem; padding: 0 1.25rem; }
.display { font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: clamp(2rem, 5.2vw, 3.6rem); line-height: 1.02; letter-spacing: 0.01em; margin: 0 0 1rem; color: #f6efdb; }
.sec-head { max-width: 46rem; margin: 0 0 3rem; }
.home .lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #d9d3bd; }
.home .kicker { display: flex; align-items: center; gap: 0.8rem; }
.home .sec-head .kicker::before, .home .story-text .kicker::before, .home .army-body .kicker::before { content: ""; width: 2.2rem; height: 2px; background: var(--amber); }

/* One price */
.pledge-band { position: relative; padding: 2.5rem 0; background: linear-gradient(180deg, #070908, #0d100e); border-bottom: 1px solid var(--hair); }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stats li { margin: 0; padding: 0.3rem 0 0.3rem 1.2rem; border-left: 2px solid var(--amber); display: flex; flex-direction: column; color: var(--muted); }
.stats b { font-family: var(--head); font-weight: 700; font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1; color: var(--ink); }
.stats span { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82rem; margin-top: 0.35rem; color: var(--gold); }

/* Gameplay */
.gameplay { padding: clamp(4.5rem, 10vw, 8rem) 0 3rem; background: radial-gradient(80% 50% at 80% 0%, rgba(219,140,33,0.08), rgba(0,0,0,0)), #0b0d0c; }
.feature { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin: 0 0 clamp(3rem, 7vw, 6rem); }
.feature.flip { grid-template-columns: 1fr 1.55fr; }
.feature.flip .clip { order: 2; }
.feature-text h3 { font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: clamp(1.5rem, 2.8vw, 2.2rem); margin: 0.2rem 0 0.6rem; color: var(--ink); letter-spacing: 0.02em; }
.feature-text p { font-size: 1.08rem; color: #d2ccb6; margin: 0; }
.num { font-family: var(--head); font-weight: 600; color: var(--amber-hi); letter-spacing: 0.2em; font-size: 0.9rem; }
.clip, .frame { position: relative; overflow: hidden; border-radius: 3px; background: #000; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,240,210,0.08); }
.clip img, .frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 2.17 / 1; transition: transform 0.9s ease; }
.clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s ease; }
.clip.live video { opacity: 1; }
.clip::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.35)); }
.feature:hover .clip img { transform: scale(1.03); }
.frame figcaption { display: none; }

/* Armies */
.armies { padding: clamp(4.5rem, 10vw, 8rem) 0 0; background: #070908; }
.army-tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: -1.5rem 0 3rem; }
.army-tabs a { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.9rem; text-decoration: none; color: var(--ink); padding: 0.55rem 1rem; border: 1px solid var(--edge); border-left: 3px solid var(--accent, var(--amber)); border-radius: 3px; background: rgba(255,255,255,0.02); }
.army-tabs a:hover { border-color: var(--accent, var(--amber)); color: #fff; }
.tab-anvil { --accent: #c8a45c; } .tab-vultures { --accent: #e0702c; } .tab-warden { --accent: #e5363d; } .tab-nomads { --accent: #8fb39b; }
.army { --accent: var(--amber); position: relative; padding: clamp(4rem, 9vw, 7rem) 0; overflow: hidden; border-top: 1px solid var(--hair); }
.army-anvil { --accent: #c8a45c; } .army-vultures { --accent: #e0702c; } .army-warden { --accent: #e5363d; } .army-nomads { --accent: #8fb39b; }
.army-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.army-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; filter: saturate(0.85); }
.army-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #070908 0%, rgba(7,9,8,0.8) 45%, rgba(7,9,8,0.5) 100%), linear-gradient(180deg, #070908 0%, rgba(7,9,8,0) 25%, rgba(7,9,8,0) 75%, #070908 100%); }
.army.flip .army-bg::after { background: linear-gradient(270deg, #070908 0%, rgba(7,9,8,0.8) 45%, rgba(7,9,8,0.5) 100%), linear-gradient(180deg, #070908 0%, rgba(7,9,8,0) 25%, rgba(7,9,8,0) 75%, #070908 100%); }
.army-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.army.flip .army-art { order: 2; }
.army-art { position: relative; }
.army-art img { width: 100%; border-radius: 3px; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.95), 0 0 0 1px rgba(255,240,210,0.1); }
.army-art::before { content: ""; position: absolute; left: -14px; top: 10%; bottom: 10%; width: 4px; background: var(--accent); box-shadow: 0 0 24px var(--accent); }
.army.flip .army-art::before { left: auto; right: -14px; }
.home .army-body .kicker { color: var(--accent); }
.home .army-body .kicker::before { background: var(--accent); }
.army-name { font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 0.95; margin: 0.3rem 0 0.5rem; color: #f6efdb; }
.motto { font-family: var(--head); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--accent); margin: 0 0 1rem; letter-spacing: 0.02em; }
.army-body > p { color: #d2ccb6; font-size: 1.05rem; }
.army-clip { margin: 1.4rem 0 1.6rem; }
.army-clip img { aspect-ratio: 16 / 9; }
.army-body h4 { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.82rem; color: var(--muted); margin: 0 0 0.7rem; }
.units { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.units li { margin: 0; padding: 0.8rem 0.9rem; background: rgba(16, 19, 17, 0.85); border: 1px solid var(--hair); border-top: 2px solid var(--accent); border-radius: 3px; }
.units li:hover { border-color: var(--accent); }
.units b { display: block; font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); margin-bottom: 0.25rem; }
.units span { display: block; font-size: 0.92rem; line-height: 1.45; color: var(--muted); }

/* Story */
.story { position: relative; padding: clamp(4.5rem, 10vw, 8rem) 0; background: radial-gradient(70% 60% at 75% 55%, rgba(219,110,33,0.16), rgba(0,0,0,0) 70%), linear-gradient(180deg, #070908, #0f0d0a 60%, #070908); border-top: 1px solid var(--hair); overflow: hidden; }
.story-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.story-text p { color: #d2ccb6; }
.story-shot { margin: 2rem 0 0; }
.cast { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.cast figure { position: relative; margin: 0; width: 54%; }
.cast .cast-a { z-index: 1; margin-right: -14%; }
.cast .cast-b { z-index: 2; }
.cast img { width: 100%; filter: drop-shadow(0 30px 40px rgba(0,0,0,0.8)); -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
.cast figcaption { position: absolute; left: 0; right: 0; bottom: 0.4rem; text-align: center; }
.cast figcaption b { display: block; font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); text-shadow: 0 2px 8px #000; }
.cast figcaption span { display: block; font-size: 0.9rem; color: var(--ink); text-shadow: 0 2px 8px #000; }

/* Trailer */
.trailer { padding: clamp(4.5rem, 10vw, 7rem) 0; background: #0b0d0c; border-top: 1px solid var(--hair); }
.trailer .sec-head { margin-bottom: 2rem; }
.trailer-frame { position: relative; border-radius: 3px; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0,0,0,1), 0 0 0 1px rgba(255,240,210,0.1); background: #000; }
.trailer-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.trailer-note { color: var(--muted); font-size: 0.92rem; margin-top: 0.9rem; }

/* Hard but fair */
.fair { padding: clamp(4.5rem, 10vw, 7rem) 0; background: linear-gradient(180deg, #0b0d0c, #070908); border-top: 1px solid var(--hair); }
.fair-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.fair-card { padding: 1.6rem 1.5rem; background: linear-gradient(180deg, #141814, #101310); border: 1px solid var(--hair); border-radius: 3px; position: relative; overflow: hidden; }
.fair-card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--amber), rgba(219,140,33,0)); }
.fair-card h3 { font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: 1.3rem; letter-spacing: 0.03em; margin: 0 0 0.6rem; color: var(--ink); }
.fair-card p { margin: 0; color: #cfc9b3; }

/* Final call */
.final { position: relative; padding: clamp(5rem, 12vw, 9rem) 0; text-align: center; overflow: hidden; border-top: 1px solid var(--hair); }
.final-bg { position: absolute; inset: 0; background: url("/img/key-art-1536.webp") center 40% / cover no-repeat; opacity: 0.3; }
.final-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 50%, rgba(7,9,8,0.3), #070908 95%); }
.home .final-inner { position: relative; max-width: 44rem; }
.final .wordmark.small .wm-iron { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.final .wordmark.small .wm-mobile { font-size: clamp(0.9rem, 1.8vw, 1.15rem); margin: 0.3rem 0 1.6rem; }
.final .display { font-size: clamp(1.6rem, 4vw, 2.6rem); }
.actions.center { justify-content: center; margin: 1.6rem 0; }
.home .foot { background: #070908; border-top: 1px solid var(--hair); }

@media (max-width: 60rem) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 1.1rem; }
  .feature.flip .clip { order: 0; }
  .army-grid { grid-template-columns: 1fr; }
  .army.flip .army-art { order: 0; }
  .army-art { max-width: 24rem; }
  .army.flip .army-art::before { left: -14px; right: auto; }
  .story-grid { grid-template-columns: 1fr; }
  .cast { max-width: 28rem; margin: 0 auto; }
  .fair-grid { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  .stats { grid-template-columns: 1fr 1fr; gap: 1.2rem 1rem; }
  .units { grid-template-columns: 1fr; }
  .home .hero-text { padding-bottom: 5rem; }
  .wm-mobile { letter-spacing: 0.5em; }
  .army-art { max-width: 15rem; }
  .army-art::before, .army.flip .army-art::before { left: -10px; }
  .army-tabs { margin-top: -1.8rem; }
  .army-tabs a { font-size: 0.8rem; padding: 0.45rem 0.7rem; }
}

/* Motion — only for people who did not ask for less */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal:not(.in) { opacity: 0; transform: translateY(28px); }
  .js-reveal .reveal { transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }
  .js-reveal .reveal.in { opacity: 1; transform: none; }
  .hero-media.is-playing video { transition: opacity 1.2s ease; }
  .home .hero-text > * { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
  .home .hero-text > *:nth-child(2) { animation-delay: 0.12s; }
  .home .hero-text > *:nth-child(3) { animation-delay: 0.24s; }
  .home .hero-text > *:nth-child(4) { animation-delay: 0.36s; }
  .grain { animation: grain 0.9s steps(4) infinite; }
  .scroll-cue span { animation: cue 1.8s ease-in-out infinite; }
  .top { transition: background-color 0.3s ease, border-color 0.3s ease; }
  .units li { transition: transform 0.25s ease, border-color 0.25s ease; }
  .units li:hover { transform: translateY(-3px); }
  @supports (animation-timeline: view()) {
    .army-bg img { animation: drift linear both; animation-timeline: view(); }
    .army-art img { animation: lift linear both; animation-timeline: view(); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media video { display: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(1%, 3%); } }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: 0.2; } }
@keyframes drift { from { transform: scale(1.12) translateY(-4%); } to { transform: scale(1.12) translateY(4%); } }
@keyframes lift { from { transform: translateY(30px); } to { transform: translateY(-30px); } }
.army.flip .army-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
@media (max-width: 60rem) { .army.flip .army-grid { grid-template-columns: 1fr; } }
.cast .cast-a figcaption { right: 22%; }
.cast .cast-b figcaption { left: 22%; }
@media (max-width: 40rem) { .cast figcaption b { font-size: 0.85rem; } .cast figcaption span { font-size: 0.78rem; } }

/* Wide army banner (21:9) with the army's title on its calm left side */
.army.has-banner { padding-top: 0; }
.army-banner { position: relative; margin: 0 0 clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.army-banner img { width: 100%; height: auto; aspect-ratio: 1915 / 821; object-fit: cover; display: block; max-height: 78vh; }
.army-banner::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7,9,8,0.78) 0%, rgba(7,9,8,0.35) 32%, rgba(7,9,8,0) 55%),
              linear-gradient(180deg, #070908 0%, rgba(7,9,8,0) 14%, rgba(7,9,8,0) 70%, #070908 100%); }
.army-banner-text { position: absolute; z-index: 1; left: 0; right: 0; top: 50%; transform: translateY(-50%); }
.army-banner-text .army-name { font-size: clamp(2.6rem, 7vw, 5.6rem); max-width: 9em; text-shadow: 0 3px 20px rgba(0,0,0,0.7); }
.army-banner-text .motto { text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.home .army-banner-text .kicker { color: var(--accent); }
.home .army-banner-text .kicker::before { content: ""; width: 2.2rem; height: 2px; background: var(--accent); }
@media (max-width: 40rem) {
  .army-banner img { aspect-ratio: 4 / 3; object-position: 62% 50%; }
  .army-banner-text { top: auto; bottom: 1rem; transform: none; }
  .army-banner::after { background: linear-gradient(180deg, #070908 0%, rgba(7,9,8,0) 20%, rgba(7,9,8,0.2) 50%, rgba(7,9,8,0.92) 100%); }
}

/* Gameplay recordings are 16:9 */
.feature .clip img { aspect-ratio: 16 / 9; }
