/* HECOBASE — site styles
   Layout: a full-screen dark opening with the growth-ring field and a four-part carousel,
   then light content sections built from bold statements, generative image cards and
   hairline lists, closing with the red seal and a dark footer. One look by design. */

:root {
  color-scheme: light;
  /* Light content */
  --paper: #FAFAF8;
  --paper-2: #F0EFEB;
  --ink: #111318;
  --ink-2: #4B5059;
  --rule: #DAD8D2;
  /* Dark opening, art panels and footer */
  --night: #0D0F14;
  --night-2: #171A21;
  --moon: #EDEBE6;
  --moon-2: #A7ABB3;
  /* Brand */
  --seal: #B3141E;
  --seal-bright: #E2343E;

  --sans: "Archivo", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --head-zh: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; /* self-hosted at 700 only: headings */
  --serif-zh: "Noto Serif SC", "Songti SC", "STSong", serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1520px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body { scroll-padding-top: var(--header-h); } /* when the page is shown inside a frame that scrolls the body */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--seal-bright); outline-offset: 4px; border-radius: 2px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--moon);
  transition: background-color .35s ease, color .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px 40px; }
.site-header.solid {
  color: var(--ink);
  background: rgba(250, 250, 248, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
          backdrop-filter: saturate(1.4) blur(12px);
  border-bottom-color: var(--rule);
}
.mark { display: inline-flex; align-items: center; gap: 12px; }
.mark-seal { width: 14px; height: 14px; background: var(--seal); flex: none; }
.mark-en { font-weight: 700; font-size: 17px; letter-spacing: 0.3em; }
.mark-zh { font-family: var(--serif-zh); font-weight: 600; font-size: 14px; letter-spacing: 0.24em; opacity: .75; }
.nav { display: flex; align-items: center; gap: 8px 32px; font-size: 15px; font-weight: 500; }
.nav .sections { display: flex; gap: 8px 28px; }
.nav .sections a { opacity: .78; transition: opacity .2s ease; }
.nav .sections a:hover { opacity: 1; }
.lang { display: inline-flex; align-items: center; gap: 8px; padding-left: 26px; border-left: 1px solid currentColor; border-left-color: color-mix(in srgb, currentColor 30%, transparent); }
.lang a { opacity: .6; }
.lang [aria-current="true"] { opacity: 1; font-weight: 700; }
@media (max-width: 900px) {
  .nav .sections { display: none; }
  .lang { border-left: 0; padding-left: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(620px, 100svh);
  background: var(--night);
  color: var(--moon);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(13,15,20,.92) 0%, rgba(13,15,20,.55) 38%, rgba(13,15,20,0) 64%),
    linear-gradient(0deg, rgba(13,15,20,.85) 0%, rgba(13,15,20,0) 34%),
    linear-gradient(180deg, rgba(13,15,20,.8) 0%, rgba(13,15,20,0) 14%);
}
@media (max-width: 760px) {
  .hero::before { background: linear-gradient(0deg, rgba(13,15,20,.96) 0%, rgba(13,15,20,.75) 46%, rgba(13,15,20,.1) 78%); }
}

.slides { display: grid; padding-top: calc(var(--header-h) + 80px); }
.slide { grid-area: 1 / 1; transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1), visibility 0s linear .9s; }
.js .slide:not(.is-active) { opacity: 0; transform: translateY(14px); visibility: hidden; }
.js .slide.is-active { opacity: 1; transform: none; visibility: visible; transition-delay: .15s, .15s, 0s; }
html:not(.js) .slide ~ .slide, html:not(.js) .tabs { display: none; }

