/* ArcGameSoft: one-page studio site. Phone first; wider layouts in the media queries at the end of each block. */

:root {
  --ink: #17123b;
  --ink-2: #2a2160;
  --text: #2b2550;
  --muted: #6b6690;
  --cream: #fff7ea;
  --paper: #ffffff;
  --violet: #4a25d6;
  --purple: #7b2ff7;
  --pink: #ff3d6e;
  --orange: #ff8a1f;
  --sun: #ffd23f;
  --sky: #36b6ff;
  --green: #3fae49;
  --radius: 22px;
  --shadow: 0 18px 40px -18px rgba(23, 18, 59, .45);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --wrap: 1180px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 6vw, 48px); font-weight: 900; }
h3 { font-size: 19px; font-weight: 800; }
p { margin: 0 0 1em; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--sun); color: var(--ink); padding: 8px 14px; border-radius: 10px; font-weight: 800; }
.skip:focus { left: 8px; }

/* ---------- Buttons, pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 900; font-size: 17px; text-decoration: none; white-space: nowrap;
  border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 5px 0 rgba(23, 18, 59, .35); }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: #fff; box-shadow: 0 5px 0 rgba(23, 18, 59, .45); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 15px; border-width: 2px; box-shadow: 0 4px 0 rgba(23, 18, 59, .35); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 210, 63, .16); color: var(--sun);
  font-weight: 800; font-size: 14px; border: 2px solid rgba(255, 210, 63, .5);
}
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: ping 2s infinite; }
.pill.small { font-size: 13px; padding: 4px 11px; background: #fff3d6; color: #b46a00; border-color: #ffd98a; }
.pill.live { background: #e3f8e5; color: #1d7a2a; border-color: #9fdea8; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 210, 63, .7); } 80%, 100% { box-shadow: 0 0 0 8px rgba(255, 210, 63, 0); } }

.kicker {
  display: inline-block; margin-bottom: 10px;
  font-weight: 900; font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pink);
}
.section { padding: 72px 0; position: relative; }
@media (min-width: 960px) { .section { padding: 110px 0; } }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head p:last-child { color: var(--muted); font-size: 18px; }
.section-head.left { text-align: left; margin: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 12px 0; color: #fff;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
  padding-top: max(12px, env(safe-area-inset-top));
}
.site-header.scrolled, .site-header.menu-open { background: rgba(23, 18, 59, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 30px -12px rgba(0, 0, 0, .5); padding-bottom: 10px; }
.header-row { display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.brand b { color: var(--sun); font-weight: 900; }
.brand img { border-radius: 10px; box-shadow: 0 3px 0 rgba(0, 0, 0, .2); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang {
  font: inherit; font-weight: 800; font-size: 14px; color: #fff; cursor: pointer;
  min-height: 40px; min-width: 52px; padding: 0 12px;
  background: rgba(255, 255, 255, .14); border: 2px solid rgba(255, 255, 255, .55); border-radius: 999px;
}
.lang:hover { background: rgba(255, 255, 255, .25); }
.menu-btn { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: grid; place-content: center; gap: 5px; padding: 0; }
.menu-btn span { display: block; width: 24px; height: 3px; border-radius: 3px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav {
  position: absolute; top: 100%; left: 0; right: 0;
  display: grid; padding: 8px var(--gutter) 20px;
  background: rgba(23, 18, 59, .96);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.menu-open .nav { transform: none; opacity: 1; visibility: visible; }
.nav a { padding: 14px 4px; font-weight: 800; font-size: 19px; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.nav a:last-child { border-bottom: 0; }

@media (min-width: 860px) {
  .menu-btn { display: none; }
  .nav {
    position: static; display: flex; gap: 6px; padding: 0; margin-left: auto;
    background: none; transform: none; opacity: 1; visibility: visible;
  }
  .nav a { border: 0; padding: 8px 14px; font-size: 16px; border-radius: 999px; }
  .nav a:hover { background: rgba(255, 255, 255, .15); }
  .header-tools { margin-left: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  padding: 104px 0 70px;
  background:
    radial-gradient(1200px 600px at 85% 15%, rgba(255, 210, 63, .28), transparent 60%),
    linear-gradient(160deg, #3a1fb8 0%, #6c2bf0 38%, #e2368d 74%, #ff8a1f 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0; opacity: .18;
  background-image: radial-gradient(rgba(255, 255, 255, .9) 1.5px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%);
  mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55; }
.blob.b1 { width: 340px; height: 340px; background: #36b6ff; left: -120px; top: 40%; }
.blob.b2 { width: 280px; height: 280px; background: #ffd23f; right: -80px; top: -60px; opacity: .4; }
.blob.b3 { width: 420px; height: 420px; background: #ff3d6e; right: 10%; bottom: -220px; opacity: .45; }

.hero-grid { position: relative; display: grid; gap: 28px; align-items: center; }
.hero-copy { text-align: center; }
.eyebrow {
  display: inline-block; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 2px solid rgba(255, 255, 255, .35);
  font-weight: 800; font-size: 14px; letter-spacing: .02em;
}
.hero h1 {
  color: #fff; font-weight: 900;
  font-size: clamp(44px, 12vw, 84px); line-height: 1; letter-spacing: -.035em;
  text-shadow: 0 5px 0 rgba(23, 18, 59, .35);
  margin-bottom: 18px;
}
.hero h1 span { color: var(--sun); }
.lead { font-size: 18px; max-width: 560px; margin: 0 auto 26px; color: rgba(255, 255, 255, .92); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Key art composed from in-game sprites */
.hero-art { position: relative; width: min(100%, 440px); aspect-ratio: 1 / 1.06; margin: 0 auto; }
.hero-art > * { position: absolute; }
.ha-glow { inset: 8% 10% 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 233, 150, .75), rgba(255, 210, 63, 0)); }
.ha-phone {
  left: 50%; top: 13%; width: 47%; aspect-ratio: 9 / 16; transform: translateX(-50%) rotate(-3deg);
  border-radius: 26px; overflow: hidden;
  border: 6px solid var(--ink); background: var(--ink);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .35), 0 30px 50px -20px rgba(23, 18, 59, .8);
}
.ha-phone img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ha-logo { left: 50%; top: 0; width: 66%; transform: translateX(-50%); filter: drop-shadow(0 10px 10px rgba(23, 18, 59, .45)); animation: bob 5s ease-in-out infinite; }
.ha-gen { bottom: 0; width: 38%; filter: drop-shadow(0 12px 10px rgba(23, 18, 59, .45)); }
.ha-left { left: 0; }
.ha-right { right: -2%; width: 41%; }
.ha-boss { width: 21%; filter: drop-shadow(0 8px 8px rgba(23, 18, 59, .4)); animation: float 6s ease-in-out infinite; }
.hb1 { left: 1%; top: 30%; }
.hb2 { right: 0; top: 27%; animation-delay: -2s; }
.hb3 { right: 13%; top: 52%; width: 16%; animation-delay: -4s; display: none; }
@keyframes bob { 50% { transform: translateX(-50%) translateY(-8px); } }
@keyframes float { 50% { transform: translateY(-10px) rotate(-3deg); } }

