﻿.page { padding: 72px 0 88px; }
.page-head { max-width: 760px; padding-top: 18px; border-top: 1px solid var(--line); }
.page-head h1 { margin: 18px 0; font-size: clamp(40px, 5vw, 48px); font-weight: 700; line-height: 1.2; letter-spacing: -0.03em; }
.page-lead { max-width: 62ch; color: var(--muted); font-size: 16px; line-height: 1.75; }
.page-visual { display:flex; align-items:flex-end; min-height:320px; padding:24px; background:linear-gradient(135deg, rgba(37,99,235,.28), transparent 60%), #0f172a; color:rgba(255,255,255,.65); font-size:13px; letter-spacing:.08em; }
.page-grid { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); gap:clamp(32px,6vw,72px); align-items:start; padding-top:56px; }
.page-grid h2 { margin-bottom:16px; font-size:32px; line-height:1.3; }
.page-grid p { color:var(--muted); line-height:1.8; }
.page-stats { display:grid; grid-template-columns:repeat(2,1fr); border-top:1px solid var(--line); border-left:1px solid var(--line); }
.page-stats div { padding:20px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
.page-stats strong { display:block; font-size:32px; line-height:1; }
.page-stats span { display:block; margin-top:8px; color:var(--dim); font-size:14px; }
.job-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:32px; }
.job-card { padding:24px; border:1px solid var(--line); background:var(--panel); transition:transform .25s ease, border-color .25s ease; }
.job-card:hover { transform:translateY(-4px); border-color:var(--accent); }
.job-card h3 { font-size:20px; }
.job-card p { margin-top:10px; color:var(--muted); font-size:14px; line-height:1.7; }
.job-card a { display:inline-flex; align-items:center; min-height:48px; margin-top:14px; color:var(--accent); font-size:14px; }
.news-feature { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); gap:32px; align-items:center; padding-bottom:40px; border-bottom:1px solid var(--line); }
.news-feature .page-visual { min-height:300px; }
.news-feature h2 { font-size:32px; line-height:1.3; margin:14px 0; }
.news-feature p { color:var(--muted); line-height:1.8; }
.news-list { border-top:1px solid var(--line); margin-top:40px; }
.news-item { display:grid; grid-template-columns:120px 96px 64px 1fr 24px; gap:18px; align-items:center; padding:20px 0; border-bottom:1px solid var(--line); }
.news-item:hover h3 { color:var(--accent); }
.news-item time, .news-item .tag { font-size:14px; color:var(--dim); }
.news-item .tag { color:var(--accent); }
.news-item h3 { font-size:18px; line-height:1.5; }
.article { max-width:820px; margin:0 auto; }
.article h1 { margin:18px 0; font-size:clamp(36px,4.8vw,48px); line-height:1.2; }
.article-meta { display:flex; gap:16px; color:var(--dim); font-size:14px; }
.article-meta span:first-child { color:var(--accent); }
.article-body { margin-top:36px; }
.article-body p { margin-top:16px; color:var(--muted); font-size:16px; line-height:1.8; }
.article-body h2 { margin-top:36px; font-size:28px; }
.back { display:inline-flex; align-items:center; min-height:48px; color:var(--accent); font-size:14px; }
@media(max-width:820px){.page-grid,.news-feature,.job-grid{grid-template-columns:1fr}.news-item{grid-template-columns:1fr auto;grid-template-areas:"thumb thumb" "date tag" "title arrow"}.news-item .news-thumb-mini{grid-area:thumb;width:100%}.news-item time{grid-area:date}.news-item .tag{grid-area:tag}.news-item h3{grid-area:title}.news-item .doc-arrow{grid-area:arrow}}


