/* Veridian — version 3
   "Horizon": dark, cinematic, photo-led. One variable sans (Archivo) used at
   different widths for headlines and text; a serif (Instrument Serif, with
   Noto Serif SC for Chinese) only for the names of things: services, steps,
   audiences. A single luminous accent; interaction instead of ornament. */

@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 200 700; font-stretch: 100% 125%; font-display: swap;
  src: url("/assets/fonts/archivo.woff2") format("woff2");
}
@font-face {
  font-family: "VP Hei"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("/assets/fonts/noto-sans-sc-300-subset.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/instrument-serif-roman.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
}
@font-face {
  font-family: "VP Song"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/noto-serif-sc-500-subset.woff2") format("woff2");
}
@font-face {
  font-family: "VP Hei HK"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("/assets/fonts/noto-sans-hk-300-subset.woff2") format("woff2");
}
@font-face {
  font-family: "VP Song HK"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/noto-serif-hk-500-subset.woff2") format("woff2");
}

:root {
  --bg: #070d0c;
  --bg-2: #0c1513;
  --bg-3: #121d1a;
  --fg: #f4f2ec;
  --fg-2: rgba(244, 242, 236, 0.66);
  --fg-3: rgba(244, 242, 236, 0.34);
  --line: rgba(244, 242, 236, 0.14);
  --line-2: rgba(244, 242, 236, 0.3);
  --accent: #5fe3bd;

  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: var(--sans);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;

  --gutter: clamp(20px, 4.2vw, 72px);
  --max: 1520px;
  --bar: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
html:lang(zh) {
  --sans: "Archivo", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --display: "Archivo", "VP Hei", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Instrument Serif", "VP Song", "Songti SC", "STSong", "SimSun", serif;
}
html:lang(zh-Hant) {
  --sans: "Archivo", "PingFang HK", "PingFang TC", "Microsoft JhengHei", "Noto Sans HK", "Noto Sans TC", sans-serif;
  --display: "Archivo", "VP Hei HK", "PingFang HK", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --serif: "Instrument Serif", "VP Song HK", "Songti TC", "PMingLiU", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); color-scheme: dark; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 17px; font-weight: 400; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html:lang(zh) body { font-size: 16px; line-height: 1.9; }

h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
[id] { scroll-margin-top: var(--bar); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 14px; font-size: 13px; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Type ---------- */

.label {
  font-size: 11.5px; font-weight: 500; font-stretch: 125%; letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--fg-2); line-height: 1.4;
}
html:lang(zh) .label { font-size: 13px; letter-spacing: 0.32em; }
.label--dot { display: inline-flex; align-items: center; gap: 12px; }
.label--dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px rgba(95, 227, 189, 0.8); }

.d1 {
  font-family: var(--display); font-weight: 300; font-stretch: 108%;
  font-size: clamp(54px, 10.4vw, 184px); line-height: 0.92; letter-spacing: -0.045em;
}
html:lang(zh) .d1 { font-size: clamp(44px, 8.8vw, 152px); line-height: 1.1; letter-spacing: 0.01em; }
.d2 {
  font-family: var(--display); font-weight: 300; font-stretch: 106%;
  font-size: clamp(32px, 4.7vw, 78px); line-height: 1; letter-spacing: -0.035em; text-wrap: balance;
}
html:lang(zh) .d2 { font-size: clamp(28px, 3.9vw, 62px); line-height: 1.26; letter-spacing: 0.02em; }
@media (max-width: 600px) { br.wide { display: none; } }
.sub { color: var(--fg-2); font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; max-width: 30em; }
html:lang(zh) .sub { font-size: 16px; line-height: 1.9; }

/* ---------- Buttons ---------- */

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 40px; padding: 0 18px;
  border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--fg); cursor: pointer;
  font-size: 13.5px; font-weight: 500; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
html:lang(zh) .pill { letter-spacing: 0.12em; }
.pill svg { transition: transform 0.35s var(--ease); }
.pill:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pill:hover svg { transform: translateX(4px); }
.pill--lg { height: 54px; padding: 0 28px; font-size: 15px; }
.pill--solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pill--solid:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.pill--glass { background: rgba(7, 13, 12, 0.28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* ---------- Top bar ---------- */

.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--bar);
  border-bottom: 1px solid transparent; transition: background 0.5s, border-color 0.5s;
}
.top.solid { background: rgba(7, 13, 12, 0.74); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; position: relative; }

