/* Stonic Stone – site styles */

/* Fonts: self-hosted (no Google Fonts – blocked in mainland China).
   Variable woff2 files from Fontsource 5.3.0, SIL Open Font License 1.1. */
/* Manrope – latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* Manrope – latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* Inter – latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* Inter – latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --ink: #16242E;
  --ink-2: #1E3446;
  --text: #4A5A66;
  --muted: #5E6E7A;
  --bg: #F5F8FA;
  --white: #FFFFFF;
  --line: #D3E0E8;
  --line-soft: #E6EEF3;
  --input: #B4C8D6;
  --brand-light: #A1C3DA;   /* logo blue */
  --accent: #24506E;        /* darker logo blue, for buttons/links */
  --tile: #E4EDF3;
  --up: #1F7A4D;
  --down: #B5452F;
  --radius: 18px;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-head: Manrope, Inter, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-head); }

.container { max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.h2 { margin: 10px 0 0; font-weight: 800; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -.015em; }
section[id] { scroll-margin-top: 72px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 600; font-size: 16px; border-radius: 980px; padding: 15px 28px; cursor: pointer; border: none; font-family: inherit; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { color: #fff; filter: brightness(1.08); }
.btn-outline { border: 1.5px solid var(--accent); color: var(--accent); padding: 14px 28px; background: transparent; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; min-height: 48px; }
.logo img { height: clamp(28px, 4vw, 36px); width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a.active { color: var(--accent); font-weight: 600; }
.nav .nav-cta { background: var(--accent); color: #fff; padding: 11px 20px; border-radius: 980px; font-weight: 600; }
.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: none; background: transparent; padding: 0; cursor: pointer; color: var(--ink); }
.burger .icon-close { display: none; }
.menu-open .burger .icon-close { display: block; }
.menu-open .burger .icon-open { display: none; }
@media (max-width: 860px) {
  .burger { display: flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 4px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(22,36,46,.08); }
  .menu-open .nav { display: flex; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line-soft); font-size: 17px; }
  .nav .nav-cta { margin-top: 16px; padding: 15px 20px; text-align: center; border-bottom: none; }
}

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 56px); padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(48px, 7vw, 80px); }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 26px); }
.hero h1 { margin: 0; font-weight: 800; font-size: clamp(36px, 5.4vw, 64px); line-height: 1.06; letter-spacing: -.025em; }
.hero p { margin: 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--text); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-ctas .btn { flex: 1 1 auto; max-width: 260px; }
.hero-image { flex: 1 1 420px; min-width: 0; border-radius: var(--radius); overflow: hidden; background: #DCE8F0; box-shadow: 0 18px 40px rgba(22,36,46,.12); }
.hero-image img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
@media (max-width: 640px) {
  .hero-text, .hero-image { flex: 1 1 100%; width: 100%; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { max-width: none; width: 100%; }
}

/* Marbles */
.marbles { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(32px, 4vw, 48px); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: clamp(24px, 3vw, 36px); }
.section-head p { margin: 0; font-size: 15px; color: var(--text); max-width: 30em; line-height: 1.6; }
.marble-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: clamp(14px, 2vw, 20px); }
.marble-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.marble-cover { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: none; background: var(--tile); cursor: pointer; overflow: hidden; }
.marble-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.marble-cover:hover img { transform: scale(1.03); }
.photo-count { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); background: rgba(255,255,255,.92); padding: 6px 12px; border-radius: 980px; font-family: var(--font-body); }
.marble-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; }
.marble-body h3 { margin: 0; font-weight: 700; font-size: 19px; }
.marble-note { font-size: 14px; color: var(--text); }
.marble-link { padding: 8px 0; font-size: 15px; font-weight: 600; color: var(--accent); }

/* Figures band */
.figures { background: var(--brand-light); color: var(--ink); margin-top: clamp(24px, 4vw, 40px); }
.figures-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: clamp(24px, 3vw, 32px); padding-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(36px, 5vw, 56px); }
.figure { display: flex; flex-direction: column; gap: 6px; }
.figure strong { font-family: var(--font-head); font-weight: 800; font-size: clamp(36px, 4.4vw, 52px); line-height: 1.05; }
.figure span { font-size: 15px; font-weight: 500; color: var(--ink-2); }
@media (max-width: 640px) { .figure { align-items: center; text-align: center; } }

/* How we work */
.how { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(32px, 4vw, 48px); }
.how .h2 { margin-bottom: clamp(28px, 4vw, 44px); }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(14px, 2vw, 20px); }
.how-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 14px; }
.how-card .step { font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--accent); }
.how-card h3 { margin: 0; font-weight: 700; font-size: clamp(19px, 1.8vw, 22px); line-height: 1.3; }
.how-card p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text); }