.slide-kicker { margin: 0 0 22px; font-size: 13px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--moon-2); }
.slide-kicker b { color: var(--seal-bright); font-weight: 600; margin-right: 14px; }
.slide-title {
  margin: 0;
  font-weight: 600;
  font-size: clamp(44px, 6.2vw, 132px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 12ch;
  text-wrap: balance;
}
.slide-title .accent { color: var(--seal-bright); }
.slide-lede { margin: 30px 0 0; max-width: 32em; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.6; color: var(--moon-2); }
.slide-cta {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 36px; padding: 14px 22px;
  border: 1px solid rgba(237,235,230,.35); border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: .02em;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.slide-cta:hover { background: var(--moon); color: var(--night); border-color: var(--moon); }

.tabs {
  margin-top: clamp(48px, 8vh, 96px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 24px;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 36px);
}
.tab {
  appearance: none; background: none; border: 0; margin: 0;
  padding: 16px 0 0; min-height: 52px;
  border-top: 3px solid rgba(237,235,230,.26);
  color: rgba(167,171,179,.9); font: inherit; font-size: 14px; font-weight: 600; letter-spacing: .04em; line-height: 1.35;
  text-align: left; cursor: pointer; position: relative; display: block;
  transition: color .25s ease, border-color .25s ease;
}
.tab:hover { color: var(--moon); border-top-color: rgba(237,235,230,.62); }
.tab[aria-selected="true"] { color: var(--moon); border-top-color: rgba(237,235,230,.5); }
.tab:focus-visible { outline: 2px solid var(--seal-bright); outline-offset: 6px; }
.tab::before {
  content: ""; position: absolute; left: 0; top: -3px; height: 3px; width: 0; background: var(--seal-bright);
}
.tab::after { content: ""; position: absolute; inset: -16px 0 0 0; }
.tab[aria-selected="true"]::before { animation: tabfill var(--slide-ms, 7000ms) linear forwards; }
.tabs.paused .tab[aria-selected="true"]::before { animation-play-state: paused; }
.tabs.static .tab[aria-selected="true"]::before { animation: none; width: 100%; }
@keyframes tabfill { from { width: 0; } to { width: 100%; } }
html[lang|="zh"] .tab { letter-spacing: .08em; }
@media (max-width: 560px) {
  .tabs { gap: 0 10px; }
  .tab { font-size: 12px; padding-top: 12px; min-height: 44px; letter-spacing: .02em; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(88px, 11vw, 144px); }
.section.tint { background: var(--paper-2); }
.head { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; margin-bottom: clamp(44px, 4.5vw, 80px); }
.label { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-2); }
.label::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--seal); margin-right: 12px; vertical-align: 1px; }
.statement {
  margin: 0;
  font-weight: 600;
  font-size: clamp(32px, 3.3vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 24ch;
}
.body-cols { display: block; }
.body-cols > :first-child:empty { display: none; }
.prose { max-width: 1120px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; }
@media (max-width: 760px) { .prose { grid-template-columns: minmax(0, 1fr); } }
.prose p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--ink-2); }


/* Ampersands in a conventional shape (the display face's own is unusual) */
.amp { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }

/* Image cards with generative art */
.cards { display: grid; gap: 28px; }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1080px) { .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .cards.three { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .cards.four { grid-template-columns: minmax(0, 1fr); } }
.card { display: flex; flex-direction: column; min-width: 0; }
.art {
  position: relative;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 70% 40%, var(--night-2) 0%, var(--night) 70%);
}
.art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.art::after, .story::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .09; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.1 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
}
.card:hover .art canvas { transform: scale(1.04); }
.card .kicker { margin: 22px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--seal); }
.card h3 { margin: 0 0 10px; font-weight: 600; font-size: clamp(24px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.01em; }
.card p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-2); }