.brand {
  display: inline-flex; align-items: center; gap: 12px; color: var(--fg); text-decoration: none; white-space: nowrap;
  font-family: "Archivo", system-ui, sans-serif; font-size: 13px; font-weight: 600; font-stretch: 125%; letter-spacing: 0.2em; text-transform: uppercase;
}
.brand i { font-style: normal; font-weight: 300; color: var(--fg-2); }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.3vw, 38px); }
.navlink { font-size: 14px; color: var(--fg-2); text-decoration: none; transition: color 0.3s; }
html:lang(zh) .navlink { letter-spacing: 0.1em; }
.navlink:hover, .navlink[aria-current="true"] { color: var(--fg); }
.lang { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--fg-3); }
.lang a { color: var(--fg-2); text-decoration: none; }
.lang a:hover { color: var(--fg); }
.lang .on { color: var(--fg); }

.menu-btn { display: none; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; cursor: pointer; font-size: 13px; font-weight: 500; }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; position: relative; z-index: 2; }
  .brand { position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 0;
    padding: var(--bar) var(--gutter) 40px; background: var(--bg);
    opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0s 0.4s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transition: opacity 0.4s, visibility 0s; }
  .menu-open { overflow: hidden; }
  .menu-open .top { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav .navlink {
    padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--fg);
    font-family: var(--display); font-size: 40px; font-weight: 300; font-stretch: 106%; line-height: 1.15; letter-spacing: -0.03em;
  }
  html:lang(zh) .nav .navlink { font-size: 34px; letter-spacing: 0.04em; }
  .nav .lang { margin-top: 28px; font-size: 15px; }
  .nav .pill { margin-top: 24px; align-self: flex-start; height: 54px; padding: 0 28px; font-size: 15px; }
}

/* ---------- Hero ---------- */

.hero { position: relative; height: 100svh; min-height: 640px; max-height: 1180px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: -6% 0; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 54% 44%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 13, 12, 0.58) 0%, rgba(7, 13, 12, 0) 24%),
    linear-gradient(0deg, rgba(7, 13, 12, 1) 0%, rgba(7, 13, 12, 0.78) 24%, rgba(7, 13, 12, 0.3) 52%, rgba(7, 13, 12, 0) 74%);
}
.js .hero-media img { transform: scale(1.14); }
.js.loaded .hero-media img { transform: none; transition: transform 3.6s var(--ease); }

.hero-body { position: relative; z-index: 2; padding-bottom: clamp(24px, 3.4vw, 48px); }
.hero h1 { margin-top: clamp(16px, 2vw, 28px); }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.hero h1 .ln > span { display: block; }
.js .hero h1 .ln > span { transform: translateY(135%); }
.js.loaded .hero h1 .ln > span { transform: none; transition: transform 1.4s var(--ease); }
.js.loaded .hero h1 .ln:nth-child(2) > span { transition-delay: 0.14s; }

.hero-row { margin-top: clamp(22px, 3vw, 44px); align-items: end; row-gap: 28px; }
.hero-lede { grid-column: 1 / span 5; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: rgba(244, 242, 236, 0.86); }
html:lang(zh) .hero-lede { font-size: 16.5px; line-height: 1.9; }
.hero-cta { grid-column: 8 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }

