/* SiamTP — original navy / gold visual system. No framework dependency. */
:root {
  --navy: #0a1628; --panel: #121927; --panel-raised: #162338; --deep: #07111f;
  --gold: #c8a24a; --gold-light: #e7cc87; --white: #fff; --text: #e8e8e8;
  --muted: #a3b2c3; --subtle: #8899aa; --line: rgba(200,162,74,.19);
  --success: #22c55e; --warning: #f59e0b; --error: #ef4444;
  --body: 'Sarabun', system-ui, sans-serif; --heading: 'Prompt', 'Sarabun', sans-serif;
  --latin: 'Inter', sans-serif; --mono: 'JetBrains Mono', monospace;
  --radius: 16px; --header-height: 114px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; background: var(--navy); color: var(--text); font: 400 16px/1.8 var(--body); -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
[hidden] { display: none !important; }
img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, textarea, select { border-radius: 8px; }
a, button, summary { touch-action: manipulation; }
a, button { transition: color .3s ease, background .3s ease, border-color .3s ease, transform .3s ease; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 5px; }
::selection { background: var(--gold); color: var(--deep); }
h1, h2, h3, h4 { font-family: var(--heading); color: var(--white); margin: 0 0 24px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.25rem, 4.5vw, 4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.65rem); letter-spacing: -.025em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 24px; }
strong { font-weight: 600; }
small { font-size: .8rem; }
.container { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.narrow { max-width: 880px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.text-gold { color: var(--gold-light); }
.section { padding-block: 104px; }
.section-panel { background: var(--panel); border-block: 1px solid rgba(255,255,255,.04); }
.section-after-hero { padding-top: 16px; }
.eyebrow { color: var(--gold-light); font-family: var(--latin); font-weight: 500; letter-spacing: .18em; font-size: .7rem; line-height: 1.7; margin-bottom: 24px; text-transform: uppercase; }
.button-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 24px; min-height: 56px; padding: 13px 26px; border: 1px solid var(--gold); border-radius: 8px; color: var(--deep); background: var(--gold); font-weight: 600; line-height: 1.5; text-align: center; }
.button:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); }
.button span { font-family: var(--latin); font-size: 1.15rem; }
.button-outline { background: transparent; color: var(--gold-light); border-color: rgba(200,162,74,.55); }
.button-outline:hover { background: rgba(200,162,74,.1); color: var(--gold-light); }
.button-small { min-height: 44px; padding: 9px 18px; font-size: .88rem; }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; color: var(--gold-light); font-weight: 500; }
.text-link:hover { color: var(--white); }
.skip-link { position: fixed; top: -120px; left: 16px; padding: 12px 24px; background: var(--gold); color: var(--deep); z-index: 2000; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(10,22,40,.95); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.utility-bar { border-bottom: 1px solid rgba(255,255,255,.055); }
.utility-inner { display: flex; justify-content: space-between; min-height: 32px; align-items: center; color: var(--muted); font-size: .72rem; }
.utility-inner b { color: var(--gold); padding-inline: 8px; }
.nav-shell { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 32px; }
.brand { display: inline-flex; gap: 10px; align-items: center; flex-shrink: 0; }
.brand strong { display: block; font: 500 1.45rem/1.1 var(--latin); letter-spacing: .13em; color: var(--white); }
.brand strong span { color: var(--gold-light); }
.brand small { display: block; margin-top: 6px; font: 400 .58rem/1.2 var(--latin); letter-spacing: .2em; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > a:not(.button) { display: flex; align-items: center; min-height: 48px; font-size: .88rem; color: var(--muted); position: relative; white-space: nowrap; }
.main-nav > a:not(.button):hover, .main-nav > a.is-active { color: var(--gold-light); }
.main-nav > a.is-active::after { content: ''; position: absolute; bottom: 1px; left: 0; right: 0; height: 1px; background: var(--gold); }
.main-nav .nav-cta { margin-left: 8px; }
.menu-toggle { display: none; }
.hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 82% 52%, rgba(47,62,78,.22), transparent 58%), var(--navy); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; min-height: max(660px, calc(100svh - var(--header-height) - 60px)); gap: 8px; padding-block: 68px; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 12px; }
.gold-rule { width: 28px; height: 1px; background: var(--gold); }
.hero h1 { font-size: clamp(2.7rem, 4.5vw, 4rem); line-height: 1.42; margin-bottom: 24px; }
.hero-gold { display: block; color: var(--gold-light); font-family: 'Inter', 'Prompt', sans-serif; font-size: 1.03em; font-weight: 500; letter-spacing: -.045em; }
.hero-lead { font-size: 1.12rem; color: #b7c3d1; max-width: 510px; line-height: 1.9; margin-block: 26px 32px; }
.hero-disclosure { font-size: .75rem; color: var(--muted); margin: 16px 0 0; }
.hero-caption { display: flex; gap: 16px; align-items: flex-start; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.09); max-width: 420px; }
.hero-caption > span { color: var(--gold); font-size: .72rem; margin-top: 3px; }
.hero-caption p { margin: 0; font-size: .84rem; color: var(--muted); }
.hero-caption strong { font-weight: 400; color: var(--text); }
.hero-art { position: relative; isolation: isolate; min-width: 0; align-self: center; }
.prime-sculpture { width: 110%; max-width: none; margin-left: -5%; filter: drop-shadow(0 32px 20px rgba(0,0,0,.2)); }
.orbit-label { position: absolute; top: 1%; right: 6%; display: flex; align-items: center; gap: 8px; font: 400 .65rem var(--mono); color: var(--muted); letter-spacing: .14em; }
.tiny-square { width: 5px; height: 5px; background: var(--gold); }
.art-platform { position: absolute; right: 0; top: 29%; display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid rgba(200,162,74,.23); border-radius: 12px; backdrop-filter: blur(14px); background: rgba(13,27,44,.85); box-shadow: 0 16px 48px rgba(0,0,0,.18); font-size: .83rem; }
.art-platform > .mono { color: var(--gold-light); font-size: 1.2rem; border-right: 1px solid var(--line); padding-right: 16px; }
.art-platform small { color: var(--muted); font-size: .65rem; }
.art-note { position: absolute; left: 0; bottom: 13%; display: flex; gap: 14px; font-size: .8rem; color: var(--muted); padding: 16px 20px; background: rgba(10,22,40,.9); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; }
.art-note strong { color: var(--text); font-weight: 400; }
.note-line { width: 3px; background: var(--gold); }
.art-coordinate { display: block; text-align: center; color: var(--muted); font-size: .53rem; letter-spacing: .14em; margin-top: -16px; }
.hero-footnote { border-top: 1px solid rgba(255,255,255,.09); display: flex; align-items: center; justify-content: space-between; min-height: 60px; color: var(--muted); font-size: .75rem; }
.hero-footnote > span { font: .64rem var(--latin); letter-spacing: .15em; }
.hero-footnote b { color: var(--gold); padding-inline: 14px; }
.hero-footnote a { display: flex; align-items: center; gap: 40px; min-height: 44px; }
.trust-strip { background: #0d1a2d; border-block: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 32px; }
.trust-item { display: flex; align-items: center; gap: 24px; padding-inline: 32px; border-right: 1px solid var(--line); }
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { border: 0; padding-right: 0; }
.trust-item > strong { font: 500 1.9rem var(--latin); color: var(--gold-light); white-space: nowrap; }
.trust-item > strong > span { margin-left: 5px; font: .8rem var(--body); }
.trust-item > span { font-size: .84rem; }
.trust-item > span:last-child { margin-left: auto; color: var(--gold); }
.trust-item small { display: block; color: var(--muted); font-size: .71rem; margin-top: 2px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 48px; }
.section-heading h2 { margin: 0; }
.section-heading > p { max-width: 365px; font-size: .96rem; color: var(--muted); margin: 0 0 4px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feature-card { position: relative; padding: 32px 26px 24px; border: 1px solid rgba(200,162,74,.16); border-radius: var(--radius); background: linear-gradient(130deg, rgba(28,43,62,.7), rgba(15,28,45,.6)); box-shadow: 0 8px 20px rgba(0,0,0,.06); transition: border-color .3s, transform .3s; }
.feature-card:hover { border-color: rgba(200,162,74,.6); transform: translateY(-4px); }
.card-index { position: absolute; right: 24px; top: 26px; font-size: .66rem; color: var(--muted); }
.feature-icon { font: 300 2rem/1.3 var(--latin); color: var(--gold-light); width: 58px; height: 68px; }
.feature-card h3 { font-size: 1.16rem; margin: 18px 0 16px; }
.feature-card p { font-size: .89rem; color: var(--muted); line-height: 1.85; min-height: 100px; }
.feature-card .text-link { width: 100%; border-top: 1px solid var(--line); padding-top: 16px; font-size: .82rem; }
.market-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.market-card { position: relative; display: block; padding: 36px 28px 26px; border-right: 1px solid var(--line); background: rgba(10,22,40,.45); }
.market-card:last-child { border-right: 0; }
.market-card:hover { background: rgba(200,162,74,.06); }
.market-symbol { display: block; color: var(--gold-light); font: 400 2.65rem/1 var(--latin); height: 64px; }
.market-code { font-size: .68rem; color: var(--muted); letter-spacing: .1em; }
.market-card h3 { margin: 12px 0 10px; }
.market-card p { font-size: .85rem; color: var(--muted); margin-bottom: 26px; }
.market-arrow { position: absolute; right: 24px; bottom: 24px; color: var(--gold); }
.section-note { font-size: .78rem; color: var(--muted); margin-top: 24px; }
.learning-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 96px; }
.learning-intro > p:not(.eyebrow) { max-width: 390px; color: var(--muted); margin-bottom: 32px; }
.lesson { display: flex; align-items: flex-start; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.lesson:first-child { border-top: 1px solid var(--line); }
.lesson-number { color: var(--gold); font-size: .8rem; padding-top: 5px; }
.lesson small { font-size: .68rem; letter-spacing: .08em; color: var(--muted); }
.lesson h3 { margin: 8px 0; font-size: 1.2rem; }
.lesson p { font-size: .88rem; margin: 0; color: var(--muted); }
.lesson > span:last-child { margin-left: auto; padding: 24px 0 0 16px; color: var(--gold); }
.lesson:hover h3 { color: var(--gold-light); }
.cta-section { padding-block: 80px; }
.cta-panel { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 48px; border: 1px solid rgba(200,162,74,.35); border-radius: var(--radius); padding: 56px 64px; background: linear-gradient(110deg, rgba(200,162,74,.085), rgba(16,31,50,.8)); overflow: hidden; }
.cta-panel::before { content: ''; width: 220px; height: 220px; position: absolute; right: 21%; top: -115px; border: 1px solid rgba(200,162,74,.1); border-radius: 50%; pointer-events: none; }
.cta-panel h2 { margin-bottom: 16px; }
.cta-panel p:not(.eyebrow) { color: var(--muted); max-width: 580px; margin: 0; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; flex-shrink: 0; }
.cta-actions small { color: var(--muted); }
.site-footer { background: var(--deep); border-top: 1px solid var(--line); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 56px; }
.footer-brand p { font-size: .87rem; color: var(--muted); margin-top: 24px; }
.partner-label { font: .58rem var(--latin); letter-spacing: .12em; color: var(--gold-light); }
.footer-grid h2 { font-size: .96rem; margin: 0 0 18px; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; font-size: .83rem; color: var(--muted); }
.footer-grid li { margin: 0; }
.footer-grid li a { display: inline-flex; min-height: 40px; align-items: center; overflow-wrap: anywhere; }
.footer-grid a:hover { color: var(--gold-light); }
.social-links { display: flex; gap: 16px; margin-top: 16px; font: .75rem var(--latin); }
.social-links a { padding-block: 10px; }
.footer-compliance { border-top: 1px solid rgba(255,255,255,.09); padding-top: 28px; font-size: .76rem; color: var(--muted); }
.footer-compliance p { margin-bottom: 12px; }
.footer-compliance a { text-decoration: underline; text-underline-offset: 4px; }
.risk-title { color: var(--gold-light); font-size: .84rem; }
.risk-title span { margin-right: 8px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 24px; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.07); font-size: .7rem; }
.footer-bottom a { min-height: 36px; display: flex; align-items: center; text-decoration: none; }
.page-hero { padding: 28px 0 64px; background: radial-gradient(ellipse at 85% 0, rgba(200,162,74,.05), transparent 50%); }
.page-hero h1 { max-width: 1000px; margin-top: 0; }
.page-hero .eyebrow { margin-top: 52px; }
.page-lead { font-size: 1.2rem; max-width: 780px; color: var(--muted); line-height: 1.9; margin-bottom: 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .73rem; }
.breadcrumbs li { display: inline-flex; gap: 8px; align-items: center; }
.breadcrumbs li > span[aria-hidden] { color: var(--gold); padding-inline: 6px; }
.breadcrumbs a { display: inline-block; padding-block: 8px; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 288px; gap: 72px; align-items: start; padding-bottom: 96px; }
.content-layout:has(> .prose:only-child) { grid-template-columns: minmax(0, 880px); justify-content: center; }
.prose { min-width: 0; overflow-wrap: anywhere; font-size: 1.03rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 56px; font-size: clamp(1.5rem, 2.3vw, 1.95rem); scroll-margin-top: 150px; }
.prose h3 { margin-top: 36px; margin-bottom: 16px; font-size: 1.2rem; }
.prose p, .prose li { line-height: 1.95; }
.prose p { color: #c9d2dd; }
.prose ul, .prose ol { padding-left: 24px; margin-block: 24px 32px; }
.prose li { margin-bottom: 12px; color: #c9d2dd; }
.prose li::marker { color: var(--gold); }
.prose a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 4px; }
.prose a:hover { color: var(--white); }
.prose strong { color: var(--white); }
.prose blockquote { border-left: 3px solid var(--gold); margin: 32px 0; padding: 24px 28px; background: rgba(200,162,74,.055); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; margin-block: 32px; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .88rem; margin-block: 32px; }
.prose th, .prose td { padding: 16px; border-bottom: 1px solid var(--line); text-align: left; min-width: 140px; vertical-align: top; }
.prose th { color: var(--gold-light); background: #142135; font-weight: 500; }
.prose tbody tr:nth-child(even) { background: rgba(255,255,255,.02); }
.prose pre { overflow-x: auto; padding: 24px; background: var(--deep); border: 1px solid var(--line); border-radius: 8px; }
.prose code { font-family: var(--mono); font-size: .82em; color: var(--gold-light); }
.prose iframe { max-width: 100%; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 40px; }
.aside-card { position: sticky; top: calc(var(--header-height) + 32px); padding: 32px 24px; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); }
.aside-card h2 { font-size: 1.65rem; }
.aside-card p:not(.eyebrow) { font-size: .9rem; color: var(--muted); }
.aside-card small { display: block; margin-top: 24px; color: var(--muted); line-height: 1.8; }
.aside-card .button { width: 100%; font-size: .9rem; padding-inline: 10px; }
.faq-list { margin-top: 36px; border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; font-family: var(--heading); font-size: 1.08rem; list-style: none; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { font: 1.4rem var(--latin); color: var(--gold); }
.faq[open] summary span { transform: rotate(45deg); }
.faq p { margin: 16px 0 0; color: var(--muted); }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.article-card { background: #0d1a2d; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.article-card:hover { border-color: rgba(200,162,74,.55); }
.article-cover { display: block; aspect-ratio: 12 / 7; overflow: hidden; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.article-card:hover .article-cover img { transform: scale(1.025); }
.cover-art { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 26px 30px; height: 100%; background: linear-gradient(125deg, #243046, #101c2c); overflow: hidden; }
.cover-art .mono { font-size: .58rem; letter-spacing: .1em; color: var(--gold-light); }
.cover-art strong { font: 500 1.5rem/1.5 var(--heading); z-index: 1; }
.cover-lines { position: absolute; width: 210px; height: 210px; border: 1px solid rgba(200,162,74,.45); transform: rotate(35deg); right: -65px; top: 45px; }
.cover-lines::before, .cover-lines::after { position: absolute; content: ''; inset: 18px; border: inherit; }
.cover-lines::after { inset: 36px; }
.article-card-body { padding: 26px; }
.article-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .74rem; margin-bottom: 16px; }
.article-meta time { font-variant-numeric: tabular-nums; }
.article-meta > span:not(:first-child) { color: var(--gold-light); }
.article-card h3 { font-size: 1.18rem; line-height: 1.6; margin-bottom: 16px; }
.article-card h3 a:hover { color: var(--gold-light); }
.article-card-body > p { color: var(--muted); font-size: .87rem; }
.article-card .text-link { font-size: .84rem; }
.blog-intro { max-width: 840px; margin-bottom: 40px; }
.empty-state { border: 1px solid var(--line); border-radius: var(--radius); padding: 48px; }
.empty-state h2 { font-size: 1.6rem; }
.pagination-nav { margin-top: 56px; }
.pagination { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 0; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; min-width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 8px; font-family: var(--mono); }
.pagination span[aria-current] { background: var(--gold); color: var(--deep); }
.pagination .gap { border: 0; }
.pagination a:hover { border-color: var(--gold); }
.article-hero h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
.article-hero .article-meta { margin-top: 28px; }
.article-body { padding-bottom: 88px; }
.article-main-image { border-radius: var(--radius); margin-bottom: 40px; }
.tag-list { display: flex; flex-wrap: wrap; list-style: none; padding: 0; gap: 12px; margin-top: 40px; }
.tag-list li { padding: 4px 14px; border: 1px solid var(--line); border-radius: 24px; color: var(--gold-light); font-size: .75rem; }
.article-note { padding: 24px; background: var(--panel); border-left: 2px solid var(--gold); font-size: .85rem; color: var(--muted); margin-top: 32px; }
.article-actions { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 32px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-details .prose h2 { font-size: 1.8rem; }
.contact-channel { display: grid; grid-template-columns: 65px 1fr 20px; align-items: center; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.contact-channel > .mono { color: var(--gold-light); font-size: .7rem; }
.contact-channel strong { font-weight: 400; overflow-wrap: anywhere; }
.contact-channel > span:last-child { color: var(--gold); }
.form-card { padding: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.form-card h2 { font-size: 1.8rem; }
.form-card > p { font-size: .85rem; color: var(--muted); }
.form-card > p a { text-decoration: underline; }
.form-field { margin-bottom: 24px; }
.form-label { margin-bottom: 8px; font-size: .9rem; }
.required { color: var(--gold-light); }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]), textarea, select { width: 100%; min-height: 52px; padding: 12px 14px; color: var(--text); border: 1px solid #43516a; background: #0a1628; line-height: 1.6; }
textarea { min-height: 150px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8d9caf; }
input[type=checkbox] { accent-color: var(--gold); width: 20px; height: 20px; vertical-align: middle; }
.checkboxes label, .form-input-wrapper label { font-size: .87rem; }
.form-card .buttons .button { width: 100%; }
.form-message { border: 1px solid var(--gold); border-radius: 8px; padding: 20px; margin: 24px 0; background: rgba(200,162,74,.06); }
.form-message.error, .form-message.danger { border-color: var(--error); }
.form-message.success { border-color: var(--success); }
.form-errors, .form-errors p, .form-field .error { color: #ffaaaa; font-size: .83rem; }
.form-field .form-input-wrapper .form-input-honeypot, .form-field.honeypot { display: none; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.tool-grid > div > p:not(.eyebrow) { color: var(--muted); }
.risk-tool { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: var(--navy); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field-pair label { font-size: .9rem; }
.field-pair input { margin-top: 8px; font-family: var(--mono); }
.risk-tool .button { width: 100%; margin-top: 24px; }
.risk-result { display: block; padding: 24px 0 16px; font: 500 1.8rem var(--mono); color: var(--gold-light); overflow-wrap: anywhere; }
.risk-tool small { display: block; color: var(--muted); line-height: 1.8; }
.error-page { min-height: 60vh; }
.reveal-in { animation: reveal-in .2s ease-out both; }
@keyframes reveal-in { from { opacity: .5; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1280px) { .hero-art { margin-left: 0; } }
@media (max-width: 1199px) {
  .container { width: calc(100% - 64px); }
  .nav-shell { gap: 20px; }
  .main-nav { gap: 16px; }
  .main-nav > a:not(.button) { font-size: .8rem; }
  .main-nav .nav-cta { padding-inline: 12px; gap: 12px; }
  .brand strong { font-size: 1.2rem; }
  .hero h1 { font-size: 3rem; }
  .trust-item { padding-inline: 20px; gap: 16px; }
  .trust-item > strong { font-size: 1.5rem; }
  .feature-grid { gap: 16px; }
  .feature-card { padding-inline: 20px; }
  .learning-grid { gap: 56px; }
  .footer-grid { gap: 28px; }
  .content-layout { gap: 40px; }
  .contact-grid, .tool-grid { gap: 48px; }
}
@media (max-width: 1023px) {
  :root { --header-height: 106px; }
  .nav-shell { min-height: 72px; flex-wrap: wrap; padding-block: 16px; }
  .main-nav { width: 100%; flex-wrap: wrap; }
  .js .nav-shell { flex-wrap: nowrap; padding-block: 0; }
  .js .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 48px; height: 48px; background: transparent; border: 1px solid var(--line); }
  .menu-toggle span { width: 20px; height: 1px; background: var(--gold-light); transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded=true] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded=true] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .js .main-nav { position: fixed; inset: var(--header-height) 0 auto; height: calc(100dvh - var(--header-height)); padding: 32px; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px; flex-wrap: nowrap; background: #0a1628; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .js .nav-open .main-nav { visibility: visible; opacity: 1; transform: none; }
  .js .main-nav > a:not(.button) { min-height: 56px; font-size: 1.2rem; padding-block: 8px; }
  .main-nav .nav-cta { margin: 20px 0 0; min-height: 56px; }
  .hero-grid { min-height: 680px; gap: 0; }
  .hero h1 { font-size: clamp(2.4rem, 4.8vw, 3rem); }
  .hero-art { margin-left: -10%; }
  .art-platform { right: -4%; padding: 12px; gap: 10px; }
  .art-note { left: 10%; bottom: 9%; }
  .art-coordinate { display: none; }
  .hero-lead { font-size: 1rem; }
  .hero .button { padding-inline: 18px; }
  .trust-item { flex-wrap: wrap; gap: 12px; }
  .trust-item > span:last-child { display: none; }
  .trust-item > span { width: 100%; }
  .feature-grid, .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card p { min-height: auto; }
  .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-card:nth-child(2) { border-right: 0; }
  .market-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .learning-grid { gap: 40px; }
  .section { padding-block: 80px; }
  .section-after-hero { padding-top: 16px; }
  .section-heading { gap: 24px; }
  .section-heading > p { max-width: 300px; }
  .cta-panel { padding: 40px; gap: 32px; }
  .cta-panel h2 { font-size: 1.85rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .content-layout { grid-template-columns: minmax(0, 1fr); }
  .aside-card { position: static; max-width: 100%; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .aside-card .eyebrow { grid-column: 1 / -1; }
  .aside-card h2 { grid-row: span 2; }
  .aside-card .button { max-width: 300px; }
  .aside-card small { grid-column: 1 / -1; }
  .contact-grid, .tool-grid { gap: 32px; }
  .form-card { padding: 28px; }
  .contact-channel { grid-template-columns: 1fr 20px; gap: 8px; }
  .contact-channel .mono { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .container { width: calc(100% - 40px); }
  .utility-inner { font-size: .62rem; min-height: 32px; }
  .utility-inner b { padding-inline: 4px; }
  .brand strong { font-size: 1.3rem; }
  .brand img { width: 34px; height: 34px; }
  .js .main-nav { padding: 20px; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; padding-block: 48px 24px; min-height: auto; }
  .hero h1 { font-size: clamp(2.45rem, 9.1vw, 3.8rem); line-height: 1.45; letter-spacing: -.04em; }
  .hero-copy .eyebrow { font-size: .6rem; gap: 10px; margin-bottom: 24px; }
  .hero-lead { margin: 22px 0 28px; font-size: 1rem; max-width: 100%; }
  .button-row { gap: 12px; }
  .button-row > .button { width: 100%; }
  .hero-disclosure { text-align: center; }
  .hero-caption { display: none; }
  .hero-art { margin: 32px 0 0; width: 100%; max-width: 480px; align-self: center; }
  .prime-sculpture { width: 100%; margin: 0; }
  .orbit-label { top: 2%; right: 8%; font-size: .56rem; }
  .art-platform { right: 0; top: 34%; font-size: .73rem; }
  .art-platform .mono { font-size: 1rem; padding-right: 12px; }
  .art-platform small { font-size: .6rem; }
  .art-note { left: 0; bottom: 8%; font-size: .72rem; padding: 12px 16px; }
  .hero-footnote { gap: 16px; min-height: 56px; font-size: .68rem; }
  .hero-footnote > span { font-size: .51rem; letter-spacing: .07em; }
  .hero-footnote b { padding-inline: 5px; }
  .hero-footnote a { gap: 12px; }
  .trust-grid { grid-template-columns: 1fr; padding-block: 8px; }
  .trust-item { display: grid; grid-template-columns: 90px 1fr 20px; border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 0; gap: 16px; }
  .trust-item:last-child { padding-bottom: 24px; }
  .trust-item > span:last-child { display: block; }
  .trust-item > strong { font-size: 1.5rem; }
  .section { padding-block: 64px; }
  .section-after-hero { padding-top: 0; }
  .section-heading { display: block; margin-bottom: 32px; }
  .section-heading > p { max-width: 100%; margin-top: 20px; }
  .section-heading > .text-link { margin-top: 16px; }
  .eyebrow { font-size: .64rem; margin-bottom: 18px; }
  .feature-grid, .article-grid, .market-grid, .learning-grid, .contact-grid, .tool-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 26px; }
  .feature-icon { height: 50px; }
  .feature-card p { min-height: 0; }
  .market-card { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px; }
  .market-card:last-child { border-bottom: 0; }
  .market-symbol { float: right; height: auto; font-size: 2.1rem; }
  .market-card h3 { margin-top: 10px; }
  .market-card p { max-width: 85%; }
  .learning-grid { gap: 40px; }
  .learning-intro .button { width: 100%; }
  .lesson { gap: 18px; }
  .lesson h3 { font-size: 1.08rem; }
  .lesson > span:last-child { padding-left: 0; }
  .cta-panel { display: block; padding: 32px 24px; }
  .cta-panel h2 { font-size: 1.75rem; }
  .cta-actions { margin-top: 32px; }
  .cta-actions .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
  .footer-grid h2 { margin-bottom: 12px; }
  .footer-grid li a { min-height: 44px; }
  .site-footer { padding-top: 48px; }
  .footer-bottom { display: block; }
  .footer-bottom > span { display: block; margin-bottom: 12px; }
  .page-hero { padding-block: 20px 40px; }
  .page-hero .eyebrow { margin-top: 36px; }
  .page-hero h1 { font-size: 2.25rem; line-height: 1.5; }
  .page-lead { font-size: 1rem; }
  .content-layout { gap: 40px; padding-bottom: 56px; }
  .prose { font-size: 1rem; }
  .prose h2 { margin-top: 40px; }
  .prose blockquote { padding: 20px; }
  .prose th, .prose td { padding: 12px; min-width: 132px; }
  .aside-card { display: block; padding: 28px; }
  .aside-card h2 br { display: none; }
  .aside-card .button { max-width: none; }
  .faq summary { font-size: 1rem; }
  .article-card-body { padding: 24px; }
  .article-body { padding-bottom: 56px; }
  .article-actions { align-items: stretch; flex-direction: column; gap: 16px; }
  .contact-grid { gap: 40px; }
  .contact-channel { grid-template-columns: 65px 1fr 20px; gap: 10px; }
  .contact-channel .mono { grid-column: auto; }
  .contact-channel strong { font-size: .88rem; }
  .form-card { padding: 28px 20px; }
  .risk-tool { padding: 24px; }
  .field-pair { grid-template-columns: 1fr; }
  .empty-state { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
@media print {
  body { color: #000; background: #fff; }
  .site-header, .site-footer, .aside-card, .article-actions, .button, .risk-tool { display: none !important; }
  h1, h2, h3, p, .prose p, .prose li { color: #000; }
  .container { width: 100%; }
  .content-layout { display: block; }
  .page-hero { padding: 20px 0; }
}

/* EN Summary Block for GEO bilingual citation */
.en-summary {
  border-left: 3px solid #c8a24a;
  padding: 1rem;
  margin: 2rem 0;
  background: #f9f9f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.en-summary h2 {
  font-size: 1.1rem;
  margin-top: 0;
  color: #333;
}


/* ===================== XM Banner - Professional Ad Placement v5 ===================== */
.xm-banner {
  text-align: center;
  margin: 12px auto;
  padding: 10px 16px;
  box-sizing: border-box;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(200, 162, 74, 0.18);
  border-radius: 8px;
}
.xm-banner a {
  display: block;
  line-height: 0;
}
.xm-banner img {
  display: block;
  margin: 0 auto;
  border-radius: 4px;
  height: auto;
}
.xm-banner.xm-leaderboard {
  width: 632px;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
}
.xm-banner.xm-leaderboard img {
  width: 100%;
  max-width: 600px;
  height: auto;
}
.xm-banner.xm-super-leaderboard {
  width: 632px;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
}
.xm-banner.xm-super-leaderboard img {
  width: 100%;
  max-width: 600px;
  height: auto;
}
.xm-banner.xm-header {
  margin-top: 16px;
}
@media (max-width: 767px) {
  .xm-banner.xm-header {
    margin-top: 8px;
  }
}
.xm-banner.xm-mobile {
  width: 342px;
  max-width: calc(100vw - 32px);
  padding: 8px 10px;
}
.xm-banner.xm-mobile img {
  width: 100%;
  max-width: 320px;
  height: auto;
}
.xm-banner.xm-mobile-large {
  width: 342px;
  max-width: calc(100vw - 32px);
  padding: 8px 10px;
}
.xm-banner.xm-mobile-large img {
  width: 100%;
  max-width: 320px;
  height: auto;
}
.xm-banner.xm-rectangle {
  max-width: 320px;
  padding: 10px 0;
}
.xm-banner.xm-rectangle img {
  max-width: 300px;
  max-height: 250px;
  object-fit: contain;
}
@media (max-width: 767px) {
  .xm-banner.xm-leaderboard,
  .xm-banner.xm-super-leaderboard,
  .xm-banner.xm-large-leaderboard,
  .xm-banner.xm-skyscraper,
  .xm-banner.xm-skyscraper-narrow,
  .xm-banner.xm-halfpage,
  .xm-banner.xm-billboard,
  .xm-banner.xm-full-banner {
    display: none;
  }
}
@media (min-width: 768px) {
  .xm-banner.xm-mobile,
  .xm-banner.xm-mobile-large {
    display: none;
  }
}
/* ===================== END XM Banner v5 ===================== */