.cards.three .art { aspect-ratio: 4 / 5; }
.art .over { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 28px; color: var(--moon); background: linear-gradient(0deg, rgba(13,15,20,.85), rgba(13,15,20,0)); }
.art .over h3 { margin: 0; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.05; letter-spacing: -0.02em; }
.card .areas { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.card .lead { margin-top: 20px; font-size: 17px; color: var(--ink); }

/* Approach */
.path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; position: relative; }
.path::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--rule); }
@media (max-width: 900px) { .path { grid-template-columns: minmax(0, 1fr); } .path::before { display: none; } }
.step { position: relative; padding-top: 42px; }
.step::before { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--ink-2); }
.step.entry::before { background: var(--seal); border-color: var(--seal); box-shadow: 0 0 0 5px var(--paper-2), 0 0 0 6px rgba(179,20,30,.35); }
.step .kicker { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-2); }
.step.entry .kicker { color: var(--seal); }
.step h3 { margin: 0 0 10px; font-weight: 600; font-size: clamp(26px, 2.3vw, 34px); line-height: 1.1; letter-spacing: -0.015em; }
.step p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-2); max-width: 24em; }
.principles { margin-top: clamp(48px, 5vw, 72px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 32px; padding-top: 32px; border-top: 1px solid var(--rule); }
@media (max-width: 1000px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .principles { grid-template-columns: minmax(0, 1fr); } }
.principles h4 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.principles p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* Years, drawn as rings: one ring for every year since founding */
.years { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 40px 28px; }
@media (max-width: 1080px) { .years { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .years { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; } }
.year svg { display: block; width: 64px; height: 64px; margin-bottom: 18px; }
.year svg circle { fill: none; stroke: var(--ink); stroke-opacity: .4; stroke-width: 1; }
.year svg circle.now { stroke: var(--seal); stroke-opacity: 1; stroke-width: 1.5; }
.year-num { margin: 0; font-weight: 600; font-size: 34px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.year p:last-child { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.year.current .year-num { color: var(--seal); }

/* Portfolio */
.portfolio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; border-top: 1px solid var(--rule); }
@media (max-width: 980px) { .portfolio { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .portfolio { grid-template-columns: minmax(0, 1fr); } }
.co { display: flex; flex-direction: column; gap: 4px; padding: 24px 0 26px; border-bottom: 1px solid var(--rule); position: relative; }
.co-name { font-weight: 600; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; transition: color .25s ease; }
.co-sector { font-size: 14px; color: var(--ink-2); }
.co-tag { color: var(--seal); }
.co::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--seal); transition: width .45s cubic-bezier(.2,.7,.2,1); }
a.co:hover .co-name { color: var(--seal); }
a.co:hover::after, a.co:focus-visible::after { width: 100%; }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 900px) { .team { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.person { padding-top: 22px; border-top: 2px solid var(--ink); }
.person-name { margin: 0; font-weight: 600; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -0.015em; }
.person-role { margin: 8px 0 0; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--seal); }
.person-bio { margin: 18px 0 0; font-size: 15px; line-height: 1.7; color: var(--ink-2); }

/* Seal (used as a signature on the contact page) */
.seal {
  width: 96px; height: 96px; flex: none; background: var(--seal); color: #FFFFFF;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; place-items: center;
  padding: 8px; border-radius: 3px; font-family: var(--serif-zh); font-weight: 600; font-size: 31px; line-height: 1;
  box-shadow: inset 0 0 0 3px var(--seal), inset 0 0 0 5px rgba(255,255,255,.85); transform: rotate(-2deg);
}

/* Footer */
.site-footer { background: var(--night); color: var(--moon-2); }
.site-footer .wrap { padding-block: 56px calc(env(safe-area-inset-bottom, 0px) + 40px); display: flex; flex-direction: column; gap: 36px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 40px; color: var(--moon); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; padding-top: 24px; border-top: 1px solid rgba(237,235,230,.14); font-size: 13px; line-height: 1.65; }
.foot-legal p { margin: 0; }
.foot-legal p:first-child { flex: 1 1 520px; min-width: 0; max-width: 62em; }

/* Gentle entrance for content below the first screen (content is visible without JS) */
.js [data-reveal] > * { transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal] > :nth-child(2) { transition-delay: .14s; }
.js [data-reveal] > :nth-child(3) { transition-delay: .28s; }
.js [data-reveal] > :nth-child(n+4) { transition-delay: .4s; }
.js [data-reveal].is-pending > * { opacity: 0; transform: translateY(26px); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] > *, .js [data-reveal].is-pending > * { opacity: 1; transform: none; transition: none; }
  .slide, .js .slide.is-active, .js .slide:not(.is-active) { transition: none; transform: none; }
}

/* ---------- Chinese page ---------- */
html[lang|="zh"] body { font-size: 17px; line-height: 1.85; }
html[lang|="zh"] .slide-title { font-family: var(--head-zh); font-weight: 700; font-size: clamp(40px, 5.8vw, 92px); line-height: 1.18; letter-spacing: 0.02em; max-width: 9em; }
html[lang|="zh"] .slide-lede { line-height: 1.9; max-width: 28em; }
html[lang|="zh"] .slide-kicker, html[lang|="zh"] .label, html[lang|="zh"] .card .kicker, html[lang|="zh"] .step .kicker { letter-spacing: 0.2em; }
html[lang|="zh"] .statement { font-family: var(--head-zh); font-weight: 700; font-size: clamp(28px, 3vw, 46px); line-height: 1.4; letter-spacing: 0.01em; max-width: 16em; }
html[lang|="zh"] .card h3, html[lang|="zh"] .step h3, html[lang|="zh"] .art .over h3,
html[lang|="zh"] .co-name, html[lang|="zh"] .person-name { font-family: var(--head-zh); font-weight: 700; letter-spacing: 0.04em; line-height: 1.35; }
html[lang|="zh"] .prose p, html[lang|="zh"] .card p, html[lang|="zh"] .step p, html[lang|="zh"] .principles p,
html[lang|="zh"] .year p:last-child, html[lang|="zh"] .person-bio, html[lang|="zh"] .fig-label { line-height: 1.85; }
html[lang|="zh"] .person-role { letter-spacing: .08em; }


.art .over { z-index: 1; }

/* Header over the dark business band */
.site-header.solid.on-dark { color: var(--moon); background: rgba(13, 15, 20, .86); border-bottom-color: rgba(237, 235, 230, .1); }
/* Narrow screens: keep the wordmark on one line */
.mark, .lang { white-space: nowrap; }
@media (max-width: 480px) {
  .mark > span:last-child { display: none; }
  .mark-en { letter-spacing: 0.24em; }
}

.nw { white-space: nowrap; }

/* Large screens: let type grow with the canvas */
@media (min-width: 1800px) {
  body { font-size: 19px; }
  .nav { font-size: 16px; }
  .prose p, .card p, .card .lead, .step p, .principles p, .year p:last-child, .person-bio, .story-step .desc, .slide-lede { font-size: 19px; }
  .card .areas, .co-sector, .fig-label { font-size: 15px; }
  .co-name { font-size: 28px; }
  .step h3 { font-size: 40px; }
  .card h3 { font-size: 30px; }
  .person-name { font-size: 38px; }
  .label, .slide-kicker, .story-index { font-size: 14px; }
}

/* ---------- Business: scroll story ---------- */
.story { position: relative; background: var(--night); color: var(--moon); padding-block: clamp(96px, 11vw, 150px) clamp(48px, 6vw, 96px); isolation: isolate; --frame-h: min(58vh, 640px); }
.story::after { z-index: 1; opacity: .06; }
.story .label { color: var(--moon-2); }
.story .label::before { background: var(--seal-bright); }
.story .statement { color: var(--moon); }
.story-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(40px, 6vw, 104px); }
.story-steps { display: flex; flex-direction: column; min-width: 0; }
.story-head { margin-bottom: 0; }
.story-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .26; transition: opacity .7s ease; }
.story-head + .story-step { min-height: 0; justify-content: flex-start; padding-block: 15vh 22vh; }
.story-step.is-active { opacity: 1; }
.story-index { margin: 0 0 16px; font-size: 13px; font-weight: 600; letter-spacing: .2em; color: var(--moon-2); font-variant-numeric: tabular-nums; }
.story-index span { color: var(--seal-bright); }
.story-step .kicker { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--moon-2); }
.story-step h3 { margin: 0 0 22px; font-weight: 600; font-size: clamp(32px, 2.8vw, 58px); line-height: 1.04; letter-spacing: -0.02em; }
.story-step .desc { margin: 0; max-width: 28em; font-size: 18px; line-height: 1.7; color: var(--moon-2); }