.hero-bar { position: relative; z-index: 2; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.hero-bar li { display: flex; align-items: baseline; gap: 14px; padding: 18px 0 24px; font-size: 15px; }
.hero-bar b { font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; color: var(--accent); }

@media (max-width: 860px) {
  .hero::before {
    background:
      linear-gradient(180deg, rgba(7, 13, 12, 0.58) 0%, rgba(7, 13, 12, 0) 24%),
      linear-gradient(0deg, rgba(7, 13, 12, 1) 0%, rgba(7, 13, 12, 0.86) 30%, rgba(7, 13, 12, 0.52) 56%, rgba(7, 13, 12, 0) 80%);
  }
  .hero-lede { grid-column: 1 / -1; }
  .hero-cta { grid-column: 1 / -1; justify-content: flex-start; }
  .hero-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-bar li { padding: 12px 0; font-size: 14px; }
  .hero-bar li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-bar { padding-bottom: 8px; }
}

/* ---------- Statement ---------- */

.statement { position: relative; padding: clamp(56px, 7vw, 112px) 0 clamp(96px, 12vw, 192px); }
.statement::before {
  content: ""; position: absolute; inset: -10% 0 0; pointer-events: none;
  background: radial-gradient(46% 62% at 9% 58%, rgba(95, 227, 189, 0.1) 0%, rgba(95, 227, 189, 0) 70%);
}
.statement .wrap { position: relative; }
.statement-body { margin-top: clamp(48px, 7vw, 116px); row-gap: clamp(26px, 3vw, 44px); }

/* The brand mark at scale: a light above a horizon line */
.orb { grid-column: 1 / span 2; grid-row: 1 / span 2; position: relative; align-self: stretch; min-height: 150px; border-bottom: 1px solid var(--line-2); clip-path: inset(-400px -400px 0 -400px); }
.orb span {
  position: absolute; left: 8%; bottom: 24%; width: clamp(34px, 3.6vw, 56px); aspect-ratio: 1; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 36px rgba(95, 227, 189, 0.55), 0 0 140px rgba(95, 227, 189, 0.3);
}

.statement p.big {
  grid-column: 4 / span 8; font-family: var(--display); font-weight: 300; font-stretch: 104%;
  font-size: clamp(28px, 3.7vw, 60px); line-height: 1.14; letter-spacing: -0.03em; text-wrap: balance;
}
html:lang(zh) .statement p.big { font-size: clamp(25px, 3.1vw, 50px); line-height: 1.42; letter-spacing: 0.02em; }
.statement p.big em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.1em; letter-spacing: -0.005em; color: var(--accent); white-space: nowrap; }
html:lang(zh) .statement p.big em { font-style: normal; font-weight: 500; font-size: 1em; letter-spacing: 0.03em; }
.statement .sub { grid-column: 4 / span 6; max-width: 31em; font-size: clamp(17px, 1.5vw, 23px); line-height: 1.5; text-wrap: pretty; }
html:lang(zh) .statement .sub { font-size: clamp(16px, 1.45vw, 21px); line-height: 1.9; }
.statement .w { color: var(--fg-3); transition: color 0.5s; }
.statement .w.on { color: var(--fg); }
.statement em .w.on { color: var(--accent); }
@media (max-width: 860px) {
  .orb { display: none; }
  .statement p.big, .statement .sub { grid-column: 1 / -1; }
}

/* ---------- Section scaffolding ---------- */

.section { padding-bottom: clamp(96px, 13vw, 208px); }
.sec-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.sec-top .count { color: var(--fg-3); }
.sec-head { margin-top: clamp(40px, 6vw, 96px); align-items: end; row-gap: 24px; }
.sec-head .d2 { grid-column: 1 / span 8; }
.sec-head .sub { grid-column: 9 / -1; }
@media (max-width: 960px) { .sec-head .d2, .sec-head .sub { grid-column: 1 / -1; } }

/* ---------- Services ---------- */

.svcs { position: relative; margin-top: clamp(40px, 5vw, 80px); }
.svc { width: 55%; border-bottom: 1px solid var(--line); }
.svc:first-child { border-top: 1px solid var(--line); }
.svc-btn {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: baseline; width: 100%;
  padding: clamp(20px, 2.3vw, 36px) 0; margin: 0; border: 0; background: none; text-align: left; cursor: pointer;
}
.svc-btn .n { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; color: var(--fg-3); transition: color 0.4s; }
.svc-btn .t {
  font-family: var(--serif); font-weight: 400; font-stretch: 100%;
  font-size: clamp(27px, 2.9vw, 46px); line-height: 1.08; letter-spacing: -0.012em; color: rgba(244, 242, 236, 0.5);
  transition: color 0.5s, transform 0.7s var(--ease);
}
html:lang(zh) .svc-btn .t { font-weight: 500; font-size: clamp(22px, 2.35vw, 36px); line-height: 1.3; letter-spacing: 0.06em; }
.svc.on .svc-btn .t { color: var(--fg); transform: translateX(14px); }
.svc.on .svc-btn .n { color: var(--accent); }

