/* ============================================================
   智土 SmartSoil — Team Portal · v3
   Editorial paper style · warm ink & soil-gold · serif display
   （参考编辑志式版式：暖纸底 / 衬线大标题 / 等宽 meta 标签 / 金色点缀）
   ============================================================ */

:root {
    /* 字体 */
    --display: "Playfair Display", "Noto Serif SC", "Songti SC", "SimSun", serif;
    --sans: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    --mono: "Geist Mono", "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

    /* 纸与墨 */
    --bg: #fafaf8;
    --bg-alt: #f5f4f0;
    --surface: #ffffff;
    --ink: #1a1a1a;
    --ink-soft: #555555;
    --muted: #757575;
    --border: #e8e6e1;
    --border-light: #f0eee9;

    /* 土金三阶 */
    --gold: #b8894e;
    --gold-deep: #8b7140;
    --gold-soft: #bc9b6a;
    --gold-faint: rgba(184, 137, 78, 0.12);
    --gold-ring: rgba(212, 165, 116, 0.3);

    /* 阴影与节奏 */
    --shadow: 0 2px 12px rgba(139, 126, 112, 0.08);
    --shadow-lift: 0 6px 28px rgba(139, 126, 112, 0.16);
    --radius: 16px;
    --header-h: 76px;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="dark"] {
    --bg: #131110;
    --bg-alt: #181512;
    --surface: #1e1a16;
    --ink: #ede8df;
    --ink-soft: #c2bbae;
    --muted: #968f82;
    --border: #35302a;
    --border-light: #28241f;

    --gold: #d4a574;
    --gold-deep: #bc9b6a;
    --gold-soft: #d4a574;
    --gold-faint: rgba(212, 165, 116, 0.12);
    --gold-ring: rgba(212, 165, 116, 0.28);

    --shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink);
    background: var(--bg);
    transition: background 0.45s var(--ease), color 0.45s var(--ease);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

::selection {
    background: var(--gold-soft);
    color: #ffffff;
}

[data-theme="dark"] ::selection {
    color: #131110;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

html {
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--muted) 45%, transparent) transparent;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--muted) 38%, transparent);
    border-radius: 99px;
    border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

.mono {
    font-family: var(--mono);
}

.wrap {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

/* ============================================================
   Header
   ============================================================ */

#siteHeader {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-h);
    transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
    border-bottom: 1px solid transparent;
}

#siteHeader.scrolled {
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--border-light);
}

.h-in {
    width: min(1280px, calc(100% - 48px));
    height: 100%;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-img {
    width: 34px;
    height: 34px;
}

.brand-img img {
    width: 100%;
    height: 100%;
}

.brand-txt {
    font-family: var(--display);
    font-weight: 700;
    font-size: 21px;
    letter-spacing: 0.06em;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.brand-txt em {
    font-family: var(--mono);
    font-style: normal;
    font-weight: 400;
    font-size: 10.5px;
    letter-spacing: 0.3em;
    color: var(--muted);
}

.nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    letter-spacing: 0.1em;
}

.nav a {
    position: relative;
    padding: 9px 13px;
    color: var(--ink-soft);
    transition: color 0.25s var(--ease);
}

.nav a::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 4px;
    height: 1.5px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.nav a:hover {
    color: var(--ink);
}

.nav a.active {
    color: var(--gold-deep);
    font-weight: 500;
}

.nav a.active::after {
    transform: scaleX(1);
}

.theme-toggle {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    color: var(--ink-soft);
    transition: color 0.25s, border-color 0.25s, transform 0.3s var(--ease);
}

.theme-toggle:hover {
    color: var(--gold-deep);
    border-color: var(--gold);
    transform: rotate(18deg);
}

.theme-toggle svg {
    width: 17px;
    height: 17px;
}

[data-theme="light"] .theme-toggle .i-sun,
[data-theme="dark"] .theme-toggle .i-moon {
    display: none;
}

#burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

#burger span {
    display: block;
    height: 1.8px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s;
}

#burger[aria-expanded="true"] span:first-child {
    transform: translateY(3.9px) rotate(45deg);
}

#burger[aria-expanded="true"] span:last-child {
    transform: translateY(-3.9px) rotate(-45deg);
}

/* ---- Mobile menu ---- */

#mobileMenu {
    position: fixed;
    inset: 0;
    z-index: 90;
    padding: calc(var(--header-h) + 32px) 32px 40px;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s 0.35s;
}

#mobileMenu.open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}

#mobileMenu nav {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-light);
}