.story-stage { position: relative; min-width: 0; }
.story-sticky { position: sticky; top: max(calc(var(--header-h) + 16px), calc(50vh - var(--frame-h) / 2 - 30px)); }
.story-frame { position: relative; height: var(--frame-h); overflow: hidden; background: var(--night); }
.story-frame canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 66%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 66%, transparent 100%);
}
.story-nav { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; margin-top: 20px; }
.story-tab {
  appearance: none; background: none; border: 0; margin: 0; padding: 14px 0 0; min-height: 44px;
  position: relative; text-align: left; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; letter-spacing: .02em; line-height: 1.35;
  color: var(--moon-2); border-top: 1px solid rgba(237, 235, 230, .22);
  transition: color .25s ease;
}
.story-tab span { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: .18em; opacity: .7; font-variant-numeric: tabular-nums; }
.story-tab::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--seal-bright); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.story-tab:hover { color: var(--moon); }
.story-tab[aria-current="true"] { color: var(--moon); }
.story-tab[aria-current="true"]::before { width: 100%; }

@media (min-width: 1800px) {
  .story-step .desc { font-size: 19px; }
  .story-tab { font-size: 15px; }
}
@media (max-width: 900px) {
  .story { --frame-h: 36vh; }
  .story-body { grid-template-columns: minmax(0, 1fr); }
  .story-steps { display: contents; }
  .story-head { order: -2; margin-bottom: 36px; }
  .story-stage { order: -1; position: sticky; top: var(--header-h); z-index: 2; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 10px; background: var(--night); }
  .story-sticky { position: static; }
  .story-nav { margin-top: 8px; gap: 0 8px; }
  .story-tab { font-size: 12px; padding-top: 10px; }
  .story-tab span { display: none; }
  .story-step, .story-head + .story-step { min-height: 56vh; justify-content: flex-end; padding: 0 0 6vh; }
}
html[lang|="zh"] .story-step h3 { font-family: var(--head-zh); font-weight: 700; letter-spacing: .04em; line-height: 1.3; font-size: clamp(30px, 2.6vw, 52px); }
html[lang|="zh"] .story-step .kicker { letter-spacing: .18em; }
html[lang|="zh"] .story-step .desc { line-height: 1.9; }
html[lang|="zh"] .story-tab { letter-spacing: .06em; }

