/* STEG Group · STEG Asia Pacific Investment Co., Limited */
@font-face { font-family: "Sora"; src: url("fonts/sora.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url("fonts/redhat-text.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --paper: #F5F7FA;
  --paper-2: #E6EBF1;
  --ink: #141C26;
  --graphite: #364352;
  --muted: #5F6B7A;
  --line: #D3DBE5;
  --dark: #1D2B3A;
  --dark-2: #263749;
  --on-dark: #F2F5F9;
  --on-dark-muted: #AEBBCB;
  --orange: #C84A36;      /* STEG wordmark red */
  --orange-text: #A53A28; /* red for text on light paper (contrast) */
  --amber: #F08C76;       /* light red for dark backgrounds */
  --green: #5C7A99;       /* muted sage, secondary */
  --serif: "Sora", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "Red Hat Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
}
html[lang="zh-Hans"] { --serif: "Sora", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; --sans: "Red Hat Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 20; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(245,247,250,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding-block: 12px; }
.brand { flex: 0 0 auto; }
.brand img { height: 40px; width: auto; max-width: none; }
@media (max-width: 600px) { .brand img { height: 32px; } }
.nav { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; order: 3; flex-basis: 100%; }
.nav::-webkit-scrollbar { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; white-space: nowrap; }
.nav a { display: block; padding: 8px 10px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--graphite); border-radius: 3px; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.nav a.cta { background: var(--dark); color: var(--on-dark); }
.nav a.cta:hover { background: var(--orange); }
.lang { margin-left: auto; display: flex; gap: 4px; font-size: 13px; font-weight: 600; flex: 0 0 auto; white-space: nowrap; }
.lang a { padding: 5px 9px; border-radius: 3px; text-decoration: none; color: var(--muted); }
.lang a[aria-current="true"] { background: var(--dark); color: var(--on-dark); }
@media (min-width: 99999px) { .site-header .wrap { flex-wrap: nowrap; } .nav { order: 2; flex: 1 1 auto; overflow: visible; } .nav ul { justify-content: flex-end; } .lang { order: 3; margin-left: 0; } }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; text-wrap: balance; letter-spacing: -0.025em; }
h1 { font-size: clamp(36px, 4.8vw, 60px); line-height: 1.08; }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; }
h3 { font-size: 22px; line-height: 1.25; }
html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2, html[lang="zh-Hans"] h3 { letter-spacing: 0; line-height: 1.3; }
.eyebrow { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-text); }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--graphite); max-width: 62ch; }
.muted { color: var(--muted); }
.measure { max-width: 68ch; }

/* Bands */
.band { padding-block: clamp(64px, 9vw, 112px); }
.band-alt { background: var(--paper-2); }
.band-dark { background: var(--dark); color: var(--on-dark); }
.band-dark .eyebrow { color: var(--amber); }
.band-dark .lede, .band-dark .muted { color: var(--on-dark-muted); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-lg { display: flex; flex-direction: column; gap: 44px; }
.stack-lg > *, .stack > * { min-width: 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }

/* Hero */
.hero { padding-block: clamp(72px, 11vw, 140px); background: var(--dark); color: var(--on-dark); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -140px; top: -140px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(200,74,54,.26), rgba(200,74,54,.08) 45%, transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--amber); }
.hero .lede { color: var(--on-dark-muted); margin-top: 22px; }
.hero h1 { max-width: 21ch; margin-top: 18px; }
html[lang="zh-Hans"] .hero h1 { max-width: 20ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { display: inline-block; padding: 14px 22px; font-weight: 600; font-size: 15.5px; text-decoration: none; border-radius: 3px; border: 1px solid transparent; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #A93C2A; }
.btn-ghost { border-color: rgba(242,245,249,.4); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark); }
.page-hero { padding-block: clamp(64px, 9vw, 110px); }
.page-hero h1 { max-width: 22ch; font-size: clamp(34px, 4.6vw, 54px); }

/* Grids & cards */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; gap: 12px; padding: 26px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--orange); min-width: 0; }
.card.amber { border-top-color: var(--amber); }
.card.green { border-top-color: var(--green); }
.card.dark { border-top-color: var(--dark); }
.card p { color: var(--graphite); font-size: 16px; }
.card .num { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--orange-text); }
a.card { text-decoration: none; transition: transform .15s ease; }
a.card:hover { transform: translateY(-2px); }
.band-dark .card { background: var(--dark-2); border-color: #343A40; }
.band-dark .card p { color: var(--on-dark-muted); }

.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .66em; width: 14px; height: 2px; background: var(--orange); }
.ticks.no li::before { background: var(--muted); }
.band-dark .ticks li::before { background: var(--amber); }

/* Decision row */
.decisions { display: flex; flex-wrap: wrap; gap: 10px; }
.decisions span { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .04em; padding: 10px 14px; border: 1px solid var(--line); background: #fff; }
.decisions span:nth-child(1) { border-color: var(--green); }
.decisions span:nth-child(5) { color: var(--muted); }
.band-dark .decisions span { background: transparent; border-color: #4A5057; color: var(--on-dark); }

/* Architecture strip */
.arch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 600; font-size: 13.5px; letter-spacing: .04em; }
.arch span { padding: 12px 16px; background: #fff; border: 1px solid var(--line); }
.arch i { font-style: normal; color: var(--orange); font-size: 18px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); border-top: 2px solid var(--ink); }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } .steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: s; padding: 22px 22px 24px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--orange-text); }
.steps h3 { font-size: 19px; }
.steps p { color: var(--muted); font-size: 15.5px; }

