/* ============================================================
   R-each — Night Gallery design system
   ============================================================ */
:root {
  --bg: #0b0c10;
  --bg2: #0f1117;
  --surface: #151823;
  --surface2: #1b1f2d;
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.14);
  --text: #eae8e2;
  --muted: #a5a29a;
  --faint: #737069;
  --brand: #d8b36a;
  --c-yomi: #d04a45;
  --c-eldora: #d4a656;
  --c-moon: #8fb9e8;
  --c-dake: #ffd600;
  --acc: var(--brand);
  --acc-ink: #0b0c10;
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-display: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --font-latin: "Outfit", "Zen Kaku Gothic New", sans-serif;
  --maxw: 1120px;
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: rgba(216, 179, 106, 0.35); }

/* ---- language toggle ---- */
html[data-l="ja"] .en { display: none !important; }
html[data-l="en"] .ja { display: none !important; }

/* ---- shared layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--font-latin);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 18px;
}

.section { padding: 110px 0; position: relative; }
.section.alt { background: var(--bg2); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.section-lead { color: var(--muted); max-width: 640px; margin-bottom: 56px; }

/* ---- header ---- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 12, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-logo {
  font-family: var(--font-latin);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.06em;
  display: flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}
.brand-logo em {
  font-style: normal;
  display: inline-flex;
  gap: 4px;
  transform: translateY(-2px);
}
.brand-logo em i {
  width: 5px; height: 5px; border-radius: 50%;
  display: inline-block;
}
.brand-logo em i:nth-child(1) { background: var(--c-yomi); }
.brand-logo em i:nth-child(2) { background: var(--c-eldora); }
.brand-logo em i:nth-child(3) { background: var(--c-moon); }
.brand-logo em i:nth-child(4) { background: var(--c-dake); }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.site-nav a:hover, .site-nav a.active { color: var(--text); }

.lang-toggle {
  display: flex;
  border: 1px solid var(--line2);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-latin);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--faint);
  padding: 6px 13px;
  cursor: pointer;
  font: inherit;
  transition: background 0.2s, color 0.2s;
}
.lang-toggle button.on { background: var(--text); color: var(--bg); }

.nav-burger {
  display: none;
  appearance: none;
  background: none;
  border: 0;
  width: 40px; height: 40px;
  cursor: pointer;
  position: relative;
}
.nav-burger span, .nav-burger::before, .nav-burger::after {
  content: "";
  position: absolute;
  left: 9px; right: 9px;
  height: 1.6px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-burger::before { top: 14px; }
.nav-burger span { top: 19.5px; }
.nav-burger::after { top: 25px; }
body.nav-open .nav-burger::before { transform: translateY(5.5px) rotate(45deg); }
body.nav-open .nav-burger span { opacity: 0; }
body.nav-open .nav-burger::after { transform: translateY(-5.5px) rotate(-45deg); }

/* ---- hero (top page) ---- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 140px 0 90px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 520px at 82% 4%, rgba(143, 185, 232, 0.08), transparent 62%),
    radial-gradient(760px 480px at 12% 92%, rgba(212, 166, 86, 0.09), transparent 60%),
    radial-gradient(620px 420px at 88% 82%, rgba(208, 74, 69, 0.05), transparent 60%),
    var(--bg);
}
.hero-stars { position: absolute; inset: 0; opacity: 0.5; }

.hero-inner { position: relative; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.32;
  letter-spacing: 0.05em;
  margin-bottom: 30px;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #f2e5c8 0%, var(--brand) 55%, #b98f45 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .hero-lead {
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 44px;
  font-size: 16.5px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 56px;
  background: linear-gradient(var(--faint), transparent);
  overflow: hidden;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--text);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0% { top: -50%; } 70%, 100% { top: 110%; } }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--acc); color: var(--acc-ink); }
.btn-primary:hover { box-shadow: 0 10px 32px -8px var(--acc); }
.btn-ghost { border-color: var(--line2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn svg { flex: none; }

.store-note { font-size: 12px; color: var(--faint); margin-top: 14px; }

/* ---- works grid (top page) ---- */
.works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.work-card {
  --wa: var(--brand);
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.35s, box-shadow 0.35s;
}
.work-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--wa) 55%, transparent);
  box-shadow: 0 24px 60px -24px color-mix(in srgb, var(--wa) 42%, transparent);
}
.work-visual {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background: var(--bg2);
}
.work-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.work-card:hover .work-visual img { transform: scale(1.045); }
.work-visual.contain img { object-fit: contain; padding: 26px; }
.work-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 12, 16, 0.55));
}
.work-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.work-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.work-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  border: 1px solid var(--line2);
  overflow: hidden;
  flex: none;
  background: var(--bg2);
}
.work-title { font-size: 19px; font-weight: 700; line-height: 1.4; }
.work-genre {
  font-family: var(--font-latin);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wa);
}
.work-copy { color: var(--muted); font-size: 14.5px; flex: 1; margin-bottom: 20px; }
.work-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.work-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 3px 11px;
  letter-spacing: 0.04em;
}
.tag.status-live { color: #8fe8b0; border-color: rgba(143, 232, 176, 0.35); }
.tag.status-soon { color: var(--c-yomi); border-color: rgba(208, 74, 69, 0.45); }
.work-arrow {
  font-family: var(--font-latin);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--wa);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.work-arrow::after { content: "→"; transition: transform 0.25s; }
.work-card:hover .work-arrow::after { transform: translateX(4px); }
.work-card > a.card-link { position: absolute; inset: 0; z-index: 2; }

.work-card.t-yomi { --wa: var(--c-yomi); }
.work-card.t-eldora { --wa: var(--c-eldora); }
.work-card.t-moon { --wa: var(--c-moon); }
.work-card.t-dake { --wa: var(--c-dake); }

/* ---- about (top page) ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
}
.about-copy p { color: var(--muted); margin-bottom: 20px; }
.about-copy strong { color: var(--text); font-weight: 700; }
.about-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.about-chip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px 24px;
}
.about-chip .num {
  font-family: var(--font-latin);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--brand);
  margin-bottom: 6px;
}
.about-chip .lbl { font-size: 13px; color: var(--muted); }

/* ---- app detail pages ---- */
.app-hero {
  position: relative;
  padding: 165px 0 95px;
  overflow: hidden;
}
.app-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.app-hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 12, 16, 0.72) 0%, rgba(11, 12, 16, 0.55) 45%, var(--bg) 100%);
}
.app-hero-bg.tint::after {
  background:
    linear-gradient(180deg, rgba(11, 12, 16, 0.78) 0%, rgba(11, 12, 16, 0.6) 45%, var(--bg) 100%),
    radial-gradient(800px 480px at 80% 10%, color-mix(in srgb, var(--acc) 22%, transparent), transparent 65%);
}
.app-hero-inner { position: relative; max-width: 760px; }
.app-hero .app-logo-img { max-width: 380px; margin-bottom: 30px; }
.app-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.4vw, 58px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}
.app-hero .app-tagline {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: 0.08em;
  line-height: 1.7;
  margin-bottom: 20px;
}
.app-hero .app-sub { color: var(--muted); max-width: 560px; margin-bottom: 36px; }
.app-hero .chips { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 34px; }
.app-icon-lg {
  width: 84px; height: 84px;
  border-radius: 20px;
  border: 1px solid var(--line2);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 18px 44px -16px rgba(0, 0, 0, 0.65);
}