.svc-detail { position: absolute; top: 0; right: 0; width: 38%; height: 100%; opacity: 0; visibility: hidden; transition: opacity 0.6s, visibility 0s 0.6s; }
.svc.on .svc-detail { opacity: 1; visibility: visible; transition: opacity 0.6s, visibility 0s; }
.svc-detail .in { display: flex; flex-direction: column; height: 100%; }
.svc-detail .frame { flex: 1; min-height: 0; overflow: hidden; border-radius: 6px; background: var(--bg-3); }
.svc-detail img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 1.6s var(--ease); }
.svc.on .svc-detail img { transform: none; }
.svc-detail p { margin-top: 22px; min-height: 5.2em; color: var(--fg-2); font-size: 17px; line-height: 1.5; }
html:lang(zh) .svc-detail p { font-size: 15.5px; line-height: 1.85; min-height: 5.6em; }

@media (max-width: 960px) {
  .svc { width: 100%; }
  .svc-btn { grid-template-columns: 44px minmax(0, 1fr); }
  .svc.on .svc-btn .t { transform: none; }
  .svc-detail { position: static; width: auto; height: auto; opacity: 1; visibility: visible; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.7s var(--ease); }
  .svc.on .svc-detail { grid-template-rows: 1fr; }
  .svc-detail .in { display: block; height: auto; overflow: hidden; min-height: 0; }
  .svc-detail .frame { aspect-ratio: 16 / 10; }
  .svc-detail p { min-height: 0; margin: 18px 0 28px; }
  html:lang(zh) .svc-detail p { min-height: 0; }
}
html:not(.js) .svc { width: 100%; }
html:not(.js) .svc-detail { position: static; width: auto; height: auto; opacity: 1; visibility: visible; }
html:not(.js) .svc-detail .frame { display: none; }
html:not(.js) .svc-detail p { min-height: 0; margin: 0 0 24px 52px; }
html:not(.js) .svc-btn .t { color: var(--fg); }

/* ---------- Standards ---------- */

