@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap; src: url("/fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap; src: url("/fonts/chakra-petch-thai-600-normal.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Sans Thai"; font-weight: 400; font-display: swap; src: url("/fonts/noto-sans-thai-thai-400-normal.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Sans Thai"; font-weight: 600; font-display: swap; src: url("/fonts/noto-sans-thai-thai-600-normal.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Sans Thai"; font-weight: 700; font-display: swap; src: url("/fonts/noto-sans-thai-thai-700-normal.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Sans Thai"; font-weight: 400; font-display: swap; src: url("/fonts/noto-sans-thai-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF; }
@font-face { font-family: "Noto Sans Thai"; font-weight: 600; font-display: swap; src: url("/fonts/noto-sans-thai-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF; }
@font-face { font-family: "Noto Sans Thai"; font-weight: 700; font-display: swap; src: url("/fonts/noto-sans-thai-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF; }

:root {
  --navy: #243249;
  --navy-deep: #18223a;
  --navy-ink: #111a2d;
  --ivory: #f6f0e3;
  --paper: #fbf7ee;
  --ivory-shade: #e6dcc6;
  --copper: #bc8a55;
  --copper-deep: #8e6236;
  --copper-light: #e2b47f;
  --garden: #6d956e;
  --portal: #54c8cf;
  --ink-soft: #55607a;
  --serif: Georgia, "Times New Roman", serif;
  --display: "Chakra Petch", "Noto Sans Thai", sans-serif;
  --body: "Noto Sans Thai", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--ivory); color: var(--navy); font: 400 17px/1.7 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; letter-spacing: -.005em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--portal); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; padding: 8px 14px; background: var(--copper); color: var(--navy-ink); border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.eyebrow { font: 600 13px/1.4 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--copper-deep); margin-bottom: 12px; }
.eyebrow--light { color: var(--copper-light); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p:not(.eyebrow) { margin-top: 14px; color: var(--ink-soft); }
.section-head--light h2 { color: var(--ivory); }
.section-head--light p:not(.eyebrow) { color: #c7cedd; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 10px; font: 600 17px/1 var(--body); text-decoration: none; transition: filter .15s, transform .08s, background .15s; }
.btn span { font-weight: 400; opacity: .75; font-size: 14px; }
.btn--primary { background: var(--copper); color: var(--navy-ink); box-shadow: inset 0 -3px 0 var(--copper-deep); }
.btn--primary:hover { filter: brightness(1.07); }
.btn--primary:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 var(--copper-deep); }
.btn--ghost { color: var(--ivory); border: 2px solid rgba(246,240,227,.7); background: rgba(17,26,45,.25); }
.btn--ghost:hover { background: rgba(17,26,45,.5); border-color: var(--ivory); }
.btn--block { width: 100%; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 28px; height: 64px; padding: 0 var(--gutter); color: var(--ivory); background: linear-gradient(180deg, rgba(17,26,45,.72), rgba(17,26,45,0)); transition: background .25s; }
.nav[data-solid] { background: rgba(24,34,58,.96); box-shadow: 0 1px 0 rgba(188,138,85,.35); }
.nav__brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.nav__nex { font: 700 26px/1 var(--serif); letter-spacing: .04em; }
.nav__frontier { font: 600 11px/1 var(--display); letter-spacing: .45em; color: var(--copper-light); }
.nav__links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav__links a { text-decoration: none; opacity: .88; }
.nav__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--copper); }
.nav__play { padding: 7px 14px; border: 1.5px solid rgba(246,240,227,.6); border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; }
.nav__play:hover { background: rgba(246,240,227,.12); }

/* Hero */
.hero { position: relative; min-height: max(640px, 94vh); display: flex; align-items: flex-end; padding: 120px var(--gutter) 88px; color: var(--ivory); overflow: hidden; }
.hero__art { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 20% 55%; }
.hero::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(270deg, rgba(17,26,45,.9) 0%, rgba(17,26,45,.66) 34%, rgba(17,26,45,0) 60%), linear-gradient(0deg, rgba(17,26,45,.55) 0%, rgba(17,26,45,0) 30%), linear-gradient(180deg, rgba(17,26,45,.45) 0%, rgba(17,26,45,0) 18%); }
.hero__inner { position: relative; z-index: 2; max-width: 560px; margin-left: auto; align-self: center; }
.wordmark { display: flex; flex-direction: column; margin: 6px 0 18px; }
.wordmark__nex { font: 700 clamp(84px, 13vw, 168px)/.84 var(--serif); letter-spacing: .04em; text-shadow: 0 4px 30px rgba(10,16,30,.45); }
.wordmark__frontier { margin-top: 14px; padding-left: .3em; font: 600 clamp(15px, 1.8vw, 22px)/1 var(--display); letter-spacing: .62em; color: var(--copper-light); }
.hero__tagline { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; }
.hero__lede { margin-top: 10px; max-width: 520px; color: #dfe4ee; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__meta { margin-top: 14px; font-size: 14px; color: #c7cedd; }
.hero__realm { position: absolute; z-index: 2; left: var(--gutter); bottom: 28px; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(17,26,45,.7); box-shadow: inset 0 0 0 1px rgba(188,138,85,.55); font-size: 13px; color: var(--ivory); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--portal); box-shadow: 0 0 0 3px rgba(84,200,207,.25); }