/* feature blocks */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 30px 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.feature-card:hover { border-color: color-mix(in srgb, var(--acc) 45%, transparent); transform: translateY(-4px); }
.feature-card .f-num {
  font-family: var(--font-latin);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--acc);
  margin-bottom: 14px;
}
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 12px; line-height: 1.5; }
.feature-card p { font-size: 13.8px; color: var(--muted); }

/* media rows (image + text alternating) */
.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 100px;
}
.media-row:last-child { margin-bottom: 0; }
.media-row.flip .media-img { order: 2; }
.media-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg2);
}
.media-img.phone { max-width: 380px; margin: 0 auto; }
.media-txt h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 18px;
  letter-spacing: 0.03em;
}
.media-txt p { color: var(--muted); margin-bottom: 14px; }
.media-txt ul { margin-top: 8px; }
.media-txt ul li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 8px;
}
.media-txt ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: 12px;
  width: 8px; height: 1.5px;
  background: var(--acc);
}

/* screenshot gallery */
.shot-row {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.shot-row.wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.shot {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg2);
  transition: transform 0.3s, border-color 0.3s;
}
.shot:hover { transform: translateY(-4px) scale(1.01); border-color: var(--line2); }
.shot-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-snap-type: x mandatory;
}
.shot-scroll .shot {
  flex: 0 0 232px;
  scroll-snap-align: start;
}
.shot-scroll::-webkit-scrollbar { height: 6px; }
.shot-scroll::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 3px; }
.shot-caption { font-size: 12px; color: var(--faint); margin-top: 10px; text-align: center; }