/* Light-only text contrast */
html { color-scheme: light !important; }
.brand img { filter: none !important; }
body { background: #ffffff !important; color: #1a1a1a !important; }
.doc-section, .doc-products, .page, .doc-footer, .site-footer,
.subpage, .section, .home-overview, .game-tech, .reading, .archive-home {
  color: #1a1a1a !important;
}
.doc-section h1, .doc-section h2, .doc-section h3, .doc-section p,
.doc-products h1, .doc-products h2, .doc-products h3,
.page h1, .page h2, .page h3, .page p,
.doc-footer, .doc-footer a,
.subpage h1, .subpage h2, .subpage h3, .subpage p,
.section h1, .section h2, .section h3, .section p,
.home-overview h1, .home-overview h2, .home-overview h3, .home-overview p,
.game-tech h1, .game-tech h2, .game-tech h3, .game-tech p,
.reading h1, .reading h2, .reading h3, .reading p,
.archive-home h1, .archive-home h2, .archive-home h3, .archive-home p {
  color: #1a1a1a !important;
}
.doc-section p, .page p, .doc-footer, .site-footer,
.subpage p, .section p, .home-overview p, .game-tech p,
.reading p, .archive-home p {
  color: #666666 !important;
}
.hero-cinema h1, .hero-center h1, .hero-full h1, .hero-full p.lead,
.game-hero-full h1, .game-hero-full .game-lead,
.art-hero-full h1, .art-hero-full .art-lead,
.hero-full .hero-sub { color: #ffffff !important; }
.hero-center .eyebrow, .hero-scroll, .hero-full-meta,
.game-entries a, .art-hero-meta { color: rgba(255,255,255,.72) !important; }
.product-entry h2, .product-entry p, .product-entry .entry-index,
.doc-news-item h3, .doc-news-item time, .doc-news-item .doc-tag,
.doc-news-item .doc-arrow { color: #ffffff !important; }
.site-header { background: #ffffff !important; border-bottom: 1px solid #e5e7eb !important; }
.site-header .container { width: 100% !important; max-width: none !important; padding-left: 32px !important; padding-right: 32px !important; }
.nav-links a { color: #1a1a1a !important; }
.nav-links a:hover, .nav-links a.is-active { color: #2563eb !important; }
@media (max-width: 760px) {
  .site-header .container { padding-left: 20px !important; padding-right: 20px !important; }
}
.more-row { padding: 28px 0 0; border-top: 1px solid #e5e7eb; margin-top: 40px; }
.more-row a { display: inline-flex; align-items: center; min-height: 48px; color: #2563eb; font-size: 15px; }

.join-cinema { position: relative; min-height: calc(100svh - 72px); overflow: hidden; background: #0f172a; }
.join-cinema-bg, .join-cinema-overlay { position: absolute; inset: 0; }
.join-cinema-bg img { width: 100%; height: 100%; object-fit: cover; }
.join-cinema-overlay { background: linear-gradient(180deg, rgba(15,23,42,.3), rgba(15,23,42,.8)); }
.join-corner { position: absolute; z-index: 2; color: #fff; }
.join-corner--tl { top: 13%; left: 48px; max-width: 720px; }
.join-corner--tr { top: 14%; right: 48px; text-align: right; font-size: 13px; letter-spacing: .08em; color: rgba(255,255,255,.7); }
.join-corner--bl { bottom: 22%; left: 48px; font-size: 15px; line-height: 2; color: rgba(255,255,255,.8); }
.join-corner--br { bottom: 22%; right: 48px; text-align: right; }
.join-corner h1 { margin-top: 18px; font-size: clamp(44px, 6vw, 64px); line-height: 1.15; color: #fff; }
.join-corner .eyebrow { color: rgba(255,255,255,.7); }
.join-quote { font-size: 20px; line-height: 1.7; color: #fff; }
.join-actions { position: absolute; bottom: 48px; left: 50%; z-index: 3; display: flex; gap: 12px; transform: translateX(-50%); }
.join-actions .btn { border-radius: 8px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.45); color: #fff; }
.join-actions .btn-primary { background: #2563eb; border-color: #2563eb; }
.join-actions .btn:hover { background: #fff; color: #1a1a1a; }
.join-roles { padding: 80px 0; background: #fff; }
@media (max-width: 760px) {
  .join-cinema { min-height: auto; padding: 80px 20px 150px; }
  .join-corner { position: static; max-width: none; margin-top: 28px; }
  .join-corner--tr, .join-corner--br { text-align: left; }
  .join-corner h1 { font-size: 38px; }
  .join-actions { bottom: 40px; left: 20px; right: 20px; transform: none; flex-wrap: wrap; }
}

/* Product page side rails: no dots, text only */
.product-side {
  position: fixed;
  top: 120px;
  bottom: 40px;
  z-index: 5;
  display: flex;
  align-items: center;
  pointer-events: none;
  color: #2563eb;
}
.product-side--left { left: 20px; }
.product-side--right {
  right: 18px;
  width: 26px;
  overflow: hidden;
}
.product-side--left span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: #9ca3af;
}
.rail-track {
  display: flex;
  flex-direction: column;
  gap: 48px;
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.18em;
  white-space: nowrap;
  animation: rail-scroll 34s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.rail-track span { color: #2563eb; opacity: .7; }
@keyframes rail-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
@media (max-width: 1100px) {
  .product-side { display: none; }
}

/* Secondary pages use the same header alignment as the homepage */
.site-header .container {
  width: 92% !important;
  max-width: 1680px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 48px !important;
  padding-right: 48px !important;
}
@media (max-width: 760px) {
  .site-header .container { width: 100% !important; padding-left: 20px !important; padding-right: 20px !important; }
}