/* World */
.world { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; max-width: var(--max); margin: 0 auto; padding: clamp(72px, 9vw, 128px) var(--gutter); }
.world__copy p:not(.eyebrow) { margin-top: 16px; color: #3d4862; }
.world__copy h2 { margin-bottom: 4px; }
.npcs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 14px; }
.npcs li { padding: 5px 12px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--ivory-shade); }
.npcs b { font-weight: 600; color: var(--copper-deep); }
.world__art { margin: 0; border: 3px solid var(--navy); border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 4px var(--ivory), 0 22px 50px rgba(36,50,73,.22); }
.world__art img { width: 100%; }

/* Classes */
.classes { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 9vw, 128px); }
.novice { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 22px; max-width: 560px; margin-bottom: 26px; padding: 12px 22px 12px 12px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--ivory-shade); }
.novice img { width: 120px; border-radius: 10px; background: #fff; }
.novice h3 { font-size: 22px; }
.novice h3 span { margin-left: 8px; font-size: 15px; font-weight: 400; color: var(--ink-soft); }
.novice p { margin-top: 4px; font-size: 15px; color: #3d4862; }
.jobs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.job { position: relative; padding: 10px 10px 16px; border: 3px solid var(--navy); border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--copper); }
.job img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: 50% 12%; border-radius: 10px; background: #fff; }
.job h3 { margin-top: 12px; font: 600 20px/1.1 var(--display); letter-spacing: .03em; }
.job__role { margin-top: 6px; font-size: 14px; line-height: 1.5; color: #3d4862; min-height: 42px; }
.job__paths { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--ivory-shade); font: 600 12px/1.55 var(--display); letter-spacing: .03em; color: var(--copper-deep); }

/* Route — the signature: the eight fields as one expedition trail */
.route { position: relative; padding: clamp(72px, 9vw, 120px) var(--gutter); background: radial-gradient(1200px 500px at 85% 0%, rgba(84,200,207,.12), transparent 60%), var(--navy-deep); color: var(--ivory); }
.route > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.trail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 0; margin-top: 8px; padding: 0; list-style: none; counter-reset: stop; }
.stop { position: relative; padding: 34px 20px 0 0; }
.stop::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; border-top: 2px dashed rgba(188,138,85,.6); }
.stop:nth-child(4n)::before { right: calc(100% - 22px); }
.stop::after { content: ""; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--navy-deep); border: 3px solid var(--portal); box-shadow: 0 0 14px rgba(84,200,207,.6); }
.stop--boss::after { border-color: var(--copper-light); box-shadow: 0 0 14px rgba(226,180,127,.6); }
.stop__id { font: 600 13px/1 var(--display); letter-spacing: .14em; color: var(--portal); }
.stop__lv { margin-left: 10px; padding: 2px 8px; border-radius: 4px; background: rgba(246,240,227,.1); font: 600 12px/1.4 var(--display); letter-spacing: .06em; color: var(--ivory); font-variant-numeric: tabular-nums; }
.stop h3 { margin-top: 12px; font: 600 21px/1.2 var(--display); letter-spacing: .02em; }
.stop p { margin-top: 6px; font-size: 14px; line-height: 1.55; color: #b9c2d4; }
.stop .boss { color: var(--copper-light); font-weight: 600; }
.route__note { margin-top: 44px; padding-top: 18px; border-top: 1px solid rgba(246,240,227,.14); font-size: 14px; color: #b9c2d4; }

/* Screens */
.screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: var(--max); margin: 0 auto; padding: clamp(72px, 9vw, 120px) var(--gutter) 0; }
.screen { margin: 0; }
.screen--wide { grid-column: 1 / -1; }
.screen img { width: 100%; border-radius: 14px; border: 3px solid var(--navy); }
.screen--wide img { aspect-ratio: 16 / 8; object-fit: cover; }
.screen:not(.screen--wide) img { aspect-ratio: 16 / 9; object-fit: cover; background: #fff; }
.screen figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }

/* Systems */
.systems { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 9vw, 120px) var(--gutter); }
.sys-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--navy); }
.sys { padding: 24px 24px 28px 0; border-bottom: 1px solid var(--ivory-shade); }
.sys:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--ivory-shade); }
.sys h3 { font-size: 19px; }
.sys p { margin-top: 8px; font-size: 15px; color: #3d4862; }
.keys { margin-top: 48px; padding: 26px 28px; border-radius: 16px; background: var(--navy); color: var(--ivory); }
.keys h3 { font: 600 14px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--copper-light); }
.keys dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; margin: 18px 0 0; }
.keys dl div { display: flex; align-items: baseline; gap: 14px; }
.keys dt { flex: 0 0 auto; min-width: 150px; font-size: 13px; color: #c7cedd; }
.keys dd { margin: 0; font-size: 15px; }
kbd { display: inline-block; min-width: 26px; margin-right: 3px; padding: 2px 7px; border-radius: 5px; background: var(--ivory); color: var(--navy); box-shadow: inset 0 -2px 0 var(--ivory-shade); font: 600 13px/1.4 var(--display); text-align: center; }

/* Download */
.download { padding: clamp(72px, 9vw, 120px) var(--gutter); background: linear-gradient(180deg, rgba(17,26,45,.92), rgba(17,26,45,.97)), url("/img/guild-terrace.webp") center / cover; color: var(--ivory); }
.download > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.platform { padding: 26px 26px 20px; border: 3px solid var(--navy-ink); border-radius: 16px; background: var(--ivory); color: var(--navy); box-shadow: inset 0 0 0 4px var(--ivory), inset 0 0 0 5px var(--copper); }
.platform[data-primary] { box-shadow: inset 0 0 0 4px var(--ivory), inset 0 0 0 5px var(--copper), 0 0 0 4px var(--portal); }
.platform header { display: flex; align-items: center; justify-content: space-between; }
.platform h3 { font: 600 28px/1 var(--display); letter-spacing: .03em; }
.platform__badge { padding: 4px 10px; border-radius: 999px; background: var(--navy); color: var(--ivory); font-size: 12px; font-weight: 600; }
.platform__req { margin: 8px 0 18px; font-size: 14px; color: var(--ink-soft); }
.steps { margin: 20px 0 0; padding-left: 22px; font-size: 15px; }
.steps li { margin-top: 6px; padding-left: 4px; }
.steps code, .hash code { font: 13px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.steps code { padding: 1px 5px; border-radius: 4px; background: var(--ivory-shade); word-break: break-all; }
.hash { margin-top: 16px; font-size: 13px; color: var(--ink-soft); }
.hash summary { cursor: pointer; font-weight: 600; }
.hash code { display: block; margin-top: 6px; padding: 8px 10px; border-radius: 6px; background: var(--paper); word-break: break-all; user-select: all; }
.packs { margin-top: 40px; }
.packs h3 { font-size: 20px; }
.packs > p { margin-top: 6px; color: #c7cedd; font-size: 15px; }
.packs table { width: 100%; max-width: 640px; margin-top: 16px; border-collapse: collapse; font-size: 15px; }
.packs th, .packs td { padding: 10px 12px 10px 0; border-bottom: 1px solid rgba(246,240,227,.14); text-align: left; }
.packs th { font: 600 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--copper-light); }
.packs td:nth-child(2) { font-variant-numeric: tabular-nums; white-space: nowrap; }
.download__web { margin-top: 36px; color: #c7cedd; }
.download__web a { color: var(--ivory); font-weight: 600; text-decoration-color: var(--copper); text-underline-offset: 4px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; padding: clamp(72px, 9vw, 120px) var(--gutter); }
.faq h2 { margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--ivory-shade); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 22px/1 var(--display); color: var(--copper-deep); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: #3d4862; }

/* Footer */
.foot { padding: 40px var(--gutter) 48px; background: var(--navy-ink); color: #b9c2d4; font-size: 14px; text-align: center; }
.foot__brand { display: inline-flex; align-items: baseline; gap: 8px; color: var(--ivory); margin-bottom: 12px; }
.foot p + p { margin-top: 6px; }
.foot a { color: var(--ivory); }

/* Responsive */
@media (max-width: 1100px) and (min-width: 621px) {
  .hero::before { background: linear-gradient(270deg, rgba(17,26,45,.92) 0%, rgba(17,26,45,.78) 48%, rgba(17,26,45,.2) 80%, rgba(17,26,45,0) 100%), linear-gradient(0deg, rgba(17,26,45,.55) 0%, rgba(17,26,45,0) 30%); }
}
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__play { margin-left: auto; }
  .world { grid-template-columns: 1fr; }
  .jobs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stop:nth-child(4n)::before { right: 0; }
  .stop:nth-child(2n)::before { right: calc(100% - 22px); }
  .sys-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sys:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .sys:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--ivory-shade); }
  .platforms { grid-template-columns: 1fr; }
  .keys dl { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { padding-bottom: 104px; }
  .hero::before { background: linear-gradient(0deg, rgba(17,26,45,.92) 0%, rgba(17,26,45,.6) 55%, rgba(17,26,45,.25) 100%); }
  .hero__art { object-position: 30% 50%; }
  .hero__cta .btn { width: 100%; }
  .hero__realm { left: var(--gutter); right: var(--gutter); bottom: 24px; justify-content: center; text-align: center; }
  .jobs { grid-template-columns: 1fr 1fr; gap: 12px; }
  .job { padding: 10px 10px 14px; }
  .job h3 { font-size: 19px; }
  .job__role, .job__paths { font-size: 13px; }
  .novice { grid-template-columns: 84px 1fr; gap: 14px; }
  .novice img { width: 84px; }
  .trail { grid-template-columns: 1fr; gap: 28px; }
  .stop { padding: 0 0 0 38px; }
  .stop::before { top: 22px; bottom: -28px; left: 9px; right: auto; border-top: 0; border-left: 2px dashed rgba(188,138,85,.6); }
  .stop:nth-child(n)::before { right: auto; }
  .stop:last-child::before { display: none; }
  .stop h3 { margin-top: 8px; }
  .screens { grid-template-columns: 1fr; }
  .sys-grid { grid-template-columns: 1fr; }
  .sys:nth-child(n) { padding: 20px 0; border-left: 0; }
  .keys { padding: 22px 18px; }
  .keys dl div { flex-direction: column; gap: 4px; }
  .keys dt { min-width: 0; }
  .platform { padding: 22px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