/* ---------- Focus: one panorama, energy to intelligence to life ---------- */
.focus-lede { margin: 0; max-width: 34em; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.pano { scroll-margin-top: 28px; scroll-margin-bottom: 20px; }
.pano-frame { position: relative; height: clamp(300px, 32vw, 580px); }
.pano-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pano-labels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin-top: 28px; }
.pano-zone { position: relative; padding-top: 22px; border-top: 1px solid var(--rule); transition: opacity .45s ease; outline-offset: 6px; }
.pano-zone::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--seal); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.pano-zone.is-hot::before { width: 100%; }
.pano.has-hot .pano-zone:not(.is-hot) { opacity: .42; }
.pano-num { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .2em; color: var(--seal); font-variant-numeric: tabular-nums; }
.pano-zone h3 { margin: 0 0 10px; font-weight: 600; font-size: clamp(24px, 2vw, 34px); line-height: 1.15; letter-spacing: -0.015em; }
.pano-zone .lead { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink); }
.pano-zone .areas { margin: 14px 0 0; font-size: 14px; line-height: 1.8; color: var(--ink-2); }
@media (min-width: 1800px) { .focus-lede, .pano-zone .lead { font-size: 19px; } .pano-zone .areas { font-size: 15px; } }
@media (max-width: 760px) {
  .pano-frame { height: 64vw; }
  .pano-labels { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 16px; }
  .pano-zone { padding: 18px 0 22px; }
}
html[lang|="zh"] .pano-zone h3 { font-family: var(--head-zh); font-weight: 700; letter-spacing: .04em; line-height: 1.35; }
html[lang|="zh"] .focus-lede, html[lang|="zh"] .pano-zone .lead, html[lang|="zh"] .pano-zone .areas { line-height: 1.9; }