#mobileMenu nav a {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 18px 4px;
    font-family: var(--display);
    font-size: 26px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-light);
    transition: padding-left 0.3s var(--ease), color 0.3s;
}

#mobileMenu nav a:hover {
    padding-left: 12px;
    color: var(--gold-deep);
}

#mobileMenu nav a i {
    font-style: normal;
    font-size: 12px;
    color: var(--gold);
    letter-spacing: 0.1em;
}

.mm-foot {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.06em;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    padding-top: var(--header-h);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* ---- hero 代码流沙字符场（参照 openai.com/codex 背景语言） ----
   微光字符错相明灭；鼠标掠过处点亮流动。
   上下双向遮罩渐隐：避开页头，向下退场给 3D 沙盘让位。 */

.hero-code {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 120px, #000 52%, transparent 86%);
    mask-image: linear-gradient(180deg, transparent 0, #000 120px, #000 52%, transparent 86%);
    opacity: 0.9;
}

[data-theme="dark"] .hero-code {
    opacity: 0.82;
}

/* ---- hero 3D 土壤剖面（three.js） ---- */

.hero-soil {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    /* 上限随大屏抬高：窗口越高条带越高，3D 场景随之放大
       （模型屏幕尺寸只随条带高度走，钉死 380px 时大窗口不放大） */
    height: min(44vh, 560px);
    pointer-events: none;
}

.hero-soil .soil-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.hero-in {
    position: relative;
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(40px, 6vw, 96px);
    padding: clamp(48px, 7vh, 84px) 0 clamp(56px, 8vh, 96px);
}

.hero-copy {
    max-width: 760px;
}

.hero-kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 8px;
    column-gap: 14px;
    font-size: 11.5px;
    letter-spacing: 0.28em;
    color: var(--muted);
    margin-bottom: clamp(28px, 4vh, 44px);
}

.hero-kicker .sep {
    color: var(--gold);
}

.hero-title {
    display: flex;
    flex-direction: column;
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.015em;
}

.hero-title .zh {
    font-size: clamp(88px, 13vw, 168px);
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.08;
}

.hero-title .latin {
    font-style: italic;
    font-weight: 400;
    font-size: clamp(38px, 5.4vw, 68px);
    color: var(--gold-soft);
    letter-spacing: 0;
    margin-top: 6px;
}

.hero-roles {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: clamp(26px, 3.4vh, 36px);
    font-size: 12.5px;
    letter-spacing: 0.14em;
    color: var(--muted);
}

.hero-roles b {
    font-weight: 500;
    color: var(--ink);
    letter-spacing: 0.2em;
}

.hero-tagline {
    margin-top: clamp(22px, 3vh, 32px);
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(20px, 2.3vw, 27px);
    letter-spacing: 0.02em;
    line-height: 1.6;
}

.hero-tagline em,
.sec-title em,
.contact-title em,
.epi-quote em {
    font-style: italic;
    color: var(--gold-soft);
}

.hero-desc {
    max-width: 640px;
    margin-top: 18px;
    font-size: clamp(14.5px, 1.3vw, 16px);
    line-height: 1.9;
    color: var(--ink-soft);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: clamp(30px, 4.4vh, 44px);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.12em;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}

.btn-solid {
    background: var(--ink);
    color: var(--bg);
    box-shadow: var(--shadow);
}

.btn-solid:hover {
    background: var(--gold-deep);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
}

[data-theme="dark"] .btn-solid:hover {
    color: #131110;
}

.btn-ghost {
    border: 1px solid var(--border);
    color: var(--ink);
    background: color-mix(in srgb, var(--surface) 55%, transparent);
}

.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold-deep);
    transform: translateY(-2px);
}

/* ---- hero side logo ---- */

.hero-card {
    justify-self: end;
    width: min(280px, 100%);
}

.hero-card img {
    width: 100%;
}

/* ============================================================
   Sections — shared
   ============================================================ */

.section {
    position: relative;
    padding: clamp(96px, 12vw, 150px) 0;
}

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.sec-head {
    margin-bottom: clamp(48px, 6vw, 72px);
}

.sec-label {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 11.5px;
    letter-spacing: 0.26em;
    color: var(--muted);
    margin-bottom: 22px;
}

.sec-label b {
    font-weight: 400;
    color: var(--gold);
    letter-spacing: 0.3em;
}

.sec-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.18;
    letter-spacing: -0.01em;
}

.sec-note {
    margin-top: 20px;
    font-size: 11.5px;
    letter-spacing: 0.18em;
    color: var(--muted);
}

