:root {
  color-scheme: dark;
  --ink: #0b0c0d;
  --ink-2: #121314;
  --surface: #181817;
  --surface-2: #20201e;
  --line: rgba(237, 211, 164, 0.16);
  --text: #f2eee6;
  --muted: #aaa69e;
  --amber: #d2a05a;
  --gold: #f0d4a1;
  --blue: #7891a0;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, rgba(196, 137, 67, .10), transparent 25rem),
    radial-gradient(circle at 12% 48%, rgba(65, 91, 104, .08), transparent 24rem),
    var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
html[lang^="zh"] body { font-family: "Noto Sans CJK", "Microsoft YaHei", "PingFang SC", Inter, ui-sans-serif, system-ui, sans-serif; }
html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang^="zh"] h3 { font-family: "Noto Serif CJK", "Songti SC", "Microsoft YaHei", serif; letter-spacing: -.02em; }
html[lang="ja"] body { font-family: "Noto Sans JP", "Yu Gothic", Meiryo, Inter, sans-serif; }
html[lang="ko"] body { font-family: "Noto Sans KR", "Malgun Gothic", Inter, sans-serif; }

a { color: inherit; }
img { max-width: 100%; display: block; }
.shell { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; transform: translateY(-180%); background: var(--gold); color: #111; padding: 10px 14px; border-radius: 2px; }
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(11, 12, 13, .84);
  backdrop-filter: blur(16px);
}
.nav-row { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 660; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark { width: 28px; height: 28px; border: 1px solid rgba(240,212,161,.35); position: relative; transform: rotate(45deg); }
.brand-mark::before { content: "H"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); font-family: Georgia, serif; font-size: 15px; transform: rotate(-45deg); }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .9rem; letter-spacing: .05em; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }
.language-select { max-width: 156px; padding: 7px 28px 7px 10px; border: 1px solid rgba(240,212,161,.28); border-radius: 0; background: #121313; color: var(--gold); font: inherit; font-size: .78rem; cursor: pointer; }
.language-select:hover, .language-select:focus { border-color: rgba(240,212,161,.55); outline: none; }
.menu-toggle { display: none; background: none; color: var(--text); border: 0; padding: 8px; font: inherit; }

.eyebrow { margin: 0 0 16px; color: var(--amber); text-transform: uppercase; letter-spacing: .2em; font-size: .75rem; font-weight: 700; }
h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.05; }
h1 { font-size: clamp(3.7rem, 10vw, 8.8rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.85rem); }
p { margin: 0; }
.lede { max-width: 720px; color: #d2cec5; font-size: clamp(1.12rem, 2vw, 1.38rem); line-height: 1.6; }
.muted { color: var(--muted); }

.hero { min-height: min(860px, calc(100vh - 74px)); display: grid; align-items: center; padding: 84px 0 72px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 46vw; height: 46vw; max-width: 680px; max-height: 680px; right: -10vw; top: 10%; border: 1px solid rgba(210,160,90,.14); border-radius: 50%; box-shadow: 0 0 120px rgba(210,160,90,.06), inset 0 0 100px rgba(210,160,90,.04); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(330px, .65fr); gap: clamp(50px, 9vw, 120px); align-items: end; position: relative; z-index: 1; }
.hero-title span { display: block; }
.hero-title .studio { margin-bottom: 12px; color: var(--muted); font-family: Inter, sans-serif; font-size: clamp(.82rem, 1.3vw, 1rem); font-weight: 650; letter-spacing: .28em; text-transform: uppercase; }
.hero-title .rewrite { color: var(--text); text-shadow: 0 18px 80px rgba(216,164,89,.15); }
.hero-copy { padding-bottom: 12px; border-left: 1px solid var(--line); padding-left: 30px; }
.hero-copy .lede { margin-bottom: 30px; }
.hero-kicker { margin-top: 26px; color: var(--muted); max-width: 540px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid rgba(240,212,161,.34); color: var(--gold); text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 700; transition: background .2s ease, color .2s ease, transform .2s ease; }
.button:hover { background: var(--gold); color: #17130d; transform: translateY(-2px); }

.section { padding: clamp(82px, 11vw, 150px) 0; border-top: 1px solid rgba(255,255,255,.055); }
.section-head { display: grid; grid-template-columns: minmax(0,.7fr) minmax(280px,.45fr); gap: 50px; align-items: end; margin-bottom: 54px; }
.section-head p { color: var(--muted); max-width: 530px; }
.story-panel { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 560px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.story-copy { padding: clamp(36px, 6vw, 76px); display: flex; flex-direction: column; justify-content: center; }
.story-copy h2 { margin-bottom: 26px; }
.story-copy p { color: #c4c0b8; max-width: 600px; }
.story-visual { position: relative; min-height: 420px; background:
  linear-gradient(150deg, transparent 10%, rgba(216,164,89,.12) 48%, transparent 49%),
  radial-gradient(circle at 64% 26%, rgba(235,185,107,.3), transparent 10%),
  linear-gradient(135deg, #202527, #111313 58%, #19130e); }
.story-visual::before { content: ""; position: absolute; left: 28%; top: 14%; width: 48%; height: 64%; border-left: 1px solid rgba(240,212,161,.25); border-right: 1px solid rgba(240,212,161,.09); transform: skew(-7deg); box-shadow: 34px 0 90px rgba(222,164,86,.08); }
.story-visual::after { content: "FIRST STORY · CORY"; position: absolute; left: 26px; bottom: 24px; color: rgba(240,212,161,.7); font-size: .71rem; letter-spacing: .18em; }

.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature { background: var(--ink-2); padding: 38px 34px 44px; }
.feature-no { color: var(--amber); font-size: .75rem; letter-spacing: .16em; }
.feature h3 { margin: 52px 0 16px; }
.feature p { color: var(--muted); }

.frames { display: grid; grid-template-columns: 1.4fr .8fr; grid-template-rows: repeat(2, 280px); gap: 16px; }
.frame { position: relative; overflow: hidden; border: 1px solid var(--line); background: #171918; }
.frame:first-child { grid-row: 1 / 3; }
.frame-art { position: absolute; inset: 0; transition: transform .7s ease; }
.frame:hover .frame-art { transform: scale(1.025); }
.frame-a .frame-art { background: linear-gradient(160deg, transparent 30%, rgba(14,15,15,.82) 68%), radial-gradient(circle at 68% 30%, rgba(236,186,108,.26), transparent 18%), linear-gradient(145deg,#24292a,#151716 58%,#261b10); }
.frame-b .frame-art { background: radial-gradient(circle at 28% 34%, rgba(99,132,145,.2), transparent 24%), linear-gradient(135deg,#171e20,#111212 62%,#191713); }
.frame-c .frame-art { background: radial-gradient(circle at 70% 36%, rgba(229,167,79,.19), transparent 22%), linear-gradient(150deg,#201a14,#121313 66%,#1d2527); }
.frame-caption { position: absolute; inset: auto 22px 20px; z-index: 1; }
.frame-caption strong { display: block; font-family: Georgia,serif; font-size: 1.25rem; font-weight: 500; }
.frame-caption span { color: var(--muted); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.capture-note { margin-top: 18px; color: var(--muted); font-size: .9rem; }

.trials { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(42px,8vw,100px); align-items: center; }
.trial-mark { aspect-ratio: 1; max-width: 440px; border-radius: 50%; border: 1px solid rgba(118,145,160,.24); display: grid; place-items: center; position: relative; box-shadow: inset 0 0 120px rgba(118,145,160,.07), 0 0 100px rgba(118,145,160,.05); }
.trial-mark::before, .trial-mark::after { content: ""; position: absolute; width: 62%; height: 1px; background: rgba(118,145,160,.35); }
.trial-mark::after { transform: rotate(90deg); }
.trial-mark span { position: relative; z-index: 1; color: #a9bec8; letter-spacing: .25em; font-weight: 700; font-size: .8rem; }
.trials-copy h2 { margin-bottom: 26px; }
.trials-copy p { color: var(--muted); margin-bottom: 16px; }

.store-band { padding: 68px 0; background: linear-gradient(100deg, rgba(196,135,59,.11), rgba(95,118,128,.06)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.store-row { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.store-row h2 { font-size: clamp(2rem,4vw,3.4rem); }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-button { min-width: 174px; padding: 13px 18px; border: 1px solid rgba(255,255,255,.16); color: #d7d3cc; }
.store-button small, .store-button strong { display: block; }
.store-button small { color: var(--muted); font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; }
.store-button strong { font-size: .95rem; font-weight: 600; }

.page-hero { padding: clamp(90px,12vw,160px) 0 clamp(72px,9vw,120px); border-bottom: 1px solid rgba(255,255,255,.06); }
.page-hero h1 { font-size: clamp(3.2rem,8vw,7rem); margin-bottom: 30px; }
.page-hero .lede { max-width: 800px; }
.content-grid { display: grid; grid-template-columns: 260px 1fr; gap: clamp(48px,9vw,120px); }
.side-label { color: var(--amber); font-size: .75rem; text-transform: uppercase; letter-spacing: .18em; position: sticky; top: 110px; align-self: start; }
.prose { max-width: 790px; }
.prose h2 { font-size: clamp(1.8rem,3vw,2.7rem); margin: 64px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #c4c0b8; }
.prose p + p { margin-top: 18px; }
.prose ul { padding-left: 20px; margin: 18px 0 0; }
.prose li + li { margin-top: 10px; }
.notice { border-left: 2px solid var(--amber); background: rgba(210,160,90,.07); padding: 24px 26px; margin: 34px 0; }
.notice strong { display: block; margin-bottom: 8px; color: var(--gold); }
.support-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.support-card { min-height: 220px; padding: 32px; border: 1px solid var(--line); background: var(--surface); }
.support-card h2 { font-size: 1.7rem; margin-bottom: 18px; }
.support-card p { color: var(--muted); }
.placeholder { display: inline-block; margin-top: 18px; padding: 10px 12px; border: 1px dashed rgba(240,212,161,.4); color: var(--gold); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }

.site-footer { padding: 46px 0; color: var(--muted); border-top: 1px solid rgba(255,255,255,.06); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--gold); }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal][data-visible="true"] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } [data-reveal] { opacity: 1; transform: none; } }

@media (max-width: 820px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 14px; right: 14px; top: 66px; padding: 18px; flex-direction: column; align-items: flex-start; gap: 18px; background: #151616; border: 1px solid var(--line); }
  .site-nav[data-open="true"] { display: flex; }
  .hero { min-height: auto; }
  .hero-grid, .section-head, .story-panel, .trials, .content-grid { grid-template-columns: 1fr; }
  .hero-copy { border-left: 0; border-top: 1px solid var(--line); padding: 26px 0 0; }
  .story-visual { grid-row: 1; min-height: 340px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature h3 { margin-top: 30px; }
  .frames { grid-template-columns: 1fr; grid-template-rows: 400px 260px 260px; }
  .frame:first-child { grid-row: auto; }
  .trial-mark { margin: 0 auto; max-width: 320px; }
  .store-row, .footer-row { align-items: flex-start; flex-direction: column; }
  .side-label { position: static; }
  .support-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  h1 { font-size: clamp(3.25rem, 19vw, 5rem); }
  .hero { padding-top: 64px; }
  .store-buttons, .store-button { width: 100%; }
  .frames { grid-template-rows: 330px 230px 230px; }
  .support-card { min-height: 0; }
}

/* Real portrait captures in the existing screenshot section. Never crop game UI. */
.frames { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; gap: 24px; align-items: start; }
.frame { margin: 0; min-width: 0; }
.frame:first-child { grid-row: auto; }
.frame > a { display: block; }
.frame img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: contain; background: #08090c; }
.frame-caption { position: static; padding: 14px 16px; font-size: 1rem; color: var(--text); }
.frame a:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }
.story-visual { background: #08090c; min-height: 0; display: flex; align-items: center; }
.story-visual::before, .story-visual::after { content: none; }
.story-visual img { width: 100%; height: auto; }
.contact-link { display: inline-block; margin-top: 18px; color: var(--gold); overflow-wrap: anywhere; }
@media (max-width: 820px) { .frames { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 16px; } .story-visual { max-width: 440px; margin: auto; } }
@media (max-width: 560px) { .frames { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 24px; } }