.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 50px; fill: var(--cream); }

@media (min-width: 960px) {
  .hero { padding: 130px 0 120px; min-height: 760px; display: flex; align-items: center; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 40px; }
  .hero-copy { text-align: left; }
  .lead { margin-left: 0; font-size: 20px; }
  .cta-row { justify-content: flex-start; }
  .hero-art { width: 100%; max-width: 560px; }
  .hb3 { display: block; }
  .hero h1 { font-size: clamp(56px, 5.4vw, 80px); }
  .wave { height: 90px; }
}

/* ---------- Games grid ---------- */
.games { background: var(--cream); }
.game-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .game-grid { grid-template-columns: repeat(2, 1fr); } .game-card:first-child { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .game-grid { grid-template-columns: 1.6fr 1fr 1fr; } .game-card:first-child { grid-column: auto; } }

.game-card {
  display: flex; flex-direction: column;
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  border: 3px solid var(--ink); box-shadow: 0 8px 0 var(--ink);
  transition: transform .2s ease;
}
.game-card:hover { transform: translateY(-4px); }
.gc-cover { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--accent, var(--orange)); border-bottom: 3px solid var(--ink); }
.gc-bg { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.game-card:hover .gc-bg { transform: scale(1.05); }
.gc-logo { position: absolute; left: 4%; top: 6%; width: 52%; max-width: 300px; filter: drop-shadow(0 6px 6px rgba(23, 18, 59, .5)); }
.gc-hero { position: absolute; right: 2%; bottom: -4%; height: 92%; width: auto; filter: drop-shadow(0 8px 8px rgba(23, 18, 59, .45)); }
.gc-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.gc-body h3 { font-size: 24px; font-weight: 900; margin-bottom: 8px; }
.gc-body p { color: var(--muted); }
.gc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.gc-tags li { font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #efeafd; color: var(--violet); }
.gc-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

.game-card.soon { border-style: dashed; box-shadow: none; background: rgba(255, 255, 255, .55); }
.game-card.soon:hover { transform: none; }
.soon-cover { display: grid; place-items: center; border-bottom-style: dashed; background: repeating-linear-gradient(-45deg, #ffe7c2 0 18px, #ffdcae 18px 36px); }
.soon-cover.alt { background: repeating-linear-gradient(-45deg, #e9e2ff 0 18px, #dcd2ff 18px 36px); }
.soon-cover img { width: 72px; height: 72px; border-radius: 18px; opacity: .9; box-shadow: 0 6px 0 rgba(23, 18, 59, .25); }
@media (max-width: 639px) {
  .game-card.soon { flex-direction: row; align-items: stretch; }
  .game-card.soon .gc-cover { aspect-ratio: auto; width: 112px; flex: none; border-bottom: 0; border-right: 3px dashed var(--ink); }
  .game-card.soon .gc-body { justify-content: center; padding: 16px 18px; }
  .game-card.soon h3 { font-size: 19px; margin-bottom: 4px; }
  .game-card.soon p { margin: 0; font-size: 15px; }
  .soon-cover img { width: 54px; height: 54px; border-radius: 14px; }
  @media (min-width: 640px) { .game-card.soon .gc-cover { flex: 1; aspect-ratio: auto; min-height: 180px; } .game-card.soon .gc-body { flex: none; } }
.soon-cover .q { font-size: 30px; right: 10%; top: 6%; }
}
@media (min-width: 640px) { .game-card.soon .gc-cover { flex: 1; aspect-ratio: auto; min-height: 180px; } .game-card.soon .gc-body { flex: none; } }
.soon-cover .q { position: absolute; right: 18%; top: 16%; font-size: 44px; font-weight: 900; color: var(--ink); opacity: .25; transform: rotate(14deg); }

/* ---------- Tower Shot spotlight ---------- */
.spotlight {
  color: #e9e6ff;
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(123, 47, 247, .45), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(63, 174, 73, .35), transparent 60%),
    var(--ink);
}
.spotlight h3 { color: #fff; }
.spot-grid { display: grid; gap: 40px; align-items: center; }
.spot-logo { width: min(80%, 380px); margin: 0 0 14px -6px; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .45)); }
.spot-lead { font-size: 18px; margin: 18px 0 26px; color: #d8d3fb; }
.features { display: grid; gap: 14px; }
.features li {
  display: flex; gap: 14px; align-items: center;
  padding: 14px; border-radius: 18px;
  background: rgba(255, 255, 255, .06); border: 2px solid rgba(255, 255, 255, .1);
}
.features img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.features h3 { margin: 0 0 2px; font-size: 18px; }
.features p { margin: 0; color: #bdb6ea; font-size: 15px; }

.chapters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.chapter {
  position: relative; margin: 0;
  border-radius: 16px; overflow: hidden; border: 3px solid #fff;
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .7);
  transition: transform .3s ease;
}
.chapter img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.chapter figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 6px 8px;
  font-weight: 900; font-size: 13px; line-height: 1.2; text-align: center; color: #fff;
  background: linear-gradient(transparent, rgba(23, 18, 59, .92));
}
.chapter.c2 { z-index: 2; }
.chapter:hover { transform: translateY(-6px); }

.strip-title { text-align: center; font-size: clamp(22px, 4vw, 30px); font-weight: 900; margin: 64px 0 22px; }
.boss-strip {
  display: flex; gap: 14px; overflow-x: auto; padding: 4px 4px 14px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent;
}
.boss-strip li { flex: none; width: 116px; scroll-snap-align: start; text-align: center; font-weight: 800; font-size: 14px; color: #fff; }
.boss-strip img { width: 104px; height: 104px; object-fit: contain; margin: 0 auto 6px; transition: transform .2s ease; }
.boss-strip li:hover img { transform: scale(1.08) rotate(-4deg); }

.gen-stage {
  display: flex; justify-content: center; align-items: flex-end;
  padding: 0 4px 18px; margin: 0 auto; max-width: 900px;
  background: radial-gradient(60% 34px at 50% 100%, rgba(255, 210, 63, .35), transparent 70%);
}
.gen-stage img { width: 17%; margin: 0 -1.2%; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .45)); transition: transform .2s ease; }
.gen-stage img:hover { transform: translateY(-8px); }
.gen-stage img:nth-child(3), .gen-stage img:nth-child(4) { width: 19%; z-index: 1; }

@media (min-width: 720px) {
  .chapters { position: relative; display: flex; justify-content: center; height: 470px; }
  .chapter { position: absolute; top: 0; width: 44%; max-width: 230px; border-width: 4px; border-radius: 20px; }
  .chapter figcaption { font-size: 15px; padding: 26px 10px 12px; }
  .chapter.c1 { transform: translateX(-62%) rotate(-8deg); top: 26px; }
  .chapter.c3 { transform: translateX(62%) rotate(8deg); top: 26px; }
  .chapter.c1:hover { transform: translateX(-62%) rotate(-8deg) translateY(-10px); }
  .chapter.c2:hover { transform: translateY(-10px); }
  .chapter.c3:hover { transform: translateX(62%) rotate(8deg) translateY(-10px); }
  /* keep the side cards' names on the part the middle card does not cover */
  .chapter.c1 figcaption { padding-right: 48%; text-align: left; }
  .chapter.c3 figcaption { padding-left: 48%; text-align: right; }
  .boss-strip { justify-content: center; overflow: visible; flex-wrap: wrap; }
}
@media (min-width: 960px) {
  .spot-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .chapters { height: 520px; }
  .chapter { width: 46%; max-width: 250px; }
  .boss-strip li { width: 130px; }
  .boss-strip img { width: 120px; height: 120px; }
}

/* ---------- About ---------- */
.about { background: var(--paper); }
.about-grid { display: grid; gap: 36px; align-items: center; }
.about .section-head p { color: var(--text); font-size: 18px; }
.values { display: grid; gap: 16px; }
.values li { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: start; padding: 20px; border-radius: var(--radius); border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink); background: var(--cream); }
.values svg { grid-row: span 2; width: 46px; height: 46px; padding: 10px; border-radius: 14px; fill: #fff; }
.values h3 { margin: 2px 0 4px; }
.values .v1 svg { background: var(--orange); }
.values .v2 svg { background: var(--pink); }
.values .v3 svg { background: var(--sky); }
.values p { margin: 0; color: var(--muted); }
@media (min-width: 960px) {
  .about-grid { grid-template-columns: 1fr 1.15fr; gap: 64px; }
  .values { grid-template-columns: 1fr 1fr; }
  .values .v3 { grid-column: 1 / -1; }
}

/* ---------- Careers ---------- */
.careers { background: var(--paper); padding-top: 0; }
.join {
  position: relative; overflow: hidden;
  display: grid; gap: 24px; align-items: end;
  padding: 36px 22px 0; border-radius: 30px;
  background: linear-gradient(135deg, var(--orange), var(--pink) 70%, var(--purple));
  border: 3px solid var(--ink); box-shadow: 0 10px 0 var(--ink);
  color: #fff;
}
.join h2 { color: #fff; text-shadow: 0 4px 0 rgba(23, 18, 59, .25); }
.join .kicker { color: var(--sun); }
.join-copy { padding-bottom: 8px; }
.join-copy > p { font-size: 18px; max-width: 560px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.chips li { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .2); border: 2px solid rgba(255, 255, 255, .45); font-weight: 800; font-size: 14px; }
.join-art { display: flex; justify-content: center; align-items: flex-end; gap: 4px; }
.join-art img { width: 23%; max-width: 150px; filter: drop-shadow(0 10px 10px rgba(23, 18, 59, .35)); }
.join-art img:nth-child(2) { width: 27%; max-width: 175px; }
@media (min-width: 860px) {
  .join { grid-template-columns: 1.4fr 1fr; padding: 56px 56px 0; }
  .join-copy { padding-bottom: 56px; }
}

/* ---------- Contact ---------- */
.contact { background: var(--cream); }
.contact-grid { display: grid; gap: 16px; }
.contact-grid a {
  display: block; height: 100%; padding: 24px; border-radius: var(--radius); text-decoration: none;
  background: var(--paper); border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.contact-grid a:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--ink); }
.contact-grid p { color: var(--muted); margin-bottom: 12px; }
.contact-grid .go { font-weight: 900; color: var(--violet); }
.mail-big { margin: 36px 0 0; text-align: center; font-size: 17px; color: var(--muted); }
.mail { display: inline-block; margin-top: 6px; font-weight: 900; font-size: clamp(22px, 5vw, 32px); color: var(--ink); text-decoration: none; border-bottom: 4px solid var(--sun); word-break: break-all; }
.mail:hover { color: var(--pink); }
@media (min-width: 860px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfc9f5; padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer-row { display: grid; gap: 18px; justify-items: center; text-align: center; }
.site-footer .brand { color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.footer-nav a { text-decoration: none; font-weight: 700; padding: 6px 0; }
.footer-nav a:hover { color: var(--sun); }
.copy { margin: 0; font-size: 14px; color: #9a93cf; }
@media (min-width: 860px) {
  .footer-row { grid-template-columns: auto 1fr auto; justify-items: start; text-align: left; }
  .footer-nav { justify-content: center; justify-self: center; }
}

/* ---------- Reveal on scroll (only with JS, never with reduced motion) ---------- */
/* uses `translate`, not `transform`, so it never fights the cards' own transforms */
.js .reveal { opacity: 0; translate: 0 24px; transition: opacity .6s ease, translate .6s ease, transform .2s ease; }
.js .reveal.in { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: none; }
}

/* Chinese reads better with slightly more air */
:lang(zh-CN) h1, :lang(zh-CN) h2 { letter-spacing: 0; }
:lang(zh-CN) .kicker { letter-spacing: .08em; }