/* ============================================================
   Metrics
   ============================================================ */

.metrics {
    padding-top: clamp(72px, 9vw, 110px);
}

.metrics .sec-head {
    margin-bottom: clamp(36px, 4.5vw, 56px);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.metric-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 30px 30px 28px;
    box-shadow: var(--shadow);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.metric-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
    border-color: var(--gold-ring);
}

.mc-idx {
    font-size: 10.5px;
    letter-spacing: 0.26em;
    color: var(--gold);
    margin-bottom: 26px;
}

.mc-num {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(52px, 5.6vw, 76px);
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.mc-num i {
    font-style: italic;
    font-size: 0.5em;
    color: var(--gold-soft);
    margin-left: 3px;
}

.mc-cap {
    margin-top: 14px;
    font-size: 13.5px;
    letter-spacing: 0.08em;
    color: var(--muted);
}

/* ============================================================
   About
   ============================================================ */

.about-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: clamp(40px, 6vw, 88px);
    align-items: start;
}

.about-copy p {
    color: var(--ink-soft);
    font-size: clamp(15px, 1.35vw, 16.5px);
    line-height: 2;
}

.about-copy p + p {
    margin-top: 1.4em;
}

.about-copy strong {
    color: var(--gold-deep);
    font-weight: 600;
}

.about-facts {
    list-style: none;
}

.about-facts li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 2px;
    border-top: 1px solid var(--border);
    transition: padding-left 0.3s var(--ease);
}

.about-facts li:last-child {
    border-bottom: 1px solid var(--border);
}

.about-facts li:hover {
    padding-left: 12px;
}

.about-facts span {
    font-size: 10px;
    letter-spacing: 0.28em;
    color: var(--gold);
}

.about-facts b {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 14.5px;
    letter-spacing: 0.04em;
    color: var(--ink);
}

/* ============================================================
   Capabilities
   ============================================================ */

.cap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cap-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 32px 28px 30px;
    box-shadow: var(--shadow);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.cap-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
    border-color: var(--gold-ring);
}

.cap-idx {
    display: block;
    font-size: 10.5px;
    letter-spacing: 0.26em;
    color: var(--gold);
    margin-bottom: 40px;
}

.cap-card h3 {
    font-family: var(--display);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.cap-card p {
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--ink-soft);
}

/* ============================================================
   Epigraph
   ============================================================ */

.epigraph {
    background: var(--bg-alt);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: clamp(72px, 9vw, 120px) 0;
    text-align: center;
}

.epi-in {
    max-width: 860px;
}

.epi-quote {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(26px, 3.6vw, 42px);
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.epi-cite {
    margin-top: 26px;
    font-size: 11px;
    letter-spacing: 0.26em;
    color: var(--muted);
}

/* ============================================================
   Products — editorial list
   ============================================================ */

.prod-list {
    border-top: 1px solid var(--border);
}

.prod-more {
    display: flex;
    justify-content: flex-end;
    padding-top: clamp(36px, 5vw, 56px);
}

.prod-row {
    display: grid;
    grid-template-columns: 84px minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(20px, 3vw, 48px);
    padding: clamp(28px, 3.4vw, 40px) clamp(8px, 1.2vw, 16px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s var(--ease);
}

.prod-row:hover {
    background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.pr-idx {
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--muted);
    padding-top: 10px;
    transition: color 0.3s;
}

.prod-row:hover .pr-idx {
    color: var(--gold);
}

.pr-name {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(24px, 2.8vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.005em;
    transition: color 0.3s;
}

.prod-row:hover .pr-name {
    color: var(--gold-deep);
}

.pr-cn {
    display: block;
    font-style: normal;
    font-family: var(--sans);
    font-weight: 500;
    font-size: clamp(13px, 1.2vw, 14.5px);
    color: var(--muted);
    margin-top: 8px;
    letter-spacing: 0.06em;
}

.pr-desc {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.9;
    color: var(--ink-soft);
    max-width: 560px;
}

.pr-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 8px;
}

.pr-tag {
    font-size: 10.5px;
    letter-spacing: 0.16em;
    color: var(--gold-deep);
    background: var(--gold-faint);
    border-radius: 999px;
    padding: 5px 13px;
}

.pr-stack {
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--muted);
    line-height: 1.8;
}

.prod-incubating .pr-name {
    color: var(--muted);
    font-style: italic;
}

.prod-incubating:hover .pr-name {
    color: var(--gold-soft);
}

.prod-incubating .pr-tag {
    background: transparent;
    border: 1px dashed var(--border);
    color: var(--muted);
}

/* ============================================================
   Contact
   ============================================================ */

.contact-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(44px, 6.4vw, 84px);
    line-height: 1.14;
    letter-spacing: -0.015em;
}