@media (max-width: 1100px) { .nav .sections { gap: 8px 20px; } }
@media (max-width: 1020px) { .nav .sections { display: none; } .lang { border-left: 0; padding-left: 0; } }
.slide { align-self: end; }

/* Business steps: a small red name over one large sentence */
.story-step .story-name { margin: 0 0 20px; font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; line-height: 1.5; color: var(--seal-bright); }
.story-step .story-name span { margin-left: 14px; color: var(--moon-2); font-weight: 600; letter-spacing: .16em; }
.story-step .desc { max-width: 21em; font-size: clamp(24px, 1.9vw, 38px); font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; color: var(--moon); }
@media (min-width: 1800px) { .story-step .desc { font-size: clamp(24px, 1.9vw, 38px); } .story-step .story-name { font-size: 14px; } }
@media (max-width: 900px) { .story-step .desc { font-size: 22px; } }
html[lang|="zh"] .story-step .story-name { font-family: var(--head-zh); letter-spacing: .14em; font-size: 15px; }
html[lang|="zh"] .story-step .story-name span { font-family: var(--sans); font-size: 12px; }
html[lang|="zh"] .story-step .desc { font-weight: 500; line-height: 1.6; letter-spacing: .02em; max-width: 17em; }

/* ---------- Footer with contact line (home) ---------- */
.foot-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; font-size: 15px; font-weight: 500; }
.foot-contact a { opacity: .85; transition: opacity .2s ease, color .2s ease; }
.foot-contact a:hover { opacity: 1; color: var(--seal-bright); }

/* ---------- Contact page ---------- */
.cp { background: var(--night); color: var(--moon); min-height: 100svh; display: flex; align-items: center; }
.cp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(40px, 6vw, 96px); align-items: center;
  padding-block: calc(var(--header-h) + clamp(40px, 7vh, 104px)) clamp(48px, 8vh, 104px); }
.cp .label { color: var(--moon-2); }
.cp .label::before { background: var(--seal-bright); }
.cp-city { margin: 22px 0 0; font-weight: 600; font-size: clamp(56px, 7vw, 128px); line-height: 1; letter-spacing: -0.03em; }
.cp-info { margin-top: clamp(36px, 5vh, 64px); display: grid; grid-template-columns: max-content max-content; gap: 28px 56px; padding-top: 28px; border-top: 1px solid rgba(237,235,230,.16); }
.ci-label { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--moon-2); }
.ci-mail { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 500; color: var(--moon); transition: color .25s ease; }
.ci-mail span { transition: transform .25s ease; }
.ci-mail:hover { color: var(--seal-bright); }
.ci-mail:hover span { transform: translateX(3px); }
.ci-text { margin: 0; font-size: 15px; line-height: 1.75; color: var(--moon-2); }
.cp .seal { display: grid; margin-top: 44px; width: 56px; height: 56px; font-size: 17px; padding: 5px; transform: none; }
.cp-map { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 600px; justify-self: end; }
.cp-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
html[lang|="zh"] .cp-city { font-family: var(--head-zh); font-weight: 700; letter-spacing: .06em; }
html[lang|="zh"] .ci-label { letter-spacing: .16em; }
@media (max-width: 900px) {
  .cp { align-items: flex-start; }
  .cp-grid { grid-template-columns: minmax(0, 1fr); padding-top: calc(var(--header-h) + 24px); }
  .cp-map { order: -1; max-width: 400px; justify-self: center; }
  .cp-info { grid-template-columns: minmax(0, 1fr); }
}