.stds { display: flex; margin-top: clamp(40px, 5vw, 80px); height: clamp(440px, 42vw, 620px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.std {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 26px clamp(18px, 2.2vw, 36px) 30px; border-left: 1px solid var(--line);
  transition: flex-grow 0.9s var(--ease), background-color 0.6s;
}
.std:first-child { border-left: 0; }
.std::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s;
  background: radial-gradient(120% 90% at 100% 0%, rgba(95, 227, 189, 0.22) 0%, rgba(95, 227, 189, 0) 60%), linear-gradient(165deg, #0f463c 0%, #0a211d 72%);
}
.std > * { position: relative; }
.std.on { flex-grow: 2; }
.std.on::before { opacity: 1; }
.std-btn { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.std-btn .idx { display: block; color: var(--fg-3); transition: color 0.4s; }
.std.on .std-btn .idx { color: var(--accent); }
.std .code {
  display: block; margin-top: clamp(20px, 3vw, 48px);
  font-family: "Archivo", system-ui, sans-serif; font-weight: 200; font-stretch: 100%;
  font-size: clamp(56px, 8.2vw, 124px); line-height: 0.84; letter-spacing: -0.055em; color: var(--fg-3);
  transition: color 0.6s;
}
.std.on .code { color: var(--fg); }
.std .name { display: block; margin-top: 18px; font-size: clamp(17px, 1.5vw, 23px); line-height: 1.25; font-weight: 400; color: var(--fg-2); transition: color 0.6s; }
.std.on .name { color: var(--fg); }
.std .more {
  width: clamp(320px, 33vw, 540px); display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px;
  padding-top: 18px; border-top: 1px solid var(--line-2);
  opacity: 0; transform: translateY(14px); transition: opacity 0.35s, transform 0.6s var(--ease);
}
.std.on .more { opacity: 1; transform: none; transition-delay: 0.3s; }
.std .more dt { margin-bottom: 8px; }
.std .more dd { font-size: 16px; line-height: 1.45; }
html:lang(zh) .std .more dd { font-size: 15px; line-height: 1.75; }
.std-note { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; color: var(--fg-2); font-size: 15px; }
.std-note a { color: var(--fg); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.std-note a:hover { color: var(--accent); }

@media (max-width: 860px) {
  .stds { flex-direction: column; height: auto; border-bottom: 0; }
  .std, .std:first-child { border-left: 0; border-bottom: 1px solid var(--line); padding: 26px 0 30px; flex: none; cursor: default; }
  .std::before { display: none; }
  .std .code { color: var(--fg); font-size: 88px; margin-top: 18px; }
  .std .name { color: var(--fg); }
  .std-btn { cursor: default; }
  .std-btn .idx { color: var(--accent); }
  .std .more { width: auto; margin-top: 24px; opacity: 1; transform: none; }
}

/* ---------- Approach ---------- */

.chart {
  margin-top: clamp(40px, 5vw, 80px); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: radial-gradient(90% 120% at 86% 0%, rgba(95, 227, 189, 0.09) 0%, rgba(95, 227, 189, 0) 62%), var(--bg-2);
}
.chart svg { width: 100%; height: auto; padding: clamp(14px, 2.4vw, 40px) clamp(8px, 2vw, 32px) clamp(8px, 1.6vw, 24px); }
.chart text { font-family: var(--sans); font-size: 14px; fill: var(--fg-2); letter-spacing: 0.02em; }
.chart .t-strong { fill: var(--fg); font-size: 17px; font-weight: 500; }
.chart .t-accent { fill: var(--accent); font-size: 14px; }
.chart .axis { fill: none; stroke: var(--line-2); stroke-width: 1; }
.chart .gridline { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 8; }
.chart .baseline { fill: none; stroke: rgba(244, 242, 236, 0.72); stroke-width: 1.5; stroke-dasharray: 7 7; }
.chart .project { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(95, 227, 189, 0.65)); }
.chart .marker { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 6; }
.chart .dot { fill: var(--accent); filter: drop-shadow(0 0 10px rgba(95, 227, 189, 0.9)); }
@media (max-width: 700px) {
  .chart text { font-size: 30px; }
  .chart .t-strong { font-size: 33px; }
  .chart .t-accent, .chart .t-hide { display: none; }
}

.js .chart .project { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .chart .area, .js .chart .dot, .js .chart .late { opacity: 0; }
.js .chart.in .project { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s 0.3s var(--ease); }
.js .chart.in .area { opacity: 1; transition: opacity 1.4s 1.6s; }
.js .chart.in .dot, .js .chart.in .late { opacity: 1; transition: opacity 0.9s 2.2s; }

.steps { margin-top: clamp(32px, 4vw, 64px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 40px; }
.steps li { position: relative; padding-top: 26px; border-top: 1px solid var(--line-2); }
.steps li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.steps .n { font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; color: var(--fg-3); }
.steps h3 { margin-top: 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(29px, 3vw, 46px); line-height: 1.05; letter-spacing: -0.012em; }
html:lang(zh) .steps h3 { font-weight: 500; font-size: clamp(24px, 2.4vw, 36px); letter-spacing: 0.06em; line-height: 1.3; }
.steps p { margin-top: 12px; color: var(--fg-2); font-size: 16px; line-height: 1.5; max-width: 22em; }
html:lang(zh) .steps p { font-size: 15px; line-height: 1.85; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Band ---------- */

.band { position: relative; height: clamp(380px, 68vh, 780px); overflow: hidden; display: grid; place-items: center; text-align: center; }
.band .media { position: absolute; inset: -14% 0; will-change: transform; }
.band .media img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(7, 13, 12, 0.42) 22%, rgba(7, 13, 12, 0.42) 78%, var(--bg) 100%); }
.band .d2 { position: relative; z-index: 1; max-width: 15em; padding: 0 var(--gutter); }

/* ---------- About ---------- */

.about { padding-top: clamp(72px, 9vw, 144px); }
.about-body { margin-top: clamp(40px, 6vw, 96px); align-items: start; row-gap: 48px; }
.about-text { grid-column: 1 / span 6; }
.prose { margin-top: clamp(28px, 3vw, 48px); }
.prose p { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; color: var(--fg-2); max-width: 32em; }
.prose p + p { margin-top: 1em; }
html:lang(zh) .prose p { font-size: 16.5px; line-height: 1.95; }
.prose strong { color: var(--fg); font-weight: 500; }
.about-photo { grid-column: 8 / -1; }
.about-photo .frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--bg-3); }
.about-photo .media { position: absolute; inset: -12% 0; will-change: transform; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }

.audience { margin-top: clamp(56px, 7vw, 112px); }
.audience dl { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 32px; }
.audience dl > div { border-top: 1px solid var(--line-2); padding-top: 22px; }
.audience dt { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; letter-spacing: -0.012em; }
html:lang(zh) .audience dt { font-weight: 500; font-size: clamp(21px, 1.95vw, 29px); letter-spacing: 0.05em; line-height: 1.3; }
.audience dd { margin-top: 12px; color: var(--fg-2); font-size: 16px; line-height: 1.5; max-width: 24em; }
html:lang(zh) .audience dd { font-size: 15px; line-height: 1.85; }

@media (max-width: 860px) {
  .about-text { grid-column: 1 / -1; }
  .about-photo { grid-column: 1 / -1; }
  .about-photo .frame { aspect-ratio: 4 / 3; }
  .audience dl { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */

.contact { position: relative; overflow: hidden; padding: clamp(96px, 13vw, 208px) 0 clamp(64px, 8vw, 120px); }
.contact .media { position: absolute; inset: -10% 0; will-change: transform; }
.contact .media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(7, 13, 12, 0.5) 26%, rgba(7, 13, 12, 0.62) 60%, rgba(7, 13, 12, 0.96) 100%);
}
.contact .wrap { position: relative; z-index: 2; }
.contact-body { align-items: end; row-gap: 48px; }
.contact-text { grid-column: 1 / span 6; }
.contact .d1 { font-size: clamp(46px, 7.4vw, 128px); margin-top: clamp(18px, 2vw, 28px); text-wrap: balance; }
html:lang(zh) .contact .d1 { font-size: clamp(38px, 5.5vw, 96px); }
.contact .sub { margin-top: clamp(22px, 2.6vw, 36px); color: rgba(244, 242, 236, 0.84); }
.mail {
  display: inline-block; margin-top: clamp(28px, 3.4vw, 48px);
  font-family: "Archivo", system-ui, sans-serif; font-weight: 300; font-stretch: 106%; font-size: clamp(24px, 2.9vw, 44px); line-height: 1.1; letter-spacing: -0.03em;
  color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 6px; overflow-wrap: anywhere;
  transition: color 0.3s;
}
.mail:hover { color: var(--accent); }
.where { margin-top: 26px; line-height: 2; }
html:lang(zh) .where { letter-spacing: 0.14em; }

.form {
  grid-column: 8 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px;
  padding: clamp(22px, 2.6vw, 38px); border: 1px solid var(--line); border-radius: 12px;
  background: rgba(7, 13, 12, 0.56); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
}
.field { display: grid; gap: 4px; padding: 14px 0 10px; border-bottom: 1px solid var(--line-2); min-width: 0; transition: border-color 0.3s; }
.field--full { grid-column: 1 / -1; }
.field:focus-within { border-bottom-color: var(--accent); }
.field:focus-within label { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; margin: 0; padding: 4px 0; border: 0; border-radius: 0; outline: none; background: transparent;
  color: var(--fg); font: inherit; font-size: 18px; line-height: 1.4;
}
.field select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23f4f2ec' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 2px center;
}
.field select option { color: var(--fg); background: var(--bg-3); }
.field input:-webkit-autofill, .field input:-webkit-autofill:hover, .field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--fg); caret-color: var(--fg); transition: background-color 600000s 0s, color 600000s 0s;
}
.field textarea { min-height: 96px; resize: vertical; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 26px; }
.form-note { flex: 1 1 200px; font-size: 13px; line-height: 1.45; color: var(--fg-2); }
.form-note a { color: var(--fg); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.form-note a:hover { color: var(--accent); }
.form-status { grid-column: 1 / -1; margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 15px; line-height: 1.5; }
.form-status[hidden] { display: none; }
.form-status.ok { border-color: rgba(95, 227, 189, 0.55); background: rgba(95, 227, 189, 0.1); }
.form-status.fail { border-color: rgba(255, 176, 138, 0.55); background: rgba(255, 150, 110, 0.1); }
.form-status a { color: var(--fg); font-weight: 500; text-underline-offset: 3px; }
.form button[disabled] { opacity: 0.6; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 960px) {
  .contact-text { grid-column: 1 / -1; }
  .form { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

.foot { position: relative; z-index: 2; margin-top: clamp(64px, 8vw, 128px); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 32px; padding-bottom: 22px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px clamp(18px, 2.3vw, 38px); }
.foot-nav a, .to-top { font-size: 14px; color: var(--fg-2); text-decoration: none; transition: color 0.3s; }
.foot-nav a:hover, .to-top:hover { color: var(--fg); }
.to-top { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); }
.to-top svg { transition: transform 0.35s var(--ease); }
.to-top:hover svg { transform: translateY(-3px); }
html:lang(zh) .foot-nav a, html:lang(zh) .to-top { letter-spacing: 0.1em; }
.foot-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 12px; padding-top: 20px; border-top: 1px solid var(--line-2); font-size: 13px; line-height: 1.6; color: var(--fg-2); }
.foot-row > :nth-child(1) { grid-column: 1 / span 4; color: var(--fg); }
.foot-row > :nth-child(2) { grid-column: 5 / span 5; }
.foot-row > :nth-child(3) { grid-column: 11 / -1; text-align: right; }
@media (max-width: 860px) {
  .foot-row > * { grid-column: 1 / -1 !important; text-align: left !important; }
}

/* ---------- Document page (privacy) and 404 ---------- */

.doc { padding-top: calc(var(--bar) + clamp(36px, 6vw, 96px)); padding-bottom: clamp(40px, 5vw, 72px); }
.doc .sec-top { flex-wrap: wrap; row-gap: 8px; }
.doc .sec-top .label--dot { white-space: nowrap; }
.doc-body { margin-top: clamp(40px, 6vw, 96px); row-gap: 40px; align-items: start; }
.doc-body h1 { grid-column: 1 / span 5; }
.doc-text { grid-column: 7 / span 6; }
.doc-text p { color: var(--fg-2); font-size: 17px; line-height: 1.65; max-width: 38em; }
html:lang(zh) .doc-text p { font-size: 16px; line-height: 1.95; }
.doc-text p.lead { color: var(--fg); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; }
html:lang(zh) .doc-text p.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.85; }
.doc-text h2 { margin: 2.1em 0 0.5em; padding-top: 1.1em; border-top: 1px solid var(--line); font-family: var(--serif); font-weight: 400; font-size: clamp(25px, 2.2vw, 34px); line-height: 1.15; letter-spacing: -0.012em; }
html:lang(zh) .doc-text h2 { font-weight: 500; font-size: clamp(21px, 1.8vw, 27px); letter-spacing: 0.05em; line-height: 1.35; }
.doc-text a { color: var(--fg); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.doc-text a:hover { color: var(--accent); }
@media (max-width: 860px) { .doc-body h1, .doc-text { grid-column: 1 / -1; } }

.lost { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--bar) + 40px) 0 64px; }
.lost .orb { width: 180px; height: 130px; min-height: 0; margin-bottom: 48px; }
.lost h1 { margin-top: 22px; font-size: clamp(46px, 7.4vw, 128px); }
.lost .sub { margin-top: 22px; }
.lost .sub + .sub { margin-top: 6px; font-size: 15px; }
.lost-links { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Reveal ---------- */

.js [data-r] { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.js [data-r].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-r], .js .hero h1 .ln > span, .js .hero-media img { opacity: 1; transform: none; transition: none; }
  .js .chart .project { stroke-dashoffset: 0; }
  .js .chart .area, .js .chart .dot, .js .chart .late { opacity: 1; }
  .statement .w { color: var(--fg); }
}