.contact-note {
    max-width: 560px;
    margin-top: 28px;
    font-size: 15px;
    line-height: 2;
    color: var(--ink-soft);
}

.contact-mail {
    display: inline-flex;
    align-items: baseline;
    gap: 18px;
    margin-top: clamp(36px, 5vw, 56px);
    padding-bottom: 10px;
    border-bottom: 1.5px solid var(--border);
    transition: border-color 0.3s var(--ease);
}

.cm-label {
    font-size: 10.5px;
    letter-spacing: 0.3em;
    color: var(--gold);
}

.cm-val {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(22px, 3vw, 34px);
    letter-spacing: 0.01em;
}

.cm-arrow {
    font-family: var(--mono);
    font-size: clamp(18px, 2.2vw, 26px);
    color: var(--muted);
    transition: transform 0.3s var(--ease), color 0.3s;
}

.contact-mail:hover {
    border-bottom-color: var(--gold);
}

.contact-mail:hover .cm-val {
    color: var(--gold-deep);
}

.contact-mail:hover .cm-arrow {
    transform: translateX(6px);
    color: var(--gold);
}

.contact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 64px;
    margin-top: clamp(36px, 5vw, 52px);
}

.contact-meta div {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.contact-meta span {
    font-size: 10px;
    letter-spacing: 0.28em;
    color: var(--gold);
}

.contact-meta b {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 13.5px;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
}

/* ============================================================
   Footer
   ============================================================ */

#siteFooter {
    border-top: 1px solid var(--border-light);
    padding: 44px 0 40px;
    background: var(--bg-alt);
}

.f-in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
}

.f-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 18px;
}

.f-brand img {
    border-radius: 8px;
}

.f-brand em {
    font-family: var(--mono);
    font-style: normal;
    font-weight: 400;
    font-size: 10px;
    letter-spacing: 0.26em;
    color: var(--muted);
}

.f-note {
    font-size: 13.5px;
    color: var(--ink-soft);
    letter-spacing: 0.08em;
}

.f-copy {
    margin-left: auto;
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--muted);
}

.f-copy a:hover {
    text-decoration: underline;
}

/* ============================================================
   Reveal on scroll
   ============================================================ */

[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--rd, 0s);
}

[data-reveal].revealed {
    opacity: 1;
    transform: none;
}

/* stagger inside grids */
.cap-grid [data-reveal]:nth-child(2),
.metrics-grid [data-reveal]:nth-child(2) {
    --rd: 0.08s;
}

.cap-grid [data-reveal]:nth-child(3),
.metrics-grid [data-reveal]:nth-child(3) {
    --rd: 0.16s;
}

.cap-grid [data-reveal]:nth-child(4) {
    --rd: 0.24s;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1080px) {

    .cap-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .metrics-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .about-facts {
        max-width: 560px;
    }

    .hero-card {
        display: none;
    }

    .hero-in {
        grid-template-columns: 1fr;
    }

    .prod-row {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 8px 20px;
    }

    .pr-meta {
        grid-column: 2;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        padding-top: 2px;
    }

    .pr-idx {
        padding-top: 8px;
    }
}

@media (max-width: 900px) {

    .nav {
        display: none;
    }

    #burger {
        display: flex;
        margin-left: auto;
    }

    .theme-toggle {
        order: 2;
    }

    .hero-title .zh {
        font-size: clamp(80px, 19vw, 128px);
    }

    .hero-title .latin {
        font-size: clamp(32px, 7vw, 52px);
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .metric-card {
        flex-direction: row;
        align-items: baseline;
        gap: 22px;
        padding: 24px 26px;
    }

    .mc-idx {
        margin-bottom: 0;
        min-width: 76px;
    }

    .mc-cap {
        margin-top: 0;
        margin-left: auto;
        text-align: right;
    }
}

@media (max-width: 640px) {

    .wrap,
    .h-in {
        width: calc(100% - 40px);
    }

    .cap-grid {
        grid-template-columns: 1fr;
    }


    .prod-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding-inline: 4px;
    }

    .pr-meta {
        grid-column: 1;
    }

    .pr-idx {
        padding-top: 0;
    }

    .hero-in {
        padding: 48px 0 64px;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-mail {
        flex-wrap: wrap;
        gap: 10px 16px;
    }

    .f-copy {
        margin-left: 0;
    }
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