/* Table */
.table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.table th, .table td { text-align: left; padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 600; width: 34%; }
.table thead th { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* Facts */
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); margin: 0; border-top: 1px solid var(--line); font-size: 16px; }
.facts dt, .facts dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-right: 24px; padding-top: 14px; }

/* Note */
.note { border-left: 3px solid var(--amber); padding: 4px 0 4px 18px; color: var(--graphite); max-width: 72ch; }

/* CTA */
.cta-band { background: var(--paper); border-top: 1px solid var(--line); }
.cta-band .wrap { display: grid; gap: 28px; align-items: end; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .cta-band { background: var(--paper); border-top: 1px solid var(--line); }
.cta-band .wrap { grid-template-columns: minmax(0, 1fr) auto; } }

/* Form */
.form { display: grid; gap: 18px; max-width: 720px; }
.form .row { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form .row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; font-weight: 600; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid #C9C3B6; background: #fff; border-radius: 3px; color: var(--ink); width: 100%; }
.form textarea { min-height: 160px; resize: vertical; }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14.5px; color: var(--graphite); }
.form .check input { width: auto; margin-top: 4px; }
.form .hp { position: absolute; left: -9999px; }
.form button { justify-self: start; border: 0; cursor: pointer; font: inherit; }
.status { padding: 14px 18px; border-left: 3px solid var(--green); background: #fff; display: none; }
.status.err { border-left-color: var(--orange); }
.status.show { display: block; }

/* Legal */
.legal-text { max-width: 76ch; display: flex; flex-direction: column; gap: 16px; }
.legal-text h2 { font-size: 24px; margin-top: 18px; }

/* Footer */
.site-footer { background: var(--dark); color: var(--on-dark-muted); padding-block: 64px 28px; font-size: 15px; }
.site-footer .cols { display: grid; gap: 34px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer h4 { margin: 0 0 12px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); }
.site-footer .logo-wrap img { height: 34px; width: auto; }
.site-footer .legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid #343A40; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 13.5px; }

/* Asia – Europe bridge */
.bridge .grid-2 { align-items: center; }
.bridge-steps { display: flex; flex-direction: column; gap: 12px; }
.bridge-steps .step { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange); padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; }
.bridge-steps .step:nth-child(2) { margin-left: 28px; border-left-color: var(--dark); }
.bridge-steps .step:nth-child(3) { margin-left: 56px; border-left-color: var(--green); }
.bridge-steps .step b { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-text); }
.bridge-steps .step span { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.bridge-steps .step p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 700px) { .bridge-steps .step:nth-child(n) { margin-left: 0; } }
.split { display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.split > div { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: #fff; border: 1px solid var(--line); min-width: 0; }
.split > div:first-child { border-top: 3px solid var(--orange); }
.split > div:last-child { border-top: 3px solid var(--dark); }

/* Home hero with site photo */
.hero-photo { background-color: var(--dark); background-image: linear-gradient(90deg, rgba(29,43,58,.97) 0%, rgba(29,43,58,.90) 42%, rgba(29,43,58,.45) 75%, rgba(29,43,58,.25) 100%), url("img/hero-site.jpg"); background-size: cover; background-position: center right; }
.hero-photo::after { display: none; }
@media (max-width: 860px) { .hero-photo { background-image: linear-gradient(180deg, rgba(29,43,58,.80) 0%, rgba(29,43,58,.94) 55%), url("img/hero-site.jpg"); background-position: center; } }

/* Reference */
.ref { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .ref { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.ref img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 0% center; border-radius: 3px; }
@media (max-width: 899px) { .ref img { aspect-ratio: 4 / 3; } }

/* Video */
.video-frame { margin: 0; display: flex; flex-direction: column; gap: 10px; width: 100%; min-width: 0; }
.video-frame video { width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; background: var(--dark-2); border-radius: 3px; }
.video-frame figcaption { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.band-dark .video-frame figcaption { color: var(--on-dark-muted); }
@media (min-width: 1100px) { .nav { overflow: visible; } .nav ul { justify-content: space-between; } }

/* Insights */
.grid-2.align-start { align-items: start; }
.chart { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; background: #fff; border: 1px solid var(--line); padding: 18px; }
.chart figcaption { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.table td, .table th { font-size: 15px; }
.table thead th:first-child { width: auto; }
.data-note { margin-top: 40px; font-size: 13.5px; max-width: 80ch; }

.table th, .table thead th, .table th[scope="row"] { width: auto; }

.table { table-layout: fixed; }

@media (max-width: 760px){ .table-wide{ min-width: 680px; } }
.cool-fig { margin: 0; }
.cool-fig img { width: 100%; height: auto; border-radius: 4px; display: block; background: var(--dark); }

/* news */
.news-list { display: grid; gap: 28px; }
.news-item { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange); padding: 28px 30px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.news-item h2 { font-size: clamp(21px, 2.2vw, 27px); line-height: 1.25; }
.news-item p { max-width: 82ch; }
.news-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.news-tag { padding: 3px 10px; border: 1px solid currentColor; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.news-tag.t0 { color: var(--orange-text); } .news-tag.t1 { color: var(--green); } .news-tag.t2 { color: var(--dark); }
.news-why { background: var(--alt, #F5F7FA); padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.news-src { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.news-src a { color: var(--ink); }
.news-upd { font-family: var(--mono); font-size: 13px; }

/* reference sources */
.ref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px 36px; }
.ref-col h3 { font-size: 17px; margin-bottom: 10px; }
.ref-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ref-col a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