/* Order steps */
.order { padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(32px, 4vw, 48px); }
.order .h2 { margin-bottom: clamp(28px, 4vw, 40px); }
.order ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: clamp(22px, 3vw, 32px); }
.order li { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--brand-light); padding-top: 18px; }
.order .step { font-family: var(--font-head); font-weight: 800; font-size: 14px; color: var(--accent); }
.order h3 { margin: 0; font-weight: 700; font-size: 20px; }
.order p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text); }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 56px); align-items: flex-start; padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(64px, 9vw, 104px); }
.contact-info { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact-item { display: flex; flex-direction: column; gap: 2px; max-width: 328px; }
.contact-item .label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-item .value, .contact-item a { font-size: 17px; font-weight: 400; line-height: 1.6; color: var(--text); text-decoration: none; }
.contact-form { flex: 1 1 480px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3.5vw, 36px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 18px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea { font-family: inherit; font-size: 16px; font-weight: 400; padding: 12px 14px; border: 1px solid var(--input); border-radius: 10px; width: 100%; color: var(--ink); background: #fff; }
.contact-form textarea { resize: vertical; }
.contact-form button { grid-column: 1 / -1; min-height: 50px; }
.form-status { grid-column: 1 / -1; margin: 0; font-size: 15px; }
.form-status:empty { display: none; }
.form-status.ok { color: #1E6B45; }
.form-status.error { color: #A33A2B; }
.contact-form button[disabled] { opacity: .65; cursor: wait; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--ink); color: #C3D3DF; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; font-size: 14px; line-height: 1.6; padding-top: 36px; padding-bottom: 36px; }
.footer-inner img { height: 30px; width: auto; }
.footer-legal { text-align: center; }
@media (max-width: 640px) { .footer-inner { flex-direction: column; justify-content: center; text-align: center; } }

/* Gallery (lightbox) */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,18,24,.95); display: none; flex-direction: column; color: #fff; }
.lightbox.open { display: flex; }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 20px; }
.lb-title { font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.lb-counter { font-size: 14px; color: #A9BCCB; margin-left: 10px; }
.lb-btn { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: none; border-radius: 980px; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; }
.lb-stage { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 clamp(8px, 6vw, 72px); }
.lb-stage img { width: 100%; height: 100%; object-fit: contain; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lb-prev { left: clamp(6px, 1.5vw, 16px); }
.lb-next { right: clamp(6px, 1.5vw, 16px); }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px 20px; justify-content: safe center; }
.lb-thumbs button { flex: none; width: 68px; height: 50px; padding: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; border: 2px solid transparent; opacity: .55; }
.lb-thumbs button.current { border-color: #fff; opacity: 1; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Insights list */
.page-intro { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(24px, 3vw, 40px); }
.page-intro h1 { margin: 10px 0 14px; font-weight: 800; font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -.025em; }
.page-intro p { margin: 0; max-width: 40em; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--text); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 20px; padding-top: 8px; padding-bottom: clamp(64px, 9vw, 104px); }
.post-card { text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.post-card h2 { margin: 0; font-weight: 800; font-size: 22px; line-height: 1.25; }
.post-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text); }
.post-card .more { margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--accent); }
.post-soon { border: 1.5px dashed var(--input); border-radius: var(--radius); min-height: 260px; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: var(--muted); font-size: 15px; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.tag { font-weight: 600; color: var(--accent); background: var(--tile); padding: 4px 10px; border-radius: 980px; }

/* Article */
.article { padding-top: clamp(36px, 6vw, 72px); }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; padding: 8px 0; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.article h1 { margin: 16px 0 18px; font-weight: 800; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -.025em; }
.lede { margin: 0; font-size: clamp(18px, 1.7vw, 20px); line-height: 1.6; color: var(--text); }
.article-hero { max-width: 1040px; margin: clamp(28px, 4vw, 44px) auto 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px rgba(22,36,46,.12); }
.article-hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.article-body { padding-top: clamp(32px, 5vw, 56px); }
.article-body h2 { margin: 0 0 10px; font-weight: 800; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.2; letter-spacing: -.01em; }
.article-body > p { margin: 0 0 18px; font-size: 17px; line-height: 1.7; color: #3E4D58; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px; margin-bottom: 40px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.kpi.brand { background: var(--brand-light); border-color: var(--brand-light); }
.kpi strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 36px; line-height: 1.05; }
.kpi strong.up { color: var(--up); }
.kpi span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--text); }
.kpi.brand span { color: var(--ink-2); }
.chart { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); margin: 8px 0 36px; }
.chart figcaption { margin: 0 0 18px; font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.chart .note { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.bar { height: 12px; border-radius: 6px; }
.bar-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bar-row span { font-size: 12px; white-space: nowrap; }
.prod { margin-bottom: 18px; }
.prod-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.prod .bar-row + .bar-row { margin-top: 4px; }
.mkt { display: grid; grid-template-columns: minmax(84px, 120px) minmax(0, 1fr) 58px; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 12px; }
.mkt .bar { height: 18px; flex: none; }
.mkt .chg { text-align: right; font-weight: 600; }
.movers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 28px; }
.movers h4 { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.mov { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 10px; font-size: 14px; margin-bottom: 10px; }
.mov .bar { height: 14px; flex: none; }
.up { color: var(--up); }
.down { color: var(--down); }
.takeaways { margin: 0 0 40px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.takeaways li { display: flex; gap: 14px; font-size: 17px; line-height: 1.6; color: #3E4D58; }
.takeaways .num { flex: none; width: 28px; height: 28px; border-radius: 980px; background: var(--tile); color: var(--accent); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.takeaways strong { color: var(--ink); }
.cta-box { background: var(--ink); color: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.cta-box div { flex: 1 1 320px; min-width: 0; }
.cta-box strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 22px; line-height: 1.25; margin-bottom: 6px; }
.cta-box span { font-size: 15px; line-height: 1.6; color: #C3D3DF; }
.cta-box a { flex: none; text-decoration: none; background: var(--brand-light); color: var(--ink); padding: 14px 26px; border-radius: 980px; font-weight: 700; font-size: 16px; }
.source { margin: 0 0 clamp(64px, 9vw, 104px); font-size: 13px; line-height: 1.6; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .marble-cover img { transition: none; } }