/* creatures / verbs showcase grids */
.cell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
}
.cell {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 18px 14px 16px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.cell:hover { border-color: color-mix(in srgb, var(--acc) 50%, transparent); transform: translateY(-4px); }
.cell img { border-radius: 10px; margin-bottom: 12px; width: 100%; }
.cell .c-name { font-size: 14px; font-weight: 700; line-height: 1.4; }
.cell .c-sub {
  font-family: var(--font-latin);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acc);
  margin-top: 2px;
}
.cell .c-role { font-size: 11.5px; color: var(--faint); margin-top: 6px; }

/* video */
.video-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}

/* spec table */
.spec-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec-table td { overflow-wrap: anywhere; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: top;
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th {
  width: 200px;
  color: var(--faint);
  font-weight: 500;
  background: var(--surface);
  white-space: nowrap;
}
.spec-table td { color: var(--muted); }

/* CTA band */
.cta-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(720px 320px at 50% 120%, color-mix(in srgb, var(--acc) 16%, transparent), transparent 70%),
    var(--bg2);
  text-align: center;
  padding: 100px 0;
}
.cta-band .section-title { margin-bottom: 16px; }
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 38px; }
.cta-band .hero-cta { justify-content: center; }

/* ---- legal pages ---- */
.page-head { padding: 165px 0 60px; border-bottom: 1px solid var(--line); }
.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.page-head p { color: var(--muted); max-width: 640px; }

.legal-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 44px 0 0;
}
.legal-nav a {
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 8px 18px;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legal-nav a:hover { color: var(--text); border-color: var(--text); }
.legal-nav a .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.legal-app {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 46px 48px;
  margin-bottom: 44px;
  scroll-margin-top: 100px;
}
.legal-app-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.legal-app-head .work-icon { width: 46px; height: 46px; border-radius: 11px; }
.legal-app-head h2 { font-size: 21px; font-weight: 700; line-height: 1.4; }
.legal-app-head .upd { font-size: 12px; color: var(--faint); margin-top: 2px; }

.legal-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 34px 0 12px;
  padding-left: 14px;
  border-left: 3px solid var(--acc, var(--brand));
  line-height: 1.5;
}
.legal-body h3:first-child { margin-top: 0; }
.legal-body p { font-size: 14.5px; color: var(--muted); margin-bottom: 12px; }
.legal-body ul { margin: 4px 0 16px; }
.legal-body ul li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 7px;
}
.legal-body ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: 12.5px;
  width: 7px; height: 1.5px;
  background: var(--acc, var(--brand));
}
.legal-body a { color: var(--brand); }
.legal-body a:hover { text-decoration: underline; }
.legal-body .note {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 13.5px;
  color: var(--muted);
  margin: 16px 0;
}
.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  font-size: 13.5px;
}
.legal-body table th, .legal-body table td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  color: var(--muted);
}
.legal-body table th { background: var(--bg2); color: var(--text); font-weight: 600; white-space: nowrap; }

.legal-app.t-yomi { --acc: var(--c-yomi); }
.legal-app.t-eldora { --acc: var(--c-eldora); }
.legal-app.t-moon { --acc: var(--c-moon); }
.legal-app.t-dake { --acc: var(--c-dake); }

/* ---- support page ---- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 70px;
}
.support-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 32px 30px;
}
.support-card .s-ico { font-size: 26px; margin-bottom: 16px; }
.support-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.support-card p { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.support-card a.s-link { color: var(--brand); font-weight: 600; font-size: 14px; }
.support-card a.s-link:hover { text-decoration: underline; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-latin);
  font-size: 20px;
  color: var(--brand);
  transition: transform 0.25s;
  flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---- footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg2);
  padding: 70px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 54px;
}
.footer-brand p { color: var(--faint); font-size: 13px; margin-top: 14px; max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-latin);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 13.5px; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom small {
  font-family: var(--font-latin);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--faint);
}

/* ---- reveal animation ---- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1); }
.rv.vis { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- page theming ---- */
body.p-yomi { --acc: var(--c-yomi); --acc-ink: #fff; }
body.p-eldora { --acc: var(--c-eldora); --acc-ink: #221a10; }
body.p-moon { --acc: var(--c-moon); --acc-ink: #101826; }
body.p-dake { --acc: var(--c-dake); --acc-ink: #17140a; }

/* ---- responsive ---- */
@media (max-width: 960px) {
  .works-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 46px; }
  .media-row { grid-template-columns: 1fr; gap: 34px; margin-bottom: 80px; }
  .media-row.flip .media-img { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .site-nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(11, 12, 16, 0.97);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 28px 30px;
    gap: 20px;
    display: none;
  }
  body.nav-open .site-nav { display: flex; }
  .nav-burger { display: block; }
  .legal-app { padding: 32px 24px; }
  .spec-table th { width: 120px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .app-hero { padding: 130px 0 70px; }
  .app-hero .app-logo-img { max-width: 280px; }
}
